/* ==========================================================================
   Dr. Shubhang Aggarwal — NHS Ortho Robotics | Landing Page
   Design system + components
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --ink: #0b1728;
    --ink-2: #142a44;
    --ink-3: #22405f;
    --gold: #9a863a;
    --gold-2: #c3aa52;
    --gold-3: #d8c47c;
    --gold-soft: #f5f0dd;
    --cream: #faf8f2;
    --white: #ffffff;
    --text: #3a4048;
    --muted: #737b86;
    --line: #e9e4d5;
    --green: #25d366;
    --green-dark: #128c7e;

    --shadow-xs: 0 1px 2px rgba(11, 23, 40, .06);
    --shadow-sm: 0 2px 10px rgba(11, 23, 40, .07);
    --shadow-md: 0 10px 30px rgba(11, 23, 40, .10);
    --shadow-lg: 0 24px 60px rgba(11, 23, 40, .16);
    --shadow-gold: 0 10px 26px rgba(154, 134, 58, .30);

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-full: 999px;

    --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --container: 1200px;
    --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px;
    /* the off-canvas nav is translated past the right edge; `clip` stops that from
       creating a sideways scroll without turning the root into a scroll container
       (which `hidden` would, breaking position:sticky on the header in Safari) */
    overflow-x: hidden;
    overflow-x: clip;
}
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.72;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    overflow-x: clip;
    position: relative;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; border: 0; }
a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .6em; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 66px 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.80); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.grid { display: grid; gap: 26px; }
.text-center { text-align: center; }

/* Grid children default to min-width:auto, which lets wide images (the hero cut-out,
   card photos) push the track past the viewport. Reset it everywhere we use grid. */
.hero-grid > *, .about-grid > *, .appt-grid > *, .feature-split > *, .svc-grid > *,
.why-grid > *, .quote-grid > *, .video-grid > *, .testi-grid > *, .footer-grid > *,
.field-row > *, .assurance-grid > *, .hero-stats > *, .fs-steps > * { min-width: 0; }

/* ---------- Section heading ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: .74rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: block; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.section--ink .section-head p { color: rgba(255,255,255,.66); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: var(--r-full); border: 1.5px solid transparent;
    font-size: .94rem; font-weight: 600; letter-spacing: .01em; line-height: 1;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
    white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff; box-shadow: var(--shadow-gold); }
.btn--gold:hover { color: #fff; box-shadow: 0 16px 34px rgba(154,134,58,.42); }
.btn--wa { background: var(--green); color: #fff; box-shadow: 0 10px 26px rgba(37,211,102,.32); }
.btn--wa:hover { background: #1ebe5b; color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.34); color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; box-shadow: var(--shadow-xs); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 10px 18px; font-size: .84rem; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
    background: var(--ink); color: rgba(255,255,255,.72);
    font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; }
.topbar-info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-info a, .topbar-info span { color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: 7px; }
.topbar-info a:hover { color: var(--gold-3); }
.topbar-info svg { width: 14px; height: 14px; color: var(--gold-2); }
.topbar-right { flex: 0 0 auto; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line); transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 26px rgba(11,23,40,.09); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 46px; height: 46px; flex: 0 0 46px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--font-display); font-size: 1.24rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.logo-sub { font-size: .63rem; letter-spacing: .17em; text-transform: uppercase; color: var(--gold); font-weight: 700; white-space: nowrap; }

/* Nav */
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
    padding: 10px 11px; border-radius: var(--r-sm); font-size: .88rem; font-weight: 500; color: var(--ink);
    position: relative; white-space: nowrap; transition: color .2s ease, background .2s ease;
}
.nav a::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .26s ease;
}
.nav a:hover { color: var(--gold); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; padding: 0; position: relative;
}
.nav-toggle span {
    position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        linear-gradient(115deg, rgba(11,23,40,.96) 0%, rgba(20,42,68,.93) 48%, rgba(154,134,58,.86) 130%),
        url("../images/medical-bg.jpg") center/cover no-repeat var(--ink);
}
.hero::after {
    content: ""; position: absolute; top: auto; right: -10%; bottom: -45%; left: auto; width: 640px; height: 640px; border-radius: 50%;
    background: radial-gradient(circle, rgba(195,170,82,.30), transparent 66%); pointer-events: none;
}
.hero-grid {
    display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px;
    padding: 74px 0 0; position: relative; z-index: 2;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 8px; border-radius: var(--r-full);
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
    font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: #fff; margin-bottom: 22px;
}
.hero-badge i {
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--gold); font-style: normal;
}
.hero-badge svg { width: 12px; height: 12px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-3); }
.hero-lead { font-size: 1.1rem; color: rgba(255,255,255,.80); max-width: 570px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-motto {
    display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16);
    font-size: .88rem; font-weight: 600; color: var(--gold-3); letter-spacing: .02em;
}
.hero-motto span { display: inline-flex; align-items: center; gap: 8px; }
.hero-motto svg { width: 15px; height: 15px; }

