/* Variáveis de Tema */
:root {
    --color-green: #018e4a;
    --color-green-dark: #016b38;
    --color-green-light: #e6f4ed;
    --color-orange: #f37020;
    --color-orange-dark: #d65f16;
    --color-white: #ffffff;
    --color-gray-light: #f8f9fa;
    --color-gray-mid: #e9ecef;
    --color-text-dark: #212529;
    --color-text-muted: #6c757d;
    
    --font-main: 'Poppins', sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.1);
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --transition: all 0.3s ease;
}

/* Resets Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Tipografia */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-green);
    margin-bottom: 1rem;
}
.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

/* Layout Utility */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: 80px 0; }
.bg-gray { background-color: var(--color-gray-light); }

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}
.btn-green {
    background-color: var(--color-green);
    color: var(--color-white);
}
.btn-green:hover {
    background-color: var(--color-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(1, 142, 74, 0.3);
}
.btn-orange {
    background-color: var(--color-orange);
    color: var(--color-white);
}
.btn-orange:hover {
    background-color: var(--color-orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(243, 112, 32, 0.3);
}
.btn-outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
}
.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-green);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 50px; height: 50px;
    border: 5px solid var(--color-green-light);
    border-top-color: var(--color-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* HEADER & MENU */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
    background: var(--color-white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
header.scrolled {
    background: var(--color-white);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-green);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}
header.scrolled .logo { color: var(--color-green); }
.logo img { height:80px; width: auto; object-fit: contain; }

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-links li a {
    color: var(--color-text-dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}
header.scrolled .nav-links li a { color: var(--color-text-dark); }
.nav-links li a:hover, .nav-links li a.active { color: var(--color-orange); }
.nav-links li a::after {
    content: '';
    position: absolute; bottom: -5px; left: 0;
    width: 0%; height: 2px;
    background: var(--color-orange);
    transition: var(--transition);
}
.nav-links li a:hover::after, .nav-links li a.active::after { width: 100%; }

.menu-toggle {
    display: none;
    color: var(--color-green);
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: -10%; left: 0; width: 100%; height: 120%;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    z-index: 1;
    /* Parallax handled in JS */
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(1, 142, 74, 0.9), rgba(1, 142, 74, 0.4));
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    color: var(--color-white);
    margin-top: 50px;
}
.hero h1 { font-size: 4rem; margin-bottom: 20px; animation: fadeUp 1s ease forwards; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0; animation: fadeUp 1s ease 0.3s forwards; }
.hero-buttons { display: flex; gap: 15px; opacity: 0; animation: fadeUp 1s ease 0.6s forwards; }

.scroll-indicator {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}
.scroll-indicator i { font-size: 24px; margin-top: 10px; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -15px); }
    60% { transform: translate(-50%, -7px); }
}

