/* ==========================================================
   Dr. Johnny K. Wong, PhD — site styles
   Palette: warm cream ground, deep ink text, dark walnut band
   Type: Newsreader (headings) + Inter (body)
   ========================================================== */

:root {
  --cream: #f7f4ed;
  --cream-deep: #efeae0;
  --paper: #fbf9f4;
  --ink: #2c2620;
  --ink-soft: #5a524a;
  --ink-mute: #8a8178;
  --line: #d9d2c5;
  --line-dark: #4a433c;
  --walnut: #2b2723;
  --walnut-text: #ede7db;
  --accent: #5f6f5a;        /* muted sage for small highlights */
  --accent-deep: #3f4c3b;
  --serif: "Newsreader", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1120px;
  --pad: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(40px, 6vw, 68px); text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
p { margin: 0 0 1.1em; }
em { font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--line); }
.lede { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; color: var(--ink); }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  transition: background .2s, color .2s, transform .15s;
  cursor: pointer;
}
.btn:hover { background: #17130f; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn.sm { padding: 10px 18px; font-size: 13px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--ink-mute); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 16px; border-top: 1px solid var(--line); }
  .nav-links li:first-child a { border-top: 0; }
  .nav-links .btn { margin-top: 14px; text-align: center; border-top: 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
  /* soft "mist" built from layered gradients, no image needed;
     swap in a photo with:  background: url(images/hero.jpg) center/cover;  */
  background:
    radial-gradient(ellipse 80% 55% at 25% 15%, rgba(255,255,255,0.85), transparent 65%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(255,255,255,0.55), transparent 65%),
    radial-gradient(ellipse 120% 60% at 50% 115%, rgba(118,106,90,0.75), transparent 70%),
    radial-gradient(ellipse 60% 40% at 15% 95%, rgba(150,138,120,0.5), transparent 70%),
    linear-gradient(180deg, #ece7dd 0%, #e2dbcf 45%, #cfc6b7 75%, #b7ac9b 100%);
}
.hero .wrap { position: relative; padding-block: 80px; }
.hero h1 { margin-bottom: 0; }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  max-width: 700px; margin: 0 auto;
}

/* Page hero (interior pages) */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(36px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(40px, 5.5vw, 62px); }
.page-hero p { max-width: 680px; }

/* ---------- Intro band ---------- */
.intro { text-align: center; }
.intro .lede { max-width: 760px; margin: 0 auto; }

/* ---------- Meet ---------- */
.meet-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: start;
}
.portrait {
  width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  margin: 0 auto; background: var(--cream-deep);
  box-shadow: 0 30px 60px -30px rgba(44,38,32,.35);
}
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px;
  border-top: 1px solid var(--line); padding-top: 32px; margin-top: 40px;
}
.facts h4 { font-size: 20px; margin-bottom: 6px; }
.facts p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.6; }
@media (max-width: 860px) {
  .meet-grid { grid-template-columns: 1fr; }
  .portrait { width: min(100%, 300px); order: -1; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Dark "where this begins" band ---------- */
.dark {
  background: var(--walnut); color: var(--walnut-text);
  position: relative;
}
.dark h2, .dark h3 { color: #fbf8f1; }
.dark .eyebrow { color: #a89f92; }
.dark::after {
  /* slanted bottom edge, like the reference site */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: var(--cream);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.dark .section { padding-bottom: calc(clamp(64px, 9vw, 120px) + 40px); }
.focus-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.focus-list li {
  display: grid; grid-template-columns: 60px 1fr 1.4fr; gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line-dark);
  text-decoration: none; color: inherit;
}
.focus-list li a { text-decoration: none; }
.focus-list .num { font-family: var(--serif); font-size: 18px; color: #a89f92; }
.focus-list h3 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); }
.focus-list p { margin: 0; font-size: 15px; color: #cfc7b9; line-height: 1.65; }
@media (max-width: 760px) {
  .focus-list li { grid-template-columns: 44px 1fr; }
  .focus-list p { grid-column: 2; }
}

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 44px; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px); text-align: center;
  display: flex; flex-direction: column; gap: 14px;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .price { font-family: var(--serif); font-size: 22px; margin-top: auto; padding-top: 18px; }
.card .price small { font-family: var(--sans); font-size: 13px; color: var(--ink-mute); display: block; }
.note {
  margin-top: 40px; max-width: 760px;
  border-left: 2px solid var(--line); padding-left: 24px;
}
.note strong { font-family: var(--serif); font-weight: 400; font-size: 20px; display: block; margin-bottom: 6px; }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Service detail rows ---------- */
.service {
  display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; }
.service .num { font-family: var(--serif); color: var(--ink-mute); font-size: 16px; margin-bottom: 8px; }
.service h2 { font-size: clamp(28px, 3.4vw, 38px); }
.service ul { padding-left: 20px; margin: 16px 0 0; color: var(--ink-soft); }
.service li { margin-bottom: 6px; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

/* ---------- Endorsements ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.quote {
  border-top: 1px solid var(--ink); padding-top: 24px;
}
.quote p { font-family: var(--serif); font-size: 19px; line-height: 1.45; }
.quote cite { font-style: normal; font-size: 13px; color: var(--ink-mute); letter-spacing: .04em; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 36px auto 0; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--serif); font-size: clamp(19px, 2vw, 23px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--sans); font-size: 22px; color: var(--ink-mute); flex-shrink: 0;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 24px; color: var(--ink-soft); font-size: 15px; max-width: 700px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
.contact-grid h2 { font-size: clamp(36px, 5vw, 58px); }
.contact-lines { list-style: none; padding: 0; margin: 24px 0 0; font-size: 15px; color: var(--ink-soft); }
.contact-lines li { margin-bottom: 10px; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid var(--line); }
form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
form.contact .full { grid-column: 1 / -1; }
form.contact label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
form.contact label small { color: var(--ink-mute); }
form.contact input, form.contact textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink);
  background: transparent; padding: 8px 0; font: inherit; font-size: 15px; color: var(--ink);
  border-radius: 0; outline: none;
}
form.contact input:focus, form.contact textarea:focus { border-bottom-width: 2px; }
form.contact textarea { min-height: 120px; resize: vertical; }
form.contact .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  form.contact { grid-template-columns: 1fr; }
}

/* ---------- CTA strip ---------- */
.cta { text-align: center; background: var(--cream-deep); }
.cta h2 { margin-bottom: 12px; }
.cta p { max-width: 560px; margin: 0 auto 26px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 18px; margin-bottom: 10px; }
.footer-grid p, .footer-grid li { font-size: 14px; color: var(--ink-soft); margin: 0 0 6px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-mute);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
