/* ==========================================================================
   South Boston Dental Care - "Harbor Arc" theme
   Colours come from the practice logo: navy #183058 and burnt orange #d07018.
   Every colour is a token below, so a palette change happens in one place.
   ========================================================================== */
@font-face { font-family: "Sora"; src: url("../fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --navy-950: #0d1c36;
  --navy-900: #122647;
  --navy: #183058;
  --navy-600: #2c4a7e;
  --navy-300: #a9b9d4;
  --orange: #b95a0b;          /* logo orange, darkened to pass AA with white text */
  --orange-logo: #d07018;
  --orange-ink: #a4520a;      /* orange text on light surfaces */
  --orange-soft: #f4ab6b;     /* orange text on navy surfaces */
  --mist: #eef2f8;
  --mist-2: #dfe6f1;
  --paper: #ffffff;
  --ink: #15233d;
  --muted: #475570;
  --line: #d5dde9;
  --on-dark: #ffffff;
  --on-dark-muted: #cfd9ea;
  --error: #b3261e;
  --success: #17693c;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 24px;
  --shadow: 0 18px 50px -24px rgba(13, 28, 54, .45);
  --header-h: 88px;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 24, 48, 88;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden; }
h1, h2, h3, h4, h5, .display { font-family: var(--font-display); color: var(--navy); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.875rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); }
a { color: var(--navy-600); text-underline-offset: .18em; }
a:hover { color: var(--orange-ink); }
img { max-width: 100%; height: auto; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); font-weight: 400; color: var(--muted); }
.ph { line-height: 1; vertical-align: -.125em; }
.flex-none { flex: none; }
/* Wide page gutter: keeps Bootstrap g-5 rows from overflowing the screen */
.container-xxl { --bs-gutter-x: 3rem; }
@media (max-width: 575.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } .container-xxl { --bs-gutter-x: 2.5rem; } }

