/* =========================================================
   Apex Dental — Homepage v2
   Editorial style: light uppercase display type with bold
   accents (echoing the APEX / DENTAL wordmark), sharp edges,
   big photography.  Brand: navy #012147 · blue #3689E0 · ice #E1F1FE
   ========================================================= */

:root {
  --navy: #012147;
  --navy-2: #0A1850;
  --royal: #1F4FA0;
  --blue: #3689E0;
  --sky: #E1F1FE;
  --ice: #F3F8FE;
  --white: #fff;
  --ink: #0B1B33;
  --body: #42526B;
  --muted: #74839A;
  --line: #D9E4F2;
  --line-dark: rgba(255,255,255,.14);
  --grad: linear-gradient(100deg, #0A1850 0%, #1F4FA0 55%, #3279CC 100%);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1280px;
  --gutter: clamp(18px, 4vw, 48px);
  --section: clamp(60px, 7vw, 100px);
  --header-h: 78px;
  --top-h: 40px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; font-family: var(--font-body); font-size: clamp(16px, 1.05vw, 17px); line-height: 1.7;
  color: var(--body); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; padding: 10px 16px; background: var(--navy); color: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }

/* Display type: light uppercase with a bold accent — like the logo */
.display {
  font-family: var(--font-head); font-weight: 300; text-transform: uppercase;
  font-size: clamp(36px, 5vw, 76px); line-height: 1.02; letter-spacing: -.01em; color: var(--navy);
}
.display b { font-weight: 700; }
.kicker {
  margin: 18px 0 0; font: 600 13px/1.5 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--blue);
}
.on-dark .display, .on-dark h3 { color: #fff; }
.on-dark { color: rgba(255,255,255,.78); }
.on-dark .kicker { color: #8CC0F5; }

/* ---------- Buttons (sharp, uppercase, sweep fill) ---------- */
.btn {
  --bg: var(--navy); --fg: #fff; --sweep: var(--blue);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; background: var(--bg); color: var(--fg); isolation: isolate; overflow: hidden;
  font: 700 13px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; max-width: 100%;
  transition: color .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sweep); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .icon { transition: transform .4s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(5px); }
.btn-outline { --bg: transparent; --fg: var(--navy); --sweep: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-outline:hover { color: #fff; }
.btn-white { --bg: #fff; --fg: var(--navy); --sweep: var(--sky); }
.btn-ghost-white { --bg: transparent; --fg: #fff; --sweep: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn-blue { --bg: var(--blue); --sweep: var(--navy); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 12px; }
.link-line { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.link-line:hover { color: var(--blue); background-size: 40% 1.5px; }

/* ---------- Placeholder & temp-image markers ---------- */
.ph-on .ph { outline: 2px dashed #F59E0B; outline-offset: 3px; background-color: rgba(245, 158, 11, .1); }
.ph-on .btn.ph { background-color: var(--bg); }
.ph-on .ph[data-ph]::after {
  content: attr(data-ph); display: inline-block; margin-left: 6px; padding: 1px 6px; vertical-align: middle;
  font: 700 10px/1.6 var(--font-body); letter-spacing: .04em; text-transform: none; color: #7C4A03; background: #FDE68A; -webkit-text-fill-color: #7C4A03;
}
.ph-on [data-temp]::before {
  content: "TEMP IMG"; position: absolute; z-index: 6; top: 10px; right: 10px; padding: 3px 8px;
  font: 700 10px/1.4 var(--font-body); letter-spacing: .08em; color: #7C4A03; background: #FDE68A; pointer-events: none;
}
.ph-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  font: 600 12px/1 var(--font-body); color: #7C4A03; background: #FEF3C7; border: 1px solid #FCD34D; box-shadow: 0 10px 30px -10px rgba(1,33,71,.3);
}
.ph-toggle span { width: 8px; height: 8px; border-radius: 50%; background: #D97706; }
.ph-toggle[aria-pressed="false"] { color: var(--muted); background: #fff; border-color: var(--line); }
.ph-toggle[aria-pressed="false"] span { background: #CBD5E1; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: #fff; }
.is-loading .loader { display: grid; }
.is-loading body { overflow: hidden; }
.loader-logo { display: grid; justify-items: center; width: min(78vw, 420px); }
.loader-mark {
  width: 46%; margin-bottom: 8%;
  -webkit-mask-image: linear-gradient(120deg, #000 42%, transparent 58%); mask-image: linear-gradient(120deg, #000 42%, transparent 58%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-position: var(--p, 100%) 0; mask-position: var(--p, 100%) 0;
}
.loader-clip { overflow: hidden; width: 100%; }
.loader-word { width: 100%; }
.loader-tag { width: 64%; margin-top: 5%; }

/* ---------- Top bar & header ---------- */
.topbar { position: sticky; top: 0; z-index: 81; height: var(--top-h); background: var(--navy); color: rgba(255,255,255,.8); font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.topbar-list { display: flex; align-items: center; gap: 26px; }
.topbar-list li, .topbar-list a { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; color: var(--blue); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.status-dot.closed { background: #F87171; box-shadow: 0 0 0 4px rgba(248,113,113,.18); }

.header { position: sticky; top: var(--top-h); z-index: 80; height: var(--header-h); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .4s, box-shadow .4s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(1,33,71,.35); }
.header .container { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand img { width: clamp(180px, 16vw, 236px); }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; font: 600 13px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); white-space: nowrap; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 1.5px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-list > li:hover > .nav-link::after { transform: scaleX(1); transform-origin: left; }
.nav-link .chev { width: 13px; height: 13px; }
.dropdown { position: absolute; top: calc(100% + 14px); left: 0; min-width: 270px; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(1,33,71,.35); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .35s var(--ease); }
.dropdown::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav-list > li:hover .dropdown, .nav-list > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 12px; font-size: 14.5px; color: var(--ink); transition: background .25s, color .25s, padding .35s var(--ease); }
.dropdown a:hover { background: var(--ice); color: var(--blue); padding-left: 18px; }
.dropdown-mega { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--font-head); color: var(--navy); white-space: nowrap; }
.header-phone .icon { color: var(--blue); }
.menu-btn { display: none; width: 48px; height: 48px; place-items: center; color: var(--navy); border: 1px solid var(--line); }
.menu-btn .icon { width: 22px; height: 22px; }

.mobile-menu { position: fixed; inset: 0; z-index: 120; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 18px var(--gutter) 28px; overflow-y: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s; }
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease); }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-menu-top img { width: 180px; }
.mobile-menu .menu-btn { display: grid; color: #fff; border-color: var(--line-dark); }
.mobile-nav > li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav > li > a, .mobile-nav summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font: 300 26px/1.1 var(--font-head); text-transform: uppercase; list-style: none; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] .chev { transform: rotate(180deg); }
.mobile-nav .sub { display: grid; padding: 0 0 14px; }
.mobile-nav .sub a { padding: 7px 0; color: rgba(255,255,255,.75); }
.mobile-menu .btn { width: 100%; margin-top: 12px; }
.mobile-menu-foot { margin-top: auto; padding-top: 24px; font-size: 14px; color: rgba(255,255,255,.6); }

/* =========================================================
   HERO — the team photo on the navy gradient; Care / Comfort /
   Confidence cycle with CSS transform + opacity only.
   ========================================================= */
.hero { position: relative; background: #071C4E; }
.hero-stage { position: relative; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(120deg, #061744 0%, #0A2463 42%, #1F4FA0 78%, #3279CC 100%); }
.hb-glow { position: absolute; left: 70%; top: 52%; width: min(70vh, 720px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(140,192,245,.42) 0%, rgba(54,137,224,.18) 38%, rgba(54,137,224,0) 70%); }
.hb-ring { position: absolute; left: 70%; top: 52%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(140,192,245,.22); transform: translate(-50%, -50%); }
.hb-ring.r1 { width: min(78vh, 800px); }
.hb-ring.r2 { width: min(104vh, 1060px); border-color: rgba(140,192,245,.12); }
.hb-ring::after { content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #8CC0F5; box-shadow: 0 0 14px 2px rgba(140,192,245,.8); }
.hb-ring.r1 { animation: orbit 26s linear infinite; }
.hb-ring.r2 { animation: orbit 44s linear infinite reverse; }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hb-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; }
.hb-dots { position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(60% 70% at 20% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 20% 30%, #000, transparent 75%); }

.ht-grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: end; gap: clamp(32px, 5vw, 90px); min-height: max(560px, calc(100svh - var(--header-h) - var(--top-h))); padding-top: clamp(28px, 5vh, 56px); }
.hu-main { align-self: center; max-width: 600px; padding-block: clamp(24px, 5vh, 60px); }
.hu-title { margin: 0 0 clamp(18px, 3vh, 28px); font: 300 clamp(50px, min(6vw, 11vh), 112px)/.98 var(--font-head); letter-spacing: -.05em; color: #fff; }
.hu-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hu-title .li { display: block; }
.hu-title .soft { color: #8CC0F5; }

/* Care. Comfort. Confidence. — 2 s per word, first word already showing */
.hu-words { display: flex; align-items: center; gap: 20px; margin: 0 0 clamp(16px, 2.6vh, 24px); }
.hw-track { position: relative; display: block; overflow: hidden; width: 6.5em; height: 1.2em; font: 600 clamp(26px, 2.5vw, 40px)/1.2 var(--font-head); letter-spacing: -.02em; color: #fff; }
.hwr { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translate3d(0, 100%, 0); animation: hwCycle 6s cubic-bezier(.22, .7, .2, 1) infinite backwards; will-change: transform, opacity; }
.hwr:nth-child(1) { animation-delay: -.4s; }
.hwr:nth-child(2) { animation-delay: 1.6s; }
.hwr:nth-child(3) { animation-delay: 3.6s; }
@keyframes hwCycle {
  0% { opacity: 0; transform: translate3d(0, 100%, 0); }
  6%, 31% { opacity: 1; transform: translate3d(0, 0, 0); }
  37%, 100% { opacity: 0; transform: translate3d(0, -100%, 0); }
}
.hw-bar { display: flex; gap: 6px; }
.hw-bar i { position: relative; width: 26px; height: 2px; overflow: hidden; background: rgba(255,255,255,.22); }
.hw-bar i::after { content: ""; position: absolute; inset: 0; background: #8CC0F5; transform: scaleX(0); transform-origin: left center; animation: hwBar 6s linear infinite backwards; }
.hw-bar i:nth-child(1)::after { animation-delay: -.4s; }
.hw-bar i:nth-child(2)::after { animation-delay: 1.6s; }
.hw-bar i:nth-child(3)::after { animation-delay: 3.6s; }
@keyframes hwBar { 0% { transform: scaleX(0); opacity: 1; } 33.3% { transform: scaleX(1); opacity: 1; } 37%, 100% { transform: scaleX(1); opacity: 0; } }
.is-loading .hwr, .is-loading .hw-bar i::after { animation-play-state: paused; }

.hu-intro { margin: 0 0 clamp(22px, 3.6vh, 34px); max-width: 380px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.78); }
.hu-cta { display: inline-flex; align-items: center; gap: 18px; padding: 8px 8px 8px 30px; border-radius: 999px; background: #fff; color: var(--navy); font: 700 13px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 18px 50px -14px rgba(140,192,245,.65); transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.hu-cta i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--blue); color: #fff; transition: transform .5s var(--ease), background .4s; }
.hu-cta i .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.hu-cta:hover { background: #E1F1FE; transform: translateY(-2px); }
.hu-cta:hover i { transform: rotate(-45deg); background: var(--navy); }

/* the team photo: an arch that sits on the bottom edge of the hero */
.ht-photo { position: relative; justify-self: center; align-self: end; margin: 0; height: clamp(460px, calc(100svh - var(--header-h) - var(--top-h) - clamp(28px, 5vh, 56px)), 900px); max-width: 100%; aspect-ratio: 1084 / 1451; }
.ht-frame { position: absolute; inset: 0; overflow: hidden; border-radius: 999px 999px 0 0; transform: translateZ(0); box-shadow: 0 0 0 1px rgba(140,192,245,.22), 0 40px 90px -30px rgba(0,0,0,.55); }
.ht-move { position: absolute; inset: -2% -3% -10% -3%; will-change: transform; }
/* slow drift: a gentle push-in and sway, transform only (rest state at 0% and 100%) */
.ht-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transform-origin: 50% 30%; animation: htDrift 18s ease-in-out infinite; will-change: transform; }
@keyframes htDrift {
  0%, 100% { transform: scale(1.04) translate3d(0, 0, 0); }
  50% { transform: scale(1.09) translate3d(-1%, -.6%, 0); }
}
/* a soft light that slides across the arch now and then */
.ht-frame::after { content: ""; position: absolute; inset: -10% -60%; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.14) 50%, transparent 58%); transform: translate3d(-60%, 0, 0); animation: htSheen 9s ease-in-out 2.5s infinite; pointer-events: none; }
@keyframes htSheen { 0% { transform: translate3d(-60%, 0, 0); } 22%, 100% { transform: translate3d(60%, 0, 0); } }
.is-loading .ht-photo img, .is-loading .ht-frame::after { animation-play-state: paused; }

/* Care / Comfort / Confidence — the calm strip under the hero */
.hero-words { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy); }
.hw { padding: 40px var(--gutter); color: rgba(255,255,255,.8); border-right: 1px solid var(--line-dark); }
.hw:last-child { border-right: 0; }
.hw-word { display: block; font: 700 clamp(30px, 3.4vw, 46px)/1 var(--font-head); text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.hw p { margin: 0; max-width: 34ch; }

/* =========================================================
   WHY APEX — image + checkerboard tiles (reference-inspired)
   ========================================================= */
.why-grid { display: grid; grid-template-columns: 5fr 7fr; align-items: stretch; }
.why-media { position: relative; min-height: 520px; overflow: hidden; }
.why-media img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.why-body { position: relative; z-index: 2; padding-left: clamp(32px, 5vw, 80px); }
.why-intro { max-width: 560px; margin: 18px 0 clamp(26px, 3vw, 40px); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; margin-left: calc(-1 * clamp(80px, 12vw, 190px)); box-shadow: 0 40px 80px -40px rgba(1,33,71,.35); }
.tile { position: relative; display: flex; flex-direction: column; min-height: 230px; padding: clamp(24px, 2.6vw, 36px); background: #fff; color: var(--body); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); transform: translateY(101%); transition: transform .7s var(--ease); }
.tile:hover::before { transform: none; }
.tile h3 { font: 300 clamp(24px, 2.2vw, 32px)/1.02 var(--font-head); text-transform: uppercase; margin-bottom: 14px; transition: color .4s; }
.tile h3 b { font-weight: 700; }
.tile p { font-size: 15px; margin: 0 0 18px; transition: color .4s; }
.tile .tile-arrow { margin-top: auto; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid currentColor; color: var(--navy); transition: transform .5s var(--ease), color .4s; }
.tile:hover h3, .tile:hover p, .tile:hover .tile-arrow { color: #fff; }
.tile:hover .tile-arrow { transform: rotate(-45deg); }
.tile.dark { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.75); }
.tile.dark h3, .tile.dark .tile-arrow { color: #fff; }
.tile.dark::before { background: var(--blue); }

/* =========================================================
   STATEMENT — scroll-filled mega type + expanding image
   ========================================================= */
.statement { padding-top: clamp(24px, 3vw, 48px); padding-bottom: 0; }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); }
.mega { font: 300 clamp(44px, 7.6vw, 124px)/.94 var(--font-head); text-transform: uppercase; letter-spacing: -.03em; color: #C9D8EC; }
.mega b { font-weight: 700; }
.js-anim .mega .w { display: inline-block; }
.statement-copy { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.statement-copy p { font-size: 17px; max-width: 54ch; margin: 0; }
.band { position: relative; margin-top: clamp(36px, 5vw, 64px); height: clamp(300px, 58vh, 580px); overflow: hidden; }
.band-inner { position: absolute; inset: 0; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band-caption { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(24px, 4vw, 48px); color: #fff; font: 600 12px/1.4 var(--font-head); letter-spacing: .24em; text-transform: uppercase; display: flex; gap: 12px; align-items: center; }
.band-caption::before { content: ""; width: 10px; height: 10px; background: var(--blue); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,33,71,.45), transparent 40%); pointer-events: none; }

/* =========================================================
   SERVICES — editorial list with cursor-follow preview
   ========================================================= */
.services-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.services-aside { position: sticky; top: calc(var(--header-h) + 40px); }
.services-aside p { margin-top: 22px; max-width: 360px; }
.services-aside .actions { margin-top: 28px; }
.svc-list { border-top: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0 24px; align-items: center; padding: 26px 8px 26px 0; border-bottom: 1px solid var(--line); isolation: isolate; transition: padding .6s var(--ease); }
.svc-row::before { content: ""; position: absolute; inset: 0 -20px; z-index: -1; background: var(--ice); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.svc-name { font: 300 clamp(26px, 3vw, 46px)/1.05 var(--font-head); text-transform: uppercase; color: var(--navy); letter-spacing: -.01em; transition: color .3s; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.svc-name b { font-weight: 700; }
.svc-tag { font: 700 10.5px/1 var(--font-head); letter-spacing: .14em; padding: 6px 10px; background: #FDECEC; color: #B42318; display: inline-flex; align-items: center; gap: 6px; }
.svc-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #EF4444; animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } }
.svc-desc { grid-column: 1; max-height: 0; opacity: 0; overflow: hidden; margin: 0; font-size: 15px; color: var(--muted); max-width: 52ch; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.svc-arrow { grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--navy); transition: all .5s var(--ease); }
.svc-thumb { display: none; }
.svc-row:hover, .svc-row:focus-visible { padding-left: 22px; }
.svc-row:hover::before, .svc-row:focus-visible::before { transform: scaleY(1); }
.svc-row:hover .svc-name, .svc-row:focus-visible .svc-name { color: var(--blue); }
.svc-row:hover .svc-desc, .svc-row:focus-visible .svc-desc { max-height: 70px; opacity: 1; margin-top: 8px; }
.svc-row:hover .svc-arrow, .svc-row:focus-visible .svc-arrow { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(-45deg); }
@media (hover: none) { .svc-desc { display: none; } }
.svc-preview { position: fixed; left: 0; top: 0; z-index: 70; width: 300px; height: 210px; pointer-events: none; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .35s, transform .5s var(--ease); box-shadow: 0 30px 60px -20px rgba(1,33,71,.45); }
.svc-preview.is-on { opacity: 1; }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   SERVICES v3 — quiet list + one picture
   ========================================================= */
.svc-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(30px, 4vw, 56px); }
.svc-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.svc-wrap .svc-list { border-top: 1px solid var(--line); }
.svc-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); font: 500 clamp(18px, 1.6vw, 24px)/1.25 var(--font-head); color: var(--muted); transition: color .3s, padding .5s var(--ease); }
.svc-item > span { display: inline-flex; align-items: center; gap: 12px; }
.svc-item .live { width: 7px; height: 7px; border-radius: 50%; background: #EF4444; animation: ping 1.8s infinite; }
.svc-item .ar { width: 20px; height: 20px; color: var(--blue); opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .5s var(--ease); }
.svc-item:hover, .svc-item.is-on, .svc-item:focus-visible { color: var(--navy); }
.svc-item.is-on { padding-left: 14px; }
.svc-item.is-on .ar { opacity: 1; transform: none; }
.svc-panel { position: sticky; top: calc(var(--header-h) + var(--top-h) + 32px); }
.svc-img { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--sky); }
.svc-img .si { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
.svc-img .si.was-on { clip-path: inset(0 0 0 0); z-index: 1; transition: none; }
.svc-img .si.is-on { clip-path: inset(0 0 0 0); z-index: 2; }
.svc-desc { margin: 20px 0 16px; min-height: 3.2em; max-width: 42ch; font-size: 16px; color: var(--body); }
@media (max-width: 860px) {
  .svc-wrap { grid-template-columns: 1fr; }
  .svc-panel { display: none; }
  .svc-item { color: var(--navy); }
  .svc-item .ar { opacity: 1; transform: none; }
  .svc-item.is-on { padding-left: 0; }
}

/* =========================================================
   DOCTORS
   ========================================================= */
.doctors { background: var(--ice); overflow: hidden; }
.doctors-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.doctors-head p.lead { max-width: 440px; margin: 0; }
.doctors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 32px); align-items: stretch; }
.doc { display: grid; grid-template-columns: 42% 1fr; background: #fff; border: 1px solid var(--line); min-height: 400px; }
.doc-portrait { position: relative; background: var(--grad); display: grid; place-items: center; overflow: hidden; min-height: 100%; }
.doc-portrait .mono { font: 300 clamp(56px, 5vw, 84px)/1 var(--font-head); color: #fff; letter-spacing: .02em; position: relative; z-index: 2; }
.doc-portrait .mark { position: absolute; width: 150%; opacity: .1; left: -25%; bottom: -20%; }
.doc-portrait.has-photo { background: #D9DCE0; }
.doc-portrait.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 28%; }
.doc-portrait .photo-note { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 2; font-size: 11.5px; color: rgba(255,255,255,.75); text-align: center; }
.doc-body { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 38px); }
.doc h3 { font: 300 clamp(24px, 2.1vw, 32px)/1.05 var(--font-head); text-transform: uppercase; margin-bottom: 10px; }
.doc h3 b { font-weight: 700; display: block; }
.doc-cred { font: 600 12px/1.5 var(--font-head); letter-spacing: .14em; color: var(--blue); margin-bottom: 18px; }
.doc p { font-size: 15px; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip { padding: 7px 12px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--navy); background: var(--ice); }
.tech-strip { margin-top: clamp(50px, 6vw, 80px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tech-item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px 26px 0; font-size: 14.5px; }
.tech-item + .tech-item { padding-left: 22px; border-left: 1px solid var(--line); }
.tech-item .icon { width: 28px; height: 28px; color: var(--blue); stroke-width: 1.5; }
.tech-item b { display: block; font: 700 14px/1.3 var(--font-head); color: var(--navy); margin-bottom: 4px; }
.memberships { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews { overflow: hidden; }
.reviews-head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.reviews-head .kicker { margin-top: 16px; }
.rv-row { display: flex; width: max-content; gap: 22px; }
.rv-row.is-css { animation: marquee 70s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.rv { width: clamp(290px, 30vw, 400px); flex: none; padding: 32px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 16px; transition: border-color .4s, transform .5s var(--ease); }
.rv:hover { border-color: var(--blue); transform: translateY(-6px); }
.rv .q { font: 700 64px/0.5 var(--font-head); color: var(--sky); height: 26px; }
.stars { display: flex; gap: 3px; color: #F5B301; }
.stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.rv p { margin: 0; font-size: 16px; color: var(--ink); }
.rv-author { margin-top: auto; font: 700 12.5px/1.4 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.rv-author small { display: block; font: 500 13px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.reviews-cta { text-align: center; margin-top: 44px; }

/* =========================================================
   VISIT — map with overlay card
   ========================================================= */
.visit { position: relative; display: flex; align-items: center; min-height: clamp(520px, 74vh, 700px); padding-block: clamp(36px, 4.5vw, 64px); }
.visit-map { position: absolute; inset: 0; background: var(--sky); }
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.visit-card { position: relative; z-index: 2; margin-left: max(var(--gutter), calc((100% - var(--container)) / 2)); width: min(470px, calc(100% - 2 * var(--gutter))); background: var(--navy); color: rgba(255,255,255,.78); padding: clamp(26px, 3vw, 42px); box-shadow: 0 40px 80px -30px rgba(1,33,71,.6); }
.visit-list { display: grid; gap: 14px; margin: 26px 0 22px; font-size: 15px; }
.visit-list li { display: flex; gap: 14px; }
.visit-list .icon { color: #8CC0F5; margin-top: 3px; }
.visit-list a:hover { color: #fff; text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--line-dark); }
.hours td:last-child { text-align: right; }
.hours tr.is-today td { color: #fff; font-weight: 700; }
.hours tr.is-today td:first-child::after { content: "Today"; margin-left: 8px; padding: 2px 6px; background: var(--blue); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.visit-card .btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.em-note { margin-top: 22px; padding: 14px 16px; border-left: 3px solid #EF4444; background: rgba(255,255,255,.06); font-size: 14px; }
.em-note b { color: #fff; }
.areas { padding: 26px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.areas .container { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.areas strong { font: 700 12px/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy); color: rgba(255,255,255,.7); font-size: 15px; }
.footer-cta { padding: clamp(56px, 7vw, 92px) 0; border-bottom: 1px solid var(--line-dark); }
.footer-cta .container { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.footer-cta .display { font-size: clamp(38px, 5.6vw, 88px); }
.footer-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-main { padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 220px; margin-bottom: 20px; }
.footer h4 { color: #fff; font: 700 12px/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; }
.footer-links { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 13px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.disclaimer { margin: 18px 0 0; font-size: 12.5px; color: rgba(255,255,255,.45); max-width: 980px; }
.socials { min-height: 40px; margin-top: 18px; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: none; grid-template-columns: 1fr 1.4fr 1fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(1,33,71,.25); padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); transition: transform .5s var(--ease); }
.mobile-bar.is-visible { transform: none; }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; font: 700 11px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.mobile-bar a .icon { width: 20px; height: 20px; color: var(--blue); }
.mobile-bar a.main { background: var(--navy); color: #fff; flex-direction: row; gap: 10px; font-size: 12px; }
.mobile-bar a.main .icon { color: #fff; }

/* Reveal initial state (JS) */
.js-anim [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(40px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1300px) {
  .header-phone { display: none; }
  .tech-strip { grid-template-columns: 1fr 1fr; }
  .tech-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .tech-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-cta { margin-left: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .why-media { height: 56vh; min-height: 0; }
  .why-body { padding: 0; margin-top: -90px; }
  .why-body > :not(.tiles) { background: #fff; position: relative; }
  .why-head { padding: 34px 30px 0; background: #fff; margin-right: 12%; }
  .why-intro { padding: 0 30px 0; margin-right: 12%; }
  .tiles { margin-left: 0; }
  .doctors-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-aside { position: static; }
  .statement-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .topbar .hide-sm { display: none; }
  /* hero for phones/tablets */
  .ht-grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-top: 0; }
  .hu-main { max-width: none; padding-block: clamp(26px, 5vh, 40px) 18px; }
  .hu-title { font-size: clamp(44px, 12.8vw, 88px); margin-bottom: 14px; }
  .hu-words { margin-bottom: 12px; }
  .hw-track { font-size: clamp(24px, 7vw, 34px); }
  /* phones: a plain cross-fade, lighter than the slide */
  .hwr { transform: none; animation-name: hwFade; }
  .hu-intro { font-size: 14.5px; margin-bottom: 18px; }
  .hu-cta { padding-left: 22px; font-size: 12px; }
  .hu-cta i { width: 42px; height: 42px; }
  .ht-photo { height: auto; width: min(100%, 460px); aspect-ratio: 4 / 5; }
  .hb-glow, .hb-ring { left: 50%; top: 70%; }
  .hb-ring.r2 { display: none; }
  .hero-words { grid-template-columns: 1fr; }
  .hw { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 0; }
  .doc { grid-template-columns: 36% 1fr; min-height: 0; }
  .svc-row { grid-template-columns: 68px 1fr auto; gap: 0 16px; padding: 16px 0; }
  .svc-row:hover { padding-left: 0; }
  .svc-thumb { display: block; grid-row: 1; width: 68px; height: 68px; object-fit: cover; }
  .svc-name { grid-column: 2; font-size: 21px; gap: 8px; }
  .svc-desc { display: none; }
  .svc-arrow { grid-column: 3; grid-row: 1; width: 40px; height: 40px; }
  .visit { display: block; padding: 0; min-height: 0; }
  .visit-map { position: relative; height: 340px; }
  .visit-card { margin: 0; width: auto; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 60px; }
  .ph-toggle { bottom: 72px; }
}
@keyframes hwFade { 0% { opacity: 0; } 5%, 31% { opacity: 1; } 36%, 100% { opacity: 0; } }
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
  .statement-copy .btn { width: 100%; }
  :root { --top-h: 0px; }
  .topbar { display: none; }
  .brand img { width: 168px; }
  .header-cta .btn { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .why-head, .why-intro { margin-right: 0; padding-inline: 22px; }
  .why-body { margin-top: -60px; }
  .doc { grid-template-columns: 1fr; }
  .doc-portrait { min-height: 0; aspect-ratio: 16 / 10; }
  .tech-strip { grid-template-columns: 1fr; }
  .tech-item, .tech-item + .tech-item { padding: 18px 0; border-left: 0; }
  .tech-item:nth-child(n+2) { border-top: 1px solid var(--line); }
  .svc-row { grid-template-columns: 64px 1fr; }
  .svc-thumb { width: 64px; height: 64px; }
  .svc-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-cta .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv-row { flex-wrap: wrap; width: auto; justify-content: center; }
  .hw-track { width: auto; height: auto; overflow: visible; }
  .hwr { position: static; display: inline; opacity: 1 !important; transform: none !important; animation: none !important; margin-right: .3em; }
  .hw-bar { display: none; }
  .ht-photo img, .ht-frame::after { animation: none !important; transform: none !important; }
}

/* ---------- floating WhatsApp / Text buttons ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 84; display: flex; flex-direction: column; gap: 10px; }
.fab-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px; color: #fff; font: 700 12px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 16px 34px -14px rgba(1,33,71,.55); transition: transform .4s var(--ease), box-shadow .4s; }
.fab-btn .icon { width: 24px; height: 24px; }
.fab-btn.wa { background: #1FAF5A; }
.fab-btn.sms { background: var(--navy); }
.fab-btn:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(1,33,71,.6); }
@media (max-width: 860px) {
  .fab { right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); }
  .fab-btn { width: 50px; height: 50px; padding: 0; justify-content: center; }
  .fab-btn span { display: none; }
}
.doctors-grid.single { grid-template-columns: 1fr; }
.doctors-grid.single .doc { grid-template-columns: minmax(220px, 340px) 1fr; }
.doctors-grid.single .doc-body .link-line { margin-top: 22px; align-self: flex-start; }
@media (max-width: 560px) { .doctors-grid.single .doc { grid-template-columns: 1fr; } }
.visit-list .perks { font-size: 13.5px; color: rgba(255,255,255,.7); }
@media (max-width: 560px) {
  .doc-portrait.has-photo { aspect-ratio: 5 / 4; }
  .doc-portrait.has-photo img { object-position: 46% 18%; }
}

/* highlights strip under the hero: TennCare, Saturdays, rating, walk-ins */
.hl-strip { background: #fff; border-bottom: 1px solid var(--line); }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hl { display: flex; align-items: center; gap: 14px; padding: 26px 22px; color: var(--navy); border-left: 1px solid var(--line); transition: background .3s; }
.hl:first-child { border-left: 0; padding-left: 0; }
.hl:hover { background: var(--ice); }
.hl .icon { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--sky); color: var(--blue); stroke-width: 2; }
.hl span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.hl b { display: block; font: 700 15px/1.3 var(--font-head); color: var(--navy); }
@media (max-width: 1100px) { .hl-grid { grid-template-columns: 1fr 1fr; } .hl:nth-child(3) { border-left: 0; padding-left: 0; } .hl:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .hl { padding: 16px 10px; gap: 10px; } .hl:nth-child(odd) { padding-left: 0; } .hl .icon { width: 34px; height: 34px; padding: 8px; } .hl span { font-size: 12.5px; } .hl b { font-size: 14px; } }

/* footer socials + areas line */
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 50%; color: #fff; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--blue); border-color: var(--blue); }
.socials .icon { width: 18px; height: 18px; }
.footer-areas { font-size: 13.5px; color: rgba(255,255,255,.6); }
@media (max-width: 1100px) { .topbar .hide-md { display: none; } }
