/* ====================================================== */
/* ==================== MAIN.CSS ======================== */
/* ====================================================== */

/* ====== Barlow Font (local) - apenas ExtraBold usada em h1-h5 ====== */
@font-face {
    font-family: "Barlow";
    src: url("../fonts/Barlow/Barlow-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: optional;
}

/* =======COLORS =========== */
:root {
    --color-1: #f25e19;
    /* laranja botoes */
    --color-2: rgb(15, 53, 99);
    /* azul escuro fundo */
    --light: #f9f9f9;
    /* branco texto */
    --middle-dark: rgb(94, 94, 94);
    /* cinza médio texto */
    --background: #eaf1f1;
    /* meio termo azul acinzentado claro */
}

/* ====== PAGE LOADER ====== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light);
    transition:
        opacity 0.3s,
        visibility 0.3s;
    z-index: 999999999;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-svg {
    width: 72px;
    height: 72px;
}

/* ====== RESET & BASE ====== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 76px;
    /* Altura aproximada do header - ajuste */
}

ul,
ol {
    list-style: none;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

p,
span {
    margin: 0;
    padding: 0;
    color: var(--dark);
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Barlow", sans-serif;
    font-weight: 800 !important;

    letter-spacing: 0.5px;
    color: var(--color-2);
}

a,
p,
li,
span,
button {
    font-family: sans-serif;
    font-weight: 500;
    color: var(--dark);
}

body {
    overflow-x: hidden !important;
    user-select: none;
    scroll-behavior: smooth;
    font-family: sans-serif;
    background-color: var(--background);
    padding-top: 76px;
    /* Offset for fixed header (Logo Menu only) */
}

.container {
    width: 100%;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto !important;
    padding: 0 12px;
    overflow: visible !important;
}

@media (min-width: 780px) {
    .container {
        padding: 0 20px;
    }
}

/* ============================== */
/* ====== Scrollbar ====== */
/* ============================== */

/* Barra de rolagem - largura */
::-webkit-scrollbar {
    width: 14px;
    z-index: 3;
}

/* Fundo da barra (trilho) */
::-webkit-scrollbar-track {
    background: var(--background);
}

/* Parte que se move (thumb) */
::-webkit-scrollbar-thumb {
    background-color: var(--color-1);
    border-radius: 6px;
    /* Cor laranja */

    border: 1px solid var(--background);
    /* Borda entre thumb e track */
}

/* ========================== */
/* ====== Header ====== */
/* ========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    background-color: var(--color-2);
    transform: translateY(0);
}

.header.hide-on-scroll {
    transform: translateY(-100%);
}

.header.show-on-scroll {
    transform: translateY(0);
}

.header.menu-open {
    box-shadow: none;
}

/* LOGO E MENU */
.logo-menu {
    width: 100%;
    background-color: var(--color-2);
    position: relative;
    z-index: 1000;
}

.logo-menu-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
    width: 100%;
    background-color: var(--color-2);
}

/* Logo */
.logo-link img {
    height: 48px;
    width: 153px;
    /* Explicit dimensions in CSS too */
    aspect-ratio: 1080 / 340;
}

/* Menu Desktop */
.menu-desktop {
    display: none;
}

.menu-link {
    height: 44px;
    color: var(--light);
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
    position: relative;
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 6px 16px;
    max-height: 56px !important;
}

.menu-link:hover {
    color: white;
    background-color: var(--color-1);
}

@media (min-width: 980px) {
    .logo-menu-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-desktop {
        gap: 24px;
        display: flex;
        align-items: center;
    }

    /* Logo */
    .logo-link img {
        height: 54px;
        width: 171px;
        /* Explicit desktop width */
        aspect-ratio: 1080 / 340;
    }
}

/* Menu Mobile Button */
.menu-toggle {
    height: 48px;
    width: 48px;
    background-color: var(--color-1);
    border-radius: 12px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease-in-out;
}

.menu-toggle .hamburger {
    position: relative;
    width: 22px;
    height: 3px;
    background-color: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 3px;
    background-color: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle .hamburger::before {
    top: -8px;
}

.menu-toggle .hamburger::after {
    top: 8px;
    width: 16px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    width: 22px;
    top: 0;
}

@media (min-width: 980px) {
    .menu-toggle {
        display: none;
    }
}

/* Menu Mobile */
.menu-mobile {
    background-color: var(--color-2);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.3s ease,
        padding 0.3s ease;
    z-index: 999;
}

.menu-mobile.show {
    max-height: 530px;
    padding: 12px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.menu-mobile-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
}

.menu-mobile .menu-link {
    text-align: center;
    width: 280px;
    height: 48px;
    font-size: 20px;
    font-weight: 500;
    color: var(--light);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.menu-mobile .menu-link:hover {
    color: white;
    background-color: var(--color-1);
}

/* ==================================== */
/* ===== Header CTA Buttons =========== */
/* ==================================== */
.header-cta-button {
    display: none;
}

@media (min-width: 780px) {
    .header-cta-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 20px;
        background-color: var(--color-1);
        color: var(--light) !important;
        font-weight: 600;
        font-size: 16px;
        border-radius: 20px;
        text-decoration: none;
        transition: all 0.3s ease;
        white-space: nowrap;
        height: 48px !important;
        border: 3px solid var(--color-1);
    }

    .header-cta-button svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

    .header-cta-button:hover {
        background-color: transparent;
        transform: translateY(-1px);
        color: var(--color-1) !important;
    }
    .header-cta-button:hover svg {
        fill: var(--color-1);
    }
}

.header-cta-button-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 280px;

    margin-top: 12px;
    background-color: var(--color-1);
    color: var(--light) !important;
    font-weight: 600;
    font-size: 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 48px !important;
    border: 3px solid var(--color-1);
}

.header-cta-button-mobile svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.header-cta-button-mobile:hover {
    background-color: transparent;
    transform: translateY(-1px);
    color: var(--color-1) !important;
}

.header-cta-button-mobile:hover svg {
    fill: var(--color-1);
}

@media (min-width: 920px) {
    .header-cta-button-mobile {
        display: none;
    }
}

/* ============================== */
/* ====== CTA Button ============ */
/* ============================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-1);
    color: var(--light);
    padding: 18px 20px;
    border-radius: 20px;
    font-size: 18.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 3px solid var(--color-1);
    flex-shrink: 0;
    white-space: nowrap;
    width: 280px;
    height: 52px !important;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--color-1);
    transform: translateY(-1px);
}

.cta-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
