/* ========== VARIÁVEIS CSS E RESET ========== */
:root {
    --verde-escuro: #15803d;
    --verde-medio: #16a34a;
    --verde-claro: #dcfce7;
    --azul: #3b82f6;
    --branco: #ffffff;
    --cinza-claro: #f8fafc;
    --cinza-texto: #64748b;
    --cinza-escuro: #334155;
    --gradient-verde: linear-gradient(135deg, #16a34a, #22c55e);
    --gradient-azul: linear-gradient(135deg, #3b82f6, #60a5fa);
    --gradient-mix: linear-gradient(90deg, #16a34a, #3b82f6);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--cinza-escuro);
    padding-top: 0 !important;
    overflow-x: hidden;
}

/* ========== HEADER SUPERIOR (CONTATO E REDES) ========== */
.header-top {
    background: var(--verde-escuro);
    color: var(--branco);
    padding: 10px 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.05) 50%, 
        transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header-top .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.contact-item a {
    color: var(--branco);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.contact-item a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 0.9rem;
    color: var(--verde-claro);
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
}

/* ========== HEADER PRINCIPAL (LOGO E NOME) ========== */
.header-main {
    background: var(--cinza-claro);
    padding: 15px 0;
    position: relative;
    overflow: hidden;
}

.header-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-mix);
}

.header-main .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
}

/* LOGO COM EFEITOS - MODIFICADO PARA FICAR FORA DO CÍRCULO E COM FLUTUAÇÃO SUAVE */
.logo-wrapper {
    flex-shrink: 0;
    position: relative;
    display: block;
    width: 140px;
    height: 140px;
    transition: var(--transition);
    animation: floatFade 8s ease-in-out infinite;
    z-index: 10;
    opacity: 1;
}

/* ANIMAÇÃO DE FLUTUAÇÃO COM DESAPARECIMENTO */
@keyframes floatFade {
    0%, 100% { 
        transform: translateY(0px);
        opacity: 1;
    }
    25% { 
        transform: translateY(-12px); 
        opacity: 1;
    }
    50% { 
        transform: translateY(-15px); 
        opacity: 0.8;
    }
    75% { 
        transform: translateY(-8px); 
        opacity: 0.9;
    }
    85% { 
        transform: translateY(-3px); 
        opacity: 0.95;
    }
}

/* REMOVIDO O HOVER QUE GIRA A LOGO */
.logo-wrapper:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
    transition: var(--transition);
    border-radius: 0;
}

.logo-wrapper:hover img {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}

/* NOME DA ESCOLA COM EFEITOS - AUMENTADO */
.school-info {
    flex: 1;
    position: relative;
    margin-left: 10px;
}

.school-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: transparent;
    background: var(--gradient-mix);
    background-clip: text;
    -webkit-background-clip: text;
    margin: 0;
    line-height: 1.1;
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.school-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-mix);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.school-name:hover::after {
    transform: scaleX(1);
}

/* SUBTÍTULO - REMOVIDO O TRAÇO */
.school-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--verde-medio);
    margin: 8px 0 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.school-location {
    font-size: 0.95rem;
    color: var(--cinza-texto);
    display: flex;
    align-items: center;
    gap: 6px;
}

.school-location i {
    color: var(--azul);
}

/* ========== BARRA DE NAVEGAÇÃO ========== */
.navbar {
    background: var(--branco);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 5px 0;
}

.navbar .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    flex: 1;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--cinza-escuro);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    color: var(--verde-escuro);
    background: var(--verde-claro);
}

.nav-menu li.active a {
    color: var(--verde-escuro);
    background: var(--verde-claro);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-header {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-header:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-verde);
    color: var(--branco);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--azul);
    border: 2px solid var(--azul);
}

.btn-outline:hover {
    background: var(--azul);
    color: var(--branco);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ========== MENU MOBILE - CORRIGIDO ========== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--verde-claro);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
    z-index: 1001;
}

.menu-toggle:hover {
    background: var(--verde-medio);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--verde-escuro);
    margin: 2px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--verde-escuro);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--verde-escuro);
}

/* ========== OVERLAY E MENU MOBILE CORRIGIDO ========== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ========== BOTÃO FECHAR (X) NO MENU MOBILE ========== */
.mobile-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--verde-claro);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    align-items: center;
    justify-content: center;
    color: var(--verde-escuro);
    font-size: 1.5rem;
    transition: var(--transition);
}

.mobile-close-btn:hover {
    background: var(--verde-medio);
    color: var(--branco);
    transform: scale(1.1);
}

/* ========== CABEÇALHO DO MENU MOBILE ========== */
.mobile-menu-header {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: var(--verde-escuro);
    color: var(--branco);
    z-index: 1001;
    text-align: center;
    font-weight: 600;
}

/* ========== ESTILOS PARA FOCO ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--azul);
    outline-offset: 2px;
}

/* ========== ANIMAÇÃO DE DIGITAÇÃO PARA O NOME ========== */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--verde-medio); }
}

.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--verde-medio);
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
    width: 0;
    max-width: fit-content;
}

/* ========== RESPONSIVIDADE GERAL ========== */
@media (max-width: 1100px) {
    .school-name {
        font-size: 2.2rem;
    }
    
    .nav-menu a {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .btn-header {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .logo-wrapper {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 900px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .school-name {
        font-size: 2rem;
    }
    
    .school-subtitle {
        font-size: 1rem;
    }
    
    .logo-wrapper {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 5px;
    }
    
    .school-info {
        margin-left: 0;
    }
    
    .school-name {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* MENU MOBILE CORRIGIDO - AGORA CENTRALIZADO */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: var(--branco);
        flex-direction: column;
        padding: 80px 25px 30px;
        transition: transform 0.4s ease;
        box-shadow: none;
        z-index: 999;
        gap: 10px;
        overflow-y: auto;
        margin: 0;
        transform: translateX(-100%);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-radius: var(--border-radius);
        border-left: 4px solid transparent;
        margin-bottom: 5px;
        text-align: center;
        font-size: 1.1rem;
    }
    
    .nav-menu a:hover {
        border-left-color: var(--verde-medio);
    }
    
    /* BOTÃO FECHAR NO MOBILE */
    .mobile-close-btn {
        display: flex;
    }
    
    /* CABEÇALHO DO MENU MOBILE */
    .mobile-menu-header {
        display: block;
    }
    
    /* AÇÕES DO MENU MOBILE - CORRIGIDO */
    .nav-actions {
        display: none;
    }
    
    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--cinza-claro);
    }
    
    .mobile-nav-actions .btn-header {
        width: 100%;
        justify-content: center;
        padding: 15px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .logo-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .school-name {
        font-size: 1.6rem;
    }
    
    .school-subtitle {
        font-size: 0.95rem;
    }
    
    .school-location {
        font-size: 0.85rem;
    }
    
    .contact-info {
        gap: 15px;
    }
    
    .contact-item a {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .nav-menu {
        padding: 80px 20px 30px;
    }
    
    .mobile-menu-header {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .mobile-close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

@media (max-width: 400px) {
    .school-name {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        padding: 80px 15px 25px;
    }
    
    .nav-menu a {
        padding: 14px 18px;
        font-size: 1rem;
    }
}