/* ─────────────────────────────────────────────────────────────────────────
   Biharilal Prakirtik Arogya Sadan
   Premium Wellness & Naturopathy — Earthy Serene Design System
   ────────────────────────────────────────────────────────────────────────── */

/* ─── DESIGN TOKENS ──────────────────────────────────────────────────── */
:root {
    /* Brand palette — aligned with the Biharilal Prakritik Aarogya Sadan logo
       Forest-green primary · saffron-gold accent · maroon ribbon · cream canvas
       Traditional Indian Ayurvedic identity, refined for the web */
    --sage-green: #94A990;          /* refined grey-green atmosphere */
    --sage-green-dark: #6E8569;
    --forest-green: #14402B;        /* logo green — deep forest emerald */
    --forest-green-deep: #0A2A1D;   /* near-black emerald for depth */
    --cream: #FAF5E7;               /* warm ivory, slight golden tint */
    --cream-warm: #F2E6C8;          /* logo-circle beige */
    --warm-beige: #E6D2A8;          /* deeper saffron-beige */
    --soft-gold: #D0832E;           /* saffron-gold — the Om accent */
    --soft-gold-light: #E5A862;     /* lighter saffron for highlights */
    --terracotta: #8E2A2A;          /* maroon — the ribbon red */

    --dark-text: #1A1F1C;           /* charcoal with subtle green undertone */
    --light-text: #5C615E;          /* improved contrast over old #6B6B6B */
    --muted-text: #8E928F;
    --white: #FFFFFF;

    /* Effects — layered shadows tinted with the new emerald primary */
    --glass: rgba(255, 255, 255, 0.7);
    --glass-strong: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-xs: 0 1px 2px rgba(20, 64, 43, 0.04);
    --shadow-sm: 0 4px 12px rgba(20, 64, 43, 0.06);
    --shadow-md: 0 12px 32px rgba(20, 64, 43, 0.08);
    --shadow-lg: 0 24px 60px rgba(20, 64, 43, 0.12);
    --shadow-xl: 0 40px 100px rgba(20, 64, 43, 0.18);
    --shadow-soft: var(--shadow-sm);
    --shadow-premium: var(--shadow-lg);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition: all 0.5s var(--ease-out);
    --transition-fast: all 0.25s var(--ease-out);

    /* Scale */
    --section-padding: clamp(50px, 6vw, 90px) 0;
    --container-max: 1240px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --radius-pill: 999px;
}

/* ─── RESET ──────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--soft-gold); color: var(--white); }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--dark-text);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--forest-green);
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-weight: 700;
}
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── CONTAINERS ─────────────────────────────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.container-full { width: 100%; padding: 0; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────── */
.eyebrow {
    display: inline-block;
    color: var(--soft-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin-bottom: 18px;
    position: relative;
    padding-left: 38px;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 1px;
    background: var(--soft-gold);
    transform: translateY(-50%);
    opacity: 0.6;
}
.eyebrow.center { padding-left: 0; }
.eyebrow.center::before { display: none; }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title span {
    display: inline-block;
    color: var(--soft-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 18px;
    font-family: 'Inter', sans-serif;
}
.section-title h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    max-width: 820px;
    margin: 0 auto;
}
.section-title p {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Ornamental divider — leaf accent */
.divider-leaf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 22px auto;
}
.divider-leaf::before,
.divider-leaf::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--soft-gold));
}
.divider-leaf::after { background: linear-gradient(to left, transparent, var(--soft-gold)); }
.divider-leaf i { color: var(--soft-gold); font-size: 0.9rem; }

