/* =========================================
   STYLE.CSS - PROJETO ECOAR (VERSÃO FINAL)
   ========================================= */

/* 1. IMPORTAÇÃO DE FONTE E VARIÁVEIS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --verde-topo: #39795a;
    --verde-claro: #4CAF50;
    --rosa: #d65db1;
    --roxo: #9b51e0;
    --amarelo: #f2c94c;
    --azul: #2f80ed;
    --vermelho: #eb5757;
    --branco: #ffffff;
    --cinza-texto: #555;
    --bg-steam-cinza: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--cinza-texto);
    overflow-x: hidden;
}

/* --- ONDAS FLUIDAS (WAVES) --- */
.wave-bottom-container {
    position: absolute;
    bottom: -42px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
    transform: rotate(180deg);
}

.wave-svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* 2. TOPO E NAVEGAÇÃO (ATUALIZADO) */
.top-bar {
    background-color: var(--rosa);
    padding: 8px 18%; /* Mantém o alinhamento centralizado com o site */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    color: white;
    position: relative;
}

/* Lado Esquerdo: Ícones */
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
}

.icon-link svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.icon-link:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Centro: Apoio */
.top-bar-center {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Centraliza absolutamente para ficar bem no meio da barra */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.apoio-text {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding-bottom: 5px;
}

.logo-apoio {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Direita: Botão */
.top-bar-right {
    display: flex;
    align-items: center;
}

.btn-virtual {
    background: white;
    color: var(--rosa);
    border: 2px solid #39795a; /* Borda Verde */
    padding: 6px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
    white-space: nowrap;
}

.btn-virtual svg.btn-icon {
    width: 20px;
    height: 20px;
    stroke: #39795a; /* Ícone Verde */
    fill: none;
}

.btn-virtual:hover {
    transform: scale(1.05);
    background-color: #f9f9f9;
}

/* NAVEGAÇÃO PRINCIPAL */
nav {
    background-color: var(--verde-topo);
    padding: 15px 18%; /* Alinhado com o corpo */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo-img { height: 70px; display: block; }

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--rosa);
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--rosa);
    color: white;
}

/* 3. HERO SLIDER */
#hero { padding: 0; position: relative; }
.hero-slider { position: relative; width: 100%; height: 500px; overflow: hidden; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center; }
.slide.active { opacity: 1; }
.hero-overlay { 
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    background: rgba(46, 93, 69, 0.8); 
    color: white; 
    text-align: center; 
    padding: 20px 20px 60px; 
    font-size: 1.5rem; 
    font-weight: bold; 
    z-index: 1; 
}
.arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); color: white; border: none; padding: 15px; cursor: pointer; font-size: 2rem; border-radius: 50%; z-index: 10; }
.prev { left: 20px; }
.next { right: 20px; }

/* 4. GERAL DAS SEÇÕES */
section {
    padding: 60px 18%; /* Respiro lateral de 18% */
    position: relative;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--verde-topo);
}
h2 span { color: var(--rosa); }

/* 5. SEÇÃO O ECOAR */
.flex-container { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.text-content { flex: 1; }
.media-content { flex: 1; display: flex; justify-content: center; }
.blob-video { 
    width: 100%; max-width: 500px; height: 350px; background: #000; 
    border-radius: 46% 54% 39% 61% / 55% 36% 64% 45%; 
    overflow: hidden; 
    -webkit-mask-image: -webkit-radial-gradient(white, black); 
    mask-image: radial-gradient(white, black); 
    transform: translateZ(0); 
    box-shadow: 10px 10px 20px rgba(0,0,0,0.2); 
    position: relative; cursor: pointer; transition: transform 0.3s; 
}
.blob-video:hover { transform: scale(1.02) translateZ(0); }
.blob-video video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 46% 54% 39% 61% / 55% 36% 64% 45%; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 4rem; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.5); background: rgba(255, 255, 255, 0.2); width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding-left: 10px; backdrop-filter: blur(5px); transition: opacity 0.3s ease, transform 0.3s; pointer-events: none; z-index: 10; }
.blob-video.playing .play-btn { opacity: 0; pointer-events: none; }   

