/* ==========================================================
   Dr. Johnny K. Wong, PhD — V2 theme
   Palette (Johnny's pastel blue set): #F1F8FD #E8F4FF #D1E2F5 #C5D6F0 #D4D9EF #B8CEF0
   Anchored by a deep slate-navy for text and buttons.
   Type: Lora (headings) + DM Sans (body)
   ========================================================== */

:root {
  --sky-0: #f1f8fd;   /* page ground */
  --sky-1: #e8f4ff;   /* soft band */
  --sky-2: #d1e2f5;   /* section band, borders */
  --sky-3: #c5d6f0;   /* lines, accents */
  --sky-4: #d4d9ef;   /* lavender tint */
  --sky-5: #b8cef0;   /* strongest pastel */
  --white: #ffffff;
  --ink: #1e2b3c;
  --ink-soft: #4b5a70;
  --ink-mute: #7c8aa0;
  --navy: #24344f;
  --navy-deep: #182538;
  --line: var(--sky-2);
  --serif: "Lora", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1120px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --shadow: 0 24px 60px -30px rgba(36, 52, 79, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky-0);
  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;
  color: var(--ink);
}
h1 { font-size: clamp(42px, 6.2vw, 72px); text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; }
h4 { font-weight: 400; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  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; font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(36,52,79,.5); }
.btn.ghost { background: rgba(255,255,255,.55); color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.btn.sm { padding: 10px 18px; font-size: 13px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 248, 253, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  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; font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--ink-mute); font-weight: 400; }
.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(--sky-0); 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 with mountain scene ---------- */
.hero {
  position: relative;
  min-height: min(84vh, 780px);
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--sky-1) url("images/hero-mountains.svg") center bottom / cover no-repeat;
  /* to use a photo instead:  background: url("images/hero.jpg") center / cover no-repeat;  */
}
.hero::after {
  /* soft fade into the page so the scene doesn't end on a hard line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(180deg, rgba(241,248,253,0), var(--sky-0));
}
.hero .wrap { position: relative; z-index: 1; padding-block: 90px 150px; }
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.5;
  max-width: 660px; margin: 0 auto 30px;
  color: var(--ink-soft);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

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

/* ---------- 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(--sky-2);
  box-shadow: 0 0 0 10px var(--white), 0 0 0 11px var(--sky-3), var(--shadow);
}
.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; } }

/* ---------- "Where this begins" band: pastel blue instead of dark ---------- */
.dark {
  background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky-3) 100%);
  color: var(--ink);
  position: relative;
}
.dark h2, .dark h3 { color: var(--ink); }
.dark .eyebrow { color: var(--ink-soft); }
.dark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: var(--sky-0);
  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 rgba(255,255,255,.7); }
.focus-list li {
  display: grid; grid-template-columns: 60px 1fr 1.4fr; gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.7);
}
.focus-list li a { text-decoration: none; }
.focus-list li a:hover { text-decoration: underline; text-decoration-color: var(--sky-5); text-underline-offset: 6px; }
.focus-list .num { font-family: var(--serif); font-size: 18px; color: var(--navy); opacity: .7; }
.focus-list h3 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); }
.focus-list p { margin: 0; font-size: 15px; color: var(--ink-soft); 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(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); text-align: center;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .price { font-family: var(--serif); font-size: 26px; margin-top: auto; padding-top: 18px; color: var(--navy); }
.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: 3px solid var(--sky-5); 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; }
.service li::marker { color: var(--sky-5); }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

/* ---------- Endorsements ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 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(--sky-3); }
.faq details { border-bottom: 1px solid var(--sky-3); }
.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(--navy); flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--sky-1);
  display: grid; place-items: center; line-height: 1;
}
.faq details[open] summary::after { content: "–"; background: var(--sky-3); }
.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(--sky-5); }
form.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
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(--sky-3);
  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: 2px solid var(--navy); }
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: linear-gradient(180deg, var(--sky-1), var(--sky-2)); }
.cta h2 { margin-bottom: 12px; }
.cta p { max-width: 560px; margin: 0 auto 26px; color: var(--ink-soft); }

/* ---------- Footer: deep navy anchor ---------- */
.site-footer { background: var(--navy-deep); color: #c9d5e6; padding-block: 64px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 18px; margin-bottom: 10px; color: var(--white); }
.footer-grid p, .footer-grid li { font-size: 14px; color: #aebbd0; margin: 0 0 6px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { text-decoration: none; color: #dbe5f3; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; color: var(--white); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #8a9bb5;
}
@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; } }