/* ─── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background-color: var(--forest-green);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(20, 64, 43, 0.25);
}
.btn-primary:hover {
    background-color: var(--forest-green-deep);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(20, 64, 43, 0.40);
}
.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--forest-green);
    color: var(--forest-green);
}
.btn-outline:hover {
    background-color: var(--forest-green);
    color: var(--white);
    transform: translateY(-3px);
}
.btn-outline-dark {
    background: transparent;
    border: 1.5px solid var(--forest-green);
    color: var(--forest-green);
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}
.btn-outline-dark:hover {
    background: var(--forest-green);
    color: var(--white);
    transform: translateY(-3px);
}
.btn-gold {
    background: var(--soft-gold);
    color: var(--forest-green);
    box-shadow: 0 12px 28px rgba(184, 153, 104, 0.32);
}
.btn-gold:hover {
    background: var(--soft-gold-light);
    color: var(--forest-green-deep);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(184, 153, 104, 0.42);
}
.btn-ghost-light {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}
.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    transform: translateY(-3px);
}
.btn-block { width: 100%; padding: 18px; font-size: 1.05rem; }

/* ─── HEADER ─────────────────────────────────────────────────────────── */
.main-header {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s var(--ease-out);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.main-header.scrolled,
.main-header.solid-nav {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(20, 64, 43, 0.08);
    border-bottom: 1px solid rgba(20, 64, 43, 0.05);
}
.main-header.scrolled .logo img,
.main-header.solid-nav .logo img { height: 44px; }
.main-header.scrolled .brand-name,
.main-header.solid-nav .brand-name {
    color: var(--forest-green);
    font-size: 1.3rem;
}

/* Home transparent override */
body.home-page .main-header:not(.scrolled) {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
body.home-page .main-header:not(.scrolled) .brand-name,
body.home-page .main-header:not(.scrolled) .brand-sub,
body.home-page .main-header:not(.scrolled) .nav-menu > li > a {
    color: var(--white);
}
body.home-page .main-header:not(.scrolled) .mobile-toggle .bar {
    background: var(--white);
}

.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; transition: transform 0.3s ease; }
.logo:hover { transform: translateY(-1px); }
.logo img { height: 52px; transition: height 0.3s ease; }
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--forest-green);
    line-height: 1;
    transition: color 0.3s ease, font-size 0.3s ease;
    letter-spacing: -0.01em;
}
.brand-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sage-green);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu > li > a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--forest-green);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    padding: 8px 0;
}
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--soft-gold);
    transition: all 0.35s var(--ease-out);
    transform: translateX(-50%);
}
.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after { width: 100%; }
.nav-menu > li > a:hover { color: var(--soft-gold); }
.nav-menu > li.dropdown:hover > a i { transform: rotate(180deg); }
.nav-menu > li.dropdown > a i { transition: transform 0.3s var(--ease-out); }


/* Mobile toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.mobile-toggle .bar {
    width: 28px;
    height: 2px;
    background-color: var(--forest-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active .bar:nth-child(2) { opacity: 0; }
.mobile-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: var(--white);
    border: 1px solid rgba(20, 64, 43, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px;
    box-shadow: 0 15px 45px rgba(20, 64, 43, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 1001;
}

/* Small arrow pointing up */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-top: 1px solid rgba(20, 64, 43, 0.08);
    border-left: 1px solid rgba(20, 64, 43, 0.08);
}

.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu li { width: 100%; }
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px !important;
    font-size: 0.93rem;
    color: var(--forest-green) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}
.dropdown-menu a i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    color: var(--sage-green);
    transition: color 0.3s ease;
}
.dropdown-menu a::after { display: none !important; }
.dropdown-menu a:hover {
    background: rgba(20, 64, 43, 0.04);
    color: var(--soft-gold) !important;
    padding-left: 22px !important;
}
.dropdown-menu a:hover i {
    color: var(--soft-gold);
}


/* ─── PAGE HERO (SMALL) ─────────────────────────────────────────── */
.page-hero-small {
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}


.page-hero-small .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.page-hero-small .container {
    position: relative;
    z-index: 2;
}

