/* ==========================================================================
   South Malda Diagnostic Centre — stylesheet
   1. Tokens  2. Reset  3. Utilities  4. Buttons  5. Header  6. Hero
   7. Sections & cards  8. Visit  9. Appointment  10. FAQ  11. Footer
   12. Floating UI  13. Responsive  14. Motion & print
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --navy:        #0A2540;
  --navy-deep:   #071A2E;
  --navy-soft:   #14375C;
  --blue:        #1668B3;
  --blue-dark:   #12558F;
  --green:       #1FA463;
  --green-dark:  #178B53;
  --red:         #C0392B;

  --surface:     #FFFFFF;
  --surface-alt: #F4F8FC;
  --line:        #E2EAF2;
  --line-strong: #CFDCE9;

  --ink:         #16202B;
  --ink-muted:   #5A6B7C;
  --ink-light:   #8A99A8;

  --radius:      14px;
  --radius-sm:   10px;
  --radius-lg:   20px;

  --shadow-sm:   0 1px 2px rgba(10, 37, 64, .06), 0 2px 8px rgba(10, 37, 64, .05);
  --shadow-md:   0 4px 12px rgba(10, 37, 64, .08), 0 14px 32px rgba(10, 37, 64, .09);
  --shadow-lg:   0 18px 48px rgba(10, 37, 64, .16);

  --header-h:    76px;
  --wrap:        1180px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

/* author display rules otherwise beat the UA stylesheet's [hidden] */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(22, 104, 179, .16);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -.015em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(1.8rem, 1.25rem + 2.6vw, 3.3rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.35rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: .95rem; }

p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--blue-dark); }

ul { margin: 0; padding: 0; list-style: none; }

img, svg { max-width: 100%; }

address { font-style: normal; }

/* keep anchored sections clear of the sticky header */
section[id], #top { scroll-margin-top: calc(var(--header-h) + 14px); }

table { border-collapse: collapse; width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

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

/* 3. Utilities ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-narrow { max-width: 820px; }

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

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 1000;
  background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.muted { color: var(--ink-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.eyebrow .ico { color: #4ED08C; stroke-width: 2; }

.eyebrow-dark { color: var(--blue); }
.eyebrow-dark .ico { color: var(--green); }

.grid { display: grid; gap: 22px; }
/* 300px keeps the six specialist cards as a clean 3 x 2 on desktop, 2-up on tablet */
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

/* reveal-on-scroll — gated on .js so content stays visible if the script fails */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 4. Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: .94rem; font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 1.15em; height: 1.15em; }

.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 4px 14px rgba(31, 164, 99, .3);
}
.btn-primary:hover {
  background: var(--green-dark); color: #fff;
  box-shadow: 0 6px 20px rgba(31, 164, 99, .38);
}

.btn-ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn-outline {
  background: transparent; border-color: var(--line-strong); color: var(--navy);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: #F2F7FC; }

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

.btn-sm  { padding: 9px 16px; font-size: .86rem; }
.btn-lg  { padding: 15px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* 5. Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 1.06rem; font-weight: 700; color: var(--navy); letter-spacing: -.02em;
}
.brand-text span {
  font-size: .68rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--green);
}
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text span { color: #6FDCA6; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; position: relative;
  padding: 9px 13px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.site-nav a:hover { color: var(--blue); background: #F2F7FC; }
.site-nav a.is-active { color: var(--blue); font-weight: 600; }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--green);
}

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-light); flex: none;
}
.status-pill.is-open  { color: var(--green-dark); border-color: rgba(31, 164, 99, .4); background: rgba(31, 164, 99, .08); }
.status-pill.is-open .status-dot  { background: var(--green); box-shadow: 0 0 0 3px rgba(31, 164, 99, .22); }
.status-pill.is-closed { color: var(--red); border-color: rgba(192, 57, 43, .35); background: rgba(192, 57, 43, .07); }
.status-pill.is-closed .status-dot { background: var(--red); }

.status-pill-solid {
  background: #F4F8FC;
  border-color: var(--line);
  font-size: .82rem;
  padding: 7px 15px 7px 12px;
}

