/* =========================================
   VISALWEB HEADER
   ========================================= */


/* =========================================
   SITE HEADER
   ========================================= */

.site-header {

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);

    position: sticky;

    top: 0;

    z-index: 1000;

    font-family:
        "Times New Roman",
        Times,
        serif;

}


/* =========================================
   HEADER CONTAINER
   ========================================= */

.header-container {

    width: 100%;

    max-width: 1280px;

    margin: 0 auto;

    padding: 14px 30px;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 20px;

}


/* =========================================
   BRAND
   ========================================= */

.brand {

    justify-self: start;

    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

    color: #111111;

    flex-shrink: 0;

}


/* =========================================
   BRAND LOGO
   ========================================= */

.brand-logo {

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f97316;

    color: #ffffff;

    border-radius: 12px;

    font-size: 28px;

    font-weight: bold;

    box-shadow:
        0 5px 15px rgba(249, 115, 22, 0.25);

}


/* =========================================
   BRAND TEXT
   ========================================= */

.brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.1;

}


/* =========================================
   BRAND NAME
   ========================================= */

.brand-name {

    font-size: 28px;

    font-weight: bold;

    color: #0f4c81;

}


/* =========================================
   BRAND TAGLINE
   ========================================= */

.brand-tagline {

    margin-top: 4px;

    font-size: 13px;

    font-weight: bold;

    color: #198754;

}


/* =========================================
   NAVIGATION
   ========================================= */

.main-nav {

    justify-self: center;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 34px;

}


/* =========================================
   NAVIGATION LINKS
   ========================================= */

.nav-link {

    position: relative;

    padding: 8px 0;

    text-decoration: none;

    font-family:
        "Times New Roman",
        Times,
        serif;

    font-size: 18px;

    font-weight: bold;

    color: #222222;

    transition:
        color 0.3s ease,
        transform 0.3s ease;

}


/* =========================================
   NAVIGATION HOVER
   ========================================= */

.nav-link:hover {

    color: #f97316;

    transform: translateY(-1px);

}


/* =========================================
   NAVIGATION UNDERLINE
   ========================================= */

.nav-link::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 0;

    height: 2px;

    background: #f97316;

    transition: width 0.3s ease;

}


/* =========================================
   SHOW UNDERLINE
   ========================================= */

.nav-link:hover::after,
.nav-link.active::after {

    width: 100%;

}


/* =========================================
   ACTIVE NAVIGATION
   ========================================= */

.nav-link.active {

    color: #f97316;

}


/* =========================================
   CTA BUTTON
   ========================================= */

.header-cta {

    justify-self: end;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 20px;

    background: #f97316;

    color: #ffffff;

    border-radius: 8px;

    text-decoration: none;

    font-family:
        "Times New Roman",
        Times,
        serif;

    font-size: 16px;

    font-weight: bold;

    white-space: nowrap;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


/* =========================================
   CTA HOVER
   ========================================= */

.header-cta:hover {

    background: #ea580c;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(249, 115, 22, 0.25);

}


/* =========================================
   MOBILE MENU BUTTON
   ========================================= */

.menu-toggle {

    display: none;

    width: 44px;

    height: 44px;

    padding: 8px;

    border: none;

    border-radius: 8px;

    background: #0f4c81;

    cursor: pointer;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

}


/* =========================================
   HAMBURGER LINES
   ========================================= */

.menu-toggle span {

    display: block;

    width: 24px;

    height: 2px;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;

}


/* =========================================
   MOBILE MENU OPEN STATE
   ========================================= */

.menu-toggle.active span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);

}


.menu-toggle.active span:nth-child(2) {

    opacity: 0;

}


.menu-toggle.active span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);

}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1050px) {

    .header-container {

        padding: 14px 22px;

    }


    .main-nav {

        gap: 22px;

    }


    .nav-link {

        font-size: 17px;

    }


    .header-cta {

        padding: 11px 16px;

        font-size: 15px;

    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 850px) {

    .header-container {

        display: flex;

        align-items: center;

        justify-content: space-between;

        position: relative;

        padding: 14px 22px;

    }


    /* Show Hamburger */

    .menu-toggle {

        display: flex;

        flex-shrink: 0;

    }


    /* Hide Desktop CTA */

    .header-cta {

        display: none;

    }


    /* Mobile Navigation */

    .main-nav {

        display: none;

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        padding: 20px 25px;

        background: #ffffff;

        border-top:
            1px solid rgba(0, 0, 0, 0.06);

        border-bottom:
            1px solid rgba(0, 0, 0, 0.08);

        box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.08);

        flex-direction: column;

        align-items: stretch;

        gap: 0;

    }


    /* Open Mobile Navigation */

    .main-nav.active {

        display: flex;

    }


    /* Mobile Navigation Links */

    .nav-link {

        width: 100%;

        padding: 13px 5px;

        font-size: 18px;

    }


    /* Remove Underline on Mobile */

    .nav-link::after {

        display: none;

    }


    /* Remove Hover Movement */

    .nav-link:hover {

        transform: none;

    }

}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 500px) {

    .header-container {

        padding: 12px 16px;

    }


    /* Logo */

    .brand-logo {

        width: 42px;

        height: 42px;

        font-size: 24px;

        border-radius: 10px;

    }


    /* Brand Name */

    .brand-name {

        font-size: 23px;

    }


    /* Tagline */

    .brand-tagline {

        font-size: 11px;

    }


    /* Menu Button */

    .menu-toggle {

        width: 42px;

        height: 42px;

    }


    .menu-toggle span {

        width: 22px;

    }

}