/* =========================================================================
   Amy Woh, LMFT — Design System
   Direction: "Warm Earthen" — terracotta, sand, cream, editorial serif.
   Hand-coded, dependency-free. One stylesheet shared across all pages.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* Surfaces */
  --bone:        #FBF6EE;   /* primary page background */
  --cream:       #F4EADB;   /* alternating section background */
  --sand:        #EADBC6;   /* cards, subtle blocks */
  --clay:        #E6C9B3;   /* soft accent fills */

  /* Ink */
  --espresso:    #33271F;   /* headings + primary text */
  --cocoa:       #5C4B3E;   /* body text, muted */
  --stone:       #8B7B6D;   /* captions, meta */

  /* Accent */
  --terracotta:      #A64B29;  /* primary accent / buttons (AA on white) */
  --terracotta-deep: #863A1E;  /* hover */
  --ochre:           #C08A4A;  /* secondary warm accent */
  --sage:            #6F7D62;  /* balancing cool accent (used sparingly) */

  /* Lines & shadow */
  --line:        rgba(51, 39, 31, 0.14);
  --line-soft:   rgba(51, 39, 31, 0.08);
  --shadow-sm:   0 1px 2px rgba(51,39,31,0.06), 0 6px 18px rgba(51,39,31,0.05);
  --shadow-md:   0 8px 30px rgba(51,39,31,0.10);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --maxw:        1180px;
  --maxw-narrow: 760px;
  --gutter:      clamp(1.25rem, 5vw, 4rem);
  --section-y:   clamp(3.5rem, 8vw, 7rem);
  --radius:      14px;
  --radius-lg:   26px;
}

/* ---- Reset-ish -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--cocoa);
  font-family: var(--sans);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-deep); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--espresso);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.8vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--espresso); font-weight: 700; }

/* ---- Utilities -------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--maxw-narrow); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }
.section--ink   { background: var(--espresso); color: #E9DECE; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #FBF6EE; }
.center { text-align: center; }
.mandarin { font-family: var(--sans); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
  margin: 0 0 1rem;
}
.section--ink .eyebrow { color: var(--ochre); }

.lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); color: var(--cocoa); line-height: 1.6; }
.muted { color: var(--stone); }

/* Decorative short rule */
.rule { width: 54px; height: 2px; background: var(--terracotta); border: 0; margin: 1.5rem 0; }
.center .rule { margin-inline: auto; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.6rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: #fff; }
.btn--primary:hover { background: var(--terracotta-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--espresso); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn--light { background: var(--bone); color: var(--espresso); }
.btn--light:hover { background: #fff; color: var(--terracotta-deep); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header / Nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name {
  font-family: var(--serif); font-weight: 600; font-size: 1.24rem;
  color: var(--espresso); line-height: 1; letter-spacing: -0.01em;
}
.brand__name small {
  display: block; font-family: var(--sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.6rem; color: var(--stone); margin-top: 4px;
}
.nav__links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--cocoa); font-weight: 600; font-size: 0.96rem;
  position: relative; padding-block: 4px;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--espresso); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--terracotta); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--espresso);
}
.nav__toggle svg { width: 26px; height: 26px; }

/* ---- Hero ------------------------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: var(--section-y); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title { margin-bottom: 1.2rem; }
.hero__title em { font-style: italic; color: var(--terracotta); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }
.hero__meta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.hero__meta div { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: var(--cocoa); font-weight: 600; }
.hero__meta svg { width: 18px; height: 18px; color: var(--terracotta); flex: none; }

.portrait {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--clay), var(--sand));
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(251,246,238,0.94); border-radius: 12px;
  padding: 0.7rem 1rem; box-shadow: var(--shadow-sm);
  font-size: 0.82rem; line-height: 1.35;
}
.portrait__badge b { color: var(--espresso); display: block; font-family: var(--serif); font-size: 1rem; }

/* ---- Generic grids & cards ------------------------------------------- */
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bone); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-sm); height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.section--cream .card, .section--sand .card { background: var(--bone); }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--clay); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--clay); color: var(--terracotta-deep); margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.98rem; }
.card__more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.92rem; margin-top: 1rem; }

/* Numbered "problem" list */
.feelings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2.4rem; margin-top: 2rem; }
.feelings li {
  list-style: none; position: relative; padding-left: 2rem; font-size: 1.05rem; color: var(--cocoa);
}
.feelings li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid var(--terracotta);
}

