/* Aplicado Reforço Escolar */
:root {
    --color-primary: #fdcc2d;
    --color-secondary: #77c3ca;
    --color-green: #5a9a6e;
    --color-blue-light: #b8d4e0;
    --color-text: #727272;
    --color-dark: #000;
    --color-light: #fff;
    --color-bg: #f4f4f4;
    --header-bg: #68ccd1;
    --color-logo-blue: #1a2744;
    --color-logo-red: #c41e3a;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Amiko', sans-serif;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-logo: 0 4px 24px rgba(26,39,68,0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Header */
.header {
    background: linear-gradient(180deg, var(--color-light) 0%, #fafafa 100%);
    border-bottom: 1px solid rgba(193, 193, 193, 0.3);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    animation: fadeIn 0.6s ease-out;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26,39,68,0.04) 0%, rgba(196,30,58,0.04) 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-logo);
}

.logo img {
    height: 52px;
    width: auto;
    display: block;
    animation: fadeIn 0.8s ease-out;
}

.header-email {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.25s ease;
}

.header-email:hover {
    color: var(--color-logo-red);
}

.main-nav ul {
    display: flex;
    gap: 5px;
}

.main-nav a {
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.25s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-logo-red);
}

.main-nav a:hover {
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 75vh;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff8e1 45%, #e3f2fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, transparent 40%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo img {
    height: clamp(75px, 13vw, 110px);
    width: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4));
    animation: fadeInUp 0.9s ease-out;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.35s both;
}

.hero-decoration {
    margin: 24px auto 0;
    max-width: 100%;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-decoration.animate-float {
    animation: fadeInUp 0.8s ease-out 0.5s both, float 4s ease-in-out 1.5s infinite;
}

/* Seção Notícias */
.section-noticias {
    background: var(--color-bg);
}

.noticias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.noticia-card {
    background: var(--color-light);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.noticia-destaque {
    border-left: 4px solid var(--color-logo-red);
}

.noticia-badge {
    display: inline-block;
    background: var(--color-logo-red);
    color: var(--color-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noticia-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.noticia-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 12px;
}

.noticia-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 16px !important;
}

.link-noticia {
    display: inline-block;
    color: var(--color-logo-red);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.link-noticia:hover {
    color: var(--color-logo-blue);
}

.noticias-placeholder {
    background: var(--color-light);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border: 2px dashed #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
}

.noticia-placeholder-text {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #999;
    margin-bottom: 8px !important;
}

.noticia-placeholder-sub {
    font-size: 0.9rem;
    color: #bbb;
}

/* Sections */
.section {
    padding: 70px 40px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
}

.section.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.section.animate-on-scroll.is-visible {
    animation: fadeInUp 0.7s ease-out forwards;
}

.section h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 35px);
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 20px;
}

.section-text {
    max-width: 728px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.6;
}

/* Reforço Section */
.section-reforco {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(244,244,244,0.98) 100%),
                url('../images/pattern.png') center/cover;
    text-align: center;
}

/* Aprendizagem Section */
.section-aprendizagem {
    background: url('../images/hero.jpg') center/cover;
    color: var(--color-light);
    position: relative;
}

.section-aprendizagem::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26,39,68,0.85) 0%, rgba(0,0,0,0.5) 100%);
}

