/* ─────────────────────────────────────────────────────────────
   SantoGlam Scents — Shared Stylesheet v1.3 (v16)
   Nav: converted to homepage class names, matches homepage exactly.
   Drawer: display:none on desktop — eliminates the viewport bleed bug.
   Hero: margin-top:68px matches new nav height. Body padding removed.
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@300;400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:       #F8F6F2;
  --charcoal:    #1A1917;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Jost', system-ui, sans-serif;
  --gutter:      clamp(20px, 5vw, 80px);

  /* ── AMBER PALETTE ────────────────────────────────────────
     Full amber (#C49B55) is decorative only — stars, borders,
     markers, hover accents, and active indicators.
     For readable text on light backgrounds, use --amber-text.
     For text on dark backgrounds, use --amber-bright.          */
  --amber:        #C49B55;   /* decorative only — stars, borders */
  --amber-text:   #7A5818;   /* text labels on light bg  ≈5.0:1  */
  --amber-bright: rgba(196,155,85,0.95); /* labels on dark bg    */

  --stone: #EDE8E1;

  /* ── TEXT ON LIGHT BACKGROUNDS ───────────────────────────  */
  --text-primary:   #1A1917;
  --text-body:      rgba(26,25,23,0.82);
  --text-muted:     rgba(26,25,23,0.65);
  --text-nav:       rgba(26,25,23,0.60);   /* matches homepage charcoal-60 */

  /* ── TEXT ON DARK BACKGROUNDS ────────────────────────────  */
  --text-light-primary:   rgba(248,246,242,0.96);
  --text-light-body:      rgba(248,246,242,0.88);
  --text-light-muted:     rgba(248,246,242,0.70);
  --text-light-footer:    rgba(248,246,242,0.52);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  /* No padding-top — nav offset handled per-section with margin-top/padding-top */
  background: var(--ivory);
  color: var(--text-primary);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   NAV — matches homepage #nav / .nav-inner / .nav-list exactly
   Height: 68px  |  Links: lowercase, weight 400, gap 2.8rem
   Background: always-on frosted glass (no scroll listener needed)
   Drawer: display:none on desktop; display:block only at ≤860px
   ══════════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(248,246,242,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,25,23,0.08);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav-wordmark {
  font-family: var(--serif); font-size: 1rem; font-weight: 300;
  letter-spacing: 0.12em; text-transform: lowercase;
  color: var(--text-primary); text-decoration: none;
  transition: opacity 0.2s;
}
.nav-wordmark:hover { opacity: 0.6; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2.8rem; }
.nav-list a {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 300;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-nav);
  text-decoration: none; transition: color 0.2s;
}
.nav-list a:hover { color: var(--text-primary); }
.nav-list a[aria-current="page"] {
  color: var(--amber);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.bar { display: block; width: 20px; height: 1px; background: var(--text-primary); margin: 4px 0; }

/* ── MOBILE DRAWER — display:none on desktop, visible only at ≤860px ── */
.nav-drawer { display: none; }                 /* ← KEY FIX: hidden on desktop */

@media (max-width: 860px) {
  .nav-list   { display: none; }
  .nav-toggle { display: flex; }
  .nav-drawer {
    display: block;                            /* only shown on mobile */
    position: fixed; top: 68px; left: 0; right: 0; z-index: 199;
    background: var(--ivory);
    border-bottom: 1px solid rgba(26,25,23,0.08);
    padding: 20px var(--gutter);
    transform: translateY(-110%); transition: transform 0.3s ease;
  }
  .nav-drawer.is-open { transform: translateY(0); }
}
.nav-drawer-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.nav-drawer-list a {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 300;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-nav); text-decoration: none;
}

/* ══════════════════════════════════════════════════════════ */

/* ── UTILITY ──────────────────────────────────────────────── */
.sg-eyebrow {
  font-family: var(--sans); font-size: .52rem; font-weight: 300;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--amber-text);
}
.sg-divider { height: 1px; background: rgba(26,25,23,.08); margin: 0 var(--gutter); }
.sg-divider-full { height: 1px; background: rgba(26,25,23,.08); }
.sg-stars { color: var(--amber); font-size: .7rem; letter-spacing: .12em; }

