/* ═══════════════════════════════════════════════════════════════
   LUNOVA GIFT — home.css
   ═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: calc(68px + 7rem) 8vw 7rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(10, 44, 74, .04) 0px, rgba(10, 44, 74, .04) 1px, transparent 1px, transparent 100px),
    repeating-linear-gradient(90deg, rgba(10, 44, 74, .04) 0px, rgba(10, 44, 74, .04) 1px, transparent 1px, transparent 100px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold-grad);
}

.hero-corner {
  position: absolute;
  top: calc(68px + 2.5rem);
  right: 8vw;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(201, 168, 76, .2);
  border-left: none;
  border-bottom: none;
  pointer-events: none;
}

.hero-overline {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-darker);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.hero-overline::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 2.2rem;
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-dark);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 440px;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ========================== CATEGORY SECTION UPDATE ========================== */
/* ══════════════════════════════════════════════════════════════
   CATEGORIES — Image-based cards (no gradient placeholders)
   ══════════════════════════════════════════════════════════════ */

.categories {
  background: var(--off-white);
  padding: 7rem 8vw;
}

.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(201, 168, 76, .12);
}

.cat-card {
  background: var(--img-bg);
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

/* Category image — object-fit: contain, no cropping */
.cat-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .7s cubic-bezier(.25, .46, .45, .94);
}

.cat-card:hover .cat-img-wrap {
  transform: scale(1.04);
}

.cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* same fitting as product cards — no crop/distortion */
  object-position: center;
  display: block;
}

/* Placeholder shown when no product image is available */
.cat-img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-primary), var(--navy-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-img-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: .25;
  stroke: var(--gold-light);
}

/* Gradient overlay for text readability */
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 44, 74, .82) 0%,
      rgba(10, 44, 74, .15) 55%,
      transparent 100%);
  pointer-events: none;
}

.cat-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.8rem;
  z-index: 2;
}

.cat-num {
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--gold-light);
  opacity: .85;
  margin-bottom: .3rem;
  font-weight: 400;
}

.cat-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: .2rem;
}

.cat-count {
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

/* ========================== END CATEGORY SECTION UPDATE ========================== */

/* ══════════════════════════════════════════════════════════════
   FEATURED / NEW ARRIVALS
   ══════════════════════════════════════════════════════════════ */

.featured {
  background: var(--white);
  padding: 7rem 8vw;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(201, 168, 76, .12);
}

/* ══════════════════════════════════════════════════════════════
   OUR STORY
   ══════════════════════════════════════════════════════════════ */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.story-visual {
  background: var(--navy-primary);
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.story-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(201, 168, 76, .12) 0%, transparent 70%);
  z-index: 0;
}

.story-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(201, 168, 76, .05) 0px, rgba(201, 168, 76, .05) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(201, 168, 76, .05) 0px, rgba(201, 168, 76, .05) 1px, transparent 1px, transparent 48px);
  z-index: 0;
}

.story-visual .noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.story-corner {
  position: absolute;
  width: 50px;
  height: 50px;
  border-color: rgba(201, 168, 76, .28);
  border-style: solid;
  z-index: 2;
}

.story-corner-tl {
  top: 2rem;
  left: 2rem;
  border-width: 1px 0 0 1px;
}

.story-corner-br {
  bottom: 2rem;
  right: 2rem;
  border-width: 0 1px 1px 0;
}

.story-quote {
  position: relative;
  z-index: 3;
  padding: 4rem;
  text-align: center;
}

.story-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-pale);
  line-height: 1.65;
}

.story-quote cite {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  font-weight: 400;
}

.story-text {
  padding: 6rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--warm-white);
}

.story-body {
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 2;
  margin: 1.8rem 0 3rem;
}

/* ========================== BRAND COLOR UPDATE: Testimonials ========================== */
/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS — navy bg replaces dark-olive
   ══════════════════════════════════════════════════════════════ */

.testimonials {
  background: var(--navy-primary);
  padding: 7rem 8vw;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(201, 168, 76, .04) 0px, rgba(201, 168, 76, .04) 1px, transparent 1px, transparent 80px);
  pointer-events: none;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 4.5rem;
  position: relative;
}

.testimonials-header .section-label {
  justify-content: center;
  color: var(--gold);
}

.testimonials-header .section-label::before {
  display: none;
}

.testimonials-header .section-title {
  color: var(--text-on-dark);
}

.testimonials-header .section-title em {
  color: var(--gold-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(201, 168, 76, .08);
  position: relative;
}

.testi-card {
  background: rgba(5, 20, 38, .92);
  padding: 2.8rem;
  position: relative;
}

.testi-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 6rem;
  font-style: italic;
  color: var(--gold);
  opacity: .12;
  line-height: 1;
  position: absolute;
  top: .3rem;
  left: 1.6rem;
}

.testi-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-mid-on-dark);
  line-height: 1.8;
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 1;
  padding-top: 1.2rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(201, 168, 76, .14);
  padding-top: 1.4rem;
}

.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-grad-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .9rem;
  color: var(--black);
  flex-shrink: 0;
}

.testi-name {
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--text-on-dark);
  font-weight: 400;
}

.testi-meta {
  font-family: var(--font-body);
  font-size: .65rem;
  color: var(--text-light-on-dark);
  letter-spacing: .08em;
}

.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: .3rem;
}

/* ========================== END BRAND COLOR UPDATE: Testimonials ========================== */

/* ══════════════════════════════════════════════════════════════
   HOME RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(68px + 4rem) 6vw 4rem;
  }

  .story {
    grid-template-columns: 1fr;
  }

  .story-visual {
    min-height: 260px;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .categories,
  .featured,
  .testimonials {
    padding: 5rem 6vw;
  }
}

@media (max-width: 480px) {

  .categories-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
}