/* Belleville Lake Pediatrics — design system */
/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --hull:        #1C3D5A;
  --lake:        #2F7096;
  --lake-deep:   #255C7C;
  --sky:         #8FBBD4;
  --mist:        #DEEAF1;
  --oak:         #C8A579;
  --oak-deep:    #A98456;
  --paper:       #FBF8F3;
  --surface:     #FFFFFF;
  --surface-2:   #F2F6F9;
  --line:        #D8E2EA;
  --line-soft:   #E7EDF2;
  --ink:         #15283A;
  --ink-soft:    #54687B;
  --ink-faint:   #7D8E9D;
  --danger:      #C1553F;

  --shadow-sm: 0 1px 2px rgba(28,61,90,.07);
  --shadow-md: 0 6px 22px rgba(28,61,90,.09);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1140px;
  --measure: 68ch;
  --pad: 24px;
  --radius: 14px;
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lake-deep); text-underline-offset: 3px; }
a:hover { color: var(--hull); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 200;
  background: var(--hull); color: var(--paper);
  padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 600;
  /* moved out of view without a negative offset, which would widen the page */
  transform: translateY(-120%);
  transition: transform .15s;
}
.skip-link:focus { transform: none; }

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */
.shell { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 820px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }

.band { padding-block: 76px; }
.band-tight { padding-block: 52px; }
.band-mist { background: var(--mist); }
.band-surface { background: var(--surface); }
.band-paper { background: var(--paper); }

.sec-head {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 36px; max-width: 66ch;
}

/* ==========================================================================
   4. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--hull);
  text-wrap: balance;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.05rem); line-height: 1.07; letter-spacing: -.022em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.22rem; line-height: 1.3; }
h4 { font-family: var(--body); font-weight: 700; font-size: 1.03rem; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--body);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--lake); margin: 0 0 .4em;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 64ch; }

.prose { color: var(--ink-soft); }
.prose h2, .prose h3 { color: var(--hull); margin-top: 1.9em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 22px; max-width: var(--measure); }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--sky); }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-size: .9rem; font-weight: 600; line-height: 1;
  padding: 13px 20px; border-radius: 99px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--lake); color: var(--paper); border-color: var(--lake); }
.btn-solid:hover { background: var(--lake-deep); border-color: var(--lake-deep); color: var(--paper); }
.btn-line { background: transparent; color: var(--lake-deep); border-color: var(--sky); }
.btn-line:hover { border-color: var(--lake); background: var(--mist); color: var(--lake-deep); }
.btn-oak { background: var(--oak); color: #2A1F10; border-color: var(--oak); }
.btn-oak:hover { background: var(--oak-deep); color: #2A1F10; }
.btn-lg { font-size: .97rem; padding: 16px 28px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   6. Header
   ========================================================================== */
.topbar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
  font-size: .83rem; color: var(--ink-soft);
}
.topbar .shell {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 18px; min-height: 38px; flex-wrap: wrap;
}
.topbar a { color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--lake-deep); }
.topbar .sep { color: var(--line); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
/* The header carries brand + 7 links + 2 buttons, which needs more room than
   the reading column. Give it its own wider track and let items shrink. */
.site-header .shell { max-width: 1320px; }
.masthead { display: flex; align-items: center; gap: 16px; min-height: 84px; min-width: 0; }
.masthead > * { min-width: 0; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; margin-right: auto; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display); font-weight: 600; font-size: 1.24rem;
  letter-spacing: -.02em; color: var(--hull); white-space: nowrap;
}
.brand-sub {
  font-family: var(--body); font-size: .61rem; font-weight: 700;
  letter-spacing: .28em; color: var(--lake); margin-top: 5px;
}

.mark .sail-a { fill: var(--lake); }
.mark .sail-b { fill: var(--sky); }
.mark .mast   { fill: var(--hull); }
.mark .hull   { stroke: var(--hull); }

