/* =====================================================================
   Ayurharsha – home.css (REWRITE v2)
   - Fully mobile-responsive (320px → 4K)
   - Premium upgraded navbar with mega-menu + slide-in mobile drawer
   - Touch-first: 44px minimum tap targets
   - Fluid typography with clamp()
   - Respects prefers-reduced-motion
   ===================================================================== */

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary green color scheme */
    --primary-green: #2e7d32;
    --secondary-green: #4caf50;
    --accent-green: #81c784;
    --light-green: #e8f5e9;
    --dark-green: #1b5e20;
    --text-dark: #2c3e50;
    --text-light: #5e6f7d;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --gray-light: #f1f8e9;

    /* Fluid navbar heights */
    --nav-height: 72px;
    --nav-height-mobile: 64px;

    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;

    /* Spacing */
    --section-padding: clamp(48px, 8vw, 80px) clamp(16px, 4vw, 20px);
    --container-width: 1200px;

    /* Shadows */
    --shadow-light: 0 5px 15px rgba(0, 40, 0, 0.08);
    --shadow-medium: 0 10px 25px rgba(0, 40, 0, 0.12);
    --shadow-strong: 0 20px 45px rgba(0, 40, 0, 0.18);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.loading { overflow: hidden; }
body.nav-open { overflow: hidden; }

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Skip-to-content link for accessibility (WCAG 2.1 AA) */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 10000;
    padding: 10px 18px;
    background: var(--dark-green);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.skip-to-content:focus {
    left: 16px;
    outline: 3px solid var(--accent-green);
    outline-offset: 2px;
}

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(129, 199, 132, 0.4), transparent 45%),
        linear-gradient(135deg, #f7fcf2 0%, #ffffff 100%);
    z-index: 2000;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-inner p { margin: 18px 0 0; font-weight: 500; color: var(--dark-green); }
.loader-leaf-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 2px solid rgba(46, 125, 50, 0.16);
    border-top-color: var(--primary-green);
    display: grid;
    place-items: center;
    margin: 0 auto;
    animation: spin 1.2s linear infinite;
    box-shadow: 0 10px 30px rgba(27, 94, 32, 0.12);
    background: rgba(255, 255, 255, 0.9);
}
.loader-leaf-ring i { font-size: 2rem; color: var(--primary-green); }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

section[id],
[id].treatment-card,
[id].disease-card {
    scroll-margin-top: calc(var(--nav-height) + 20px);
}

/* ===== TYPOGRAPHY (fluid) ===== */
h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-green);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h4 { font-size: clamp(1.05rem, 2.2vw, 1.4rem); }

p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    font-size: clamp(0.95rem, 1.8vw, 1rem);
}

a {
    text-decoration: none;
    color: var(--primary-green);
    transition: color var(--transition-fast);
}
a:hover { color: var(--secondary-green); }

.section-header { text-align: center; margin-bottom: clamp(36px, 6vw, 60px); }
.section-header p { max-width: 700px; margin: 0 auto; font-size: clamp(1rem, 1.8vw, 1.1rem); }

.highlight {
    color: var(--primary-green);
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--light-green);
    z-index: -1;
    border-radius: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    min-height: 44px;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.2;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: var(--white);
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}
.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* =====================================================================
   ====== UPGRADED PREMIUM NAVBAR ======================================
   ===================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 rgba(27, 94, 32, 0.06);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: box-shadow .25s ease, padding .25s ease, background-color .25s ease;
}
/* Scrolled / solid state */
.main-header.is-scrolled {
    padding: 6px 0;
    background-color: rgba(255, 255, 255, 0.99);
    box-shadow: var(--shadow-light);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: var(--nav-height);
    flex-wrap: nowrap;
}
/* R4: allow more horizontal breathing room on wide screens */
@media (min-width: 1440px) {
    .main-header .container { gap: 16px; }
}

