/* drnafal.com: design tokens and styles (see brand-spec.md) */

:root {
  --ground: #F7F4EE;
  --surface: #EDE7DC;
  --hairline: #CFC6B6;
  --ink: #1C1B18;
  --muted: #4A4740;
  --accent: #1B4B5A;
  --accent-hover: #143A46;
  --on-accent: #FFFFFF;
  --focus: #C2702F;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", Arial, sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --radius: 4px;
  --page: 1160px;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;      /* 18px minimum body size */
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); }
h3 { font-size: 1.375rem; font-weight: 500; }

p { margin: 0 0 var(--s2); max-width: var(--measure); text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 150ms ease; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: var(--s2); top: -100px;
  background: var(--accent); color: var(--on-accent);
  padding: var(--s1) var(--s2); z-index: 100; border-radius: var(--radius);
}
.skip-link:focus { top: var(--s2); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--s3); }

.eyebrow {
  font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--s1);
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 12px 22px;
  font: 700 1.0625rem/1.2 var(--font-body);
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
  border: 2px solid var(--accent);
  transition: background-color 150ms ease, color 150ms ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--surface); color: var(--accent-hover); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--accent); color: var(--on-accent); font-size: 1rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--on-accent); font-weight: 700; }

.site-header { border-bottom: 1px solid var(--hairline); background: var(--ground); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s2); padding-bottom: var(--s2); }

.wordmark { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.wordmark-role { font-size: 0.9375rem; color: var(--muted); margin-top: 4px; }
.wordmark:hover { color: var(--ink); }

.wordmark-name, .wordmark-role { white-space: nowrap; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem; padding: 10px 0; display: inline-block; white-space: nowrap; }
.nav a:hover { color: var(--accent); text-decoration: underline; }
.nav .btn { color: var(--on-accent); padding: 10px 18px; }
.nav .btn:hover { text-decoration: none; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: var(--s6) 0 var(--s5); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--s6); align-items: center; }
.hero .lede { font-size: 1.25rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 var(--s2); }
.hero-note { font-size: 1rem; color: var(--muted); margin: 0; }

.placeholder {
  background: var(--surface);
  border: 2px dashed var(--hairline);
  color: var(--muted);
  display: grid; place-items: center; text-align: center;
  padding: var(--s3); font-size: 1rem;
}
.placeholder strong { display: block; color: var(--ink); margin-bottom: 4px; }
.photo-portrait { aspect-ratio: 4 / 5; width: 100%; }
.headshot { display: block; width: 100%; max-width: 380px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; justify-self: center; margin: 0 auto; border: 1px solid var(--hairline); box-shadow: 0 2px 6px rgba(74,71,64,.06), 0 14px 32px rgba(74,71,64,.08); }

/* ---------- Trust row ---------- */
.trust { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { padding: var(--s3) var(--s3) var(--s3) 0; font-size: 1rem; color: var(--muted); }
.trust li + li { border-left: 1px solid var(--hairline); padding-left: var(--s3); }
.trust strong { display: block; color: var(--ink); font-size: 1.0625rem; }

/* ---------- Sections ---------- */
section { scroll-margin-top: var(--s3); }
.section { padding: var(--s7) 0; }
.section-alt { background: var(--surface); }
.section-head { margin-bottom: var(--s5); max-width: 760px; }

/* Conditions */
.conditions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.condition-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.condition-list li { border-bottom: 1px solid var(--hairline); }
.condition-list a { display: block; padding: var(--s2) 0; text-decoration: none; color: var(--ink); }
.condition-list a:hover .c-name { color: var(--accent); text-decoration: underline; }
.c-name { display: block; font-weight: 700; font-size: 1.125rem; }
.c-name::after { content: " \2192"; color: var(--accent); }
.c-desc { display: block; color: var(--muted); font-size: 1rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s6); align-items: start; }
.cred-list { list-style: none; margin: var(--s4) 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.cred-list li { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--hairline); font-size: 1rem; }
.cred-list .k { color: var(--muted); font-weight: 700; }
.pending { background: #FFF4D6; border-left: 4px solid var(--focus); padding: var(--s2); font-size: 1rem; }

/* Philosophy + review quotes */
.philosophy { margin: 0 0 var(--s2); padding: 0; }
.philosophy p { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.45; font-style: italic; color: var(--ink); max-width: 46ch; }
.philosophy footer { font-weight: 700; color: var(--muted); }
.quote-section { padding: var(--s6) 0; text-align: center; }
.quote-section .eyebrow { font-family: var(--font-body); }
.review { margin: var(--s2) auto var(--s3); max-width: 760px; }
.review blockquote { margin: 0; }
.review p { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.35; margin: 0 auto var(--s2); max-width: none; }
.review figcaption { color: var(--muted); font-weight: 700; }
.quote-section p.muted { margin: 0 auto; }

/* Visit / insurance */
.visit-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s6); }
.plan-cols { columns: 2; column-gap: var(--s4); padding: 0; margin: 0 0 var(--s3); list-style: none; }
.plan-cols li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--hairline); font-size: 1.0625rem; }
.plan-group { margin-top: var(--s4); }
.checklist { padding-left: 1.2em; margin: 0; }
.checklist li { margin-bottom: var(--s1); }