.nav-main { display: flex; gap: 2px; align-items: center; }
.nav-main ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-main a {
  font-size: .875rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: 9px 9px; border-radius: 8px;
  white-space: nowrap; transition: color .15s, background-color .15s;
}
.nav-main a:hover { color: var(--hull); background: var(--surface-2); }
.nav-main .current-menu-item > a,
.nav-main .current_page_item > a { color: var(--hull); font-weight: 600; background: var(--mist); }

.hdr-cta { display: flex; gap: 8px; align-items: center; flex: none; }
.hdr-cta .btn { padding: 12px 16px; font-size: .86rem; }

.burger {
  display: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; width: 46px; height: 46px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--hull);
}

/* ==========================================================================
   7. Mobile drawer
   ========================================================================== */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(21,40,58,.5);
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute; inset-block: 0; right: 0;
  width: min(340px, 86vw);
  background: var(--surface); padding: 20px;
  overflow-y: auto; transform: translateX(100%);
  transition: transform .24s ease;
  display: flex; flex-direction: column;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav a {
  display: block; padding: 13px 12px; border-radius: 10px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1.02rem;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-nav .current-menu-item > a,
.drawer-nav .current_page_item > a { color: var(--hull); font-weight: 700; background: var(--mist); }
.drawer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.x-btn {
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  width: 42px; height: 42px; cursor: pointer; color: var(--ink);
  font-size: 1.2rem; line-height: 1;
}

/* ==========================================================================
   8. Wave divider
   ========================================================================== */
.wave { display: block; width: 100%; height: 26px; }
.wave path { fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; opacity: .85; }

/* ==========================================================================
   9. Hero
   ========================================================================== */
.hero { background: var(--mist); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 52px; align-items: center; padding-block: 72px 80px;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero-copy h1 { margin: 0; max-width: 17ch; }
.hero-copy .lede { margin: 0; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 13px; font-size: .79rem; font-weight: 600; color: var(--hull);
}

/* ==========================================================================
   10. Cards
   ========================================================================== */
.cards { display: grid; gap: 20px; }
.c2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.c3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 11px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; max-width: none; }

a.card { text-decoration: none; color: inherit; transition: border-color .16s, box-shadow .16s, transform .16s; }
a.card:hover { border-color: var(--sky); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .arrow { color: var(--lake); font-weight: 700; font-size: .85rem; margin-top: auto; padding-top: 6px; }

.ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  color: var(--lake-deep); flex: none;
}

.actions3 {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: -46px; position: relative; z-index: 5;
}
.action {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 10px;
}
.action p { flex: 1; font-size: .93rem; color: var(--ink-soft); max-width: none; }

/* ==========================================================================
   11. Split, callouts, photo slots
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-wide { grid-template-columns: 1.25fr .75fr; }
.split-img-first > :first-child { order: -1; }

.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--oak);
  background: var(--surface); border-radius: 0 12px 12px 0;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 8px;
}
.callout.urgent { border-left-color: var(--danger); }
.callout h4 { color: var(--hull); margin: 0; }
.callout p { color: var(--ink-soft); font-size: .94rem; margin: 0; max-width: none; }

.photo-slot {
  position: relative;
  border: 2px dashed var(--sky); border-radius: var(--radius);
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(45deg,
    transparent, transparent 11px,
    rgba(143,187,212,.13) 11px, rgba(143,187,212,.13) 22px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 30px 20px; text-align: center; color: var(--lake-deep);
  min-height: 200px;
}
.photo-slot .slot-label { font-size: .84rem; font-weight: 700; line-height: 1.35; max-width: 34ch; }
.photo-slot .slot-spec {
  font-size: .72rem; color: var(--ink-faint); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.photo-slot .slot-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--oak); color: #2A1F10;
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px;
}
/* A real photo, once one is uploaded through the CMS. Same footprint as the
   placeholder it replaces, so no layout shifts when photos land. */
.photo {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow, 0 1px 2px rgba(28,61,90,.08));
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.tall   { aspect-ratio: 3/4; }
.photo.wide   { aspect-ratio: 16/9; }
.photo.square { aspect-ratio: 1/1; }

.photo-slot.tall   { aspect-ratio: 3/4;  min-height: 0; }
.photo-slot.wide   { aspect-ratio: 16/9; min-height: 0; }
.photo-slot.square { aspect-ratio: 1/1;  min-height: 0; }

/* inline placeholder token for details still to be supplied */
.ph {
  background: rgba(200,165,121,.24);
  border-bottom: 1.5px dotted var(--oak-deep);
  padding: 0 3px; border-radius: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ==========================================================================
   12. CTA band
   ========================================================================== */
.cta-band { background: var(--hull); color: var(--mist); padding-block: 64px; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: var(--mist); }
.cta-inner { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band .btn-line { color: var(--paper); border-color: rgba(251,248,243,.5); }
.cta-band .btn-line:hover { background: rgba(251,248,243,.12); border-color: var(--paper); color: var(--paper); }

/* ==========================================================================
   13. Page header, tables, forms
   ========================================================================== */
.pagehead { background: var(--mist); padding: 56px 0 60px; border-bottom: 1px solid var(--line-soft); }
.pagehead .inner { display: flex; flex-direction: column; gap: 12px; max-width: 62ch; }
.pagehead h1 { margin: 0; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--hull); font-weight: 600; }
td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

input[type=text], input[type=email], input[type=tel], input[type=search], textarea, select {
  font: inherit; width: 100%;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--paper); color: var(--ink);
}
textarea { resize: vertical; }
label { font-size: .87rem; font-weight: 600; color: var(--hull); display: flex; flex-direction: column; gap: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px;
  padding: 7px 14px; font-size: .85rem; font-weight: 500; color: var(--ink-soft);
}

/* WordPress core alignment + caption classes */
.alignwide { max-width: min(1220px, 100%); margin-inline: auto; }
.alignfull { max-width: none; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--ink-faint); margin-top: .5em; }
.wp-block-image img { border-radius: var(--radius); }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
  background: var(--surface-2); border-top: 1px solid var(--line);
  padding: 56px 0 28px; font-size: .92rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 34px; }
