/* --- VARIÁVEIS E RESET --- */
:root {
    /* Paleta: Azul Acadêmico, Vermelho Institucional, Branco */
    --primary-blue: #002e5d;
    /* Azul Marinho */
    --secondary-blue: #004a94;
    /* Azul Médio */
    --accent-red: #c41230;
    /* Vermelho Batista */
    --light-gray: #f4f4f4;
    /* Fundo Claro */
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;

    --shadow: 0 10px 30px rgba(0, 46, 93, 0.15);
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --gradient: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    font-weight: 700;
}

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 90px 0;
}

.text-center {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--accent-red);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-red);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: transparent;
    color: var(--accent-red);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* --- HEADER --- */
header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    border-top: 5px solid var(--primary-blue);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    line-height: 1.1;
}

.logo i {
    color: var(--accent-red);
    font-size: 2rem;
    margin-right: 10px;
}

.logo-text span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-red);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 46, 93, 0.85), rgba(0, 46, 93, 0.7)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 90px;
}

.hero-content {
    max-width: 900px;
    animation: fadeIn 1.2s ease-out;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* --- INFO BAR --- */
.info-bar {
    background: var(--accent-red);
    color: var(--white);
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.info-item i {
    font-size: 1.5rem;
}

.info-item span {
    font-weight: 500;
}

/* --- CICLOS DE ENSINO (Grids) --- */
.cycles {
    background-color: var(--light-gray);
}

.cycles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.cycle-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    position: relative;
    border-top: 4px solid transparent;
}

.cycle-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--accent-red);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cycle-img {
    height: 180px;
    background-color: #ddd;
    overflow: hidden;
}

.cycle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.cycle-card:hover .cycle-img img {
    transform: scale(1.1);
}

.cycle-content {
    padding: 25px;
}

.cycle-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.cycle-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cycle-link {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* --- SOBRE (Institucional) --- */
.about {
    background: var(--white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.features-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--accent-red);
}

/* --- CONTATO --- */
.contact {
    background-color: var(--primary-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact h2 {
    color: var(--white);
}

.contact p {
    color: #ccdcf2;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-details {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
}

.detail-box {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-box i {
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-top: 5px;
}

.detail-box h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--white);
}

.detail-box p {
    font-size: 0.95rem;
}

.map-frame {
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- FOOTER --- */
footer {
    background: #001a35;
    color: #889bb0;
    padding: 50px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 15px;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #889bb0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1a3c6e;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
    }

    .navbar .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}