/* ============================================================
   Sama Wellness — design system stylesheet
   Drop-in replacement for assets/css/style.css
   Authored from the approved brand system. See BRAND.md.
   Hero direction: 2A (lockup on cream, photo held beside).
   Type: Bodoni Moda display / Marcellus sub-display / Jost UI.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* grounds */
  --parchment:      #F7EEDF;
  --sand:           #EFE2C8;
  --board-cream:    #E4D8C4;

  /* clay family */
  --clay-deep:      #7E3220;
  --clay-deeper:    #6A2A1B;   /* hover only */
  --terracotta:     #B5502F;
  --apricot:        #D98456;
  --pattern-light:  #E8B98F;

  /* teal accent — small marks only */
  --teal-deep:      #3E6E67;
  --teal-soft:      #8FB3AC;

  /* ink */
  --ink:            #2C2620;
  --body:           #4A4038;
  --muted:          #6B5F53;
  --sage:           #5C6448;

  /* hairlines */
  --rule:           rgba(126, 50, 32, 0.20);
  --rule-strong:    rgba(126, 50, 32, 0.30);

  /* type */
  --font-display:   'Bodoni Moda', Georgia, serif;
  --font-sub:       'Marcellus', Georgia, serif;
  --font-ui:        'Jost', system-ui, -apple-system, sans-serif;

  /* spacing scale */
  --sp-xs:  8px;
  --sp-sm:  14px;
  --sp-md:  24px;
  --sp-lg:  40px;
  --sp-xl:  56px;
  --sp-2xl: 72px;

  --gutter: 56px;
  --maxw:   1280px;
}

@media (max-width: 780px) {
  :root { --gutter: 24px; }
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--board-cream);
  color: var(--body);
  font-family: var(--font-ui);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--clay-deep); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--terracotta); }

/* NOTHING is rounded in this system. No shadows. */
button, input, textarea, select { font: inherit; border-radius: 0; }

.page {
  max-width: var(--maxw);
  margin-inline: auto;
  background: var(--parchment);
  overflow-x: hidden;
}

.container { padding-inline: var(--gutter); }

/* ---------- 3. Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 3.9rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

/* Sub-display: use for EVERY heading below the fold.
   Bodoni's hairlines vanish under ~40px on textured cream —
   Marcellus has even strokes and stays legible. */
.headline {
  font-family: var(--font-sub);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.14;
  color: var(--ink);
  margin: 0;
}

.title {
  font-family: var(--font-sub);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.24;
  color: var(--ink);
  margin: 0;
}

.lede {
  font-size: 1.09rem;
  line-height: 1.65;
  max-width: 46ch;
  margin: 0;
  text-wrap: pretty;
}

.body-copy {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 64ch;
  margin: 0;
  text-wrap: pretty;
}

/* wide-tracked caps: the structural voice of the system */
.label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin: 0;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0;
}

.caption { font-size: 0.8125rem; color: var(--muted); }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.875rem);
  line-height: 1.36;
  color: var(--ink);
  max-width: 38ch;
  margin: 0;
  text-wrap: pretty;
}

.sanskrit { font-family: var(--font-sub); font-size: 2.875rem; line-height: 1; color: var(--parchment); }

/* ---------- 4. Lockup ---------- */
/* Stacked lockup appears at FULL SIZE ONCE — the home hero.
   Everywhere else use .brand (horizontal). */
.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lockup__mark { width: 78px; margin-bottom: 14px; }
.lockup__word {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.125rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--ink);
  /* tracked caps need a matching left margin to stay optically centered */
  margin-left: 0.22em;
}
.lockup__sub {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.lockup__sub span {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-left: 0.44em;
}
.lockup__rule { width: 34px; height: 1px; background: rgba(126, 50, 32, 0.4); margin: 24px 0; }
.lockup__credit { font-family: var(--font-sub); font-size: 1rem; color: var(--muted); margin-top: 9px; }

/* teal diamond — the accent's main home */
.diamond {
  width: 5px; height: 5px;
  background: var(--teal-deep);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.diamond--sm { width: 4px; height: 4px; }
.diamond--on-dark { background: var(--teal-soft); }

/* horizontal brand — nav and footer */
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 26px; }
.brand__word {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand--on-dark .brand__word { color: var(--parchment); }

/* motto row — once per page at most */
.motto { display: flex; align-items: center; gap: 14px; }
.motto span {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.motto--on-dark span { color: var(--pattern-light); }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--parchment);
  border-bottom: 1px solid var(--rule);
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 22px;
}
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav__links a:hover { color: var(--terracotta); }
.nav__links a[aria-current="page"] { color: var(--clay-deep); border-bottom-color: var(--terracotta); }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__toggle {
    display: block;
    background: none;
    border: 1px solid var(--clay-deep);
    color: var(--clay-deep);
    padding: 10px 16px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav__links {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--rule);
    padding: var(--sp-md) var(--gutter) var(--sp-lg);
  }
  .nav__links[data-open="true"] { display: flex; }
  .nav__links a { padding-block: 14px; min-height: 44px; display: flex; align-items: center; }
}