.hero-figure { position: relative; align-self: end; }
.hero-figure img { position: relative; z-index: 2; margin: 0 auto; max-height: 500px; width: auto; max-width: 100%; filter: drop-shadow(0 30px 45px rgba(0,0,0,.42)); }
.hero-figure::before {
    content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(195,170,82,.42), rgba(195,170,82,0) 68%);
}
.hero-chip {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.97); color: var(--ink); padding: 11px 16px; border-radius: var(--r-full);
    box-shadow: var(--shadow-lg); font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.hero-chip svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; }
.hero-chip--1 { top: 16%; left: -12px; animation: float 5s ease-in-out infinite; }
.hero-chip--2 { bottom: 24%; right: -10px; animation: float 5s ease-in-out infinite .9s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Hero stat bar */
.hero-stats {
    position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,.98); border-radius: var(--r-lg) var(--r-lg) 0 0;
    box-shadow: var(--shadow-lg); margin-top: 40px; overflow: hidden;
}
.hero-stats .stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.hero-stats .stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: 8px; letter-spacing: .02em; }

/* ==========================================================================
   Trust logos / assurance strip
   ========================================================================== */
.assurance { background: var(--cream); border-bottom: 1px solid var(--line); padding: 30px 0; }
.assurance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.assurance-item { display: flex; align-items: center; gap: 13px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.assurance-item svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); flex: 0 0 auto; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 58px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.about-media::before {
    content: ""; position: absolute; top: -18px; right: -18px; bottom: auto; left: auto; width: 62%; height: 62%;
    border: 2px solid var(--gold); border-radius: var(--r-lg); z-index: -1;
}
.about-badge {
    position: absolute; bottom: -26px; left: -22px; background: var(--ink); color: #fff;
    padding: 18px 24px; border-radius: var(--r-md); box-shadow: var(--shadow-lg); text-align: center;
}
.about-badge strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-3); line-height: 1; }
.about-badge span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.cred-list { display: grid; gap: 14px; margin: 26px 0 30px; }
.cred-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .97rem; }
.cred-list svg { width: 21px; height: 21px; flex: 0 0 21px; color: var(--gold); margin-top: 3px; }
.cred-list b { color: var(--ink); }

