/* ============================================================
   Atchison Eye Center — Core design system
   Brand: signature teal #68ccd1 · Roboto Slab (headings) + Poppins (body)
   ============================================================ */

:root {
  /* Brand */
  --teal-900: #0d3f45;
  --teal-800: #12525a;
  --teal-700: #1a6e77;   /* primary — readable with white text */
  --teal-600: #24909a;
  --teal-500: #35a7b0;
  --teal-400: #68ccd1;   /* signature brand tint */
  --teal-300: #9bdde1;
  --teal-100: #e4f6f7;
  --teal-50:  #f1fbfb;

  --heart:    #ef7d63;   /* warm coral accent — used sparingly */
  --heart-soft:#fde8e2;
  --gold:     #d8a24a;

  --ink:      #1e2a30;
  --slate:    #566a70;
  --line:     #e0ebec;
  --paper:    #ffffff;
  --mist:     #f4fafb;

  --shadow-sm: 0 1px 2px rgba(12,63,69,.06), 0 1px 3px rgba(12,63,69,.08);
  --shadow-md: 0 6px 18px rgba(12,63,69,.08), 0 2px 6px rgba(12,63,69,.06);
  --shadow-lg: 0 20px 48px rgba(12,63,69,.14);

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1160px;
  --edge: clamp(2.5rem, 3.75vw, 4rem);   /* side padding of the full-width bands: 40px to 64px */
  --ease: cubic-bezier(.4,0,.2,1);

  --font-head: "Roboto Slab", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --tag-bg: rgba(18, 82, 90, .92);   /* teal-800 at 92% — labels over photos */
  --focus: var(--teal-800);
  --focus-on-dark: #ffffff;
  --_bg: var(--teal-700);
  --_fg: #fff;
}

@media (max-width: 760px) { :root { --edge: 1.125rem; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-800); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* Dark surfaces: the teal ring would disappear, so switch to white. */
.topbar :focus-visible,
.page-hero :focus-visible,
.section--teal :focus-visible,
.site-footer :focus-visible,
.skip-link:focus-visible { outline-color: var(--focus-on-dark); }
.skip-link {
  position: absolute; left: 1rem; top: 0; transform: translateY(-150%);
  background: var(--teal-900); color: #fff; font-weight: 600;
  padding: .65rem 1rem; border-radius: 0 0 12px 12px; z-index: 80;
}
.skip-link:focus { transform: none; color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--teal-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.3px; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--slate); }