/* ── COLLECTION PAGE HERO ─────────────────────────────────── */
/* 140px top = 68px nav + 72px breathing room                  */
.sc-col-hero {
  padding: 140px var(--gutter) 80px;
  text-align: center;
}
.sc-col-hero .sg-eyebrow { margin-bottom: 20px; }
.sc-col-title {
  font-family: var(--serif); font-size: clamp(2.4rem,5vw,4.8rem); font-weight: 300;
  line-height: 1.1; letter-spacing: -.01em; margin-bottom: 24px;
  color: var(--text-primary);
}
.sc-col-sub {
  font-family: var(--serif); font-size: clamp(1.05rem,1.5vw,1.2rem); font-weight: 300;
  color: var(--text-body);
  line-height: 1.9; max-width: 52ch; margin: 0 auto;
}

/* ── COLLECTION GRID ──────────────────────────────────────── */
.sc-grid {
  max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) 100px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px;
}
.sc-card {
  background: var(--stone); display: flex; flex-direction: column; overflow: hidden;
  text-decoration: none; color: inherit; transition: background .25s;
}
.sc-card:hover { background: #E5DED5; }
.sc-card-img { aspect-ratio: 1/1; background: #fff; position: relative; overflow: hidden; }
.sc-card-img img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  transition: transform .5s ease;
}
.sc-card:hover .sc-card-img img { transform: scale(1.04); }
.sc-card-body { padding: 28px 28px 36px; flex: 1; display: flex; flex-direction: column; }
.sc-card-brand {
  font-family: var(--sans); font-size: .48rem; font-weight: 300;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber-text); margin-bottom: 10px;
}
.sc-card-name {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 300; line-height: 1.2;
  color: var(--text-primary); margin-bottom: 10px;
}
.sc-card-tagline {
  font-family: var(--serif); font-style: italic; font-size: .95rem; font-weight: 300;
  color: var(--text-body);
  line-height: 1.7; flex: 1; margin-bottom: 24px;
}
.sc-card-footer { display: flex; align-items: flex-end; justify-content: space-between; }
.sc-card-price {
  font-family: var(--sans); font-size: .75rem; font-weight: 300; letter-spacing: .04em;
  color: var(--text-primary);
}
.sc-card-cta {
  font-family: var(--sans); font-size: .5rem; font-weight: 300; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary); padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.sc-card:hover .sc-card-cta { color: var(--amber); border-color: var(--amber); }

@media (max-width: 1024px) { .sc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px)  { .sc-grid { grid-template-columns: 1fr; } .sc-card-body { padding: 20px 20px 28px; } }

/* ── PRODUCT PAGE HERO ────────────────────────────────────── */
/* margin-top: 68px pushes the entire section below the fixed nav.
   Visual height = 100vh - 68px so it fills exactly the remaining
   viewport. No body padding-top needed.                         */
