﻿/* Extracted Navbar Styles */
/* Header Styles */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow: visible;
}

.main-nav {
    position: relative;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 64px;
    height: 80px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 1001;
    /* Ensure this is above the top banner */
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
    height: 100%;
}

.nav-links li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: #4A4A4A;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    height: 100%;
}


/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 4px;
    padding: 8px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333333;
    padding: 12px 24px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    height: auto;
}

.dropdown-content a:hover {
    background-color: #F8F9FA;
    color: #FF6600;
}

/* Nav CTA Button */
.nav-cta-button {
    background-color: #FF6600;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
}

.nav-cta-button:hover {
    background-color: #e65c00;
    color: #ffffff;
}

/* Menu toggle hidden on desktop */
.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Mobile CTA hidden on desktop */
.mobile-cta {
    display: none;
}

/* Top Banner */
.top-bar {
    background-color: #005E9E;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 64px;
    font-size: 13px;
    height: 44px;
}

.top-bar-toggle {
    display: none;
}

.top-bar-left a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 8px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.social-icons-logo {
    height: 24px;
    width: 24px;
}

.social-icons a:hover {
    opacity: 0.8;
}

/* Tablet Responsive */
@media screen and (max-width: 1024px) {
    .main-nav {
        padding: 0 32px;
    }

    .top-bar {
        padding: 0 32px;
    }

    .hero-content {
        padding-left: 64px;
    }

    .content {
        width: 70%;
    }

    .nav-links {
        gap: 16px;
    }

    .display {
        font-size: 40px;
    }
}

/* Mobile Responsive */
@media screen and (max-width: 900px) {
    .menu-toggle {
        display: flex !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: fixed;
        top: 80px;
        left: 0;
        background-color: #ffffff;
        padding: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        gap: 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eeeeee;
        padding: 0;
        height: auto;
    }

    /* Key fix: dropdown li must be column so content expands BELOW instead of sideways */
    .nav-links li.dropdown {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .nav-links a {
        padding: 16px 24px;
        width: 100%;
        font-size: 15px;
        height: auto;
        min-height: 52px;
        display: flex;
        align-items: center;
    }

    /* On mobile, remove hover-based dropdown — use JS click toggle instead */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    /* Dropdown opens when .open class is added via JS */
    .dropdown-content.open {
        display: flex !important;
        flex-direction: column;
    }

    .dropdown-content {
        display: none;
        position: relative;
        box-shadow: none;
        background-color: #ffffff;
        min-width: 100%;
        width: 100%;
        height: auto;
        border-radius: 0;
        top: 0;
        flex-direction: column;
        padding: 0;
    }

    .dropdown-content a {
        padding: 16px 24px 16px 36px;
        border-bottom: 1px solid #eeeeee;
        font-size: 14px;
        min-height: 52px;
        width: 100%;
        display: flex;
        align-items: center;
        color: #4A4A4A;
    }

    /* Dropdown trigger link fills full width, arrow on right */
    .nav-links li.dropdown>a {
        width: 100%;
        justify-content: space-between;
    }

    /* Style the dropdown trigger arrow rotation when open */
    .dropdown.open>a svg {
        transform: rotate(180deg);
        transition: transform 0.2s;
    }

    .dropdown>a svg {
        transition: transform 0.2s;
    }

    .desktop-cta {
        display: none;
    }

    .mobile-cta {
        display: flex !important;
        border-bottom: none !important;
        padding: 24px !important;
    }

    .mobile-cta a {
        padding: 10px 24px;
    }

    .top-bar {
        display: flex !important;
        height: auto;
        min-height: 44px;
        padding: 8px 16px;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .top-bar-left {
        font-size: 11px;
    }

    .top-bar-right {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        order: 3;
    }

    .top-bar-right.active {
        display: flex;
    }

    .top-bar-toggle {
        display: flex !important;
        cursor: pointer;
        font-size: 20px;
        transition: transform 0.3s ease;
        order: 2;
    }

    .top-bar-toggle.active {
        transform: rotate(180deg);
    }

    .main-nav {
        padding: 0 16px;
    }

    .hero-section {
        padding: 0px;
        height: auto;
        min-height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Restore vertical centering */
        align-items: center;
    }

    .hero-content {
        padding: 40px 24px;
        align-items: center;
        text-align: left;
        margin-top: 0;
        /* Remove top push-down */
    }

    .content {
        width: 100%;
        align-items: center;
    }

    .display {
        font-size: 32px;
        text-align: left;

    }

    .description {
        text-align: left;
        font-size: 15px;
        letter-spacing: 0.3px;
    }

    .buttons {
        flex-direction: row;
        width: 100%;
        align-items: stretch;
    }

    .cta-button-primary,
    .cta-button-secondary {
        width: 100%;
        text-align: center;
    }

    .certification {
        flex-direction: column;
        gap: 16px;
    }

    .logo-section {
        flex-wrap: wrap;
        justify-content: center;
    }

    .client {
        padding: 40px 16px;
    }

    .upper-client-section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    .banner {
        flex-direction: row-reverse;
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .stat-section {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 0;
        justify-content: center;
        align-items: center;
    }

    .stat-divider {
        display: block;
        font-size: 14px;
    }

    .marquee-item {
        width: 160px;
        height: 80px;
        padding: 12px;
    }
}