/* ==========================================================================
   DerVan Healthcare Services — A Family Practice
   Design tokens + components. Brand: navy #1F2A6B / red #D52B32 / white.
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #111843;
  --navy-800: #18215a;
  --navy: #1f2a6b;
  --navy-600: #2d3a86;
  --navy-200: #c9cfea;
  --navy-100: #e3e7f5;
  --navy-50: #f0f2fa;
  --red: #d52b32;
  --red-700: #b3212a;
  --red-100: #fbe1e2;
  --red-50: #fdf0f0;

  /* Semantic */
  --bg: #f5f6fb;
  --surface: #ffffff;
  --ink: #141b45;
  --muted: #535a7c;
  --border: #e2e5f0;
  --focus: #d52b32;
  --success: #17803d;
  --error: #b3212a;

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & depth */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 67, .06), 0 2px 8px rgba(17, 24, 67, .04);
  --shadow-md: 0 8px 28px rgba(17, 24, 67, .08);
  --shadow-lg: 0 24px 60px rgba(17, 24, 67, .14);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);

  /* Motion */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red-100); }
[id], input, select, textarea { scroll-margin-top: 110px; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600; transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-700);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.display { font-size: clamp(2.5rem, 6.2vw, 4.75rem); font-weight: 600; letter-spacing: -0.04em; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 600; letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.text-red { color: var(--red); }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
.section-head--center { text-align: center; justify-items: center; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr 1fr; gap: 48px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--pill);
  font-weight: 600; font-size: .975rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(213, 43, 50, .28); }
.btn--primary:hover { background: var(--red-700); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-800); }
.btn--ghost { background: var(--surface); color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--navy-200); background: var(--navy-50); }
.btn--glass {
  background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .28); }
.btn .btn-dot {
  display: grid; place-items: center; width: 30px; height: 30px; margin-right: -10px;
  border-radius: 50%; background: #fff; color: var(--red);
}
.btn--navy .btn-dot { color: var(--navy); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy);
  text-decoration: none; min-height: 44px;
}
.link-arrow .circle {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.link-arrow:hover .circle { transform: translateX(3px); background: var(--red); }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--navy); border: 1px solid var(--border); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { background: var(--navy); color: #fff; }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px;
  border-radius: var(--pill); font-size: .875rem; font-weight: 600;
  background: rgba(255, 255, 255, .82); color: var(--navy);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}
.chip .chip-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red-50); color: var(--red); }
.chip .chip-ico .icon { width: 16px; height: 16px; }
.tag {
  display: inline-block; padding: 6px 12px; border-radius: var(--pill);
  font-size: .8125rem; font-weight: 600; background: var(--surface); color: var(--navy);
  border: 1px solid var(--border);
}
.tag--dark { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); }
.sample-tag {
  display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--pill); background: #fff4d6; color: #7a5300;
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding-top: 14px; }
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -14px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg) 55%, rgba(245, 246, 251, 0));
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: var(--pill); padding: 8px 8px 8px 18px; box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--border); flex: none; }
.brand-mark img { width: 100%; height: 100%; transform: scale(1.6) translateY(15%); }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: 1.125rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.brand-text span { font-size: .6875rem; font-weight: 700; color: var(--red); letter-spacing: .08em; text-transform: uppercase; }

.nav-links { display: none; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--pill);
  text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-links a:hover { color: var(--navy); background: var(--navy-50); }
.nav-links a[aria-current="page"] { color: var(--navy); background: var(--navy-50); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-phone { display: none; }
.nav-cta { display: none; }
.menu-toggle { display: grid; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: rgba(17, 24, 67, .45);
  opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease), visibility var(--t-med);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-panel {
  position: absolute; top: 12px; left: 12px; right: 12px; background: var(--surface); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow-lg); transform: translateY(-12px); transition: transform var(--t-med) var(--ease);
  max-height: calc(100dvh - 24px); overflow-y: auto;
}
.mobile-menu.is-open .mobile-panel { transform: none; }
.mobile-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mobile-panel nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px;
  border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: 1.0625rem; color: var(--navy);
}
.mobile-panel nav a:hover, .mobile-panel nav a[aria-current="page"] { background: var(--navy-50); }
.mobile-panel .btn { width: 100%; margin-top: 10px; }

