/* =========================================================
   SNMF INFRATECH
   HEADER CSS
   Dark Golden Luxury Header
   ========================================================= */


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: transparent;

    border: none;
    box-shadow: none;

    transition:
        background-color 0.35s ease,
        padding 0.35s ease,
        backdrop-filter 0.35s ease;
}


/* =========================================================
   HEADER CONTAINER
   ========================================================= */

.header-container {
    width: min(92%, 1400px);
    margin: 0 auto;

    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* =========================================================
   LOGO
   ========================================================= */

.site-logo {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    text-decoration: none;

    line-height: 0;
}

.site-logo img {
    display: block;

    width: auto;
    height: 78px;

    max-width: 230px;

    object-fit: contain;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}


/* Logo Hover */

.site-logo:hover img {
    transform: scale(1.03);
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 34px;

    margin-left: auto;
}


/* =========================================================
   NAVIGATION LINKS
   ========================================================= */

.nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    padding: 10px 0;

    color: #f5f2e8;

    font-family:
        "Inter",
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 13px;
    font-weight: 500;

    letter-spacing: 1.2px;
    text-transform: uppercase;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.3s ease;
}


/* Gold Underline */

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 2px;

    width: 0;
    height: 1px;

    background: linear-gradient(
        90deg,
        #b78a20,
        #e3c45c,
        #b78a20
    );

    transition:
        width 0.35s ease;
}


/* Hover */

.nav-link:hover {
    color: #d8b84f;
}

.nav-link:hover::after {
    width: 100%;
}


/* Active */

.nav-link.active {
    color: #d8b84f;
}

.nav-link.active::after {
    width: 100%;
}


/* =========================================================
   HEADER CTA
   ========================================================= */

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    min-height: 44px;

    padding: 0 20px;

    border: 1px solid rgba(211, 174, 65, 0.8);

    color: #e0c35b;

    font-family:
        "Inter",
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    text-decoration: none;

    background: rgba(0, 0, 0, 0.08);

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


/* CTA Arrow */

.cta-arrow {
    font-size: 18px;
    line-height: 1;

    transition:
        transform 0.3s ease;
}


/* CTA Hover */

.header-cta:hover {
    color: #080808;

    background: #d8b84f;

    border-color: #d8b84f;

    transform: translateY(-1px);
}

.header-cta:hover .cta-arrow {
    transform: translateX(4px);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-toggle {
    display: none;

    width: 46px;
    height: 46px;

    padding: 0;

    border: 1px solid rgba(216, 184, 79, 0.55);

    background: transparent;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    transition:
        border-color 0.3s ease;
}


/* Hamburger Lines */

.mobile-menu-toggle span {
    display: block;

    width: 21px;
    height: 1px;

    background: #d8b84f;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* Hover */

.mobile-menu-toggle:hover {
    border-color: #d8b84f;
}


/* =========================================================
   MOBILE MENU OPEN ICON
   ========================================================= */

.mobile-menu-toggle.menu-open span:nth-child(1) {
    transform:
        translateY(6px)
        rotate(45deg);
}

.mobile-menu-toggle.menu-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.menu-open span:nth-child(3) {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .header-container {
        width: min(94%, 1400px);

        gap: 25px;
    }

    .main-navigation {
        gap: 22px;
    }

    .nav-link {
        font-size: 12px;
        letter-spacing: 0.9px;
    }

    .site-logo img {
        height: 70px;
        max-width: 205px;
    }

    .header-cta {
        padding: 0 15px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .site-header {
        position: absolute;
    }


    .header-container {
        min-height: 84px;

        width: calc(100% - 36px);

        gap: 20px;
    }


    /* Logo */

    .site-logo img {
        height: 64px;
        max-width: 190px;
    }


    /* Hide Desktop Navigation */

    .main-navigation {
        position: absolute;

        top: 84px;
        left: 18px;
        right: 18px;

        display: flex;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 12px 20px;

        background: rgba(7, 7, 7, 0.97);

        border: 1px solid rgba(216, 184, 79, 0.25);

        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        opacity: 0;
        visibility: hidden;

        transform:
            translateY(-10px);

        pointer-events: none;

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }


    /* Open Mobile Navigation */

    .main-navigation.mobile-menu-active {
        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);

        pointer-events: auto;
    }


    /* Mobile Links */

    .nav-link {
        width: 100%;

        padding: 15px 4px;

        font-size: 12px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);
    }


    .nav-link:last-child {
        border-bottom: none;
    }


    .nav-link::after {
        bottom: 0;
    }


    /* CTA */

    .header-cta {
        display: none;
    }


    /* Menu Button */

    .mobile-menu-toggle {
        display: flex;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .header-container {
        width: calc(100% - 28px);

        min-height: 76px;
    }


    .site-logo img {
        height: 57px;

        max-width: 170px;
    }


    .main-navigation {
        top: 76px;

        left: 14px;
        right: 14px;
    }


    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.nav-link:focus-visible,
.header-cta:focus-visible,
.mobile-menu-toggle:focus-visible,
.site-logo:focus-visible {
    outline: 1px solid #d8b84f;

    outline-offset: 4px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .site-header,
    .site-logo img,
    .nav-link,
    .nav-link::after,
    .header-cta,
    .cta-arrow,
    .mobile-menu-toggle,
    .mobile-menu-toggle span,
    .main-navigation {
        transition: none;
    }

}