/* Brand / Logo — R4: slightly reduced desktop size for nav balance */
.logo {
    flex: 0 0 auto;
    min-width: 0;
}
.logo a {
    display: inline-flex;
    align-items: center;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    font-weight: 700;
    color: var(--dark-green);
    font-family: var(--heading-font);
    letter-spacing: .2px;
    white-space: nowrap;
}
.logo i {
    color: var(--primary-green);
    margin-right: 9px;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

/* =====================================================================
   R4 FIX: Desktop utility strip (Call + WhatsApp pills)
   - Was: shown from 1024px causing overflow/wrap with 7 nav items
   - Now: shown from 1280px+, compact sizing, nowrap, tabular-nums
   - Short number format at 1280-1439px, full number at 1440px+
   ===================================================================== */
.nav-utility {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 10px;
    flex: 0 0 auto;
}
.nav-utility a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    background: var(--light-green);
    color: var(--dark-green);
    white-space: nowrap;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: .1px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-utility a:hover {
    background: var(--primary-green);
    color: #fff;
    transform: translateY(-1px);
}
.nav-utility a:hover i { color: #fff; }
.nav-utility a i { color: var(--primary-green); font-size: .85rem; transition: color .2s ease; }
/* R4: phone number display variants — short (mid-desktop) vs full (xl desktop) */
.nav-utility .phone-full { display: none; }
.nav-utility .phone-short { display: inline; }

/* R4: Show utility strip only when there's real room (>=1280px) */
@media (min-width: 1280px) {
    .nav-utility { display: inline-flex; }
}
/* R4: Show full 10-digit phone on large desktops */
@media (min-width: 1440px) {
    .nav-utility .phone-full { display: inline; }
    .nav-utility .phone-short { display: none; }
    .nav-utility a { font-size: .85rem; padding: 7px 14px; }
}

/* Desktop nav list — R4: tightened spacing to prevent wrap */
.main-nav {
    display: flex;
    align-items: center;
    min-width: 0;
}
.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 9px 11px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .92rem;
    line-height: 1;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}
/* R4: widen padding back on XL screens for visual balance */
@media (min-width: 1440px) {
    .nav-list { gap: 4px; }
    .nav-list > li > a { padding: 10px 14px; font-size: .95rem; gap: 8px; }
}
.nav-list > li > a i { font-size: .85rem; color: var(--primary-green); }
.nav-list > li > a:hover { color: var(--primary-green); background: var(--light-green); }
.nav-list > li > a.active {
    color: var(--primary-green);
    background: var(--light-green);
    font-weight: 600;
}
.nav-list > li > a.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-green);
}

/* Dropdown – desktop hover/click */
.dropdown > .dropdown-toggle .fa-chevron-down {
    transition: transform .25s ease;
    font-size: .7rem;
    margin-left: 2px;
}
.dropdown.is-open > .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

/* Mega dropdown panel */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    background: var(--white);
    list-style: none;
    padding: 10px;
    border-radius: 14px;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(129, 199, 132, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 1001;
    max-height: calc(100vh - var(--nav-height) - 40px);
    overflow-y: auto;
}
/* Invisible hover bridge so menu doesn't close on gap */
.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    bottom: -10px;
    pointer-events: none;
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: .9rem;
    transition: background .2s ease, color .2s ease;
}
.dropdown-menu a:hover {
    background: var(--light-green);
    color: var(--primary-green);
    padding-left: 18px;
}

/* Show dropdown (JS toggles .is-open; desktop also on hover) */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu,
    .dropdown:focus-within > .dropdown-menu,
    .dropdown.is-open > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    /* Treatments dropdown gets 2-column mega feel */
    .nav-list > li.dropdown.mega > .dropdown-menu {
        min-width: 460px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
    }
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
    display: none;
    background: var(--light-green);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--dark-green);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background .2s ease, transform .2s ease;
}
.menu-toggle:hover { background: var(--accent-green); color: var(--white); }
.menu-toggle .hamburger-lines,
.menu-toggle .hamburger-lines::before,
.menu-toggle .hamburger-lines::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s ease, top .3s ease, bottom .3s ease, opacity .2s ease;
}
.menu-toggle .hamburger-lines {
    position: relative;
}
.menu-toggle .hamburger-lines::before {
    position: absolute;
    top: -7px;
    left: 0;
}
.menu-toggle .hamburger-lines::after {
    position: absolute;
    bottom: -7px;
    left: 0;
}
/* X animation when open */
body.nav-open .menu-toggle .hamburger-lines { background: transparent; }
body.nav-open .menu-toggle .hamburger-lines::before { top: 0; transform: rotate(45deg); }
body.nav-open .menu-toggle .hamburger-lines::after  { bottom: 0; transform: rotate(-45deg); }

/* Scrim behind mobile drawer */
.nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(27, 94, 32, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 998;
}
body.nav-open .nav-scrim {
    opacity: 1;
    visibility: visible;
}

