/* =========================================================
   DentalGrowthWorks — Design System (v3: locked brand kit)
   Brand: DentalGrowthWorks (dentalgrowthworks.com)
   Palette + type per CLAUDE_MASTER_PROMPT.md supplied by the client.
   Gradients are reserved for the logo icon, selected accents, and
   background glows — headings/body/buttons use solid color only.
   ========================================================= */

:root {
  /* Color tokens — locked brand palette */
  --navy-900: #0b3a7a;      /* Deep Navy — primary dark, footer, dark sections */
  --navy-800: #082c5e;      /* darker navy for gradient depth on dark sections */
  --blue-600: #1d71e8;      /* Blue — primary CTA / links */
  --teal-500: #14cdb3;      /* Brand Teal — accent */
  --cyan-500: #10b9d8;      /* Cyan — accent / gradient highlight */
  --ink-900: #0c2c55;       /* Primary Text */
  --slate-600: #66788a;     /* Secondary Text */
  --slate-400: #9aa8b6;
  --surface-50: #f6fafc;    /* Light Background */
  --surface-100: #eaf3f7;
  --white: #ffffff;
  --border-light: #dfe8ee;

  /* Legacy alias names kept so existing component rules keep working */
  --blue-900: var(--navy-900);
  --blue-700: var(--navy-800);
  --blue-500: var(--blue-600);
  --blue-400: var(--cyan-500);
  --amber-500: var(--teal-500);
  --glass-fill: rgba(255, 255, 255, 0.08);
  --glass-fill-strong: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.18);

  /* Dark-section background: mostly solid navy with a subtle brand-color glow,
     not a vivid all-over gradient — gradients stay reserved for accents. */
  --gradient-dark: radial-gradient(85% 60% at 15% 0%, rgba(20,205,179,0.16), transparent 45%), var(--navy-900);
  /* Small gradient accent for icons/illustrations/interactive details only */
  --gradient-accent: linear-gradient(135deg, var(--teal-500), var(--cyan-500) 55%, var(--blue-600) 100%);

  /* Typography — Manrope primary, Inter/Arial fallback */
  --font-heading: 'Manrope', 'Inter', Arial, sans-serif;
  --font-body: 'Manrope', 'Inter', Arial, sans-serif;

  /* Spacing / layout */
  --container-max: 1300px;
  --section-pad-y: clamp(4rem, 8vw, 8.5rem);
  --radius-sm: 10px;
  --radius-md: 22px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.4s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--surface-50);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* Flat/line icon set (see icon() in config.php) — sized per container below, no emoji anywhere on the site. */
.icon { width: 1em; height: 1em; flex-shrink: 0; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Bootstrap grid: widen the xxl container to a 1640px grid (nav + hero) ---------- */
/* bootstrap-grid.min.css ships .container-xxl capped at 1320px with a fixed gutter;
   override both so it matches this site's wider layout and existing padding rhythm. */
.container-xxl {
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}
@media (min-width: 1400px) {
  .container-xxl { max-width: 1640px; }
}
.section { padding: var(--section-pad-y) 0; }
.section--dark { background: var(--gradient-dark); color: var(--white); position: relative; overflow: hidden; }
.section--tint { background: var(--surface-100); }
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.9rem;
}
.section--dark .section-eyebrow { color: var(--blue-400); }
.section-heading {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  max-width: 46rem;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--slate-600);
  max-width: 42rem;
}
.section--dark .section-sub { color: rgba(255,255,255,0.78); }
.section-head { margin-bottom: 3rem; }
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-500); color: var(--white); box-shadow: 0 8px 20px -8px rgba(59,99,245,0.55); }
.btn-primary:hover { background: var(--blue-600); }
/* On dark sections (footer-adjacent panels, featured-case, audit panel) the primary CTA flips to a white pill */
.section--dark .btn-primary { background: var(--white); color: var(--navy-900); box-shadow: 0 8px 20px -8px rgba(11,21,80,0.35); }
.section--dark .btn-primary:hover { background: var(--surface-100); }
.btn-secondary { background: transparent; color: var(--ink-900); border-color: var(--border-light); }
.btn-secondary:hover { border-color: var(--blue-600); color: var(--blue-600); }
.section--dark .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.4); }
.section--dark .btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
/* Hero has a dark (navy gradient) background but isn't marked .section--dark, so its outline
   ("secondary") button needs the light-on-dark treatment directly — otherwise its text/border
   render dark-on-dark and are unreadable (the primary blue button is already fine as-is). */
.btn-tertiary { background: transparent; color: var(--blue-500); padding-left: 0; padding-right: 0; }
.btn-tertiary:hover { color: var(--blue-700); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: var(--blue-900);
  color: var(--white);
  text-align: center;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
}
.announcement-bar a { text-decoration: underline; text-underline-offset: 3px; color: var(--blue-400); }

