/* ==========================================================
   GWR Form Header Styles

   Components
   - Header
   - Logo
   - Desktop Navigation
   - Mobile Menu
========================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}


/* ==========================================================
   Header
========================================================== */

.gwr-b2c-header {
    position: relative;
    z-index: 1000;
    width: 100%;
}

.gwr-b2c-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
}


/* ==========================================================
   Logo
========================================================== */

.gwr-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.gwr-logo img {
    display: block;
    width: 80px;
    height: 80px;
}


/* ==========================================================
   Desktop Navigation
========================================================== */

.gwr-b2c-navigation ul {
    display: flex;
    align-items: center;
    gap: 36px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.gwr-b2c-navigation li {
    margin: 0;
}

.gwr-b2c-navigation a {
    color: #071f52;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.gwr-b2c-navigation a:hover,
.gwr-b2c-navigation a:focus {
    color: #124bd6;
}


/* ==========================================================
   Mobile Menu Button
========================================================== */

.gwr-b2c-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}

/* Hamburger lines */

.gwr-b2c-menu-toggle span {
    display: block;

    width: 26px;
    height: 2px;
    margin: 3px 0;

    background-color: #071f52;
    border-radius: 2px;

    transform-origin: center;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

/* Keyboard focus */

.gwr-b2c-menu-toggle:focus-visible {
    outline: 2px solid #124bd6;
    outline-offset: 3px;
}


/* ==========================================================
   Mobile Header
========================================================== */

@media screen and (max-width: 768px) {

    .gwr-b2c-container {
        flex-wrap: wrap;
        padding: 16px 20px;
    }

    .gwr-logo img {
        width: 64px !important;
        height: 64px !important;
    }

    .gwr-b2c-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .gwr-b2c-navigation {
        display: none;
        width: 100%;
        margin-top: 16px;
    }

    .gwr-b2c-navigation.gwr-b2c-show {
        display: block;
    }

    .gwr-b2c-navigation ul {
        flex-direction: column;
        gap: 0;

        width: 100%;
        margin: 0;
        padding: 0 0 0 15px;
    }

    .gwr-b2c-navigation li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .gwr-b2c-navigation a {
        display: block;

        width: 100%;
        padding: 16px 0;

        border-top: 1px solid rgba(7, 31, 82, 0.15);
    }

    .gwr-b2c-navigation a:hover,
    .gwr-b2c-navigation a:focus {
        padding-left: 12px;
        background-color: #003ad6;
        color: #ffffff;
    }

    /* Hamburger changes into close icon */

    .gwr-b2c-menu-toggle.gwr-b2c-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .gwr-b2c-menu-toggle.gwr-b2c-active span:nth-child(2) {
        opacity: 0;
    }

    .gwr-b2c-menu-toggle.gwr-b2c-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* ==========================================================
   Reduced Motion
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .gwr-b2c-menu-toggle span {
        transition: none;
    }

}