/* --- CONFIGURAÇÕES GERAIS E VARIÁVEIS --- */
:root {
    /* Paleta: Azul Confiança, Amarelo Alegria, Laranja Energia */
    --primary: #2F80ED;
    /* Azul Vibrante */
    --primary-dark: #1a5bb8;
    --secondary: #FFD166;
    /* Amarelo Solar */
    --accent: #EF476F;
    /* Rosa/Vermelho Suave */
    --tertiary: #06D6A0;
    /* Verde Menta */

    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f9fbfd;
    --white: #ffffff;

    --shadow: 0 10px 40px rgba(47, 128, 237, 0.15);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* Detalhe sublinhado divertido */
.section-header h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 6px;
    background: var(--secondary);
    border-radius: 10px;
    position: absolute;
    bottom: 5px;
    left: 0;
    z-index: -1;
    opacity: 0.6;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* --- BOTÕES --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(47, 128, 237, 0.6);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 209, 102, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background-color: #ffca47;
}

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    color: var(--accent);
}

.logo i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: 5px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #eef2f3 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Formas decorativas no fundo */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    opacity: 0.6;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: #dce9f9;
    top: -50px;
    right: -50px;
}

.blob-2 {
    width: 200px;
    height: 200px;
    background: #fff4d1;
    bottom: 50px;
    left: -50px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-text span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    /* Bordas bem arredondadas */
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    border: 8px solid var(--white);
}

/* --- DIFERENCIAIS (Cards Flutuantes) --- */
.features-section {
    margin-top: -50px;
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 5px solid transparent;
}

/* Cores diferentes para cada card ao passar o mouse */
.feature-card:nth-child(1):hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-card:nth-child(2):hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.feature-card:nth-child(3):hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.fc-1 {
    background: #e3f2fd;
    color: var(--primary);
}

.fc-2 {
    background: #fff8e1;
    color: #ffb300;
}

.fc-3 {
    background: #fce4ec;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- SOBRE A ESCOLA --- */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.about-img-group img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    height: 200px;
}

.about-img-group img:nth-child(1) {
    margin-top: 30px;
}

.about-img-group img:nth-child(2) {
    margin-bottom: 30px;
}

.about-content h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- NÍVEIS DE ENSINO (Grid Colorido) --- */
.levels {
    background-color: #f0f4f8;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.level-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.level-img {
    height: 200px;
    background-color: #ddd;
}

.level-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.level-content {
    padding: 30px;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--secondary);
    color: #555;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 15px;
}

.level-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* --- CONTACT SECTION --- */
.contact {
    background: var(--primary-dark);
    color: var(--white);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--white);
}

.contact-info p {
    margin-bottom: 40px;
    opacity: 0.9;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.info-item i {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-right: 20px;
}

.info-item div h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item div p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.map-frame {
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- FOOTER --- */
footer {
    background: #1a2639;
    color: #aab2bd;
    padding: 60px 0 20px;
    text-align: center;
}

.footer-logo {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo span {
    color: var(--primary);
}

.footer-cnpj {
    font-family: monospace;
    margin-bottom: 20px;
}

.footer-socials {
    margin-bottom: 30px;
}

.footer-socials a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- WHATSAPP FIXO --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-image {
        display: none;
    }

    /* Ocultar imagem hero no mobile/tablet para focar no texto */

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img-group {
        display: none;
    }

    /* Simplificar sobre no mobile */

    .contact-container {
        grid-template-columns: 1fr;
    }

    .map-frame {
        height: 300px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .navbar .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 40px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
    }

    .navbar .nav-menu.active {
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 120px;
    }
}

/* Animação Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}