.wrap { width: min(92%, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(2rem, 4vw, 3rem) 0; }
/* Two white bands in a row would add their padding together. */
.section:not(.section--mist):not(.section--teal) + .section:not(.section--mist):not(.section--teal) { padding-top: 0; }
.section--mist { background: var(--mist); }
.section--teal { background: linear-gradient(160deg, var(--teal-800), var(--teal-700) 60%, var(--teal-600)); color: #eaf3f7; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--teal p { color: #cfe2ea; }
.lead { font-size: 1.08rem; color: var(--slate); max-width: 62ch; margin-bottom: 0; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons ---------------------------------------------------- */
.btn {
  --_bg: var(--teal-700); --_fg: #fff;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--_bg); color: var(--_fg);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; background: var(--teal-800); }
.btn--heart { --_bg: var(--heart); }
.btn--heart:hover { background: #e05a4c; }
.btn--ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-300); box-shadow: none; }
.btn--ghost:hover { background: var(--teal-50); color: var(--teal-800); }
/* On teal bands this button has white text, so its hover fill darkens instead. */
.section--teal .btn--ghost:hover { background: rgba(13,63,69,.45); color: #fff; }
.btn--white { background: #fff; color: var(--teal-800); }
.btn--white:hover { background: #eef6fa; color: var(--teal-900); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* Top call bar ----------------------------------------------- */
.topbar {
  background: var(--teal-900); color: #cfe6ef;
  font-size: .84rem; letter-spacing: .01em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: .6rem 1rem; width: 100%; padding: .5rem var(--edge); flex-wrap: wrap; } /* full width, like the footer */
.topbar a { color: #eaf3f7; font-weight: 500; }
.topbar__hours { min-width: 0; flex: 1 1 16rem; opacity: .85; }
.topbar__call { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }

/* Header / nav ----------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; padding: .7rem var(--edge); }
@media (max-width: 560px) { .site-header .wrap { gap: .75rem; } } /* keeps the logo its size on small phones */
/* One-line lockup (mark + name). Lockup ratio is 1565 x 220. */
.brand { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand img { width: 285px; max-width: 100%; height: auto; }

.nav { display: flex; align-items: center; gap: .1rem; }
.nav > a, .nav__item > a {
  font-weight: 500; color: var(--ink); padding: .5rem .6rem; border-radius: 10px;
  display: inline-flex; align-items: center; gap: .3rem; font-size: .93rem; white-space: nowrap;
}
.nav > a:where(:not(.btn)):hover, .nav__item > a:hover { background: var(--teal-50); color: var(--teal-800); }
.nav a.is-active { color: var(--teal-700); }
.nav__item { position: relative; }
.nav__item > a::after { content: "▾"; font-size: .7em; opacity: .6; }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 246px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .2s var(--ease);
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a { display: block; padding: .6rem .8rem; border-radius: 9px; font-weight: 500; color: var(--ink); font-size: .95rem; }
.nav__menu a:hover { background: var(--teal-50); color: var(--teal-800); }
.nav__cta { margin-left: .4rem; }
.nav .nav__cta.btn { padding: .65rem 1.05rem; font-size: .9rem; }
/* launch 2026-10-31: ".nav > a" outranked .btn, leaving dark text on the teal button */
.nav > a.nav__cta, .nav > a.nav__cta:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--teal-800); }
.nav-toggle .icon-close, .nav__head, .nav__foot { display: none; }

/* Footer ----------------------------------------------------- */
/* Full bleed: the footer runs the width of the screen. No extra room is needed under the bottom bar for
   the floating accessibility button: the widget adds its own footer-colored space below the footer. */
.site-footer { background: var(--teal-900); color: #bcd7e2; padding: 2.5rem 0 1.25rem; }
.site-footer > .wrap { width: 100%; padding-inline: var(--edge); }
.site-footer .footer-label { color: #fff; font-family: var(--font-body); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 .9rem; }
/* Columns are as wide as their content; the spare width goes between them, first and last on the edges. */
.footer-grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; align-items: start; gap: 2rem 1.5rem; }
.site-footer a { color: #d6e8ef; }
.site-footer a:hover { color: #fff; }
.footer-brand img { width: clamp(220px, 19vw, 270px); max-width: 100%; height: auto; }
/* Beside the other columns, the logo is centered on the line of their headings. */
@media (min-width: 561px) { .footer-brand { display: flex; align-items: center; height: 1.32rem; } }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .95rem; }
.footer-visit { font-size: .95rem; }
.footer-loc { font-style: normal; line-height: 1.55; margin: 0 0 .9rem; }
.footer-loc strong { display: block; color: #fff; font-weight: 600; }
.footer-loc span { display: block; }
.footer-reach { display: grid; gap: .3rem; justify-items: start; }
.footer-reach a { overflow-wrap: anywhere; }
.footer-hours { margin: 0; font-size: .95rem; width: 13.5rem; max-width: 100%; }
.footer-hours > div { display: flex; justify-content: space-between; gap: 1rem; padding: .32rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-hours > div:first-child { padding-top: 0; }
.footer-hours dt { color: #bcd7e2; }
.footer-hours dd { margin: 0; color: #fff; font-weight: 500; white-space: nowrap; }

/* Bottom bar: copyright left, legal links center, design credit right. */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.75rem; padding-top: 1.1rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem 1rem; font-size: .82rem; color: #a9c6d1; }
.footer-bottom__copy { justify-self: start; }
.footer-bottom__legal { justify-self: center; display: flex; gap: .6rem; }
.footer-bottom__credit { justify-self: end; text-align: right; }

@media (max-width: 999px) {
  .footer-grid { grid-template-columns: auto auto; }
}
@media (max-width: 900px) {
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-bottom__copy, .footer-bottom__legal, .footer-bottom__credit { justify-self: center; text-align: center; }
  .footer-bottom__legal { order: -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-hours { width: 100%; max-width: 17rem; }
}

/* Card grid + CTA band — shared by the home and interior pages ---- */
.diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.diff__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.diff__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.diff__ico { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: .9rem; }
.diff__card h3 { margin-bottom: .35rem; font-size: 1.08rem; }
.diff__card p { margin: 0; font-size: .93rem; }

.cta-band { text-align: center; }
.cta-band .btn { margin-top: .4rem; }
.cta-band .lead { margin-bottom: .6rem; }
/* Space between a section heading block and what follows it. */
.stack { margin-top: 1.5rem; }

/* Team name cards (home + about) ----------------------------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; max-width: 940px; margin: 1.5rem auto 0; }
.person { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow-sm); text-align: left; }
.person__avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-800); font-family: var(--font-head); font-weight: 600; }
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0; font-size: 1.02rem; }
.person__role { margin: .1rem 0 0; font-size: .86rem; color: var(--slate); }
.person__bio { margin: .35rem 0 0; font-size: .88rem; }
@media (max-width: 820px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }

/* Reveal on scroll ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (min-width: 620px) and (max-width: 900px) {
  .diff { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 619px) {
  .diff { grid-template-columns: 1fr; }
}
/* Keep this breakpoint in step with DRAWER_MQ in js/chrome.js. */
@media (max-width: 1180px) {
  /* No blur here: backdrop-filter makes the header the box that "fixed" children are placed in, which
     squeezed the slide-out menu to the header's height. Solid white instead. (Test: _tools/menu-test.cjs) */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  /* Slide-out menu: a deep-teal panel with the practice lockup on top.
     visibility keeps the closed drawer out of the tab order. */
  .nav { position: fixed; inset: 0 0 0 auto; width: min(90%, 340px); background: var(--teal-900); color: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 5.5rem; /* the end scrolls clear of the accessibility button */
    scroll-padding: 76px 0 5.5rem; /* a focused link never hides under the logo band or that button */
    box-shadow: var(--shadow-lg); transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s linear .3s; overflow-y: auto; overscroll-behavior: contain; }
  .nav.open { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
  .nav :focus-visible { outline: 3px solid #fff; outline-offset: -4px; }

  .nav__head { display: flex; align-items: center; flex: none; position: sticky; top: 0; z-index: 1; height: 72px;
    padding: 0 76px 0 1.25rem; /* right side is the close button's */
    background: var(--teal-900); border-bottom: 3px solid var(--teal-400); }
  .nav__brand { display: flex; align-items: center; width: 100%; min-height: 48px; }
  .nav__brand img { width: 100%; max-width: 236px; height: auto; }

  .nav > a, .nav__item > a { display: flex; flex: none; align-items: center; min-height: 49px; padding: .5rem 1.25rem; border-radius: 0;
    font-size: 1.02rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.16); }
  .nav__item { position: static; flex: none; }
  .nav__item > a::after { content: ""; flex: none; margin-left: auto; width: 9px; height: 9px; opacity: 1; /* a drawn chevron */
    border: solid var(--teal-300); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
  .nav__item.open > a::after { transform: translateY(2px) rotate(225deg); }
  /* inherit, not visible: an expanded submenu must still hide with the drawer */
  .nav__menu { position: static; min-width: 0; opacity: 1; visibility: inherit; transform: none; box-shadow: none;
    background: rgba(0,0,0,.22); border: 0; border-radius: 0; margin: 0; padding: 0; display: none; }
  .nav__item.open .nav__menu { display: block; }
  .nav__menu a { display: flex; align-items: center; min-height: 49px; padding: .5rem 1.25rem .5rem 2.25rem; border-radius: 0;
    font-size: .96rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav > a:where(:not(.btn)):hover, .nav__item > a:hover, .nav__menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
  /* Where you are: a bar in the signature teal, a tint and bolder type (not color alone). */
  .nav a.is-active, .nav .nav__item--here > a, .nav a[aria-current="page"] {
    color: #fff; font-weight: 600; background: rgba(104,204,209,.2); box-shadow: inset 5px 0 0 var(--teal-400); }

  .nav > a.nav__cta.btn { flex: none; justify-content: center; min-height: 52px; margin: 1.1rem 1.25rem .35rem; padding: .7rem 1rem;
    border: 0; border-radius: 100px; font-size: 1.02rem; font-weight: 600; text-align: center; background: #fff; color: var(--teal-900); }
  .nav > a.nav__cta.btn:hover { background: var(--teal-100); color: var(--teal-900); }
  .nav > a.nav__cta.btn[aria-current="page"] { box-shadow: 0 0 0 3px var(--teal-400); }
  .nav > a.nav__cta:focus-visible { outline-offset: 3px; }

  /* Phone and the two offices. The right padding keeps this text out from under the accessibility button. */
  .nav__foot { display: block; flex: none; padding: .35rem 4.9rem 0 1.25rem; }
  .nav .nav__call { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; color: #fff; font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
  .nav .nav__call:hover { color: var(--teal-300); }
  .nav__call svg { width: 19px; height: 19px; flex: none; fill: var(--teal-400); }
  .nav__foot p { margin: 0; font-size: .82rem; line-height: 1.6; color: var(--teal-300); }
  .nav__foot strong { color: #fff; font-weight: 600; }

  /* The menu button stays on top. While open it turns into a close (X) button, held in the panel's top corner. */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: -4px 0; padding: 0;
    position: relative; z-index: 2; border-radius: 12px; }
  .nav-toggle[aria-expanded="true"] { position: fixed; top: 11px; right: 12px; margin: 0; background: rgba(255,255,255,.14); }
  .nav-toggle[aria-expanded="true"] svg { stroke: #fff; }
  .nav-toggle[aria-expanded="true"]:focus-visible { outline-color: #fff; }
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: inline; }
  .topbar__hours { display: none; }
}

/* Drawer fix (Claude 2026-09-22): the closed drawer is position:fixed and translated 100% to the
   right; Chrome still counts that box in the document's scrollable overflow, so every phone got
   315px of sideways scroll. `clip` does not create a scroll container, so the sticky header keeps
   working. Scoped to the drawer breakpoint (DRAWER_MQ in chrome.js). */
@media (max-width: 1180px) {
  html, body { overflow-x: clip; }
}

/* chrome.js injects the top bar + header into #site-header. That wrapper is only as tall as its
   contents, so the sticky header had no room to travel and scrolled away. With display: contents the
   wrapper vanishes from layout: the top bar scrolls off and the header pins (2026-09-29). */
#site-header { display: contents; }
