/* =========================================
   Maycare - Premium Health & Business Theme
   ========================================= */

:root {
    --primary-color: #2E7D32;      /* Deep Forest Green */
    --secondary-color: #4CAF50;    /* Fresh Green */
    --accent-color: #FFC107;       /* Gold/Amber for premium feel */
    --dark-bg: #1B1B1B;
    --light-bg: #F9FBF9;           /* Very light green tint white */
    --text-color: #333333;
    --text-light: #777777;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    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;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-accent {
    background: var(--accent-color);
    color: #333;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ================= HEADER ================= */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 10px; /* Increase touch target */
    transition: var(--transition);
}

.mobile-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1101;
    padding: 80px 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    display: none;
    backdrop-filter: blur(3px);
}

.mobile-nav-overlay.active {
    display: block;
}

.close-nav {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.close-nav:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.mobile-nav ul {
    width: 100%;
    max-width: 400px;
}

.mobile-nav ul li {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.mobile-nav.active ul li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay */
.mobile-nav.active ul li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active ul li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.active ul li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active ul li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav.active ul li:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav.active ul li:nth-child(6) { transition-delay: 0.6s; }
.mobile-nav.active ul li:nth-child(7) { transition-delay: 0.7s; }
.mobile-nav.active ul li:nth-child(8) { transition-delay: 0.8s; }

.mobile-nav ul li a {
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
    color: var(--text-color);
}

.mobile-nav ul li a:hover {
    color: var(--primary-color);
}

.btn-mobile-join {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    padding: 12px 30px;
    text-align: center;
    border-radius: 50px;
    margin-top: 10px;
    display: inline-block !important;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.btn-mobile-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
}

/* ================= HERO SECTION ================= */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    background-color: #2E7D32; /* Fallback if image missing */
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
}

/* ================= SECTIONS GENERAL ================= */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ================= MISSION & VISION ================= */
.mission-vision {
    background: var(--white);
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mv-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.mv-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mv-card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.mv-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ================= WHY MAYCARE ================= */
.why-maycare {
    background-color: #f0f7f1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.benefit-card h3 {
    margin: 15px 0;
    color: var(--text-color);
}

.benefit-icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ================= PRODUCT PREVIEW ================= */
.product-preview {
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.product-img {
    height: 200px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-img img {
    max-height: 80%;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: #000;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-cat {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin: 10px 0;
}

.price-box {
    margin: 10px 0;
}

.mrp {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 10px;
}

.dp {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ================= ASSOCIATE CARD ================= */
.associate-promo {
    background: linear-gradient(135deg, var(--primary-color), #1b5e20);
    color: var(--white);
    border-radius: 20px;
    margin: 40px auto;
    overflow: hidden;
}

.promo-container {
    display: flex;
    align-items: center;
    padding: 50px;
    gap: 50px;
}

.promo-text {
    flex: 1;
}

.promo-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.promo-card {
    background: var(--white);
    color: var(--text-color);
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.promo-price {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 10px 0;
}

.promo-features li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.promo-features li:last-child {
    border-bottom: none;
}

/* ================= FOOTER ================= */
.main-footer {
    background: var(--dark-bg);
    color: #ccc;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.footer-col h3 span {
    color: var(--primary-color);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .promo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu, .header-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* ================= PAGE SPECIFIC ================= */

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Products Page */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Income Plan */
.table-responsive {
    overflow-x: auto;
}

.income-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.income-table th,
.income-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.income-table th {
    background: var(--primary-color);
    color: var(--white);
}

.income-table tr:hover {
    background: #f9f9f9;
}

/* Join Plans */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid #eee;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card.highlight {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.price {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.features-list {
    margin-bottom: 30px;
    text-align: left;
}

.features-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.features-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Benefits Page */
.benefits-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-detail-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
}

.benefit-detail-card:hover {
    box-shadow: var(--shadow-md);
}

.benefit-detail-card i {
    font-size: 2rem;
    color: var(--primary-color);
    background: #e8f5e9;
    padding: 15px;
    border-radius: 50%;
}

/* ================= UTILITIES & REFACTORED STYLES ================= */
.steps-visual {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
    margin-bottom: 40px;
}

.step-card {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: var(--transition);
}

.step-card:hover {
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-card.active-step {
    background: #e8f5e9;
    border-color: var(--primary-color);
}

.final-cta {
    background: url('../images/cta-bg.jpg') no-repeat center/cover;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    /* Fallback color */
    background-color: #2E7D32; 
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.relative-z {
    position: relative;
    z-index: 1;
}

.page-header {
    background-size: cover !important;
    background-position: center !important;
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.about-img img, .exclusive-access img {
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.stats-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-info-item {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.contact-icon-circle {
    width: 50px;
    height: 50px;
    background: #e8f5e9;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.map-container {
    width: 100%;
    height: 200px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.stats-flex-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 30px;
}

.stat-counter-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.mb-30 {
    margin-bottom: 30px;
}

/* ================= WHATSAPP MODAL & UTILS ================= */
.btn-whatsapp {
    width: 100%;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s, transform 0.2s;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}
.modal-overlay {
    background: rgba(0,0,0,0.6);
    transition: opacity 0.3s ease;
}
.modal-content {
    transition: transform 0.3s ease;
}