/* ---------- Header / nav (floating glass pill) ---------- */
/* Width/centering now comes from the .container-xxl wrapper inside (1640px grid); the
   header itself only needs the sticky/spacing behavior. */
.site-header {
  position: sticky;
  top: 0.85rem;
  z-index: 100;
  margin-top: 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0.65rem 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 20px -16px rgba(11,58,122,0.25);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.logo { display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
.logo-img { display: block; height: 38px; width: auto; }
@media (max-width: 480px) {
  .logo-img { height: 30px; }
  .nav-inner { padding: 0.55rem 0.55rem 0.55rem 1rem; gap: 0.5rem; }
}
.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
}
.footer-logo-chip .logo-img { height: 30px; }
@media (max-width: 480px) {
  .footer-logo-chip { padding: 0.4rem 0.7rem; }
  .footer-logo-chip .logo-img { height: 24px; }
}
.nav-links { display: flex; gap: 1.9rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.93rem; font-weight: 600; color: var(--ink-900); transition: color var(--dur) var(--ease); }
.nav-links a:hover { color: var(--blue-600); }
.nav-phone { transition: color var(--dur) var(--ease); color: var(--ink-900); }
.menu-toggle { transition: color var(--dur) var(--ease); color: var(--ink-900); }

/* ---------- Nav dropdowns (Services / Who We Help) ---------- */
.nav-links li.has-dropdown { position: relative; }
.nav-link-toggle {
  display: flex; align-items: center; gap: 0.35rem; background: none; border: none;
  font-size: 0.93rem; font-weight: 600; color: var(--ink-900); font-family: inherit; padding: 0;
  transition: color var(--dur) var(--ease);
}
.nav-link-toggle:hover { color: var(--blue-600); }
.nav-link-toggle .chevron { font-size: 0.8rem; transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); color: var(--slate-400); }
.has-dropdown.is-open .nav-link-toggle .chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 0.9rem); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius-md); box-shadow: 0 20px 45px -20px rgba(11,21,80,0.35);
  padding: 0.6rem; display: grid; gap: 0.15rem; min-width: 15rem;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.has-dropdown.is-open .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown a { display: block; padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; color: var(--ink-900); white-space: nowrap; }
.nav-dropdown a:hover { background: var(--surface-100); color: var(--blue-600); }
@media (max-width: 960px) {
  .nav-link-toggle { color: var(--white); font-size: 1.2rem; }
  .nav-link-toggle .chevron { color: rgba(255,255,255,0.6); }
  .nav-dropdown { position: static; transform: none; box-shadow: none; background: rgba(255,255,255,0.06); margin-top: 0.5rem; min-width: 0; opacity: 1; visibility: visible; pointer-events: auto; display: none; }
  .has-dropdown.is-open .nav-dropdown { display: grid; }
  .nav-dropdown a { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
  .nav-dropdown a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
}

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-phone { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.88rem; color: var(--ink-900); }
.menu-toggle { display: none; background: none; border: none; color: var(--ink-900); font-size: 1.1rem; }
/* Header CTA is a solid blue pill at all times — the header is always light, never sits on a dark hero. */
.nav-cta .btn-primary { background: var(--blue-600); color: var(--white); box-shadow: 0 8px 20px -8px rgba(29,113,232,0.4); }
.nav-cta .btn-primary:hover { background: var(--navy-900); }

/* ---------- Scrolled header state: slightly more compact + stronger border, same light look ---------- */
.site-header.is-scrolled .nav-inner {
  background: rgba(255,255,255,0.97);
  border-color: var(--border-light);
  box-shadow: 0 10px 30px -14px rgba(11,58,122,0.22);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (max-width: 960px) {
  /* backdrop-filter on .nav-inner establishes a CSS containing block for fixed-position
     descendants — without dropping it here, .nav-links (position: fixed) would be
     positioned relative to the small nav pill instead of the viewport. */
  .nav-inner { backdrop-filter: none; }
  .nav-links { position: fixed; inset: 0 0 0 30%; background: var(--gradient-dark); flex-direction: column; justify-content: center; align-items: flex-start; padding: 2rem; gap: 1.75rem; transform: translateX(100%); transition: transform var(--dur) var(--ease); }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { color: var(--white); font-size: 1.2rem; }
  .menu-toggle { display: block; }
  .nav-phone { display: none; }
  .nav-cta { gap: 0.5rem; }
  .nav-cta .btn-primary { padding: 0.7rem 1.1rem; font-size: 0.85rem; }
}
@media (max-width: 380px) {
  .nav-cta .btn-primary span.full { display: none; }
}

/* ---------- Hero (shared render_page_hero() used across inner pages) ---------- */
.site-header + main .hero:first-child {
  margin-top: -5.75rem;
  padding-top: calc(clamp(3rem, 8vw, 6rem) + 5.75rem);
}
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 8rem);
  background: var(--gradient-dark);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.hero .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.4); }