/* ==========================================================================
   Services
   ========================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.svc-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
/* .svc-media stays unclipped so the gold icon can overhang; .svc-img does the clipping */
.svc-media { position: relative; aspect-ratio: 16 / 10; background: var(--ink); }
.svc-img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .svc-img img { transform: scale(1.07); }
.svc-img::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to top, rgba(11,23,40,.72), rgba(11,23,40,0) 58%);
}
.svc-tag {
    position: absolute; z-index: 2; top: 14px; left: 14px; background: rgba(255,255,255,.94); color: var(--gold);
    font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
    padding: 6px 12px; border-radius: var(--r-full);
}
.svc-icon {
    position: absolute; z-index: 2; bottom: -22px; right: 20px; width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-2), var(--gold)); display: grid; place-items: center;
    box-shadow: var(--shadow-md); color: #fff;
}
.svc-icon svg { width: 24px; height: 24px; }
.svc-body { padding: 28px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: 1.22rem; margin-bottom: 10px; }
.svc-body > p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.svc-points { display: grid; gap: 8px; margin-bottom: 22px; }
.svc-points li { display: flex; gap: 9px; align-items: flex-start; font-size: .87rem; color: var(--text); }
.svc-points svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--gold); margin-top: 5px; }
.svc-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.svc-link {
    display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 700; color: var(--ink);
}
.svc-link svg { width: 15px; height: 15px; transition: transform .25s ease; }
.svc-link:hover { color: var(--gold); }
.svc-link:hover svg { transform: translateX(4px); }

/* Featured / robotic highlight */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-split .fs-media { min-height: 420px; background: center/cover no-repeat var(--ink); }
.feature-split .fs-body { background: var(--ink); color: rgba(255,255,255,.76); padding: 54px 48px; }
.feature-split .fs-body h2 { color: #fff; }
.fs-steps { display: grid; gap: 18px; margin-top: 26px; }
.fs-step { display: flex; gap: 16px; align-items: flex-start; }
.fs-step i {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(195,170,82,.16); color: var(--gold-3); font-style: normal; font-weight: 800; font-size: .9rem;
    border: 1px solid rgba(195,170,82,.35);
}
.fs-step h4 { color: #fff; font-size: 1.02rem; margin-bottom: 3px; font-family: var(--font-body); font-weight: 700; }
.fs-step p { font-size: .9rem; margin: 0; color: rgba(255,255,255,.66); }

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 28px;
    transition: transform .3s ease, box-shadow .3s ease; position: relative; overflow: hidden;
}
.why-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform: scaleX(0); transform-origin: left;
    transition: transform .35s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
    width: 56px; height: 56px; border-radius: var(--r-md); background: var(--gold-soft); color: var(--gold);
    display: grid; place-items: center; margin-bottom: 20px;
}
.why-icon svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ==========================================================================
   Video
   ========================================================================== */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.video-card {
    position: relative; border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
    aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow-md); display: block;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .4s ease; }
.video-card:hover img { transform: scale(1.05); filter: brightness(.72); }
.video-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.play-btn {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%;
    background: rgba(255,255,255,.94); display: grid; place-items: center; box-shadow: var(--shadow-lg);
    transition: transform .3s ease, background .3s ease; pointer-events: none;
}
.play-btn svg { width: 26px; height: 26px; color: var(--gold); margin-left: 4px; }
.video-card:hover .play-btn { transform: scale(1.11); background: #fff; }
.video-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 22px 18px; color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.82), transparent); font-weight: 600; font-size: .95rem;
    pointer-events: none;
}
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.testi-grid .video-card { aspect-ratio: 16 / 10; }
.testi-grid .play-btn { width: 56px; height: 56px; }
.testi-grid .play-btn svg { width: 20px; height: 20px; }

/* ==========================================================================
   Gallery marquee
   ========================================================================== */
