/* =========================================================
   VESTLYS — HEADER
   ========================================================= */

.vestlys-header {
    position: absolute;
    top: 0;
    left: 0;

    z-index: 20;

    width: 100%;
    height: 110px;

    padding: 0 5vw;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    pointer-events: none;
}


/* =========================================================
   BRAND / V-SIGNET
   ========================================================= */

.vestlys-header__brand {
    grid-column: 1;
    justify-self: start;

    display: flex;
    align-items: center;

    text-decoration: none;
    pointer-events: auto;
}

.vestlys-header__mark {
    display: block;

    width: clamp(46px, 3vw, 70px);
    height: auto;

    opacity: 0.94;

    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

.vestlys-header__brand:hover .vestlys-header__mark {
    opacity: 1;
    transform: translateY(-1px);
}


/* =========================================================
   DESKTOP PRIMARY NAVIGATION
   ========================================================= */

.vestlys-header__nav {
    grid-column: 2;
    justify-self: center;

    display: flex;
    align-items: center;

    gap: clamp(34px, 3vw, 72px);

    pointer-events: auto;
}

.vestlys-header__nav a {
    position: relative;

    color: rgba(244, 239, 230, 0.90);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.22em;

    text-decoration: none;

    transition:
        color 220ms ease,
        opacity 220ms ease;
}

.vestlys-header__nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -9px;

    height: 1px;

    background: #d8c3a5;

    transform: scaleX(0);
    transform-origin: center;

    opacity: 0.75;

    transition: transform 240ms ease;
}

.vestlys-header__nav a:hover {
    color: #f4efe6;
}

.vestlys-header__nav a:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   SOCIAL ZONE
   ========================================================= */

.vestlys-header__social-zone {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
    max-width: 100%;

    display: flex;
    align-items: center;

    pointer-events: auto;
}


/* FOLLOW */

.vestlys-header__follow {
    display: block;

    margin-right: 18px;

    color: rgba(216, 195, 165, 0.86);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.28em;
}


/* DIVIDER */

.vestlys-header__social-divider {
    display: block;

    width: 1px;
    height: 19px;

    margin-right: 21px;

    background:
        linear-gradient(
            180deg,
            rgba(216, 195, 165, 0),
            rgba(216, 195, 165, 0.58),
            rgba(216, 195, 165, 0)
        );
}


/* =========================================================
   SOCIAL ICONS
   ========================================================= */

.vestlys-header__social {
    display: flex;
    align-items: center;

    gap: 22px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-block: 2px;
    margin-block: -2px;
}

.vestlys-social-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;
    flex-shrink: 0;

    color: rgba(244, 239, 230, 0.86);

    text-decoration: none;

    transition:
        color 220ms ease,
        transform 220ms ease;
}

.vestlys-social-link:hover {
    color: #d8c3a5;
    transform: translateY(-2px);
}

.vestlys-social-link svg {
    display: block;

    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Presence supplies local image icons instead of inline SVG. */
.vestlys-social-link .vestlys-presence-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(94%) sepia(8%) saturate(332%) hue-rotate(337deg) brightness(103%) contrast(91%);
    opacity: .86;
    transition: filter 220ms ease, opacity 220ms ease;
}

.vestlys-social-link:hover .vestlys-presence-icon {
    filter: invert(83%) sepia(15%) saturate(558%) hue-rotate(354deg) brightness(94%) contrast(88%);
    opacity: 1;
}

.vestlys-social-fill,
.vestlys-social-dot {
    fill: currentColor;
    stroke: none;
}


/* =========================================================
   MOBILE ELEMENTS — HIDDEN ON DESKTOP
   ========================================================= */

.vestlys-menu-toggle,
.vestlys-mobile-menu,
.vestlys-mobile-menu__close {
    display: none;
}


/* =========================================================
   LARGE / ULTRAWIDE
   ========================================================= */

@media (min-width: 2200px) {

    .vestlys-header {
        height: 125px;
    }

    .vestlys-header__mark {
        width: 70px;
    }

    .vestlys-header__nav a {
        font-size: 13px;
    }

    .vestlys-header__follow {
        margin-right: 20px;
        font-size: 11px;
    }

    .vestlys-header__social-divider {
        height: 21px;
        margin-right: 24px;
    }

    .vestlys-header__social {
        gap: 24px;
    }

    .vestlys-social-link {
        width: 25px;
        height: 25px;
    }
}


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

