/* ===========================================================
   NationWide MedCore — Premium RCM website
   Palette: deep navy / teal / white
   =========================================================== */

:root {
  --navy: #15315c;
  --navy-700: #1f4a7a;
  --navy-900: #0e2342;
  --teal: #16a3b8;
  --teal-bright: #2bc0d4;
  --teal-deep: #0e7c8b;
  --ink: #0f1d33;
  --slate: #5a6b82;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eef4fb;
  --white: #fff;

  --grad: linear-gradient(120deg, var(--navy) 0%, var(--teal-deep) 60%, var(--teal-bright) 100%);
  --grad-teal: linear-gradient(120deg, var(--teal-deep), var(--teal-bright));

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(21, 49, 92, .07);
  --shadow: 0 18px 50px -20px rgba(21, 49, 92, .28);
  --shadow-lg: 0 40px 90px -30px rgba(21, 49, 92, .4);

  --ff-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --topbar-h: 40px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Stop iOS/Android from re-flowing type when the device rotates */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.12; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Accessibility: clear keyboard-focus indicator */
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 13px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 700; font-size: .96rem;
  padding: var(--pad); border-radius: 100px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn-lg { --pad: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-teal); color: #fff; box-shadow: 0 12px 28px -10px rgba(22, 163, 184, .7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(22, 163, 184, .8); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-3px); }

/* ---------- Top utility bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  background: var(--teal-deep); color: #eaf6f8;
  font-family: var(--ff-body); font-size: .84rem;
  transition: transform .3s var(--ease);
}
.topbar.hidden { transform: translateY(-100%); }
.topbar-inner {
  width: min(100% - 40px, var(--container)); margin-inline: auto;
  min-height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  white-space: nowrap;
}
.topbar-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 600; letter-spacing: .02em; color: #fff;
}
.topbar-tagline .star { color: var(--teal-bright); }
.topbar-contact { display: flex; align-items: center; gap: 24px; min-width: 0; }
.topbar-contact a, .topbar-contact .tb-item {
  display: inline-flex; align-items: center; gap: 8px; color: #dbeef1; transition: color .25s;
}
.topbar-contact a:hover { color: #fff; }
.topbar-contact svg { width: 15px; height: 15px; color: var(--teal-bright); flex-shrink: 0; }
.tb-divider { width: 1px; height: 15px; background: rgba(255, 255, 255, .22); flex-shrink: 0; }
@media (max-width: 980px) { .topbar-tagline { display: none; } .topbar-inner { justify-content: center; } }
@media (max-width: 680px) {
  .topbar { font-size: .78rem; }
  .topbar-contact { gap: 14px; }
  .tb-address, .tb-divider.d-addr { display: none; }
}
@media (max-width: 460px) { .tb-email, .tb-divider.d-email { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s, top .3s var(--ease);
  padding: 14px 0;
}
/* once the page scrolls, the utility bar slides away and the nav rises to the top */
.site-header.scrolled { top: 0; }
.site-header.scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 8px 30px -18px rgba(21, 49, 92, .4);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--ff-head); font-size: 1.32rem; color: var(--navy); letter-spacing: -.02em; }
.brand-text .accent { color: var(--teal); }
.brand-text small { font-family: var(--ff-head); font-weight: 600; letter-spacing: .32em; font-size: .58rem; color: var(--slate); text-transform: uppercase; padding-left: 2px; }
/* "Inc." suffix — tighter tracking so the period hugs the C, sits a touch lighter */
.brand-text small .brand-inc { letter-spacing: .12em; margin-left: -.12em; opacity: .82; }
.site-header:not(.scrolled) .brand-text strong { color: #fff; }
.site-header:not(.scrolled) .brand-text .accent { color: var(--teal-bright); }
.site-header:not(.scrolled) .brand-text small { color: rgba(255, 255, 255, .7); }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem; color: #fff; position: relative; padding: 4px 0;
}
.site-header.scrolled .main-nav a { color: var(--navy); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--teal-bright); transition: width .3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.nav-cta { margin-left: 4px; }