.container-split {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.container-split.reverse {
    flex-direction: row-reverse;
}

.col-half {
    flex: 1;
}

.content-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.content-box p {
    line-height: 1.6;
}

.section-aprendizagem .content-box p {
    color: var(--color-light);
}

.section-educacao .content-box {
    background: var(--color-light);
    color: var(--color-text);
    padding: 40px;
}

.text-right {
    text-align: right;
}

/* Galeria Section */
.section-galeria {
    background: var(--color-bg);
}

.section-intro {
    text-align: center;
    margin-bottom: 48px;
    font-size: 1.05rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Página Galeria - Melhorias */
.section-galeria-page {
    padding-top: 80px;
}

.galeria-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.galeria-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 20px;
}

.galeria-intro {
    font-size: 1.05rem;
    line-height: 1.8;
}

.gallery-page {
    margin-bottom: 60px;
}

.gallery-item-with-caption {
    margin: 0;
    background: var(--color-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.gallery-item-with-caption:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
}

.gallery-item-with-caption img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--color-light);
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item-with-caption:hover .gallery-caption-overlay {
    transform: translateY(0);
}

.gallery-item-with-caption figcaption {
    padding: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
}

.galeria-cta {
    text-align: center;
    padding: 50px 20px;
    background: var(--color-light);
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.galeria-cta p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.btn-cta {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-primary);
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-cta:hover {
    background: #e6b826;
    transform: translateY(-3px) scale(1.02);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--color-logo-blue) 0%, #141d30 100%);
    color: #a7a7a7;
    padding: 50px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo a:hover {
    transform: scale(1.05);
}

.footer-logo img {
    height: 56px;
    width: auto;
    filter: brightness(1.08);
}

.footer-container.has-logo .footer-col:first-of-type {
    grid-column: 2;
}

.footer-container.has-logo .footer-col:last-of-type {
    grid-column: 3;
}

.footer h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #bfbfbf;
    margin-bottom: 10px;
}

.footer p {
    margin-bottom: 5px;
}

.footer a {
    color: #fff;
}

.footer a:hover {
    color: var(--color-primary);
}

/* Página Sobre - Seções específicas */
.about-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.about-hero img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.cloud-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' d='M0,64 C360,120 720,0 1080,64 C1260,90 1380,90 1440,64 L1440,120 L0,120 Z'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}

.section-educadores {
    background: var(--color-light);
    padding-top: 60px;
}

.container-educadores {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.educadores-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.educadores-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.educadores-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

.educadores-content .section-text {
    margin-bottom: 15px;
}

.container-narrow {
    max-width: 728px;
}

.assinatura {
    margin-top: 30px;
    font-style: italic;
}

.link-more {
    display: inline-block;
    margin-top: 20px;
    color: var(--color-secondary);
    font-weight: 600;
}

.link-more:hover {
    text-decoration: underline;
}

/* Faixa amarela */
.section-yellow {
    background: var(--color-primary);
    padding: 50px 40px;
}

.yellow-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.yellow-text {
    flex: 1;
}

.yellow-text p {
    color: var(--color-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.yellow-illustration {
    flex-shrink: 0;
}

.yellow-illustration img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Salas de aula */
.section-salas {
    background: var(--color-light);
}

.section-salas .container-split {
    align-items: center;
    gap: 60px;
}

.section-salas .sala-img {
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
}

.section-salas .sala-img:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.sala-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.lista-recursos {
    margin-top: 20px;
}

.lista-recursos li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.lista-recursos li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--color-secondary);
    border-radius: 50%;
}

/* Página Serviços */
.section-servicos-header {
    background: var(--color-blue-light);
    padding: 60px 40px;
}

.header-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-block h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: left;
    margin-bottom: 8px;
}

.header-block h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.header-block p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Seção central Serviços */
.section-servicos-central {
    background: var(--color-light);
}

.container-servicos {
    max-width: 1200px;
}

.servicos-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.servicos-col-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.servico-img-top,
.servico-img-mid,
.servico-img-bottom {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.servico-img-top { height: 200px; }
.servico-img-mid { height: 180px; }
.servico-img-bottom { height: 220px; }

.servicos-col-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.servico-card {
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servico-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.servico-card-yellow {
    background: var(--color-primary);
}

.servico-card-white {
    background: var(--color-light);
    border: 1px solid #e8e8e8;
}

.servico-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.servico-card-yellow h3,
.servico-card-yellow h4,
.servico-card-yellow p {
    color: var(--color-dark);
}

.servico-card-white h3 {
    color: var(--color-text);
}

.servico-card h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.servico-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Faixa amarela Horários */
.section-horarios {
    background: var(--color-primary);
    text-align: center;
}

.section-horarios h2 {
    color: var(--color-dark);
    margin-bottom: 15px;
}

.horario-info {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 8px;
}

/* Faixa verde Missão */
.section-missao {
    background: var(--color-green);
    text-align: center;
}

.section-missao h2 {
    color: var(--color-light);
    margin-bottom: 15px;
}

.section-missao p {
    color: var(--color-light);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .container-educadores {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .educadores-image {
        order: 1;
    }

    .educadores-content {
        order: 2;
    }

    .educadores-image img {
        height: 250px;
    }

    .yellow-illustration img {
        width: 240px;
        height: 170px;
    }

    .footer-container.has-logo {
        grid-template-columns: 1fr;
    }

    .footer-container.has-logo .footer-logo {
        text-align: center;
    }

    .footer-container.has-logo .footer-col:first-of-type,
    .footer-container.has-logo .footer-col:last-of-type {
        grid-column: 1;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container-split {
        flex-direction: column;
    }
    
    .container-split.reverse {
        flex-direction: column;
    }
    
    .yellow-container {
        flex-direction: column;
    }
    
    .header-blocks {
        grid-template-columns: 1fr;
    }
    
    .gallery-page {
        grid-template-columns: repeat(2, 1fr);
    }

    .noticias-grid {
        grid-template-columns: 1fr;
    }

    .servicos-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
    }

    .header-email {
        font-size: 0.85rem;
        text-align: center;
        word-break: break-all;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section {
        padding: 40px 20px;
    }
    
    .section-yellow {
        padding: 40px 20px;
    }

    .yellow-container {
        flex-direction: column;
    }

    .yellow-illustration img {
        width: 100%;
        max-width: 300px;
        height: 200px;
    }

    .educadores-image img {
        height: 220px;
    }

    .sala-img {
        height: 240px;
    }

    .section-noticias .section-intro {
        margin-bottom: 24px;
    }

    .noticia-card {
        padding: 24px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-page {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .section-salas .container-split {
        flex-direction: column-reverse;
    }
    
    .section-servicos-header {
        padding: 40px 20px;
    }
    
    .servicos-col-cards {
        order: 1;
    }
    
    .servicos-col-images {
        order: 2;
    }
    
    .servico-img-top,
    .servico-img-mid,
    .servico-img-bottom {
        height: 180px;
    }
}
