/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

:root {
    /* PREMIUM AYURVEDIC COLOR PALETTE */
    --primary-green: #0b5d3b;       /* Fresh Herbal Green */
    --dark-green: #064027;          /* Deep Forest Green for text/footers */
    --accent-gold: #d99a24;         /* Royal Saffron / Golden for highlight */
    --bg-cream: #fffdf9;            /* Very soft warm cream (Chandan base) */
    --bg-light-green: #f2f7f4;      /* Minty light background */
    --white: #ffffff;
    --text-dark: #2c3e35;           /* Charcoal Green for readability */
    --text-light: #607568;          /* Muted text */
    
    /* SHADOWS & RADIUS */
    --shadow-soft: 0 4px 15px rgba(11, 93, 59, 0.08);
    --shadow-hover: 0 10px 25px rgba(217, 154, 36, 0.15); /* Subtle Golden shadow */
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

body {
    color: var(--text-dark);
    background-color: var(--bg-cream); /* Warm Premium Background */
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light-green); }
.text-center { text-align: center; }

/* TYPOGRAPHY */
.section-title {
    color: var(--dark-green);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold); /* Golden underline */
    border-radius: 2px;
}
.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px; /* Pill shape */
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--accent-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.btn-secondary {
    background-color: var(--accent-gold);
    color: var(--white);
}
.btn-secondary:hover {
    background-color: var(--dark-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* TOPBAR */
.topbar {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--accent-gold);
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Fixes topbar squish */
    gap: 10px;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px; /* Proper gap instead of margins */
    flex-wrap: wrap; 
}
.topbar-left a, .topbar-right a { margin: 0; white-space: nowrap; }
.topbar-right a { font-size: 1.1rem; }
.topbar a:hover { color: var(--accent-gold); }
.topbar i { color: var(--accent-gold); margin-right: 5px; }

/* HEADER & SYSTEMATIC MENU */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
header.active { box-shadow: var(--shadow-soft); }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative; 
}
/* Logo Area Fix: Prevent shrinking */
.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    z-index: 1001; 
    flex-shrink: 0; 
}
.logo-area img { height: 50px; }
.logo-area h1 {
    font-size: 1.3rem;
    color: var(--primary-green);
    line-height: 1.2;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 15px; 
    align-items: center;
    flex-wrap: nowrap;
}
.nav-menu li a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 8px 12px; 
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap; /* CRITICAL FIX: Stops text from breaking lines */
}
.nav-menu li a:hover, .nav-menu li a.active {
    background-color: var(--primary-green);
    color: var(--white);
}

/* HAMBURGER DEFAULT (HIDDEN ON DESKTOP) */
.hamburger { 
    display: none; 
    cursor: pointer; 
    font-size: 1.8rem; 
    color: var(--primary-green); 
    transition: var(--transition);
}

/* HERO SLIDER */
.hero { position: relative; height: 80vh; min-height: 500px; overflow: hidden; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out;
    background-size: cover; background-position: center;
}
.slide.active { opacity: 1; z-index: 1; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(6, 64, 39, 0.8), rgba(11, 93, 59, 0.5)); /* Premium look */
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-content {
    color: var(--white); max-width: 800px; padding: 20px;
    transform: translateY(20px); opacity: 0; transition: all 1s ease 0.5s;
}
.slide.active .hero-content { transform: translateY(0); opacity: 1; }
.hero-content h2 { font-size: 3rem; margin-bottom: 20px; color: var(--white); font-weight: 700; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; color: var(--bg-cream); }
.hero-buttons { display: flex; gap: 15px; justify-content: center; }

/* INNER BANNER */
.inner-banner {
    padding: 100px 0; background-size: cover; background-position: center;
    position: relative; text-align: center; color: var(--white);
}
.inner-banner::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(6, 64, 39, 0.85); /* Dark green tint */
}
.inner-banner .container { position: relative; z-index: 1; }
.inner-banner h1 { font-size: 2.8rem; color: var(--accent-gold); margin-bottom: 10px; font-weight: 700; }

/* GRIDS & CARDS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ABOUT SECTION WRAPPER */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-text { flex: 1; }
.about-image { flex: 1; }
.about-image img { border-radius: var(--border-radius); box-shadow: var(--shadow-soft); }

.feature-card, .therapy-card, .testimonial-card, .contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
    text-align: center;
    height: 100%;
}
.feature-card:hover, .therapy-card:hover, .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-bottom: 4px solid var(--accent-gold);
}
.feature-card h3 { color: var(--dark-green); margin-bottom: 15px; }
.feature-card i { color: var(--accent-gold); margin-bottom: 15px; }

/* THERAPY CARDS */
.therapy-card { padding: 0; overflow: hidden; }
.therapy-card img { width: 100%; height: 200px; object-fit: cover; transition: var(--transition); }
.therapy-card:hover img { transform: scale(1.05); }
.therapy-content { padding: 25px; text-align: left; }
.therapy-content h3 { color: var(--primary-green); margin-bottom: 10px; }
.therapy-content p { color: var(--text-light); margin-bottom: 20px; }

/* HIDE OLD BUTTON */
.floating-whatsapp, .float-btn.float-call { display: none !important; }

/* NEW SMART FLOATING BUTTONS (RIGHT SIDE) */
.smart-float-btn { position: fixed; right: 30px; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #ffffff; z-index: 9999; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: all 0.3s ease; }
.smart-whatsapp { bottom: 30px; background-color: #25D366; animation: pulse-green 2s infinite; }
.smart-call { bottom: 105px; background-color: #d99a24; animation: pulse-gold 2s infinite; }
.smart-call:hover, .smart-whatsapp:hover { transform: scale(1.1); animation: none; color: white; }

@keyframes pulse-gold { 0% { box-shadow: 0 0 0 0 rgba(217, 154, 36, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(217, 154, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 154, 36, 0); } }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* =======================================================
   RESPONSIVE & MOBILE MENU (PIXEL-BASED FIX)
   ======================================================= */

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about-wrapper { flex-direction: column; text-align: center; }
    
    /* HAMBURGER ACTIVATION */
    .hamburger { 
        display: flex; 
        align-items: center;
        justify-content: center;
        position: relative; 
        z-index: 1005; /* Must be higher than nav-menu */
        padding: 5px; 
    }
    
    /* BULLETPROOF PIXEL-BASED MOBILE MENU */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px; /* Hide safely off screen using pixels instead of percentages/transforms */
        width: 260px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out; /* Animate the right property */
        z-index: 1000;
        gap: 0;
    }
    
    /* When active, lock to right edge */
    .nav-menu.active { 
        right: 0; 
    }
    
    .nav-menu li { width: 100%; margin-bottom: 10px; }
    
    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 12px 15px;
        font-size: 1.1rem;
        border-radius: 4px;
        border-bottom: 1px solid var(--bg-light-green);
    }
}

/* Specific smaller screen tweaks */
@media (max-width: 768px) {
    .topbar .container { justify-content: center; text-align: center; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-content h2 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    
    /* SMART BUTTONS */
    .smart-float-btn { width: 50px; height: 50px; font-size: 25px; right: 20px; } 
    .smart-whatsapp { bottom: 20px; } 
    .smart-call { bottom: 85px; } 
}