/* 6. SEÇÃO PARA QUEM */
#para-quem { background-color: #fff; position: relative; }
.para-quem-wrapper { display: block; position: relative; margin-top: 40px; }
.cards-container { display: flex; gap: 20px; width: 100%; }
.card-box {
    flex: 1;
    border-radius: 20px;
    padding: 25px 20px;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    
    /* MUDANÇA: Garante que o card fique SOBRE a imagem caso se toquem */
    z-index: 2; 
}
.card-rosa { background-color: var(--rosa); }
.card-verde { background-color: var(--verde-topo); }
.card-roxo { background-color: #9b51e0; }
.card-title-box { 
    background-color: white; padding: 10px 5px; text-align: center; 
    margin-bottom: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    width: 90%; margin-left: auto; margin-right: auto; border-radius: 4px; 
}
.card-title-box h3 { margin: 0; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; }
.card-box ul { list-style: none; padding: 0; }
.card-box li { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.4); }
.dot-amarelo { background-color: var(--amarelo); }
.dot-roxo { background-color: #9b51e0; }
.dot-rosa { background-color: var(--rosa); }
.plant-container {
    position: absolute;
    
    /* MUDANÇA: Joga mais para a esquerda (-28%) para sair de cima do texto */
    left: -28%; 
    
    right: auto; 
    top: 50%;
    transform: translateY(-50%);
    
    /* Tamanho controlado */
    width: 35%; 
    max-width: 350px;
    
    /* MUDANÇA: Fica atrás do card */
    z-index: 0; 
    
    pointer-events: none; 
}

.side-plant-img {
   width: 100%;
    height: auto;
    object-fit: contain;
    transform: scaleX(-1); 
}

/* 7. SEÇÃO STEAM */
#steam { padding-top: 60px; position: relative; padding-bottom: 150px; background-color: #fff; display: block; }
.steam-intro-container { display: block; position: relative; margin-bottom: 80px; min-height: 400px; }
.steam-description { width: 60%; position: relative; z-index: 2; }
.steam-main-title { color: var(--rosa); font-size: 1.8rem; font-weight: 800; margin-bottom: 25px; line-height: 1.3; }
.steam-description p { margin-bottom: 20px; font-size: 1rem; color: var(--cinza-texto); line-height: 1.6; }
.steam-visual { position: absolute; right: -20%; top: 0; width: 55%; height: 100%; z-index: 1; }
.bird-img { position: absolute; z-index: 1; height: 123%; width: auto; max-height: 500px; right: -15%; top: 50%; transform: translateY(-50%); filter: drop-shadow(5px 10px 15px rgba(0, 0, 0, 0.2)); }


.steam-info-box { border: 2px solid var(--azul); border-radius: 15px; padding: 30px; margin-bottom: 40px; text-align: center; color: var(--verde-topo); font-size: 1.1rem; min-height: 150px; display: flex; align-items: center; justify-content: center; background-color: transparent; transition: all 0.4s ease-in-out; }
.steam-tabs { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.steam-tab { width: 140px; height: 350px; border-radius: 0 0 70px 70px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 20px 10px; color: white; cursor: pointer; transition: transform 0.2s, background-color 0.3s; position: relative; }
.steam-tab:hover { transform: translateY(-10px); }
.steam-tab.science { background-color: var(--verde-claro); }
.steam-tab.tech { background-color: var(--azul); }
.steam-tab.eng { background-color: var(--vermelho); }
.steam-tab.art { background-color: var(--amarelo); }
.steam-tab.math { background-color: var(--roxo); }
.steam-letter { font-size: 5rem; font-weight: 800; background: white; width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.steam-tab.science .steam-letter { color: var(--verde-claro); }
.steam-tab.tech .steam-letter    { color: var(--azul); }
.steam-tab.eng .steam-letter     { color: var(--vermelho); }
.steam-tab.art .steam-letter     { color: var(--amarelo); }
.steam-tab.math .steam-letter    { color: var(--roxo); }
.steam-icon { font-size: 3rem; margin-top: 20px; }
.steam-title { font-weight: bold; text-transform: uppercase; margin-top: 10px;}
.steam-tab.active-steam { background-color: #d1d1d1 !important; color: #888; }
.steam-tab.active-steam .steam-letter { color: #d1d1d1 !important; background: #fff; }
.steam-bird-bottom { position: absolute; bottom: 6px; right: 40px; width: 260px; height: auto; z-index: 1; pointer-events: none; }

/* 8. SEÇÃO IMPACTO */
#impacto { background-color: #f9f9f9; padding-bottom: 120px; }
.grid-impacto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; margin-top: 40px; }
.card-impacto { height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 25px; color: white; cursor: pointer; position: relative; overflow: hidden; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-impacto:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); z-index: 2; }
.bg-roxo { background-color: #9b51e0; }
.bg-amarelo { background-color: #f2c94c; }
.bg-rosa { background-color: #d65db1; }
.bg-verde { background-color: #00c853; }
.bg-rosa-escuro { background-color: #c2185b; }
.bg-verde-escuro { background-color: #2e7d32; }
.bg-azul { background-color: #5e35b1; }
.bg-amarelo-escuro { background-color: #fbc02d; }
.card-impacto h4 { font-size: 1.1rem; margin-top: 10px; font-weight: 700; line-height: 1.3; }
.icon-impacto { font-size: 3.5rem; margin-bottom: 15px; text-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.card-impacto .front { display: flex; flex-direction: column; align-items: center; width: 100%; }
.card-impacto .back { display: none; font-size: 1rem; line-height: 1.5; font-weight: 500; animation: fadeIn 0.4s ease; }
.card-impacto.flipped .front { display: none; }
.card-impacto.flipped .back { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 9. SEÇÃO TERRA DA GENTE */
#terra { position: relative; padding-right: 0; padding-bottom: 0; display: flex; align-items: center; justify-content: space-between; overflow: hidden; min-height: 500px; }
.terra-content { max-width: 60%; padding-right: 20px; padding-bottom: 50px; z-index: 2; }
.terra-logo { max-width: 200px; margin-bottom: 20px; }
.flamingo-mask-container { position: absolute; right: 0; top: 20%; z-index: 1; width: 350px; height: 450px; border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; overflow: hidden; box-shadow: 10px 10px 25px rgba(0,0,0,0.15); }
.masked-image { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scaleX(-1); }

/* 10. RESPONSIVIDADE */
@media (max-width: 1024px) {
    .top-bar { padding: 10px 5%; justify-content: space-between; }
    .top-bar-center { position: static; transform: none; }
    .apoio-text { display: none; }
    
    .nav, section { padding-left: 10%; padding-right: 10%; }
    .grid-impacto { grid-template-columns: repeat(2, 1fr); }
    .cards-container { width: 100%; gap: 10px; }
    .plant-container { position: relative; right: auto; top: auto; transform: none; width: 100%; justify-content: center; margin-top: 30px; }
    .steam-intro-container { display: flex; flex-direction: column; }
    .steam-description { width: 100%; }
    .steam-visual { position: relative; right: auto; width: 100%; min-height: 300px; margin-top: 30px; }
    .bird-img { right: auto; left: 50%; transform: translateX(-50%); }
}

@media (max-width: 900px) {
    .steam-bird-bottom { position: relative; display: block; margin: 40px auto 0; right: auto; bottom: auto; width: 180px; z-index: 3; }
    .flamingo-mask-container { display: none; }
}

@media (max-width: 768px) {
    .top-bar { flex-direction: column; height: auto; padding: 15px; gap: 10px; }
    .top-bar-center { order: 1; margin-bottom: 5px; position: static; transform: none; }
    .top-bar-left { order: 2; gap: 20px; }
    .top-bar-right { order: 3; }
    .apoio-text { display: inline-block; }
    
    nav { flex-direction: column; gap: 10px; }
    .nav-links { flex-direction: column; align-items: center; }
    .flex-container { flex-direction: column; }
    .cards-container { flex-direction: column; }
    .card-box { width: 100%; }
    #terra { flex-direction: column; padding-bottom: 0; }
    .terra-content { max-width: 100%; padding-bottom: 20px; }
}

@media (max-width: 600px) {
    .top-bar, nav, section { padding-left: 5%; padding-right: 5%; }
    .grid-impacto { grid-template-columns: 1fr; }
}