.page-hero-small h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--white);
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.page-hero-small .eyebrow {
    display: block;
    color: var(--soft-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}





/* ─── REUSABLE CARDS ─────────────────────────────────────────────────── */
.card-soft {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(20, 64, 43, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.card-soft:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 153, 104, 0.32);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.main-footer {
    background: linear-gradient(180deg, var(--forest-green) 0%, var(--forest-green-deep) 100%);
    color: var(--white);
    padding: 56px 0 18px;
    margin-top: 10px;
    position: relative;
}
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--soft-gold), transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
    gap: 36px;
    margin-bottom: 32px;
}
.footer-about h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}
.footer-about p { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; line-height: 1.65; }
.managed-by {
    font-size: 0.7rem;
    color: var(--sage-green);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-fast);
    font-size: 0.8rem;
}
.footer-social a:hover {
    background: var(--soft-gold);
    color: var(--forest-green);
    border-color: var(--soft-gold);
    transform: translateY(-2px);
}
.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 9px;
    font-weight: 600;
}
.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--soft-gold);
}
.footer-links li { margin-bottom: 7px; }
.footer-links a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
    transition: var(--transition-fast);
    display: inline-block;
}
.footer-links a:hover { color: var(--soft-gold); transform: translateX(4px); }
.contact-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.84rem;
    line-height: 1.5;
}
.contact-list i { color: var(--soft-gold); margin-top: 4px; min-width: 12px; font-size: 0.78rem; }
.contact-list a { color: inherit; transition: color 0.3s; }
.contact-list a:hover { color: var(--soft-gold); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom i.fa-heart { color: var(--soft-gold); margin: 0 4px; font-size: 0.72rem; }

/* ─── FLOATING ACTIONS ───────────────────────────────────────────────── */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.floating-actions a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.floating-actions a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}
.whatsapp-btn { background-color: #25D366; }
.call-btn { background-color: var(--forest-green-deep); }
.floating-actions a:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); }
.floating-actions a:hover::before { opacity: 0.1; inset: -6px; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-zoom { opacity: 0; transform: scale(0.96); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-zoom.active { opacity: 1; transform: scale(1); }

@keyframes float-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ─── DECORATIVE BACKGROUNDS ─────────────────────────────────────────── */
.section-pattern {
    position: relative;
    overflow: hidden;
}
.section-pattern::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(148, 169, 144, 0.08), transparent 70%);
    pointer-events: none;
}
.section-pattern::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 153, 104, 0.06), transparent 70%);
    pointer-events: none;
}

/* ─── PREMIUM FORM ───────────────────────────────────────────────────── */
.premium-form .form-row { display: flex; gap: 24px; }
.premium-form .form-group { flex: 1; margin-bottom: 22px; }
.premium-form label {
    display: block;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--forest-green);
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}
.premium-form input,
.premium-form select,
.premium-form textarea {
    width: 100%;
    padding: 16px 22px;
    border: 1.5px solid rgba(20, 64, 43, 0.10);
    border-radius: var(--radius-sm);
    background: #FCFAF5;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--dark-text);
    transition: var(--transition-fast);
}
.premium-form input::placeholder,
.premium-form textarea::placeholder { color: var(--muted-text); }
.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: var(--soft-gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(208, 131, 46, 0.08);
}

/* ─── GALLERY FILTER BUTTONS ─────────────────────────────────────────── */
.filter-btn {
    padding: 12px 28px;
    border: 1.5px solid rgba(20, 64, 43, 0.12);
    background: var(--white);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--forest-green);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}
.filter-btn.active,
.filter-btn:hover {
    background: var(--forest-green);
    color: var(--white);
    border-color: var(--forest-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(20, 64, 43, 0.22);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .section-title h2 { font-size: 2.3rem; }
    .premium-form .form-row { flex-direction: column; gap: 0; }
}

/* Navbar: switch to mobile drawer at tablet width (raised from 768px → 1100px)
   to prevent horizontal overflow with 7 nav items + dropdowns + logo. */
@media (max-width: 1100px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 380px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 28px 30px;
        gap: 0;
        transition: right 0.4s var(--ease-out);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
        align-items: flex-start;
        overflow-y: auto;
        z-index: 1000;
    }
    .nav-menu.active { right: 0; }
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(20, 64, 43, 0.07);
    }
    .nav-menu > li > a {
        padding: 16px 4px;
        width: 100%;
        color: var(--forest-green) !important;
        font-size: 0.95rem;
        justify-content: space-between;
    }
    .nav-menu > li > a::after { display: none; }
    .nav-menu .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: var(--cream);
        border: none;
        margin-top: 0;
        padding: 0 8px;
        min-width: 0;
        width: 100%;
        border-radius: 12px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s var(--ease-out), opacity 0.3s ease, padding 0.3s ease, margin-top 0.3s ease;
    }
    .nav-menu .dropdown-menu::before { display: none; }
    .nav-menu .dropdown.open .dropdown-menu {
        max-height: 600px;
        opacity: 1;
        visibility: visible;
        margin-top: 6px;
        padding: 8px 8px 12px;
    }
    .nav-menu .dropdown > a > .fa-chevron-down {
        transition: transform 0.3s ease;
        margin-left: auto;
    }
    .nav-menu .dropdown.open > a > .fa-chevron-down { transform: rotate(180deg); }
    .nav-menu .dropdown-menu li { border-bottom: none !important; }
    .nav-menu .dropdown-menu a,
    .nav-menu .dropdown-menu a:link,
    .nav-menu .dropdown-menu a:visited {
        display: block;
        padding: 10px 14px !important;
        font-size: 0.88rem;
        color: var(--forest-green) !important;
        font-weight: 500;
        background: transparent;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-menu .dropdown-menu a:hover,
    .nav-menu .dropdown-menu a:focus,
    .nav-menu .dropdown-menu a:active {
        background: rgba(184, 153, 104, 0.16) !important;
        color: var(--forest-green) !important;
        padding-left: 18px !important;
    }
    /* Override home-page transparent-header rule that turns top-level links white */
    body.home-page .main-header:not(.scrolled) .nav-menu > li > a,
    body.home-page .main-header:not(.scrolled) .nav-menu .dropdown-menu a {
        color: var(--forest-green) !important;
    }
    .mobile-toggle { display: flex; }

    /* Backdrop dimmer when drawer is open */
    body.menu-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(8, 37, 25, 0.55);
        backdrop-filter: blur(2px);
        z-index: 999;
        animation: navFadeIn 0.3s ease;
    }
    @keyframes navFadeIn { from { opacity: 0; } to { opacity: 1; } }

    /* Tame logo on tablet so the mobile-toggle doesn't crowd it */
    .logo img { height: 50px; }
    .brand-name { font-size: 1.3rem; }
    .brand-sub { font-size: 0.65rem; letter-spacing: 2px; }
}

