/* ============================================================
   NZ TELEMED — Design System (White-first Modern)
   UI/UX Pro Max: Accessible & Ethical + Medical Teal
   Typography: Figtree + Noto Sans
   ============================================================ */

/* ---------- Google Fonts (loaded via HTML <link> for performance) ---------- */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors — White-first theme (logo: Navy #1B2A4A + Red #D42027) */
    --color-bg: #ffffff;
    --color-bg-alt: #f7f8fa;
    --color-bg-dark: #1B2A4A;
    --color-text: #1B2A4A;
    --color-text-muted: #7A8A9E;
    --color-text-light: #5A6B7F;
    --color-text-on-dark: #f0f2f5;
    --color-accent: #1B2A4A;
    --color-accent-light: #2C4470;
    --color-accent-dark: #0F1A30;
    --color-red: #D42027;
    --color-red-light: #E8434A;
    --color-border: rgba(27, 42, 74, 0.1);
    --color-border-light: rgba(27, 42, 74, 0.05);
    --color-glass: rgba(255, 255, 255, 0.85);
    --color-glass-dark: rgba(27, 42, 74, 0.95);
    --color-shadow: rgba(27, 42, 74, 0.06);
    --color-shadow-lg: rgba(27, 42, 74, 0.12);

    /* Typography */
    --font-heading: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family: var(--font-body);
    --fs-hero: clamp(3.5rem, 10vw, 10.67rem);
    --fs-h1: clamp(2.5rem, 6vw, 8rem);
    --fs-h2: clamp(2rem, 4vw, 5.33rem);
    --fs-h3: clamp(1.5rem, 3vw, 4rem);
    --fs-h4: clamp(1.2rem, 2vw, 1.33rem);
    --fs-body: 1rem;
    --fs-caption: 0.8rem;
    --fw-extralight: 200;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --lh-tight: 1.1;
    --lh-normal: 1.5;
    --lh-relaxed: 1.7;
    --ls-tight: -0.06em;
    --ls-normal: 0;
    --ls-wide: 0.13em;

    /* Spacing (8px system) */
    --space-1: 0.17rem;
    /* ~2.7px */
    --space-2: 0.25rem;
    /* 4px */
    --space-3: 0.5rem;
    /* 8px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.13rem;
    /* 18px */
    --space-6: 1.5rem;
    /* 24px */
    --space-7: 2rem;
    /* 32px */
    --space-8: 2.66rem;
    /* ~42.6px */
    --space-9: 4rem;
    /* 64px */
    --space-10: 5.28rem;
    /* ~84.5px */
    --space-11: 8rem;
    /* 128px */
    --space-12: 10.67rem;
    /* ~170.7px */

    /* Border Radius */
    --radius-sm: 5.376px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 48px;
    --radius-full: 100%;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
    --duration-reveal: 1.2s;

    /* Shadows */
    --shadow-sm: 0 1px 3px var(--color-shadow);
    --shadow-md: 0 4px 16px var(--color-shadow);
    --shadow-lg: 0 16px 48px var(--color-shadow-lg);
    --shadow-xl: 48px 16px 96px -32px rgba(0, 0, 0, 0.15), -48px 16px 96px -32px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: var(--fw-light);
    line-height: var(--lh-relaxed);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--color-red);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
}

