
/*
 * Global stylesheet: design tokens first, then the page sections
 * roughly in the order they show up on the site.
 */

/* ---------- Design tokens (light + dark) ---------- */

:root,
[data-theme="light"] {
  --bg:            #FFFFFF;
  --bg-alt:        #F8FAFC;
  --surface:       #FFFFFF;
  --border:        #E5E7EB;
  --text:          #111827;
  --text-muted:    #6B7280;
  --primary:       #0F4C81;   /* deep medical blue */
  --primary-ink:   #0D3F6B;   /* darker blue for hover/contrast on light */
  --secondary:     #2BB6A8;   /* teal */
  --secondary-ink: #1E8A7F;   /* darker teal for text-on-light contrast */
  --accent:        #22C55E;   /* green */
  --brand-red:     #E41E1E;   /* logo heart red */
  --danger:        #EF4444;
  --warning:       #F59E0B;
  --on-primary:    #FFFFFF;
  --shadow:        0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg:     0 20px 48px rgba(15, 23, 42, 0.12);
  --ring:          rgba(15, 76, 129, 0.45);
  --header-bg:     rgba(255, 255, 255, 0.85);
  --hero-veil:     linear-gradient(180deg, #F0F6FB 0%, var(--bg) 100%);

  /* One place to tweak spacing across the whole site */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg:            #0A0A0A;   /* true near-black */
  --bg-alt:        #141416;
  --surface:       #17181B;
  --border:        rgba(255, 255, 255, 0.08);
  --text:          #F5F5F7;
  --text-muted:    #9CA3AF;
  --primary:       #5AA9E6;   /* Lightened: #0F4C81 fails contrast on black */
  --primary-ink:   #7FBCEB;
  --secondary:     #2BB6A8;   /* unchanged, passes AA on black */
  --secondary-ink: #4CC7BA;
  --accent:        #34D399;
  --brand-red:     #F26060;   /* brightened for AA on black */
  --danger:        #F87171;
  --warning:       #FBBF24;
  --on-primary:    #0A0A0A;
  --shadow:        none;      /* shadows don't read on black  borders do */
  --shadow-lg:     none;
  --ring:          rgba(90, 169, 230, 0.55);
  --header-bg:     rgba(10, 10, 10, 0.8);
  --hero-veil:     radial-gradient(1200px 600px at 70% -10%, rgba(90,169,230,0.14), transparent 60%), var(--bg);
  color-scheme: dark;
}

/* ---------- Base / reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px; /* offset for sticky header on anchor jumps */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty; /* avoids awkward single-word orphan lines */
  color: var(--text);
  background-color: var(--bg);
  /* Only the theme-sensitive properties transition, keeps it smooth */
  transition: background-color 200ms ease, color 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover { color: var(--primary-ink); }

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

::selection {
  background: var(--secondary);
  color: var(--on-primary);
}

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 2000;
  padding: 0.7rem 1.2rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 999px;
  font-weight: 600;
  transition: top 200ms ease;
}

.skip-link:focus { top: 1rem; }

/* ---------- Typography helpers ---------- */

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
  text-wrap: balance; /* balanced lines, no accidental short last lines */
}

h1 { font-size: clamp(2.35rem, 5vw, 3.85rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.3rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--secondary);
}

.section {
  padding: clamp(56px, 9vw, 120px) 0;
}

.section--alt { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

.section-head p.lede {
  margin-top: var(--space-4);
  font-size: 1.1rem;
  color: var(--text-muted);
}

.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease,
              border-color 200ms ease, transform 200ms ease,
              box-shadow 200ms ease, filter 200ms ease;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-lg);
}

