/* ===== PREMIUM CLINICAL HEADER (FINAL RECOVERY) ===== */
:root {
    --navy: #002D5B;
    --navy-dark: #001A36;
    --gold: #CFB16D;
    --gold-light: #dfc88a;
    --white: #ffffff;
    --gray-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === SITE HEADER CUSTOM ELEMENT === */
site-header {
    display: block;
    width: 100%;
}

/* === BASE HEADER (DESKTOP DEFAULT) === */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    transition: transform 0.3s ease;
}

/* DESKTOP MENU */
.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    padding: 15px 0;
}

.nav-link {
    font-weight: 700;
    color: var(--navy);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    display: inline-block;
}

.nav-link i {
    font-size: 10px;
    margin-left: 5px;
    opacity: 0.6;
}

.nav-link:hover {
    color: var(--gold);
}

/* DROPDOWN (Desktop) */
.dropdown-menu {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    top: 100%;
    left: 0;
    min-width: 260px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 15px 0;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-link:hover {
    color: var(--gold);
    background: rgba(207, 177, 109, 0.05);
    padding-left: 30px;
}

/* HIDE MOBILE ELEMENTS ON DESKTOP */
.mobile-nav-toggle,
.header-whatsapp-btn {
    display: none !important;
}

.header-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
}

.header-btn:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

/* ===== MOBILE RESPONSIVE (Strictly max-width: 991px) ===== */
@media (max-width: 991px) {
    .header-container {
        padding: 10px 20px;
        justify-content: flex-start;
        align-items: center;
        /* Ensure vertical alignment */
        gap: 10px;
        /* Gap between logo and right side elements */
    }

    /* Logo Left */
    .logo {
        order: 1;
        margin-right: auto;
        /* Push everything else to right */
    }

    .logo img {
        height: 42px;
    }

    /* NEW Minimalist WhatsApp Button */
    .header-whatsapp-btn {
        display: flex !important;
        order: 2;
        width: 45px;
        height: 45px;
        background: transparent;
        /* Removed bg */
        color: #25D366;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        /* Larger icon */
        transition: var(--transition);
        margin-right: 0;
        border: none;
        /* Removed border */
    }

    .header-whatsapp-btn:active {
        transform: scale(0.9);
        opacity: 0.7;
    }

    /* Toggle Right (Beside WhatsApp) */
    .mobile-nav-toggle {
        display: flex !important;
        order: 3;
        background: transparent;
        /* Removed bg */
        border: none;
        width: 45px;
        height: 45px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 3000;
        padding: 0;
    }

    .mobile-nav-toggle span {
        display: block;
        width: 30px;
        /* Wider lines */
        height: 2px;
        /* Thinner lines */
        background: var(--navy);
        position: absolute;
        transition: 0.3s;
        border-radius: 2px;
    }

    .mobile-nav-toggle span:nth-child(1) {
        transform: translateY(-8px);
        /* More spacing */
    }

    .mobile-nav-toggle span:nth-child(2) {
        transform: translateY(0);
    }

    .mobile-nav-toggle span:nth-child(3) {
        transform: translateY(8px);
        /* More spacing */
    }

    /* Active State Animation */
    .mobile-nav-active .mobile-nav-toggle span:nth-child(1) {
        transform: rotate(45deg);
    }

    .mobile-nav-active .mobile-nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-active .mobile-nav-toggle span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Mobile Menu Overlay */
    /* DEFAULT STATE: Hidden off-screen right */
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden */
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 30px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2500;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
    }

    /* ACTIVE STATE: Slide in */
    .mobile-nav-active .nav-menu {
        right: 0;
        /* Visible */
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0;
    }

    .nav-link {
        padding: 15px 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        font-size: 1.1rem;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        padding: 10px;
        border: none;
    }

    .nav-item.active>.dropdown-menu {
        display: block;
    }

    .header-btn {
        display: none;
        /* Hide Desktop Button on Mobile */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === PREMIUM FOOTER === */
site-footer {
    display: block;
    width: 100%;
    margin-top: auto;
}

.site-footer {
    background-color: var(--navy-dark);
    color: #ffffff;
    padding: 80px 0 30px;
    /* Adjusted padding */
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Brand Column */
.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    /* Make logo white if it's not */
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-3px);
}

/* Links Lists */
.footer-links,
.contact-list {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

/* Contact List */
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-list i {
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 3px;
}

.contact-list a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.contact-list a:hover {
    color: var(--gold);
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.powered-by a:hover img {
    opacity: 1 !important;
}

/* Responsive */
@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center;
        text-align: center;
    }

    .footer-desc {
        margin: 0 auto 25px;
    }
}

/* === INFO POPUP STYLES === */
.info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.info-popup.active {
    opacity: 1;
    visibility: visible;
}

.info-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 54, 0.7);
    /* navy-dark with opacity */
    backdrop-filter: blur(5px);
}

.info-popup-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    z-index: 10000;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(207, 177, 109, 0.2);
    /* gold border */
}

.info-popup.active .info-popup-content {
    transform: translateY(0);
}

.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #999;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-popup-btn:hover {
    color: var(--navy);
}

.popup-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.popup-logo {
    height: 50px;
    margin-bottom: 15px;
}

.popup-header h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.popup-body {
    margin-bottom: 30px;
    text-align: center;
}

.popup-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #4a5568;
    font-size: 1rem;
}

.popup-body strong {
    color: var(--navy);
    font-weight: 700;
}

@media (max-width: 576px) {
    .info-popup-content {
        padding: 25px;
    }

    .popup-logo {
        height: 40px;
    }

    .popup-header h3 {
        font-size: 1.25rem;
    }

    .popup-body p {
        font-size: 0.95rem;
    }
}

}