/* Services dropdown */
.main-nav .has-dropdown { position: relative; }
.main-nav .has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.main-nav .has-dropdown > a::before { content: "\25be"; order: 2; font-size: .6em; margin-top: 2px; opacity: .8; }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; transform: translateY(8px);
  min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; list-style: none; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 200;
}
.main-nav .has-dropdown:hover .nav-dropdown,
.main-nav .has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dropdown li a { display: block; padding: 10px 14px; border-radius: 9px; color: var(--navy) !important; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav-dropdown li a::after { display: none; }
.nav-dropdown li a:hover { background: var(--bg-tint); color: var(--teal-deep) !important; }
.mobile-nav .mobile-sub { padding-left: 22px; font-size: .9rem; font-weight: 500; color: var(--slate); border-bottom: 1px solid var(--bg-tint); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 24px;
  box-shadow: var(--shadow); border-top: 1px solid var(--line);
  /* Keep the menu inside the viewport and scrollable when links exceed screen height */
  max-height: calc(100vh - 68px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; border-radius: 0 0 16px 16px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 6px; font-family: var(--ff-head); font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { border: 0; color: #fff; margin-top: 10px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 170px 0 120px; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, var(--navy-700), var(--navy) 45%, var(--navy-900) 100%);
  color: #fff;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-glow {
  position: absolute; width: 620px; height: 620px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 192, 212, .35), transparent 62%); filter: blur(20px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-head); font-weight: 600;
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  padding: 8px 16px; border-radius: 100px; color: #d8f3f8; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 0 rgba(43, 192, 212, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 192, 212, .6); } 70% { box-shadow: 0 0 0 10px rgba(43, 192, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 192, 212, 0); } }

.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4rem); margin-bottom: 20px; }
.grad-text { background: linear-gradient(100deg, var(--teal-bright), #8fe9f4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.16rem; color: #c9d6e8; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-trust { display: flex; gap: 38px; flex-wrap: wrap; }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { display: inline-block; font-family: var(--ff-head); font-size: 2.1rem; color: #fff; line-height: 1; will-change: transform; }
.hero-trust span { font-size: .86rem; color: #9fb2cd; margin-top: 4px; }
/* Pop + teal glow flash when each hero stat finishes counting */
.hero-trust strong.counted { animation: hero-stat-pop .6s var(--ease); }
@keyframes hero-stat-pop {
  0%   { transform: scale(1);    text-shadow: 0 0 0 rgba(43,192,212,0); }
  35%  { transform: scale(1.18); text-shadow: 0 0 20px rgba(43,192,212,.85); }
  100% { transform: scale(1);    text-shadow: 0 0 0 rgba(43,192,212,0); }
}

/* Hero visual */
.hero-visual { position: relative; }
/* Doctor figure — the hero's focal point, cards float over him */
.hero-doc {
  display: block; width: 100%; max-width: 520px; margin-left: auto; position: relative; z-index: 1;
  /* push his (source-cropped) arm past the right viewport edge so the cut sits off-page */
  transform: translateX(max(0px, calc((100vw - 1180px) / 2 + 24px)));
  filter: drop-shadow(0 26px 46px rgba(4, 12, 26, .55));
}
.dash-card {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px; padding: 24px; backdrop-filter: blur(12px); box-shadow: var(--shadow-lg);
}
/* In the hero, the dashboard becomes a compact card floating over the doctor's lower-left */
.hero-visual .dash-card {
  position: absolute; left: -34px; bottom: 34px; width: 300px; z-index: 3; padding: 20px;
  background: rgba(14, 35, 66, .72);
}
.hero-visual .dash-head { margin-bottom: 14px; }
.hero-visual .dash-bars { height: 84px; margin-bottom: 14px; gap: 7px; }
.hero-visual .dash-foot { gap: 10px; }
.hero-visual .dash-foot div { padding: 9px 11px; }
.hero-visual .dash-foot b { font-size: 1.05rem; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.dash-title { font-family: var(--ff-head); font-weight: 700; color: #fff; }
.dash-pill { font-size: .72rem; font-weight: 700; background: rgba(43, 192, 212, .2); color: var(--teal-bright); padding: 4px 12px; border-radius: 100px; border: 1px solid rgba(43, 192, 212, .4); }
.dash-bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; margin-bottom: 22px; }
.dash-bars span { flex: 1; height: var(--h); background: var(--grad-teal); border-radius: 6px 6px 0 0; transform-origin: bottom; animation: growBar 1s var(--ease) both; }
.dash-bars span:nth-child(7) { background: linear-gradient(180deg, #8fe9f4, var(--teal-bright)); }
@keyframes growBar { from { transform: scaleY(0); } }
.dash-foot { display: flex; gap: 16px; }
.dash-foot div { flex: 1; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 12px 14px; }
.dash-foot small { display: block; color: #9fb2cd; font-size: .76rem; }
.dash-foot b { font-family: var(--ff-head); color: var(--teal-bright); font-size: 1.25rem; }

.mini-card {
  position: absolute; background: #fff; color: var(--navy); font-weight: 600; font-size: .82rem;
  font-family: var(--ff-head); padding: 11px 15px; border-radius: 12px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
}
.mini-card .ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #d6f5e8; color: #12a45f; font-size: .7rem; }
.mini-card { z-index: 4; }
.mini-1 { bottom: 240px; left: 120px; }
.mini-2 { bottom: 18px; left: -60px; }

.floaty { animation: floaty 6s ease-in-out infinite; }
.mini-1 { animation-delay: -2s; }
.mini-2 { animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 80px; z-index: 1;
  background: var(--bg);
  -webkit-mask: radial-gradient(120% 100% at 50% 100%, #000 70%, transparent 71%);
  mask: radial-gradient(120% 100% at 50% 100%, #000 70%, transparent 71%);
}

/* ---------- Logos strip ---------- */
.logos-strip { padding: 38px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.strip-label { text-align: center; color: var(--navy-700); font-size: .95rem; margin-bottom: 18px; font-weight: 600; }
.strip-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; }
.strip-items span { font-family: var(--ff-head); font-weight: 700; color: var(--teal); font-size: 1.05rem; letter-spacing: -.01em; transition: color .3s; }
.strip-items span:hover { color: var(--navy); }
.strip-items span:hover { color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-block; font-family: var(--ff-head); font-weight: 700; font-size: .85rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-deep); margin-bottom: 14px;
}
.kicker.light { color: var(--teal-bright); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--slate); font-size: 1.08rem; }

.grid { display: grid; gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

/* ---------- Services: horizontal photo accordion ---------- */
.svc-accordion {
  display: flex; gap: 14px; height: 460px;
  /* let the open panel know when a sibling is being hovered */
}
.svc-panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); cursor: pointer; color: #fff;
  flex-grow: 1; transition: flex-grow .55s var(--ease), box-shadow .45s var(--ease);
}
/* default-open panel */
.svc-panel.is-open { flex-grow: 4.6; }
/* once the user hovers anywhere in the strip, hover drives which panel opens */
.svc-accordion:hover .svc-panel.is-open { flex-grow: 1; }
.svc-accordion:hover .svc-panel:hover { flex-grow: 4.6; }

/* layer 1: the photo (paths resolved relative to this stylesheet) */
.svc-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center top;
  filter: grayscale(100%) contrast(1.05) brightness(.92);
  transform: scale(1.02);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.svc-panel:nth-of-type(1) .svc-photo { background-image: url('../assets/services/claims-submission.webp'); }
.svc-panel:nth-of-type(2) .svc-photo { background-image: url('../assets/services/denial-management.webp'); }
.svc-panel:nth-of-type(3) .svc-photo { background-image: url('../assets/services/medical-coding.webp'); }
.svc-panel:nth-of-type(4) .svc-photo { background-image: url('../assets/services/payment-posting.webp'); }
.svc-panel:nth-of-type(5) .svc-photo { background-image: url('../assets/services/patient-ar-support.webp'); }
.svc-panel:nth-of-type(6) .svc-photo { background-image: url('../assets/services/credentialing-enrollment.webp'); }

/* layer 2: brand navy→teal duotone tint (fades away when the panel opens) */
.svc-duotone {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(150deg, rgba(13,42,76,.78) 0%, rgba(20,138,158,.62) 100%);
  mix-blend-mode: multiply; opacity: 1;
  transition: opacity .6s var(--ease);
}
/* layer 3: bottom scrim for text legibility */
.svc-scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(7,16,30,0) 35%, rgba(7,16,30,.55) 70%, rgba(6,13,26,.95) 100%);
}

/* OPEN state — duotone clears to full colour, photo sharpens & zooms */
.svc-panel.is-open .svc-photo,
.svc-accordion:hover .svc-panel:hover .svc-photo { filter: grayscale(0%) contrast(1) brightness(1); transform: scale(1.06); }
.svc-panel.is-open .svc-duotone,
.svc-accordion:hover .svc-panel:hover .svc-duotone { opacity: 0; }
.svc-accordion:hover .svc-panel.is-open:not(:hover) .svc-photo { filter: grayscale(100%) contrast(1.05) brightness(.92); transform: scale(1.02); }
.svc-accordion:hover .svc-panel.is-open:not(:hover) .svc-duotone { opacity: 1; }

/* collapsed tab: vertical title shown when the panel is narrow */
.svc-tab {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: opacity .35s var(--ease);
}
.svc-tab-label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .3px;
  white-space: nowrap; text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
/* full content: revealed when the panel is open */
.svc-full {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 30px;
  display: flex; flex-direction: column; align-items: flex-start;
  opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease) .05s, transform .5s var(--ease) .05s;
  pointer-events: none;
}
.svc-panel.is-open .svc-tab,
.svc-accordion:hover .svc-panel:hover .svc-tab { opacity: 0; }
.svc-panel.is-open .svc-full,
.svc-accordion:hover .svc-panel:hover .svc-full { opacity: 1; transform: translateY(0); pointer-events: auto; }
.svc-accordion:hover .svc-panel.is-open:not(:hover) .svc-tab { opacity: 1; }
.svc-accordion:hover .svc-panel.is-open:not(:hover) .svc-full { opacity: 0; transform: translateY(14px); }

.svc-full .icon-wrap {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(4px);
}
.svc-full .icon-wrap svg { width: 26px; height: 26px; }
.svc-full h3 { font-size: 1.4rem; margin-bottom: 8px; color: #fff; position: relative; padding-bottom: 10px; }
.svc-full h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; border-radius: 3px; background: var(--grad-teal); }
.svc-full p { color: rgba(255,255,255,.88); font-size: .98rem; max-width: 34ch; margin-bottom: 16px; }
.svc-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #fff; font-size: .95rem; }
.svc-link::after { content: "\2192"; transition: transform .3s var(--ease); }
.svc-link:hover::after { transform: translateX(5px); }
/* whole panel is a link to the service's page */
.svc-cover { position: absolute; inset: 0; z-index: 5; }

@media (prefers-reduced-motion: reduce) {
  .svc-panel, .svc-photo, .svc-duotone, .svc-full { transition: none; }
}

/* ---------- Nationwide Coverage (split + panel) ---------- */
.coverage-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 54px; align-items: center; }
.coverage-kicker { color: var(--teal-deep); margin-bottom: 14px; }
.coverage-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.12; color: var(--ink); margin-bottom: 18px; }
.coverage-copy h2 em { font-style: normal; color: var(--teal-deep); }
.coverage-lead { color: var(--slate); font-size: 1.05rem; line-height: 1.7; margin-bottom: 28px; max-width: 46ch; }
.coverage-btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: linear-gradient(120deg, var(--teal-deep), var(--teal-bright)); color: #fff;
  font-family: var(--ff-head); font-weight: 700; padding: 15px 26px; border-radius: 12px;
  box-shadow: 0 14px 30px -12px rgba(14,124,139,.6); transition: transform .3s var(--ease);
}
.coverage-btn:hover { transform: translateY(-3px); }
.coverage-btn svg { width: 18px; height: 18px; }
.coverage-panel {
  position: relative; overflow: hidden; border-radius: 20px; padding: 34px; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
  box-shadow: 0 30px 70px -30px rgba(21,49,92,.5);
}
.coverage-panel::before {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: radial-gradient(rgba(255,255,255,.2) 1.3px, transparent 1.3px); background-size: 22px 22px;
}
.coverage-panel-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.coverage-big { font-family: var(--ff-head); font-weight: 800; font-size: 3.2rem; line-height: 1; }
.coverage-big span { font-size: 1rem; color: var(--teal-bright); display: block; font-weight: 600; letter-spacing: 1px; }
.coverage-live { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.8); }
.coverage-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 0 rgba(43,192,212,.7); animation: cov-pulse 2s infinite; }
@keyframes cov-pulse { 0% { box-shadow: 0 0 0 0 rgba(43,192,212,.6); } 70% { box-shadow: 0 0 0 10px rgba(43,192,212,0); } 100% { box-shadow: 0 0 0 0 rgba(43,192,212,0); } }
.coverage-chips { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.coverage-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(4px);
  font-size: .95rem; font-weight: 500; transition: background .3s, transform .3s var(--ease);
}
.coverage-chip svg { width: 14px; height: 14px; color: var(--teal-bright); }
.coverage-chip:hover { background: var(--teal-deep); transform: translateY(-3px); }
.coverage-chip.all { background: linear-gradient(120deg, var(--teal-deep), var(--teal-bright)); border-color: transparent; font-weight: 700; }
@media (max-width: 780px) {
  .coverage-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.why-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 12px 0 16px; }
