/* --- VARIÁVEIS E RESET --- */
:root {
    --primary: #004aad;
    /* Azul Institucional */
    --secondary: #ffc107;
    /* Amarelo Vibrante */
    --accent: #ff5722;
    /* Laranja Destaque */
    --bg-light: #fdfdfd;
    --bg-off: #f4f8fb;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- TIPOGRAFIA --- */
h1,
h2,
h3,
h4 {
    font-family: 'Fredoka', sans-serif;
    color: var(--primary);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title span {
    color: var(--accent);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 10px;
}

/* --- COMPONENTES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    border: 2px solid var(--secondary);
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.section-padding {
    padding: 80px 0;
}

/* --- HEADER --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.9), rgba(0, 74, 173, 0.7)), url('https://images.unsplash.com/photo-1509062522246-3755977927d7?q=80&w=2132&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Ondas decorativas no final do Hero */
.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-content {
    color: var(--white);
    max-width: 650px;
    animation: slideIn 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* --- DIFERENCIAIS (Grid) --- */
.features {
    background-color: var(--bg-off);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border-bottom: 5px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--secondary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 74, 173, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: background 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
}

/* --- NÍVEIS DE ENSINO (Cards Ilustrados) --- */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.level-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 350px;
    group: cursor;
}

.level-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.level-card:hover .level-img {
    transform: scale(1.1);
}

.level-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px;
    color: var(--white);
}

.level-overlay h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- SOBRE E INFRAESTRUTURA --- */
.about-section {
    background-color: var(--white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img-box {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 20px 20px 0 var(--secondary);
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* --- CONTATO E LOCALIZAÇÃO --- */
.contact {
    background: var(--bg-off);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    padding: 40px;
    background: var(--primary);
    color: var(--white);
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

.info-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-map {
    position: relative;
}

.form-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 400px;
}

/* --- FOOTER --- */
footer {
    background: #222;
    color: #ccc;
    padding: 60px 0 20px;
    text-align: center;
}

.footer-logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-social {
    margin: 20px 0;
}

.footer-social a {
    color: var(--white);
    background: #333;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--primary);
}

.cnpj-footer {
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #777;
}

/* --- ANIMAÇÕES --- */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-img {
        box-shadow: 10px 10px 0 var(--secondary);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .form-map iframe {
        height: 300px;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: 0.4s;
        z-index: 999;
    }

    .navbar .nav-menu.active {
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}