/* =========================================================
   Goulas Eye — design direction preview
   Hand-written CSS. No framework, no build step, no jQuery.
   ~700 lines replaces 623 KB of Bootstrap 3 + plugins.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — #2b6ab1 is lifted straight from logonew.svg (5.5:1 on white) */
  --brand-500: #2b6ab1;
  --brand-600: #235690;
  --brand-700: #1b436f;

  /* Deep navy surfaces */
  --navy-900: #0f2a44;
  --navy-800: #143a5e;

  /* Lowcountry warm neutrals — this is what keeps it from
     looking like every other cold-blue medical site */
  --sand-50: #faf7f1;
  --sand-100: #f3ede1;
  --sand-200: #e6dcc9;

  /* Accent — brass/sea-oat. 4.3:1 on navy. Never used for
     small text on white (it fails there at 3.4:1). */
  --gold-400: #d0a052;
  --gold-500: #b5822a;
  --gold-ink: #8a6118;   /* 5.5:1 on white — safe for text */

  --ink-900: #12181f;
  --ink-700: #34404d;
  --ink-500: #55606d;
  --line: #dfe4ea;
  --line-dark: #2a4a6b;
  --white: #ffffff;

  /* Fluid type scale */
  --step--1: clamp(.82rem, .78rem + .2vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.075rem);
  --step-1:  clamp(1.2rem, 1.1rem + .45vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.28rem + .8vw, 1.9rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.2rem, 1.6rem + 2.8vw, 3.9rem);

  --space-s: .75rem;
  --space-m: 1.25rem;
  --space-l: 2rem;
  --space-xl: clamp(3rem, 6vw, 5.5rem);

  --radius: 4px;
  --radius-lg: 10px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(15,42,68,.06), 0 8px 24px rgba(15,42,68,.07);
  --shadow-lg: 0 2px 4px rgba(15,42,68,.08), 0 18px 44px rgba(15,42,68,.13);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::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;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); color: var(--ink-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
img, svg, video { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand-600); }

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.utilbar :focus-visible { outline-color: var(--gold-400); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 50%; translate: -50% -120%;
  z-index: 200; background: var(--navy-900); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; font-weight: 600; transition: translate .15s;
}
.skip-link:focus { translate: -50% 0; }

.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: var(--step--1);
  letter-spacing: .01em; text-decoration: none; cursor: pointer;
  padding: .8rem 1.4rem; border-radius: var(--radius);
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { padding: .55rem 1rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: var(--step-0); }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--brand-500); color: #fff; border-color: var(--brand-500); }
.btn--primary:hover { background: var(--brand-700); border-color: var(--brand-700); }