.why-copy p { color: var(--slate); font-size: 1.08rem; margin-bottom: 26px; }
.why-list { display: grid; gap: 16px; }
.why-list li { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, background .3s; }
.why-list li:hover { transform: translateX(6px); border-color: var(--teal); background: var(--bg-tint); box-shadow: 0 16px 36px -16px rgba(22, 163, 184, .45); }
.why-list li:hover .why-ic { background: var(--grad-teal); }
/* Slide the cards in from the right as they scroll into view (staggered via data-delay) */
.why-list li.reveal { transform: translateX(70px); }
.why-list li.reveal.in { transform: none; }
.why-ic { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--bg-tint); border-radius: 14px; flex-shrink: 0; }
.why-list h3 { font-size: 1.12rem; margin-bottom: 4px; }
.why-list p { color: var(--slate); font-size: .95rem; }

/* ---------- Specialties ---------- */
.specialty-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
.spec-card {
  font-family: var(--ff-body); cursor: pointer; background: linear-gradient(180deg, #eaf2fc, #d6e6f7); border: 1px solid #c6dbf1; border-radius: var(--radius-sm);
  padding: 24px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-weight: 600; color: var(--navy); font-size: .92rem; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.spec-ic { font-size: 1.8rem; transition: transform .3s var(--ease); }
.spec-card:hover { transform: translateY(-6px); background: var(--grad); color: #fff; box-shadow: var(--shadow); border-color: transparent; }
.spec-card:hover .spec-ic { transform: scale(1.25); }

/* ---------- Results / Stats ---------- */
.stat-row { grid-template-columns: repeat(4, 1fr); margin-bottom: 56px; }
/* Trust band: warm doctor-patient image + headline + stats */
.trust-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: center; margin-bottom: 56px; }
.trust-media { position: relative; }
.trust-media img { width: 100%; aspect-ratio: 7 / 5.4; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.trust-quote {
  position: absolute; left: -14px; bottom: 22px; max-width: 230px; background: #fff; color: var(--navy);
  font-family: var(--ff-head); font-weight: 700; font-size: .96rem; line-height: 1.3;
  padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); border-left: 3px solid var(--teal);
}
.trust-head { text-align: left; margin: 0 0 26px; max-width: none; }
.stat-row--2x { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }
.stat-box { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 18px; }
.stat-box strong { display: block; font-family: var(--ff-head); font-size: clamp(2.2rem, 4vw, 3rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; will-change: transform; }
.stat-box span { color: var(--slate); font-size: .92rem; margin-top: 8px; display: block; }
/* Staggered rise of each stat box when the row scrolls in */
.stat-row .stat-box { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .4s, border-color .4s; }
.stat-row.in .stat-box { opacity: 1; transform: none; }
.stat-row.in .stat-box:nth-child(1) { transition-delay: .05s; }
.stat-row.in .stat-box:nth-child(2) { transition-delay: .15s; }
.stat-row.in .stat-box:nth-child(3) { transition-delay: .25s; }
.stat-row.in .stat-box:nth-child(4) { transition-delay: .35s; }
/* Number "pops" and the card flashes teal the moment its count finishes */
.stat-box strong.counted { animation: stat-pop .55s var(--ease); }
@keyframes stat-pop { 0% { transform: scale(1); } 35% { transform: scale(1.16); } 100% { transform: scale(1); } }
.stat-box.counted { animation: stat-glow 1s var(--ease); }
@keyframes stat-glow {
  0%   { box-shadow: 0 0 0 0 rgba(43,192,212,.5); border-color: var(--teal-bright); }
  100% { box-shadow: 0 0 26px 2px rgba(43,192,212,0); border-color: var(--line); }
}

.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--ff-head); font-weight: 700; font-size: .95rem; flex-shrink: 0; }

/* Featured testimonial — team photo + slider */
.testi-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.testi-photo { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.testi-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.testi-content { position: relative; }
.testi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.testi-nav { display: flex; gap: 10px; }
.testi-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; color: #fff;
  background: var(--grad-teal); font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 8px 22px -8px rgba(14, 124, 139, .6); transition: transform .3s var(--ease), filter .3s;
}
.testi-arrow:hover { transform: translateY(-2px); filter: brightness(1.08); }
.testi-qmark { font-family: var(--ff-head); font-size: 4rem; line-height: .6; color: var(--teal-bright); opacity: .45; }
.testi-slides { min-height: 210px; margin-bottom: 26px; }
.testi-slide { display: none; }
.testi-slide.is-active { display: block; animation: testiFade .5s var(--ease); }
@keyframes testiFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.testi-reviewer { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.testi-reviewer strong { display: block; font-family: var(--ff-head); color: var(--navy); font-size: 1.06rem; }
.testi-reviewer small { color: var(--teal-deep); font-weight: 600; }
.testi-slide blockquote { font-size: 1.14rem; line-height: 1.75; color: var(--ink); font-style: italic; }
@media (max-width: 860px) { .testi-feature { grid-template-columns: 1fr; gap: 34px; } .testi-slides { min-height: 0; } }

/* ---------- Integrations ---------- */
.integ-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
.integ-logo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px 22px; min-height: 140px;
  display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; color: var(--slate);
  font-size: 1.02rem; transition: transform .3s var(--ease), color .3s, box-shadow .3s, border-color .3s;
}
.integ-logo:hover { transform: translateY(-5px); color: var(--navy); box-shadow: var(--shadow-sm); border-color: var(--teal-bright); }
.integ-img { max-width: 100%; max-height: 76px; width: auto; height: auto; object-fit: contain; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 5 / 5.4; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute; right: -14px; bottom: 24px; background: #fff; color: var(--navy);
  font-family: var(--ff-head); font-size: .9rem; padding: 12px 18px; border-radius: 14px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.about-badge strong { display: block; font-size: 1.35rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 12px 0 16px; }
.about-copy > p { color: var(--slate); font-size: 1.08rem; margin-bottom: 22px; }
.values { display: grid; gap: 12px; }
.values li { padding-left: 28px; position: relative; color: var(--slate); }
.values li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal-deep); font-weight: 800; }
.values strong { color: var(--navy); }
.about-team { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-avatar { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-family: var(--ff-head); font-weight: 800; color: #fff; font-size: 1.3rem; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.team-card h3 { font-size: 1.05rem; }
.team-card small { color: var(--slate); }

/* ---------- Security & Compliance ---------- */
.seal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.seal-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 860px; margin: 0 auto; }
.seal-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 18px; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.seal-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px -22px rgba(21,49,92,.35); border-color: var(--teal-bright); }
.seal { position: relative; width: 74px; height: 74px; margin: 0 auto 16px; display: grid; place-items: center; }
.seal::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--teal-deep), var(--teal-bright), var(--navy-700), var(--teal-deep));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); opacity: .9;
}
.cert-img { display: block; max-width: 100%; max-height: 128px; width: auto; height: auto; object-fit: contain; margin: 4px auto 18px; }
.seal i { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-tint); display: grid; place-items: center; color: var(--teal-deep); }
.seal svg { width: 26px; height: 26px; }
.seal-card h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 6px; }
.seal-card small { color: var(--slate); font-size: .82rem; line-height: 1.45; display: block; }
.seal-card .verified { margin-top: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; color: var(--teal-deep); background: rgba(22,163,184,.1); padding: 4px 10px; border-radius: 100px; }
@media (max-width: 900px) { .seal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .seal-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Service detail pages (split hero + sticky side rail) ---------- */
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.68); margin-bottom: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

