/* ============================================================
   Hua (Elena) Zhong, LMFT — profile site
   Palette: warm sage + cream + deep ink. Calm, clinical-but-human.
   ============================================================ */

:root {
  --sage-900: #2f4237;
  --sage-700: #4a6553;
  --sage-500: #6f8f78;
  --sage-300: #a9c1ac;
  --sage-100: #e4ede2;
  --cream:    #f7f4ec;
  --cream-2:  #fbf9f3;
  --ink:      #23271f;
  --ink-soft: #55605a;
  --line:     #e2ddd0;
  --gold:     #c08a3e;
  --white:    #ffffff;
  --shadow-sm: 0 1px 2px rgba(35, 39, 31, .06), 0 4px 14px rgba(35, 39, 31, .06);
  --shadow-md: 0 8px 30px rgba(35, 39, 31, .12);
  --radius:   16px;
  --radius-sm: 10px;
  --maxw:     1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--sage-700); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage-700); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
}
.brand-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.brand-cred { color: var(--sage-700); font-weight: 500; }

.nav-menu {
  list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0;
}
.nav-menu a {
  text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-menu a:hover { color: var(--ink); background: var(--sage-100); }
.nav-cta {
  background: var(--sage-700) !important; color: #fff !important; margin-left: 6px;
}
.nav-cta:hover { background: var(--sage-900) !important; }

.lang-switch a {
  border: 1.5px solid var(--sage-300); border-radius: 999px; padding: 6px 14px !important;
  font-weight: 600; color: var(--sage-900) !important;
}
.lang-switch a:hover { background: var(--sage-100); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sage-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sage-900); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--sage-900); border-color: var(--sage-300); }
.btn-ghost:hover { background: var(--sage-100); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 80% at 100% 0%, var(--sage-100) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 64px;
  display: grid; grid-template-columns: 1.35fr .9fr; gap: 48px; align-items: center;
}
.eyebrow {
  text-transform: none; letter-spacing: .01em; font-weight: 600; font-size: .9rem;
  color: var(--sage-700); margin: 0 0 16px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 18px; }
.hero h1 .nickname { color: var(--sage-700); font-style: italic; font-weight: 500; }
.credentials { color: var(--sage-700); font-weight: 500; font-size: .5em; letter-spacing: .01em; }
.tagline {
  font-family: var(--serif); font-size: clamp(1.2rem, 2.3vw, 1.5rem); font-style: italic;
  color: var(--sage-900); margin: 0 0 14px; line-height: 1.35;
}
.subtag { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 26px; max-width: 46ch; }

.hero-facts { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 8px; }
.hero-facts li { font-size: .98rem; color: var(--ink); }
.fact-label {
  display: inline-block; min-width: 96px; color: var(--sage-700); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-portrait { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.portrait-frame {
  position: relative; width: 100%; max-width: 320px; aspect-ratio: 4/5;
  border-radius: 24px; overflow: hidden; background: var(--sage-100);
  box-shadow: var(--shadow-md); border: 6px solid #fff;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback {
  position: absolute; inset: 0; display: none; place-content: center; text-align: center;
  color: var(--sage-700); font-weight: 600; font-size: 1rem;
}
.portrait-empty .portrait-fallback { display: grid; }
.portrait-fallback small { color: var(--ink-soft); font-weight: 400; font-size: .8rem; }
.portrait-caption { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Trust strip ---------- */
.trust { background: var(--sage-900); color: #eef2ea; }
.trust-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 28px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.trust-item { text-align: center; }
.trust-item strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: #fff; }
.trust-item span { font-size: .88rem; color: var(--sage-300); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section-inner.narrow { max-width: 760px; }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: var(--gold); margin: 0 0 10px;
}
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 18px; max-width: 20ch; }
.section-lead { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 32px; max-width: 56ch; }

.prose p { font-size: 1.1rem; color: #38403a; margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--sage-900); }

/* ---------- Chips ---------- */
.chip-grid { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-grid.featured { margin-bottom: 16px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: .95rem; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.chip-lead { background: var(--sage-700); color: #fff; border-color: var(--sage-700); font-weight: 600; }
.section .fine, .fine {
  font-size: .9rem; color: var(--ink-soft); margin: 18px 0 0; max-width: 60ch;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.2rem; margin: 0 0 10px; color: var(--sage-900); }
.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Detail grid ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.detail-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.detail-card h3 { font-size: 1.15rem; margin: 0 0 12px; color: var(--sage-900); }
.detail-card p { margin: 0 0 8px; color: var(--ink-soft); }
.detail-card p:last-child { margin-bottom: 0; }
.detail-card a { font-weight: 600; }
.detail-lead { font-family: var(--serif); font-size: 2rem; color: var(--ink); }
.detail-lead span { font-size: 1rem; color: var(--ink-soft); font-family: var(--sans); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--sage-900);
  padding: 16px 0; list-style: none; position: relative; padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--sage-500); font-weight: 400; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(100% 120% at 0% 0%, var(--sage-700) 0%, var(--sage-900) 60%);
  color: #fff;
}
.cta-inner { max-width: 760px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.cta-inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 14px; color: #fff; }
.cta-inner p { font-size: 1.15rem; color: var(--sage-100); margin: 0 0 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d1c8; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px; }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin: 0 0 6px; }
.footer-name span { color: var(--sage-300); font-size: 1rem; }
.footer-meta { font-size: .92rem; margin: 0 0 14px; color: #aeb8ad; }
.footer-fine { font-size: .82rem; color: #8b968b; max-width: 70ch; margin: 0; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-portrait { order: -1; }
  .portrait-frame { max-width: 260px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream-2); border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .25s ease, opacity .2s;
  }
  .nav-menu.open { max-height: 420px; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 12px 14px; }
  .nav-cta { text-align: center; margin: 6px 0 0 !important; }
  .nav[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav[data-open="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav[data-open="true"] .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .hero-inner { padding: 48px 20px 44px; }
  .card-grid, .detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
