/* ==========================================================================
   THE SACRED CODE — Home Page Section Styles
   Ancient Wisdom. Modern Living.
   ========================================================================== */

/* ---------- Hero Section ---------- */
#hero-section {
  position: relative;
  width: 100%;
  min-height: 580px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #3F5B2B;
}

#hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 0.8s ease-in-out;
}

#hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(251, 246, 242, 0.94) 0%,
    rgba(251, 246, 242, 0.82) 45%,
    rgba(251, 246, 242, 0.35) 75%,
    rgba(251, 246, 242, 0.05) 100%
  );
  z-index: 1;
}

#hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 80px;
  max-width: 620px;
  margin-left: max(0px, calc((100vw - 1360px) / 2));
}

#hero-content h1 {
  font-size: 52px;
  color: var(--accent);
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

#hero-content .hero-sub {
  font-size: 16px;
  color: var(--foreground);
  font-weight: 700;
  font-family: var(--font-family-sans);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

#hero-content .hero-desc {
  font-size: 14px;
  color: var(--accent);
  font-family: var(--font-family-sans);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 420px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 12px;
  font-family: var(--font-family-sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
  box-shadow: 0 4px 14px rgba(184, 134, 75, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 134, 75, 0.4);
}

.btn-tsc-outline {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  box-shadow: none;
}

.btn-tsc-outline:hover {
  background: var(--accent);
  color: #ffffff !important;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.hero-arrow:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow-left {
  left: 24px;
}

.hero-arrow-right {
  right: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(17, 48, 26, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 6px;
}

/* ---------- Collections Section ---------- */
#collections-section {
  padding: 80px 40px;
  background: var(--background);
  max-width: 1440px;
  margin: 0 auto;
}

#collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  background: var(--card);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
  text-decoration: none;
}

.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary);
}

.collection-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.4s ease;
}

.collection-card:hover img {
  transform: scale(1.03);
}

.collection-card-label {
  font-size: 13px;
  font-family: var(--font-family-sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  transition: color 0.2s ease;
}

.collection-card:hover .collection-card-label {
  color: var(--primary);
}

/* ---------- Featured Artwork Section ---------- */
#featured-art-section {
  padding: 70px 40px;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#featured-art-card {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card-hover);
}

#featured-art-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

#featured-art-img-col {
  height: 100%;
  min-height: 400px;
  background: var(--secondary);
  overflow: hidden;
}

#featured-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#featured-art-card:hover #featured-art-img {
  transform: scale(1.04);
}

#featured-art-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow-rule {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow-rule::after {
  content: "";
  height: 1px;
  width: 40px;
  background: var(--primary);
}

#featured-art-title {
  font-size: 36px;
  color: var(--accent);
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

#featured-art-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  font-family: var(--font-family-sans);
  line-height: 1.7;
  margin-bottom: 24px;
}

#featured-art-price {
  font-size: 26px;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-family-sans);
  margin-bottom: 28px;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Best Sellers Section ---------- */
#best-sellers-section {
  padding: 80px 40px;
  background: var(--background);
  max-width: 1440px;
  margin: 0 auto;
}

#best-sellers-container {
  margin-top: 30px;
}

#small-products-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.small-product-card {
  display: flex;
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.small-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary);
}

.small-product-card img {
  width: 130px;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;
}

.small-product-info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.best-seller-badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 9px;
  font-family: var(--font-family-sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.stars {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 1px;
}

.small-product-info h4 {
  font-size: 16px;
  color: var(--accent);
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 6px;
}

.small-product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.small-product-actions .price {
  font-size: 15px;
  color: var(--foreground);
  font-weight: 700;
  font-family: var(--font-family-sans);
}

.product-icon-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-icon-actions a,
.product-icon-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.product-icon-actions a:hover,
.product-icon-actions button:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

/* ---------- Gift Banner / Slider Section ---------- */
#gift-slider-section {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #3F5B2B;
}

#gift-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 0.8s ease-in-out;
}

#gift-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(88, 125, 62, 0.1) 0%,
    rgba(63, 91, 43, 0.75) 50%,
    rgba(41, 59, 28, 0.92) 100%
  );
  z-index: 1;
}

#gift-content {
  position: relative;
  z-index: 2;
  margin-left: auto;
  padding: 60px 80px;
  text-align: right;
  max-width: 580px;
}

#gift-content h2 {
  font-size: 42px;
  color: #ffffff;
  font-family: var(--font-family-heading);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.15;
}

.gift-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-family-sans);
  margin-bottom: 28px;
  line-height: 1.6;
}

.gift-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.gift-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.gift-arrow-left { left: 24px; }
.gift-arrow-right { right: 24px; }

/* ---------- Testimonials Section ---------- */
#testimonials-section {
  padding: 80px 40px;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#testimonials-grid {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary);
}

.testimonial-quote {
  font-size: 40px;
  color: var(--primary);
  line-height: 1;
  font-family: var(--font-family-heading);
  font-weight: 700;
  margin-bottom: 8px;
}

.testimonial-card p {
  font-size: 14px;
  color: var(--foreground);
  font-family: var(--font-family-sans);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-card .reviewer {
  font-size: 13px;
  color: var(--accent);
  font-family: var(--font-family-sans);
  margin-top: 16px;
  font-weight: 700;
}

/* ---------- Instagram Section ---------- */
#instagram-section {
  padding: 80px 40px;
  background: var(--background);
  max-width: 1440px;
  margin: 0 auto;
}

#instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.instagram-post {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  position: relative;
}

.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.instagram-post:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991px) {
  #hero-section {
    min-height: 480px;
  }
  #hero-content {
    padding: 40px 30px;
    max-width: 100%;
  }
  #hero-content h1 {
    font-size: 38px;
  }
  #featured-art-grid {
    grid-template-columns: 1fr;
  }
  #featured-art-img-col {
    height: 280px;
    min-height: 280px;
  }
  #featured-art-info {
    padding: 36px 28px;
  }
  #gift-slider-section {
    min-height: 340px;
  }
  #gift-overlay {
    background: linear-gradient(
      180deg,
      rgba(17, 48, 26, 0.4) 0%,
      rgba(17, 48, 26, 0.88) 100%
    );
  }
  #gift-content {
    text-align: center;
    margin: 0 auto;
    padding: 40px 24px;
  }
  #gift-content h2 {
    font-size: 32px;
  }
  #collections-section, #featured-art-section, #best-sellers-section, #testimonials-section, #instagram-section {
    padding: 50px 20px;
  }
}

@media (max-width: 576px) {
  #hero-section {
    min-height: 420px;
  }
  #hero-content {
    padding: 30px 20px;
  }
  #hero-content h1 {
    font-size: 28px;
  }
  #hero-content .hero-sub {
    font-size: 14px;
  }
  #hero-content .hero-desc {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .hero-arrow {
    width: 36px;
    height: 36px;
  }
  .hero-arrow-left { left: 10px; }
  .hero-arrow-right { right: 10px; }

  #collections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  #small-products-scroll {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  #featured-art-title {
    font-size: 26px;
  }
  #featured-art-price {
    font-size: 22px;
  }
}