.hero .btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--glass-fill); border: 1px solid var(--glass-border); backdrop-filter: blur(6px);
  border-radius: var(--radius-pill); padding: 0.4rem 0.4rem 0.4rem 1.1rem; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 1.75rem; color: rgba(255,255,255,0.9);
}
.hero-badge-lede { white-space: nowrap; }
.hero-badge-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white); color: var(--ink-900); border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
}
.hero-badge-stars { display: inline-flex; gap: 0.1rem; color: var(--amber-500); }
.hero-badge-stars .icon { width: 0.8rem; height: 0.8rem; }
.hero-badge-chip-note { color: var(--slate-600); font-weight: 600; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 800; max-width: 92rem; margin-left: auto; margin-right: auto; }
.hero-lede { font-size: 1.2rem; color: rgba(255,255,255,0.82); max-width: 38rem; margin: 0 auto 2.25rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; justify-content: center; }
.trust-strip { display: flex; gap: 1.75rem; flex-wrap: wrap; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.85); justify-content: center; list-style: none; }
.trust-strip li { display: flex; align-items: center; gap: 0.4rem; }
.trust-strip li::before { content: '\2713'; color: var(--blue-400); }

/* ---------- Growth stats section (separate white section below hero, DreamX-style) ---------- */
.stats-section { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.stats-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .stats-layout { grid-template-columns: 1fr; } }
.stats-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 34rem; margin-bottom: 2rem; }
.stats-copy h2 .hl { color: var(--blue-500); }
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem;
}
.stat-cell {
  background: var(--surface-50); border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 1.75rem;
}
.stat-cell .stat-label { font-size: 0.85rem; font-weight: 500; color: var(--slate-600); margin-bottom: 1.25rem; }
.stat-cell .stat-value { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--blue-500); margin-bottom: 0.6rem; }
.stat-cell .stat-note { font-size: 0.9rem; line-height: 1.5; color: var(--slate-600); }

/* ---------- Growth stats visual: video-style placeholder (never a fabricated photo/person) ---------- */
.stats-visual { display: flex; }
.stats-video {
  position: relative; width: 100%; align-self: stretch; min-height: 39rem;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 20px 45px -24px rgba(11,21,80,0.35);
}
.stats-video .img-placeholder { position: absolute; inset: 0; }
.stats-video-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stats-video-play {
  position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 2;
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--white); color: var(--ink-900);
  display: flex; align-items: center; justify-content: center; border: none;
  box-shadow: 0 12px 28px -10px rgba(11,21,80,0.5);
  transition: transform var(--dur) var(--ease);
}
.stats-video-play:hover { transform: scale(1.06); }
.stats-video-play .icon { width: 1rem; height: 1rem; }
.stats-video-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 2.5rem 1.5rem 1.25rem; color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(11,21,80,0.6) 75%);
}
.stats-video-caption strong { display: block; font-size: 1.05rem; }
.stats-video-caption span { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.8); margin-top: 0.2rem; }

/* ---------- Placeholder media block ---------- */
.media-block {
  background: var(--surface-100);
  border: 1px dashed var(--slate-400);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-600);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  min-height: 180px;
}

/* ---------- Image placeholder (reusable — see img_placeholder() in config.php) ---------- */
/* Marks every spot a real photo/screenshot will go once the client uploads one; swap for an <img> when ready. */
.img-placeholder {
  width: 100%; height: 100%; min-height: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; text-align: center; padding: 1.5rem;
}
.img-placeholder-icon { display: flex; opacity: 0.55; color: var(--slate-600); }
.img-placeholder-icon .icon { width: 1.6rem; height: 1.6rem; }
.img-placeholder-label { font-size: 0.85rem; font-weight: 600; color: var(--slate-600); }
.img-placeholder-spec { font-size: 0.72rem; color: var(--slate-500, var(--slate-600)); opacity: 0.8; }
/* On dark/gradient backgrounds (featured case, the "after" panel) the placeholder text needs to stay legible;
   .ba-before keeps the default dark-on-light styling since its background is light (var(--surface-100)). */
.featured-case-media .img-placeholder-label,
.ba-after .img-placeholder-label { color: rgba(255,255,255,0.85); }
.featured-case-media .img-placeholder-spec,
.ba-after .img-placeholder-spec { color: rgba(255,255,255,0.6); }
.featured-case-media .img-placeholder-icon,
.ba-after .img-placeholder-icon { opacity: 0.75; }

