/* ═══════════════════════════════════════════════════════════
   HERO — Secção de entrada com gradiente azul profundo
   ═══════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 24px 60px;
    position: relative;
    overflow: hidden;
}

/* Gradiente de fundo moderno e tecnológico */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg,
        #060f2a 0%,
        #0e2262 40%,
        #1a3a9f 70%,
        #1e4db7 100%);
    pointer-events: none;
    z-index: 0;
}

/* Malha de pontos subtil */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background-image:
        radial-gradient(circle, rgba(96, 165, 250, 0.12) 1px, transparent 1px); */
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Todos os filhos acima do pseudo-element */
.hero > * { position: relative; z-index: 1; }

/* ── Ícone de topo com glow ── */
.hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.25);
    border: 1.5px solid rgba(96, 165, 250, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-light);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards, pulseGlow 3s ease-in-out 1.1s infinite;
}

/* ── Logo branco ── */
.logo-hero {
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeInUp 0.9s ease 0.5s forwards;
}
.logo-hero img {
    height: 110px;
    width: auto;
    filter: drop-shadow(0 8px 24px rgba(96, 165, 250, 0.25));
}

/* ── Título principal — muito grande e bold ── */
.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.9s ease 0.7s forwards;
}

/* ── Subtítulo curto ── */
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
    line-height: 1.65;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeInUp 0.9s ease 0.9s forwards;
}

/* ── CTAs ── */
.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.9s ease 1.1s forwards;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Botão primário — gradiente azul */
.btn-primary {
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-light));
    color: var(--white);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}

/* Efeito de brilho ao hover */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.55s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}

/* Botão secundário — contorno */
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--blue-light);
    transform: translateY(-3px);
}


/* ── Esferas flutuantes decorativas ── */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18) 0%, transparent 70%);
}

.fe-1 {
    width: 600px; height: 600px;
    top: -20%; left: -5%;
    animation: floatMove1 32s ease-in-out infinite;
}
.fe-2 {
    width: 500px; height: 500px;
    bottom: -10%; right: -5%;
    animation: floatMove2 38s ease-in-out infinite;
}
.fe-3 {
    width: 200px; height: 200px;
    top: 55%; left: 20%;
    animation: floatMove3 28s ease-in-out infinite;
}


/* ── Keyframes ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 30px var(--blue-glow), 0 0 60px rgba(96,165,250,0.15); }
    50%       { box-shadow: 0 0 50px rgba(96,165,250,0.6), 0 0 90px rgba(96,165,250,0.25); }
}

@keyframes floatMove1 {
    0%,100% { transform: translate(0, 0) scale(1); }
    30%     { transform: translate(60px, -40px) scale(1.08); }
    65%     { transform: translate(30px, 50px) scale(0.95); }
}
@keyframes floatMove2 {
    0%,100% { transform: translate(0, 0) scale(1); }
    40%     { transform: translate(-50px, 40px) scale(1.1); }
    70%     { transform: translate(30px, -30px) scale(0.92); }
}
@keyframes floatMove3 {
    0%,100% { transform: translate(0, 0); }
    50%     { transform: translate(40px, -40px); }
}


/* ─── Responsive: Hero ─── */
@media (max-width: 768px) {
    .hero { padding: 100px 20px 60px; }
    .hero-icon { width: 60px; height: 60px; }
    .logo-hero img { height: 85px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 220px; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════
   ABOUT — Fundo claro, missão e galeria
   ═══════════════════════════════════════════════════════════ */
.about-section {
    background: var(--off-white);
    padding: 80px 0;
}

/* Utilidade de container partilhada por todas as secções */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Cabeçalho de secção reutilizável */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.section-divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-bright), var(--blue-light));
    border-radius: 2px;
    margin: 0 auto;
}

.about-content {
    max-width: 840px;
    margin: 0 auto 48px;
    text-align: center;
}
.about-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Galeria de 3 fotos */
.photo-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1050px;
    margin: 0 auto;
}

.photo-card { transition: transform 0.3s ease; }
.photo-card:hover { transform: translateY(-8px); }

.photo-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 3;
    position: relative;
}
.photo-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,0.28));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.photo-card:hover .photo-wrapper::after { opacity: 1; }

.photo-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.photo-card:hover .photo-wrapper img { transform: scale(1.06); }


@media (max-width: 900px) {
    .photo-trio { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .about-section { padding: 60px 0; }
}


/* ═══════════════════════════════════════════════════════════
   EXPLORE — Cards de navegação rápida
   ═══════════════════════════════════════════════════════════ */
.explore-section {
    background: var(--white);
    padding: 80px 0;
}

.explore-section h2 { color: var(--text-dark); }

.explore-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.65;
}

.explore-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.explore-card {
    background: var(--white);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.explore-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.25);
}

.card-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    color: var(--blue-bright);
}
.card-icon svg { transition: transform 0.3s ease; }
.explore-card:hover .card-icon svg { transform: scale(1.15) rotate(4deg); }

.explore-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.explore-card p {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

.learn-more {
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--blue-bright);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}
.learn-more:hover {
    color: var(--blue-mid);
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .explore-cards { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
    .explore-section { padding: 60px 0; }
}


/* ═══════════════════════════════════════════════════════════
   EDUCATIVA STATS — Banner azul com números de impacto
   ═══════════════════════════════════════════════════════════ */
.educativa-hero {
    background: linear-gradient(135deg, #0e2262 0%, #1a3a9f 55%, #1e4db7 100%);
    color: var(--white);
    padding: 72px 24px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Efeito de malha subtil */
.educativa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.educativa-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.educativa-hero h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
}
.educativa-hero p {
    font-size: 1.1rem;
    opacity: 0.88;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.65;
}

.educativa-hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}
.educativa-hero-stat { text-align: center; }
.educativa-hero-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1;
}
.educativa-hero-stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 500;
}

@media (max-width: 600px) {
    .educativa-hero-stats { gap: 36px; }
}


/* ═══════════════════════════════════════════════════════════
   CONTACT CTA — Secção final de call-to-action
   ═══════════════════════════════════════════════════════════ */
.contact-section {
    background: var(--off-white);
    padding: 80px 24px;
    text-align: center;
}

.contact-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.contact-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

.contact-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-light));
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
    transition: var(--transition);
}
.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}


/* ═══════════════════════════════════════════════════════════
   POPUP DE CONTACTO
   ═══════════════════════════════════════════════════════════ */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 50, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
}
.popup-overlay.active { display: flex; }

.popup-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

.popup-close {
    position: absolute;
    top: 14px; right: 14px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 1;
}
.popup-close:hover { background: var(--off-white); color: var(--text-dark); }

.popup-content h2 {
    font-size: 1.7rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
}
.popup-divider {
    width: 56px; height: 4px;
    background: linear-gradient(90deg, var(--blue-bright), var(--blue-light));
    border-radius: 2px;
    margin: 0 auto 28px;
}
.popup-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.popup-social-links {
    display: flex;
    justify-content: center;
}
.popup-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    background: var(--off-white);
    border-radius: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    width: 100%;
    max-width: 340px;
    transition: var(--transition);
}
.popup-social-link:hover {
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-light));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@media (max-width: 768px) {
    .popup-content { padding: 28px 20px; }
    .popup-social-link { max-width: 100%; justify-content: center; }
}