/* ==========================================================
   Keav Khov, LCSW — Birch & Sage
   ========================================================== */

:root {
  --birch: #FAF7F2;
  --birch-2: #F2ECE2;
  --line: #E2D6C3;
  --oak: #C9A982;
  --oak-text: #8E7150;
  --sage-mist: #E6ECDF;
  --sage: #4D6045;
  --sage-dark: #3A4A34;
  --ink: #2D2A26;
  --body: #4A443D;
  --muted: #625B52;
  --white: #FFFFFF;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gutter: 32px;
  --radius: 20px;
  --section: 104px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--birch);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--sage-dark); }

:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--sage); color: var(--white); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0; font-weight: 400; }
h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; }
h3 { font-size: 23px; line-height: 1.25; font-weight: 500; }
p { margin: 0; color: var(--body); }
.lead { font-size: 19px; }
.small { font-size: 14px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--oak); flex-shrink: 0; }
.center .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sage); color: var(--white); text-decoration: none; font-family: var(--sans);
  font-weight: 600; font-size: 16px; line-height: 1.2; padding: 16px 28px; min-height: 48px;
  border-radius: 999px; border: 0; cursor: pointer; transition: background .2s ease;
}
.btn:hover { background: var(--sage-dark); color: var(--white); }
.btn--light { background: var(--birch); color: var(--sage-dark); }
.btn--light:hover { background: var(--white); color: var(--sage-dark); }
.btn--small { padding: 11px 22px; font-size: 15px; min-height: 44px; }

.link-line {
  display: inline-block; color: var(--sage); text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 10px 2px; border-bottom: 1.5px solid var(--oak);
}
.link-line:hover { color: var(--sage-dark); border-bottom-color: var(--sage); }

/* Header */
.site-header { background: var(--birch); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1; }
.brand-cred { font-size: 12px; letter-spacing: .14em; color: var(--muted); font-weight: 600; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--sage); }
.nav a[aria-current="page"] { color: var(--sage); font-weight: 600; }
.nav .nav-phone { color: var(--muted); }
.nav a.btn, .nav a.btn:hover { color: var(--white); }

.menu-toggle {
  display: none; margin-left: auto; background: transparent; border: 1px solid var(--line);
  border-radius: 999px; width: 48px; height: 48px; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--birch); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; box-shadow: 0 16px 30px rgba(45, 42, 38, 0.08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a.btn { margin-top: 18px; border-bottom: 0; justify-content: center; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section--alt { background: var(--birch-2); }
.section--sage { background: var(--sage-mist); }
.section--dark { background: var(--sage); }
.section--dark h2 { color: var(--birch); }
.section--dark p { color: var(--sage-mist); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.center { text-align: center; }
.center .section-head, .section-head.center { margin-left: auto; margin-right: auto; }

/* Page intro (inner pages) */
.page-intro { padding: 88px 0 72px; }

/* Hero */
.hero { padding: 80px 0 96px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.hero-copy { flex: 1 1 500px; display: flex; flex-direction: column; gap: 26px; }
.hero-copy .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 4px; }
.hero-photo { flex: 1 1 360px; max-width: 460px; }

/* Arched portrait */
.arch {
  position: relative; padding: 0 0 24px 24px;
}
.arch::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: calc(100% - 24px); height: calc(100% - 24px);
  border-radius: 999px 999px 28px 28px; background: var(--oak); opacity: .35;
}
.arch-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: var(--sage-mist);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

.circle-photo {
  aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: var(--birch-2);
  border: 8px solid var(--birch);
}
.circle-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Credentials strip */
.creds { background: var(--birch-2); padding: 24px 0; }
.creds ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 0; font-size: 15px; font-weight: 500; color: var(--ink);
}
.creds li { padding: 0 18px; position: relative; }
.creds li + li::before {
  content: ""; position: absolute; left: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px;
  border-radius: 50%; background: var(--oak);
}

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--birch-2); border-radius: var(--radius); padding: 28px; }
.card p { font-size: 15px; margin-top: 10px; }
.section--alt .card { background: var(--birch); }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 40px;
  display: flex; flex-direction: column; gap: 14px;
}
.panel .tagline { font-family: var(--serif); font-size: 15px; color: var(--muted); letter-spacing: .04em; }
.panel h3 { font-size: 28px; font-weight: 400; }
.panel h4 {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.panel p { font-size: 16px; }
.panel .detail { display: flex; flex-direction: column; gap: 6px; }

/* Split layout */
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split-media { flex: 0 1 340px; }
.split-copy { flex: 1 1 480px; }
.split-media--portrait { flex: 1 1 340px; max-width: 420px; }

/* Steps */
.step { border-top: 1.5px solid var(--oak); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--oak-text); }
.step p { font-size: 16px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.chips li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px;
  font-size: 15px; color: var(--ink); line-height: 1.3;
}
.section--alt .chips li { background: var(--birch); }