.btn--primary:hover {
  background: var(--primary-ink);
  color: var(--on-primary);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn--primary {
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .btn--primary:hover {
  box-shadow: 0 0 0 4px rgba(90, 169, 230, 0.25), 0 0 22px rgba(90, 169, 230, 0.35);
}

.btn--secondary {
  background: var(--secondary);
  color: var(--on-primary);
}

.btn--secondary:hover {
  background: var(--secondary-ink);
  color: var(--on-primary);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn--secondary:hover {
  box-shadow: 0 0 0 4px rgba(43, 182, 168, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn--ghost { color: var(--primary); }

.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }

.btn .ic { width: 1.15em; height: 1.15em; flex: none; }

/* Call and Text nav buttons */
.btn--call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 200ms ease;
}

.btn--call:hover {
  background: var(--primary-ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.3);
}

.btn--text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: var(--secondary);
  color: var(--on-primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 200ms ease;
}

.btn--text:hover {
  background: var(--secondary-ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 182, 168, 0.3);
}

.btn--call .ic, .btn--text .ic {
  width: 1em;
  height: 1em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .site-header.is-scrolled { box-shadow: none; }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { color: var(--text); }

.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 266px;
  transition: transform 200ms ease;
}

.brand:hover .brand-logo { transform: translateY(-1px); }

/* Two logo variants: the light artwork is black text, the dark artwork
   is white text. Show the right one for the active theme. */
.brand-logo--dark { display: none; }

[data-theme="dark"] .brand-logo--light { display: none; }
[data-theme="dark"] .brand-logo--dark { display: block; }

@media (max-width: 560px) {
  .brand-logo { height: 46px; max-width: 218px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.3rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
}

.phone-link svg { width: 1.1em; height: 1.1em; color: var(--secondary); }
.phone-link:hover { color: var(--primary); }

/* Theme toggle button  shows the sun in dark mode, moon in light mode */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease,
              color 200ms ease, transform 200ms ease;
}

.theme-toggle:hover { border-color: var(--primary); transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; }

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 76px 0 auto 0;
  z-index: 999;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0 var(--space-7);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}

.mobile-nav[hidden] { display: none; }
.mobile-nav:not([hidden]) { display: block; }

.mobile-nav ul { list-style: none; }

.mobile-nav a.mobile-link {
  display: block;
  padding: 0.9rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 12px;
}

.mobile-nav a.mobile-link:hover { background: var(--bg-alt); color: var(--primary); }

.mobile-nav .mobile-cta {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) 0;
}

.mobile-nav .btn { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 3rem) 0 clamp(3.5rem, 8vw, 6rem);
  background: var(--hero-veil);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 182, 168, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin: var(--space-1) 0 var(--space-5); }

.hero .sub {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: var(--space-7);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  list-style: none;
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--border);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-trust svg {
  width: 1.05em;
  height: 1.05em;
  color: var(--accent);
  flex: none;
}

.hero-media { position: relative; }

.hero-media .frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
}

[data-theme="dark"] .hero-media .frame { box-shadow: none; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 1.4rem;
  left: -1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .hero-badge { box-shadow: none; }

.hero-badge .badge-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(43, 182, 168, 0.14);
  color: var(--secondary);
}

.hero-badge .badge-ic svg { width: 22px; height: 22px; }

.hero-badge strong { display: block; font-size: 0.95rem; line-height: 1.2; }
.hero-badge span { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- Trust bar ---------- */

.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
}

.trust-item {
  background: var(--bg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.trust-item .stat {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.trust-item .label {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Section pieces ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.split-media { position: relative; }

.split-media .frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}

[data-theme="dark"] .split-media .frame { box-shadow: none; }

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* small secondary photo overlapping the main one */
.frame--offset {
  position: absolute;
  right: -1.6rem;
  bottom: -1.8rem;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow-lg);
}

.value-list {
  list-style: none;
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-5);
}

.value-list li { display: flex; gap: var(--space-3); align-items: flex-start; }

.value-list .v-ic {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(43, 182, 168, 0.14);
  color: var(--secondary);
}

.value-list .v-ic svg { width: 20px; height: 20px; }

.value-list strong { display: block; font-size: 1.02rem; }
.value-list p { font-size: 0.95rem; color: var(--text-muted); margin-top: var(--space-1); }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-6);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

[data-theme="dark"] .service-card:hover {
  box-shadow: 0 0 0 1px var(--secondary), 0 0 24px rgba(43, 182, 168, 0.18);
}

.service-ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(43, 182, 168, 0.14));
  color: var(--primary);
  margin-bottom: var(--space-2);
}

[data-theme="dark"] .service-ic { color: var(--primary); }

.service-ic svg { width: 26px; height: 26px; }

.service-card h3 { margin-bottom: 0; }
.service-card p { font-size: 0.94rem; color: var(--text-muted); }

/* Mission & vision cards */
.mv-band { margin-top: var(--space-6); }

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.mv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }

[data-theme="dark"] .mv-card:hover {
  box-shadow: 0 0 0 1px var(--secondary), 0 0 24px rgba(43, 182, 168, 0.18);
}

.mv-ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(43, 182, 168, 0.14));
  color: var(--primary);
}

.mv-ic svg { width: 24px; height: 24px; }
.mv-card h3 { margin-bottom: 0; }
.mv-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Providers ---------- */

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.provider-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.provider-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .provider-card:hover {
  box-shadow: 0 0 0 1px var(--border), 0 0 26px rgba(90, 169, 230, 0.14);
}

.provider-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.provider-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.provider-card:hover .provider-photo img { transform: scale(1.04); }

.provider-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--space-3);
  flex: 1;
}

.provider-body h3 { font-size: 1.25rem; }

.provider-role {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-row svg { width: 1.05em; height: 1.05em; flex: none; color: var(--primary); margin-top: 0.2em; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.provider-body .btn { margin-top: auto; }

/* ---------- Conditions tags ---------- */

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
  list-style: none;
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.tag-item:hover {
  transform: translateY(-2px);
  border-color: var(--secondary);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .tag-item:hover { box-shadow: 0 0 18px rgba(43, 182, 168, 0.16); }

.tag-item .t-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent);
}

.tag-item .t-ic svg { width: 16px; height: 16px; }

/* ---------- Insurance ---------- */

.insurer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-7);
}