/* SOBRE A ESCOLA & DIFERENCIAIS */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}
.about-img img { width: 100%; transition: transform 0.5s; }
.about-img:hover img { transform: scale(1.05); }
.about-img::after {
    content: ''; position: absolute;
    bottom: -20px; right: -20px;
    width: 100px; height: 100px;
    background: var(--color-orange);
    border-radius: var(--radius-lg);
    z-index: -1;
}
.about-text h3 { color: var(--color-orange); font-size: 1.2rem; margin-bottom: 10px; }
.about-text h2 { font-size: 2.5rem; color: var(--color-green); margin-bottom: 20px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.feature-card {
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    border-left: 4px solid var(--color-green);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--color-orange); }
.feature-icon {
    width: 40px; height: 40px;
    background: var(--color-green-light);
    color: var(--color-orange);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem;
}
.feature-icon-orange { background: #fdece1; color: var(--color-orange);}
.feature-icon-green { background: var(--color-green-light); color: var(--color-green);}
.feature-icon-blue { background: #e3f2fd; color: #1976d2; }
.feature-icon-purple { background: #f3e5f5; color: #8e24aa; }
.feature-icon-yellow { background: #fff8e1; color: #f9a825; }
.feature-icon-blue-navy { background: #e8eef5; color: #1e3a5f; }
.feature-icon-purple { background: #f3e8fd; color: #7c3aed; }
.feature-icon-pink { background: #fce8ec; color: #e85d75; }
.feature-icon-teal { background: #e0f2f1; color: #0e7490; }
.feature-icon-gold { background: #fef3c7; color: #ca8a04; }

/* METODOLOGIA OPEE */
.opee-section { background: var(--color-green); color: var(--color-white); }
.opee-section .section-title { color: var(--color-white); }
.opee-section .section-subtitle { color: rgba(255,255,255,0.8); }
.opee-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.opee-list li {
    display: flex; align-items: center; gap: 15px; margin-bottom: 20px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.1);
    padding: 15px; border-radius: var(--radius-md);
    transition: var(--transition);
}
.opee-list li:hover { background: rgba(255,255,255,0.2); transform: translateX(10px); }
.opee-list i { color: var(--color-orange); font-size: 1.5rem; }

/* PROJETOS */
.projects-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.project-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.project-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.project-img { position: relative; height: 200px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-card:hover .project-img img { transform: scale(1.1); }
.project-info { padding: 25px; }
.project-info h3 { color: var(--color-green); margin-bottom: 10px; }

/* GALERIA & FILTROS */
.gallery-filters {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px;
}
.filter-btn {
    padding: 8px 20px; background: transparent; border: 2px solid var(--color-gray-mid);
    border-radius: 50px; cursor: pointer; transition: var(--transition);
    font-weight: 500; color: var(--color-text-muted);
}
.filter-btn.active, .filter-btn:hover { background: var(--color-green); color: var(--color-white); border-color: var(--color-green); }

.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px;
}
.gallery-item {
    border-radius: var(--radius-md); overflow: hidden; cursor: pointer; position: relative;
}
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: 0.5s; }
.gallery-item::before {
    content: '\f00e'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(1, 142, 74, 0.7); color: white; font-size: 2rem;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: var(--transition); z-index: 1;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover img { transform: scale(1.1); }

/* LIGHTBOX JS */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.5); transform: scale(0.8); transition: 0.3s; }
.lightbox.active img { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 20px; right: 30px; color: white; font-size: 2rem; cursor: pointer;
}

/* EQUIPE */
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.team-card {
    text-align: center; background: var(--color-white);
    padding: 30px 20px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft); transition: var(--transition);
}
.team-card:hover { transform: translateY(-10px); }
.team-img {
    width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px;
    overflow: hidden; border: 4px solid var(--color-green-light);
}
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { color: var(--color-green); margin-bottom: 5px; }
.team-card span { color: var(--color-orange); font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 10px; }

/* ESTATÍSTICAS */
.stats-section {
    background: url('../images/stats-bg.jpg') center/cover fixed;
    position: relative; color: white; text-align: center;
}
.stats-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(1, 142, 74, 0.9); }
.stats-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item h3 { font-size: 3.5rem; font-weight: 800; color: var(--color-orange); margin-bottom: 10px; }
.stat-item p { font-size: 1.2rem; font-weight: 500; }

/* DEPOIMENTOS */
.testimonials { overflow: hidden; position: relative; max-width: 800px; margin: 0 auto; }
.testimonials-track { display: flex; transition: transform 0.5s ease-in-out; }
.testimonial-item { min-width: 100%; padding: 0 20px; text-align: center; }
.test-content { background: var(--color-white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); position: relative; }
.test-content::before { content: '\201C'; position: absolute; top: 10px; left: 20px; font-size: 4rem; color: var(--color-green-light); font-family: serif; }
.test-stars { color: #ffd700; margin-bottom: 15px; }
.test-text { font-style: italic; margin-bottom: 20px; color: var(--color-text-muted); }
.test-author { display: flex; align-items: center; justify-content: center; gap: 15px; }
.test-author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.test-author h4 { color: var(--color-green); margin: 0; }

/* FAQ (ACCORDION) */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--color-white); margin-bottom: 15px; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-question { padding: 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; color: var(--color-green); transition: var(--transition); }
.faq-question:hover { background: var(--color-green-light); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 20px; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--color-text-muted); }
.faq-item.active .faq-answer { max-height: 200px; padding: 0 20px 20px 20px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-question i { transition: 0.3s; color: var(--color-orange); }

/* CHAMADA FINAL */
.cta-section { background: var(--color-orange); color: white; text-align: center; padding: 80px 0; }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* CONTATO */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { padding-right: 30px; }
.contact-card { display: flex; gap: 20px; margin-bottom: 30px; }
.contact-icon { width: 50px; height: 50px; background: var(--color-green-light); color: var(--color-green); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; flex-shrink: 0; }
.contact-card h4 { color: var(--color-green); margin-bottom: 5px; }
.map-container { height: 300px; border-radius: var(--radius-md); overflow: hidden; margin-top: 30px; }

.contact-form { background: var(--color-white); padding: 40px; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 15px; border: 1px solid var(--color-gray-mid); border-radius: 8px; font-family: var(--font-main); outline: none; transition: 0.3s; }
.form-control:focus { border-color: var(--color-green); box-shadow: 0 0 0 3px var(--color-green-light); }
textarea.form-control { resize: vertical; height: 120px; }
.msg-box { display: none; padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.msg-success { background: #d4edda; color: #155724; display: block; }
.msg-error { background: #f8d7da; color: #721c24; display: block; }

/* FOOTER */
footer { background: #1a1a1a; color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: var(--color-white); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 42px; width: auto; object-fit: contain; }
.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; border-radius: 50%; transition: 0.3s; }
.footer-social a:hover { background: var(--color-orange); transform: translateY(-3px); }
.footer-links h4 { color: var(--color-orange); margin-bottom: 20px; font-size: 1.2rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--color-green); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #aaa; }

/* ELEMENTOS FLUTUANTES */
.btn-whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: #25d366; color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 35px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 100;
    transition: var(--transition); animation: pulse 2s infinite;
}
.btn-whatsapp-float:hover { transform: scale(1.1); background: #1ebe57; }

.btn-back-top {
    position: fixed; bottom: 100px; right: 30px; width: 45px; height: 45px;
    background: var(--color-green); color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 99;
    opacity: 0; visibility: hidden; transition: var(--transition); cursor: pointer;
}
.btn-back-top.show { opacity: 1; visibility: visible; }
.btn-back-top:hover { background: var(--color-orange); }

/* ANIMAÇÕES DE SCROLL (FADE IN) */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
        background: var(--color-white); flex-direction: column; justify-content: center;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1); transition: 0.4s ease;
    }
    .nav-links.active { right: 0; }
    .nav-links li a { color: var(--color-text-dark); font-size: 1.2rem; }
    .menu-toggle { display: block; z-index: 1001; }
    header.scrolled .menu-toggle { color: var(--color-green); }
    
    .hero h1 { font-size: 2.5rem; }
    .about-grid, .opee-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .hero-buttons { flex-direction: column; width: 100%; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .btn-whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 30px; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