.foot-grid h4 {
  color: var(--hull); margin: 0 0 12px; font-size: .77rem;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-grid a { color: var(--ink-soft); text-decoration: none; }
.foot-grid a:hover { color: var(--lake-deep); text-decoration: underline; }
.foot-grid p { color: var(--ink-soft); max-width: none; }
.foot-bottom {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-faint); font-size: .83rem;
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 1140px) {
  .nav-main { display: none; }
  .burger { display: flex; }
  .hdr-cta .hide-md { display: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 52px 64px; }
  .hero-copy h1 { max-width: none; }
  .split, .split-wide { grid-template-columns: 1fr; gap: 32px; }
  .split-img-first > :first-child { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .actions3 { margin-top: -30px; }
}

/* Phones: the brand must be allowed to shrink and wrap, otherwise it pushes
   the Schedule button and burger past the right edge. */
@media (max-width: 760px) {
  /* flex:none in the base rule stops the brand shrinking, which is what
     pushed the burger past the right edge. Allow it to shrink here. */
  .brand { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .brand-words { min-width: 0; }
  .brand-name { white-space: normal; font-size: 1.05rem; line-height: 1.15; }
  .brand-sub { letter-spacing: .2em; }
  .hdr-cta .btn { padding: 11px 14px; font-size: .82rem; }
  .masthead { gap: 10px; min-height: 74px; }
}

@media (max-width: 640px) {
  :root { --pad: 18px; }
  body { font-size: 16px; }
  .band { padding-block: 52px; }
  .band-tight { padding-block: 40px; }
  .actions3 { margin-top: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .topbar .shell { justify-content: center; font-size: .79rem; gap: 10px; }
  .topbar .sep, .topbar .hide-sm { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}

@media print {
  .site-header, .topbar, .drawer, .cta-band, .site-footer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
