/* ==========================================================================
   Family Care Medical Centre — concept rebuild
   Design system + components. No frameworks, no build step.
   ========================================================================== */

/* --- Fonts (self-hosted so the site works with no internet) --------------- */
@font-face {
  font-family: 'Literata';
  src: url('../fonts/literata-latin-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-latin-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Brand red is sampled from the clinic's existing logo (#ed1c24); the UI uses
     a slightly deeper, less fluorescent version of it for large areas. */
  --brand: #ed1c24;
  --red-500: #d81e28;
  --red-600: #bc1520;
  --red-700: #96101a;
  --red-50: #fdf0f0;
  --red-100: #f9dcdd;

  --ink: #191817;
  --ink-2: #3d3936;
  --muted: #6d6660;
  --muted-2: #8b837c;

  --canvas: #faf7f4;
  --surface: #ffffff;
  --sand: #f4ede5;
  --sand-2: #ece2d7;
  --line: #e7ded4;
  --line-2: #d8cdc0;

  --teal: #0f5f5c;
  --teal-50: #eaf3f2;
  --green: #2e7d5b;
  --green-50: #e9f4ef;
  --amber-50: #fdf4e3;
  --amber-600: #9a6212;

  --font-display: 'Literata', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'InterVar', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* 1280 rather than 1200 so the enlarged logo, eight nav items and both CTAs
     fit on one row without the header needing its own wider container. */
  --wrap: 1280px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(25, 24, 23, .05), 0 2px 6px rgba(25, 24, 23, .04);
  --shadow-md: 0 2px 4px rgba(25, 24, 23, .04), 0 10px 24px -6px rgba(25, 24, 23, .10);
  --shadow-lg: 0 4px 8px rgba(25, 24, 23, .05), 0 24px 56px -12px rgba(25, 24, 23, .18);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --header-h: 110px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
/* Default inline-icon size. inline-block keeps icons on the same line as their
   label (the reset makes svg display:block); flex parents override it anyway.
   Component rules below override the size where needed. */
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.18em; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 2.9vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2vw, 2.85rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .55vw, 1.5rem); }
h4 { font-size: 1.075rem; font-family: var(--font-body); font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.09rem, 1.02rem + .38vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .765rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 1rem;
}
.eyebrow--muted { color: var(--muted); }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.25rem); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #f6f2ee; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lead { color: rgba(255, 255, 255, .78); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: clamp(1.1rem, .8rem + 1vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
/* For pairs of small cards inside an already-narrow column. */
.grid--tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--red-600);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.5rem;
  min-height: 50px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  box-shadow: 0 1px 2px rgba(25, 24, 23, .12);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(188, 21, 32, .45); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); box-shadow: none; }
.btn--ghost:hover { --btn-bd: var(--ink); box-shadow: 0 8px 20px -8px rgba(25, 24, 23, .25); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .3); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .35); box-shadow: none; }
.btn--outline-light:hover { --btn-bd: #fff; background: rgba(255, 255, 255, .08); }

.btn--sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--red-600);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color .18s var(--ease), gap .18s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: .65rem; }
.link-arrow::after { content: '→'; font-size: 1.05em; line-height: 1; }

/* --- Header --------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .82);
  font-size: .84rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar__group { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; opacity: .7; flex: none; }
/* Specificity must beat `.topbar a` above, or these never hide and the row
   forces the whole page wider than a phone viewport. */
.topbar .topbar__hide-sm { display: none; }
@media (min-width: 900px) { .topbar .topbar__hide-sm { display: inline-flex; } }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(25, 24, 23, .35); }
.header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex: none; margin-right: auto; }
.brand img { height: 78px; width: auto; }
@media (max-width: 600px) { .brand img { height: 60px; } }
@media (max-width: 400px) { .brand img { height: 50px; } }

.nav { display: none; }
@media (min-width: 1060px) {
  .nav { display: flex; align-items: center; gap: .15rem; }
}
.nav a {
  position: relative;
  padding: .55rem .68rem;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(25, 24, 23, .045); }
.nav a[aria-current='page'] { color: var(--red-600); font-weight: 600; }
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: .68rem;
  right: .68rem;
  bottom: .28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--red-600);
}