/* Locations */
.locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.location { border-top: 3px solid var(--accent); padding-top: var(--s3); }
.location h3 { margin-bottom: var(--s1); }
.location address { font-style: normal; margin-bottom: var(--s2); }
.hours { margin: var(--s2) 0 0; padding: 0; list-style: none; font-size: 1rem; }
.hours li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--hairline); padding: 4px 0; }

/* Call-back form */
.form-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s6); }
.form { display: grid; gap: var(--s3); }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 1.125rem var(--font-body); color: var(--ink);
  background: #FFFFFF; border: 2px solid var(--muted); border-radius: var(--radius);
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field .hint { font-size: 0.9375rem; color: var(--muted); margin-top: 4px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.radios label { font-weight: 400; display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; margin: 0; }
.radios input { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); }
.form-note { font-size: 1rem; color: var(--muted); }
.form-status { font-weight: 700; color: var(--accent); margin: 0; min-height: 1.6em; }
.btn[disabled] { opacity: 0.7; cursor: wait; }

/* Referring doctors */
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.ref-table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.ref-table th, .ref-table td { text-align: left; padding: var(--s2) var(--s2) var(--s2) 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.ref-table th { color: var(--muted); font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Inner pages */
.narrow { max-width: 820px; }
.page-hero { padding: var(--s6) 0 var(--s4); border-bottom: 1px solid var(--hairline); }
.page-hero .eyebrow a { color: var(--muted); }
.page-hero .lede { font-size: 1.25rem; color: var(--muted); }
.content h2 { margin-top: var(--s5); }
.content h2:first-child { margin-top: 0; }
.content h3 { margin-top: var(--s3); margin-bottom: var(--s1); font-family: var(--font-body); font-weight: 700; font-size: 1.1875rem; }
.content ul.checklist { margin-bottom: var(--s3); max-width: var(--measure); }
.callout { background: #FFF4D6; border-left: 4px solid var(--focus); padding: var(--s3); margin: var(--s4) 0; }
.callout p:last-child { margin-bottom: 0; }
.cta-band { background: var(--accent); color: var(--on-accent); padding: var(--s6) 0; }
.cta-band h2 { color: var(--on-accent); }
.cta-band p { color: #E6EEF0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.cta-band .btn-primary { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.cta-band .btn-primary:hover { background: var(--surface); color: var(--accent-hover); }
.cta-band .btn-secondary { color: var(--on-accent); border-color: var(--on-accent); }
.cta-band .btn-secondary:hover { background: var(--accent-hover); color: var(--on-accent); }
.cta-band a:focus-visible { outline-color: #FFD27A; }
.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }

/* Condition illustrations: book-plate style that blends into the warm page */
.illus {
  float: right; width: 300px; margin: 6px 0 var(--s3) var(--s4);
  background: var(--surface); padding: var(--s3) var(--s3) var(--s2);
}
.illus img {
  display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain;
  mix-blend-mode: multiply;            /* white background melts into the panel color */
}
.illus figcaption { font-size: 0.9375rem; line-height: 1.45; color: var(--muted); margin-top: var(--s2); border-top: 1px solid var(--hairline); padding-top: var(--s1); }
.illus .credit { display: block; font-size: 0.8125rem; margin-top: 4px; }
.illus .credit a { color: var(--muted); }
.content .wrap::after { content: ""; display: block; clear: both; }
.content .callout { clear: both; }
@media (max-width: 700px) {
  .illus { float: none; width: auto; max-width: 360px; margin: var(--s3) auto; }
}

/* Patient forms */
.resource-list { list-style: none; margin: 0 0 var(--s4); padding: 0; border-top: 1px solid var(--hairline); }
.resource-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--hairline); }
.r-title { display: block; font-weight: 700; }
.r-desc { display: block; color: var(--muted); font-size: 1rem; }
.soon { flex-shrink: 0; font-size: 0.9375rem; font-weight: 700; color: var(--muted); background: var(--surface); padding: 6px 12px; border-radius: var(--radius); white-space: nowrap; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 1rem; flex-shrink: 0; }
@media (max-width: 560px) { .resource-list li { flex-direction: column; align-items: flex-start; gap: var(--s1); } }

/* Footer */
.site-footer { background: var(--ink); color: #EDE7DC; padding: var(--s6) 0 var(--s7); font-size: 1rem; }
.site-footer a { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s5); }
.site-footer .wordmark-name { color: #FFFFFF; }
.site-footer p { max-width: 48ch; }
.footer-small { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid #4A4740; color: #CFC6B6; }
.footer-small p { max-width: none; }

/* Sticky mobile call bar */
.callbar { display: none; }

/* ---------- Responsive ---------- */
/* Collapse the menu before the six items start to crowd */
@media (max-width: 1180px) {
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px;
    font: 700 1.0625rem var(--font-body); color: var(--ink);
    background: transparent; border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: 1px solid var(--hairline); z-index: 20; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s1) var(--s3) var(--s3); max-width: var(--page); margin: 0 auto; }
  .nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .nav li:last-child a { border-bottom: 0; margin-top: var(--s2); display: flex; }
  .site-header { position: relative; }
}

@media (max-width: 900px) {
  .hero-grid, .about-grid, .visit-grid, .form-wrap, .ref-grid, .conditions { grid-template-columns: 1fr; gap: var(--s5); }
  .hero { padding-top: var(--s5); }
  .hero-photo { max-width: 360px; }
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .locations { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--s6) 0; }

  .callbar {
    display: flex; gap: var(--s1);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px var(--s2) calc(10px + env(safe-area-inset-bottom));
    background: var(--ground); border-top: 1px solid var(--hairline);
  }
  .callbar .btn { flex: 1; white-space: nowrap; padding: 12px 14px; }
  .callbar .btn-primary { flex: 1.7; }
  body { padding-bottom: 80px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 var(--s2); }
  .trust ul { grid-template-columns: 1fr; }
  .trust li, .trust li + li { border-left: 0; padding-left: 0; }
  .trust li + li { border-top: 1px solid var(--hairline); }
  .plan-cols { columns: 1; }
  .cred-list li { grid-template-columns: 1fr; gap: 0; }
  .topbar .hide-sm { display: none; }
  .wordmark-name { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.hero-photo { display: flex; justify-content: center; }
.hero-photo { margin-inline: auto; width: 100%; }

.location .access { font-size: 1rem; color: var(--muted); margin: var(--s2) 0 0; }

/* Photos: at-work and office */
.work-photo { margin: 0; }
.work-photo img, .office-photos img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--hairline); box-shadow: 0 2px 6px rgba(74,71,64,.06), 0 14px 32px rgba(74,71,64,.08); }
.work-photo img { aspect-ratio: 4 / 5; object-fit: cover; max-width: 380px; }
.work-photo figcaption, .office-photos figcaption { font-size: 0.9375rem; color: var(--muted); margin-top: var(--s1); }
.office-photos-title { margin-top: var(--s6); }
.office-photos { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--s4); align-items: end; }
.office-photos figure { margin: 0; }
@media (max-width: 760px) { .office-photos { grid-template-columns: 1fr; } .work-photo img { margin: 0 auto; } }

/* ---------- Photo style (one look for every photo) ----------
   Soft corners and a warm, diffuse shadow; no hard border lines. */
.headshot, .work-photo img, .office-photos img {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(60, 50, 40, .06), 0 12px 32px -6px rgba(60, 50, 40, .16);
}
.headshot { max-width: 360px; }
.work-photo img { max-width: 340px; }
.work-photo figcaption { max-width: 340px; }
.office-photos { grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; max-width: 880px; }
.office-photos img { aspect-ratio: 1 / 1; object-fit: cover; }
/* Drawings now have transparent backgrounds, so no blend trick is needed */
.illus img { mix-blend-mode: normal; }
@media (max-width: 760px) {
  .office-photos { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .work-photo img, .work-photo figcaption { margin-left: auto; margin-right: auto; }
}
/* Home hero: larger headshot so it balances the big headline */
.hero .headshot { max-width: 440px; }
/* Mid-size desktops: tighten the menu so the Call button never runs off the edge */
@media (min-width: 1181px) and (max-width: 1380px) {
  .nav ul { gap: 16px; }
  .nav a { font-size: 1rem; }
}

/* Eyebrow directly above a heading inside content blocks: keep them together */
.content .eyebrow + h2 { margin-top: 4px; }
