
/* ==========================================
   LA VERSION FRANCE
   HEADER - VERSÃO 3
========================================== */

:root {
    --lv-background: #171717;
    --lv-text: #f5f5f5;
    --lv-muted: #aaa;
    --lv-border: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 280px;
    background: var(--lv-background);
    color: var(--lv-text);
    font-family: Arial, Helvetica, sans-serif;
}

/* HEADER PRINCIPAL */


.lv-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.78) 35%,
        rgba(0, 0, 0, 0.40) 70%,
        rgba(0, 0, 0, 0) 100%
    );

    border-bottom: none;
}


/* FAIXA INSTITUCIONAL */

.lv-topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.lv-topbar-container {
    width: min(100% - 48px, 1440px);
    min-height: 28px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lv-topbar span {
    color: #a9a9a9;
    font-family: 'Jost', Arial, sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* CONTAINER DO HEADER */

.lv-header-container {
    width: min(100% - 48px, 1440px);
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* LOGOMARCA */

.lv-logo {
    display: block;
    width: clamp(190px, 22vw, 290px);
    flex-shrink: 0;
    line-height: 0;
}

.lv-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* MENU DESKTOP */

.lv-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(16px, 2vw, 34px);
}

.lv-nav a,
.lv-mobile-nav a {
    color: var(--lv-text);
    text-decoration: none;
    font-family: 'Jost', Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.lv-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
}

.lv-nav a::after {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.85);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
}

.lv-nav a:hover::after,
.lv-nav a:focus-visible::after,
.lv-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.lv-nav a:hover,
.lv-mobile-nav a:hover {
    color: var(--lv-muted);
}

/* ACESSIBILIDADE */

.lv-nav a:focus-visible,
.lv-mobile-nav a:focus-visible,
.lv-menu-button:focus-visible,
.lv-logo:focus-visible {
    outline: 2px solid white;
    outline-offset: 5px;
}

/* ELEMENTOS MOBILE OCULTOS NO DESKTOP */

.lv-menu-button,
.lv-mobile-nav {
    display: none;
}

/* ==========================================
   TABLETS E SMARTPHONES
========================================== */

@media (max-width: 900px) {

    .lv-topbar-container {
        width: 100%;
        min-height: 27px;
        padding: 0 18px;
    }

    .lv-topbar span {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .lv-header-container {
        position: relative;
        width: 100%;
        min-height: 82px;
        padding: 0 18px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0;
    }

    /* LOGOMARCA CENTRALIZADA */

    .lv-logo {
        grid-column: 2;
        width: clamp(155px, 43vw, 230px);
        justify-self: center;
    }

    /* OCULTAR MENU DESKTOP */

    .lv-nav {
        display: none;
    }

    /* BOTÃO MENU MOBILE */

    .lv-menu-button {
        grid-column: 3;
        justify-self: end;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .lv-menu-button span {
        display: block;
        width: 23px;
        height: 1px;
        background: var(--lv-text);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    /* ANIMAÇÃO ABRIR / FECHAR */

    .lv-menu-button[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .lv-menu-button[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .lv-menu-button[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* MENU MOBILE EXPANDIDO */

    .lv-mobile-nav:not([hidden]) {
        display: flex;
        flex-direction: column;
        padding: 14px 24px 28px;
        border-top: 1px solid var(--lv-border);
        background: rgba(18, 18, 18, 0.97);
    }

    .lv-mobile-nav a {
        padding: 15px 0;
        border-bottom: 1px solid var(--lv-border);
    }
}

/* ==========================================
   SMARTPHONES PEQUENOS
========================================== */

@media (max-width: 380px) {

    .lv-topbar-container {
        padding: 0 12px;
    }

    .lv-topbar span {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .lv-header-container {
        min-height: 72px;
        padding: 0 12px;
    }

    .lv-logo {
        width: min(43vw, 165px);
    }
}



/* ==========================================
   HEADER - SMARTPHONE HORIZONTAL
========================================== */

@media (max-height: 550px) and (orientation: landscape) and (max-width: 900px) {

    .lv-topbar-container {
        min-height: 22px;
    }

    .lv-header-container {
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .lv-logo {
        width: clamp(145px, 22vw, 190px);
        flex-shrink: 0;
        margin: 0;
    }

    .lv-menu-button {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        margin-left: auto;
    }
}



/* ==========================================
   ACESSIBILIDADE - MOVIMENTO REDUZIDO
========================================== */

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

    .lv-nav a,
    .lv-mobile-nav a,
    .lv-menu-button span,
    .lv-nav a::after {
        transition: none;
    }
}