.marquee { overflow: hidden; position: relative; --gap: 20px; }
.marquee::before, .marquee::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 3; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--cream), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--cream), transparent); }
.marquee-track { display: flex; gap: var(--gap); width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track figure { margin: 0; flex: 0 0 340px; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.marquee-track img { width: 340px; height: 250px; object-fit: cover; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ==========================================================================
   Testimonials (text)
   ========================================================================== */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote-card {
    background: #fff; border-radius: var(--r-lg); padding: 34px 30px; border: 1px solid var(--line);
    position: relative; box-shadow: var(--shadow-xs);
}
.quote-card img.qmark { position: absolute; top: 22px; right: 24px; width: 42px; opacity: .16; }
.quote-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 14px; }
.quote-stars svg { width: 17px; height: 17px; }
.quote-card p { font-size: .96rem; color: var(--text); font-style: italic; }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote-avatar {
    width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); flex: 0 0 42px;
}
.quote-who b { display: block; color: var(--ink); font-size: .92rem; }
.quote-who span { font-size: .8rem; color: var(--muted); }

/* ==========================================================================
   Appointment / contact
   ========================================================================== */
.appt { background: var(--ink); position: relative; overflow: hidden; }
.appt::before {
    content: ""; position: absolute; top: -20%; right: -25%; bottom: auto; left: auto; width: 620px; height: 620px; border-radius: 50%;
    background: radial-gradient(circle, rgba(195,170,82,.22), transparent 68%);
}
.appt-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 54px; align-items: start; position: relative; z-index: 2; }
.contact-list { display: grid; gap: 20px; margin-top: 30px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ci-icon {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: var(--r-md); display: grid; place-items: center;
    background: rgba(195,170,82,.14); border: 1px solid rgba(195,170,82,.3); color: var(--gold-3);
}
.contact-item svg { width: 20px; height: 20px; }
.contact-item b { display: block; color: #fff; font-size: .95rem; margin-bottom: 2px; }
.contact-item a, .contact-item p { color: rgba(255,255,255,.68); font-size: .93rem; margin: 0; }
.contact-item a:hover { color: var(--gold-3); }

.form-card { background: #fff; border-radius: var(--r-lg); padding: 34px 32px; box-shadow: var(--shadow-lg); }
.form-card h3 { margin-bottom: 4px; }
.form-card > p { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
    font-family: inherit; font-size: .93rem; color: var(--text); background: var(--cream); transition: all .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(154,134,58,.12);
}
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field .err { color: #cf3a3a; font-size: .76rem; margin-top: 5px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #cf3a3a; background: #fff6f6; }
.field.has-error .err { display: block; }
.form-note { font-size: .78rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.form-divider { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--muted); font-size: .78rem; font-weight: 600; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-success {
    display: none; background: #eefaf1; border: 1.5px solid #b6e6c4; color: #1d7a41; border-radius: var(--r-sm);
    padding: 14px 16px; font-size: .9rem; margin-bottom: 16px; align-items: flex-start; gap: 10px;
}
.form-success.show { display: flex; }
.form-success svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; }
.form-error {
    display: none; background: #fdf1f1; border: 1.5px solid #f0c2c2; color: #b03030; border-radius: var(--r-sm);
    padding: 14px 16px; font-size: .9rem; margin-bottom: 16px; align-items: flex-start; gap: 10px;
}
.form-error.show { display: flex; }
.form-error svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; }
.btn.is-busy { opacity: .7; pointer-events: none; }

/* Map */
.map-wrap { line-height: 0; }
.map-wrap iframe { width: 100%; height: 430px; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq-q {
    width: 100%; text-align: left; background: none; border: 0; padding: 20px 56px 20px 24px;
    font-size: 1rem; font-weight: 600; color: var(--ink); position: relative; font-family: var(--font-body);
}
.faq-q::after {
    content: ""; position: absolute; right: 24px; top: 50%; width: 11px; height: 11px; margin-top: -7px;
    border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
    transform: rotate(45deg); transition: transform .3s ease;
}
.faq-item.is-open .faq-q::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 20px; margin: 0; color: var(--muted); font-size: .94rem; }

/* ==========================================================================
   Locations
   ========================================================================== */
.loc-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 940px; margin: 0 auto; }
.loc-cloud span {
    padding: 9px 18px; border-radius: var(--r-full); background: #fff; border: 1px solid var(--line);
    font-size: .87rem; color: var(--ink); font-weight: 500; transition: all .25s ease;
}
.loc-cloud span:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Final CTA band
   ========================================================================== */
.cta-band {
    background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 55%, #b39c46 100%);
    color: #fff; padding: 62px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: .12;
    background: url("../images/medical-bg.jpg") center/cover no-repeat; mix-blend-mode: overlay;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn--gold { background: #fff; color: var(--gold); box-shadow: var(--shadow-md); }
.cta-band .btn--gold:hover { background: var(--ink); color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 66px 0 0; font-size: .92rem; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer .logo-name { color: #fff; }
.footer-about p { margin: 20px 0 18px; color: rgba(255,255,255,.58); font-size: .9rem; }
.footer-links { display: grid; gap: 11px; }
.footer-links a, .footer-links li { color: rgba(255,255,255,.62); font-size: .9rem; }
.footer-links a:hover { color: var(--gold-3); padding-left: 4px; }
.footer-links li { display: flex; gap: 10px; align-items: flex-start; }
.footer-links svg { width: 15px; height: 15px; color: var(--gold-2); flex: 0 0 15px; margin-top: 5px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.10); padding: 22px 0; display: flex; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--gold-3); }

/* ==========================================================================
   Floating action cluster — WhatsApp chat widget + call + top
   ========================================================================== */
.float-stack {
    position: fixed; right: 20px; bottom: 22px; z-index: 1000;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.float-btn {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    box-shadow: var(--shadow-lg); border: 0; transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 27px; height: 27px; }
.float-btn--wa { background: var(--green); }
.float-btn--call { background: var(--gold); width: 50px; height: 50px; }
.float-btn--call svg { width: 22px; height: 22px; }
.float-btn--top {
    background: var(--ink); width: 44px; height: 44px; opacity: 0; visibility: hidden;
}
.float-btn--top.show { opacity: 1; visibility: visible; }
.float-btn--top svg { width: 18px; height: 18px; }
.float-btn--wa::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; border: 2px solid var(--green);
    animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.65); opacity: 0; } }
.wa-badge {
    position: absolute; top: -3px; right: -3px; width: 20px; height: 20px; border-radius: 50%;
    background: #e53935; color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center;
    border: 2px solid #fff;
}

/* Chat panel */
.wa-panel {
    position: fixed; right: 20px; bottom: 96px; z-index: 1001; width: 340px; max-width: calc(100vw - 40px);
    background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
    transform: translateY(18px) scale(.94); opacity: 0; visibility: hidden; transform-origin: bottom right;
    transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .25s ease, visibility .25s;
}
.wa-panel.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.wa-head { background: var(--green-dark); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.wa-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.5); background: #fff; }
.wa-head b { display: block; font-size: .95rem; }
.wa-head span { font-size: .76rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 6px; }
.wa-head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6ff59a; }
.wa-close { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.85); padding: 4px; line-height: 0; }
.wa-close svg { width: 18px; height: 18px; }
.wa-body {
    padding: 20px 18px; background: #e7ded4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='6' cy='6' r='1.2' fill='%23d3c8bb'/%3E%3Ccircle cx='26' cy='22' r='1.2' fill='%23d3c8bb'/%3E%3C/svg%3E");
    max-height: 300px; overflow-y: auto;
}
.wa-msg {
    background: #fff; border-radius: 4px 12px 12px 12px; padding: 11px 14px; font-size: .88rem; color: #2b2b2b;
    box-shadow: 0 1px 2px rgba(0,0,0,.12); margin-bottom: 12px; position: relative;
}
.wa-msg small { display: block; font-size: .68rem; color: #9aa0a6; text-align: right; margin-top: 4px; }
.wa-quick { display: grid; gap: 8px; }
.wa-quick a {
    background: #fff; border: 1px solid #d9d2c8; border-radius: var(--r-full); padding: 9px 14px;
    font-size: .84rem; color: var(--green-dark); font-weight: 600; text-align: center; transition: all .2s ease;
}
.wa-quick a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.wa-foot { padding: 12px 14px; background: #f4f2ef; border-top: 1px solid #e2ddd6; }
.wa-foot .btn { width: 100%; }

/* Mobile sticky action bar */
.mobile-bar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(11,23,40,.10);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.mobile-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px;
    border-radius: 10px; font-size: .7rem; font-weight: 700; color: var(--ink);
}
.mobile-bar svg { width: 19px; height: 19px; }
.mobile-bar .mb-call { color: var(--gold); }
.mobile-bar .mb-wa { color: var(--green); }
.mobile-bar .mb-book { background: var(--gold); color: #fff; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1140px) {
    .header-cta .btn--gold { display: none; }
}

@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; padding-top: 56px; text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-motto { justify-content: center; }
    .hero-figure { max-width: 400px; margin: 0 auto; }
    /* the figure is centred and narrow here — the chips would sit over the face */
    .hero-chip { display: none; }
    .about-grid, .appt-grid, .feature-split { grid-template-columns: 1fr; }
    .feature-split .fs-media { min-height: 300px; }
    .feature-split .fs-body { padding: 44px 34px; }
    .svc-grid, .why-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-media::before { display: none; }
}

