/* ════════════════════════════════════════════════════════════
   Dahan Wellness Center — shared stylesheet (inner pages)
   Mirrors the homepage tokens, nav, footer, and animation patterns.
   ════════════════════════════════════════════════════════════ */

:root {
  --cream: #F7F4EE;
  --green: #2E4533;
  --green-hover: #3A5A44;
  --sage: #5E7861;
  --gold: #B8893B;
  --gold-bright: #C9A04E;
  --ink: #3A3A36;
}

html, body { margin: 0; padding: 0; overflow-x: hidden; background: var(--cream); }
* { box-sizing: border-box; }
::selection { background: rgba(184,137,59,0.25); }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Sitewide link safety — links never fall back to browser default blue/underline/visited-purple.
   Branded links (.nav-link, .btn, .site-footer__col a, etc.) override below. */
a { color: inherit; text-decoration: none; }
a:link, a:visited, a:hover, a:active { text-decoration: none; }

/* ── Layout helpers ── */
.wrap     { max-width: 1200px; margin: 0 auto; }
.narrow   { max-width: 920px; margin: 0 auto; }
.text-col { max-width: 860px; margin: 0 auto; }
.section  { padding: clamp(90px, 11vw, 160px) clamp(32px, 5vw, 72px); }
.section--tight { padding: clamp(56px, 7vw, 100px) clamp(32px, 5vw, 72px); }

/* ════════════════ NAVIGATION ════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(32px, 5vw, 72px); height: 104px; background: var(--cream);
}
.site-nav__logo img { height: 74px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(32px, 3.5vw, 56px); }
.nav-link {
  position: relative;
  font-size: 17px; font-weight: 500; color: var(--green);
  text-decoration: none; cursor: pointer; letter-spacing: 0.015em;
  transition: color 0.2s ease; padding-bottom: 4px;
}
.nav-link:hover { color: var(--sage); }
.nav-link.active { color: var(--green); }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--gold);
}
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500; color: var(--cream); background: var(--green);
  padding: 14px 30px; border-radius: 6px; text-decoration: none; cursor: pointer;
  letter-spacing: 0.01em; transition: all 0.2s ease;
}
.nav-cta:hover { background: var(--green-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(46,69,51,0.25); }
.mobile-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0;
}
.page-body { padding-top: 104px; }  /* clear the fixed nav */