/* ---------- 6. Hero (direction 2A) ---------- */
/* Lockup on a cream field, photo held UNCOVERED beside it.
   Hard vertical seam at 62.5%. Never set type over the photo. */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: 660px;
  background: var(--parchment);
}
.hero__body {
  padding: 64px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-lg);
}
.hero__body > .lockup { margin-block: auto; }
.hero__photo {
  background: url('../img/hero-dharma-wheel.jpg') center right / cover no-repeat;
}
.hero--compact { min-height: 400px; }
.hero--compact .hero__body { justify-content: center; align-items: flex-start; text-align: left; gap: var(--sp-sm); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { min-height: 300px; }
}

/* Optional variant 2C — one continuous photo under an asymmetric veil.
   The fade must NOT be linear 100->0: it holds ~95% across the type
   column then drops fast between 55-70%, or the type goes muddy. */
.hero--bleed { position: relative; background: url('../img/hero-dharma-wheel.jpg') center right / cover no-repeat; }
.hero--bleed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(247,238,223,0.97) 0%,
    rgba(247,238,223,0.95) 30%,
    rgba(247,238,223,0.88) 47%,
    rgba(247,238,223,0.60) 58%,
    rgba(247,238,223,0.22) 68%,
    rgba(247,238,223,0.04) 82%,
    rgba(247,238,223,0.00) 100%);
}
.hero--bleed > * { position: relative; }
.hero--bleed .hero__photo { background: none; }

/* ---------- 7. Pattern bands ---------- */
/* Sari border: ogee trellis + dashed shadow line + 8-petal lotus
   medallion + teal keystones. Tiles seamlessly both axes.
   RULE: structural punctuation only. Never behind body copy.
   Never more than three bands on one page. */
.pattern-band {
  height: 56px;
  background-color: var(--clay-deep);
  background-image: url('../img/pattern-sari-light.svg');
  background-size: auto 100%;
  background-repeat: repeat-x;
}
.pattern-band--divider {
  height: 44px;
  background-color: var(--sand);
  background-image: url('../img/pattern-sari-terracotta.svg');
}
.pattern-band--tall { height: 72px; }

/* pattern flanking centered type */
.meaning-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 96px;
  background: var(--clay-deep);
}
.meaning-strip::before,
.meaning-strip::after {
  content: '';
  align-self: stretch;
  background: url('../img/pattern-sari-light.svg') center / auto 100% repeat-x;
  opacity: 0.85;
}
.meaning-strip__text {
  padding-inline: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  color: var(--parchment);
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

/* ---------- 8. Sections ---------- */
.section { padding-block: var(--sp-2xl); }
.section--sand      { background: var(--sand); }
.section--parchment { background: var(--parchment); }
.section--clay      { background: var(--clay-deep); color: rgba(247,238,223,0.92); }
.section--clay .headline,
.section--clay .display { color: var(--parchment); }
.section--clay .label   { color: var(--pattern-light); }
.section--clay .eyebrow { color: var(--teal-soft); }
.section--ruled     { border-bottom: 1px solid rgba(126,50,32,0.18); }
.text-center { text-align: center; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* the standard editorial two-column: title left, prose right */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: var(--sp-xl);
  align-items: start;
}
.split--wide  { grid-template-columns: 0.8fr 1.2fr; }
.split--even  { grid-template-columns: 1fr 1fr; }
.split--flip  { grid-template-columns: 1fr 1.4fr; align-items: center; }

@media (max-width: 900px) {
  .split, .split--wide, .split--even, .split--flip { grid-template-columns: 1fr; gap: var(--sp-md); }
}

.rule { width: 64px; height: 1px; background: var(--teal-deep); }

/* ---------- 9. Card grid ---------- */
/* Hairline grid: 1px gap over a rule-colored bed. No borders, no radius. */
.grid-hairline {
  display: grid;
  gap: 1px;
  background: var(--rule);
}
.grid-hairline--3 { grid-template-columns: repeat(3, 1fr); }
.grid-hairline--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-hairline--3, .grid-hairline--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--sand);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s ease;
}
.card--parchment { background: var(--parchment); }
a.card:hover, .card--link:hover { background: var(--board-cream); }
.card--clay { background: var(--clay-deep); color: rgba(247,238,223,0.88); }
.card--clay .title { color: var(--parchment); }
.card--clay:hover { background: var(--clay-deeper); }
.card p { margin: 0; font-size: 0.97rem; line-height: 1.62; }

/* ---------- 10. Lists ---------- */
/* Symptom lists read as a hairline-ruled ledger, not bullets. */
.care-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.care-list li {
  font-size: 1rem;
  line-height: 1.5;
  border-top: 1px solid var(--rule);
  padding-top: 11px;
}
.section--clay .care-list li {
  color: rgba(247,238,223,0.92);
  border-top-color: rgba(232,185,143,0.4);
}