.header__actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.header__actions .btn--call { display: none; }
@media (min-width: 620px) { .header__actions .btn--call { display: inline-flex; } }
.header__actions .btn--book { display: none; }
@media (min-width: 480px) { .header__actions .btn--book { display: inline-flex; } }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}
@media (min-width: 1060px) { .burger { display: none; } }
.burger span { position: relative; width: 19px; height: 1.75px; background: var(--ink); border-radius: 2px; transition: background .2s var(--ease); }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 19px; height: 1.75px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), top .2s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr min(88vw, 400px);
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  background: rgba(25, 24, 23, .45);
  opacity: 0;
  transition: opacity .3s var(--ease);
  border: 0; padding: 0; cursor: pointer;
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.drawer__close {
  width: 44px; height: 44px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: transparent; cursor: pointer; font-size: 1.35rem; line-height: 1; color: var(--ink);
}
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer__nav a[aria-current='page'] { color: var(--red-600); font-weight: 600; }
.drawer__nav a::after { content: '→'; color: var(--muted-2); }

/* --- Notice bar ----------------------------------------------------------- */
.notice {
  background: var(--amber-50);
  border-bottom: 1px solid #efe0c4;
}
.notice__inner { display: flex; align-items: flex-start; gap: 1rem; padding-block: .9rem; }
.notice__icon { flex: none; width: 22px; height: 22px; color: var(--amber-600); margin-top: 2px; }
.notice__body { flex: 1; font-size: .92rem; line-height: 1.55; }
.notice__body strong { display: block; font-weight: 600; margin-bottom: .1rem; }
.notice__body a { color: var(--amber-600); font-weight: 600; }
.notice__close {
  flex: none; border: 0; background: transparent; cursor: pointer; color: var(--amber-600);
  width: 30px; height: 30px; border-radius: 50%; font-size: 1.15rem; line-height: 1;
}
.notice__close:hover { background: rgba(154, 98, 18, .12); }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--canvas); }
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 120%;
  background: radial-gradient(closest-side, rgba(237, 28, 36, .07), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2.25rem, 1rem + 5vw, 4rem);
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 5.5rem);
  align-items: center;
}
@media (min-width: 980px) { .hero__inner { grid-template-columns: 1.02fr .98fr; } }

.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--red-600); }
.hero__lead { max-width: 46ch; margin-bottom: 2rem; }
.hero .btn-row { margin-bottom: 2.25rem; }