@media (max-width: 768px) {
    .container, .container-narrow, .container-wide { padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
    .floating-actions { bottom: 20px; right: 20px; }
    .floating-actions a { width: 52px; height: 52px; font-size: 1.4rem; }
    .page-hero-small { padding: 160px 0 80px; }
    .page-hero-image { padding: 180px 0 100px; }
}

/* ───────────────────────────────────────────────────────────────────────
   GLOBAL RESPONSIVE OVERLAY — site-wide safety net for page-level styles
   Targets recurring class patterns across all pages so every page
   degrades gracefully on tablet, mobile, and small mobile.
   ─────────────────────────────────────────────────────────────────────── */

/* Tablet landscape — 1100px and below: reduce 4+ column grids to 2/3 cols */
@media (max-width: 1100px) {
    .values-grid,
    .mission-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; }
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 36px !important; }
}
@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
        text-align: center;
    }
    .footer-about,
    .footer-links,
    .footer-contact { width: 100%; }
    .footer-about p,
    .footer-links a,
    .footer-contact .contact-list li { font-size: 0.88rem; }

    /* Center the gold accent line under each heading */
    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.05rem;
        padding-bottom: 14px;
        margin-bottom: 18px;
    }
    .footer-links h4::after,
    .footer-contact h4::after { left: 50%; transform: translateX(-50%); width: 36px; }

    .footer-about h3 { font-size: 1.15rem; }
    .footer-about .managed-by { letter-spacing: 1.6px; }

    /* Center social icons & contact list items */
    .footer-social { justify-content: center; }
    .contact-list li { justify-content: center; text-align: left; }
    .contact-list { display: inline-block; }

    /* Quick links centered, no left-shift hover */
    .footer-links li { margin-bottom: 10px; }
    .footer-links a:hover { transform: none; color: var(--soft-gold); }

    /* Footer bottom legal text */
    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        font-size: 0.74rem;
        padding-right: 0;
    }
    .main-footer { padding-bottom: 110px; }
}