.sp-hero {
  margin-top: 68px;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 68px); align-items: center;
}
.sp-hero-text {
  padding: clamp(60px,8vw,120px) var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
.sp-hero-text .sg-eyebrow { margin-bottom: 20px; }
.sp-product-name {
  font-family: var(--serif); font-size: clamp(2.8rem,5vw,5rem); font-weight: 300;
  line-height: 1.05; letter-spacing: -.01em; margin-bottom: 20px;
  color: var(--text-primary);
}
.sp-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem,1.5vw,1.25rem); font-weight: 300;
  color: var(--text-body);
  line-height: 1.8; max-width: 40ch; margin-bottom: 32px;
}
.sp-price-row { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
.sp-price {
  font-family: var(--sans); font-size: 1.5rem; font-weight: 300; letter-spacing: .04em;
  color: var(--text-primary);
}

/* ── BUY NOW BUTTON ───────────────────────────────────────── */
.sp-buy-btn {
  display: block; width: 100%;
  background: var(--charcoal); color: #F8F6F2;
  font-family: var(--sans); font-size: .64rem; font-weight: 400;
  letter-spacing: .25em; text-transform: uppercase; text-align: center;
  padding: 20px 40px; border: none; cursor: pointer;
  transition: background .2s, letter-spacing .15s;
  text-decoration: none; margin-bottom: 24px;
}
.sp-buy-btn:hover { background: #0E0D0C; letter-spacing: .28em; }
.sp-buy-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

/* ─────────────────────────────────────────────────────────── */
.sp-trust-row { display: flex; flex-direction: column; gap: 8px; }
.sp-trust-item {
  font-family: var(--sans); font-size: .62rem; font-weight: 300; letter-spacing: .06em;
  color: var(--text-body);
  display: flex; align-items: center; gap: 10px;
}
.sp-trust-check { color: var(--amber-text); font-size: .7rem; }

.sp-hero-visual {
  height: calc(100vh - 68px);
  background: var(--product-accent, #F5F3EF);
  position: relative; overflow: hidden;
}
.sp-hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  padding: clamp(24px,4vw,64px);
}

@media (max-width: 860px) {
  .sp-hero { grid-template-columns: 1fr; min-height: auto; margin-top: 68px; }
  .sp-hero-visual { height: 70vw; order: -1; }
  .sp-hero-text { padding: 40px var(--gutter); }
  .sp-buy-btn { width: 100%; }
}

/* ── PRODUCT SECTIONS ─────────────────────────────────────── */
.sp-section { padding: 80px var(--gutter); }
.sp-section-inner { max-width: 1200px; margin: 0 auto; }
.sp-section-stone { background: var(--stone); }
.sp-section-charcoal { background: var(--charcoal); color: var(--text-light-primary); }

.sp-section-2col {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start;
}
.sp-section-label {
  font-family: var(--sans); font-size: .5rem; font-weight: 300;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--amber-text); margin-bottom: 16px;
}
.sp-section-charcoal .sp-section-label { color: var(--amber-bright); }
.sp-section-heading {
  font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 300;
  line-height: 1.2; max-width: 26ch; color: var(--text-primary);
}
.sp-section-charcoal .sp-section-heading { color: var(--text-light-primary); }
.sp-section-body {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 300;
  color: var(--text-body); line-height: 2.0; max-width: 60ch;
}
.sp-section-charcoal .sp-section-body { color: var(--text-light-body); }
.sp-section-body + .sp-section-body { margin-top: 1.5em; }
.sp-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem,2.5vw,2.2rem); font-weight: 300;
  line-height: 1.45; color: var(--text-muted);
  border-left: 2px solid var(--amber); padding-left: 28px;
}

@media (max-width: 768px) { .sp-section-2col { grid-template-columns: 1fr; gap: 32px; } }

/* ── FRAGRANCE PROFILE ────────────────────────────────────── */
.sp-notes-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-bottom: 48px;
}
.sp-note-group { background: rgba(26,25,23,.04); padding: 28px 24px; }
.sp-note-label {
  font-family: var(--sans); font-size: .5rem; font-weight: 300;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber-text); margin-bottom: 12px;
}
.sp-note-list {
  font-family: var(--serif); font-size: 1rem; font-weight: 300;
  color: var(--text-body); line-height: 2; list-style: none;
}
.sp-note-list li::before { content: '—  '; color: var(--amber); }

.sp-specs-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(26,25,23,.08);
}
.sp-spec { background: var(--ivory); padding: 20px 20px; }
.sp-spec-key {
  font-family: var(--sans); font-size: .48rem; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber-text); margin-bottom: 6px;
}
.sp-spec-val {
  font-family: var(--serif); font-size: 1rem; font-weight: 300; color: var(--text-primary);
}

@media (max-width: 580px) {
  .sp-notes-grid { grid-template-columns: 1fr; }
  .sp-specs-grid { grid-template-columns: 1fr 1fr; }
}