@media (max-width: 768px) {
  .nav-links, .nav-cta.nav-links { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
}

/* ════════════════ EYEBROW ════════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.eyebrow--center { display: flex; justify-content: center; }
.eyebrow__line {
  width: 0; height: 1.5px; background: var(--gold);
  transition: width 0.6s ease 0.1s;
}
.eyebrow.in .eyebrow__line { width: 32px; }
.eyebrow__label {
  font-size: 12px; font-weight: 600; color: var(--sage);
  letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.eyebrow.in .eyebrow__label { opacity: 1; transform: none; }
.eyebrow--on-green .eyebrow__label { color: var(--gold-bright); }
.eyebrow--on-green .eyebrow__line { background: var(--gold-bright); }

/* ════════════════ HEADINGS / TEXT ════════════════ */
.h-serif {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  color: var(--green); line-height: 1.12; margin: 0; text-wrap: balance;
}
.h-xl { font-size: clamp(40px, 5vw, 62px); }
.h-lg { font-size: clamp(34px, 3.5vw, 48px); }
.h-md { font-size: clamp(26px, 2.6vw, 34px); }
.lead {
  font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 400;
  color: var(--ink); line-height: 1.8; margin: 0; text-wrap: pretty;
}
.lead--sage { color: var(--sage); }
.prose p {
  font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 400;
  color: var(--ink); line-height: 1.85; margin: 0 0 28px 0;
}
.prose p:last-child { margin-bottom: 0; }

/* word-by-word heading reveal */
.h-words .word {
  display: inline-block; opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.h-words.in .word { opacity: 1; transform: none; }

/* ════════════════ BUTTONS ════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 500;
  color: var(--cream); background: var(--green); padding: 18px 42px;
  border-radius: 6px; text-decoration: none; cursor: pointer;
  letter-spacing: 0.01em; transition: all 0.2s ease;
}
.btn:hover { background: var(--green-hover); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(46,69,51,0.22); }
.btn--cream { color: var(--green); background: var(--cream); }
.btn--cream:hover { background: #ffffff; box-shadow: 0 4px 20px rgba(0,0,0,0.18); }
.btn--lg { font-size: 17px; padding: 20px 48px; }

/* ════════════════ REVEAL (cards / paragraphs / images) ════════════════ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.65,0,0.35,1);
}
.reveal-img.in { clip-path: inset(0 0 0 0); }

/* ════════════════ EDITORIAL LIST (numbered rows) ════════════════ */
.why-head { text-align: center; margin-bottom: clamp(56px, 6vw, 80px); }
.why-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.why-head.in .why-eyebrow { opacity: 1; transform: none; }
.why-eyeline { width: 0; height: 1.5px; background: var(--gold); transition: width 0.6s ease 0.1s; }
.why-head.in .why-eyeline { width: 32px; }
.why-eyebrow span {
  font-size: 12px; font-weight: 600; color: var(--sage);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.why-heading { font-family: 'Cormorant Garamond', serif; font-size: clamp(34px, 3.5vw, 48px); font-weight: 500; color: var(--green); line-height: 1.12; margin: 0; }
.why-word { display: inline-block; opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.why-head.in .why-word { opacity: 1; transform: none; }

.why-list { max-width: 860px; margin: 0 auto; }
.why-row {
  position: relative; display: grid; grid-template-columns: clamp(56px, 6vw, 88px) 1fr;
  gap: clamp(28px, 5vw, 56px); align-items: start; text-align: left;
  padding: clamp(36px, 4vw, 52px) 0;
}
.why-row::before { content: ''; position: absolute; top: 0; left: 0; height: 1px; width: 0; background: rgba(184,137,59,0.45); transition: width 1s ease; }
.why-row.in::before { width: 100%; }
.why-row:last-child::after { content: ''; position: absolute; bottom: 0; left: 0; height: 1px; width: 0; background: rgba(184,137,59,0.45); transition: width 1s ease 0.1s; }
.why-row.in:last-child::after { width: 100%; }

.why-num {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(56px, 6vw, 88px);
  font-weight: 500; color: var(--gold); line-height: 1;
  opacity: 0; transform: translateX(-24px) scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34,1.56,0.64,1), color 0.3s ease;
}
.why-row.in .why-num { opacity: 1; transform: translateX(0) scale(1); }
.why-body { opacity: 0; transform: translateX(28px); transition: opacity 0.7s ease 0.12s, transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.12s; }
.why-row.in .why-body { opacity: 1; transform: none; }
.why-h { font-family: 'Cormorant Garamond', serif; font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; color: var(--green); margin: 0 0 12px 0; line-height: 1.2; transition: color 0.3s ease; }
.why-p { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 400; color: var(--ink); line-height: 1.7; margin: 0; max-width: 62ch; }
.why-p + .why-p { margin-top: 16px; }
.why-list-inset { margin: 16px 0 0 0; padding: 0; list-style: none; }
.why-list-inset li {
  position: relative; font-family: 'DM Sans', sans-serif; font-size: 16px;
  color: var(--ink); line-height: 1.6; padding: 6px 0 6px 22px;
}
.why-list-inset li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.why-row:hover .why-num { transform: translateX(6px) scale(1); }
.why-row:hover .why-h { color: var(--green-hover); }

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

/* ════════════════ GREEN BAND ════════════════ */
.green-band {
  position: relative; overflow: hidden; background: var(--green);
  padding: clamp(90px, 11vw, 160px) clamp(32px, 5vw, 72px);
}
.green-band .h-serif { color: var(--cream); }
.green-band .prose p { color: rgba(247,244,238,0.82); }
.on-green-title { color: var(--cream); }
.on-green-text  { color: rgba(247,244,238,0.8); }

/* ════════════════ CARD / HIGHLIGHT BLOCK ════════════════ */
.card {
  background: #FCFAF5; border: 1px solid rgba(184,137,59,0.18);
  border-radius: 10px; padding: clamp(28px, 4vw, 48px);
}
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px);
}
.stat { text-align: center; }
.stat__k { font-family: 'Cormorant Garamond', serif; font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: var(--green); line-height: 1.25; margin: 0 0 6px 0; }
.stat__v { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--sage); letter-spacing: 0.04em; margin: 0; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: 1fr; gap: 28px; } }