@media (min-width: 1080px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .nav-cta { display: inline-flex; }
}
@media (min-width: 1240px) { .nav-phone { display: inline-flex; } }
@media (min-width: 560px) and (max-width: 1079px) { .nav-cta { display: inline-flex; } }

/* ---------- Hero (home) ---------- */
.hero { padding-top: 20px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  min-height: clamp(560px, 78vh, 760px); display: flex; align-items: flex-end;
  background: var(--navy-800);
  isolation: isolate;
}
.hero-card > img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; z-index: -2;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(17, 24, 67, .92) 0%, rgba(17, 24, 67, .55) 40%, rgba(17, 24, 67, .1) 75%),
    linear-gradient(90deg, rgba(17, 24, 67, .55) 0%, rgba(17, 24, 67, 0) 60%);
}
.hero-content { padding: clamp(24px, 5vw, 64px); color: #fff; max-width: 780px; }
.hero-content .chip { margin-bottom: 22px; }
.hero-content h1 { color: #fff; margin-bottom: 18px; }
.hero-content h1 em { font-style: normal; color: #ffb3b6; }
.hero-content p { color: rgba(255, 255, 255, .88); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 54ch; margin-bottom: 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-floating { display: none; }
@media (min-width: 1024px) {
  .hero-floating { display: block; position: absolute; inset: 0; pointer-events: none; }
  .hero-floating > * { position: absolute; pointer-events: auto; }
  .hf-1 { top: 11%; right: 9%; }
  .hf-2 { top: 24%; right: 20%; }
  .hf-3 { top: 37%; right: 5%; }
  .hero-side-card {
    right: 32px; bottom: 32px; width: 290px; padding: 18px; border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  }
  .hero-side-card p { margin: 10px 0 0; font-size: .9375rem; color: rgba(255,255,255,.9); line-height: 1.5; }
}
.avatar-stack { display: flex; }
.avatar-stack img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -10px;
}
.avatar-stack img:first-child { margin-left: 0; }
.avatar-stack .avatar-more {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-left: -10px;
  background: var(--red); color: #fff; border: 2px solid #fff;
}

/* ---------- Quick info strip ---------- */
.info-strip {
  display: grid; gap: 12px; margin-top: 16px;
  grid-template-columns: 1fr;
}
.info-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border);
}
.info-item .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-50); color: var(--navy); flex: none; }
.info-item small { display: block; color: var(--muted); font-size: .8125rem; }
.info-item strong, .info-item a { font-weight: 700; color: var(--navy); text-decoration: none; }
.info-item a:hover { color: var(--red); }
@media (min-width: 760px) { .info-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Intro / quote ---------- */
.intro-quote {
  display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start;
  border-top: 1px solid var(--border); padding-top: 40px;
}
.quote-mark { font-size: 5rem; line-height: .6; color: var(--red); font-weight: 800; font-family: Georgia, serif; }
.intro-quote blockquote { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.45; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
@media (min-width: 900px) { .intro-quote { grid-template-columns: 80px 1fr 260px; gap: 40px; } }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.bento-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 24px;
  background: var(--surface); border: 1px solid var(--border); min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento-card h3 { font-size: 1.375rem; margin: 0; }
.bento-card p { margin: 0; color: var(--muted); }
.bento-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bento-card--tint { background: var(--navy-50); border-color: transparent; }
.bento-card--navy { background: var(--navy); border-color: transparent; color: #fff; }
.bento-card--navy p { color: rgba(255,255,255,.82); }
.bento-card--red { background: var(--red); border-color: transparent; color: #fff; }
.bento-card--red p { color: rgba(255,255,255,.9); }
.bento-card--photo { color: #fff; padding: 0; border: 0; }
.bento-card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-card--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,24,67,.88), rgba(17,24,67,.05) 65%); }
.bento-card--photo .bento-inner { position: relative; z-index: 1; padding: 24px; margin-top: auto; display: grid; gap: 12px; }
.bento-card--photo p { color: rgba(255,255,255,.88); }

/* Orbit graphic (inspired by reference) */
.orbit { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; margin: 0 auto; }
.orbit .ring { position: absolute; border-radius: 50%; border: 1.5px dashed var(--navy-200); }
.orbit .ring-1 { inset: 0; }
.orbit .ring-2 { inset: 22%; border-style: solid; border-color: var(--navy-100); }
.orbit .core {
  position: absolute; inset: 36%; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-md);
  display: grid; place-items: center; color: var(--red);
}
.orbit .core .icon { width: 34%; height: 34%; }
.orbit .node {
  position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--navy);
  box-shadow: var(--shadow-md); border: 2px solid #fff;
}
.orbit .node img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.orbit .node .icon { width: 20px; height: 20px; }
.orbit .n1 { top: 0%; left: 50%; }
.orbit .n2 { top: 30%; left: 97%; }
.orbit .n3 { top: 85%; left: 82%; }
.orbit .n4 { top: 85%; left: 18%; }
.orbit .n5 { top: 30%; left: 3%; }
.orbit .node--red { background: var(--red); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .orbit .ring-1 { animation: spin 60s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.pill-visual {
  position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-100);
}
.pill-visual img { width: 100%; height: 100%; object-fit: cover; }

.mini-profile { display: flex; align-items: center; gap: 12px; }
.mini-profile img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.6); }
.mini-profile strong { display: block; font-size: .975rem; }
.mini-profile small { opacity: .8; }

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento .b-a { grid-column: span 4; }
  .bento .b-b { grid-column: span 4; }
  .bento .b-c { grid-column: span 4; }
  .bento .b-d { grid-column: span 7; min-height: 360px; }
  .bento .b-e { grid-column: span 5; min-height: 360px; }
}

