/* =============================================
   MSM AYURVEDA — PREMIUM WELLNESS STYLES
   ============================================= */

:root {
    --primary: #2d5a27;      /* Herbal Green */
    --accent: #b8860b;       /* Warm Gold */
    --bg-light: #fdfaf5;     /* Cream Skin */
    --text-dark: #1a1a1a;
    --text-muted: #555;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

span { color: var(--accent); }

/* --- NAV --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo .msm { color: var(--primary); }
.logo .ayurveda { color: var(--accent); font-style: italic; font-weight: 400; font-family: 'Playfair Display', serif; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }

.nav-btns { display: flex; gap: 1.5rem; align-items: center; }

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.whatsapp-link svg { width: 18px; }

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(45, 90, 39, 0.2); }

.mobile-toggle { display: none; }

/* --- HERO --- */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.rating-badge .stars { color: #ffd700; letter-spacing: 2px; }
.rating-badge .count { font-size: 0.85rem; font-weight: 500; }

.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; }

.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 3rem; max-width: 550px; }

.btn-hero-main {
    background: var(--accent);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    margin-right: 1.5rem;
    transition: var(--transition);
    display: inline-block;
}

.btn-hero-sub {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
    transition: var(--transition);
}

/* HERO FORM */
.hero-form-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    color: var(--text-dark);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.hero-form-box h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.hero-form-box p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }

#heroBookingForm input, #heroBookingForm select {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}

#heroBookingForm input:focus { border-color: var(--primary); }

.btn-form-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-form-submit:hover { background: #1e3f1b; }

.form-note { text-align: center; font-size: 0.75rem !important; margin-top: 1rem; }

/* --- PROOF --- */
.proof { padding: 4rem 0; background: var(--bg-light); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item .number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat-item .label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* --- TREATMENTS --- */
.treatments { padding: 10rem 0; }
.section-title { text-align: center; margin-bottom: 6rem; }
.section-title h2 { font-size: 3.5rem; margin-bottom: 1rem; }

.treatment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

.t-card {
    padding: 3.5rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.t-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--primary); }

.t-icon { font-size: 3rem; margin-bottom: 2rem; }
.t-card h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }

.t-card ul { list-style: none; margin: 2rem 0; }
.t-card li { margin-bottom: 0.8rem; padding-left: 25px; position: relative; font-size: 0.95rem; }
.t-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

.featured { background: var(--primary); color: var(--white); transform: scale(1.05); z-index: 10; border: none; }
.featured ul li { color: rgba(255,255,255,0.8); }
.featured .btn-simple { display: inline-block; padding: 1rem 2rem; background: var(--accent); color: var(--white); text-decoration: none; border-radius: 6px; font-weight: 600; }

.learn-more { color: var(--primary); text-decoration: none; font-weight: 600; }

/* --- CLINICAL SERVICES --- */
.clinical-services { padding: 10rem 0; background: var(--bg-light); }
.services-row { display: flex; flex-direction: column; gap: 6rem; margin-bottom: 8rem; }

.service-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.service-feature.reverse { direction: rtl; }
.service-feature.reverse .sf-content { direction: ltr; }

.sf-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); height: 400px; }
.sf-img img { width: 100%; height: 100%; object-fit: cover; }

.sf-content h3 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--primary); }
.sf-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }

.sf-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sf-list li { font-weight: 600; font-size: 0.95rem; padding-left: 25px; position: relative; }
.sf-list li::before { content: '◈'; position: absolute; left: 0; color: var(--accent); }

/* MINI SERVICES */
.mini-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ms-card { 
    background: var(--white); 
    padding: 3rem; 
    border-radius: 16px; 
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.02);
    text-align: center;
}
.ms-card h4 { font-size: 1.4rem; color: var(--primary); margin-bottom: 1rem; }
.ms-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* --- PHARMACY --- */
.pharmacy { padding: 8rem 0; background: #fafafa; }
.phar-container { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.product-features { margin: 2.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
.pf { font-weight: 600; font-size: 1.1rem; }
.phar-img img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }

.btn-outline {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
}

/* --- BLOG --- */
.blog { padding: 10rem 0; background: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.blog-img { height: 220px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-img img { transform: scale(1.1); }

.blog-content { padding: 2rem; }
.blog-date { display: block; font-size: 0.8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; margin-bottom: 0.8rem; }
.blog-content h3 { font-size: 1.4rem; margin-bottom: 1rem; line-height: 1.3; }
.blog-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.read-more { color: var(--primary); text-decoration: none; font-weight: 700; font-size: 0.9rem; }

/* --- REVIEWS --- */
.reviews { padding: 10rem 0; background: var(--bg-light); }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.review-card { background: var(--white); padding: 3rem; border-radius: 12px; box-shadow: var(--shadow); }
.r-stars { color: #ffd700; font-size: 1.2rem; margin-bottom: 1.5rem; }
.r-user { margin-top: 2rem; font-weight: 600; }

.view-all-reviews { text-align: center; margin-top: 5rem; }
.view-all-reviews a { color: var(--primary); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--primary); }

/* --- LOCATION --- */
.location { padding: 10rem 0; background: var(--white); }
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    line-height: 0;
}

/* --- FOOTER --- */
footer { padding: 8rem 0 0; background: #121c13; color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4rem; padding-bottom: 5rem; }
footer h3, footer h4 { color: var(--white); margin-bottom: 2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 3rem 0; text-align: center; }

/* --- FLOATING --- */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
}

/* FADE IN ANIMATION */
.fade-in { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards; }
.fade-in-right { opacity: 0; transform: translateX(50px); animation: fadeInRight 1s forwards 0.3s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { to { opacity: 1; transform: translateX(0); } }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-content { margin: 0 auto; }
    .hero { height: auto; padding: 120px 0 80px; }
    .hero h1 { font-size: 3rem; }
    .treatment-grid { grid-template-columns: 1fr; }
    .featured { transform: scale(1); }
    .nav-links { display: none; }

    /* New Services Responsive */
    .service-feature { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .sf-img { height: 300px; }
    .sf-list { grid-template-columns: 1fr; text-align: left; max-width: 300px; margin: 0 auto; }
    .service-feature.reverse { direction: ltr; }
    
    .mini-services { grid-template-columns: 1fr; }
}

/* Blog Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: #ffffff !important; /* Force solid white for maximum readability */
    margin: 5% auto;
    padding: 60px;
    border-radius: 20px;
    width: 85%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--accent);
    color: #1a1a1a !important; /* Force dark text */
}

.close-modal {
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 40px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent);
}

#blogContent h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2rem;
}

#blogContent h3 {
    color: var(--accent);
    margin-top: 25px;
    margin-bottom: 10px;
}

#blogContent p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

#blogContent ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

#blogContent li {
    margin-bottom: 10px;
    color: #444;
}

#blogContent .blog-meta {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 30px;
    display: block;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}
