/* Her Sovereign Waters — shared site styles
   Fonts: Playfair Display (headings) + Inter (body) */

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

:root {
  --brown: #3e2721;      /* espresso brown — headings, primary text */
  --gold: #a98753;       /* terracotta gold — accents, links */
  --cream: #f8f6f2;      /* page background — clean warm white, low saturation */
  --terracotta-tint: #e9dccb; /* soft terracotta — hero tint, softened for elegance */
  --muted: #736157;      /* secondary text */
  --white: #ffffff;
  --mocha: #947063;      /* photo overlay tone */
  --espresso-dark: #2e1c15; /* footer / dark bands */
  --pad: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, .serif { font-family: 'Playfair Display', serif; color: var(--brown); line-height: 1.2; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  background: var(--cream);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
nav.nav-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  box-shadow: 0 6px 24px rgba(46,28,21,0.07);
}
.wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--brown);
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brown);
}
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--brown);
  cursor: pointer;
  padding: 4px 8px;
}

/* HERO (text-only, tinted) */
.hero {
  background: var(--terracotta-tint);
  padding: 90px var(--pad) 90px;
  text-align: center;
}
.hero-pill {
  display: inline-block;
  background: rgba(255,255,255,0.6);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 500; margin-bottom: 20px; max-width: 780px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 1.05rem; color: #5a4a42; max-width: 600px; margin: 0 auto 30px; }

.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--brown); color: var(--white); }
.btn-primary:hover { background: #4d332b; }
.btn-outline { background: transparent; color: var(--brown); border: 1.5px solid var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); }

/* PHOTO — full width image band with caption overlay */
.photo-band {
  position: relative;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 40px var(--pad);
}
.photo-band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(46,28,21,0.65) 0%, rgba(46,28,21,0.05) 55%);
}
.photo-band .caption {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-style: italic;
  font-size: 1.2rem;
}

/* three-photo row (Home) */
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 var(--pad) 90px;
}
.photo-row .cell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.photo-row .cell::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(46,28,21,0.7) 0%, rgba(46,28,21,0.05) 60%);
}
.photo-row .cell .cell-label {
  position: relative; z-index: 1;
  padding: 20px;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
}

/* portrait-oriented photo — shown in full, not cropped wide like photo-band */
.photo-portrait {
  max-width: 460px;
  margin: 0 auto 90px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center 25%;
  box-shadow: 0 20px 50px rgba(46,28,21,0.15);
}

/* two-photo row (pillar pages) */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 var(--pad) 90px;
}
.photo-pair .cell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.photo-pair .cell::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(46,28,21,0.7) 0%, rgba(46,28,21,0.05) 60%);
}
.photo-pair .cell .cell-label {
  position: relative; z-index: 1;
  padding: 24px;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
}

/* QUIZ (Home only) */
.quiz-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  text-align: left;
  box-shadow: 0 20px 50px rgba(46,28,21,0.08);
}
.quiz-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--brown);
  margin-bottom: 22px;
  text-align: center;
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  text-align: left;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--terracotta-tint);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--brown);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.quiz-option:hover { background: var(--terracotta-tint); }
.quiz-result { text-align: center; }
.quiz-result-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.quiz-result h3 { font-size: 1.6rem; margin-bottom: 14px; }
.quiz-result p { margin-bottom: 24px; }

/* DOORS (Home only) */
.doors-section { padding: 90px var(--pad); text-align: center; }
.doors-section h2 { font-size: 2rem; font-weight: 500; margin-bottom: 44px; }
.doors-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.door-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
}
.door-card .symbol { font-size: 1.9rem; color: var(--gold); margin-bottom: 12px; }
.door-card h3 { font-size: 1.3rem; letter-spacing: 2px; margin-bottom: 12px; }
.door-card p { font-size: 0.9rem; margin-bottom: 16px; }
.door-card .link { color: var(--gold); font-weight: 600; font-size: 0.85rem; }

/* OFFERS (pillar pages) */
.offers-section { padding: 90px var(--pad); text-align: center; }
.offers-section h2 { font-size: 2rem; font-weight: 500; margin-bottom: 12px; }
.offers-section .intro { font-size: 0.9rem; margin-bottom: 44px; }
.offers-row { display: grid; gap: 28px; }
.offers-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.offers-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.offer-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: left;
}
.offer-card .tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.offer-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.offer-card p { font-size: 0.85rem; margin-bottom: 8px; }
.offer-card .price { color: var(--gold); font-weight: 600; font-size: 0.9rem; }

/* SHOP grid */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 var(--pad) 90px; }
.shop-grid .offer-card:nth-child(4), .shop-grid .offer-card:nth-child(5) { grid-column: span 1; }

/* ESSAY (Mother's Story) */
.essay { padding: 20px var(--pad) 90px; }
.essay-inner { max-width: 680px; margin: 0 auto; text-align: left; }
.essay-inner p { margin-bottom: 22px; font-size: 1.02rem; line-height: 1.85; color: var(--muted); }
.essay-inner img { border-radius: 16px; margin: 10px 0 34px; box-shadow: 0 20px 50px rgba(46,28,21,0.12); width: 100%; }
.essay-inner .divider { text-align: center; color: var(--gold); margin: 44px 0; letter-spacing: 4px; font-size: 1.1rem; }
.essay-inner .pull {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--brown);
  text-align: center;
  margin: 36px auto;
  max-width: 560px;
  line-height: 1.5;
}