/* Tablet portrait — 992px: collapse 3-col grids to 2, soften paddings */
@media (max-width: 992px) {
    .therapy-grid,
    .therapies-grid,
    .extra-treatments,
    .meditation-grid,
    .activity-grid,
    .gallery-simple,
    .gym-grid,
    .facility-grid,
    .team-grid,
    .core-pillars,
    .video-grid,
    .gallery-grid,
    .illness-grid,
    .program-row,
    .program-grid,
    .doctors-grid,
    .lifestyle-features,
    .stats-container,
    .impact-stats,
    .room-showcase-grid,
    .experience-flex,
    .features-grid,
    .stats-grid,
    .pillar-grid,
    .reasons-grid,
    .benefits-grid,
    .moments-grid,
    .living-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 28px !important; }

    .story-grid,
    .impact-grid { grid-template-columns: 1fr !important; gap: 50px !important; }

    .hydro-grid,
    .treatment-grid,
    .retreat-grid,
    .testimonials-grid { grid-template-columns: 1fr !important; gap: 28px !important; }

    .program-row { grid-template-columns: 1fr !important; gap: 24px !important; text-align: center; }
    .program-row .program-num { font-size: 3rem !important; }

    .about-flex,
    .experience-flex { gap: 50px !important; flex-direction: column; }

    /* Card padding reductions for medium screens */
    .membership-box,
    .contact-form-box,
    .treatment-detail-card .td-info { padding: 40px !important; }

    /* Fixed image heights soften */
    .rs-image,
    .gs-item,
    .gallery-inner { height: 280px !important; }
    .therapy-image { height: 220px !important; }

    /* Hero scaling */
    .retreat-hero { height: auto !important; min-height: 50vh !important; padding: 100px 0 50px !important; }
    .emotional-centerpiece { height: auto !important; min-height: 45vh !important; padding: 60px 0 !important; }
    .retreat-hero h1 { font-size: clamp(2.2rem, 6vw, 3.5rem) !important; }
}

/* Tablet small / mobile landscape — 768px: single column for most grids */
@media (max-width: 768px) {
    .therapy-grid,
    .therapies-grid,
    .extra-treatments,
    .meditation-grid,
    .activity-grid,
    .gallery-simple,
    .gym-grid,
    .facility-grid,
    .team-grid,
    .core-pillars,
    .video-grid,
    .gallery-grid,
    .illness-grid,
    .room-showcase-grid,
    .features-grid,
    .stats-grid,
    .pillar-grid,
    .reasons-grid,
    .benefits-grid,
    .moments-grid,
    .living-grid,
    .values-grid,
    .mission-grid,
    .program-grid,
    .doctors-grid,
    .lifestyle-features,
    .stats-container,
    .impact-stats { grid-template-columns: 1fr !important; gap: 22px !important; }

    /* Generic large headings on individual pages */
    h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); }

    /* Section padding compression */
    section { padding-left: 0; padding-right: 0; }
    section[class*="-section"],
    .accommodation-listing,
    .amenities-section,
    .cta-section,
    .about-section,
    .programs-section,
    .treatments-section,
    .doctors-section,
    .testimonials-section,
    .gallery-section,
    .contact-section { padding-top: 40px !important; padding-bottom: 40px !important; }

    /* Card padding reductions */
    .membership-box,
    .contact-form-box,
    .treatment-detail-card .td-info,
    .card-soft { padding: 26px !important; }

    /* Premium tables — soften padding */
    .premium-table th,
    .premium-table td { padding: 12px 10px !important; font-size: 0.85rem; }

    /* Image heights */
    .rs-image,
    .gs-item,
    .gallery-inner,
    .therapy-image { height: 220px !important; }

    /* Aspect-ratio frames don't dominate viewport on mobile */
    .moment-frame { aspect-ratio: 4 / 5 !important; max-height: 480px; }

    /* Hero adjustments */
    .retreat-hero { min-height: 40vh !important; padding: 80px 0 40px !important; }
    .emotional-centerpiece { min-height: 35vh !important; padding: 40px 0 !important; }
    .retreat-hero h1,
    .emotional-centerpiece h1 { font-size: clamp(1.9rem, 7vw, 2.6rem) !important; }

    /* Buttons stack & shrink */
    .hero-buttons,
    .button-group,
    .cta-buttons { flex-direction: column; gap: 12px !important; align-items: stretch; }
    .hero-buttons .btn,
    .button-group .btn,
    .cta-buttons .btn { width: 100%; padding: 14px 24px; font-size: 0.92rem; }

    /* Filter tab strips wrap and scroll */
    .filter-tabs,
    .gallery-filters,
    .program-tabs { flex-wrap: wrap; justify-content: center; gap: 8px !important; }
    .filter-btn { padding: 10px 18px; font-size: 0.82rem; }

    /* Section title spacing tighter */
    .section-title { margin-bottom: 42px; }
    .section-title h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
    .section-title p { font-size: 0.98rem; }

    /* Forms — single column */
    .premium-form .form-row { flex-direction: column; gap: 0; }
    .premium-form input,
    .premium-form select,
    .premium-form textarea { padding: 14px 16px; font-size: 0.92rem; }

    /* Generic flex rows that should stack */
    .room-row,
    .program-row,
    .feature-row,
    .info-row { flex-direction: column !important; text-align: center; gap: 20px !important; }
}

