/* --- VARIÁVEIS & RESET --- */
:root {
    /* Paleta de Cores: Confiança, Sabedoria e Alegria */
    --primary-blue: #003366;
    /* Azul Marinho Institucional */
    --secondary-blue: #005b96;
    /* Azul Médio */
    --accent-yellow: #fecb00;
    /* Amarelo Ouro - Destaque */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 45px rgba(0, 51, 102, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
}

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.4);
}

.btn-accent {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(254, 203, 0, 0.3);
}

.btn-accent:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-yellow);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* --- HEADER --- */
header {
    background: 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;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent-yellow);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-yellow);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.7)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
    /* Compensa o header fixo */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* --- DIFERENCIAIS (Cards Flutuantes) --- */
.features {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom: 4px solid var(--accent-yellow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 51, 102, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-blue);
    font-size: 1.8rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-blue);
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- SOBRE --- */
.about {
    background-color: var(--white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 25px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 200px;
    text-align: center;
}

/* --- NÍVEIS DE ENSINO (Grid Estilizado) --- */
.levels {
    background-color: var(--bg-light);
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.level-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.level-card:hover {
    transform: translateY(-5px);
}

.level-img {
    height: 200px;
    overflow: hidden;
}

.level-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.level-card:hover .level-img img {
    transform: scale(1.1);
}

.level-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.level-content h3 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.level-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex: 1;
}

.level-link {
    color: var(--secondary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.level-link i {
    font-size: 0.8rem;
    transition: margin 0.3s;
}

.level-link:hover i {
    margin-left: 5px;
}


/* --- GALERIA GRID --- */
.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;
    cursor: pointer;
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 1;
}

.gallery-item:nth-child(3) {
    grid-column: span 1;
}

.gallery-item:nth-child(4) {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- CONTATO E MAPA --- */
.contact {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #001f3f 100%);
    color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    min-width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.contact-text h4 {
    color: var(--accent-yellow);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.map-frame {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    height: 400px;
    background-color: #eee;
}

/* --- FOOTER --- */
footer {
    background-color: #001a33;
    color: #8da2b5;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: block;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #8da2b5;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

/* --- ANIMAÇÕES --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.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 {
        margin-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, 200px);
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item:nth-child(4) {
        grid-column: span 2;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 40px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transition: 0.4s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
    }

    .gallery-item {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