/* ===== MOBILE NAV (≤ 991px) ===== */
@media (max-width: 991px) {
    :root { --nav-height: var(--nav-height-mobile); }

    .menu-toggle { display: inline-flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        height: 100vh;
        width: min(86%, 360px);
        background: #fff;
        box-shadow: -16px 0 40px rgba(27, 94, 32, 0.18);
        padding: calc(var(--nav-height-mobile) + 16px) 20px 30px;
        transform: translateX(100%);
        transition: transform .35s cubic-bezier(.4, 0, .2, 1);
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 999;
    }
    body.nav-open .main-nav { transform: translateX(0); }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
    }
    .nav-list > li { width: 100%; }
    .nav-list > li > a {
        padding: 14px 14px;
        font-size: 1rem;
        border-radius: 10px;
        min-height: 48px;
        justify-content: flex-start;
    }
    .nav-list > li > a.active::after { display: none; }

    /* Dropdown toggle gets a separate chevron button */
    .dropdown > .dropdown-toggle { position: relative; padding-right: 48px; }
    .dropdown > .dropdown-toggle .fa-chevron-down {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px; height: 20px;
        display: grid; place-items: center;
    }
    .dropdown.is-open > .dropdown-toggle .fa-chevron-down {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Mobile dropdown becomes collapsible section */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--accent-green);
        border-radius: 0;
        margin: 2px 0 8px 14px;
        padding: 4px 0 4px 10px;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
    }
    .dropdown.is-open > .dropdown-menu {
        max-height: 900px;
    }
    .dropdown-menu a {
        padding: 12px 12px;
        font-size: .95rem;
        min-height: 44px;
    }

    /* Bottom utility row in drawer */
    .nav-drawer-cta {
        display: flex;
        gap: 10px;
        margin-top: 22px;
        padding-top: 18px;
        border-top: 1px solid var(--light-green);
    }
    .nav-drawer-cta a {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        font-size: .9rem;
    }
    .nav-drawer-cta .call { background: var(--primary-green); color: #fff; }
    .nav-drawer-cta .wa   { background: #25d366; color: #fff; }
}
@media (min-width: 992px) {
    .nav-drawer-cta { display: none !important; }
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: var(--nav-height);
    padding: clamp(60px, 10vw, 100px) 0;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--white) 100%);
    min-height: auto;
    display: flex;
    align-items: center;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
}
.hero-content { max-width: 600px; }
.hero-subtitle {
    display: inline-block;
    font-size: clamp(.9rem, 1.6vw, 1.1rem);
    color: var(--primary-green);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: var(--light-green);
    padding: 5px 15px;
    border-radius: 30px;
}
.hero-content h1 { margin-bottom: 20px; }
.hero-content p { font-size: clamp(1rem, 1.8vw, 1.1rem); margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-visual-card {
    width: min(100%, 480px);
    padding: clamp(14px, 2.5vw, 22px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(27, 94, 32, 0.14);
    border: 1px solid rgba(129, 199, 132, 0.45);
    backdrop-filter: blur(8px);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--light-green);
    color: var(--dark-green);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 16px;
}
.hero-visual-main,
.hero-visual-mini {
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(232, 245, 233, 0.8));
}
.hero-visual-main {
    height: clamp(220px, 42vw, 320px);
    box-shadow: var(--shadow-light);
}
.hero-visual-main img,
.hero-visual-mini img,
.feed-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-visual-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.hero-visual-mini { height: clamp(90px, 18vw, 120px); }
.hero-visual-main img { animation: float 6s ease-in-out infinite; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.5; }
}

/* ===== USP SECTION ===== */
.usp { padding: var(--section-padding); background-color: var(--white); }
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: clamp(18px, 3vw, 30px);
}
.usp-card {
    background-color: var(--light-green);
    padding: clamp(22px, 3vw, 30px);
    border-radius: 20px;
    text-align: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
}
.usp-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    background-color: var(--white);
    border: 1px solid var(--accent-green);
}
.usp-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px;
    color: var(--white); font-size: 2rem;
}
.usp-card h3 { margin-bottom: 15px; color: var(--dark-green); }
.usp-card p  { margin-bottom: 0; }