@media (max-width: 900px) {
@media (max-width: 960px) {
    /* backdrop-filter makes the header the containing block for position:fixed
       descendants, which squashes the drawer to the header's 64px height.
       The drawer only exists at this width, so trade the blur for a solid bg. */
    .site-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: #fff;
        z-index: 1000;
    }
    .nav {
        position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(330px, 84vw); background: #fff; flex-direction: column;
        align-items: stretch; padding: 92px 22px 30px; gap: 2px; box-shadow: var(--shadow-lg);
        transform: translateX(102%); visibility: hidden;
        position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(330px, 84vw);
        height: 100vh; height: 100dvh;
        background: #fff; flex-direction: column;
        align-items: stretch; padding: 92px 22px 30px; gap: 2px; box-shadow: -10px 0 35px rgba(11,23,40,.20);
        transform: translateX(105%); visibility: hidden;
        transition: transform .34s cubic-bezier(.22,1,.36,1), visibility .34s;
        overflow-y: auto; z-index: 950;
        overflow-y: auto; z-index: 1002;
    }
    .nav.open { transform: none; visibility: visible; }
    .nav.open { transform: translateX(0); visibility: visible; }
    /* restore every link once the drawer takes over */
    .nav a[href^="#"] { display: block; }
    .nav a { padding: 13px 12px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: .96rem; }
    .nav a::after { display: none; }
    .nav-toggle { display: block; z-index: 960; }
    .nav-toggle { display: block; z-index: 1003; }
    .header-cta .btn { display: none; }
    .header-cta .btn--wa-head { display: inline-flex; }
    .nav-backdrop {
        position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(11,23,40,.45); z-index: 940; opacity: 0; visibility: hidden;
        position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(11,23,40,.55); z-index: 990; opacity: 0; visibility: hidden;
        transition: opacity .3s ease, visibility .3s;
    }
    .nav-backdrop.show { opacity: 1; visibility: visible; }
    .topbar-info span.hide-sm { display: none; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); border-radius: var(--r-lg); }
    .hero-stats .stat:nth-child(2) { border-right: 0; }
    .hero-stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .assurance-grid { grid-template-columns: 1fr 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .testi-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 66px 0; }
    .mobile-bar { display: grid; }
    .float-stack { bottom: 84px; right: 14px; }
    .wa-panel { bottom: 158px; right: 14px; }
    body { padding-bottom: 62px; }
}