/* Small mobile — 480px: final tightening */
@media (max-width: 480px) {
    .container, .container-narrow, .container-wide { padding: 0 16px; }

    .page-hero-small { padding: 130px 0 60px; }
    .page-hero-small h1 { font-size: clamp(1.6rem, 7vw, 2rem); }
    .page-hero-small p { font-size: 0.95rem; }
    .page-hero-image { padding: 140px 0 70px; }

    .logo img { height: 44px !important; }
    .brand-name { font-size: 1.15rem !important; }
    .brand-sub { font-size: 0.6rem !important; letter-spacing: 1.6px !important; }

    .floating-actions { bottom: 16px; right: 16px; gap: 10px; }
    .floating-actions a { width: 46px; height: 46px; font-size: 1.2rem; }

    .btn { padding: 13px 22px; font-size: 0.88rem; }

    .card-soft,
    .membership-box,
    .contact-form-box { padding: 20px !important; border-radius: 18px; }

    /* Image heights again for small viewports */
    .rs-image,
    .gs-item,
    .gallery-inner,
    .therapy-image { height: 180px !important; }

    /* Text-heavy sections breathe better */
    .room-text h2 { font-size: 1.5rem !important; }
    .room-features li { font-size: 0.88rem !important; }

    /* Feature lists & stats */
    .stats-grid .stat-num,
    .stat-number { font-size: 2rem !important; }

    /* Tables become block on tiny screens */
    .premium-table { font-size: 0.78rem; }
    .premium-table th,
    .premium-table td { padding: 10px 8px !important; }

    /* Footer tweaks */
    .footer-grid { gap: 30px !important; }
    .footer-about p,
    .footer-links a,
    .contact-list li { font-size: 0.82rem; }
}

/* ───────────────────────────────────────────────────────────────────────
   GLOBAL HERO RESPONSIVE — site-wide consistency for every hero variant
   Covers: .hero (home video), .page-hero-small, .page-hero-image,
   .retreat-hero, .philosophy-hero
   ─────────────────────────────────────────────────────────────────────── */

/* Tablet landscape — 1100px */
@media (max-width: 1100px) {
    .philosophy-hero { padding: 120px 0 60px !important; }
    .philosophy-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.5rem) !important; }
    .page-hero-image { padding: 130px 0 70px !important; }
    .page-hero-image h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem) !important; }
}

/* Tablet portrait — 992px */
@media (max-width: 992px) {
    .philosophy-hero { padding: 90px 0 40px !important; }
    .philosophy-hero h1 { font-size: clamp(2rem, 6vw, 3rem) !important; }
    .philosophy-hero p { font-size: 1.05rem !important; }

    .page-hero-image { padding: 100px 0 50px !important; }
    .page-hero-image h1 { font-size: clamp(2rem, 6vw, 3.2rem) !important; }
    .page-hero-image p { font-size: 1.08rem !important; }

    .page-hero-small { padding: 100px 0 50px !important; }

    .retreat-hero p { font-size: 1.15rem !important; }
}