@media (max-width: 900px) {

    /* HEADER */

    .vestlys-header {
        height: 82px;

        padding: 0 6vw;

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


    /* BRAND LEFT */

    .vestlys-header__brand {
        grid-column: 1;
        justify-self: start;

        z-index: 32;
    }

    .vestlys-header__mark {
        width: 42px;
    }


    /* DESKTOP NAVIGATION OFF */

    .vestlys-header__nav {
        display: none;
    }


    /* SOCIAL MEDIA CENTER */

    .vestlys-header__social-zone {
        grid-column: 2;
        justify-self: center;
        max-width: calc(88vw - 104px);

        z-index: 32;
    }

    .vestlys-header__follow,
    .vestlys-header__social-divider {
        display: none;
    }

    .vestlys-header__social {
        gap: 17px;
    }

    .vestlys-social-link {
        width: 19px;
        height: 19px;
    }


    /* =====================================================
       HAMBURGER RIGHT
       ===================================================== */

    .vestlys-menu-toggle {
        grid-column: 3;
        justify-self: end;

        position: relative;

        z-index: 32;

        display: flex;
        flex-direction: column;
        justify-content: center;

        gap: 5px;

        width: 32px;
        height: 32px;

        padding: 0;
        margin: 0;

        border: 0;
        border-radius: 0;

        background: transparent;

        color: #f4efe6;

        cursor: pointer;

        pointer-events: auto;

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

    .vestlys-menu-toggle span {
        display: block;

        width: 25px;
        height: 1px;

        margin-left: auto;

        background: currentColor;
    }


    /* HAMBURGER DISAPPEARS WHEN MENU IS OPEN */

    body.vestlys-menu-open .vestlys-menu-toggle {
        opacity: 0;

        pointer-events: none;
    }


    /* =====================================================
       FULLSCREEN MOBILE MENU
       ===================================================== */

    .vestlys-mobile-menu {
        position: fixed;

        inset: 0;

        z-index: 1000;

        display: flex;
        align-items: center;
        justify-content: center;

        background: rgba(4, 6, 8, 0.82);

        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transition:
            opacity 280ms ease,
            visibility 280ms ease;
    }

    .vestlys-mobile-menu.is-open {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;
    }


    /* =====================================================
       CLOSE BUTTON
       ===================================================== */

    .vestlys-mobile-menu__close {
        position: fixed;

        top: 24px;
        right: 6vw;

        z-index: 1100;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 40px;
        height: 40px;

        padding: 0;
        margin: 0;

        border: 0;
        border-radius: 0;

        background: transparent !important;

        color: rgba(244, 239, 230, 0.96);

        cursor: pointer;

        pointer-events: auto;

        appearance: none;
        -webkit-appearance: none;

        box-shadow: none;
        outline: none;
    }


    /* OLD X SPANS ARE NOT USED */

    .vestlys-mobile-menu__close span {
        display: none;
    }


    /* ACTUAL X */

    .vestlys-mobile-menu__close::before {
        content: "×";

        display: block;

        color: rgba(244, 239, 230, 0.96);

        font-family:
            Arial,
            Helvetica,
            sans-serif;

        font-size: 38px;
        font-weight: 200;
        line-height: 1;

        transform: translateY(-1px);
    }


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

    .vestlys-mobile-menu__nav {
        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 38px;
    }

    .vestlys-mobile-menu__nav a {
        color: rgba(244, 239, 230, 0.94);

        font-family:
            Arial,
            Helvetica,
            sans-serif;

        font-size: 17px;
        font-weight: 400;
        line-height: 1;

        letter-spacing: 0.28em;

        text-decoration: none;

        transition:
            color 220ms ease,
            transform 220ms ease;
    }

    .vestlys-mobile-menu__nav a:hover,
    .vestlys-mobile-menu__nav a:focus-visible {
        color: #d8c3a5;

        transform: translateY(-1px);
    }


    /* PREVENT PAGE SCROLL WHILE MENU IS OPEN */

    body.vestlys-menu-open {
        overflow: hidden;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

    .vestlys-mobile-menu {
        transition: none;
    }
}