/* ---------- Services grid ---------- */
.service-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.service-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 22px; min-height: 180px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--border); text-decoration: none; color: var(--ink);
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.service-tile .tile-ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--navy-50); color: var(--navy); transition: background var(--t-med), color var(--t-med);
}
.service-tile .tile-ico .icon { width: 26px; height: 26px; }
.service-tile h3 { font-size: 1.0625rem; margin: 0; font-weight: 700; }
.service-tile .tile-arrow {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--border); color: var(--navy);
  transition: transform var(--t-med) var(--ease), background var(--t-med), color var(--t-med), border-color var(--t-med);
}
.service-tile .tile-arrow .icon { width: 16px; height: 16px; }
.service-tile:hover { background: var(--navy); color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-tile:hover .tile-ico { background: rgba(255,255,255,.12); color: #fff; }
.service-tile:hover .tile-arrow { background: var(--red); color: #fff; border-color: var(--red); transform: rotate(45deg); }
.service-tile--feature { background: var(--red); color: #fff; border-color: transparent; }
.service-tile--feature .tile-ico { background: rgba(255,255,255,.16); color: #fff; }
.service-tile--feature .tile-arrow { border-color: rgba(255,255,255,.4); color: #fff; }
.service-tile--feature:hover { background: var(--red-700); }
.service-tile--feature p { margin: 0; color: rgba(255,255,255,.9); font-size: .9375rem; }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Split feature (why us) ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.media-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--navy-100); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .chip { position: absolute; left: 20px; bottom: 20px; }
.media-frame .chip--top { top: 20px; bottom: auto; left: auto; right: 20px; }

.feature-list { display: grid; gap: 14px; margin-top: 28px; }
.feature {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
}
.feature .f-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--red-50); color: var(--red); }
.feature h3 { font-size: 1.0625rem; margin: 4px 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .9688rem; }

/* ---------- Community gallery (brand graphics) ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--border); aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med) var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.testimonial:nth-child(2) { background: var(--navy); color: #fff; border-color: transparent; }
.testimonial:nth-child(2) .t-who small { color: rgba(255,255,255,.75); }
.stars { display: flex; gap: 2px; color: #f2a516; }
.stars .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.testimonial blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; flex: 1; }
.t-who { display: flex; align-items: center; gap: 12px; }
.t-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red-50); color: var(--red); font-weight: 800; }
.t-who small { display: block; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 96px) var(--gutter); background: var(--navy-50);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.cta-band::before { width: 420px; height: 420px; left: -160px; top: -200px; background: radial-gradient(circle, rgba(213,43,50,.14), transparent 70%); }
.cta-band::after { width: 520px; height: 520px; right: -200px; bottom: -280px; background: radial-gradient(circle, rgba(31,42,107,.16), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band .avatar-stack { justify-content: center; margin-bottom: 18px; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }
.cta-band p { margin-inline: auto; }
.rating-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: .9375rem; }
.rating-line strong { color: var(--navy); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: 20px; }
.page-hero-card {
  display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr;
  border-radius: var(--r-xl); background: var(--navy); color: #fff; overflow: hidden;
  padding: clamp(28px, 5vw, 56px); position: relative; isolation: isolate;
}
.page-hero-card::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(213,43,50,.45), transparent 65%);
}
.page-hero-card h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600; letter-spacing: -0.035em; }
.page-hero-card p { color: rgba(255,255,255,.86); font-size: 1.125rem; max-width: 52ch; }
.page-hero-card .eyebrow { color: #ffb3b6; }
.page-hero-card .eyebrow::before { background: #ffb3b6; }
.page-hero-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 11; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { display: flex; gap: 8px; font-size: .875rem; margin-bottom: 18px; color: rgba(255,255,255,.75); }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
@media (min-width: 960px) { .page-hero-card { grid-template-columns: 1.1fr 1fr; gap: 48px; } }

/* ---------- Cards / generic ---------- */
.card { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.value-card .v-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--navy); color: #fff; margin-bottom: 20px; }
.value-card h3 { font-size: 1.25rem; }
.value-card p { color: var(--muted); margin: 0; }

.check-list { display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.check-list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--red); }

/* Service detail cards (services page) */
.service-detail {
  display: grid; gap: 0; grid-template-columns: 1fr; overflow: hidden; scroll-margin-top: 110px;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border);
}
.service-detail + .service-detail { margin-top: 20px; }
.service-detail .sd-media { aspect-ratio: 16 / 10; background: var(--navy-100); }
.service-detail .sd-media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail .sd-body { padding: clamp(24px, 4vw, 44px); }
.service-detail .sd-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--red-50); color: var(--red); margin-bottom: 18px; }
.service-detail h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 650; }
.service-detail p { color: var(--muted); }
@media (min-width: 960px) {
  .service-detail { grid-template-columns: 5fr 7fr; }
  .service-detail .sd-media { aspect-ratio: auto; min-height: 100%; }
  .service-detail:nth-of-type(even) .sd-media { order: 2; }
}
.service-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.service-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--navy);
  transition: background var(--t-fast), color var(--t-fast);
}
.service-nav a:hover { background: var(--navy); color: #fff; }

/* Steps */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--red); margin-bottom: 12px; line-height: 1;
}
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); transition: border-color var(--t-fast); }
.faq details[open] { border-color: var(--navy-200); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none;
  padding: 20px 22px; font-weight: 600; font-size: 1.0625rem; color: var(--navy); min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--t-med) var(--ease); color: var(--red); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-body p:last-child { margin: 0; }