/* Focus visible ring for accessibility */
:focus-visible {
    outline: 3px solid var(--color-red);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Cursor pointer on all interactive elements */
.btn,
.nav-link,
.nav-cta,
.service-card,
.benefit-card,
.doctor-card,
.referrer-card,
.faq-item,
.accordion-header,
.case-tag,
.step-card,
a {
    cursor: pointer;
}

/* ---------- Utility Classes ---------- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6,
.heading-hero,
.heading-1,
.heading-2,
.heading-3,
.heading-4,
.hero-title,
.section-title,
.benefit-title,
.step-title,
.doctor-name,
.footer-nav-title {
    font-family: var(--font-heading);
}

.heading-hero {
    font-size: var(--fs-hero);
    font-weight: var(--fw-semibold);
    line-height: 0.95;
    letter-spacing: var(--ls-tight);
    text-transform: uppercase;
}

.heading-1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
}

.heading-2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-medium);
    line-height: 1.2;
    letter-spacing: var(--ls-tight);
}

.heading-3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-medium);
    line-height: 1.2;
    letter-spacing: var(--ls-tight);
}

.heading-4 {
    font-size: var(--fs-h4);
    font-weight: var(--fw-medium);
    line-height: var(--lh-normal);
}

.text-body {
    font-size: var(--fs-body);
    font-weight: var(--fw-extralight);
    line-height: var(--lh-relaxed);
}

.text-caption {
    font-size: var(--fs-caption);
    font-weight: var(--fw-light);
    line-height: var(--lh-relaxed);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-accent {
    color: var(--color-accent);
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-size: var(--fs-body);
    font-weight: var(--fw-light);
    line-height: var(--lh-relaxed);
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.btn-primary {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    border: 1px solid var(--color-bg-dark);
}

.btn-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    border-color: var(--color-bg-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-text-on-dark);
    border: 1px solid rgba(245, 245, 245, 0.3);
}

.btn-outline-light:hover {
    background: var(--color-text-on-dark);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
}

.btn-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    transition: all var(--duration-normal) var(--ease-out);
}

.btn-icon:hover {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    border-color: var(--color-bg-dark);
    transform: scale(1.1);
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(27, 42, 74, 0.08);
    box-shadow: 0 1px 8px rgba(27, 42, 74, 0.04);
    transition: box-shadow var(--duration-normal) var(--ease-out);
    flex-wrap: nowrap;
}

.navbar.scrolled {
    box-shadow: 0 2px 16px rgba(27, 42, 74, 0.08);
}

.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: nowrap;
    margin-left: auto;
}

.nav-logo {
    height: 80px;
    width: auto;
    margin-right: 1.5rem;
}

.nav-link {
    padding: 0.45rem 0.8rem;
    font-size: 0.72rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
    background: rgba(27, 42, 74, 0.06);
}

.nav-cta {
    padding: 0.45rem 1.2rem;
    font-size: 0.72rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
    background: var(--color-red);
    border-radius: var(--radius-lg);
    margin-left: 0.6rem;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--color-red-light);
    color: white;
    transform: scale(1.05);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-hamburger span {
    width: 20px;
    height: 1.5px;
    background: var(--color-accent);
    transition: all var(--duration-fast) var(--ease-out);
}

/* ---------- Mobile Nav ---------- */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav .nav-link {
    font-size: 1.2rem;
    color: var(--color-accent);
}

.mobile-nav-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--color-accent);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: calc(var(--space-12) + 80px) var(--space-4) var(--space-10);
    overflow: hidden;
    margin-top: 0;
    background: #0a0a0a;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.hero-bg img.active {
    opacity: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(5, 5, 5, 0.4) 0%,
            rgba(5, 5, 5, 0.2) 40%,
            rgba(5, 5, 5, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: var(--fs-caption);
    font-weight: var(--fw-light);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-8);
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: var(--fw-semibold);
    line-height: 1;
    letter-spacing: var(--ls-tight);
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-7);
}

.hero-title .highlight {
    background: linear-gradient(135deg, #D42027, #E8434A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: var(--fw-extralight);
    line-height: var(--lh-relaxed);
    color: rgba(245, 245, 245, 0.8);
    max-width: 680px;
    margin: 0 auto var(--space-8);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: var(--space-9);
}

.hero-stats {
    display: flex;
    gap: var(--space-9);
    justify-content: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--fw-semibold);
    color: var(--color-text-on-dark);
    line-height: 1;
}

.hero-stat-label {
    font-size: var(--fs-caption);
    font-weight: var(--fw-light);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.5);
    margin-top: 0.5rem;
}