.page-hero { position: relative; overflow: hidden; color: #fff; padding: 150px 0 64px;
  background: radial-gradient(120% 120% at 80% -10%, var(--navy-700), var(--navy) 45%, var(--navy-900) 100%); }
.page-hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; margin: 12px 0 16px; color: #fff; }
.page-hero h1 em { font-style: normal; background: var(--grad-teal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { color: #c9d6e8; font-size: 1.08rem; line-height: 1.7; margin-bottom: 24px; max-width: 48ch; }
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.svc-hero-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14); }
.svc-hero-media img { display: block; width: 100%; height: 360px; object-fit: cover; }
.svc-chip { position: absolute; left: 18px; bottom: 18px; background: rgba(14,35,66,.82); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; }
.svc-chip b { font-family: var(--ff-head); font-size: 1.5rem; color: var(--teal-bright); }
.svc-chip span { font-size: .8rem; color: rgba(255,255,255,.82); line-height: 1.2; }

/* body: sticky rail + main */
.svc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 46px; align-items: start; }
.svc-rail { position: sticky; top: 96px; display: grid; gap: 14px; }
.svc-railcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.svc-railcard h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.svc-railcard ul { list-style: none; display: grid; gap: 2px; }
.svc-railcard li a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--bg-tint); }
.svc-railcard li:last-child a { border-bottom: none; }
.svc-railcard li a span { color: var(--teal-deep); }
.svc-railcard li a:hover { color: var(--teal-deep); }
.svc-railcta { background: linear-gradient(135deg, var(--navy), var(--teal-deep)); color: #fff; border-radius: var(--radius); padding: 22px; text-align: center; }
.svc-railcta p { font-size: .92rem; margin-bottom: 14px; color: rgba(255,255,255,.9); }
.svc-railcta .btn { width: 100%; justify-content: center; }

.svc-main { display: grid; gap: 52px; }
.svc-block { scroll-margin-top: 90px; }
.svc-block > .kicker { display: block; margin-bottom: 10px; }
.svc-block h2 { font-size: 1.7rem; margin-bottom: 14px; }
.svc-block p.lead { color: var(--slate); font-size: 1.05rem; line-height: 1.75; }
.svc-block p.lead em { font-style: normal; color: var(--teal-deep); font-weight: 600; }

.svc-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 4px; }
.svc-feature { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.svc-feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--teal-bright); }
.svc-feature .fic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; background: var(--bg-tint); color: var(--teal-deep); }
.svc-feature .fic svg { width: 23px; height: 23px; }
.svc-feature h3 { font-size: 1.05rem; margin-bottom: 5px; }
.svc-feature p { color: var(--slate); font-size: .93rem; line-height: 1.55; }