.insurer {
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.mini-faq {
  margin-top: var(--space-7);
  display: grid;
  gap: var(--space-3);
  max-width: 760px;
}

.mini-faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 1.2rem;
}

.mini-faq summary {
  cursor: pointer;
  padding: var(--space-4) 0;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.mini-faq summary::-webkit-details-marker { display: none; }

.mini-faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary);
  transition: transform 200ms ease;
}

.mini-faq details[open] summary::after { transform: rotate(45deg); }

.mini-faq details p { padding: 0 0 var(--space-4); color: var(--text-muted); font-size: 0.95rem; }



/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: var(--space-3); max-width: 820px; margin-inline: auto; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 200ms ease;
}

.faq-list details[open] { border-color: var(--secondary); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary .faq-ic {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  color: var(--secondary);
  transition: transform 250ms ease, background-color 200ms ease;
}

.faq-list summary .faq-ic svg { width: 18px; height: 18px; }

.faq-list details[open] summary .faq-ic { transform: rotate(45deg); background: rgba(43, 182, 168, 0.16); }

.faq-list details p { padding: 0 var(--space-6) var(--space-5); color: var(--text-muted); max-width: 46rem; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.1rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.map-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-height: 380px;
  background: var(--bg-alt);
}

[data-theme="dark"] .map-frame { box-shadow: none; }

.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(0.2); }

.contact-list { list-style: none; display: grid; gap: var(--space-4); margin-top: var(--space-5); }

.contact-list li { display: flex; gap: var(--space-4); align-items: flex-start; }

.contact-list .c-ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(43, 182, 168, 0.14));
  color: var(--primary);
}

[data-theme="dark"] .contact-list .c-ic { color: var(--primary); }

.contact-list .c-ic svg { width: 22px; height: 22px; }

.contact-list strong { display: block; font-size: 1rem; }
.contact-list a, .contact-list span { font-size: 0.95rem; color: var(--text-muted); }
.contact-list a:hover { color: var(--primary); }

.emergency-note {
  margin-top: var(--space-6);
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
  border-radius: 14px;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
}

.emergency-note strong { color: var(--warning); }
.emergency-note p { font-size: 0.92rem; color: var(--text-muted); margin-top: var(--space-1); }

/* ---------- Sticky mobile action bar ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 0.55rem 0.6rem calc(0.55rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .mobile-bar { box-shadow: none; }

.mobile-bar ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.2rem;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.mobile-bar a svg { width: 22px; height: 22px; }

.mobile-bar a.is-cta { background: var(--primary); color: var(--on-primary); }

.mobile-bar a.is-cta svg { color: var(--on-primary); }

.mobile-bar a:active { transform: scale(0.96); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.footer-grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer-about p { font-size: 0.94rem; color: var(--text-muted); margin-top: var(--space-4); max-width: 22rem; }

.footer-links { list-style: none; display: grid; gap: var(--space-2); }

.footer-links a { font-size: 0.94rem; color: var(--text-muted); font-weight: 500; }
.footer-links a:hover { color: var(--primary); }

.footer-contact { list-style: none; display: grid; gap: var(--space-3); }

.footer-contact li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 0.92rem; color: var(--text-muted); }

.footer-contact svg { width: 1.1em; height: 1.1em; flex: none; color: var(--secondary); margin-top: 0.2em; }

.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--primary); }

.social-row { display: flex; gap: var(--space-2); margin-top: var(--space-4); }

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: transform 200ms ease, color 200ms ease, border-color 200ms ease;
}

.social-row a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom .legal a { color: var(--text-muted); font-weight: 500; }
.footer-bottom .legal a:hover { color: var(--primary); }

/* ---------- Legal pages ---------- */

.legal-page { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem); }

.legal-prose {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-4);
}

/* grid gap handles vertical rhythm, no extra top margin on headings */
.legal-prose h2 { font-size: 1.35rem; }

.legal-prose p, .legal-prose li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal-prose ul { padding-left: var(--space-5); display: grid; gap: var(--space-2); }

.legal-prose .updated {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid, .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .phone-link { display: none; }
  .menu-toggle { display: grid; }
  .header-actions .btn--call, .header-actions .btn--text { display: none; }

  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }

  .hero-media { max-width: 560px; margin-inline: auto; }
  .hero-badge { left: 0.6rem; bottom: 0.9rem; }

  /* add bottom clearance so the fixed mobile bar never covers footer content */
  body { padding-bottom: 74px; }
  .mobile-bar { display: block; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .card-grid, .provider-grid, .mv-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
}