/* ===== TREATMENTS ===== */
.treatments { padding: var(--section-padding); background-color: var(--light-green); }
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(18px, 3vw, 30px);
    margin-bottom: clamp(28px, 5vw, 50px);
}
.treatment-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
}
.treatment-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-medium); }
.treatment-image { height: clamp(160px, 26vw, 200px); background-size: cover; background-position: center; transition: transform var(--transition-fast); }
.treatment-image-cover { background-color: var(--light-green); }
.treatment-card:hover .treatment-image { transform: scale(1.05); }
.treatment-content { padding: clamp(18px, 2.6vw, 25px); }
.treatment-content h3 { margin-bottom: 10px; color: var(--dark-green); }
.treatment-content p { margin-bottom: 15px; }
.treatment-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-green);
    min-height: 40px;
}
.treatment-link i { margin-left: 5px; transition: transform var(--transition-fast); }
.treatment-link:hover i { transform: translateX(5px); }
.section-cta { text-align: center; }

/* ===== SOCIAL MEDIA ===== */
.social-media { padding: var(--section-padding); background-color: var(--white); }
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 5vw, 50px);
    align-items: center;
}
.social-content h2 { margin-bottom: 20px; }
.social-links-wrapper {
    display: flex;
    gap: clamp(12px, 2vw, 20px);
    margin-top: 30px;
    flex-wrap: wrap;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--light-green);
    border-radius: 50%;
    color: var(--primary-green);
    font-size: 1.6rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
}
.social-link:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.social-feed-preview {
    background: var(--light-green);
    padding: clamp(20px, 3vw, 30px);
    border-radius: 30px;
    box-shadow: var(--shadow-light);
}
.feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}
.feed-item {
    height: clamp(90px, 18vw, 120px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(129, 199, 132, 0.18);
    transition: transform var(--transition-fast);
}
.feed-item:hover { transform: scale(1.02); }
.feed-caption { text-align: center; font-style: italic; margin-bottom: 0; }

/* Scroll reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .75s ease, transform .75s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* ===== REVIEWS ===== */
.reviews { padding: var(--section-padding); background-color: var(--light-green); }
.reviews-slider { max-width: 800px; margin: 0 auto; position: relative; }
.review-card {
    display: none;
    background: var(--white);
    padding: clamp(24px, 4vw, 40px);
    border-radius: 30px;
    box-shadow: var(--shadow-light);
    text-align: center;
    animation: fadeIn 0.5s ease;
}
.review-card.active { display: block; }
.review-rating { margin-bottom: 20px; color: #f1c40f; font-size: 1.2rem; }
.review-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}
.reviewer { display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; }
.reviewer-avatar {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.5rem;
    flex-shrink: 0;
}
.reviewer-info h4 { margin-bottom: 5px; color: var(--dark-green); }
.reviewer-info span { color: var(--text-light); font-size: .9rem; }
.review-nav {
    display: flex; justify-content: center; align-items: center;
    margin-top: 30px; gap: 20px; flex-wrap: wrap;
}
.review-prev, .review-next {
    background: var(--white);
    color: var(--primary-green);
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
}
.review-prev:hover, .review-next:hover { background: var(--primary-green); color: var(--white); transform: scale(1.1); }
.review-dots { display: flex; gap: 10px; }
.r-dot { width: 12px; height: 12px; border-radius: 50%; background-color: var(--accent-green); cursor: pointer; transition: background-color var(--transition-fast); }
.r-dot.active { background-color: var(--primary-green); transform: scale(1.2); }

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--dark-green);
    color: rgba(255, 255, 255, 0.8);
    padding: clamp(48px, 7vw, 70px) 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: clamp(28px, 4vw, 40px);
    margin-bottom: clamp(30px, 5vw, 50px);
}
.footer-col h3 {
    color: var(--white);
    margin-bottom: 22px;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background-color: var(--accent-green);
}
.footer-logo {
    display: flex; align-items: center;
    font-size: 1.8rem; font-weight: 700;
    color: var(--white); margin-bottom: 20px;
    font-family: var(--heading-font);
}
.footer-logo i { color: var(--accent-green); margin-right: 10px; font-size: 2rem; }
.footer-about p { color: rgba(255, 255, 255, 0.7); margin-bottom: 25px; }
.footer-social { display: flex; gap: 15px; flex-wrap: wrap; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition-fast);
}
.footer-social a:hover { background-color: var(--accent-green); color: var(--dark-green); transform: translateY(-3px); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    display: inline-block;
    padding: 4px 0;
    min-height: 32px;
}
.footer-col ul li a:hover { color: var(--accent-green); padding-left: 5px; }
.contact-info li { display: flex; margin-bottom: 18px; }
.contact-info i { color: var(--accent-green); margin-right: 15px; font-size: 1.1rem; margin-top: 5px; flex-shrink: 0; }
.contact-info span { line-height: 1.5; color: rgba(255, 255, 255, 0.7); word-break: break-word; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; text-align: center; }
.footer-bottom p { color: rgba(255, 255, 255, 0.6); margin-bottom: 0; font-size: .9rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: var(--accent-green); }