/* the drawer trigger — always the last, right-most item in the header */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: var(--navy);
  border: 0;
  border-radius: 13px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 37, 64, .22);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-toggle:hover  { background: var(--navy-soft); }
.nav-toggle:active { transform: scale(.94); }
.nav-toggle .ico { width: 23px; height: 23px; stroke-width: 2; }

/* 5b. Right-side drawer -------------------------------------------------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(7, 26, 46, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  touch-action: none;
  transition: opacity .3s var(--ease);
}
.drawer-backdrop.is-visible { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; flex-direction: column;
  width: min(87vw, 344px);
  background: #fff;
  box-shadow: -18px 0 52px rgba(7, 26, 46, .3);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform .34s var(--ease), visibility .34s var(--ease);
}
.drawer.is-open { visibility: visible; transform: none; }

.drawer-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 16px 14px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-close {
  width: 42px; height: 42px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.drawer-close:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.drawer-close .ico { width: 20px; height: 20px; stroke-width: 2; }

.drawer-status { padding: 16px 20px 4px; }

.drawer-nav { padding: 8px 12px 12px; }
.drawer-nav ul { display: grid; gap: 2px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 14px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 1rem; font-weight: 500;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.drawer-nav a > span { flex: 1 1 auto; min-width: 0; }
.drawer-nav a > .ico:first-child {
  width: 21px; height: 21px; color: var(--green);
}
.drawer-arrow {
  width: 17px; height: 17px;
  color: var(--ink-light);
  transform: rotate(-90deg);
  transition: transform .18s var(--ease), color .18s var(--ease);
}
.drawer-nav a:hover, .drawer-nav a:focus-visible {
  background: var(--surface-alt); color: var(--blue);
}
.drawer-nav a:hover .drawer-arrow { color: var(--blue); transform: rotate(-90deg) translateY(-3px); }
.drawer-nav a.is-active {
  background: rgba(31, 164, 99, .1);
  color: var(--navy); font-weight: 700;
}
.drawer-nav a.is-active .drawer-arrow { color: var(--green); }

.drawer-foot {
  margin-top: auto;
  display: grid; gap: 10px;
  padding: 18px 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}
.drawer-call {
  display: flex; align-items: center; gap: 13px;
  min-height: 56px;
  padding: 9px 15px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--navy);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.drawer-call:hover { border-color: var(--green); background: #fff; color: var(--navy); }
.drawer-call .ico { width: 20px; height: 20px; color: var(--green); flex: none; }
.drawer-call span { display: flex; flex-direction: column; font-weight: 700; font-size: .98rem; }
.drawer-call small {
  font-size: .68rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-muted);
}
.drawer-hours {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 4px 0 0;
  font-size: .82rem; font-weight: 600; color: var(--ink-muted);
}
.drawer-hours .ico { width: 15px; height: 15px; color: var(--green); }

/* Page lock while the drawer is open. The scroll position is held by pinning
   body with a negative top offset (set in script.js) — overflow:hidden on the
   root element would clamp the page back to the top instead. */
html.nav-open { overscroll-behavior: none; }

