/* Importação da Fonte Moderna */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* --- Variáveis de Cor e Tipografia --- */
:root {
    --color-blue-dark: #1A2B4C;
    --color-yellow: #FDCB44;
    --color-white: #ffffff;
    --color-light-gray: #f4f7f6;
    --color-text-main: #333333;
    --font-main: 'Montserrat', sans-serif;
}

/* --- Reset Básico --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-top: 120px; 
    padding-bottom: 50px;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.section-title { 
    color: var(--color-blue-dark); 
    font-size: 2.2rem; 
    margin-bottom: 1rem; 
    border-bottom: 2px solid var(--color-yellow); 
    display: inline-block;
}

.section-margin { 
    margin-bottom: 3rem; 
}

/* =========================================
   CABEÇALHO E NAVEGAÇÃO
   ========================================= */

header {
    background-color: var(--color-blue-dark);
    height: 80px; 
    width: 100%; 
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 9999; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-content {
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
    height: 100%; 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
}

.logo-img {
    height: 55px; 
    width: auto;
    max-width: 250px;
    display: block;
    object-fit: contain;
}

nav ul { 
    list-style: none; 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
    height: 100%;
}

nav li {
    height: 100%;
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem; 
    text-transform: uppercase; 
    transition: color 0.3s;
    letter-spacing: 0.5px;
    white-space: nowrap; 
}

nav a:hover { 
    color: var(--color-yellow); 
}

/* =========================================
   ANIMAÇÕES (CASCATA 1 A 1)
   ========================================= */

/* Animação do fundo da cascata */
@keyframes openDropdownFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animação dos links a entrarem um a um */
@keyframes slideItemIn {
    from { 
        opacity: 0; 
        transform: translateX(-15px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* =========================================
   MENU EM CASCATA (DROPDOWN) - PC
   ========================================= */

.dropdown {
    position: relative !important; 
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-white);
    min-width: 260px; 
    box-shadow: 0px 10px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    top: 100%; 
    left: 0; 
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    border-top: 3px solid var(--color-yellow);
}

.dropdown-content a {
    color: var(--color-blue-dark);
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    text-transform: none; 
    font-weight: 500;
    border-bottom: 1px solid #eee; 
    font-size: 0.95rem;
    white-space: normal; 
    opacity: 0; /* Esconde o texto no início para a animação funcionar */
}

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

.dropdown-content a:hover {
    background-color: var(--color-light-gray);
    color: var(--color-blue-dark);
    padding-left: 26px; 
    transition: padding-left 0.3s ease;
}

@media (min-width: 951px) {
    .dropdown:hover .dropdown-content { 
        display: block; 
        animation: openDropdownFade 0.3s ease forwards;
    }
}

/* Aplica o efeito "1 a 1" sempre que abrir a cascata (PC ou Mobile) */
.dropdown:hover .dropdown-content a,
.dropdown.active .dropdown-content a {
    animation: slideItemIn 0.4s ease forwards;
}

/* Tempos de espera diferentes para cada item para fazer a "escadinha" */
.dropdown:hover .dropdown-content a:nth-child(1), .dropdown.active .dropdown-content a:nth-child(1) { animation-delay: 0.05s; }
.dropdown:hover .dropdown-content a:nth-child(2), .dropdown.active .dropdown-content a:nth-child(2) { animation-delay: 0.15s; }
.dropdown:hover .dropdown-content a:nth-child(3), .dropdown.active .dropdown-content a:nth-child(3) { animation-delay: 0.25s; }
.dropdown:hover .dropdown-content a:nth-child(4), .dropdown.active .dropdown-content a:nth-child(4) { animation-delay: 0.35s; }
.dropdown:hover .dropdown-content a:nth-child(5), .dropdown.active .dropdown-content a:nth-child(5) { animation-delay: 0.45s; }


/* =========================================
   CARTÕES E RODAPÉ
   ========================================= */

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--color-light-gray);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--color-yellow); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card h3 { 
    color: var(--color-blue-dark); 
    margin-bottom: 1rem; 
}

footer {
    background-color: var(--color-blue-dark); 
    color: var(--color-yellow); 
    padding: 1rem 0;
    text-align: center;
    margin-top: auto; 
}

/* =========================================
   ADAPTAÇÕES PARA TELEMÓVEL (MOBILE)
   ========================================= */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 950px) {
    
    .mobile-menu-btn { 
        display: flex; 
    }

    .logo-img {
        max-width: 160px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--color-blue-dark);
        padding-top: 100px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        transition: right 0.4s ease-in-out;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start; 
        height: auto;
        gap: 0;
    }

    nav li {
        width: 100%;
        height: auto;
    }

    nav a {
        display: block;
        padding: 18px 25px;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 1rem;
    }

    .dropdown {
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown-content {
        position: static; 
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        border-top: none;
        border-left: 3px solid var(--color-yellow);
    }

    .dropdown.active .dropdown-content {
        display: block;
        animation: openDropdownFade 0.3s ease forwards;
    }

    .dropdown-content a {
        color: var(--color-white); 
        padding: 12px 40px; 
    }

    /* Animação do X */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--color-yellow);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--color-yellow);
    }
}
/* =========================================
   MODAL DE INFORMAÇÕES E FORMULÁRIO (POP-UP)
   ========================================= */
   .modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: var(--color-white);
    width: 90%;
    max-width: 600px;
    padding: 2.5rem;
    border-radius: 10px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    font-size: 2rem; color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover { color: var(--color-yellow); }

/* Estilos do Formulário lá dentro */
.form-group { margin-bottom: 1.2rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--color-blue-dark); font-weight: 600; font-size: 0.95rem; }
.form-group input, .form-group textarea { 
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; font-size: 1rem; transition: border 0.3s; 
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-blue-dark); outline: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.btn-submit-modal { 
    background: var(--color-blue-dark); color: var(--color-white); padding: 15px 25px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; width: 100%; font-size: 1.1rem; transition: background 0.3s; margin-top: 1rem; 
}
.btn-submit-modal:hover { background: var(--color-yellow); color: var(--color-blue-dark); }

@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; gap: 0; } }