﻿/* Header.css - Sticky Header Styles */

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Header Placeholder */
#header-placeholder {
    height: 140px; /* Desktop height */
    transition: height 0.3s ease;
}

/* Top Banner */
.top-banner {
    background: linear-gradient(90deg, #0a7c4d 0%, #0c5c3d 100%);
    padding: 12px 0;
    transition: padding 0.3s ease;
}

.top-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Company Brand */
.company-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image-container {
    flex-shrink: 0;
}

.company-logo-img {
    height: 130px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    transition: height 0.3s ease;
}

.company-title-container {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.2;
    transition: font-size 0.3s ease;
}

.company-tagline {
    font-size: 16px;
    color: #ffde59;
    margin: 5px 0 0 0;
    font-weight: 500;
}

/* Contact Info */
.contact-info {
    display: flex;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .contact-item i {
        color: #ffde59;
        font-size: 16px;
    }

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 13px;
    color: white;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: white;
    border-top: 1px solid #eee;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    position: relative;
}

/* Mobile Logo */
.mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
}

.mobile-logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.mobile-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #0a7c4d;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    height: 100%;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

    .nav-link:hover {
        color: #0a7c4d;
        background: rgba(10, 124, 77, 0.05);
    }

    .nav-link.active {
        color: #0a7c4d;
        border-bottom-color: #f9a826;
        background: rgba(10, 124, 77, 0.08);
    }

    .nav-link i {
        font-size: 16px;
    }

.nav-text {
    white-space: nowrap;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(90deg, #f9a826, #ffde59);
    color: #0a7c4d !important;
    padding: 0 22px !important;
    border-radius: 25px;
    font-weight: 700 !important;
    margin-left: 10px;
}

    .cta-button:hover {
        background: linear-gradient(90deg, #ffde59, #fff176);
        transform: translateY(-2px);
    }

/* Dropdown Menu */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .dropdown-content a:hover {
        background: rgba(10, 124, 77, 0.08);
        color: #0a7c4d;
        padding-left: 25px;
    }

.dropdown-content i {
    font-size: 14px;
    color: #f9a826;
    width: 20px;
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

    .menu-toggle:hover {
        background: rgba(10, 124, 77, 0.1);
    }

.hamburger-box {
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: #0a7c4d;
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease;
}

.line1 {
    top: 0;
}

.line2 {
    top: 10px;
}

.line3 {
    top: 20px;
}

.menu-text {
    font-size: 14px;
    font-weight: 600;
    color: #0a7c4d;
}

/* Header Shrink Effect on Scroll */
.main-header.shrink {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

    .main-header.shrink .top-banner {
        padding: 8px 0;
    }

    .main-header.shrink .company-logo-img {
        height: 50px;
    }

    .main-header.shrink .company-name {
        font-size: 20px;
    }

    .main-header.shrink .company-tagline {
        font-size: 11px;
    }

    .main-header.shrink .contact-label {
        font-size: 10px;
    }

    .main-header.shrink .contact-value {
        font-size: 12px;
    }

    .main-header.shrink .nav-link {
        padding: 0 15px;
        font-size: 13px;
    }

    .main-header.shrink #header-placeholder {
        height: 120px;
    }

/* Responsive Design */

/* Tablet */
@media (max-width: 992px) {
    .top-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .company-brand {
        justify-content: center;
        text-align: center;
    }

    .contact-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-link {
        padding: 0 12px;
        font-size: 13px;
    }

    #header-placeholder {
        height: 160px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    #header-placeholder {
        height: 100px;
    }

    .top-banner {
        display: none; /* Hide top banner on mobile */
    }

    .mobile-logo {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 0;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

        .nav-menu.active {
            max-height: 500px;
        }

    .nav-item {
        width: 100%;
        height: auto;
    }

    .nav-link {
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid #eee;
        border-bottom-color: transparent !important;
    }

        .nav-link.active {
            background: rgba(10, 124, 77, 0.1);
            color: #0a7c4d;
        }

    .nav-text {
        flex: 1;
    }

    /* Dropdown for mobile */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(10, 124, 77, 0.05);
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin-left: 20px;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-content {
        max-height: 300px;
        padding: 10px 0;
    }

    .dropdown-content a {
        padding: 10px 30px;
    }

    .dropdown-arrow {
        margin-left: auto;
        transition: transform 0.4s ease;
    }

    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* CTA button in mobile menu */
    .cta-item {
        margin-top: 10px;
    }

    .cta-button {
        margin-left: 0;
        justify-content: center;
        border-radius: 25px;
    }

    /* Menu toggle animation */
    .menu-toggle.active .line1 {
        transform: rotate(45deg);
        top: 10px;
    }

    .menu-toggle.active .line2 {
        opacity: 0;
    }

    .menu-toggle.active .line3 {
        transform: rotate(-45deg);
        top: 10px;
    }

    .menu-toggle.active .menu-text {
        color: #0a7c4d;
    }

    /* Hide shrink effect on mobile */
    .main-header.shrink {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

        .main-header.shrink .mobile-logo-img {
            height: 35px;
        }

        .main-header.shrink #header-placeholder {
            height: 80px;
        }
}

/* Small Mobile */
@media (max-width: 480px) {
    #header-placeholder {
        height: 90px;
    }

    .nav-menu {
        top: 90px;
    }

    .mobile-logo-text {
        font-size: 18px;
    }

    .mobile-logo-img {
        height: 35px;
    }

    .menu-toggle {
        padding: 8px;
    }

    .hamburger-box {
        width: 26px;
        height: 20px;
    }

    .line1 {
        top: 0;
    }

    .line2 {
        top: 8px;
    }

    .line3 {
        top: 16px;
    }

    .menu-text {
        font-size: 12px;
    }
}
