/* =========================================
   1. GLOBAL RESET & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0056b3;       /* Deep Blue */
    --primary-dark: #004494;
    --secondary: #00a8cc;     /* Teal */
    --accent: #ffb703;        /* Gold */
    --text-dark: #2c3e50;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --whatsapp: #25d366;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--light-bg); color: var(--text-dark); overflow-x: hidden; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* =========================================
   2. WHATSAPP FLOATING BUTTON (Mobile Optimized)
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px; height: 60px;
    bottom: 30px; right: 25px;
    background-color: var(--whatsapp);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    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); }
}

/* =========================================
   3. HEADER & NAVIGATION (Glassmorphism)
   ========================================= */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}
.top-flex { display: flex; justify-content: space-between; align-items: center; }
.top-contact a { color: var(--white); display: flex; align-items: center; gap: 5px; }

.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

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

/* Logo */
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 55px; width: auto; object-fit: contain; }
.logo-area h1 { font-size: 24px; color: var(--primary); font-weight: 800; line-height: 1; margin: 0; }
.logo-area span { color: var(--secondary); }

/* PC Navigation */
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
    color: var(--text-dark); font-weight: 600; font-size: 15px; position: relative; padding: 5px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 0;
    background: var(--secondary); transition: 0.3s; border-radius: 2px;
}
.nav-links a:hover::after { width: 100%; }

/* Buttons */
.btn-appointment {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white); padding: 12px 25px; border-radius: 50px;
    font-weight: 600; font-size: 14px; box-shadow: 0 4px 15px rgba(0,86,179,0.3);
}
.btn-appointment:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,86,179,0.4); }

/* Mobile Menu Trigger */
.hamburger { display: none; font-size: 26px; color: var(--primary); cursor: pointer; }

/* =========================================
   4. HERO SECTION (Parallax)
   ========================================= */
.hero-section {
    position: relative; height: 85vh; min-height: 500px;
    background: url('../images/clinic-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex; align-items: center; color: var(--white);
}
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,86,179,0.9), rgba(0,168,204,0.6));
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }

.badge-hero {
    background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4);
    padding: 6px 18px; border-radius: 20px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
}
.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin: 15px 0 10px; line-height: 1.2; }
.hero-content h2 { font-size: 1.8rem; color: var(--accent); margin-bottom: 20px; font-weight: 500; }
.hero-content p { font-size: 1.1rem; opacity: 0.95; margin-bottom: 30px; max-width: 600px; }

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primary {
    background: var(--white); color: var(--primary); padding: 14px 35px; border-radius: 50px;
    font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent); color: #000; transform: translateY(-3px); }
.btn-secondary {
    border: 2px solid var(--white); color: var(--white); padding: 14px 35px; border-radius: 50px; font-weight: 600;
}
.btn-secondary:hover { background: var(--white); color: var(--primary); }

/* Animation Classes */
.animate-up { opacity: 0; animation: fadeInUp 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.4s; } .delay-3 { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* =========================================
   5. CARDS & SERVICES (Responsive Grid)
   ========================================= */
.advantages { padding: 80px 0; margin-top: -60px; position: relative; z-index: 10; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }

.adv-card {
    background: var(--white); padding: 30px 20px; text-align: center; border-radius: 15px;
    box-shadow: var(--shadow); transition: 0.4s; border-bottom: 4px solid transparent;
}
.adv-card:hover { transform: translateY(-10px); border-bottom-color: var(--secondary); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.icon-box {
    width: 70px; height: 70px; background: #e0f7fa; color: var(--secondary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin: 0 auto 20px; transition: 0.4s;
}
.adv-card:hover .icon-box { background: var(--secondary); color: var(--white); }
.adv-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary); }
.adv-card p { font-size: 0.9rem; color: var(--text-light); }

/* Services Strip */
.services-strip { background: var(--primary); padding: 40px 0; color: var(--white); }
.service-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.srv-item { font-size: 1.1rem; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.srv-item i { color: var(--accent); font-size: 1.3rem; }

/* =========================================
   6. FOOTER
   ========================================= */
footer { background: #111; color: #fff; padding-top: 60px; margin-top: auto; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-col h3 { color: var(--secondary); margin-bottom: 20px; font-size: 1.3rem; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; }
.footer-col a { display: block; color: #bbb; margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--white); padding-left: 5px; }
.copyright { background: #000; text-align: center; padding: 20px 0; font-size: 13px; color: #777; border-top: 1px solid #222; }

/* =========================================
   7. MOBILE RESPONSIVE RULES (The Magic)
   ========================================= */
@media (max-width: 992px) {
    .top-bar { display: none; } /* Top bar hide on tablet/mobile */
    .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    /* Header Adjustments */
    .nav-links {
        display: none; /* JS will toggle this */
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        gap: 20px;
        animation: slideDown 0.4s ease forwards;
    }
    /* Class for JS */
    .nav-links.active { display: flex; }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .btn-appointment { display: none; } /* Hide header button on mobile */
    .hamburger { display: block; } /* Show menu icon */

    /* Hero Section Mobile */
    .hero-section { height: auto; padding: 120px 0 80px; text-align: center; background-attachment: scroll; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content h2 { font-size: 1.4rem; }
    .hero-buttons { justify-content: center; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; } /* Full width buttons */

    /* Cards */
    .advantages { margin-top: 0; padding-top: 50px; }
    .section-head h2 { font-size: 2rem; }
    
    /* Service Strip */
    .service-row { flex-direction: column; align-items: center; gap: 20px; }
}