/* Value / fact row */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.fact { text-align: center; padding: 1.4rem 0.75rem; }
.fact b { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); color: var(--terracotta); display: block; line-height: 1; }
.fact span { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: var(--cocoa); font-weight: 600; }

/* Bilingual band */
.bilingual { display: flex; align-items: center; gap: clamp(1.5rem,4vw,3rem); flex-wrap: wrap; justify-content: center; text-align: center; }
.bilingual .zh { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); color: #FBF6EE; }

/* Split content (about / approach) */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split--reverse { grid-template-columns: 1.1fr 0.9fr; }
.split .portrait { aspect-ratio: 4/5; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.4rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.step__num {
  counter-increment: step; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--terracotta); color: #fff;
  font-family: var(--serif); font-size: 1.3rem; flex: none;
}
.step__num::before { content: counter(step); }

/* Definition list / logistics */
.dl { display: grid; gap: 0; }
.dl__row { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.dl__row:last-child { border-bottom: 1px solid var(--line); }
.dl__row dt { font-family: var(--serif); color: var(--espresso); font-size: 1.1rem; }
.dl__row dd { margin: 0; }

/* Pricing / fee card */
.fee-card {
  background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: var(--shadow-md); max-width: 480px;
}
.fee-card .price { font-family: var(--serif); font-size: clamp(2.4rem,2rem+2vw,3.4rem); color: var(--espresso); line-height: 1; }
.fee-card .price small { font-size: 1rem; color: var(--stone); font-family: var(--sans); font-weight: 600; }
.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.98rem; }
.checklist svg { width: 20px; height: 20px; color: var(--sage); margin-top: 3px; flex: none; }

/* FAQ / accordion */
.faq { max-width: var(--maxw-narrow); margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 0.4rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.1rem,1rem+0.4vw,1.3rem); color: var(--espresso);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.6rem; color: var(--terracotta); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > *:not(summary) { padding-bottom: 1.2rem; color: var(--cocoa); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.tag {
  font-size: 0.85rem; font-weight: 600; color: var(--cocoa);
  background: var(--clay); border-radius: 999px; padding: 0.4rem 0.9rem;
}
.section--ink .tag { background: rgba(255,255,255,0.1); color: #E9DECE; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--espresso); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 1rem; color: var(--espresso);
  background: var(--bone); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0.8rem 1rem; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(166,75,41,0.14);
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.contact-list .ci {
  width: 44px; height: 44px; border-radius: 12px; background: var(--clay);
  display: grid; place-items: center; color: var(--terracotta-deep); flex: none;
}
.contact-list .ci svg { width: 22px; height: 22px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1.6rem; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem,4vw,3rem); }
.page-hero .eyebrow { margin-bottom: 0.8rem; }
.page-hero p { max-width: 60ch; }

/* Notice / callout */
.note {
  background: var(--clay); border-left: 4px solid var(--terracotta);
  border-radius: 0 12px 12px 0; padding: 1.1rem 1.4rem; font-size: 0.95rem; color: var(--espresso);
}
.placeholder-flag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: #fff; background: var(--sage);
  padding: 0.15rem 0.5rem; border-radius: 5px; vertical-align: middle;
}

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--espresso); color: #C9BBAC; padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.site-footer a { color: #E4D7C7; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand .brand__name { color: #FBF6EE; }
.footer-brand p { font-size: 0.92rem; margin-top: 1rem; max-width: 30ch; }
.footer-col h4 { color: #FBF6EE; font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.94rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.82rem; color: #9C8D7E;
}
.crisis { font-size: 0.82rem; color: #9C8D7E; margin-top: 1.5rem; max-width: 52ch; }
.crisis strong { color: #E4D7C7; }

/* ---- Motion ----------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid, .split, .split--reverse, .contact-grid { grid-template-columns: 1fr; }
  .split .portrait, .hero .portrait { max-width: 440px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav[data-open="true"] .nav__links {
    display: flex; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column;
    align-items: flex-start; gap: 0; background: var(--bone); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav[data-open="true"] .nav__links li { width: 100%; }
  .nav[data-open="true"] .nav__links a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .grid--2, .grid--3, .feelings { grid-template-columns: 1fr; }
  .dl__row { grid-template-columns: 1fr; gap: 0.3rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card--link:hover { transform: none; }
}
