/* High-specificity overrides to ensure WhatsApp/floating styles apply across pages */
html body .whatsapp-float,
body .whatsapp-float,
.whatsapp-float {
    display: flex !important;
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.35) !important;
    z-index: 99999 !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

/* Shared extras for Navbar & WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.35);
    z-index: 99999;
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:focus,
.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 50px rgba(37, 211, 102, 0.45);
    outline: none;
}

.whatsapp-float svg {
    width: 36px;
    height: 36px;
    fill: #fff;
    display: block;
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: #fff;
    color: #0f172a;
    padding: .55rem .9rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity .16s ease, transform .16s ease;
    pointer-events: none;
    font-size: .95rem;
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus .whatsapp-tooltip,
.whatsapp-float:active .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* mobile tweaks */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
        right: calc(env(safe-area-inset-right, 0px) + 18px);
    }

    .whatsapp-tooltip {
        display: none;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Navbar Styles from Index */
:root {
    --primary-color: #2563eb;
    --secondary-color: #0ea5e9;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --accent: #06b6d4;
    --whatsapp: #25D366;
    --success: #10b981;
    --error: #ef4444;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.12);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

@media (min-width: 768px) {
    .nav-container {
        padding: 1rem 2rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .logo {
        gap: 1rem;
    }
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .logo img {
        height: 65px;
    }
}

.logo:hover img {
    transform: scale(1.08);
}

/* Mobile Menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none !important;
    }
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation - closed state */
html body .nav-links,
.navbar .nav-links,
.nav-links {
    list-style: none;
    margin: 0;
    padding: 2rem 1rem;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    /* Use visibility + max-height + pointer-events instead of display:none */
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease;
}

@media (min-width: 1024px) {

    html body .nav-links,
    .navbar .nav-links,
    .nav-links {
        display: flex !important;
        visibility: visible !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        flex-direction: row;
        position: static;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
        align-items: center;
        width: auto;
    }
}

/* Mobile Navigation - open state */
html body .nav-links.active,
.navbar .nav-links.active,
.nav-links.active {
    display: flex !important;
    visibility: visible !important;
    max-height: 500px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.nav-links li {
    list-style: none;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .nav-links li {
        margin-bottom: 0;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

@media (min-width: 1024px) {
    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.nav-links a.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    font-weight: 600;
}

/* Menu toggle button base styles */
.menu-toggle {
    background: transparent;
    border: none;
    padding: 0.5rem;
}

/* Footer Styles */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}