/* ---------- Problem section (checklist + the-problem.png as the section's own background image) ---------- */
/* Baseline sizing here (not just on .reveal-pending.is-visible) so it's still correct for
   prefers-reduced-motion / no-IntersectionObserver visitors, who never get those classes at all. */
.problem-section { background-position: center right; background-repeat: no-repeat; background-size: contain; }
.problem-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .problem-layout { grid-template-columns: 1fr; } }
.problem-list { list-style: none; display: grid; gap: 1rem; margin-top: 1.5rem; }
.problem-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1.02rem; }
.problem-list li::before { content: '×'; color: var(--amber-500); font-weight: 700; font-size: 1.1rem; line-height: 1.5; }

/* ---------- Pillars (Core System) — glass cards on gradient ---------- */
.pillar-card {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pillar-card:hover { background: var(--glass-fill-strong); transform: translateY(-3px); }
.pillar-num { font-family: var(--font-heading); font-size: 0.85rem; color: var(--blue-400); font-weight: 700; letter-spacing: 0.08em; margin-bottom: 1rem; display: block; }
.pillar-card h3 { font-size: 1.3rem; margin-bottom: 0.9rem; color: var(--white); }
.pillar-card ul { list-style: none; display: grid; gap: 0.4rem; color: rgba(255,255,255,0.78); font-size: 0.92rem; }

/* ---------- Featured Work carousel (replaces the old pillar/core-system grid, DreamX-inspired) ---------- */
/* Near-black canvas with faint diagonal streaks — deliberately NOT the site's blue --gradient-dark,
   matching the reference's own distinct showcase treatment. Text stays on this plain canvas; only
   the device mockup floats on top, tilted — the two are separate layers, not text-over-image. */
.featured-work-section {
  background: #050608;
  position: relative;
  overflow: hidden;
  height: 100vh;
}
.featured-work-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(115deg, rgba(111,140,255,0.1) 0px, rgba(111,140,255,0.1) 1px, transparent 1px, transparent 64px);
  -webkit-mask-image: radial-gradient(130% 90% at 15% 100%, #000 0%, transparent 65%);
  mask-image: radial-gradient(130% 90% at 15% 100%, #000 0%, transparent 65%);
}
/* Full-width container for this section only — no max-width cap, so heading/text/controls span
   edge-to-edge with the full-bleed image behind them instead of being boxed to the site's 1280px container. */
.featured-work-container { width: 100%; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* Overlays the top of the full-bleed image (mirrors .featured-carousel-foot pinned to the bottom) */
.featured-work-top {
  position: absolute; top: clamp(1.5rem, 3vw, 2.5rem); left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.featured-work-top .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }
.featured-work-top .btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.12); }

.featured-carousel { position: relative; z-index: 1; height: 100%; }

/* Full-bleed background image (100% width/height of the stage, which is the full 100vh section) — text/controls overlay on top with a scrim */
.featured-carousel-device { position: relative; width: 100%; height: 100%; overflow: hidden; }
.featured-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.featured-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.featured-slide-img, .featured-slide-placeholder { width: 100%; height: 100%; }
.featured-slide-img { object-fit: cover; object-position: center -120px; }
.featured-slide-placeholder .img-placeholder { min-height: 100%; }
.featured-carousel-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,6,8,0) 0%, rgba(5,6,8,0.1) 35%, rgba(5,6,8,0.88) 75%, rgba(5,6,8,0.97) 100%);
}

/* Text + controls, overlaid on the image at the bottom of the stage */
.featured-carousel-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.featured-carousel-text { position: relative; flex: 1; min-width: 16rem; min-height: 9rem; }
.featured-slide-info {
  position: absolute; left: 0; bottom: 0; max-width: 34rem;
  opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.featured-slide-info.is-active { opacity: 1; visibility: visible; }
.featured-slide-info h3 { color: var(--white); font-size: 1.7rem; margin: 0.6rem 0 0.5rem; }
.featured-slide-info p { color: rgba(255,255,255,0.7); margin: 0; }
.featured-slide-info .case-badge { background: var(--glass-fill); color: var(--white); border: 1px solid var(--glass-border); }

.featured-work-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.featured-work-tags span {
  font-size: 0.78rem; font-weight: 600; color: var(--white); background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border); padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
}

.featured-carousel-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; flex-shrink: 0; }
.featured-thumbs { display: flex; gap: 0.6rem; max-width: 38rem; overflow-x: auto; }
.featured-thumb {
  flex-shrink: 0; width: 5rem; height: 3rem; border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,0.06); border: 2px solid transparent; padding: 0; cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.featured-thumb.is-active { border-color: var(--white); }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-thumb-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); }
