@font-face {
    font-family: 'Vinila';
    src: url('/fonts/Vinila-Compressed-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Vinila';
    src: url('/fonts/Vinila-Compressed-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

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

:root {
    --primary-color: #FCA50F;
    --secondary-color: #CE6F46;
    --tertiary-color: #0000EE;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--primary-color);
    padding: 0.8rem 0;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(252, 165, 15, 0.3) 0%, rgba(252, 165, 15, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: logoGlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(252, 165, 15, 0.05) 50%, transparent 80%);
    border-radius: 50%;
    opacity: 0;
    animation: logoGlowOuter 4s ease-in-out infinite 0.5s;
    pointer-events: none;
    z-index: -1;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #599BBA 0%, #4A8AAF 50%, #599BBA 100%);
    color: var(--white);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Classe para intensificar o brilho da logo */
.header.hero-section .logo::before {
    animation: logoGlowIntense 2.5s ease-in-out infinite;
    background: radial-gradient(circle, rgba(252, 165, 15, 0.5) 0%, rgba(252, 165, 15, 0.2) 40%, transparent 70%);
}

.header.hero-section .logo::after {
    animation: logoGlowOuterIntense 3.5s ease-in-out infinite 0.3s;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(252, 165, 15, 0.1) 50%, transparent 80%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: movingLight 8s linear infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 30% 70%, rgba(252, 165, 15, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(206, 111, 70, 0.1) 0%, transparent 50%);
    background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%;
    pointer-events: none;
    opacity: 0.7;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content-centered {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-family: 'MuseoModerno', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title-vinila {
    font-family: 'Vinila', 'MuseoModerno', sans-serif !important;
    font-weight: 800 !important;
}

.hero-description-vinila {
    font-family: 'Vinila', 'Poppins', sans-serif !important;
    font-weight: 400 !important;
}

.hero-text .highlight {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.hero-form {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    height: 870px;
}

.form-title {
    font-family: 'MuseoModerno', sans-serif;
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}



/* About Section */
.about {
    padding: 80px 0;
    background: #599BBA;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    bottom: 0;
    background: linear-gradient(135deg, #FCA50F 0%, #F7941D 50%, #FCA50F 100%);
    border-left: 4px solid #EE7243;
    border-right: 4px solid #EE7243;
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: stretch;
    position: relative;
    z-index: 3;
    min-height: 500px;
}



.about-image {
    display: flex;
    align-items: flex-end;
    position: relative;
}

.about-image img {
    margin-bottom: -80px;
    margin-right: -30px;
    transform: scale(1.4);
    transform-origin: bottom right;
}

.about-text h2 {
    font-family: 'MuseoModerno', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #599BBA;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.about .btn-primary {
    background: #599BBA;
    font-family: 'MuseoModerno', sans-serif;
    color: #FAB413;
}

.about .btn-primary:hover {
    background: #4A8AAF;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--dark-gray);
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 80px 0;
}

.section-title {
    font-family: 'MuseoModerno', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: 'MuseoModerno', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Unit Cards Specific Styles */
.unit-card {
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.unit-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.unit-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.unit-card:hover .unit-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.unit-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.unit-card:hover .unit-overlay {
    opacity: 1;
    transform: scale(1);
}

.unit-card:hover h3 {
    color: var(--primary-color);
}

.unit-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.unit-card::after {
    content: '↗';
    color: var(--white);
    font-size: 10px;
    font-weight: bold;
}

.unit-card:hover::after {
    opacity: 1;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #599BBA;
    color: var(--white);
}

.contact-content {
    text-align: center;
}

.contact h2 {
    font-family: 'MuseoModerno', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: #E69372;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: auto;
    }

    .about {
        padding: 60px 0;
    }

    .about-image {
        display: none;
    }

    .about-text {
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: none;
    }

    .about-text h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
        line-height: 1.6;
    }

    .about-text .btn-primary {
        display: block;
        margin: 2rem auto 0;
        width: fit-content;
    }

    .fundamental-about .about-content {
        gap: 2rem !important;
    }

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

    .cta-buttons {
        justify-content: center;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-form {
        height: 750px;
    }

    .hero-form iframe {
        height: 700px !important;
    }

    .about {
        padding: 40px 0;
    }

    .about::after {
        left: 20px;
        right: 20px;
    }

    .about-text {
        padding: 1.5rem 1rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }

    .about-text .btn-primary {
        margin-top: 1.5rem;
        padding: 0.8rem 2rem;
    }

    .about-image {
        display: none;
    }

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

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes movingLight {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes logoGlow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

@keyframes logoGlowOuter {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
    }
    40% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.4);
    }
}

@keyframes logoGlowIntense {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes logoGlowOuterIntense {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    45% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.6);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Ensino Fundamental About Section - Remove apenas o overlay laranja */
.fundamental-about::after {
    display: none !important;
}

/* Ensino Fundamental About Section - Estilos específicos */
.fundamental-about .about-content {
    /* Aumenta o gap entre texto e imagem */
    gap: 12rem !important;
}

.fundamental-about .about-text h2 {
    /* Título específico para a página do ensino fundamental */
    color: #ffffff;
}

.fundamental-about .about-text p {
    /* Parágrafos específicos para a página do ensino fundamental */
    color: rgba(255, 255, 255, 0.9);
}

.fundamental-about .btn-primary {
    /* Botão específico para a página do ensino fundamental */
    background: #FCA50F;
    color: #ffffff;
}

.fundamental-about .btn-primary:hover {
    background: #CE6F46;
}

/* Units Selection Section */
.units-selection {
    margin-top: 100px; /* Compensa o header fixo */
    padding: 60px 0;
    background: var(--light-gray);
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.city-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.city-header {
    position: relative;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}



.city-header h3 {
    font-family: 'Vinila', 'MuseoModerno', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.city-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.education-levels {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.level-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.level-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    background: var(--white);
    cursor: pointer;
}

.level-card:hover {
    border-color: var(--primary-color);
    background: rgba(252, 165, 15, 0.05);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(252, 165, 15, 0.2);
}

.level-card:active {
    transform: translateX(3px) scale(0.98);
    transition: all 0.1s ease;
}

.level-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 60px;
}

.level-card h4 {
    font-family: 'Vinila', 'MuseoModerno', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.level-card p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.9rem;
}

.link-arrow {
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.level-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive adjustments for units section */
@media (max-width: 768px) {
    .units-selection {
        margin-top: 90px; /* Menor margem para mobile */
        padding: 40px 0;
    }
    
    .units-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .city-card {
        margin: 0 1rem;
    }
    
    .level-card {
        padding: 1rem;
    }
    
    .level-card i {
        font-size: 1.5rem;
        min-width: 50px;
    }
    
    .level-card h4 {
        font-size: 1.1rem;
    }
}