.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .83rem;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 15px; height: 15px; color: var(--green); flex: none; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero__card {
  position: relative;
  margin: -3.25rem 0 0 auto;
  width: min(100%, 300px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.15rem 1.25rem;
}
@media (min-width: 560px) { .hero__card { margin-right: -.75rem; } }
.hero__card h4 { margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.hero__card h4 svg { width: 17px; height: 17px; color: var(--red-600); }
.hero__card .status { margin-bottom: .85rem; }
.hero__card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; font-size: .87rem; }
.hero__card dt { color: var(--muted); }
.hero__card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .18rem .6rem;
  border-radius: var(--r-pill);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .01em;
  background: var(--sand);
  color: var(--muted);
  white-space: nowrap;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status.is-open { background: var(--green-50); color: var(--green); }
.status.is-closed { background: var(--red-50); color: var(--red-600); }
.status.is-open::before { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .status.is-open::before { animation: none; } }

/* --- Quick action tiles --------------------------------------------------- */
.actions { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
@media (min-width: 640px) { .actions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .actions { grid-template-columns: repeat(4, 1fr); } }
.action {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  text-decoration: none;
  transition: background .2s var(--ease);
}
.action:hover { background: var(--red-50); }
.action__icon { width: 34px; height: 34px; color: var(--red-600); margin-bottom: .35rem; }
.action strong { font-size: 1.02rem; font-weight: 600; }
.action span { font-size: .875rem; color: var(--muted); line-height: 1.5; }

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card h3 { margin-bottom: .4rem; }
.card h4 { display: flex; align-items: center; gap: .5rem; }
.card h4 svg { width: 16px; height: 16px; color: var(--red-600); }
.card p { color: var(--muted); font-size: .94rem; }

/* Feature panels */
.feature {
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.feature__body .eyebrow { margin-bottom: 0; }
.feature__body h3 { margin: 0; }
.feature__body p { color: var(--muted); font-size: .94rem; margin-bottom: .35rem; }

/* --- Doctors -------------------------------------------------------------- */
.docs { display: grid; gap: clamp(1.1rem, .8rem + 1vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
/* Six cards read better as two rows of three than as 4 + 2. */
@media (min-width: 900px) { .docs--three { grid-template-columns: repeat(3, 1fr); } }
.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc__photo { position: relative; background: var(--sand); aspect-ratio: 1; overflow: hidden; }
.doc__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.doc:hover .doc__photo img { transform: scale(1.035); }
.doc__initials {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 3rem; color: var(--muted); background: var(--sand-2);
}
.doc__body { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.doc__body h3 { font-size: 1.14rem; margin: 0; }
.doc__quals { font-size: .8rem; color: var(--muted); letter-spacing: .01em; }
.doc__langs { margin-top: auto; padding-top: .7rem; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.doc__langs svg { width: 14px; height: 14px; flex: none; opacity: .65; }

/* Doctor detail (profiles page) */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 32px);
}
@media (min-width: 820px) { .profile { grid-template-columns: 290px 1fr; } }
.profile:first-of-type { border-top: 0; padding-top: 0; }
.profile__media { position: relative; }
.profile__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.profile__badge {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .85rem;
  font-size: .82rem; color: var(--muted);
}
.profile h2 { margin-bottom: .2em; }
.profile__quals { color: var(--red-600); font-weight: 600; font-size: .95rem; margin-bottom: 1.15rem; }

.taglist { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.taglist li {
  padding: .34rem .8rem;
  background: var(--sand);
  border-radius: var(--r-pill);
  font-size: .845rem;
  color: var(--ink-2);
}
.taglist--teal li { background: var(--teal-50); color: var(--teal); }

.subhead {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 1.6rem 0 .7rem;
}

/* --- Services ------------------------------------------------------------- */
.svc-group { scroll-margin-top: calc(var(--header-h) + 32px); }
.svc-group + .svc-group { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.svc-group__head { display: grid; gap: .5rem; margin-bottom: 1.6rem; max-width: 60ch; }
.svc-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 700px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .svc-list { grid-template-columns: repeat(3, 1fr); } }
.svc {
  background: var(--surface);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: background .2s var(--ease);
}
.svc:hover { background: var(--red-50); }
.svc strong { font-size: 1rem; font-weight: 600; }
.svc span { font-size: .885rem; color: var(--muted); line-height: 1.55; }

/* --- Tables --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
caption {
  text-align: left; padding: 1.15rem 1.4rem .35rem; font-weight: 600; font-size: 1.05rem;
  font-family: var(--font-display); letter-spacing: -.01em;
}
th, td { padding: .85rem 1.4rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--canvas);
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td + td, th + th { text-align: right; font-variant-numeric: tabular-nums; }
tbody th { font-weight: 500; }
.bulk { color: var(--green); font-weight: 600; }

/* Hours list */
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  padding: .62rem 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { font-weight: 600; color: var(--red-600); }
.hours dfn { font-style: normal; color: var(--muted); }
.hours li.is-today dfn { color: inherit; }
.hours time, .hours span { font-variant-numeric: tabular-nums; }

/* --- Accordion ------------------------------------------------------------ */
.faq-group { scroll-margin-top: calc(var(--header-h) + 32px); }
.faq-group + .faq-group { margin-top: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
.acc { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.4rem;
  background: transparent;
  border: 0;
  text-align: left;
  /* The button sits inside an <h3> for document outline, so the display face
     has to be reset — questions read better in the body font. */
  font-family: var(--font-body);
  font-size: 1.01rem;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: background .18s var(--ease);
}
.acc__btn:hover { background: var(--canvas); }
.acc__btn[aria-expanded='true'] { color: var(--red-600); font-weight: 600; }
.acc__icon { flex: none; width: 20px; height: 20px; margin-top: 3px; position: relative; }
.acc__icon::before, .acc__icon::after {
  content: ''; position: absolute; inset: 50% 2px auto 2px; height: 1.75px; background: currentColor; border-radius: 2px;
  transition: transform .28s var(--ease);
}
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded='true'] .acc__icon::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc__panel[data-open='true'] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel .acc__inner { padding: 0 1.4rem 1.35rem; color: var(--ink-2); font-size: .95rem; max-width: 72ch; }
.acc__panel ul { margin: 0 0 1em; padding-left: 1.15rem; }
.acc__panel li { margin-bottom: .35em; }

/* --- Prose ---------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.25em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--red-600); text-underline-offset: 3px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red-600);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.panel--teal { border-left-color: var(--teal); }
.panel h4 { margin-bottom: .35rem; }
.panel p { font-size: .93rem; color: var(--ink-2); }

/* --- Page header ---------------------------------------------------------- */
.page-head {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { max-width: 60ch; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* --- Jump nav ------------------------------------------------------------- */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.jump a {
  padding: .42rem .95rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: .865rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.jump a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --- CTA band ------------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: -50% auto auto -10%;
  width: 55vw; height: 200%;
  background: radial-gradient(closest-side, rgba(237, 28, 36, .3), transparent 70%);
}
.cta__inner { position: relative; display: grid; gap: 2rem; align-items: center; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
@media (min-width: 860px) { .cta__inner { grid-template-columns: 1.3fr auto; } }
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { color: rgba(255, 255, 255, .75); max-width: 52ch; }

/* --- Map ------------------------------------------------------------------ */
.map {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--sand-2);
  min-height: 340px;
  position: relative;
}
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map__fallback {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .5rem; text-align: center;
  padding: 2rem; color: var(--muted); font-size: .9rem;
}

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .68); font-size: .92rem; padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1020px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }
.footer__brand img { height: 46px; width: auto; margin-bottom: 1.15rem; filter: brightness(0) invert(1) opacity(.92); }
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer .hours li { font-size: .875rem; gap: 1rem; }
.footer .hours span { white-space: nowrap; }
.footer .hours li.is-today { color: #fff; }
.footer .hours li.is-today dfn { color: #fff; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: rgba(255, 255, 255, .5);
}

/* --- Emergency strip ------------------------------------------------------ */
.emergency {
  background: var(--red-700);
  color: #fff;
  font-size: .9rem;
  padding-block: .85rem;
}
.emergency__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.emergency strong { font-weight: 600; }
.emergency a { color: #fff; font-weight: 600; }

/* --- Demo ribbon (concept only, removed for production) ------------------- */
.demo-flag {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .95rem;
  background: rgba(25, 24, 23, .9);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .01em;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  text-decoration: none;
}
.demo-flag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #57d08a; }
@media print { .demo-flag { display: none; } }

/* --- Reveal on scroll ----------------------------------------------------- */
/* Gated on .js (set by an inline script in <head>) so a JS failure can never
   leave the page invisible — without JS these are simply always visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card--hover:hover, .doc:hover, .feature:hover { transform: none; }
}

/* --- Utilities ------------------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: -60px; left: 1rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r-sm);
  text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 1rem; }
.stack > * + * { margin-top: 1.15rem; }
.stack-lg > * + * { margin-top: 2rem; }
.text-muted { color: var(--muted); }
.text-sm { font-size: .9rem; }
.mt-lg { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.footer .hours dfn { color: rgba(255, 255, 255, .66); } /* 4.5:1 on the footer ink */

/* "At a glance" box on service pages: the hero card, in normal flow. */
.hero__card.glance { margin: 0; width: 100%; box-shadow: var(--shadow-sm); }
.hero__card.glance dd { text-align: right; }
.svc strong a { color: inherit; text-decoration: none; }
.svc strong a:hover { color: var(--red-600); }
.svc .link-arrow { display: inline-flex; margin-top: .3rem; font-size: .85rem; }
.prose--sections h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); margin: 2.2rem 0 .7rem; }
.prose--sections h2:first-child { margin-top: 0; }
.prose--sections ul { padding-left: 1.15rem; }
.prose--sections li { margin-bottom: .45em; }

/* Label headings (Oct 2026): an h2/h3 in the document outline, styled exactly
   like the original h4 so heading levels never skip. */
:is(h2, h3).h4 { font-size: 1.075rem; font-family: var(--font-body); font-weight: 600; letter-spacing: -.005em; line-height: 1.1; margin: 0 0 .5em; }
.hero__card :is(h2, h3).h4 { margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.hero__card .h4 :is(svg, i.ic) { width: 17px; height: 17px; color: var(--red-600); }
.card :is(h2, h3).h4 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5em; }
.card .h4 :is(svg, i.ic) { width: 16px; height: 16px; color: var(--red-600); }
.panel :is(h2, h3).h4 { margin-bottom: .35rem; }
.footer :is(h2, h3).h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.taglist__link { color: inherit; text-decoration: none; }
.taglist__link:hover { color: var(--red-600); text-decoration: underline; }
/* Heading for screen readers and search engines only. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