.strengths-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 26px; margin-top: 4px; }
.strength h3 { display: flex; align-items: center; gap: 10px; font-size: 1.03rem; margin-bottom: 7px; }
.strength h3 .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--grad-teal); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.strength h3 .dot svg { width: 13px; height: 13px; }
.strength p { color: var(--slate); font-size: .94rem; line-height: 1.6; }

.process-steps { display: grid; gap: 30px; counter-reset: step; margin-top: 8px; }
.process-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 22px 78px; }
.process-step::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 22px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-teal); color: #fff; font-family: var(--ff-head); font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow-sm); }
.process-step h3 { margin-bottom: 5px; font-size: 1.08rem; }
.process-step p { color: var(--slate); font-size: .95rem; line-height: 1.6; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; font-family: var(--ff-head); font-weight: 700; color: var(--navy); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--teal-bright); }
.related-card svg { width: 20px; height: 20px; color: var(--teal-deep); flex-shrink: 0; }

.cta-banner { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 24px; padding: 64px 24px;
  background: linear-gradient(125deg, var(--navy-900), var(--navy) 55%, var(--teal-deep)); }
.cta-banner::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(rgba(255,255,255,.16) 1.3px, transparent 1.3px); background-size: 26px 26px; }
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 12px; color: #fff; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 26px; }
.cta-banner .page-hero-actions { justify-content: center; }