/* pull-quote */
.pull-quote {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(26px, 3.2vw, 40px); font-weight: 500; color: var(--green);
  line-height: 1.3; text-align: center; max-width: 860px; margin: 0 auto;
}

/* ════════════════ FOOTER ════════════════ */
.site-footer { background: var(--cream); padding: clamp(56px, 6vw, 80px) clamp(32px, 5vw, 72px) 40px; }
.site-footer__top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(32px, 4vw, 64px); margin-bottom: 56px; }
.site-footer__brand { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: var(--green); letter-spacing: 0.02em; margin-bottom: 16px; }
.site-footer p { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 400; color: rgba(46,69,51,0.6); line-height: 1.6; margin: 0; max-width: 280px; }
.site-footer h4 { font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; color: rgba(46,69,51,0.5); letter-spacing: 0.15em; text-transform: uppercase; margin: 0 0 20px 0; }
.site-footer__col { display: flex; flex-direction: column; gap: 14px; }
.site-footer__col a, .site-footer__col span { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 400; color: rgba(46,69,51,0.8); text-decoration: none; cursor: pointer; transition: color 0.2s ease; line-height: 1.5; }
.site-footer__col a:hover { color: var(--green); }
.site-footer__bottom { border-top: 1px solid rgba(46,69,51,0.12); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.site-footer__bottom span { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 400; color: rgba(46,69,51,0.45); }
@media (max-width: 768px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ════════════════ FALLING LEAVES (closing CTA) ════════════════ */
#cta-leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.leaf { position: absolute; top: 0; will-change: transform; animation-name: leafFall; animation-timing-function: linear; animation-iteration-count: infinite; }
.leaf-scale { display: block; }
.leaf-flutter { display: block; will-change: transform; transform-origin: center; animation-name: leafFlutter; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
@keyframes leafFall {
  0%   { transform: translateY(-60px); opacity: 0; }
  12%  { opacity: 0.85; }
  85%  { opacity: 0.85; }
  100% { transform: translateY(var(--fall-dist, 760px)); opacity: 0; }
}
@keyframes leafFlutter {
  0%   { transform: rotate(-20deg) translateX(-11px); }
  50%  { transform: rotate(22deg)  translateX(13px); }
  100% { transform: rotate(-20deg) translateX(-11px); }
}
@media (prefers-reduced-motion: reduce) { #cta-leaves { display: none; } }

/* ════════════════ VINE TIMELINE ════════════════ */
.vstem { fill: none; stroke-linecap: round; stroke-linejoin: round; }
#vine-steps { position: relative; z-index: 1; display: flex; flex-direction: column; }
.vine-step { display: grid; grid-template-columns: 1fr clamp(56px, 8vw, 96px) 1fr; align-items: start; padding-bottom: clamp(70px, 9vw, 120px); }
.vine-step:last-child { padding-bottom: 0; }
.vine-content { max-width: 460px; }
.vine-step.left .vine-content  { grid-column: 1; margin-left: auto;  text-align: right; }
.vine-step.right .vine-content { grid-column: 3; margin-right: auto; text-align: left; }
.vine-eyebrow { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; }
.vine-h { font-family: 'Cormorant Garamond', serif; font-size: clamp(24px, 3vw, 34px); font-weight: 500; color: var(--green); margin: 0 0 16px 0; line-height: 1.15; }
.vine-p { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 400; color: var(--ink); line-height: 1.7; margin: 0; }
.vine-p + .vine-p { margin-top: 14px; }
.vine-list { margin: 14px 0 0 0; padding: 0; list-style: none; }
.vine-step.left .vine-list { display: inline-block; text-align: left; }
.vine-list li { position: relative; font-family: 'DM Sans', sans-serif; font-size: 16px; color: var(--ink); line-height: 1.6; padding: 5px 0 5px 22px; }
.vine-list li::before { content: ''; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

@media (max-width: 768px) {
  #vine-col { right: auto !important; width: 56px !important; }
  .vine-step { grid-template-columns: 1fr; }
  .vine-step.left .vine-content,
  .vine-step.right .vine-content {
    grid-column: 1; max-width: none; margin: 0;
    text-align: left; padding-left: clamp(56px, 16vw, 88px);
  }
  .vine-step.left .vine-list { display: block; }
}

/* ════════════════ IMAGE PLACEHOLDER ════════════════ */
.img-ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: linear-gradient(150deg, #EFE9DC 0%, #D6DfD2 60%, #C2D0C0 100%);
  border-radius: 8px; overflow: hidden; color: var(--sage);
}
/* real photo overlay — covers the placeholder gradient/label; if it 404s, onerror hides it and the label shows */
.img-ph .img-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.img-ph svg { opacity: 0.6; }
.img-ph span { font-family: 'DM Sans', sans-serif; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(46,69,51,0.55); }
.img-ph--portrait { aspect-ratio: 4/5; }
.img-ph--tall { aspect-ratio: 3/4; }
.img-ph--square { aspect-ratio: 1/1; }
.img-ph--wide { aspect-ratio: 16/10; }
.img-ph--hero { aspect-ratio: 16/7; width: 100%; }
.img-ph--map { aspect-ratio: 16/9; }
.img-ph--on-green { border: 1px solid rgba(255,255,255,0.16); }
.img-ph--on-green:has(.img-real) { border: none; }
.img-ph__note { font-size: 11px !important; color: rgba(46,69,51,0.42) !important; letter-spacing: 0.04em !important; }

/* ── Alternating image + text rows ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split__text { max-width: 520px; }
.split--rev .split__text { margin-left: auto; }
/* generic two-column that stacks on phones (e.g. contact details + map) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: stretch; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
@media (min-width: 861px) { .sticky-media { position: sticky; top: 132px; } }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split__text { max-width: none; }
}

/* ── Full-bleed band accent image (behind green overlay) ── */
.band-media { position: absolute; inset: 0; z-index: 0; }
.band-media .img-ph { width: 100%; height: 100%; border-radius: 0; opacity: 0.16; }
.green-band > .band-media + * , .green-band > * { position: relative; }

/* ════════════════ PAGE-LOAD REVEAL (above-fold hero image) ════════════════ */
/* Used only for elements visible at page load — fires via setTimeout, not IO. */
.reveal-load {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.65,0,0.35,1);
}
.reveal-load.in { clip-path: inset(0 0 0 0); }

/* ════════════════ REDUCED MOTION ════════════════ */
@media (prefers-reduced-motion: reduce) {
  .eyebrow__label, .eyebrow__line,
  .h-words .word, .why-word, .why-eyebrow, .why-num, .why-body,
  .reveal, .reveal-img, .reveal-load {
    opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important;
  }
  .eyebrow__line, .why-eyeline { width: 32px !important; transition: none !important; }
  .why-row::before, .why-row:last-child::after { width: 100% !important; transition: none !important; }
  .vstem { stroke-dashoffset: 0 !important; }
}

/* ════════════════ MOBILE NAV ════════════════ */
@media (max-width: 768px) {
  .site-nav { height: auto !important; min-height: 72px; padding: 0 20px !important; }
  .site-nav__logo img { height: 48px !important; }
  #mobile-nav { top: 72px !important; }
  .page-body { padding-top: 72px; }
}