/* Legal pages wrap */
.legal-wrap {
    max-width: 820px;
    margin: calc(var(--nav-height) + 40px) auto 80px;
    padding: 0 clamp(16px, 4vw, 24px);
    line-height: 1.75;
    color: var(--text-dark);
}
.legal-wrap h1 { font-family: var(--heading-font); color: var(--dark-green); margin-bottom: 30px; }
.legal-wrap h2 { color: var(--primary-green); margin-top: 36px; margin-bottom: 12px; }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;  /* moved to LEFT so it doesn't clash with sticky-cta on right */
    width: 48px;
    height: 48px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
    box-shadow: var(--shadow-medium);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--secondary-green); transform: translateY(-3px); }

/* ===== KEYFRAMES ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* =====================================================================
   ====== RESPONSIVE BREAKPOINTS (global refinements) ==================
   ===================================================================== */

/* Tablet */
@media (max-width: 991px) {
    section[id], [id].treatment-card, [id].disease-card {
        scroll-margin-top: calc(var(--nav-height-mobile) + 16px);
    }
    .hero { margin-top: var(--nav-height-mobile); }
}

/* Mobile (≤ 768px) – compress hero to single column, tighten everything */
@media (max-width: 768px) {
    .hero .container,
    .social-grid {
        grid-template-columns: 1fr;
    }
    .hero { padding: 56px 0; }
    .hero-buttons .btn { flex: 1 1 160px; }
    .hero-visual-card { padding: 16px; }
    .hero-visual-main { height: 240px; }
    .social-link { width: 48px; height: 48px; font-size: 1.3rem; }
    .review-card { padding: 24px 18px; }
    .btn { padding: 12px 22px; letter-spacing: .5px; }
    /* Full-bleed cards with safer padding */
    .usp-card, .treatment-card { margin: 0; }
    /* Back to top smaller */
    .back-to-top { width: 44px; height: 44px; bottom: 82px; left: 16px; }
}

/* Small mobile */
@media (max-width: 480px) {
    .logo a { font-size: 1.2rem; }
    .logo i { font-size: 1.4rem; }
    .hero-visual-main { height: 200px; }
    .hero-subtitle { font-size: .85rem; letter-spacing: 1.2px; }
    .footer-logo { font-size: 1.5rem; }
    .footer-logo i { font-size: 1.6rem; }
}

/* =====================================================================
   ====== LEAD GENERATION + TRUST ADDITIONS (audit fix pack) ===========
   ===================================================================== */
