/* =========================
   VARIÁVEIS
========================= */
:root {
    --azul: #04a2e2;
    --vermelho: #e43823;
    --amarelo: #f2e608;
    --branco: #ffffff;
    --cinza: #f5f5f5;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    background: var(--cinza);
    color: #333;
    line-height: 1.5;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.header-top {
    background: var(--azul);
    color: var(--branco);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img { height: 80px; }

.header-info {
    text-align: right;
    font-size: 13px;
}

/* =========================
   NAV
========================= */
.main-nav { background: var(--vermelho); }

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu {
    list-style: none;
    display: flex;
    gap: 14px;
    padding: 10px 0;
}

.menu li a {
    color: var(--branco);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    display: inline-block;
}

.menu li a:hover {
    background: var(--amarelo);
    color: #000;
    border-radius: 4px;
}

/* =========================
   BOTÃO MOBILE
========================= */
.menu-toggle {
    display: none;
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2001;
}

/* =========================
   MOBILE MENU FULLSCREEN
========================= */
@media (max-width: 768px) {

    .header-info { display: none; }

    .logo img { height: 70px; }

    .menu-toggle { display: block; }

    .menu {
        position: fixed;
        inset: 0;
        height: 100vh;
        width: 100%;
        background: var(--vermelho);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        opacity: 0;
        pointer-events: none;
        transition: 0.35s ease-in-out;
        z-index: 2000;
    }

    .menu.active {
        opacity: 1;
        pointer-events: all;
    }

    .menu li a {
        font-size: 22px;
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }

    .menu li a:hover {
        background: var(--amarelo);
        color: #000;
    }
}

/* =========================
   BANNER
========================= */
.banner {
    background: var(--azul);
    color: var(--branco);
    text-align: center;
    padding: 70px 20px 50px;
    margin-bottom: 40px !important;
}

/* =========================
   SEÇÕES
========================= */
section {
    padding: 28px 0 !important;
}

section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 22px !important;
}

/* =========================
   GRID DE LEIS
========================= */
.leis-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.leis-cards .card {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: 0.25s ease;
}

.leis-cards .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
    .leis-cards .card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .leis-cards .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* FOOTER */
footer {
    background: var(--azul);
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