/* Insurance */
.insurance-box {
  display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border);
}
@media (min-width: 900px) { .insurance-box { grid-template-columns: 1.3fr 1fr; } }
.plan-list { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-list li { padding: 10px 16px; border-radius: var(--pill); background: var(--navy-50); color: var(--navy); font-weight: 600; font-size: .9375rem; }

/* ---------- Contact & form ---------- */
.contact-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.contact-layout > * { min-width: 0; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1.5fr 1fr; } }
.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.field .req { color: var(--red-700); }
.field .hint { font-size: .8438rem; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 1rem;
  background: var(--bg); border: 1.5px solid var(--border); transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-200); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(31,42,107,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); background: #fff; }
.field .error-msg { display: none; align-items: center; gap: 6px; font-size: .875rem; color: var(--error); font-weight: 600; }
.field.has-error .error-msg { display: flex; }
.error-msg .icon { width: 16px; height: 16px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px;
  border-radius: var(--pill); border: 1.5px solid var(--border); background: var(--bg); cursor: pointer; font-weight: 500;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.choice input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--navy-50); color: var(--navy); font-weight: 600; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9375rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--red-50); color: var(--red-700); font-size: .9375rem; font-weight: 500;
}
.notice .icon { margin-top: 2px; }
.form-status { display: none; padding: 16px 18px; border-radius: var(--r-sm); font-weight: 600; }
.form-status.is-visible { display: flex; gap: 10px; align-items: flex-start; }
.form-status.is-success { background: #e8f6ed; color: var(--success); }
.form-status.is-error { background: var(--red-50); color: var(--error); }
.error-summary { display: none; padding: 16px 18px; border-radius: var(--r-sm); background: var(--red-50); border: 1.5px solid var(--error); color: var(--error); }
.error-summary.is-visible { display: block; }
.error-summary h2 { font-size: 1rem; margin: 0 0 6px; }
.error-summary ul { list-style: disc; padding-left: 20px; }
.error-summary a { color: var(--error); font-weight: 600; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }

.contact-aside { display: grid; gap: 16px; }
.contact-card { padding: 26px; border-radius: var(--r-lg); background: var(--navy); color: #fff; }
.contact-card h2 { font-size: 1.375rem; color: #fff; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-line:first-of-type { border-top: 0; }
.contact-line .icon { margin-top: 3px; color: #ffb3b6; }
.contact-line small { display: block; color: rgba(255,255,255,.7); font-size: .8125rem; }
.contact-line > div, .footer-contact li > * { min-width: 0; overflow-wrap: anywhere; }
.contact-line a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.hours tr:last-child td { border-bottom: 0; }
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; background: var(--navy-50); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section); background: var(--navy-900); color: rgba(255,255,255,.8); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.footer-top { display: grid; gap: 36px; padding-block: clamp(48px, 6vw, 80px) 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1080px) { .footer-top { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; } }
.footer-brand img { width: 150px; height: 150px; border-radius: var(--r-md); object-fit: cover; background: #fff; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.social-links a:hover { background: var(--red); border-color: var(--red); }
.social-links .icon { width: 18px; height: 18px; }
.site-footer h2 { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-links li + li { margin-top: 4px; }
.footer-links a { display: inline-flex; min-height: 36px; align-items: center; color: rgba(255,255,255,.82); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact .icon { margin-top: 4px; color: #ffb3b6; width: 18px; height: 18px; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 24px 32px;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .875rem; color: rgba(255,255,255,.7);
}
.emergency { display: inline-flex; gap: 8px; align-items: center; color: #ffb3b6; font-weight: 600; }

/* ---------- Mobile sticky call bar ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px; border-radius: var(--pill); background: rgba(255,255,255,.94); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg);
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px) * .5);
}
.mobile-cta .btn { min-height: 46px; padding: 10px 14px; font-size: .9375rem; }
body { padding-bottom: 84px; }
@media (min-width: 760px) { .mobile-cta { display: none; } body { padding-bottom: 0; } }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