/* ---------- Marquee ---------- */
.marquee-wrapper {
    overflow: hidden;
    padding: var(--space-8) 0;
    background: var(--color-bg-dark);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    white-space: nowrap;
    font-size: clamp(1rem, 2vw, 1.33rem);
    font-weight: var(--fw-extralight);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: rgba(245, 245, 245, 0.4);
}

.marquee-item .dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent-light);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---------- Section Shared ---------- */
.section {
    padding: var(--space-10) 0;
    position: relative;
}

.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

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

.section-label {
    font-size: var(--fs-caption);
    font-weight: var(--fw-light);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--color-text-muted);
}

.section-dark .section-label {
    color: rgba(245, 245, 245, 0.4);
}

.section-dark .section-label::before {
    background: rgba(245, 245, 245, 0.2);
}

.section-header {
    max-width: 800px;
    margin-bottom: var(--space-10);
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: var(--fw-medium);
    line-height: 1.15;
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-6);
}

.section-description {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: var(--fw-extralight);
    line-height: var(--lh-relaxed);
    color: var(--color-text-light);
}

.section-dark .section-description {
    color: rgba(245, 245, 245, 0.6);
}

/* ---------- Benefits Grid ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.benefit-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Fill sweep from bottom */
.benefit-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(135deg, #0891B2, #06b6d4);
    transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: inherit;
}

.benefit-card:hover::before {
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(8, 145, 178, 0.25);
    border-color: transparent;
    color: white;
}

.benefit-card:hover .benefit-title {
    color: white;
}

.benefit-card:hover .benefit-text {
    color: rgba(255, 255, 255, 0.85);
}

.benefit-card:hover .benefit-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(8, 145, 178, 0.04));
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-title {
    font-size: 1.1rem;
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-4);
    line-height: var(--lh-normal);
    transition: color 0.3s ease;
}

.benefit-text {
    font-size: 0.95rem;
    font-weight: var(--fw-extralight);
    line-height: var(--lh-relaxed);
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

/* ---------- How It Works (Steps) ---------- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-7);
    position: relative;
}

.steps-container::before {
    display: none;
}

/* Animated glow connecting line */
.steps-line-glow {
    position: absolute;
    top: 3rem;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(212, 32, 39, 0.5) 15%,
            rgba(212, 32, 39, 0.9) 50%,
            rgba(212, 32, 39, 0.5) 85%,
            transparent);
    z-index: 1;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(212, 32, 39, 0.3), 0 0 16px rgba(212, 32, 39, 0.15);
    transform-origin: left center;
}

.step-card {
    text-align: center;
    position: relative;
    padding-top: var(--space-8);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: var(--fw-semibold);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(27, 42, 74, 0.2);
    transition: box-shadow 0.4s ease;
}

.step-title {
    font-size: 1.15rem;
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-4);
    color: var(--color-text-on-dark);
}

.step-text {
    font-size: 0.95rem;
    font-weight: var(--fw-extralight);
    line-height: var(--lh-relaxed);
    color: rgba(245, 245, 245, 0.6);
    max-width: 280px;
    margin: 0 auto;
}

/* ---------- Section Glow Borders ---------- */
.section-glow-border {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(212, 32, 39, 0.25) 20%,
            rgba(212, 32, 39, 0.5) 50%,
            rgba(212, 32, 39, 0.25) 80%,
            transparent);
    box-shadow: 0 0 12px rgba(212, 32, 39, 0.2), 0 0 24px rgba(212, 32, 39, 0.08);
    transform-origin: left center;
}

/* ---------- Character / Word Reveal ---------- */
.char-reveal,
.word-reveal {
    display: inline-block;
    will-change: transform, opacity;
}

/* ---------- Image Clip Reveal ---------- */
.split-image,
.about-image {
    overflow: hidden;
    border-radius: var(--radius-md);
    clip-path: inset(0% 0% 0% 0% round 12px);
}