:focus-visible { outline: 3px solid var(--orange-logo); outline-offset: 3px; border-radius: 4px; }
.surface-dark :focus-visible { outline-color: #fff; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 3000; padding: .8rem 1.2rem; background: var(--navy); color: #fff; border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 0; color: #fff; }
.sbd-include-error { padding: 1rem; margin: 0; background: #fff4e5; color: #5c2c00; border-bottom: 2px solid var(--orange); font-size: .95rem; }
[data-include="includes/header.html"]:empty { min-height: var(--header-h); }

/* Sections ---------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.section--mist { background: var(--mist); }
.surface-dark { background: var(--navy); color: var(--on-dark-muted); }
.surface-dark h1, .surface-dark h2, .surface-dark h3, .surface-dark h4 { color: var(--on-dark); }
.surface-dark a:not(.btn-sbd) { color: #fff; }
.surface-dark a:not(.btn-sbd):hover { color: var(--orange-soft); }
.surface-dark .lead { color: var(--on-dark-muted); }
.section-head { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (min-width: 992px) { .section-head { grid-template-columns: 1.1fr .9fr; align-items: end; } }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

/* Buttons ----------------------------------------------------------------- */
.btn-sbd { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .75rem 1.5rem; border: 2px solid transparent; border-radius: var(--r-sm); font-family: var(--font-display); font-size: .975rem; font-weight: 600; letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn-sbd:hover { transform: translateY(-2px); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: #9c4b08; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-950); color: #fff; }
.btn-line { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.surface-dark .btn-line { border-color: #fff; color: #fff; }
.surface-dark .btn-line:hover { background: #fff; color: var(--navy); }
.btn-sm-sbd { min-height: 44px; padding: .5rem 1.1rem; font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange-logo); text-decoration-thickness: 2px; }
.text-link .ph { transition: transform .2s; }
.text-link:hover .ph { transform: translateX(4px); }

/* Header: logo in the centre, navigation either side ----------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-h); gap: 1rem; }
.site-logo { display: block; }
.site-logo img { display: block; width: 110px; height: auto; }
.nav-cluster { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-cluster--right { justify-content: flex-end; gap: .75rem; }
.nav-link-sbd { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .4rem .7rem; font-family: var(--font-display); font-size: .92rem; font-weight: 500; color: var(--navy); text-decoration: none; border-radius: var(--r-sm); white-space: nowrap; }
.nav-link-sbd:hover { background: var(--mist); color: var(--navy); }
.nav-link-sbd[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange-logo); border-radius: 0; }
.nav-caret { background: none; border: 0; min-width: 32px; min-height: 44px; color: var(--navy); border-radius: var(--r-sm); margin-left: -.5rem; }
.nav-caret:hover { background: var(--mist); }
.nav-caret.show .ph { transform: rotate(180deg); }
.nav-caret::after { display: none; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.mega { width: min(600px, 92vw); padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem 1rem; list-style: none; margin: 0; padding: 0; }
.mega a { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .35rem .6rem; color: var(--navy); text-decoration: none; border-radius: var(--r-sm); font-size: .95rem; }
.mega a:hover, .mega a:focus-visible { background: var(--mist); }
.mega a .ph { color: var(--orange-ink); font-size: 1.15rem; }
.mega__all { border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .75rem; }
.menu-toggle { background: none; border: 0; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; min-width: 44px; padding: 0 .4rem; color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.menu-toggle .ph { font-size: 1.6rem; }
.offcanvas-nav a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: .35rem 0; color: var(--navy); text-decoration: none; font-family: var(--font-display); font-weight: 500; border-bottom: 1px solid var(--line); }
.offcanvas-nav ul { list-style: none; padding: 0; margin: 0; }
.offcanvas-nav .sub a { padding-left: 1rem; font-family: var(--font-body); font-weight: 400; min-height: 44px; }
@media (max-width: 1199.98px) { :root { --header-h: 76px; } .site-logo img { width: 92px; } }
@media (max-width: 575.98px) { .menu-toggle span { display: none; } .header-book { padding-inline: .8rem; font-size: .82rem; } }

/* Hero: the logo's crescent cut against the original site's photograph ------- */
.hero { position: relative; background: var(--mist-2); overflow: hidden; }
.hero__photo { position: absolute; inset: 0 0 0 40%; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .9s ease, visibility .9s, transform 7s ease-out; }
.hero__img.is-active { opacity: 1; visibility: visible; transform: none; }
.hero__img--whitening { object-position: 86% 15%; }
.hero__img--smile { object-position: 70% 18%; }
.hero__img--doctor { object-position: 74% 15%; }
.hero__img--consult { object-position: 62% 20%; }
.hero__inner { position: relative; }
.hero__panel { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: clamp(600px, 78vh, 760px); padding: 4rem clamp(3rem, 6vw, 8rem) 8.5rem 0; }
.hero__panel::before { content: ""; position: absolute; z-index: -1; top: -2px; bottom: -2px; right: 0; left: -100vw; background: var(--navy); border-radius: 0 clamp(160px, 20vw, 300px) clamp(160px, 20vw, 300px) 0 / 0 50% 50% 0; }
.hero__title { color: #fff; font-weight: 600; font-size: clamp(2.25rem, 1.3rem + 2.8vw, 3.75rem); margin-bottom: 1.25rem; }
.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; align-self: end; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease, visibility .6s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero__controls { display: flex; align-items: center; gap: .5rem; margin-top: 1.75rem; }
.hero__btn { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1.5px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; font-size: 1.1rem; cursor: pointer; transition: background-color .2s, color .2s; }
.hero__btn:hover { background: #fff; color: var(--navy); }
.hero__dots { display: flex; gap: .25rem; margin-inline: .25rem; }
.hero__dot { position: relative; width: 32px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.hero__dot::before { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(255,255,255,.55); transition: background-color .2s; }
.hero__dot:hover::before { background: #fff; }
.hero__dot[aria-current="true"]::before { background: var(--orange-soft); }
.hero__sub { color: var(--on-dark-muted); font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); max-width: 34rem; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__cta .btn-line { border-color: #fff; color: #fff; }
.hero__cta .btn-line:hover { background: #fff; color: var(--navy); }
.hero__panel::after { content: ""; position: absolute; z-index: -2; top: -2px; bottom: -2px; right: -12px; left: -100vw; background: var(--orange-logo); border-radius: 0 clamp(160px, 20vw, 300px) clamp(160px, 20vw, 300px) 0 / 0 50% 50% 0; }
@media (min-width: 992px) { .hero__panel { width: 57%; } }
@media (max-width: 991.98px) {
  .hero { background: var(--navy); }
  .hero__photo { position: relative; inset: auto; height: 62vw; max-height: 520px; min-height: 280px; }
  .hero__img--whitening { object-position: 88% 15%; }
  .hero__img--smile { object-position: 78% 15%; }
  .hero__img--doctor { object-position: 78% 15%; }
  .hero__img--consult { object-position: 66% 20%; }
  .hero__inner { position: static; }
  .hero__panel { min-height: 0; padding: 2.5rem 0 7rem; }
  .hero__panel::before { left: -100vw; right: -100vw; top: -44px; bottom: 0; border-radius: 50% 50% 0 0 / 44px 44px 0 0; }
  .hero__panel::after { left: -100vw; right: -100vw; top: -50px; bottom: 0; border-radius: 50% 50% 0 0 / 44px 44px 0 0; }
}
.dock { position: relative; z-index: 5; margin-top: -5.25rem; display: grid; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.dock__item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; padding: 1.6rem 1.75rem; align-content: start; }
.dock__item + .dock__item { border-top: 1px solid var(--line); }
.dock__icon { grid-row: span 3; align-self: start; display: grid; place-items: center; width: 48px; height: 48px; background: var(--mist); color: var(--navy); border-radius: 50% 50% var(--r-sm) var(--r-sm); font-size: 1.5rem; }
.dock__item h2 { font-size: 1.1rem; margin: 0; letter-spacing: -.01em; }
.dock__item p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.45; }
.dock__item a { font-size: .92rem; }
@media (min-width: 768px) { .dock { grid-template-columns: repeat(3, 1fr); } .dock__item + .dock__item { border-top: 0; border-left: 1px solid var(--line); } }

/* Care highlights: a ruled row rather than cards --------------------------- */
.highlights { display: grid; border-top: 2px solid var(--navy); }
.highlight { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.highlight .ph { font-size: 2rem; color: var(--orange-ink); margin-bottom: .9rem; display: block; }
.highlight h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.highlight p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (min-width: 768px) { .highlights { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
@media (min-width: 1200px) { .highlights { grid-template-columns: repeat(4, 1fr); } .highlight { border-bottom: 0; padding-right: 1rem; } .highlight + .highlight { border-left: 1px solid var(--line); padding-left: 1.75rem; } }

/* Arch-shaped images echo the tooth arc in the logo ------------------------- */
.arch { display: block; width: 100%; object-fit: cover; border-radius: 999px 999px var(--r-md) var(--r-md); background: var(--mist); }
.arch-stack { position: relative; padding-right: 18%; padding-bottom: 12%; }
.arch-stack__main { aspect-ratio: 4/5; object-position: 72% center; }
.arch-stack__small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1/1; object-fit: cover; object-position: 30% center; border-radius: var(--r-md); border: 6px solid #fff; box-shadow: var(--shadow); }

/* Practice legacy line ------------------------------------------------------ */
.legacy { list-style: none; padding: 0; margin: 2rem 0; border-left: 2px solid var(--line); }
.legacy li { position: relative; padding: 0 0 1.25rem 1.5rem; }
.legacy li:last-child { padding-bottom: 0; }
.legacy li::before { content: ""; position: absolute; left: -8px; top: .4rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--orange-logo); }
.legacy strong { display: block; font-family: var(--font-display); color: var(--navy); font-weight: 600; }
.legacy span { color: var(--muted); font-size: .98rem; }

/* Services directory --------------------------------------------------------- */
.directory { display: grid; gap: 3rem; }
@media (min-width: 992px) { .directory { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.directory__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.directory__list a { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 1rem; padding: .85rem .35rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color .2s, padding .2s; }
.directory__list img { width: 64px; height: 64px; object-fit: cover; border-radius: 999px 999px var(--r-sm) var(--r-sm); }
.directory__list strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); letter-spacing: -.015em; line-height: 1.25; }
.directory__list span { display: block; font-size: .94rem; color: var(--muted); line-height: 1.4; }
.directory__list .ph { font-size: 1.35rem; color: var(--orange-ink); transition: transform .2s; }
.directory__list a:hover, .directory__list a:focus-visible { background: var(--mist); padding-left: 1rem; }
.directory__list a:hover .ph, .directory__list a:focus-visible .ph { transform: translateX(4px); }
.directory__preview { display: none; }
@media (min-width: 992px) {
  .directory__list img { display: none; }
  .directory__list a { grid-template-columns: 1fr auto; }
  .directory__preview { display: block; position: sticky; top: calc(var(--header-h) + 24px); }
  .directory__preview img { aspect-ratio: 4/5; }
}

/* Services page mosaic ------------------------------------------------------- */
.mosaic { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); }
.tile { grid-column: span 12; position: relative; display: flex; align-items: flex-end; min-height: 280px; overflow: hidden; border-radius: var(--r-lg); color: #fff; text-decoration: none; background: var(--navy); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,28,54,.95) 0%, rgba(13,28,54,.78) 34%, rgba(13,28,54,0) 70%); }
.tile__body { position: relative; z-index: 1; padding: 1.5rem; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.tile__body h2 { color: #fff; font-size: 1.25rem; margin: 0 0 .25rem; }
.tile__body p { margin: 0; font-size: .95rem; color: #e4eaf4; line-height: 1.4; }
.tile__go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: #fff; color: var(--navy); border-radius: 50%; font-size: 1.2rem; }
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.04); }
@media (min-width: 768px) { .tile { grid-column: span 6; } }
@media (min-width: 1200px) { .tile { grid-column: span 4; min-height: 320px; } .tile--wide { grid-column: span 8; } }

/* Doctors -------------------------------------------------------------------- */
.doctor-row { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 768px) { .doctor-row { grid-template-columns: repeat(3, 1fr); } .doctor-row--stagger .doctor:nth-child(2) { margin-top: 3rem; } }
.doctor { position: relative; }
.doctor__photo { aspect-ratio: 4/5; object-position: center 18%; transition: transform .35s; }
.doctor:hover .doctor__photo { transform: translateY(-6px); }
.doctor h3 { margin: 1.25rem 0 .25rem; }
.doctor h3 a { color: var(--navy); text-decoration: none; }
.doctor h3 a::after { content: ""; position: absolute; inset: 0; }
.doctor h3 a:hover { color: var(--orange-ink); }
.doctor p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.45; }
.arch-placeholder { display: grid; place-items: center; aspect-ratio: 4/5; background: var(--mist); color: var(--navy-600); font-size: 5rem; }

/* Offer band -------------------------------------------------------------------- */
.offer { position: relative; overflow: hidden; background: #f1f1f3; }
.offer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right 20%; }
.offer__body { position: relative; padding-block: clamp(3.5rem, 3rem + 4vw, 6.5rem); max-width: 34rem; }
.offer h2 { margin-bottom: .75rem; }
.offer__fine { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
@media (max-width: 767.98px) { .offer__img { position: static; display: block; height: 58vw; } .offer__body { padding-top: 2rem; } }

/* Testimonials -------------------------------------------------------------------- */
.quotes { display: grid; gap: 1.5rem; }
.quote { margin: 0; padding: 1.75rem; border-radius: var(--r-md); background: var(--navy-900); }
.quote > .ph { font-size: 2rem; color: var(--orange-soft); display: block; margin-bottom: .75rem; }
.quote p { color: #eef2f8; margin-bottom: 1rem; font-size: 1.02rem; }
.quote cite { font-family: var(--font-display); font-style: normal; color: #fff; font-weight: 600; }
@media (min-width: 768px) { .quotes { grid-template-columns: 1fr 1fr; } .quote:nth-child(even) { margin-top: 2.5rem; } .quote:nth-child(odd) { margin-bottom: 2.5rem; } }
.note-small { font-size: .9rem; }

/* Insurance strip -------------------------------------------------------------------- */
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.logo-grid div { display: grid; place-items: center; padding: 1.5rem; outline: .5px solid var(--line); }
.logo-grid img { width: 100%; max-width: 170px; height: auto; }
@media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }

/* Forms ---------------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); color: var(--ink); }
.form-label { font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: .3rem; }
.form-label .req, .req { color: var(--error); }
.form-control, .form-select { min-height: 50px; border: 1.5px solid #76839b; border-radius: var(--r-sm); font-size: 1rem; color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(208,112,24,.45); }
.field-error { display: none; color: var(--error); font-size: .9rem; margin-top: .25rem; font-weight: 500; }
.is-invalid ~ .field-error, .has-error .field-error { display: block; }
.form-check-input { width: 1.25em; height: 1.25em; border: 1.5px solid #76839b; margin-top: .2em; }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-check-label { font-size: .92rem; line-height: 1.5; color: var(--muted); }
.form-check-label a { color: var(--navy); }
.form-fine { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.form-status { display: none; padding: .85rem 1rem; border-radius: var(--r-sm); font-size: .95rem; margin-bottom: 1rem; border: 1px solid; }
.form-status.is-error { display: block; background: #fdeeed; border-color: var(--error); color: #7c1a14; }
.form-status.is-error a { color: #7c1a14; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* News -------------------------------------------------------------------- */
.news-feature { position: relative; }
.news-feature img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-lg); }
.news-feature h3 { margin: 1.25rem 0 .5rem; font-size: clamp(1.35rem, 1.2rem + .8vw, 1.9rem); }
.news-link { color: var(--navy); text-decoration: none; }
.news-link::after { content: ""; position: absolute; inset: 0; }
.news-link:hover { color: var(--orange-ink); }
.news-date { font-size: .9rem; color: var(--muted); display: block; }
.news-row { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 1.1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.news-row:first-child { padding-top: 0; }
.news-row img { width: 112px; height: 112px; object-fit: cover; border-radius: 999px 999px var(--r-sm) var(--r-sm); }
.news-row h3 { font-size: 1.1rem; margin: .1rem 0 0; }
.news-grid { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 768px) { .news-grid { grid-template-columns: 1fr 1fr; } }
.subscribe { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--navy); padding: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem); }
.subscribe .form-check-label, .subscribe .form-fine { color: var(--on-dark-muted); }
.subscribe .form-check-label a { color: #fff; }
.subscribe .form-label { color: #fff; }
.subscribe .field-error { color: #ffd3cf; }
.subscribe .form-check-input { border-color: #fff; }
.subscribe .form-status.is-error a { color: #7c1a14; }

/* Inner page banner -------------------------------------------------------------- */
.page-banner { background: var(--mist); overflow: hidden; }
.page-banner__row { display: grid; gap: 1.5rem; align-items: end; padding-top: 2.25rem; }
.page-banner__text { padding-bottom: 2.5rem; align-self: center; }
.page-banner h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.5rem); margin-bottom: .75rem; }
.page-banner .lead { margin: 0; max-width: 40rem; }
.page-banner__img { width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 5/4; object-fit: cover; border-radius: 320px 320px 0 0; }
@media (min-width: 992px) { .page-banner__row--img { grid-template-columns: 1.3fr 1fr; } .page-banner__img { justify-self: end; } }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .92rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--muted); }
.crumbs a { color: var(--navy); }

/* Prose -------------------------------------------------------------------------- */
.prose h2 { font-size: clamp(1.4rem, 1.25rem + .8vw, 1.9rem); margin: 2.5rem 0 .85rem; }
.prose h3 { font-size: 1.2rem; margin: 1.75rem 0 .6rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul:not(.ticks) { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--orange-logo); }
.prose address { font-style: normal; }
.prose__figure { display: block; width: 100%; border-radius: var(--r-md); margin-bottom: 2rem; aspect-ratio: 8/3; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.ticks li::before { content: "\e182"; font-family: "Phosphor"; position: absolute; left: 0; top: .05rem; color: var(--orange-ink); font-size: 1.25rem; }
.legal-meta { font-size: .95rem; color: var(--muted); }
.side-col { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.5rem; }
.side-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; background: #fff; }
.side-card h2 { font-size: 1.15rem; margin-bottom: .85rem; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li a { display: flex; align-items: center; min-height: 40px; padding: .25rem .5rem; margin-inline: -.5rem; border-radius: var(--r-sm); text-decoration: none; color: var(--navy); font-size: .97rem; }
.side-card li a:hover { background: var(--mist); }
.side-card li a[aria-current="page"] { background: var(--navy); color: #fff; }
.side-card .info-list a { display: inline; min-height: 0; padding: 0; margin: 0; font-size: inherit; color: inherit; text-decoration: underline; }
.side-card .info-list a:hover { background: none; }
.prose h2.h4 { font-size: 1.2rem; margin-top: 2rem; }
.side-card--dark { background: var(--navy); border-color: var(--navy); color: var(--on-dark-muted); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: grid; grid-template-columns: 28px 1fr; gap: .5rem; margin-bottom: .85rem; line-height: 1.45; overflow-wrap: anywhere; }
.info-list .ph { font-size: 1.3rem; color: var(--orange-ink); margin-top: .1rem; }
.surface-dark .info-list .ph { color: var(--orange-soft); }
.hours { width: 100%; }
.hours th { font-weight: 500; padding: .2rem 1rem .2rem 0; }
.hours td { text-align: right; padding: .2rem 0; white-space: nowrap; }

/* Accordion ----------------------------------------------------------------------- */
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(208,112,24,.5); --bs-accordion-active-bg: var(--mist); --bs-accordion-active-color: var(--navy); --bs-accordion-btn-color: var(--navy); }
.accordion-button { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; min-height: 56px; }

/* Map --------------------------------------------------------------------------- */
.map-slot { display: grid; place-items: center; text-align: center; min-height: 380px; background: var(--mist); border-radius: var(--r-lg); padding: 1.5rem; overflow: hidden; }
.map-slot iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
.map-slot .ph-map-trifold { font-size: 2.5rem; color: var(--orange-ink); }
.map-slot--loaded { padding: 0; display: block; }

/* Footer -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); font-size: .98rem; }
.site-footer a:not(.btn-sbd) { color: #fff; }
.site-footer a:not(.btn-sbd):hover { color: var(--orange-soft); }
.footer-lead { display: grid; gap: 1.5rem; padding-block: clamp(3rem, 2.5rem + 3vw, 5rem); border-bottom: 1px solid rgba(255,255,255,.16); align-items: end; }
.site-footer .footer-lead h2 { color: #fff; letter-spacing: -.02em; font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem); margin: 0; }
.footer-lead__phone { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -.02em; text-decoration: none; }
@media (min-width: 992px) { .footer-lead { grid-template-columns: 1.4fr 1fr; } .footer-lead__act { text-align: right; } }
.footer-main { display: grid; gap: 2.5rem; padding-block: 3rem; }
@media (min-width: 768px) { .footer-main { grid-template-columns: 1.2fr 1fr; } }
@media (min-width: 1200px) { .footer-main { grid-template-columns: 1.15fr 1.45fr 1fr; } }
.footer-logo { display: inline-block; background: #fff; padding: .6rem .8rem; border-radius: var(--r-sm); margin-bottom: 1rem; }
.footer-logo img { display: block; width: 110px; }
.site-footer h2 { font-size: .95rem; color: #fff; letter-spacing: .02em; margin-bottom: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.footer-links li { margin-bottom: .5rem; break-inside: avoid; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-notice { padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .9rem; line-height: 1.55; }
.footer-legal { padding-block: 1.25rem 5.5rem; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .9rem; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; list-style: none; padding: 0; margin: 0; }
.footer-legal button { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; font: inherit; cursor: pointer; }
.footer-legal button:hover { color: var(--orange-soft); }

/* Thank you ----------------------------------------------------------------------- */
.thanks { background: var(--navy); color: var(--on-dark-muted); position: relative; overflow: hidden; }
.thanks::before { content: ""; position: absolute; left: 50%; bottom: -60%; width: 150%; aspect-ratio: 2/1; transform: translateX(-50%); border-radius: 50%; background: var(--navy-900); }
.thanks__inner { position: relative; text-align: center; max-width: 46rem; margin-inline: auto; padding-block: clamp(3.5rem, 3rem + 4vw, 6rem) clamp(3rem, 2rem + 4vw, 5rem); }
.thanks__mark { display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 46px 46px var(--r-md) var(--r-md); background: #fff; color: var(--success); font-size: 2.75rem; margin-bottom: 1.5rem; animation: pop .5s ease-out both; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.thanks h1 { color: #fff; margin-bottom: 1rem; }
.next-steps { display: grid; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.next-steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.next-steps .ph { font-size: 1.75rem; color: var(--orange-ink); }
.next-steps h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.next-steps p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (min-width: 768px) { .next-steps { grid-template-columns: repeat(3, 1fr); } .next-steps li { grid-template-columns: 1fr; align-content: start; } }

/* Accessibility launcher and panel ---------------------------------------------- */
.a11y-launch { position: fixed; left: 16px; bottom: 16px; z-index: 1050; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; background: var(--navy); color: #fff; font-size: 1.85rem; box-shadow: 0 8px 24px rgba(13,28,54,.4); cursor: pointer; }
.a11y-launch:hover { background: var(--orange); }
.a11y-panel { position: fixed; left: 16px; bottom: 84px; z-index: 1060; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto; background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 24px 70px rgba(13,28,54,.45); border: 1px solid var(--line); }
.a11y-panel[hidden] { display: none; }
.a11y-panel__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.25rem; background: var(--navy); color: #fff; }
.a11y-panel__head h2 { color: #fff; font-size: 1.05rem; margin: 0; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: inherit; font-size: 1.35rem; border-radius: var(--r-sm); cursor: pointer; }
.icon-btn:hover { background: rgba(120,140,170,.25); }
.a11y-panel__body { padding: 1.1rem 1.25rem 1.25rem; }
.a11y-size { display: grid; grid-template-columns: 48px 1fr 48px; gap: .5rem; align-items: center; margin-bottom: 1rem; text-align: center; font-weight: 600; }
.a11y-size button { height: 48px; border: 1.5px solid var(--navy); border-radius: var(--r-sm); background: #fff; color: var(--navy); font-size: 1.2rem; cursor: pointer; }
.a11y-size button:hover { background: var(--mist); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.a11y-opt { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-height: 84px; padding: .7rem .8rem; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); color: var(--navy); text-align: left; font-size: .88rem; font-weight: 600; line-height: 1.25; cursor: pointer; }
.a11y-opt .ph { font-size: 1.45rem; }
.a11y-opt:hover { border-color: var(--navy); }
.a11y-opt[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; font-size: .9rem; }

html.a11y-grayscale { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background-color: #fff3bf !important; color: #0d1c36 !important; }
html.a11y-font body, html.a11y-font body *:not(.ph) { font-family: "Atkinson Hyperlegible", Verdana, sans-serif !important; }
html.a11y-line body *:not(.ph) { line-height: 2 !important; }
html.a11y-spacing body *:not(.ph) { letter-spacing: .08em !important; word-spacing: .16em !important; }
html.a11y-hideimg img { visibility: hidden !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-7 1 4 8-3 1-4-8-5 5z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 6 2, auto !important; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-contrast { --navy-950:#000; --navy-900:#000; --navy:#000; --navy-600:#00339a; --mist:#fff; --mist-2:#fff; --ink:#000; --muted:#000; --line:#000; --orange:#000; --orange-ink:#000; --orange-logo:#000; --orange-soft:#ffe600; --on-dark-muted:#fff; }
html.a11y-contrast .tile::after { background: rgba(0,0,0,.82); }
html.a11y-contrast .hero__panel::after { background: #ffe600; }
html.a11y-contrast a:not(.btn-sbd) { text-decoration: underline; }
html.a11y-contrast .btn-sbd { border-color: currentColor; }
html.a11y-contrast .surface-dark .btn-accent, html.a11y-contrast .hero .btn-accent { background: #ffe600; color: #000; }
.reading-guide { position: fixed; left: 0; right: 0; height: 4px; background: var(--orange-logo); box-shadow: 0 0 0 1px #000; z-index: 2000; pointer-events: none; display: none; }
html.a11y-guide .reading-guide { display: block; }

/* Consent banner ------------------------------------------------------------------ */
.consent { position: fixed; left: 88px; right: 16px; bottom: 16px; z-index: 1045; max-width: 880px; margin-inline: auto; padding: 1.25rem 1.5rem; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 24px 70px rgba(13,28,54,.4); max-height: calc(100vh - 32px); overflow-y: auto; }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.05rem; margin-bottom: .35rem; }
.consent p { font-size: .94rem; line-height: 1.5; margin-bottom: .85rem; color: var(--muted); }
.consent__act { display: flex; flex-wrap: wrap; gap: .6rem; }
.consent__act [hidden] { display: none; }
.consent__opts { display: grid; gap: .75rem; margin-bottom: 1rem; }
.consent__opts[hidden] { display: none; }
.consent-opt { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .92rem; line-height: 1.4; }
.consent-opt strong { display: block; color: var(--navy); }
@media (max-width: 767.98px) { .consent { left: 8px; right: 8px; bottom: 80px; max-height: 60vh; padding: 1rem; } }

/* Scroll reveal: only applied once JS confirms it may animate ------------------------ */
.can-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
.can-reveal [data-reveal].is-in { opacity: 1; transform: none; }
.hero__panel > * { animation: rise .7s ease-out both; }
.hero__panel > *:nth-child(2) { animation-delay: .08s; }
.hero__panel > *:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .can-reveal [data-reveal] { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .a11y-launch, .a11y-panel, .consent, .side-col { display: none !important; } }

/* Small screens with enlarged text: nothing may push the page sideways */
h1, h2, h3, h4, p, a, li, td, th, label, address, span { overflow-wrap: break-word; }
.row > *, .footer-main > *, .dock__item > *, .directory > *, .news-row > *, .section-head > * { min-width: 0; }
@media (max-width: 575.98px) {
  h1, .hero h1, .page-banner h1 { hyphens: auto; }
  .site-header__row { grid-template-columns: auto 1fr auto; gap: .5rem; }
  .site-logo { justify-self: center; }
  .site-logo img { width: 76px; }
  .hours td { white-space: normal; }
  .footer-lead__phone, .btn-sbd { white-space: normal; text-align: center; }
  .info-list a, .footer-legal a { overflow-wrap: anywhere; }
}
@media (max-width: 575.98px) {
  .section-head, .directory, .side-col, .highlights, .dock, .news-grid, .doctor-row, .quotes, .footer-main, .footer-lead, .next-steps, .page-banner__row { grid-template-columns: minmax(0, 1fr); }
  .directory__list a { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .a11y-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* The skip link moves focus to main: no outline around the whole page */
main:focus { outline: none; }