/* ABOUT story */
.story-section { padding: 80px var(--pad); text-align: center; }
.story-block { max-width: 640px; margin: 0 auto 28px; }
.story-block .label { font-size: 0.7rem; font-weight: 600; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; }
.story-block p { font-size: 1rem; }
.quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.4rem; color: var(--brown); max-width: 680px; margin: 30px auto 12px; }
.quote-author { color: var(--gold); font-weight: 500; }

/* FOOTER */
.moon-row { color: var(--gold); font-size: 0.9rem; letter-spacing: 10px; margin-bottom: 20px; }
.divine-line { font-size: 0.8rem; color: #a8927c; letter-spacing: 0.3px; margin-bottom: 30px; }

.site-footer {
  background: var(--espresso-dark);
  padding: 70px var(--pad) 32px;
}
.footer-universe { text-align: center; margin-bottom: 48px; }
.footer-universe .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-universe .moon-row {
  font-size: 1.3rem;
  letter-spacing: 8px;
  color: var(--terracotta-tint);
  margin: 14px 0;
}
.footer-universe .sub {
  font-size: 0.85rem;
  color: rgba(248,246,242,0.65);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 760px;
  margin: 0 auto 48px;
}
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 0.85rem;
  color: rgba(248,246,242,0.7);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold); }
.site-footer .divine-line {
  color: rgba(248,246,242,0.55);
  font-size: 0.85rem;
  font-style: italic;
  max-width: 480px;
  margin: 0 auto 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(248,246,242,0.12);
}
.site-footer .copyright {
  color: rgba(248,246,242,0.45);
  border-top: none;
  padding-top: 0;
}
.site-footer .copyright a { color: rgba(248,246,242,0.6); }

/* unified photo color grading — makes mixed-source images read as one shoot */
.photo-band, .photo-portrait, .photo-pair .cell, .photo-row .cell {
  filter: saturate(0.92) sepia(0.06) brightness(1.01) contrast(0.98);
}

/* credibility strip */
.credibility-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  padding: 28px var(--pad);
  background: var(--terracotta-tint);
  text-align: center;
}
.credibility-strip .cred-item {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--brown);
  opacity: 0.85;
}

.copyright {
  background: #1e120d;
  color: #998271;
  text-align: center;
  font-size: 0.75rem;
  padding: 18px;
}

/* ── ANIMATION ────────────────────────────────────────────────
   Gated behind .js-anim (added by animations.js) so content is
   always fully visible if JS fails or is disabled. */

.hero h1, .hero p, .hero .hero-pill, .hero .btn-row {
  animation: heroRise 0.8s ease both;
}
.hero p { animation-delay: 0.12s; }
.hero .btn-row { animation-delay: 0.22s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

html.js-anim .offer-card,
html.js-anim .door-card,
html.js-anim .photo-band,
html.js-anim .photo-portrait,
html.js-anim .photo-pair .cell,
html.js-anim .story-block,
html.js-anim .quote,
html.js-anim .quote-author,
html.js-anim .footer-universe,
html.js-anim .credibility-strip {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js-anim .offer-card.in-view,
html.js-anim .door-card.in-view,
html.js-anim .photo-band.in-view,
html.js-anim .photo-portrait.in-view,
html.js-anim .photo-pair .cell.in-view,
html.js-anim .story-block.in-view,
html.js-anim .quote.in-view,
html.js-anim .quote-author.in-view,
html.js-anim .footer-universe.in-view,
html.js-anim .credibility-strip.in-view {
  opacity: 1;
  transform: none;
}
/* keep hover working even though transition above also covers transform */
html.js-anim .offer-card.in-view:hover,
html.js-anim .door-card.in-view:hover {
  transform: translateY(-6px);
}

.doors-row .door-card:nth-child(2),
.offers-row .offer-card:nth-child(2),
.shop-grid .offer-card:nth-child(2) { transition-delay: 0.08s; }
.doors-row .door-card:nth-child(3),
.offers-row .offer-card:nth-child(3),
.shop-grid .offer-card:nth-child(3) { transition-delay: 0.16s; }
.shop-grid .offer-card:nth-child(4) { transition-delay: 0.24s; }
.shop-grid .offer-card:nth-child(5) { transition-delay: 0.32s; }

/* gentle hover lift for cards */
.offer-card, .door-card {
  transition: opacity 0.7s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.offer-card:hover, .door-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(46,28,21,0.10);
}

/* underline sweep on nav links */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a.active::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p, .hero .hero-pill, .hero .btn-row { animation: none; }
}

@media (max-width: 860px) {
  :root { --pad: 24px; }
  .doors-row, .photo-row, .offers-row.cols-3, .shop-grid { grid-template-columns: 1fr; }
  .photo-pair, .offers-row.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col { align-items: center; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 40px var(--pad);
    box-shadow: -12px 0 40px rgba(46,28,21,0.14);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 200;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links span.sep { display: none; }
}