.featured-thumb-fallback .icon { width: 1.1rem; height: 1.1rem; }

.featured-carousel-nav { display: flex; align-items: center; gap: 0.75rem; }
.featured-dots { display: flex; gap: 0.4rem; }
.featured-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: rgba(255,255,255,0.3); transition: background var(--dur) var(--ease), width var(--dur) var(--ease); }
.featured-dot.is-active { background: var(--white); width: 1.1rem; border-radius: var(--radius-pill); }
.featured-arrow {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); flex-shrink: 0;
}
.featured-arrow:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.featured-arrow .icon { width: 1.1rem; height: 1.1rem; }
@media (max-width: 640px) {
  .featured-slide-info { max-width: none; }
  .featured-carousel-foot { flex-direction: column; align-items: stretch; }
  .featured-carousel-controls { align-items: stretch; }
  .featured-carousel-nav { justify-content: space-between; }
}

/* ---------- Cards (services / specialties) — soft rounded, shadow not border ---------- */
.card {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: 0 12px 30px -20px rgba(11,21,80,0.25);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { box-shadow: 0 20px 40px -18px rgba(11,21,80,0.3); transform: translateY(-3px); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card p { color: var(--slate-600); font-size: 0.96rem; margin-bottom: 1rem; }
.card-link { font-weight: 600; font-size: 0.92rem; color: var(--blue-500); }
.card-link:hover { color: var(--blue-700); }

/* ---------- Why dental-specific list ---------- */
.checklist { list-style: none; display: grid; gap: 0.9rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } }
.checklist li { display: flex; gap: 0.6rem; font-size: 0.98rem; }
.checklist li::before { content: '✓'; color: var(--blue-500); font-weight: 700; }
.compliance-note { margin-top: 2rem; font-size: 0.88rem; color: var(--slate-600); border-left: 3px solid var(--blue-500); padding-left: 1rem; }

/* ---------- Why Dental-Specific — icon-card grid (replaces the plain 2-col checklist) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .why-grid { grid-template-columns: 1fr; } }
.why-tile {
  background: var(--white); border-radius: var(--radius-md); padding: 1.5rem 1.25rem;
  box-shadow: 0 12px 30px -22px rgba(11,21,80,0.25); display: flex; flex-direction: column; gap: 0.9rem;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.why-tile:hover { box-shadow: 0 20px 40px -18px rgba(11,21,80,0.3); transform: translateY(-3px); }
.why-tile-icon {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); background: var(--surface-100);
  display: flex; align-items: center; justify-content: center; color: var(--blue-500); flex-shrink: 0;
}
.why-tile-icon .icon { width: 1.15rem; height: 1.15rem; }
.why-tile-label { font-size: 0.92rem; font-weight: 600; color: var(--ink-900); line-height: 1.4; }

/* ---------- Treatment SEO architecture diagram ---------- */
.seo-tree { display: flex; flex-direction: column; gap: 0; margin-top: 2.5rem; }
.seo-tree .tier { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 0; }
.seo-tree .tier + .tier { border-top: 1px dashed var(--border-light); }
.seo-tree .tag {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 1.1rem; border-radius: var(--radius-pill); background: var(--surface-100); color: var(--blue-700);
}
.seo-tree .tier:nth-child(1) .tag { background: var(--blue-900); color: var(--white); }
.seo-tree .tier:nth-child(2) .tag { margin-left: 2rem; }
.seo-tree .tier:nth-child(3) .tag { margin-left: 4rem; }
.seo-tree .tier:nth-child(4) .tag { margin-left: 6rem; background: var(--amber-500); color: var(--white); }
.seo-tree .arrow { color: var(--slate-400); }

/* ---------- AI search logos row ---------- */
.engine-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.engine-pill { border: 1px solid var(--glass-border); border-radius: var(--radius-pill); padding: 0.5rem 1.1rem; font-size: 0.88rem; font-weight: 600; color: var(--white); background: var(--glass-fill); }

/* ---------- Case studies ---------- */
.case-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 12px 30px -20px rgba(11,21,80,0.25); }
.case-card .media-block { border-radius: 0; border: none; aspect-ratio: 16/9; }
.case-card .media-block:has(.concept-media) { aspect-ratio: 4/3; }
.case-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--surface-100); color: var(--blue-700); padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); margin-bottom: 0.9rem;
}
.case-body { padding: 1.75rem; }
.case-stages { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem; font-weight: 600; color: var(--slate-600); margin-bottom: 1rem; }
.case-stages span:not(:last-child)::after { content: '→'; margin-left: 0.5rem; color: var(--slate-400); }

