/* ==========================================================
   MA PREGNANCY & FERTILITY CLINIC - MODERN PURPLE, PINK & GOLD
   ========================================================== */

/* 1. Global Variables & Base Settings (Matched to Logo & Premium Feel) */
:root { 
    --primary: #7e347e;        /* Deep Royal Purple (From Logo) */
    --primary-hover: #5a255a;  /* Darker Purple (Hover states) */
    --secondary: #d6558c;      /* Vibrant Pink (From Logo) */
    --secondary-hover: #b84074;/* Darker Pink (Hover states) */
    --accent: #D4AF37;         /* Premium Gold (For special highlights and accents) */
    --bg-main: #fcfbfb;        /* Ultra light, warm off-white (Main background) */
    --bg-card: #ffffff;        /* Pure White (Cards) */
    --bg-specialties: #f8f6f8; /* Extremely subtle lilac tint for the specialties section background */
    --text-main: #1a1a1a;      /* Sharp Black/Dark Charcoal (Main text for high contrast) */
    --text-muted: #64748b;     /* Muted Grey (Subtitles) */
    --radius: 12px;            /* Modern sharp/soft corners */
    --shadow: 0 10px 30px rgba(126, 52, 126, 0.08); /* Purple-tinted drop shadow */
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
    scroll-behavior: smooth; 
}

body { 
    color: var(--text-main); 
    background-color: var(--bg-main); 
    line-height: 1.6; 
    padding-top: 80px; 
}

/* 2. Navigation Header */
header { 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(10px); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 2px solid var(--accent); /* Thin gold border to anchor the header */
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0.8rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative;
}

.clinic-logo { height: 55px; width: auto; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.95rem; transition: 0.2s; }
.nav-links a:hover { color: var(--secondary); }

/* Hamburger Menu Icon (Hidden on Desktop, Visible on Mobile) */
.hamburger { 
    display: none; 
    font-size: 2rem; 
    cursor: pointer; 
    color: var(--primary); 
    user-select: none; 
}

/* Buttons */
.btn { 
    background: var(--primary); 
    color: #ffffff !important; 
    padding: 0.7rem 1.8rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: 0.3s; 
    border: none; 
    cursor: pointer; 
    display: inline-block; 
}
.btn:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(126, 52, 126, 0.3); 
}

/* Primary Pink Button Variant */
.btn-pink { background: var(--secondary); }
.btn-pink:hover { background: var(--secondary-hover); box-shadow: 0 6px 15px rgba(214, 85, 140, 0.3); }

/* Premium Gold Button Variant */
.btn-gold { background: var(--accent); color: #1a1a1a !important; }
.btn-gold:hover { background: #b5952f; box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3); }

/* 3. General Containers & Typography */
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
h1, h2, h3 { color: var(--primary); line-height: 1.2; font-weight: 700; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 1rem; color: var(--primary); }
.section-subtitle, .subtitle { text-align: center; color: var(--text-muted); max-width: 700px; margin: 0 auto 3.5rem; font-size: 1.1rem; }

/* 4. Homepage Hero Section */
.hero { display: flex; align-items: center; gap: 4rem; background: var(--bg-card); padding: 4rem; border-radius: 24px; margin-top: 2rem; box-shadow: var(--shadow); border: 1px solid rgba(126, 52, 126, 0.05); }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 2.8rem; margin-bottom: 1.5rem; color: var(--primary); }
.hero-text p { font-size: 1.1rem; color: var(--text-main); margin-bottom: 2rem; }
.hero-img-box { flex: 1; }
.hero-img-box img { width: 100%; height: auto; aspect-ratio: 4/3; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; border: 2px solid var(--accent); }

/* 5. Services Section */
#services-wrapper {
    background-color: var(--bg-specialties);
    padding: 6rem 0;
    margin: 4rem 0;
    border-top: 1px solid rgba(126, 52, 126, 0.1);
    border-bottom: 1px solid rgba(126, 52, 126, 0.1);
}
#services-wrapper .section-title { color: var(--primary); }
#services-wrapper .section-subtitle { color: var(--text-main); font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; border: 1px solid rgba(126, 52, 126, 0.05); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(126, 52, 126, 0.15); border-color: var(--secondary); }
.card img { width: 100%; height: 220px; object-fit: cover; background-color: var(--bg-main); border-bottom: 3px solid var(--secondary); }
.card-body { padding: 2.5rem 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--primary); }
.card-body p { color: var(--text-main); font-size: 1rem; margin-bottom: 1.5rem; flex-grow: 1; }
.card-body .btn { background: var(--secondary); }
.card-body .btn:hover { background: var(--secondary-hover); }

/* Doctors Grid */
.doctor-card { background: var(--bg-card); padding: 3rem 2rem; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); border: 1px solid rgba(126, 52, 126, 0.05); }
.doc-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; border: 4px solid var(--accent); padding: 5px; background: var(--bg-card); }

/* 6. Contact Form & Footer */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; background: var(--bg-card); padding: 4rem; border-radius: 24px; box-shadow: var(--shadow); border: 1px solid rgba(126, 52, 126, 0.05); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
.form-control { width: 100%; padding: 0.8rem 1rem; background: var(--bg-main); border: 1px solid rgba(126, 52, 126, 0.15); border-radius: 8px; font-size: 1rem; font-family: inherit; transition: 0.2s; color: var(--text-main); }
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(214, 85, 140, 0.15); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.contact-details h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--primary); }
.contact-details p { margin-bottom: 1rem; font-size: 1.1rem; color: var(--text-main); }
.contact-details a { color: var(--secondary); text-decoration: none; font-weight: 700; transition: 0.2s; }
.contact-details a:hover { color: var(--primary); }

.qr-box { margin-top: 2rem; text-align: center; background: var(--bg-specialties); padding: 1.5rem; border-radius: var(--radius); display: inline-block; border: 1px solid rgba(126, 52, 126, 0.1); }
.qr-box img { width: 150px; height: 150px; margin-bottom: 0.5rem; border-radius: 8px; border: 2px solid var(--accent); }

footer { background: var(--primary); color: #fff; text-align: center; padding: 2.5rem 2rem; margin-top: 0; }

/* ==========================================================
   MOBILE RESPONSIVE RULES & HAMBURGER MENU FIX
   ========================================================== */
@media (max-width: 900px) {
    /* 1. Show the Hamburger Icon */
    .hamburger { display: block; }
    
    /* 2. Hide the normal nav links and style them as a dropdown box */
    .nav-links { 
        display: none; /* Hidden until clicked */
        flex-direction: column; 
        position: absolute; 
        top: 75px; 
        left: 0; 
        width: 100%; 
        background: rgba(255, 255, 255, 0.98); 
        padding: 2rem; 
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
        text-align: center;
        border-bottom: 3px solid var(--primary);
        z-index: 1001; /* Ensure it stays on top of everything */
    }
    
    /* 3. The class that Javascript toggles to show the menu */
    .nav-links.active { 
        display: flex !important; 
    }
    
    .nav-links li { margin: 12px 0; }

    /* Adjust Main Content Elements for Mobile */
    .hero, .contact-wrap { grid-template-columns: 1fr; flex-direction: column; padding: 2rem; }
    .hero-text h1 { font-size: 2.2rem; }
    #services-wrapper { padding: 4rem 0; margin: 2rem 0; }
}