/* Timeline cards (About) */
.when { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.card .when + h3 { margin-top: 8px; }

.list { margin: 0; padding-left: 20px; color: var(--body); }
.list li { margin: 6px 0; }
.list li::marker { color: var(--oak); }

/* Insurance */
.plan-search { display: flex; flex-direction: column; gap: 8px; max-width: 420px; width: 100%; }
.plan-list {
  list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 40px;
}
.plan-list li { break-inside: avoid; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.plan-list li[hidden] { display: none; }
.no-results { margin-top: 20px; }
.price { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--ink); }

/* Forms */
.form-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.form-card {
  flex: 999 1 560px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: 40px; display: flex; flex-direction: column; gap: 34px;
}
.form-aside {
  flex: 1 1 300px; background: var(--birch-2); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-row .field { flex: 1 1 240px; }
label, legend { font-weight: 600; font-size: 16px; color: var(--ink); }
.req { font-weight: 400; font-size: 14px; color: var(--muted); }
.help { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
legend { padding: 0; margin-bottom: 4px; }

input[type="text"], input[type="email"], input[type="search"], select, textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid #B8AC9A; border-radius: 12px; padding: 13px 14px;
  min-height: 48px;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sage-mist); border-color: var(--sage); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234D6045' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}

.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option {
  flex: 1 1 230px; display: flex; align-items: center; gap: 12px; min-height: 50px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 400; font-size: 15px;
  cursor: pointer; background: var(--white); transition: border-color .15s ease, background .15s ease;
}
.option:hover { border-color: var(--oak); }
.option:has(input:checked) { border-color: var(--sage); background: var(--sage-mist); }
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--sage); flex-shrink: 0; }
.options--short .option { flex: 0 1 180px; }

/* Availability grid */
.avail { display: grid; grid-template-columns: 110px repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; }
.avail-head { font-size: 13px; font-weight: 600; text-align: center; color: var(--ink); line-height: 1.3; }
.avail-head span { display: block; font-weight: 400; color: var(--muted); }
.avail-day { font-size: 15px; font-weight: 600; }
.avail-cell {
  display: flex; align-items: center; justify-content: center; height: 48px; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; background: var(--white);
}
.avail-cell:has(input:checked) { border-color: var(--sage); background: var(--sage-mist); }
.avail-cell input { width: 20px; height: 20px; margin: 0; accent-color: var(--sage); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 560px) {
  .avail { grid-template-columns: 1fr; gap: 6px; }
  .avail-headrow { display: none; }
  .avail-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
  .avail-row .avail-day { grid-column: 1 / -1; margin-top: 4px; }
  .avail-cell { justify-content: flex-start; gap: 12px; padding: 10px 14px; height: auto; min-height: 56px; }
  .avail-cell .cell-label {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto;
    white-space: normal; font-size: 15px; font-weight: 600; line-height: 1.25;
  }
  .avail-cell .cell-label small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
}
@media (min-width: 561px) {
  .avail-headrow, .avail-row { display: contents; }
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); }
.error-msg { color: #8C2F1F; font-size: 14px; font-weight: 600; }

.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--body); }
.steps-list .num {
  flex: 0 0 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--oak); color: var(--oak-text);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 16px;
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  font-family: var(--serif); font-size: 22px; color: var(--ink); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 24px; color: var(--sage); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 10px; }

/* Thank you */
.check-circle {
  width: 76px; height: 76px; border-radius: 50%; background: var(--sage-mist); display: flex;
  align-items: center; justify-content: center; margin: 0 auto;
}

/* Crisis note */
.crisis {
  background: var(--birch); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px;
  font-size: 14px; line-height: 1.6; color: var(--ink);
}
.crisis a { color: var(--ink); font-weight: 600; }

/* Footer */
.site-footer { background: var(--birch-2); padding: 64px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; margin-bottom: 36px; }
.footer-col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col--brand { flex: 1 1 300px; }
.footer-col p { font-size: 14px; }
.footer-brand { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); }
.footer-bottom { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* Prose (privacy) */
.prose h2 { font-size: 28px; margin-top: 40px; margin-bottom: 12px; }
.prose p + p { margin-top: 14px; }
.prose ul { color: var(--body); }

/* Mobile spacing */
@media (max-width: 720px) {
  :root { --gutter: 20px; --section: 72px; }
  body { font-size: 16px; }
  .hero { padding: 48px 0 72px; }
  .hero-grid { gap: 40px; }
  .hero-photo { order: -1; max-width: 340px; margin: 0 auto; width: 100%; }
  .page-intro { padding: 56px 0 48px; }
  .split { gap: 40px; }
  .split-media { margin: 0 auto; max-width: 280px; width: 100%; }
  .panel { padding: 28px; }
  .form-card { padding: 24px; gap: 30px; }
  .form-aside { padding: 24px; }
  .creds ul { flex-direction: column; align-items: flex-start; gap: 8px; }
  .creds li { padding: 0 0 0 18px; }
  .creds li::before, .creds li + li::before {
    content: ""; position: absolute; left: 0; top: 0.75em; width: 5px; height: 5px; margin-top: -2px;
    border-radius: 50%; background: var(--oak);
  }
  .lead { font-size: 18px; }
  .hero-actions .btn { width: 100%; }
}