/* ---------- Concept/illustrative images (final asset pass) ---------- */
/* Wraps a <picture> rendered by concept_image() so it fills its container the
   same way img-placeholder used to, plus a small muted caption underneath for
   content-integrity labeling (Illustrative Example / Concept Preview / etc). */
.concept-media { position: relative; width: 100%; }
.concept-media picture, .concept-media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.concept-media--contain img { object-fit: contain; background: var(--surface-100); }
.concept-media:hover img { transform: translateY(-2px); transition: transform 0.25s ease; }

/* ---------- Behind the build: project showcase video ---------- */
.showcase-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .showcase-layout { grid-template-columns: 1fr; } }
.showcase-copy .section-eyebrow { display: block; margin-bottom: 0.6rem; }
.showcase-copy .section-heading { margin-bottom: 0.9rem; }
.showcase-copy .section-sub { margin-bottom: 1.5rem; }
.showcase-points { list-style: none; display: grid; gap: 0.9rem; margin: 0; padding: 0; }
.showcase-points li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; color: var(--slate-600); }
.showcase-points li .icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; margin-top: 0.15rem; color: var(--blue-500); }
.showcase-video-wrap { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 20px 45px -24px rgba(11,21,80,0.28); background: var(--surface-100); }
.showcase-video { display: block; width: 100%; height: 100%; max-height: 32rem; object-fit: cover; background: #000; }

/* ---------- Before/after slider ---------- */
.ba-slider { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 20px 45px -24px rgba(11,21,80,0.28); }
.ba-slider .ba-before, .ba-slider .ba-after {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-heading);
}
.ba-slider .ba-before { background: var(--surface-100); color: var(--slate-600); }
.ba-slider .ba-after { background: linear-gradient(135deg, var(--blue-400), var(--blue-700)); color: var(--white); clip-path: inset(0 0 0 50%); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--white); cursor: ew-resize;
}
.ba-handle::after {
  content: '⇔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--blue-500); color: var(--white); width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: 0 8px 20px -8px rgba(59,99,245,0.55);
}
.ba-labels { display: flex; justify-content: space-between; margin-top: 0.75rem; font-size: 0.82rem; font-weight: 600; color: var(--slate-600); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: stretch; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; } }
.pricing-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 2.25rem 1.85rem; box-shadow: 0 12px 30px -20px rgba(11,21,80,0.25);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pricing-card:hover { box-shadow: 0 20px 40px -18px rgba(11,21,80,0.3); transform: translateY(-3px); }
.pricing-card--featured {
  background: var(--gradient-dark); border-color: transparent; color: var(--white);
  box-shadow: 0 24px 50px -20px rgba(8,44,94,0.45);
  transform: scale(1.03);
}
@media (max-width: 960px) { .pricing-card--featured { transform: none; } }
.pricing-card--featured:hover { transform: scale(1.03) translateY(-3px); }
@media (max-width: 960px) { .pricing-card--featured:hover { transform: translateY(-3px); } }
.pricing-badge {
  position: absolute; top: -0.9rem; left: 50%; transform: translateX(-50%);
  background: var(--gradient-accent); color: var(--navy-900); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px -8px rgba(20,205,179,0.55);
}
.pricing-card-head h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 0.4rem; }
.pricing-card-audience { font-size: 0.9rem; color: var(--slate-600); min-height: 2.6em; }
.pricing-card--featured .pricing-card-audience { color: rgba(255,255,255,0.75); }
.pricing-card-price { margin: 1.5rem 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); }
.pricing-card--featured .pricing-card-price { border-bottom-color: rgba(255,255,255,0.18); }
.pricing-amount { display: block; font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; line-height: 1.1; color: var(--ink-900); }
.pricing-card--featured .pricing-amount { color: var(--white); }
.pricing-note { display: block; margin-top: 0.35rem; font-size: 0.82rem; color: var(--slate-600); }
.pricing-card--featured .pricing-note { color: rgba(255,255,255,0.65); }
.pricing-features { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 1.75rem; flex-grow: 1; }
.pricing-features li { display: flex; gap: 0.6rem; font-size: 0.92rem; line-height: 1.4; }
.pricing-features li::before { content: '✓'; color: var(--blue-500); font-weight: 700; flex-shrink: 0; }
.pricing-card--featured .pricing-features li::before { color: var(--teal-500); }
.pricing-card--featured .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.4); }
.pricing-card--featured .btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ---------- Trust ---------- */
/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 800px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
.trust-item { padding: 1.75rem 1.25rem; background: var(--white); border-radius: var(--radius-md); box-shadow: 0 12px 30px -20px rgba(11,21,80,0.22); }
.trust-item strong { display: block; font-family: var(--font-heading); font-size: 1rem; margin-bottom: 0.4rem; color: var(--blue-700); }
.trust-item span { font-size: 0.85rem; color: var(--slate-600); }

