:root {
    --primary-color: #0d2c54;
    --secondary-color: #c99700;
    --accent-color: #1a508b;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --white: #ffffff;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* CORRIGIDO: era box-box-sizing */
}

body {
    font-family: var(--font-stack);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    background-color: var(--primary-color);
    padding: 15px 0;
    border-bottom: 4px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===== NAVEGAÇÃO ===== */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    padding: 6px 8px;
    display: block;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin-top: 5px;
    border-top: 3px solid var(--secondary-color);
}

.dropdown-content li a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.dropdown-content li a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== BOTÃO HAMBURGUER (mobile) ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(rgba(13, 44, 84, 0.8), rgba(13, 44, 84, 0.8)), url('../uploads/hero-bg.jpg') center/cover;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 40px 20px;
}

/* ===== BOTÕES ===== */
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border: none;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    margin-top: 20px;
    transition: background 0.3s;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--white);
}

.btn-restrito {
    border: 1px solid var(--secondary-color);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-restrito:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

/* ===== COMPLIANCE ===== */
.compliance-container {
    padding: 60px 0;
    min-height: 60vh;
}

.compliance-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

/* ===== RODAPÉ ===== */
footer {
    background-color: #111;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* ===================================================
   RESPONSIVIDADE — MEDIA QUERIES
   =================================================== */

/* Tablet (até 992px) */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }

    nav ul li {
        margin-left: 10px;
    }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {

    /* Mostra o botão hamburguer */
    .menu-toggle {
        display: flex;
    }

    /* Esconde o nav por padrão no mobile */
    #mainNav {
        display: none;
        width: 100%;
        order: 3;
    }

    /* Quando aberto */
    #mainNav.nav-open {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        margin-left: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links li a {
        padding: 12px 15px;
        width: 100%;
    }

    /* Dropdown mobile */
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--secondary-color);
        margin-left: 15px;
        display: none;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    /* Hero responsivo */
    .hero {
        min-height: 300px;
        padding: 30px 15px;
    }

    .hero h2 {
        font-size: 1.6rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    /* Grids viram coluna única */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Seção hero interna */
    [style*="flex-direction: row"] {
        flex-direction: column !important;
    }
}

/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.3rem !important;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .container {
        width: 100%;
        padding: 0 15px;
    }
}