/* ── WHERE IT EXCELS ──────────────────────────────────────── */
.sp-occasions-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.sp-occ-card {
  background: rgba(26,25,23,.09); padding: 16px 22px;
  display: flex; align-items: center; gap: 12px;
}
.sp-occ-marker { width: 20px; height: 1px; background: var(--amber); flex-shrink: 0; }
.sp-occ-label {
  font-family: var(--sans); font-size: .62rem; font-weight: 300; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-primary);
}

/* ── TRUST SECTION ────────────────────────────────────────── */
.sp-trust-grid {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 1px;
  background: rgba(26,25,23,.08); margin-top: 48px;
}
.sp-trust-card { background: var(--stone); padding: 28px 20px; text-align: center; }
.sp-trust-icon { font-size: 1.2rem; margin-bottom: 12px; color: var(--amber); }
.sp-trust-title {
  font-family: var(--serif); font-size: 1rem; font-weight: 300; margin-bottom: 8px;
  color: var(--text-primary);
}
.sp-trust-desc {
  font-family: var(--sans); font-size: .64rem; font-weight: 300;
  letter-spacing: .04em; color: var(--text-body); line-height: 1.7;
}

@media (max-width: 860px) { .sp-trust-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 520px) { .sp-trust-grid { grid-template-columns: repeat(2,1fr); } }

/* ── WHY SANTOGLAM (dark bg) ──────────────────────────────── */
.sp-why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top: 48px; }
.sp-why-item-num {
  font-family: var(--sans); font-size: .44rem; font-weight: 300;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber-bright); margin-bottom: 12px;
}
.sp-why-item-title {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 300; margin-bottom: 10px;
  color: var(--text-light-primary);
}
.sp-why-item-body {
  font-family: var(--serif); font-size: 1rem; font-weight: 300;
  color: var(--text-light-body); line-height: 1.9;
}

@media (max-width: 768px) { .sp-why-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ── EXPLORE COLLECTION ───────────────────────────────────── */
.sp-explore-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; margin-top: 48px;
}
.sp-explore-card {
  background: var(--stone); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; overflow: hidden; transition: background .2s;
}
.sp-explore-card:hover { background: #E5DED5; }
.sp-explore-img { aspect-ratio: 1/1; background: #fff; position: relative; overflow: hidden; }
.sp-explore-img img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  transition: transform .4s ease;
}
.sp-explore-card:hover .sp-explore-img img { transform: scale(1.04); }
.sp-explore-body { padding: 16px 16px 20px; }
.sp-explore-brand {
  font-family: var(--sans); font-size: .44rem; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber-text); margin-bottom: 5px;
}
.sp-explore-name {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 300;
  color: var(--text-primary); margin-bottom: 4px;
}
.sp-explore-price {
  font-family: var(--sans); font-size: .7rem; font-weight: 300; color: var(--text-body);
}

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

/* ── PRE-FOOTER & FOOTER ──────────────────────────────────── */
.sg-pre-footer {
  background: var(--ivory); border-top: 1px solid rgba(26,25,23,.08);
  padding: 56px 40px; text-align: center;
}
.sg-pre-footer-links {
  display: flex; flex-wrap: wrap; gap: 28px 44px; justify-content: center;
  max-width: 700px; margin: 0 auto;
}
.sg-pre-footer-links a {
  text-decoration: none; font-family: var(--serif); font-style: italic;
  font-size: .92rem; color: var(--text-nav); transition: color .2s;
}
.sg-pre-footer-links a:hover { color: var(--text-primary); }
.sg-pre-footer-links a.active { color: var(--amber); }
.sg-site-footer { background: var(--charcoal); padding: 28px var(--gutter); }
.sg-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.sg-footer-wordmark {
  font-family: var(--serif); font-size: .95rem; font-weight: 300;
  letter-spacing: .1em; color: var(--text-light-footer);
}
.sg-footer-disclosure {
  font-family: var(--sans); font-size: .62rem; font-weight: 300;
  color: var(--text-light-footer); line-height: 1.7; flex: 1;
}
