/*
    File: styles/header.css
    Purpose: Global header and footer styles, navigation, and floating actions.
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: Arial, sans-serif;
    background:#f8f9fc;
    padding-top:50px;
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

/* Section: header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0b1f3a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.main-navbar {
    max-width: 100%;
    margin: 0;
    padding: 0 60px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

 /* Logo */  
.brand-box {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 50px;
    margin-right: 10px;
}

.brand-text h6 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.brand-text small {
    font-size: 12px;
    color: #facc15;
}

 /* Desktop menu */ 
.main-menu {
    list-style: none;
    display: flex;
    gap: 35px;
    margin-left: auto;
}

.menu-link {
    text-decoration: none;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    padding-bottom: 5px;
}

.menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #facc15;
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.3s ease;
}

.menu-link:hover {
    color: #facc15;
}

.menu-link:hover::after,
.menu-link.active::after {
    transform: scaleX(1);
}

/* Mobile navigation */
.menu-btn {
    font-size: 26px;
    cursor: pointer;
    color: #ffffff;
    display: none;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 15px 30px;
    background: #0b1f3a;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    padding: 12px 0;
    text-decoration: none;
    font-weight: 600;
    color: #ffffff;
}

.mobile-nav a:hover {
    color: #facc15;
}

/* Section: footer */
.main-footer {
    width: 100%;
    background: #0b1f3a;
    color: #ffffff;
    text-align: center;
    border-top: 2px solid #facc15;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
}

.footer-heading span {
    color: #facc15;
}

.footer-subtext {
    font-size: 13px;
    color: #facc15;
}

/* Footer: fixed on desktop */
@media (min-width: 769px) {
    body {
        padding-bottom: 70px; /* space for fixed footer */
    }

    .main-footer {
        position: fixed;
        bottom: 0;
        left: 0;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {

    .main-menu {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .main-navbar {
        padding: 0 20px;
    }

    /* Mobile footer normal */
    .main-footer {
        position: static;
    }
}

/* Utilities: floating action buttons */
.call-float,
.whatsapp-float {
    position: fixed;
    right: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease;
    z-index: 1000;
}

/* Call button */
.call-float {
    bottom: 100px;          /* Above WhatsApp */
    width: 60px;
    height: 60px;
    background: #1e73ff;
    color: #fff;
}

.call-float i {
    font-size: 24px;
    line-height: 1;
}

.call-float:hover {
    background: #0d5be1;
    transform: scale(1.1);
}

/* WhatsApp button */
.whatsapp-float {
    bottom: 20px;
    width: 60px;           
    height: 60px;
    background: #25D366;
    color: #fff;
}

.whatsapp-float i {
    font-size: 35px;       
    line-height: 1;
}

.whatsapp-float:hover {
    background: #1ebe5b;
    transform: scale(1.1);
}

/* Pulse effect for floating actions */
.call-float::before,
.whatsapp-float::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 1.5s infinite;
}

.call-float::before {
    width: 60px;
    height: 60px;
    background: rgba(30, 115, 255, 0.3);
}

.whatsapp-float::before {
    width: 60px;
    height: 60px;
    background: rgba(37, 211, 102, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* Floating actions: responsive sizes */
@media (max-width: 768px) {

    .call-float {
        width: 55px;
        height: 55px;
    }

    .call-float i {
        font-size: 22px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
    }

    .whatsapp-float i {
        font-size: 35px;
    }

    .call-float::before {
        width: 55px;
        height: 55px;
    }

    .whatsapp-float::before {
        width: 55px;
        height: 55px;
    }
}

 