.split-image img,
.about-image img {
    will-change: transform;
    transition: none;
}

/* ---------- Services Grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.service-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Left-to-right sweep fill */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-dark), #1e3a5f);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.service-card:hover::after {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(27, 42, 74, 0.3);
    border-color: transparent;
    color: white;
}

.service-card:hover .service-name {
    color: white;
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-6);
}

.service-name {
    font-size: 1.1rem;
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-3);
    transition: color 0.3s ease;
}

.service-badge {
    font-size: var(--fs-caption);
    font-weight: var(--fw-light);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(26, 79, 139, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    display: inline-block;
}

/* ---------- Split Section (Patients / Doctors) ---------- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse>* {
    direction: ltr;
}

.split-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform var(--duration-slow) var(--ease-out);
}

.split-image:hover img {
    transform: scale(1.03);
}

.split-content {
    padding: var(--space-7) 0;
}

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

.faq-item {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-left-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateX(4px);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-7);
    cursor: pointer;
    font-size: 1rem;
    font-weight: var(--fw-regular);
    gap: 1rem;
    transition: background var(--duration-fast) var(--ease-out);
}

.faq-question:hover {
    background: rgba(26, 79, 139, 0.03);
}

.faq-toggle {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: var(--fw-extralight);
    transition: all var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.faq-item.open .faq-toggle {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    border-color: var(--color-bg-dark);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-normal) var(--ease-out),
        padding var(--duration-normal) var(--ease-out);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 var(--space-7) var(--space-6);
    font-size: 0.95rem;
    font-weight: var(--fw-extralight);
    line-height: var(--lh-relaxed);
    color: var(--color-text-light);
}

/* ---------- Accordion (For Doctors / Patients) ---------- */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.accordion-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.accordion-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: var(--space-5) var(--space-6);
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: var(--fw-regular);
    transition: background var(--duration-fast) var(--ease-out);
}

.accordion-trigger:hover {
    background: rgba(26, 79, 139, 0.03);
}

.accordion-trigger .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-normal) var(--ease-out);
}

.accordion-item.open .accordion-body {
    max-height: 500px;
}

.accordion-body-inner {
    padding: 0 var(--space-6) var(--space-6) 3.2rem;
    font-size: 0.95rem;
    font-weight: var(--fw-extralight);
    line-height: var(--lh-relaxed);
    color: var(--color-text-light);
}

/* ---------- Doctors Section (Cards) ---------- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.doctor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Top-to-bottom gradient reveal */
.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, rgba(212, 32, 39, 0.15), rgba(212, 32, 39, 0.03));
    transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.doctor-card:hover::before {
    height: 100%;
}

.doctor-card:hover {
    border-color: rgba(212, 32, 39, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.doctor-card-icon {
    font-size: 2rem;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(26, 79, 139, 0.15);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-card:hover .doctor-card-icon {
    background: var(--color-red);
    color: white;
    transform: scale(1.08);
}

.doctor-card-title {
    font-size: 1.15rem;
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-4);
    color: var(--color-text-on-dark);
}

.doctor-card-text {
    font-size: 0.95rem;
    font-weight: var(--fw-extralight);
    line-height: var(--lh-relaxed);
    color: rgba(245, 245, 245, 0.6);
}

/* ---------- Ideal Cases (Tag Cloud) ---------- */
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: var(--space-6);
}

.case-tag {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: var(--fw-light);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    color: rgba(245, 245, 245, 0.7);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.case-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-light);
    color: var(--color-text-on-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---------- Referrers ---------- */
.referrer-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.referrer-card {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-7);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-left: 4px solid transparent;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Subtle bg fill */
.referrer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.06), rgba(8, 145, 178, 0.01));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.referrer-card:hover::before {
    opacity: 1;
}

.referrer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(8, 145, 178, 0.12);
    border-left-color: #0891B2;
    border-color: rgba(8, 145, 178, 0.2);
}

