:root {
    --header-bg: #02185E;
    --header-bg-dark: #02185E;
    --header-text: #027BFD;
    --header-text-soft: rgba(255, 255, 255, 0.92);
    --header-accent: #4aa3ff;
    --header-accent-hover: #2d8ef0;
    --dropdown-text: #02185E;
}

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

body {
    margin: 0;
    padding: 0;
}

.site-header,
.site-header * {
    font-family: 'Montserrat', sans-serif;
}

.site-header {
    width: 100%;
    background: var(--header-bg);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1000;
}

.site-header__inner {
    min-height: 70px;
    padding: 20px clamp(12px, 2vw, 28px);
    display: flex;
    align-items: center;
    gap: 24px;
}

/* LOGO */
.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: 0 0 auto;
}

.site-brand__icon {
    width: clamp(48px, 6vw, 80px);
    height: clamp(48px, 6vw, 80px);
    object-fit: contain;
    flex: 0 0 auto;
}

.site-brand__text {
    width: clamp(120px, 12vw, 170px);
    max-width: 42vw;
    height: auto;
    object-fit: contain;
    display: block;
}

/* NAVBAR & NAV */
.site-navbar {
    flex: 1 1 auto;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0; /* permite que o flex item encolha de verdade */
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.4vw, 18px);
    margin-left: auto;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.site-nav .nav-link {
    color: var(--header-text-soft);
    font-weight: 700;
    font-size: clamp(0.72rem, 1.05vw, 1.1rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.35rem clamp(0.4rem, 1vw, 1.2rem);
    position: relative;
    transition: color 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: var(--header-text);
}

.site-nav .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--header-text);
    transition: width 0.5s ease;
}

.site-nav .nav-link:hover::before,
.site-nav .nav-link.active::before {
    width: 100%;
}

/* DROPDOWN DESKTOP */
.dropdown {
    position: relative;
}

.site-nav .dropdown-toggle::after {
    content: "▼";
    border: none;
    width: auto;
    height: auto;
    font-size: 0.55rem;
    margin-left: 7px;
    transform: translateY(-1px);
    display: inline-block;
    transition: 0.2s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg) translateY(1px);
}

.site-dropdown {
    position: absolute;
    top: 42px;
    left: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    z-index: 999;
}

.dropdown:hover .site-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--dropdown-text);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #edf0f5;
    transition: background 0.2s ease;
}

.site-dropdown a:last-child {
    border-bottom: none;
}

.site-dropdown a:hover {
    background: #f4f8ff;
}

/* BOTÃO INSCREVA-SE */
.btn-inscreva {
    margin-left: clamp(8px, 1.5vw, 20px);
    background: var(--header-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: clamp(0.85rem, 1.1vw, 1.3em);
    letter-spacing: 0.01em;
    padding: 0.65rem clamp(0.5rem, 1.2vw, 0.9rem);
    border-radius: 12px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.btn-inscreva:hover,
.btn-inscreva:focus {
    background: var(--header-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

.site-toggler {
    display: none;
}

/* VERSÃO RESPONSIVA (TABLET / MOBILE) */
@media (max-width: 1024px) {
    .site-header__inner {
        justify-content: space-between;
        padding: 12px 16px;
    }

    .site-brand__icon {
        width: 55px;
        height: 55px;
    }

    .site-brand__text {
        width: 120px;
    }

    .site-toggler {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        z-index: 3000;
    }

    .site-navbar {
        position: fixed;
        top: 75px;
        right: -260px;
        width: 240px;
        background: #02185E;
        border-radius: 20px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        box-shadow: 0 10px 30px rgba(0,0,0,.3);
        transition: right .3s ease;
        z-index: 2500;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .site-navbar.active {
        right: 10px;
    }

    .site-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin: 0;
        list-style: none;
    }

    .site-nav .nav-link {
        color: white;
        font-size: 1rem;
        font-weight: 700;
        padding: 0;
        text-decoration: none;
    }

    .site-nav .nav-link::before {
        display: none;
    }

    /* DROPDOWN NO MOBILE */
    .site-dropdown {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        margin-top: 8px;
        max-height: 200px;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    .site-dropdown.active {
        display: block;
    }

    .site-dropdown a {
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-dropdown a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .btn-inscreva {
        width: 100%;
        margin: 20px 0 0 0;
        text-align: center;
        font-size: .9rem;
        padding: 12px;
        border-radius: 12px;
    }
}