/* ===== Base Styles ===== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ===== Top Contact Bar (static) ===== */
.top-contact-bar {
    background-color: #111;
    color: white;
    font-family: 'Poppins', sans-serif;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.top-contact-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.contact-info {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
}

.contact-phone {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-phone i {
    color: #3b82f6;
    margin-right: 5px;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.social-links a {
    color: white !important;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
}

.social-links a:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* ===== Main Navbar (sticky) ===== */
.navbar {
    background: white;
    padding: 0;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 1px 5px #e0181840;
    position: sticky;
    top: 0;
    /* Now sticks to top of viewport */
    z-index: 1020;
    transition: all 0.3s ease;
}

.navbar .container {
    padding: 0 15px;
}

.logo-img {
    height: 38px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.navbar-brand:hover .logo-img {
    transform: rotate(10deg);
}

.nav-link {
    font-weight: 500;
    padding: 20px 0;
    margin: 0 8px;
    color: #4b5563 !important;
    position: relative;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #111827 !important;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 15px;
    left: 0;
    background-color: #dc2626;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

.btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #dc2626;
    border-color: #2563eb;
    transform: translateY(-2px);
}

/* ===== Mobile Menu ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 70px;
        /* Adjusted for navbar height only */
        left: 0;
        width: 280px;
        height: calc(100vh - 70px);
        background: white;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
        z-index: 1010;
        overflow-y: auto;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-nav {
        flex-direction: column;
    }

    .nav-item {
        margin: 5px 0 !important;
    }

    .nav-link {
        padding: 10px 0 !important;
    }

    .hover-underline::after {
        bottom: 5px;
    }

    .navbar-toggler {
        border: none;
        padding: 8px 10px;
    }
}

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.pulse {
    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 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== Footer ===== */
footer {
    background-color: #111;
    color: white;
    padding: 25px 0;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .contact-info {
        gap: 10px;
    }

    .contact-phone {
        font-size: 0.75rem;
    }

    .contact-phone i {
        font-size: 0.7rem;
    }

    .social-links {
        gap: 8px;
    }

    .social-links a {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .top-contact-bar {
        padding: 5px 0;
    }

    .contact-phone {
        font-size: 0.7rem;
    }

    .contact-phone i {
        font-size: 0.65rem;
        margin-right: 3px;
    }

    .logo-img {
        height: 34px;
    }
}

@media (max-width: 400px) {
    .contact-phone {
        font-size: 0.65rem;
    }

    .contact-phone i {
        font-size: 0.6rem;
    }

    .social-links {
        display: none;
    }

    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* ===== Utility Classes ===== */
.min-vh-100 {
    min-height: 100vh;
}

.flex-grow-1 {
    flex-grow: 1;
}