/* ==========================================================================
   PHONES — the page is rebuilt here, not just reflowed.

   Stacking 12 service cards, 6 reason cards and 3 quote cards one under the
   other produced a ~25,000px scroll on a 390px screen. On phones the long
   grids become swipeable rails and the remaining grids go two-up, which cuts
   the page to roughly a third of that.
   ========================================================================== */
@media (max-width: 700px) {
    /* --- swipeable rails: services & patient stories --- */
    .svc-grid, .quote-grid {
        display: flex; grid-template-columns: none; gap: 14px;
        overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        /* bleed to the screen edges so a card can peek in from the right */
        margin: 0 -16px; padding: 4px 16px 16px;
        scrollbar-width: none;
    }
    .svc-grid::-webkit-scrollbar, .quote-grid::-webkit-scrollbar { display: none; }
    .svc-card, .quote-card { flex: 0 0 80%; max-width: 320px; scroll-snap-align: center; }
    .quote-card { padding: 26px 22px; }
    /* inside a horizontal rail the scroll-reveal can't be trusted — show them */
    .svc-grid .reveal, .quote-grid .reveal { opacity: 1; transform: none; }

    .swipe-hint { display: flex; }
}

@media (max-width: 620px) {
    :root { --header-h: 64px; }
    body { font-size: 15.5px; }
    .container { padding: 0 16px; }
    .topbar { display: none; }

    /* --- rhythm: sections were eating ~130px of empty space each --- */
    .section { padding: 44px 0; }
    .section--tight { padding: 36px 0; }
    .section-head { margin-bottom: 28px; }
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.55rem; }
    .section-head p { font-size: .95rem; }

    /* --- header --- */
    .logo-mark { width: 36px; height: 36px; flex-basis: 36px; }
    .logo { gap: 9px; }
    .logo-name { font-size: .95rem; }
    .logo-sub { font-size: .54rem; letter-spacing: .12em; }
    /* WhatsApp lives in the sticky bottom bar and the floating widget on phones */
    .header-cta .btn--wa-head { display: none; }

    /* --- hero: shorter figure, tighter stack --- */
    .hero-grid { padding-top: 34px; gap: 22px; }
    .hero-badge { font-size: .7rem; margin-bottom: 16px; padding: 6px 13px 6px 6px; }
    .hero-lead { font-size: .98rem; margin-bottom: 20px; }
    .hero-actions { gap: 10px; margin-bottom: 20px; }
    .hero-actions .btn { width: 100%; }
    .hero-motto { padding-top: 16px; font-size: .8rem; gap: 6px 14px; justify-content: center; }
    .hero-chip { display: none; }
    .hero-figure { max-width: 260px; }
    .hero-figure img { max-height: 300px; }
    .hero-stats { margin-top: 26px; }
    .hero-stats .stat { padding: 16px 10px; }
    .stat-label { font-size: .72rem; margin-top: 4px; }

    /* --- assurance: 2-up chips instead of 4 stacked rows --- */
    .assurance { padding: 20px 0; }
    .assurance-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .assurance-item { font-size: .76rem; gap: 8px; line-height: 1.35; }
    .assurance-item svg { width: 28px; height: 28px; padding: 6px; }

    /* --- about --- */
    .about-grid { gap: 34px; }
    .about-media img { aspect-ratio: 4 / 3; object-position: top center; }
    .about-badge { left: 0; bottom: -16px; padding: 12px 16px; }
    .about-badge strong { font-size: 1.5rem; }
    .cred-list { gap: 11px; margin: 20px 0 24px; }
    .cred-list li { font-size: .9rem; }

    /* --- service cards: trimmed so a whole card fits one screen --- */
    .svc-media { aspect-ratio: 16 / 9; }
    .svc-body { padding: 20px 18px; }
    .svc-body h3 { font-size: 1.06rem; }
    .svc-body > p { font-size: .87rem; margin-bottom: 12px; }
    .svc-points { gap: 6px; margin-bottom: 16px; }
    .svc-points li { font-size: .82rem; }
    .svc-icon { width: 42px; height: 42px; bottom: -18px; right: 16px; }
    .svc-icon svg { width: 20px; height: 20px; }

    /* --- robotic split --- */
    .feature-split .fs-media { min-height: 200px; }
    .feature-split .fs-body { padding: 30px 20px; }
    .fs-steps { gap: 14px; margin-top: 20px; }
    .fs-step i { flex-basis: 32px; width: 32px; height: 32px; font-size: .8rem; }
    .fs-step p { font-size: .85rem; }

    /* --- why choose us: 2-up compact tiles --- */
    .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .why-card { padding: 18px 14px; }
    .why-icon { width: 42px; height: 42px; margin-bottom: 12px; border-radius: 10px; }
    .why-icon svg { width: 20px; height: 20px; }
    .why-card h3 { font-size: .95rem; margin-bottom: 6px; }
    .why-card p { font-size: .8rem; line-height: 1.5; }

    /* --- videos: testimonials stay 2-up --- */
    .video-grid { gap: 14px; }
    .testi-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
    .testi-grid .play-btn { width: 42px; height: 42px; }
    .testi-grid .play-btn svg { width: 15px; height: 15px; }
    .video-caption { font-size: .82rem; padding: 34px 14px 12px; }

    /* --- gallery --- */
    .marquee-track figure { flex: 0 0 230px; }
    .marquee-track img { width: 230px; height: 165px; }
    .marquee::before, .marquee::after { width: 48px; }

    /* --- appointment --- */
    .appt-grid { gap: 30px; }
    .form-card { padding: 24px 18px; }
    .field-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .contact-list { gap: 14px; margin-top: 22px; }
    .contact-item .ci-icon { width: 40px; height: 40px; flex-basis: 40px; }
    .map-wrap iframe { height: 280px; }

    /* --- faq / locations --- */
    .faq-q { font-size: .92rem; padding: 15px 46px 15px 16px; }
    .faq-q::after { right: 18px; }
    .faq-a p { padding: 0 16px 16px; font-size: .87rem; }
    .loc-cloud { gap: 7px; }
    .loc-cloud span { padding: 6px 13px; font-size: .78rem; }

    /* --- cta band + footer --- */
    .cta-band { padding: 40px 0; }
    .cta-actions .btn { width: 100%; }
    .footer { padding: 44px 0 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; padding-bottom: 30px; }
    .footer-about { grid-column: 1 / -1; }
    .footer h4 { margin-bottom: 14px; font-size: .74rem; }
    .footer-links { gap: 8px; }
    .footer-links a, .footer-links li { font-size: .82rem; }
    .footer-bottom { justify-content: center; text-align: center; font-size: .76rem; }
}