.sticky-cta {
    position: fixed;
    right: 16px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 998;
}
.sticky-cta a {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}
.sticky-cta a:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.22); }
.sticky-cta .cta-call { background: var(--primary-green); color: #fff; }
.sticky-cta .cta-wa   { background: #25d366; color: #fff; }
.sticky-cta .cta-appt { background: var(--dark-green); color: #fff; }

@media (max-width: 480px) {
    .sticky-cta { right: 12px; bottom: 12px; gap: 8px; }
    .sticky-cta a { width: 48px; height: 48px; font-size: 1.1rem; }
}

/* Form feedback states */
.form-feedback {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    display: none;
}
.form-feedback.show { display: block; }
.form-feedback.success { background: #e8f5e9; color: #1b5e20; border: 1px solid #81c784; }
.form-feedback.error   { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }

/* Accessible focus rings (WCAG) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #81c784;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Forms – global mobile friendly defaults */
input, select, textarea, button {
    font-family: inherit;
    font-size: 16px; /* iOS: prevents auto-zoom on focus */
}
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="url"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfe3cf;
    border-radius: 10px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
    min-height: 44px;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46,125,50,.12);
    outline: none;
}

/* Tables responsive helper */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Map iframes responsive */
iframe {
    max-width: 100%;
}
.map-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}
.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Prevent layout shift: reserve image aspect before load */
img[loading="lazy"] { background: var(--light-green); }

/* Print styles */
@media print {
    .main-header, .sticky-cta, .back-to-top, .menu-toggle, .nav-scrim, .page-loader { display: none !important; }
    body { color: #000; }
}

/* =====================================================================
   ROUND 3 ADDITIONS
   - Cookie consent banner
   - Semantic treatment / disease image cards (replacing background-image)
   - Enhanced focus styles for keyboard users
   - Doctor card (about page Physician schema UI)
   ===================================================================== */

/* ---- Cookie consent banner ---- */
.ah-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid rgba(46, 125, 50, 0.18);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(27, 94, 32, 0.18);
    padding: 16px 20px;
    animation: ah-consent-in 260ms ease-out both;
}
@keyframes ah-consent-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0);    }
}
.ah-consent-hidden { opacity: 0; transform: translateY(24px); transition: all 260ms ease-in; }
.ah-consent-inner {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}
.ah-consent-text { flex: 1 1 320px; font-size: 0.95rem; color: var(--text-dark); line-height: 1.55; }
.ah-consent-text a { color: var(--primary-green); text-decoration: underline; }
.ah-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ah-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 18px;
    min-height: 44px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms, transform 120ms, box-shadow 150ms;
}
.ah-btn-solid  { background: var(--primary-green); color: #fff; }
.ah-btn-solid:hover  { background: var(--dark-green); box-shadow: 0 6px 14px rgba(27,94,32,0.25); }
.ah-btn-light  { background: var(--light-green); color: var(--dark-green); border-color: rgba(46,125,50,0.25); }
.ah-btn-light:hover  { background: #dcedc8; }
.ah-btn-ghost  { background: transparent; color: var(--text-dark); border-color: #cfd8dc; }
.ah-btn-ghost:hover  { background: #f1f8e9; }
.ah-btn:focus-visible { outline: 3px solid #81c784; outline-offset: 2px; }
@media (max-width: 640px) {
    .ah-consent-actions .ah-btn { flex: 1 1 45%; }
}

/* ---- Semantic image cards (replace CSS background-image usage) ---- */
.t-card, .d-card { /* treatment / disease card wrapper */
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(129,199,132,0.35);
    transition: transform 200ms, box-shadow 200ms;
}
.t-card:hover, .d-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }
.t-card-media, .d-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--light-green);
}
.t-card-media img, .d-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}
.t-card:hover .t-card-media img,
.d-card:hover .d-card-media img { transform: scale(1.05); }
.t-card-media::after, .d-card-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(22,73,30,0) 55%, rgba(22,73,30,0.45) 100%);
    pointer-events: none;
}
.t-card-body, .d-card-body { padding: 20px 22px 24px; }
.t-card-body h3, .d-card-body h3 { margin: 0 0 8px; font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
.t-card-body p,  .d-card-body p  { color: var(--text-light); font-size: 0.95rem; margin-bottom: 14px; }

/* ---- Doctor card (for about page Physician schema UI) ---- */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.doctor-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    border: 1px solid rgba(129,199,132,0.35);
    box-shadow: var(--shadow-light);
    text-align: center;
}
.doctor-card .doctor-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(145deg, #e8f5e9, #d0e8d2);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-green);
    font-size: 3rem;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(46,125,50,0.18);
}
.doctor-card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.doctor-card .doctor-title { color: var(--primary-green); font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; }
.doctor-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.55; }
.doctor-card ul.doctor-creds {
    list-style: none; padding: 0; margin: 12px 0 0;
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.doctor-card ul.doctor-creds li {
    background: var(--light-green);
    color: var(--dark-green);
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 4px 10px;
}

/* ---- Accessible FAQ accordion ---- */
.faq-accordion details {
    border: 1px solid rgba(129,199,132,0.35);
    border-radius: 14px;
    margin-bottom: 10px;
    background: #fff;
    transition: box-shadow 150ms;
}
.faq-accordion details[open] { box-shadow: var(--shadow-light); }
.faq-accordion summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    color: var(--text-dark);
    min-height: 44px;
    display: flex; align-items: center; gap: 10px;
    list-style: none;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
    content: '\2b'; margin-left: auto; color: var(--primary-green); transition: transform 180ms;
}
.faq-accordion details[open] summary::after { transform: rotate(45deg); }
.faq-accordion summary:focus-visible { outline: 3px solid #81c784; outline-offset: 2px; border-radius: 14px; }
.faq-accordion .faq-body { padding: 0 18px 16px; color: var(--text-light); line-height: 1.65; }

/* ---- Noscript banner ---- */
.noscript-banner {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    color: #5d4037;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 16px;
    text-align: center;
}

/* =====================================================================
   ROUND 6 — Blog / post helper styles (Phase 6 additions)
   ===================================================================== */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.highlight {
    color: var(--primary-green);
    position: relative;
}