/* Tablet small / mobile landscape — 768px */
@media (max-width: 768px) {
    /* Heros */
    .hero { min-height: 600px !important; height: 92vh !important; }
    .hero-content h1 { font-size: clamp(2rem, 7vw, 3rem) !important; }
    .hero-content p { font-size: clamp(0.95rem, 2vw, 1.1rem) !important; margin-bottom: 32px !important; }
    .hero-tagline { font-size: 0.7rem !important; letter-spacing: 3px !important; padding: 7px 16px !important; margin-bottom: 22px !important; }

    .page-hero-small { padding: 90px 0 40px !important; }
    .page-hero-small h1 { font-size: clamp(1.8rem, 6.5vw, 2.4rem) !important; }
    .page-hero-small p { font-size: 1rem !important; padding: 0 8px; }
    .page-hero-small .hero-divider { margin: 22px auto 22px !important; }

    .page-hero-image { padding: 90px 0 40px !important; }
    .page-hero-image h1 { font-size: clamp(1.9rem, 7vw, 2.6rem) !important; }
    .page-hero-image p { font-size: 1rem !important; }

    .philosophy-hero { padding: 90px 0 40px !important; }
    .philosophy-hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem) !important; }
    .philosophy-hero p { font-size: 1rem !important; padding: 0 8px; }
    .philosophy-hero .hero-divider { margin: 22px auto 22px !important; }

    .retreat-hero p { font-size: 1.05rem !important; }

    /* Hero CTA buttons stack — extends global rule with .hero-actions */
    .hero-actions,
    .hero-btns {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .hero-actions .btn,
    .hero-btns .btn { width: 100%; justify-content: center; padding: 14px 24px; font-size: 0.92rem; }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
    .hero { min-height: 540px !important; height: auto !important; padding: 110px 0 70px !important; }
    .hero-content h1 { font-size: clamp(1.7rem, 8vw, 2.3rem) !important; line-height: 1.12 !important; margin-bottom: 18px !important; }
    .hero-content p { font-size: 0.95rem !important; margin-bottom: 26px !important; line-height: 1.55 !important; }
    .hero-tagline { font-size: 0.62rem !important; letter-spacing: 2px !important; gap: 8px; }

    .page-hero-small { padding: 80px 0 30px !important; }
    .page-hero-small h1 { font-size: clamp(1.5rem, 8vw, 1.95rem) !important; line-height: 1.15 !important; }
    .page-hero-small p { font-size: 0.92rem !important; line-height: 1.6 !important; }

    .page-hero-image { padding: 130px 0 60px !important; }
    .page-hero-image h1 { font-size: clamp(1.6rem, 8vw, 2.1rem) !important; }
    .page-hero-image p { font-size: 0.92rem !important; }

    .philosophy-hero { padding: 110px 0 56px !important; }
    .philosophy-hero h1 { font-size: clamp(1.6rem, 8vw, 2.1rem) !important; line-height: 1.15 !important; }
    .philosophy-hero p { font-size: 0.92rem !important; line-height: 1.6 !important; }
    .philosophy-hero .hero-divider { width: 60px !important; margin: 18px auto 18px !important; }

    .retreat-hero p { font-size: 0.95rem !important; margin-bottom: 26px !important; }
    .retreat-hero { padding: 110px 0 56px !important; min-height: 480px !important; }

    /* Eyebrow tightening across all heros */
    .page-hero-small .eyebrow,
    .page-hero-image .eyebrow,
    .philosophy-hero .eyebrow,
    .retreat-hero .eyebrow {
        font-size: 0.7rem !important;
        letter-spacing: 2px !important;
    }
}

/* Short-screen landscape phones (height-constrained) */
@media (max-height: 560px) and (orientation: landscape) {
    .hero { min-height: 100vh !important; height: 100vh !important; }
    .hero-content h1 { font-size: clamp(1.7rem, 5vw, 2.4rem) !important; margin-bottom: 14px !important; }
    .hero-content p { margin-bottom: 22px !important; }
    .hero-scroll { display: none !important; }
}

/* Prevent any accidental horizontal overflow site-wide */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
.hero-video { height: 100% !important; }
table { max-width: 100%; }

/* --------------------------------------------------------------------------
   CONSOLIDATED RESPONSIVE DESIGN SYSTEM
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .container { padding: 0 40px; }
    .mission-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 50px; }
}

@media (max-width: 992px) {
    :root { --section-padding: 80px 0; }
    .mobile-toggle { display: flex; }
    .story-grid, .preview-flex, .experience-flex, .impact-grid, .comparison-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .preview-img, .story-image, .experience-visual, .impact-visual { order: -1; max-width: 540px; margin: 0 auto; }
    .divider-leaf { justify-content: center !important; margin-left: auto !important; }
    .facility-grid, .video-grid, .treatment-grid, .values-grid, .pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .page-hero-small { padding: 70px 0 50px !important; min-height: 200px !important; }
}

@media (max-width: 768px) {
    .section-title h2 { font-size: 2.2rem; }
    .facility-grid, .video-grid, .treatment-grid, .values-grid, .pillar-grid, .footer-grid, .mission-grid, .room-showcase-grid { grid-template-columns: 1fr !important; }
    .btn { width: 100%; justify-content: center; }
    .hero-buttons, .button-group { flex-direction: column; width: 100%; }
    .page-hero-small { padding: 60px 0 40px !important; min-height: 180px !important; }
    .page-hero-small h1 { font-size: 2rem !important; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    :root { --section-padding: 60px 0; }
    .brand-name { font-size: 1.25rem; }
    .page-hero-small { padding: 110px 0 45px !important; min-height: 160px !important; }
    .page-hero-small h1 { font-size: 1.75rem !important; }
}