.referrer-card:hover .referrer-card-icon {
    background: #0891B2;
    color: white;
    transform: scale(1.08);
}

.referrer-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.referrer-card-content h4 {
    font-size: 1.05rem;
    font-weight: var(--fw-medium);
    margin-bottom: 0.5rem;
}

.referrer-card-content p {
    font-size: 0.95rem;
    font-weight: var(--fw-extralight);
    line-height: var(--lh-relaxed);
    color: var(--color-text-light);
}

/* ---------- About / Vision ---------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/10;
}

.about-text blockquote {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: var(--fw-extralight);
    line-height: var(--lh-relaxed);
    color: var(--color-text);
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-6);
    margin: var(--space-7) 0;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

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

.contact-item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-item-label {
    font-size: var(--fs-caption);
    font-weight: var(--fw-light);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.4);
    margin-bottom: 0.25rem;
}

.contact-item-value {
    font-size: 1.1rem;
    font-weight: var(--fw-extralight);
    color: var(--color-text-on-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-group {
    position: relative;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-text-on-dark);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: var(--fw-extralight);
    transition: all var(--duration-fast) var(--ease-out);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(245, 245, 245, 0.3);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-accent-light);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(26, 79, 139, 0.15);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-label {
    font-size: var(--fs-caption);
    font-weight: var(--fw-light);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.5);
    margin-bottom: 0.5rem;
    display: block;
}

/* Select dropdown option text — browser renders on white bg */
.form-input option {
    background: #ffffff;
    color: #1B2A4A;
    font-weight: 400;
    padding: 0.5rem;
}

.form-input option:checked {
    background: #0891B2;
    color: white;
}