/* ---------- 11. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 30px;
  min-height: 44px;           /* mobile hit target */
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn--primary { background: var(--terracotta); color: var(--parchment); }
.btn--primary:hover { background: var(--clay-deep); color: var(--parchment); }

.btn--deep { background: var(--clay-deep); color: var(--parchment); }
.btn--deep:hover { background: var(--clay-deeper); color: var(--parchment); }

.btn--ghost { border-color: var(--clay-deep); color: var(--clay-deep); background: transparent; }
.btn--ghost:hover { background: var(--clay-deep); color: var(--parchment); }

.btn--on-dark { background: var(--parchment); color: var(--clay-deep); }
.btn--on-dark:hover { background: var(--pattern-light); color: var(--clay-deep); }

.btn--outline-dark { border-color: rgba(247,238,223,0.7); color: var(--parchment); background: transparent; }
.btn--outline-dark:hover { background: var(--parchment); color: var(--clay-deep); }

.btn--sm { padding: 13px 24px; font-size: 0.72rem; }

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

/* ---------- 12. FAQ accordion ---------- */
.faq { max-width: 860px; }
.faq-item { border-top: 1px solid var(--rule-strong); }
.faq-item:last-child { border-bottom: 1px solid var(--rule-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding-block: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus {
  font-size: 1.375rem;
  line-height: 1;
  color: var(--teal-deep);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-item > p {
  margin: 0 0 28px;
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---------- 13. Contact ---------- */
.contact-card { background: var(--sand); padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contact-card .big-link { font-family: var(--font-sub); font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.contact-card .big-link--sm { font-size: 1.25rem; color: var(--clay-deep); }
.contact-card .big-link:hover { color: var(--terracotta); }

/* ---------- 14. Footer ---------- */
/* Full pattern field under a clay veil — the one place the pattern
   tiles in both directions. */
.site-footer {
  background-color: var(--clay-deep);
  background-image: url('../img/pattern-sari-light.svg');
  background-size: 120px 144px;
  background-repeat: repeat;
  color: rgba(247,238,223,0.85);
}
.site-footer__veil { background: rgba(126, 50, 32, 0.90); padding: var(--sp-xl) 0 var(--sp-md); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--sp-lg);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--pattern-light);
  margin: 0 0 11px;
}
.site-footer p { margin: 0; font-size: 0.94rem; line-height: 1.6; }
.site-footer a { color: rgba(247,238,223,0.88); }
.site-footer a:hover { color: var(--pattern-light); }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-sm); }
.footer__nav a { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding-block: var(--sp-md);
  border-top: 1px solid rgba(232,185,143,0.28);
  font-size: 0.78rem;
  color: rgba(247,238,223,0.68);
}

/* ---------- 15. Utilities ---------- */
.stack   { display: flex; flex-direction: column; gap: var(--sp-sm); }
.stack-lg{ display: flex; flex-direction: column; gap: var(--sp-md); }
.mx-auto { margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- 16. Site build additions ----------
   Small connective rules the base system implies but doesn't spell out
   (spacing between adjacent components, a couple of named one-off
   sizes called out explicitly in the handoff spec). Tokens only —
   nothing here introduces a new color. */

.lockup > .lede { margin-top: var(--sp-md); }
.lockup > .btn-row { margin-top: var(--sp-lg); }

.split .rule { margin-bottom: var(--sp-sm); }

/* सम meaning-block paragraph: spec calls out 18px / 62ch explicitly */
.meaning-copy { font-size: 1.125rem; line-height: 1.7; max-width: 62ch; margin: 0; text-wrap: pretty; }

/* shared centered closer pattern (Home / Areas of Care / FAQ / About / Contact) */
.closer .headline { max-width: 26ch; margin-inline: auto; }
.closer .lede { margin-inline: auto; margin-top: var(--sp-sm); }
.closer .btn, .closer .btn-row { margin-top: var(--sp-lg); }

/* diamond + small tracked terracotta caps line, e.g. compact-hero credentials */
.credential-row { display: flex; align-items: center; gap: 10px; margin-top: var(--sp-xs); }
.credential-row__text {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.section--clay .credential-row__text { color: var(--pattern-light); }

/* diamond + plain note, e.g. "Online booking is coming soon." */
.diamond-note { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); margin-top: var(--sp-xs); }

/* three plain (non-hairline) list columns — the session-modalities grid */
.grid-plain--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl); }
@media (max-width: 900px) { .grid-plain--3 { grid-template-columns: 1fr; } }

.pull-quote-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--sp-md); }

/* anchor-scroll offset for in-page targets under the sticky header */
.care-section { scroll-margin-top: calc(var(--sp-2xl) + var(--sp-sm)); }

/* persistent affordance arrow on link-cards — the sand→board-cream hover
   shift alone doesn't read as "clickable" at rest or on touch devices */
.card--link .card__arrow {
  margin-top: auto;
  padding-top: var(--sp-xs);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--terracotta);
}
.card--clay .card__arrow { color: var(--pattern-light); }