.btn--gold { background: var(--gold-400); color: var(--navy-900); border-color: var(--gold-400); }
.btn--gold:hover { background: #e2b671; border-color: #e2b671; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.btn--outline { background: transparent; color: var(--brand-600); border-color: var(--brand-500); }
.btn--outline:hover { background: var(--brand-500); color: #fff; }

.btn--text { background: none; border: none; color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; padding-inline: .25rem; }
.btn--text:hover { color: var(--brand-700); }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .75rem;
}
.eyebrow--onDark { color: var(--gold-400); }

.section { padding-block: var(--space-xl); }
.section--sand { background: var(--sand-50); border-block: 1px solid var(--sand-200); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: var(--step-3); }
.section__lede { font-size: var(--step-1); color: var(--ink-500); margin-bottom: 0; }

/* =========================================================
   Utility bar + header
   ========================================================= */
.utilbar { background: var(--navy-900); color: #cfe0f0; font-size: var(--step--1); }
.utilbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.utilbar__loc { margin: 0; letter-spacing: .02em; }
.utilbar__actions { display: flex; align-items: center; gap: 1.25rem; }
/* padding-block keeps these >=24px tall for WCAG 2.2 SC 2.5.8 (Target Size) */
.utilbar__link { display: inline-block; padding-block: .3rem; color: #cfe0f0; text-decoration: none; }
.utilbar__link:hover { color: #fff; text-decoration: underline; }
.utilbar__phone { display: inline-flex; align-items: center; gap: .45rem; padding-block: .3rem; color: #fff; font-weight: 600; text-decoration: none; }
.utilbar__phone:hover { color: var(--gold-400); }
@media (max-width: 560px) { .utilbar__loc { display: none; } .utilbar__inner { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); min-height: 78px; }
.brand { flex: none; display: block; }
.brand img { width: clamp(140px, 18vw, 185px); height: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__list a {
  display: block; padding: .5rem 0; color: var(--ink-900); text-decoration: none;
  font-weight: 500; font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.nav__list a:hover { color: var(--brand-600); border-bottom-color: var(--brand-500); }

.header-cta { flex: none; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .6rem; margin-left: auto;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    padding: .55rem .85rem; font: inherit; font-size: var(--step--1); font-weight: 600;
    color: var(--ink-900); cursor: pointer;
  }
  .menu-toggle__bars { display: grid; gap: 4px; width: 18px; }
  .menu-toggle__bars span { height: 2px; background: var(--ink-900); border-radius: 2px; }
  .mobile-nav { border-top: 1px solid var(--line); padding: 1rem clamp(1.25rem, 5vw, 2rem) 1.5rem; background: #fff; }
  .mobile-nav ul { margin-bottom: 1rem; }
  /* Scoped to the list: `.mobile-nav a` is (0,1,1) and would outrank `.btn`
     (0,1,0), clobbering the CTA button's display, colour and padding. */
  .mobile-nav ul a { display: block; padding: .8rem 0; color: var(--ink-900); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-nav ul a:hover { color: var(--brand-600); }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; isolation: isolate; color: #fff; display: grid; align-items: end; min-height: clamp(520px, 78vh, 760px); }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--navy-900); }
.hero__video, .hero__kenburns { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Hidden until site.js decides a video download is appropriate (see site.js). */
.hero__video { display: none; }
.hero__video--on { display: block; }
/* background-image is set inline from site.heroPoster */
.hero__kenburns {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: kenburns 28s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.02) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); } }
@media (prefers-reduced-motion: reduce) { .hero__kenburns { animation: none; } }

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(9,26,43,.94) 0%, rgba(9,26,43,.72) 48%, rgba(9,26,43,.42) 100%),
    linear-gradient(to top, rgba(9,26,43,.85) 0%, rgba(9,26,43,0) 55%);
}
.hero__content { padding-block: clamp(4rem, 12vw, 8rem) clamp(3.5rem, 8vw, 6rem); max-width: 46rem; }
.hero__title { font-size: var(--step-4); color: #fff; letter-spacing: -.015em; margin-bottom: .55em; text-wrap: balance; }
.hero__title em { font-style: italic; color: var(--gold-400); }
.hero__sub { font-size: var(--step-1); color: #dbe6f1; max-width: 38rem; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero__pause {
  position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(9,26,43,.66); color: #fff; border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; padding: .5rem .95rem; font: inherit; font-size: var(--step--1);
  font-weight: 600; cursor: pointer; backdrop-filter: blur(6px);
}
.hero__pause:hover { background: rgba(9,26,43,.88); }
.hero__pause .ico--play { display: none; }
.hero__pause[aria-pressed="true"] .ico--pause { display: none; }
.hero__pause[aria-pressed="true"] .ico--play { display: block; }
@media (max-width: 560px) { .hero__pause .pause-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* =========================================================
   Trust strip
   ========================================================= */
.trust { background: var(--navy-900); color: #fff; padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.75rem; text-align: center; }
.trust__item { display: grid; gap: .3rem; }
.trust__num { font-family: var(--serif); font-size: var(--step-3); color: var(--gold-400); line-height: 1; }
.trust__lbl { font-size: var(--step--1); color: #c3d6e8; letter-spacing: .02em; }

/* =========================================================
   Services grid
   ========================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.25rem; }
.svc {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem 1.5rem;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.svc:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--brand-500); }
.svc__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1.1rem;
  border-radius: 50%; background: var(--brand-500);
}
.svc__icon svg { width: 26px; height: 26px; fill: #fff; }
.svc h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.svc p { font-size: var(--step--1); color: var(--ink-500); margin-bottom: 1rem; }
.svc__more { font-size: var(--step--1); font-weight: 600; color: var(--brand-600); }
.svc__more::after { content: " →"; }

/* "new page" flag — only visible in notes mode */
.svc--new::before {
  content: "NEW PAGE"; position: absolute; top: -9px; right: 14px;
  background: var(--gold-500); color: #fff; font-size: .62rem; font-weight: 600;
  letter-spacing: .09em; padding: .2rem .5rem; border-radius: 3px; display: none;
}
body.notes-on .svc--new::before { display: block; }
body.notes-on .svc--new { border-color: var(--gold-500); border-style: dashed; }

/* =========================================================
   Doctor cards — the Vance Thompson pattern, Goulas data
   ========================================================= */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.doc {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.doc:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.doc__photo { position: relative; aspect-ratio: 4 / 3; background: var(--sand-100); }
.doc__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.doc__photoflag {
  position: absolute; inset: auto 0 0 0; display: none;
  background: rgba(181,130,42,.94); color: #fff; text-align: center;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .05em; padding: .45rem;
}
body.notes-on .doc__photoflag { display: block; }

.doc__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.doc__name { font-size: var(--step-2); margin-bottom: .15rem; }
.doc__role {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold-ink); margin-bottom: .9rem;
}
.doc__blurb { font-size: var(--step--1); color: var(--ink-500); }
.doc__meta { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.doc__metalabel {
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: .6rem;
}
.taglist { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.taglist a {
  display: block; font-size: .78rem; font-weight: 500; text-decoration: none;
  color: var(--brand-700); background: #eaf2fa; border: 1px solid #d3e4f4;
  border-radius: 999px; padding: .28rem .7rem;
}
.taglist a:hover { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.doc__link { display: inline-block; padding-block: .3rem; font-size: var(--step--1); font-weight: 600; color: var(--brand-600); text-decoration: none; }
.doc__link::after { content: " →"; }
.doc__link:hover { text-decoration: underline; }

body.notes-on .doc--highlight { outline: 3px solid var(--gold-500); outline-offset: 4px; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { background: var(--navy-800); color: #fff; padding-block: var(--space-xl); }
.cta-band__inner { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .cta-band__inner { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }
.cta-band__title { font-size: var(--step-3); color: #fff; }
.cta-band__text { color: #cfe0f0; font-size: var(--step-1); margin-bottom: 0; max-width: 34rem; }
.cta-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.cta-band__hours { font-size: var(--step--1); color: #a9c4dc; margin: .25rem 0 0; }

/* =========================================================
   Locations + resources
   ========================================================= */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.loc { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand-500); border-radius: var(--radius-lg); padding: 1.75rem; }
.loc h3 { font-size: var(--step-2); margin-bottom: .6rem; }
.loc__addr { font-size: var(--step-0); color: var(--ink-700); margin-bottom: .4rem; }
.loc__hours { font-size: var(--step--1); color: var(--ink-500); margin-bottom: 1.25rem; }
.loc__links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.res { border-top: 3px solid var(--brand-500); padding-top: 1.2rem; }
.res h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.res p { font-size: var(--step--1); color: var(--ink-500); margin-bottom: .7rem; }
.res__more { font-size: var(--step--1); font-weight: 600; color: var(--brand-600); }
.res__more::after { content: " →"; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-900); color: #c3d6e8; padding-top: var(--space-xl); font-size: var(--step--1); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-logo { font-family: var(--serif); font-size: var(--step-2); color: #fff; margin-bottom: .5rem; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--gold-400); line-height: 1.5; }
.footer-social { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: 50%; color: #c3d6e8; }
.footer-social:hover { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.footer-head { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.footer-list li { margin-bottom: .35rem; line-height: 1.5; }
.footer-list a { display: inline-block; padding-block: .3rem; color: #c3d6e8; text-decoration: none; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  border-top: 1px solid var(--line-dark); padding-block: 1.35rem; font-size: .8rem; color: #8fabc6;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal a { display: inline-block; padding-block: .3rem; color: #c3d6e8; }

/* =========================================================
   Project notes overlay (toggle in the corner)
   ========================================================= */
.note { display: none; }
body.notes-on .note {
  display: block; margin-top: 2.25rem;
  background: #fffdf6; border: 1px solid var(--gold-400); border-left: 5px solid var(--gold-500);
  border-radius: var(--radius-lg); padding: 1.35rem 1.5rem; box-shadow: var(--shadow);
  color: var(--ink-700); font-size: var(--step--1); line-height: 1.6;
}
body.notes-on .note p:last-child { margin-bottom: 0; }
.note__tag {
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: .6rem;
}
.note__meta { color: var(--ink-500); }
.note code { background: var(--sand-100); border-radius: 3px; padding: .1rem .35rem; font-size: .92em; }

body.notes-on .note--hero {
  position: relative; margin: 0 auto; width: min(100% - 2.5rem, var(--wrap));
  transform: translateY(-1.5rem);
}
body.notes-on .note--onDark { background: rgba(255,253,246,.97); }

.notes-toggle {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 150;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold-500); color: #fff; border: none; border-radius: 999px;
  padding: .75rem 1.15rem; font: inherit; font-size: var(--step--1); font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-lg);
}
.notes-toggle:hover { background: var(--gold-ink); }
.notes-toggle[aria-pressed="true"] { background: var(--navy-900); }

@media print { .notes-toggle, .hero__pause, .skip-link { display: none !important; } }

/* =========================================================
   Additions for generated pages (breadcrumb, profile,
   sub-sections, build flags, sr-only)
   ========================================================= */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.breadcrumb { background: var(--sand-50); border-bottom: 1px solid var(--sand-200); font-size: var(--step--1); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-block: .6rem; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--ink-500); }
/* padding-block keeps these >=24px tall for WCAG 2.2 SC 2.5.8 */
.breadcrumb a { display: inline-block; padding-block: .3rem; color: var(--brand-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink-500); }

.section__sub { margin-top: clamp(2.5rem, 5vw, 4rem); }
.section__sub h2 { font-size: var(--step-2); margin-bottom: 1.25rem; }
.section__foot { margin-top: 2rem; }

.profile { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 860px) { .profile { grid-template-columns: minmax(260px, 340px) 1fr; } }
.profile__photo { width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 4 / 3; }
.profile__facts { margin-top: 1.5rem; }
.profile__body h1 { font-size: var(--step-3); }

.doc-grid--compact .doc__body { padding: 1.15rem; }
.doc-grid--compact .doc__name { font-size: var(--step-1); }

.taglist--lg a { font-size: var(--step--1); padding: .45rem 1rem; }

.loc h2 a, .loc h3 a { color: inherit; text-decoration: none; }
.loc h2 a:hover, .loc h3 a:hover { color: var(--brand-600); text-decoration: underline; }

/* Authoring markers — internal notes and open questions for the practice.
   Hidden by default so staging can be demoed cleanly; append ?notes=1 to any
   URL to reveal them (see site.js). They stay in the HTML either way, so
   `npm run check:production` still blocks them from reaching production. */
.build-flag, .needs-input { display: none; }
body.notes-on .build-flag,
body.notes-on .needs-input { display: block; }

.build-flag {
  background: #fffdf6; border: 1px dashed var(--gold-500); border-left: 5px solid var(--gold-500);
  border-radius: var(--radius); padding: .85rem 1.1rem; font-size: var(--step--1);
  color: var(--gold-ink); font-weight: 500;
}

/* =========================================================
   Service pages: page head, prose, rail, needs-input
   ========================================================= */

.page-head { background: var(--sand-50); border-bottom: 1px solid var(--sand-200); padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-head__inner { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) { .page-head__inner { grid-template-columns: minmax(0,1fr) 20rem; gap: 3rem; } }
.page-head h1 { font-size: var(--step-3); }
.page-head .section__lede { max-width: 36rem; }
.page-head__cta { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.page-head__hours { font-size: var(--step--1); color: var(--ink-500); margin: 0; }
.phone-lg {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--serif); font-size: var(--step-2); font-weight: 600;
  color: var(--brand-700); text-decoration: none; padding-block: .2rem;
}
.phone-lg:hover { text-decoration: underline; }

.prose-wrap { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 62rem) { .prose-wrap { grid-template-columns: minmax(0,1fr) 19rem; } }

/* Running text sits near 68 characters for comfortable reading. */
.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose h2 + p, .prose h3 + p { margin-top: .6em; }
.prose ul { list-style: disc; padding-left: 1.35rem; }
.prose ul li { margin-bottom: .5em; }
.prose strong { color: var(--ink-900); }
/* :not(.btn) for the same specificity reason as .mobile-nav above — a button
   placed inside prose was being repainted in the link colour. */
.prose a:not(.btn) { color: var(--brand-600); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose table th, .prose table td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.prose table th { background: var(--sand-50); color: var(--ink-900); font-weight: 600; }
/* Wide tables scroll inside their own box; the page body never scrolls sideways. */
.prose > table { display: block; overflow-x: auto; }

.ticklist { list-style: none; padding: 0; display: grid; gap: .5rem; }
.ticklist li { display: flex; gap: .6rem; }
.ticklist li::before { content: "✓"; color: var(--brand-500); font-weight: 700; flex: none; }

.rail { display: grid; gap: 1.25rem; position: sticky; top: 6.5rem; }
@media (max-width: 61.99rem) { .rail { position: static; } }
.rail__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; }
.rail__box--cta { background: var(--sand-50); border-color: var(--sand-200); }
.rail__h { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); margin-bottom: .9rem; }
.rail__note { font-size: var(--step--1); color: var(--ink-500); }
.rail__docs { display: grid; gap: .9rem; }
.rail__docs li { display: flex; gap: .75rem; align-items: center; }
.rail__docs img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex: none; }
.rail__docs a { display: block; font-weight: 600; font-size: var(--step--1); text-decoration: none; padding-block: .15rem; }
.rail__docs a:hover { text-decoration: underline; }
.rail__docs span { display: block; font-size: .78rem; color: var(--ink-500); }
.rail__links { display: grid; gap: .1rem; }
.rail__links a { display: block; padding-block: .4rem; font-size: var(--step--1); color: var(--brand-600); text-decoration: none; }
.rail__links a:hover { text-decoration: underline; }
.rail__phone { display: block; text-align: center; margin-top: .7rem; font-weight: 600; color: var(--brand-700); text-decoration: none; padding-block: .3rem; }

/* Service hub groups */
.svc-group { margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc-group__head { margin-bottom: 1.5rem; padding-bottom: .9rem; border-bottom: 2px solid var(--sand-200); }
.svc-group__head h2 { font-size: var(--step-2); margin-bottom: .25rem; }
.svc-group__head p { font-size: var(--step--1); color: var(--ink-500); margin: 0; }
.svc h3 a { color: inherit; text-decoration: none; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; }
.svc:focus-within { outline: 3px solid var(--brand-500); outline-offset: 3px; }
.hub-note { margin-top: clamp(2.5rem, 5vw, 4rem); padding: 1.5rem; background: var(--sand-50); border: 1px solid var(--sand-200); border-radius: var(--radius-lg); }
.hub-note h2 { font-size: var(--step-1); }
.hub-note p { font-size: var(--step--1); color: var(--ink-500); margin: 0; }

/* NEEDS INPUT — deliberately loud. `npm run check:production` blocks these
   from ever reaching the live site. */
.needs-input {
  background: #fff8e6; border: 2px dashed var(--gold-500); border-left: 6px solid var(--gold-500);
  border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin-block: 1.5rem;
}
.needs-input__tag { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .4rem; }
.needs-input__q { color: var(--ink-900); font-weight: 600; margin: 0; font-size: var(--step--1); }
.needs-input__a { color: var(--ink-500); font-size: var(--step--1); margin: .5rem 0 0; font-style: italic; }

/* Notes-mode chip */
.notes-chip {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 150;
  display: none; align-items: center; gap: .5rem;
  background: var(--gold-500); color: #fff; border: none; border-radius: 999px;
  padding: .7rem 1.1rem; font: inherit; font-size: var(--step--1); font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-lg);
}
body.notes-on .notes-chip { display: inline-flex; }
.notes-chip:hover { background: var(--gold-ink); }
@media print { .notes-chip { display: none !important; } }

/* ---------- Contact page ---------- */
.section-h { font-size: var(--step-2); margin-bottom: 1.5rem; }
.pathways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.pathway { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; }
.pathway--primary { border-color: var(--brand-500); border-width: 2px; }
.pathway__step { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .5rem; }
.pathway h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.pathway p { font-size: var(--step--1); color: var(--ink-500); }
.pathway .btn { margin-top: auto; }
.pathway__note { font-size: .8rem; color: var(--ink-500); margin: .6rem 0 0; text-align: center; }

.urgent-note { margin-top: 2rem; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--sand-50); border: 1px solid var(--sand-200); border-left: 5px solid var(--gold-500); }
.urgent-note h2 { font-size: var(--step-1); margin-bottom: .5rem; }
.urgent-note p { font-size: var(--step--1); }
.urgent-note__phone { font-family: var(--serif); font-size: var(--step-2); margin: .5rem 0 0; }
.urgent-note__phone a { color: var(--brand-700); text-decoration: none; }
.urgent-note__phone a:hover { text-decoration: underline; }
