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

.header {
    position: relative;
    z-index: 100;

    width: 100%;
    min-height: 100px;

    background-color: var(--color-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header__container {
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;

}

/* ==========================================================
   LOGÓTIPO
   ========================================================== */

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
}

.header__logo-image {
    width: 50px;
    height: 50px;

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

.header__brand {
    min-width: 320px;

    display: flex;
    flex-direction: column;

    line-height: 1.05;
}

.header__brand-name {
    color: var(--color-white);

    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.header__brand-subtitle {
    margin-top: 0.25rem;

    color: var(--color-secondary);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* ==========================================================
   NAVEGAÇÃO
   ========================================================== */

.header__nav {
    margin-left: auto;
    margin-right: 4rem;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header__link {
    position: relative;

    display: inline-flex;
    align-items: center;

    white-space: nowrap;

    color: var(--color-white);

    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;

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

.header__link:hover {
    color: var(--color-secondary);
    transform: translateY(-1px);
}

.header__link--active {
    color: var(--color-secondary);
}


/* ==========================================================
   BOTÃO LIGAR
   ========================================================== */

.header__call {
    min-width: 180px;
    min-height: 45px;
    padding-inline: 2rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;

    flex-shrink: 0;
    white-space: nowrap;

    color: var(--color-primary);
    background-color: var(--color-secondary);

    border-radius: 12px;

    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.header__call:hover {
    color: var(--color-primary);
    background-color: #ffe033;

    transform: translateY(-2px);

    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.24);
}

.header__call-icon {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    flex-shrink: 0;
}


/* ==========================================================
   BOTÃO WHATSAPP
   ========================================================== */

.header__whatsapp {
    display: none;
}


/* ==========================================================
   BOTÃO DO MENU MOBILE
   ========================================================== */

.header__menu-button {
    display: none;

    width: 44px;
    height: 44px;
    padding: 8px;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;

    cursor: pointer;
}

.header__menu-button span {
    width: 24px;
    height: 2px;

    display: block;

    background-color: var(--color-white);
    border-radius: 10px;
}

.header__urgency {
    display: none;
}


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

@media (max-width: 1100px) {

    .header__container {
        gap: 1rem;
    }

    .header__brand {
        min-width: auto;
    }

    .header__nav {
        margin-right: 1rem;
    }

    .header__menu {
        gap: 1.5rem;
    }

    .header__call {
        min-width: 170px;
        padding-inline: 1rem;
    }
}


/* ==========================================================
   CABEÇALHO — TELEMÓVEL
   ========================================================== */

@media (max-width: 768px) {

    .header {
        min-height: auto;
        padding: 22px 0;
    }

    .header__container {
        min-height: auto;

        display: grid;
        width: max-content;
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        align-items: center;

        column-gap: 12px;
        row-gap: 10px;

        margin: 0 auto;
    }

    /* PRIMEIRA LINHA: LOGÓTIPO + NOME */

    .header__logo {
        grid-column: 1 / -1;
        grid-row: 1;

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

        column-gap: 12px;
    }

    .header__logo-image {
        width: 58px;
        height: 58px;

        justify-self: center;
    }

    .header__brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        line-height: 1.05;
    }

    .header__brand-name,
    .header__brand-subtitle {
        white-space: nowrap;
    }

    .header__brand-name {
        font-size: 1.3rem;
        letter-spacing: 0.13em;
    }

    .header__brand-subtitle {
        margin-top: 4px;

        font-size: 0.93rem;
        letter-spacing: 0.025em;
    }


    /* SEGUNDA LINHA: MENU + LIGAR */

    .header__menu-button {
        grid-column: 1;
        grid-row: 2;

        display: flex;

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

        justify-self: center;
    }

    .header__menu-button span {
        width: 22px;
    }

    .header__call {
        grid-column: 2;
        grid-row: 2;

        display: inline-flex;

        min-width: 0;
        width: 100%;
        max-width: 190px;
        min-height: 44px;
        padding-inline: 12px;

        justify-self: start;

        font-size: 0.9rem;
        border-radius: 10px;
    }

    .header__call-icon {
        width: 20px;
        height: 20px;
    }


    /* MENU ABERTO */

    .header__nav {
        display: none;

        grid-column: 1 / -1;
        grid-row: 4;

        width: 100%;
        margin: 0;
    }

    .header__nav.header__nav--open {
        display: block;
    }

    .header__menu {
        flex-direction: column;
        align-items: center;

        gap: 14px;
        padding: 14px 0 5px;
    }

    .header__link {
        font-size: 0.8rem;
    }

    .header__urgency {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        margin-top: 24px;
        padding: 4px 12px;
        width: fit-content;
        margin-inline: auto;

        font-size: 0.8rem;
        font-weight: 700;
        text-align: center;

        color: #0b1f3b;
        background-color: #FFD400;
        border-radius: 8px;
    }

    .header__urgency-icon {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
    }
}