/* ---------- Process (horizontal icon-column layout, replaces the old stacked numbered list) ---------- */
.process-head { text-align: center; }
.process-head .section-heading, .process-head .section-sub { margin-left: auto; margin-right: auto; }
.process-head .section-eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; }
.process-head .section-eyebrow .icon { width: 0.85rem; height: 0.85rem; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; margin-top: 1rem; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

.process-col { text-align: left; }
.process-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--surface-100); color: var(--blue-500);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem;
}
.process-icon .icon { width: 1.5rem; height: 1.5rem; }
.process-line { display: block; width: 2px; height: 2rem; background: var(--border-light); margin: 0 0 1rem 1.75rem; }
.process-col h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.process-col p { color: var(--slate-600); margin: 0 0 0.9rem; font-size: 0.95rem; }
.process-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; color: var(--blue-500); }
.process-link .icon { width: 0.9rem; height: 0.9rem; }
.process-link:hover { color: var(--blue-700); }

/* ---------- Specialties ---------- */
.specialty-chip {
  display: block; padding: 1.1rem 1.4rem; border-radius: var(--radius-sm);
  background: var(--white); box-shadow: 0 10px 24px -18px rgba(11,21,80,0.25);
  font-weight: 600; font-size: 0.95rem; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.specialty-chip:hover { background: var(--blue-500); color: var(--white); transform: translateY(-2px); }

/* ---------- Lead form (icon-row benefits + form floated in its own white card) ---------- */
.audit-panel { background: var(--gradient-dark); color: var(--white); border-radius: var(--radius-md); padding: clamp(2rem, 5vw, 3.5rem); }
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .audit-grid { grid-template-columns: 1fr; } }
.audit-benefits { list-style: none; display: grid; gap: 1rem; margin-top: 1.75rem; }
.audit-benefits li { display: flex; align-items: center; gap: 0.85rem; color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.audit-benefit-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--glass-fill); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center; color: var(--blue-400); flex-shrink: 0;
}
.audit-benefit-icon .icon { width: 1rem; height: 1rem; }

.audit-form-card { background: var(--white); border-radius: var(--radius-md); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 30px 60px -25px rgba(0,0,0,0.4); }
.form-row { display: grid; gap: 1rem; }
.form-row input {
  width: 100%; padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border-light);
  background: var(--surface-50); color: var(--ink-900); font-family: inherit; font-size: 0.95rem;
}
.form-row input:focus { outline: 2px solid var(--blue-400); outline-offset: 1px; }
.form-note { font-size: 0.78rem; color: var(--slate-600); margin-top: 0.75rem; }

/* ---------- FAQ (split layout: sticky heading + accordion list, replaces the old single narrow column) ---------- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-head { position: sticky; top: 6rem; }
.faq-head .section-heading { max-width: none; }
.faq-head-link { color: var(--blue-500); font-weight: 600; }
.faq-head-link:hover { color: var(--blue-700); }
@media (max-width: 900px) { .faq-head { position: static; } }

.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 1.35rem 0; display: flex;
  justify-content: space-between; align-items: center; font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--ink-900);
}
.faq-q .icon { transition: transform var(--dur) var(--ease); color: var(--blue-500); font-size: 1.3rem; }
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.faq-a p { color: var(--slate-600); padding-bottom: 1.35rem; margin: 0; max-width: 42rem; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .section-heading, .final-cta .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.8); padding: 2rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-grid h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: 0.6rem; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--blue-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--blue-900); padding: 0.75rem 1rem; gap: 0.75rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.mobile-cta-bar a { flex: 1; text-align: center; }
@media (max-width: 720px) { .mobile-cta-bar { display: flex; } body { padding-bottom: 4.25rem; } }

/* ---------- Scroll reveal ---------- */
.reveal-pending { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-pending.is-visible {
  opacity: 1;
  transform: none;
  background-position: center right -100px;
  background-repeat: no-repeat;
  background-size: contain;
}

/* =========================================================
   v3 additions — DreamX-inspired structural patterns
   ========================================================= */

/* ---------- Logo marquee (specialty text version, and the real insurance-logo version below) ---------- */
.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: marquee 28s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-track span {
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--slate-400);
  white-space: nowrap; display: flex; align-items: center; gap: 0.5rem;
}
.marquee-track span::before { content: '•'; color: var(--blue-400); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Real insurance-provider logos (see /assets/images/trusted-logo) */
.logo-marquee-section { background: #fff; }
.logo-marquee-label {
  text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--slate-600);
  max-width: 34rem; margin: 0 auto 2rem;
}
.marquee-track--logos { gap: 3rem; align-items: center; animation-duration: 40s; }
.marquee-track--logos span { display: block; }
.marquee-track--logos span::before { content: none; }
.marquee-track--logos img {
  height: 2rem; width: auto; max-width: 9rem; object-fit: contain; opacity: 1;
}

/* ---------- Service groups (icon panel + grouped sub-list, DreamX pattern) ---------- */
.service-group { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: stretch; margin-bottom: 1.75rem; }
@media (max-width: 860px) { .service-group { grid-template-columns: 1fr; } }
.service-group-art {
  border-radius: var(--radius-md); background: var(--gradient-dark); position: relative; overflow: hidden;
  min-height: 200px;
}
.service-group-art img { width: 100%; height: 100%; object-fit: cover; }
.service-group-body { background: var(--white); border-radius: var(--radius-md); padding: 1.75rem 2rem; box-shadow: 0 12px 30px -22px rgba(11,21,80,0.25); }
.service-group-body h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.service-group-body > p { color: var(--slate-600); max-width: 44rem; margin-bottom: 1.5rem; }
.service-sublist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (max-width: 640px) { .service-sublist { grid-template-columns: 1fr; } }
.service-sublist a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.95rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface-50);
  font-weight: 600; font-size: 0.94rem; color: var(--ink-900);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.service-sublist a:hover { background: var(--blue-500); color: var(--white); }
