/* --- VARIÁVEIS E CONFIGURAÇÕES GERAIS --- */
:root {
    --primary: #004aad;
    /* Azul Royal - Confiança e Saber */
    --primary-dark: #00337a;
    --secondary: #ff9100;
    /* Laranja Vibrante - Energia e Criatividade */
    --secondary-hover: #e68200;
    --accent: #00c853;
    /* Verde - Crescimento */
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --bg-light: #f7fafc;
    --bg-pattern: #edf2f7;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --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: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--primary);
}

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--secondary);
    margin: 5px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- BOTÕES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 145, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 145, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* --- HEADER --- */
header {
    background: var(--white);
    box-shadow: 0 2px 15px 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: 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--secondary);
    font-size: 1.5rem;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-header {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    /* Altura um pouco menor para mostrar conteúdo abaixo */
    min-height: 600px;
    background: linear-gradient(rgba(0, 74, 173, 0.85), rgba(0, 50, 122, 0.8)), url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?q=80&w=2022&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Formas decorativas no fundo */
.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-light);
    border-radius: 100% 100% 0 0;
    transform: scaleX(1.5);
}

.hero-content {
    max-width: 700px;
    animation: slideUp 1s ease-out;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* --- SOBRE NÓS --- */
.about-section {
    background-color: var(--bg-light);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
    z-index: 1;
}

.about-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Elemento decorativo atrás da imagem */
.about-img::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    top: 20px;
    left: -20px;
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.2;
}

.about-text h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.features-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--accent);
    font-size: 1.2rem;
    background: rgba(0, 200, 83, 0.1);
    padding: 8px;
    border-radius: 50%;
}

/* --- NÍVEIS DE ENSINO (CARDS) --- */
.education {
    background-color: var(--white);
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.edu-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    position: relative;
    top: 0;
}

.edu-card:hover {
    top: -10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.edu-icon {
    height: 80px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
}

.edu-content {
    padding: 30px;
    text-align: center;
}

.edu-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.edu-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Card Destaque */
.edu-card.highlight {
    border-top: 5px solid var(--secondary);
}

/* --- ESTRUTURA E GALERIA (Grid Mosaico) --- */
.gallery {
    background-color: var(--primary);
    color: var(--white);
}

.gallery .section-title h2 {
    color: var(--white);
}

.gallery .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Classes para tamanhos variados no grid */
.g-col-2 {
    grid-column: span 2;
}

.g-row-2 {
    grid-row: span 2;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* --- CONTATO E LOCALIZAÇÃO --- */
.contact {
    background-color: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-right: 15px;
    margin-top: 5px;
}

.info-item p {
    font-size: 1rem;
    opacity: 0.9;
}

.info-item strong {
    display: block;
    font-weight: 700;
    margin-bottom: 3px;
}

.map-box {
    height: 100%;
    min-height: 400px;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- FOOTER --- */
footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0aec0;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- BOTÃO FLUTUANTE --- */
.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 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
        margin-bottom: 30px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: 0.4s ease;
        z-index: 999;
    }

    .navbar .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .g-col-2 {
        grid-column: span 1;
    }

    .hero {
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* --- ANIMAÇÕES --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}