/* =========================================================
   HIFEM — NAV
   Menu superior comum a todas as páginas
   ========================================================= */

@import "./global.css";

/* =========================================================
   BARRA PRINCIPAL
   ========================================================= */

.navbar {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto 0;

    min-height: var(--nav-height);
    padding: 14px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;

    background: rgba(244, 240, 232, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(184, 155, 96, 0.22);
}

/* =========================================================
   MARCA
   ========================================================= */

.title {
    display: flex;
    align-items: center;
    gap: 18px;

    min-width: max-content;
    flex: 0 0 auto;
}

.title img,
.title .nav-logo {
    width: 82px;
    height: 82px;

    object-fit: contain;
    flex: 0 0 auto;
}

.title div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.title h2 {
    margin: 0;
    line-height: 0.95;
}

.title h2 a {
    color: var(--blue-dark);
    text-decoration: none;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 8px;

    transition: color 0.2s ease;
}

.title h2 a:hover,
.title h2 a:focus-visible {
    color: var(--gold);
    outline: none;
}

.title p {
    margin-top: 8px;

    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.4px;

    white-space: nowrap;
}

/* =========================================================
   LINKS DO MENU
   ========================================================= */

.navbar-btn-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;

    flex: 1 1 auto;
}

.navbar-btn-list a {
    position: relative;

    color: var(--blue-dark);
    text-decoration: none;

    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;

    padding: 8px 0;
    opacity: 0.88;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.navbar-btn-list a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--gold);

    transition: width 0.2s ease;
}

.navbar-btn-list a:hover,
.navbar-btn-list a:focus-visible {
    color: var(--gold);
    opacity: 1;
    outline: none;
}

.navbar-btn-list a:hover::after,
.navbar-btn-list a:focus-visible::after,
.navbar-btn-list a.active::after {
    width: 100%;
}

.navbar-btn-list a.active {
    color: var(--gold);
}

/* =========================================================
   BOTÃO MOBILE
   ========================================================= */

#nav-check {
    display: none;
}

.nav-checkbtn {
    display: none;

    color: var(--blue-dark);
    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-checkbtn:hover,
.nav-checkbtn:focus-visible {
    color: var(--gold);
    transform: translateY(-1px);
    outline: none;
}

/* =========================================================
   TELAS INTERMEDIÁRIAS
   ========================================================= */

@media (max-width: 1260px) {
    .navbar {
        align-items: flex-start;
        flex-wrap: wrap;

        min-height: 112px;
        padding: 14px 6% 16px;
        gap: 12px 34px;
    }

    .navbar-btn-list {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;

        gap: 10px 24px;
    }

    .navbar-btn-list a {
        font-size: 12px;
        letter-spacing: 1.7px;
    }
}

@media (max-width: 980px) {
    .title img,
    .title .nav-logo {
        width: 70px;
        height: 70px;
    }

    .title h2 a {
        font-size: 34px;
        letter-spacing: 7px;
    }

    .title p {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .navbar-btn-list {
        gap: 8px 20px;
    }
}

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

@media (max-width: 820px) {
    .navbar {
        min-height: 82px;
        padding: 12px 22px;

        align-items: center;
        flex-wrap: wrap;
        gap: 0;
    }

    .title {
        max-width: calc(100% - 56px);
        gap: 14px;
    }

    .title img,
    .title .nav-logo {
        width: 60px;
        height: 60px;
    }

    .title h2 a {
        font-size: 30px;
        letter-spacing: 6px;
    }

    .title p {
        max-width: 230px;

        white-space: normal;

        font-size: 10px;
        line-height: 1.35;
        letter-spacing: 1.5px;
    }

    .nav-checkbtn {
        display: flex;
        align-items: center;
        justify-content: center;

        position: absolute;
        right: 24px;
        top: 26px;

        width: 34px;
        height: 34px;
    }

    .navbar-btn-list {
        display: none;

        width: 100%;
        flex: 0 0 100%;

        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

        gap: 0;

        margin-top: 14px;
        padding: 14px 0 4px;

        border-top: 1px solid rgba(184, 155, 96, 0.24);
    }

    .navbar-btn-list.inactive {
        display: none;
    }

    #nav-check:checked ~ .navbar-btn-list,
    .navbar-btn-list:not(.inactive) {
        display: flex;
    }

    .navbar-btn-list a {
        width: 100%;

        padding: 13px 0;

        font-size: 14px;
        letter-spacing: 1.8px;
    }

    .navbar-btn-list a::after {
        bottom: 8px;
    }
}

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

@media (max-width: 480px) {
    .navbar {
        padding-inline: 18px;
    }

    .title {
        gap: 12px;
    }

    .title img,
    .title .nav-logo {
        width: 54px;
        height: 54px;
    }

    .title h2 a {
        font-size: 28px;
        letter-spacing: 5px;
    }

    .title p {
        display: none;
    }

    .nav-checkbtn {
        right: 18px;
        top: 22px;
    }
}