.service-sublist a .arrow-icon { color: var(--blue-500); transition: color var(--dur) var(--ease); }
.service-sublist a:hover .arrow-icon { color: var(--white); }

/* ---------- Differentiator tiles ("why clients choose us") ---------- */
.differentiator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .differentiator-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .differentiator-grid { grid-template-columns: 1fr; } }
.differentiator-tile { padding: 1.75rem; }
.differentiator-tile .diff-icon {
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm); background: var(--surface-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; color: var(--blue-500);
}
.differentiator-tile .diff-icon .icon { width: 1.3rem; height: 1.3rem; }
.differentiator-tile h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.differentiator-tile p { color: var(--slate-600); font-size: 0.9rem; margin: 0; }

/* ---------- Featured case study spotlight ---------- */
.featured-case { background: var(--gradient-dark); border-radius: var(--radius-md); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .featured-case { grid-template-columns: 1fr; } }
.featured-case-body { padding: clamp(2rem, 4vw, 3.25rem); color: var(--white); }
.featured-case-body .case-badge { background: var(--glass-fill); color: var(--white); border: 1px solid var(--glass-border); }
.featured-case-body h3 { font-size: 1.6rem; color: var(--white); }
.featured-case-body p { color: rgba(255,255,255,0.8); }
.featured-case-body .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.4); }
.featured-case-body .btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.featured-case-media { background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 0.85rem; min-height: 220px; }

/* ---------- Interactive specialty list + preview ---------- */
.specialty-interactive { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; }
@media (max-width: 860px) { .specialty-interactive { grid-template-columns: 1fr; } }
.specialty-list { display: grid; gap: 0.4rem; }
.specialty-list button {
  display: block; width: 100%; text-align: left; padding: 0.95rem 1.2rem; border-radius: var(--radius-sm);
  background: transparent; border: none; font-weight: 600; font-size: 1rem; color: var(--slate-600);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.specialty-list button:hover { background: var(--surface-100); color: var(--ink-900); }
.specialty-list button.is-active { background: var(--blue-500); color: var(--white); }
.specialty-preview {
  background: var(--gradient-dark); border-radius: var(--radius-md); padding: clamp(2rem, 4vw, 3rem);
  color: var(--white); display: flex; align-items: center; gap: 2rem; min-height: 260px;
}
.specialty-preview-body { flex: 1.1; min-width: 0; }
.specialty-preview h3 { font-size: 1.6rem; }
.specialty-preview p { color: rgba(255,255,255,0.82); max-width: 32rem; }
.specialty-preview-media { flex: 0.9; min-width: 0; align-self: stretch; }
.specialty-preview-media .img-placeholder { aspect-ratio: 4 / 3; min-height: 12rem; background: rgba(255,255,255,0.06); border: 1px dashed rgba(255,255,255,0.3); border-radius: var(--radius-sm); }
.specialty-preview-media .img-placeholder-label { color: rgba(255,255,255,0.9); }
.specialty-preview-media .img-placeholder-spec { color: rgba(255,255,255,0.6); }
@media (max-width: 700px) { .specialty-preview { flex-direction: column; } .specialty-preview-media { width: 100%; } }