/* ---------- Footer ---------- */
.footer {
    padding: var(--space-10) 0 var(--space-7);
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-9);
    padding-bottom: var(--space-9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand p {
    font-size: 0.95rem;
    font-weight: var(--fw-extralight);
    line-height: var(--lh-relaxed);
    color: rgba(245, 245, 245, 0.5);
    max-width: 350px;
    margin-top: var(--space-6);
}

.footer-logo {
    height: 90px;
    width: auto;
}

.footer-nav-title {
    font-size: var(--fs-caption);
    font-weight: var(--fw-light);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.4);
    margin-bottom: var(--space-6);
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-list a {
    font-size: 0.95rem;
    font-weight: var(--fw-extralight);
    color: rgba(245, 245, 245, 0.6);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-nav-list a:hover {
    color: var(--color-text-on-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-7);
    font-size: var(--fs-caption);
    font-weight: var(--fw-light);
    letter-spacing: var(--ls-wide);
    color: rgba(245, 245, 245, 0.3);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--duration-reveal) var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all var(--duration-reveal) var(--ease-out);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all var(--duration-reveal) var(--ease-out);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--duration-reveal) var(--ease-out);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.05s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.12s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.19s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.26s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.33s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 0.40s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(7) {
    transition-delay: 0.47s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(8) {
    transition-delay: 0.54s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(9) {
    transition-delay: 0.61s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(10) {
    transition-delay: 0.68s;
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Number Counter Animation ---------- */
.count-up {
    display: inline-block;
}

/* ---------- Parallax Image ---------- */
.parallax-container {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.parallax-image {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(-10%);
    transition: transform 0.1s linear;
}

/* ---------- Glowing border card ---------- */
.glow-card {
    position: relative;
    overflow: hidden;
}

.glow-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            var(--color-accent-light) 60deg,
            transparent 120deg);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    animation: rotate-glow 4s linear infinite;
    z-index: -1;
}

.glow-card:hover::before {
    opacity: 1;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ---------- Footer ---------- */
.footer {
    background: #ffffff;
    color: var(--color-text);
    padding: var(--space-10) 0 var(--space-7);
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-9);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: var(--lh-relaxed);
    font-weight: var(--fw-light);
    margin-top: var(--space-4);
}

.footer-logo {
    height: 90px;
    width: auto;
}

.footer-nav-title {
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: var(--space-5);
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-nav-list a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: var(--fw-light);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-nav-list a:hover {
    color: var(--color-red);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-7);
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: var(--fw-light);
}

/* ---------- Benefit Icon SVG Styling ---------- */
.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(8, 145, 178, 0.08);
    color: #0891B2;
    margin-bottom: var(--space-5);
    transition: all var(--duration-normal) var(--ease-out);
}

.benefit-card:hover .benefit-icon {
    background: #0891B2;
    color: white;
    transform: scale(1.05);
}

.benefit-icon svg {
    flex-shrink: 0;
}

/* ---------- Service Icon SVG Styling ---------- */
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(8, 145, 178, 0.08);
    color: #0891B2;
    margin-bottom: var(--space-3);
    transition: all var(--duration-normal) var(--ease-out);
}

.service-card:hover .service-icon {
    background: #0891B2;
    color: white;
}

/* ---------- Doctor Card Icon SVG Styling ---------- */
.doctor-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(245, 245, 245, 0.9);
    margin-bottom: var(--space-4);
    transition: all var(--duration-normal) var(--ease-out);
}

.doctor-card:hover .doctor-card-icon {
    background: var(--color-red);
    color: white;
}

/* ---------- Referrer Card Icon SVG Styling ---------- */
.referrer-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(8, 145, 178, 0.08);
    color: #0891B2;
    flex-shrink: 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.referrer-card:hover .referrer-card-icon {
    background: #0891B2;
    color: white;
}

/* ---------- Contact Item Icon SVG Styling ---------- */
.contact-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(245, 245, 245, 0.8);
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {

    .container {
        padding: 0 var(--space-6);
    }

    .benefits-grid,
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container::before,
    .steps-line-glow {
        display: none;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .split-section.reverse {
        direction: ltr;
    }

    .services-grid,
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-7);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .section-header {
        margin-bottom: var(--space-8);
    }
}

@media (max-width: 768px) {

    /* ── Typography ─────────────────────────── */
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .section-description {
        font-size: 0.9rem;
    }

    /* ── Navbar — stays at TOP ──────────────── */
    .navbar {
        top: 0;
        left: 0;
        right: 0;
        padding: 0.5rem 1rem;
        justify-content: space-between;
    }

    .nav-logo {
        height: 50px;
        margin-right: auto;
    }

    /* Hide CTA on mobile — it's in the mobile nav overlay */
    .nav-cta {
        display: none;
    }

    .nav-links-desktop {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    /* ── Sections — side padding ────────────── */
    .section {
        padding: var(--space-9) var(--space-5);
    }

    .section-dark {
        padding: var(--space-9) var(--space-5);
    }

    /* ── Hero ───────────────────────────────── */
    .hero {
        padding: calc(var(--space-10) + 60px) var(--space-5) var(--space-8);
        min-height: 100svh;
    }

    .hero-content {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .hero-title {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-5);
        align-items: center;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* ── Marquee ────────────────────────────── */
    .marquee-item {
        font-size: 0.8rem;
        gap: 1.2rem;
        padding: 0 1.2rem;
    }

    /* ── Grids — single column ─────────────── */
    .benefits-grid,
    .services-grid,
    .doctors-grid,
    .faq-grid,
    .referrer-features,
    .steps-container {
        grid-template-columns: 1fr !important;
    }

    .services-grid {
        gap: var(--space-4);
    }

    .service-card {
        text-align: left;
        display: flex;
        align-items: center;
        gap: var(--space-4);
        padding: var(--space-5) var(--space-6);
    }

    .service-card .service-icon {
        margin-bottom: 0;
    }

    /* ── Cards — touch-friendly padding ────── */
    .benefit-card,
    .service-card,
    .doctor-card,
    .referrer-card {
        padding: var(--space-6);
    }

    .step-card {
        padding-top: var(--space-6);
    }

    /* ── Split sections ────────────────────── */
    .split-section {
        padding: 0 var(--space-5);
    }

    /* ── About section ─────────────────────── */
    .about-content {
        padding: 0 var(--space-5);
    }

    /* ── Accordion / FAQ ───────────────────── */
    .faq-question {
        padding: var(--space-5) var(--space-5);
        font-size: 0.95rem;
    }

    .faq-answer-inner {
        padding: 0 var(--space-5) var(--space-5);
    }

    .accordion-trigger {
        padding: var(--space-4) var(--space-5);
        font-size: 0.95rem;
    }

    .accordion-body-inner {
        padding: 0 var(--space-5) var(--space-5) 2.8rem;
    }

    /* ── Contact Form ──────────────────────── */
    .contact-grid {
        padding: 0;
    }

    .contact-form {
        gap: var(--space-4);
    }

    .form-input,
    .form-textarea {
        padding: 0.85rem 1rem;
        font-size: 16px;
        /* prevents iOS zoom on focus */
    }

    /* ── Footer — compact 2-col on mobile ──── */
    .footer {
        padding: var(--space-8) var(--space-5) var(--space-6);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: left;
    }

    .footer-brand {
        text-align: left;
        padding-bottom: var(--space-5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-logo {
        height: 70px;
        margin: 0;
    }

    .footer-brand p {
        max-width: 100%;
        margin: var(--space-4) 0 0;
        text-align: left;
        font-size: 0.85rem;
    }

    /* Nav columns — 2 side by side */
    .footer-top>div:not(.footer-brand) {
        display: inline-block;
        vertical-align: top;
        width: 48%;
    }

    .footer-nav-title {
        margin-bottom: var(--space-4);
        font-size: 0.65rem;
    }

    .footer-nav-list {
        gap: 0.5rem;
    }

    .footer-nav-list a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding-top: var(--space-5);
    }

    /* ── Case Tags — smaller on mobile ─────── */
    .case-tags {
        justify-content: center;
    }

    .case-tag {
        font-size: 0.78rem;
        padding: 0.4rem 1rem;
    }

    /* ── Disable 3D TILT only — fill animations still work ── */
    /* The fill sweep uses ::before height/width, not transform,
       so disabling rotateX/Y here doesn't affect them */

    /* ── Section centered headers on mobile ── */
    .section-header {
        text-align: center;
    }

    .section-label {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    .section {
        padding: var(--space-8) 0;
    }

    .hero-title {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
    }

    .hero-cta-group .btn {
        max-width: 100%;
        font-size: 0.85rem;
        padding: 0.8rem 1.5rem;
    }

    .benefit-card,
    .doctor-card,
    .service-card {
        padding: var(--space-5);
    }

    .referrer-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .navbar {
        padding: 0.3rem 0.75rem;
    }

    .nav-logo {
        height: 42px;
    }

    /* Safe area for notched phones */
    .hero {
        padding-top: calc(var(--space-9) + 60px + env(safe-area-inset-top, 0px));
    }

    .footer {
        padding-bottom: calc(var(--space-7) + env(safe-area-inset-bottom, 0px));
    }
}

/* ---------- Smooth Scroll Indicator ---------- */
.scroll-indicator {
    display: none;
}

.scroll-indicator span {
    font-size: var(--fs-caption);
    font-weight: var(--fw-light);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.4);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(245, 245, 245, 0.6), transparent);
    animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }

    50.01% {
        transform-origin: bottom;
    }

    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ---------- Cursor Glow (Desktop only) ---------- */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: var(--radius-full);
    background: radial-gradient(circle, rgba(26, 79, 139, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ---------- Loading animation ---------- */

/* ---------- Accessibility: Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-slide {
        transition: opacity 0.01ms !important;
    }

    .marquee-track {
        animation: none !important;
    }
}