/* VARIÁVEIS E RESET */
:root {
    --primary: #002B49;     /* Azul Profundo (Institucional) */
    --secondary: #0056b3;   /* Azul Vibrante (Ação) */
    --accent: #E5A422;      /* Dourado Sutil (Detalhes) */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f4f4f4;    /* Fundo levemente cinza */
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

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

/* TOP BAR */
.top-bar {
    background-color: var(--primary);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    padding: 10px 0;
}

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

.contact-info span {
    margin-right: 20px;
}

.contact-info i, .social-mini i {
    margin-right: 5px;
}

.social-mini a {
    color: rgba(255,255,255,0.8);
    margin-left: 15px;
}

.social-mini a:hover {
    color: var(--white);
}

/* HEADER */
.header {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo img {
    height: 55px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-menu a:not(.btn-primary):hover::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white) !important;
    padding: 10px 25px !important;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,86,179,0.3);
}

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

/* HERO SECTION */
.hero {
    position: relative;
    height: 600px;
    background-image: url('imagens/hero.png');
    background-size: cover;
    background-position: center; 
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,43,73,0.95) 0%, rgba(0,43,73,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.tagline {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-lg {
    background-color: var(--accent);
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-lg:hover {
    background-color: #ffb833;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 13px 35px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

/* SEÇÃO QUEM SOMOS */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.years-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background-color: var(--accent);
    color: var(--primary);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.years-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.years-badge .text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tagline-sm {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.check-list {
    margin: 25px 0;
}

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary);
}

.check-list i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.mt-30 {
    margin-top: 30px;
    display: inline-block;
}

/* SEÇÃO ESTATÍSTICAS */
.stats-section {
    background-color: var(--primary);
    padding: 60px 0;
    color: var(--white);
    position: relative;
    margin-top: 40px;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

/* --- CURSOS SECTION (VISUAL GRADE 3x2) --- */
.courses {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--secondary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.courses-grid {
    display: grid;
    /* Alterado para 320px para forçar 3 colunas e fechar a grade perfeitamente */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.course-card {
    background: var(--white);
    border-radius: 8px; /* Cantos mais suaves */
    overflow: hidden;
    border: 1px solid #e0e0e0; /* Borda fina */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: transparent;
}

.card-image {
    position: relative;
    height: 180px; /* Aumentado um pouco para proporcionalidade */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .card-image img {
    transform: scale(1.05);
}

/* Badge do Curso */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* Conteúdo */
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.3;
    min-height: 2.6em; /* Garante alinhamento dos cards */
}

/* Meta dados (ícones) */
.card-meta {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-meta i {
    color: var(--secondary);
    width: 20px;
    text-align: center;
}

/* Botão Estilo Universidade */
.link-arrow {
    display: block;
    width: 100%;
    background-color: var(--primary); /* Azul Escuro */
    color: var(--white);
    text-align: center;
    padding: 12px 0;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    margin-top: auto;
}

.link-arrow:hover {
    background-color: var(--secondary);
    color: var(--white);
    text-decoration: none;
    transform: none; /* Remove efeito de seta */
}

/* FOOTER & RESTO DO CSS */
.footer {
    background-color: var(--primary);
    color: rgba(255,255,255,0.7);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand img {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* BOTÃO WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* ANIMAÇÃO SCROLL REVEAL */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* PÁGINAS INTERNAS (Cursos e Trilhas) */
.page-hero {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 43, 73, 0.85);
}

.page-hero h1 {
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    color: var(--white);
}

.course-details-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.course-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary);
    border-left: 4px solid var(--secondary);
    padding-left: 15px;
}

.course-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.curriculum-list {
    list-style: none;
    margin-bottom: 40px;
}

.curriculum-list li {
    background: #f4f6f8;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary);
}

.curriculum-list li i {
    color: var(--secondary);
}

.course-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid #eee;
}

.sidebar-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-info-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.sidebar-info-item h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: #999;
}

.sidebar-info-item p {
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background-color: #25d366;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-full:hover {
    background-color: #1ebc57;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* RESPONSIVIDADE (MEDIA QUERIES) */
@media (max-width: 992px) {
    .about-container { grid-template-columns: 1fr; }
    .about-image { order: -1; margin-bottom: 30px; }
    .years-badge { right: 10px; bottom: 10px; padding: 15px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-contact p { justify-content: center; }
    .social-links { justify-content: center; }
    .footer-brand { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    .course-details-container { grid-template-columns: 1fr; }
    .course-sidebar { position: static; order: -1; margin-bottom: 40px; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    /* --- CORREÇÃO DO HERO NO MOBILE --- */
    .hero {
        /* Deixa a altura flexível e menor */
        height: auto !important;
        min-height: 500px;
        
        /* O PULO DO GATO: Alinha a imagem à ESQUERDA */
        /* Assim ele mostra a parte azul limpa em vez do logo cortado */
        background-position: 20% center !important; 
    }

    /* Escurece mais o overlay para garantir que o texto apareça */
    .hero-overlay {
        background: linear-gradient(180deg, rgba(0,43,73,0.95) 0%, rgba(0,43,73,0.85) 100%) !important;
    }

    .hero-content {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .hero h1 { font-size: 2.2rem; }
    
    /* Botões empilhados */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-lg, .btn-outline {
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .mobile-menu-btn { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 40px 20px;
        transition: 0.4s ease;
    }
    
    .nav-menu.active { right: 0; }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-menu a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }
    
    .btn-primary { width: 100%; text-align: center; }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    /* No celular, volta para 1 coluna */
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero { min-height: 480px; }
}