@media (max-width: 900px) {
  .page-hero .container { grid-template-columns: 1fr; gap: 34px; }
  .svc-layout { grid-template-columns: 1fr; gap: 32px; }
  .svc-rail { position: static; grid-template-columns: 1fr 1fr; }
  .svc-feature-grid, .strengths-grid, .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .svc-rail { grid-template-columns: 1fr; } }

/* ---------- Resources / Blog ---------- */
.blog-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal-bright); }
.blog-img { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-img img { transform: scale(1.06); }
.blog-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-tag { align-self: flex-start; font-family: var(--ff-head); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); background: var(--bg-tint); padding: 5px 11px; border-radius: 100px; margin-bottom: 12px; }
.blog-body h3 { font-size: 1.14rem; line-height: 1.28; margin-bottom: 8px; }
.blog-body > p { color: var(--slate); font-size: .95rem; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.blog-meta { display: flex; gap: 16px; color: var(--slate); font-size: .82rem; margin-top: auto; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: var(--teal-bright); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--ff-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; color: var(--teal-deep); transition: transform .3s var(--ease); line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; color: var(--slate); line-height: 1.7; }
.faq-a p { margin: 0; }

/* ---------- Article / Blog pages ---------- */
.article-hero { position: relative; overflow: hidden; color: #fff; padding: 150px 0 52px;
  background: radial-gradient(120% 120% at 80% -10%, var(--navy-700), var(--navy) 45%, var(--navy-900) 100%); }
.article-hero .container { max-width: 800px; }
.article-hero .breadcrumb { margin-bottom: 18px; }
.article-cat { display: inline-block; font-family: var(--ff-head); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--grad-teal); padding: 6px 13px; border-radius: 100px; margin-bottom: 16px; }
.article-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; color: #fff; margin-bottom: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #c9d6e8; font-size: .9rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-body { max-width: 800px; margin: 0 auto; }
.prose { font-size: 1.06rem; line-height: 1.8; color: #33425a; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.5rem; color: var(--navy); margin-top: 1.7em; margin-bottom: .1em; }
.prose h3 { font-size: 1.16rem; color: var(--navy); margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-top: .5em; }
.prose li::marker { color: var(--teal-deep); }
.prose strong { color: var(--ink); }
.prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose .callout { background: var(--bg-tint); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; }
.prose .callout p { margin: 0; }
.prose .lede { font-size: 1.18rem; line-height: 1.7; color: var(--slate); }
.article-cta { margin-top: 46px; }
/* Keep the CTA banner's light-on-dark type readable inside .prose article bodies
   (.prose h2 would otherwise repaint the heading navy-on-navy) */
.prose .cta-banner h2 { color: #fff; }
.prose .cta-banner p { color: rgba(255, 255, 255, .85); }
/* Buttons must keep their own colour + no underline inside prose
   (.prose a otherwise makes button labels teal and underlined) */
.prose a.btn { color: #fff; text-decoration: none; }
.center-link { text-align: center; margin-top: 40px; }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(120% 120% at 10% 0%, var(--navy-700), var(--navy) 55%, var(--navy-900)); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-photo { margin-bottom: 26px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .14); }
.contact-photo img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; display: block; }
.contact-copy h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 12px 0 16px; }
.contact-copy > p { color: #c9d6e8; font-size: 1.08rem; margin-bottom: 26px; }
.contact-points { display: grid; gap: 14px; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: #dce6f3; }
.contact-points a:hover { color: var(--teal-bright); }

.contact-form { background: #fff; border-radius: 22px; padding: 30px; box-shadow: var(--shadow-lg); color: var(--ink); }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--ff-head); font-weight: 600; font-size: .86rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: .96rem; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 11px; background: var(--bg-soft); color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(22, 163, 184, .14);
}
.field input.invalid, .field select.invalid { border-color: #e0526b; box-shadow: 0 0 0 4px rgba(224, 82, 107, .12); }
.form-note { font-size: .8rem; color: var(--slate); margin-top: 14px; text-align: center; }
.form-success { margin-top: 14px; text-align: center; color: #12a45f; font-weight: 600; font-family: var(--ff-head); }
.form-error { margin-top: 14px; text-align: center; color: #d0364f; font-weight: 600; font-family: var(--ff-head); line-height: 1.5; }
/* Web3Forms spam honeypot — hidden from real users, bots fill it and get rejected */
.wf-hp { position: absolute !important; left: -9999px; width: 0; height: 0; opacity: 0; overflow: hidden; }
/* "Prefer to pick a time?" row in the contact panel */
.contact-book { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.contact-book span { color: #c9d6e8; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c6db; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text .accent { color: var(--teal-bright); }
.footer-brand .brand-text small { color: rgba(255, 255, 255, .6); }
.footer-brand p { margin: 16px 0 18px; font-size: .92rem; max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; font-family: var(--ff-head); font-weight: 700; font-size: .86rem; transition: background .3s, transform .3s; }
.socials a:hover { background: var(--grad-teal); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .92rem; transition: color .25s; }
.footer-col a:hover { color: var(--teal-bright); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .86rem; color: #8597b3; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Staggered grid entrance (specialties, integrations) — animation clears itself so hover stays snappy */
[data-stagger] > * { opacity: 0; }
[data-stagger] > *.shown { opacity: 1; }
[data-stagger] > *.play { animation: animUp .6s var(--ease) both; }
@keyframes animUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Services accordion: panels slide in from the right, staggered ("across the screen") */
.svc-accordion > .svc-panel.play { animation: svcSlideIn .85s var(--ease) both; }
@keyframes svcSlideIn { from { opacity: 0; transform: translateX(130%); } to { opacity: 1; transform: translateX(0); } }
/* clip the off-screen travel only while animating so there's no horizontal scroll (hover lift stays un-clipped after) */
.svc-accordion:has(.svc-panel.play) { overflow: hidden; }

/* Two-column sections slide in from opposite sides (coverage + testimonial) */
.coverage-grid.reveal, .testi-feature.reveal { opacity: 1; transform: none; }
.coverage-grid .coverage-copy, .testi-feature .testi-photo { opacity: 0; transform: translateX(-48px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.coverage-grid .coverage-panel, .testi-feature .testi-content { opacity: 0; transform: translateX(48px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.coverage-grid.in .coverage-copy, .coverage-grid.in .coverage-panel,
.testi-feature.in .testi-photo, .testi-feature.in .testi-content { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-stagger] > *, .coverage-grid .coverage-copy, .coverage-grid .coverage-panel,
  .testi-feature .testi-photo, .testi-feature .testi-content { opacity: 1 !important; transform: none !important; }
}

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

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

/* Tablet / small laptop */
@media (max-width: 980px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { max-width: 440px; margin-inline: auto; }
  .why-grid, .about-grid, .contact-grid, .trust-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .specialty-grid, .integ-grid { grid-template-columns: repeat(4, 1fr); }
  .about-team { grid-template-columns: repeat(2, 1fr); }
  .trust-head { text-align: center; }
  .about-badge { right: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Services accordion → stacked full-colour cards on touch / small screens */
@media (max-width: 760px) {
  .svc-accordion { flex-direction: column; height: auto; gap: 14px; }
  .svc-panel, .svc-panel.is-open,
  .svc-accordion:hover .svc-panel.is-open, .svc-accordion:hover .svc-panel:hover { flex: none; height: 290px; }
  .svc-photo { filter: none; transform: scale(1); }
  .svc-duotone { opacity: 0; }
  .svc-tab { display: none; }
  .svc-full { opacity: 1; transform: none; pointer-events: auto; }
}

/* Landscape phones / small tablets */
@media (max-width: 680px) {
  html { scroll-padding-top: 76px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .hero { padding: 124px 0 80px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .hero .lead { font-size: 1.04rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 18px 28px; }
  .hero-trust strong { font-size: 1.7rem; }

  /* Floating cards crowd small screens — simplify */
  .hero-visual { max-width: 360px; }
  .mini-card { display: none; }
  .dash-bars { height: 116px; }
  /* Centre the revenue card under the doctor so it can't clip off the left edge
     (margin-based centring leaves the .floaty translateY animation intact) */
  .hero-visual .dash-card { left: 50%; right: auto; margin-left: -145px; width: 290px; bottom: 14px; }

  /* 16px+ form controls stop iOS from zooming in when a field is focused */
  .field input, .field select, .field textarea { font-size: 16px; }

  /* Service / article / CTA-banner buttons stack full-width for even, tappable targets */
  .page-hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .page-hero-actions .btn { width: 100%; }
  /* Trim the tall inner-page hero top padding on phones (still clears bar + nav) */
  .page-hero, .article-hero { padding-top: 128px; }
  .svc-hero-media img { height: 260px; }

  .services-grid, .testi-grid, .field-row, .why-grid { grid-template-columns: 1fr; }
  .trust-media img { aspect-ratio: 16 / 8; }
  .trust-quote { left: 12px; }
  .stat-row, .specialty-grid, .integ-grid { grid-template-columns: repeat(2, 1fr); }
  .why-list li:hover { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* Portrait phones */
@media (max-width: 420px) {
  .container { width: calc(100% - 32px); }
  .brand-text small { letter-spacing: .22em; }
  .card, .contact-form { padding: 22px; }
  .section-head h2 { font-size: 1.6rem; }
  .hero-trust { width: 100%; justify-content: space-between; gap: 12px; }
  .hero-trust li { flex: 1; min-width: 0; }
  .hero-trust strong { font-size: 1.45rem; }
  .hero-trust span { font-size: .76rem; }
  .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .specialty-grid, .integ-grid { grid-template-columns: repeat(2, 1fr); }
  .eyebrow { font-size: .72rem; padding: 7px 13px; }
  /* Keep the revenue card within the narrowest phones */
  .hero-visual .dash-card { width: 260px; margin-left: -130px; padding: 16px; }
  .hero-visual .dash-bars { height: 92px; }
  .coverage-panel { padding: 26px 22px; }
  .coverage-big { font-size: 2.7rem; }
}

/* Make tap targets comfortable on touch devices */
@media (hover: none) and (pointer: coarse) {
  .main-nav a, .mobile-nav a, .footer-col a { padding-block: 12px; }
  .btn { min-height: 46px; }
}