/* 6. Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 6vw, 96px) 0 clamp(64px, 7vw, 104px);
  background: var(--navy);
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 88% 8%,  rgba(31, 164, 99, .28) 0%, transparent 58%),
    radial-gradient(110% 100% at 6% 96%, rgba(22, 104, 179, .40) 0%, transparent 62%),
    linear-gradient(160deg, #0C2C4C 0%, var(--navy) 46%, var(--navy-deep) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='72' viewBox='0 0 240 72'%3E%3Cpath d='M0 40h44l10-24 14 44 12-30 8 14h34l10-20 12 34 10-24 8 12h78' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 480px 144px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
}

.hero-copy h1 { color: #fff; margin-bottom: 20px; max-width: 16ch; }
.hero-lead {
  font-size: clamp(1rem, .95rem + .3vw, 1.14rem);
  color: rgba(255, 255, 255, .84);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-facts li {
  display: flex; align-items: center; gap: 9px;
  font-size: .92rem; font-weight: 500;
  color: rgba(255, 255, 255, .9);
}
.hero-facts .ico { color: #4ED08C; stroke-width: 2.4; width: 1.05em; height: 1.05em; }

.hero-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.hero-card-head { margin-bottom: 20px; }

.info-list { margin: 0; display: grid; gap: 18px; }
.info-row { display: grid; gap: 4px; }
.info-row dt {
  display: flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted);
}
.info-row dt .ico { color: var(--green); width: 1.1em; height: 1.1em; }
.info-row dd {
  margin: 0; padding-left: 26px;
  font-size: 1rem; font-weight: 600; color: var(--navy);
}
.info-row dd .muted {
  display: block; font-size: .85rem; font-weight: 400; color: var(--ink-muted);
}
/* stacked phone numbers, ruled apart so two never read as one long number */
.info-row dd a { display: block; font-weight: 600; }
.info-row dd a + a {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.hero-card .btn-block { margin-top: 24px; }

.info-list-dark .info-row dt { color: rgba(255, 255, 255, .6); }
.info-list-dark .info-row dt .ico { color: #4ED08C; }
.info-list-dark .info-row dd { color: #fff; font-weight: 500; }
.info-list-dark .info-row dd a { color: #fff; }
.info-list-dark .info-row dd a + a { border-top-color: rgba(255, 255, 255, .18); }
.info-list-dark .info-row dd a:hover { color: #6FDCA6; }

/* 7. Sections & cards --------------------------------------------------- */
.section { padding: clamp(56px, 6.5vw, 92px) 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head h2 { margin-bottom: 12px; }
.section-lead { font-size: 1.05rem; color: var(--ink-muted); }

.cards .card {
  display: flex; flex-direction: column;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.cards .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 164, 99, .4);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .93rem; color: var(--ink-muted); }

.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(140deg, rgba(22, 104, 179, .12), rgba(31, 164, 99, .16));
  color: var(--blue);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.card-ico .ico { width: 27px; height: 27px; }
.cards .card:hover .card-ico {
  background: linear-gradient(140deg, var(--blue), var(--green));
  color: #fff;
}

.features .feature { padding: 4px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: .93rem; color: var(--ink-muted); }
.feature-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}
.feature-ico .ico { width: 23px; height: 23px; }

/* 8. Visit -------------------------------------------------------------- */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.panel-dark {
  background: linear-gradient(155deg, var(--navy-soft) 0%, var(--navy) 60%, var(--navy-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.panel-dark h3 { color: #fff; margin-bottom: 22px; }

.panel-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.panel-head h3 { margin: 0; }

.hours-table th, .hours-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: .94rem;
  text-align: left;
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 500; color: var(--ink); }
.hours-table td { text-align: right; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th,
.hours-table tr.is-today td { font-weight: 700; color: var(--navy); }
.hours-table tr.is-today {
  background: rgba(31, 164, 99, .08);
  outline: 1px solid rgba(31, 164, 99, .22);
  border-radius: var(--radius-sm);
}
.hours-table tr.is-today th::after {
  content: "Today";
  margin-left: 9px; padding: 2px 8px;
  border-radius: 999px;
  background: var(--green); color: #fff;
  font-size: .66rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  vertical-align: middle;
}

.panel-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* 9. Appointment -------------------------------------------------------- */
.appt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.appt-copy h2 { margin-bottom: 12px; }

.appt-points { display: grid; gap: 11px; margin: 26px 0; }
.appt-points li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .95rem; color: var(--ink);
}
.appt-points .ico { color: var(--green); stroke-width: 2.4; margin-top: .28em; }

.appt-calls { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.call-chip {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.call-chip:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: var(--navy);
}
.call-chip .ico { width: 22px; height: 22px; color: var(--green); }
.call-chip span { display: flex; flex-direction: column; font-weight: 700; font-size: 1.02rem; }
.call-chip small {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-muted);
}

.appt-form h3 { margin-bottom: 20px; }

.field { margin-bottom: 18px; }
.field label {
  display: block; margin-bottom: 7px;
  font-size: .86rem; font-weight: 600; color: var(--navy);
}
.req { color: var(--red); }
.optional { font-weight: 400; color: var(--ink-light); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 104, 179, .16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-light); }

.field [aria-invalid="true"] { border-color: var(--red); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .16); }

.field-error {
  margin: 7px 0 0;
  font-size: .82rem; font-weight: 500; color: var(--red);
}

.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span {
  display: inline-flex; align-items: center;
  padding: 0 13px;
  border: 1.5px solid var(--line-strong);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--surface-alt);
  font-size: .95rem; font-weight: 600; color: var(--ink-muted);
}
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-note {
  margin: 14px 0 0;
  font-size: .82rem; color: var(--ink-muted); text-align: center;
}
.form-note.is-error { color: var(--red); font-weight: 600; }

/* 10. FAQ --------------------------------------------------------------- */
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: inherit; }

.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: none; border: 0;
  font-size: 1.02rem; font-weight: 600; color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.faq-q:hover { background: var(--surface-alt); color: var(--blue); }
.faq-chev {
  width: 20px; height: 20px;
  color: var(--green); stroke-width: 2.2;
  transition: transform .25s var(--ease);
}
.faq-q[aria-expanded="true"] .faq-chev { transform: rotate(180deg); }
.faq-q[aria-expanded="true"] { color: var(--blue); }

/* vertical padding lives on the child so the panel can animate from height 0 */
.faq-a { padding: 0 24px; }
.faq-a p { padding-bottom: 22px; font-size: .95rem; color: var(--ink-muted); max-width: 68ch; }

/* 11. CTA band & footer -------------------------------------------------- */
.cta-band {
  padding: clamp(44px, 5vw, 66px) 0;
  background: linear-gradient(115deg, var(--navy) 0%, var(--blue-dark) 100%);
  color: #fff;
}
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 26px;
}
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { color: rgba(255, 255, 255, .82); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 13px; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .74);
  padding-top: clamp(48px, 5vw, 68px);
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 44px;
}
.footer-tagline {
  margin: 18px 0 10px;
  font-weight: 600; color: #6FDCA6;
}
.footer-about { max-width: 42ch; line-height: 1.7; }

.footer-col h4 {
  margin-bottom: 16px;
  color: #fff;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: rgba(255, 255, 255, .74); }
.footer-col a:hover { color: #6FDCA6; }

.footer-col address { margin-bottom: 18px; line-height: 1.7; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact a, .footer-contact span {
  display: inline-flex; align-items: center; gap: 9px;
}
.footer-contact .ico { color: #6FDCA6; width: 1.05em; height: 1.05em; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom p { margin: 0; }
.disclaimer { max-width: 52ch; }

/* 12. Floating UI -------------------------------------------------------- */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  border-top: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 -6px 22px rgba(10, 37, 64, .22);
  /* clears the iPhone home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-bar-btn {
  flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 8px;
  font-size: .95rem; font-weight: 600;
  color: #fff;
}
.mobile-bar-btn:hover { color: #fff; }
.mobile-bar-btn.call { background: var(--navy); }
.mobile-bar-btn.wa   { background: var(--green); }

.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: var(--navy); color: #fff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.to-top:hover { background: var(--blue); transform: translateY(-3px); }
.to-top .ico { width: 21px; height: 21px; }

/* 13. Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy h1 { max-width: 20ch; }
  .hero-card { max-width: 520px; }
  .site-nav a { padding: 9px 10px; font-size: .87rem; }
}

/* below 900px the horizontal nav gives way to the right-side drawer */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .status-pill { display: none; }

  .visit-grid, .appt-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (min-width: 901px) {
  /* keep the drawer fully out of the tab order on desktop */
  .drawer, .drawer-backdrop { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; }

  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar { display: flex; }
  .to-top {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    width: 42px; height: 42px;
  }

  .header-actions .btn-sm { display: none; }

  .hero { padding: 34px 0 46px; }
  .eyebrow { font-size: .72rem; letter-spacing: .07em; margin-bottom: 14px; }
  .hero-copy h1 { max-width: none; margin-bottom: 14px; }
  .hero-lead { font-size: 1rem; margin-bottom: 24px; }
  .hero-cta { gap: 10px; margin-bottom: 26px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-grid { gap: 28px; }
  .hero-card { max-width: none; padding: 20px; border-radius: 16px; }

  /* facts become compact two-up chips instead of a long list */
  .hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 20px;
  }
  .hero-facts li {
    align-items: flex-start;
    gap: 7px;
    padding: 9px 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    font-size: .8rem;
    line-height: 1.35;
  }
  .hero-facts .ico { margin-top: .15em; }

  .section { padding: 44px 0; }
  .section-head { margin-bottom: 26px; }
  .section-lead { font-size: .98rem; }
  .grid { gap: 14px; }

  .cta-actions .btn { flex: 1 1 100%; }
  .cta-inner { gap: 20px; }
  .panel { padding: 20px; border-radius: 16px; }
  .appt-grid { gap: 30px; }
  .appt-points { margin: 20px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* 16px keeps iOS from zooming the viewport on focus */
  .field input, .field select, .field textarea,
  .input-prefix > span { font-size: 16px; }
  .field input, .field select, .field textarea { padding: 13px 14px; }

  /* comfortable tap targets — phone links especially, they convert */
  .drawer-nav a, .call-chip, .footer-col li a, .footer-contact a { min-height: 46px; }
  .footer-col li a { display: inline-flex; align-items: center; }
  /* flex, not inline-flex — inline-flex puts the two numbers on one line */
  .info-row dd a { display: flex; align-items: center; min-height: 44px; }
  .brand { min-height: 44px; }
}

@media (max-width: 560px) {
  /* stack the icon beside the text so each card costs less vertical space */
  .cards .card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-areas: "ico title" "ico text";
    column-gap: 15px; row-gap: 3px;
    align-items: start;
    padding: 17px 16px;
  }
  .cards .card:hover { transform: none; }
  .card-ico { grid-area: ico; width: 50px; height: 50px; margin: 0; }
  .card-ico .ico { width: 24px; height: 24px; }
  .card h3 { grid-area: title; margin-bottom: 0; font-size: 1.02rem; }
  .card p { grid-area: text; font-size: .88rem; line-height: 1.55; }

  .features { gap: 20px; }
  .feature { display: grid; grid-template-columns: 46px minmax(0, 1fr);
             grid-template-areas: "ico title" "ico text"; column-gap: 15px; row-gap: 3px; padding: 0; }
  .feature-ico { grid-area: ico; width: 46px; height: 46px; margin: 0; }
  .feature h3 { grid-area: title; margin-bottom: 0; font-size: 1.02rem; }
  .feature p { grid-area: text; font-size: .88rem; line-height: 1.55; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .brand-text strong { font-size: .95rem; }
  .brand-text span { font-size: .62rem; letter-spacing: .1em; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand { gap: 9px; }
  .nav-toggle { width: 42px; height: 42px; border-radius: 11px; }

  .field-row { grid-template-columns: 1fr; }
  .hours-table th, .hours-table td { padding: 11px 4px; font-size: .88rem; }
  .hours-table tr.is-today th::after { margin-left: 6px; padding: 2px 6px; font-size: .6rem; }
  .faq-q { padding: 16px 16px; font-size: .95rem; gap: 12px; }
  .faq-a { padding: 0 16px; }
  .faq-a p { padding-bottom: 16px; }
  .info-row dd { font-size: .95rem; }
  .appt-calls { grid-template-columns: 1fr; }
  .mobile-bar-btn { font-size: .9rem; gap: 7px; }
  .cards .card { padding: 24px 20px; }
}

/* 14. Motion & print ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-bar, .to-top, .hero-cta, .cta-band,
  .appt-form, .panel-actions, .skip-link,
  .drawer, .drawer-backdrop { display: none !important; }

  body { padding: 0; color: #000; font-size: 12pt; }
  .hero { background: none; color: #000; padding: 0 0 18pt; }
  .hero-bg { display: none; }
  .hero-copy h1, .eyebrow, .hero-lead, .hero-facts li { color: #000; }
  .hero-card, .panel, .faq { box-shadow: none; border: 1px solid #999; }
  .panel-dark { background: none; color: #000; border: 1px solid #999; }
  .panel-dark h3, .info-list-dark .info-row dd, .info-list-dark .info-row dd a { color: #000; }
  .site-footer { background: none; color: #000; }
  .footer-col a, .footer-contact a, .footer-tagline { color: #000; }
  .faq-a[hidden] { display: block !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