/* Swipe affordance — only meaningful once the grids become rails */
.swipe-hint {
    display: none; align-items: center; justify-content: center; gap: 8px;
    font-size: .78rem; font-weight: 600; color: var(--gold); letter-spacing: .04em;
    margin: -6px 0 14px;
}
.swipe-hint svg { width: 15px; height: 15px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
/* must come after the base rule above to win on equal specificity */
@media (max-width: 700px) { .swipe-hint { display: flex; } }

@media (max-width: 400px) {
    .svc-card, .quote-card { flex-basis: 86%; }
    .why-card p { font-size: .77rem; }
    .assurance-item { font-size: .72rem; }
}

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

@media print {
    .float-stack, .wa-panel, .mobile-bar, .site-header, .topbar { display: none !important; }
}

/* ==========================================================================
   Older phone browsers (iOS < 15, old Android WebView) ignore `aspect-ratio`.
   The service-card media box has only absolutely-positioned children, so
   without it the box collapses to 0px and every card looks broken.
   Give those boxes their height back with the padding-bottom ratio trick.
   ========================================================================== */
@supports not (aspect-ratio: 1 / 1) {
    .svc-media { height: 0; padding-bottom: 62.5%; }          /* 16:10 */
    .video-card { height: 0; padding-bottom: 56.25%; }        /* 16:9  */
    .video-card img, .video-card iframe {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    }
    .testi-grid .video-card { padding-bottom: 62.5%; }
    @media (max-width: 620px) {
        .svc-media { padding-bottom: 56.25%; }
    }
}
