/* ======================================================
   UNIFIEO - HOME STYLES (PRODUCTION READY)
   Font: Poppins (Google Fonts)
   Weights: 300 (Light) for Body, 400 (Regular) for Titles
   Theme: Minimalist & Clean
   Updated: Hero Section (Bordered Button)
====================================================== */

/* --- 1. VARIÁVEIS E DESIGN TOKENS --- */
:root {
    /* Paleta Institucional */
  	--unifieo-body: #1F3A5F;
    --unifieo-blue: #0B3F8B;       
    --unifieo-card-blue: #5486CE57;  
    --unifieo-hover-blue: #00509e; 
    --unifieo-dark: #1F3A5F;       
    --unifieo-yellow: #FFCC00;     
    --unifieo-yellow-hover: #e6b800;
    
    /* Cores de Texto */
    --text-primary: #003366;       
    --text-body: #333333; 
    --text-white: #ffffff;         
    --text-muted: #666666;
    --text-muted-light: rgba(255, 255, 255, 0.85); 
    --bg-light: #f8f9fa;
    --white: #ffffff;

    /* Interface */
    --card-radius: 16px;
    --btn-radius: 50px;
    --btn-rect-radius: 4px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 2. RESET E TIPOGRAFIA (PESOS LEVES) --- */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
    font-weight: 300; /* Light */
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, strong, b, .fw-bold {
    font-weight: 400 !important; /* Regular */
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

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

/* Utilitários */
.text-unifieo-blue { color: var(--unifieo-blue) !important; }
.text-warning { color: var(--unifieo-yellow) !important; }

/* --- 3. NAVBAR E HEADER --- */
.navbar-brand {
    color: var(--unifieo-blue) !important;
    font-weight: 400;
    letter-spacing: -1px;
}
.nav-link {
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #333 !important;
}
.nav-link:hover {
    color: var(--unifieo-blue) !important;
}
.navbar-toggler { border: none; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }

/* --- 4. COMPONENTES: BOTÕES GERAIS --- */
.btn-cta {
    background-color: var(--unifieo-yellow);
    color: var(--unifieo-blue);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 30px;
    border-radius: var(--btn-radius);
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: block;
    width: 100%;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}
.btn-cta:hover {
    background-color: var(--unifieo-yellow-hover);
    color: var(--unifieo-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 204, 0, 0.3);
}

.btn-outline-light-custom {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.9);
    color: var(--white);
    font-weight: 400;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: var(--btn-radius);
    display: block;
    width: 100%;
    transition: var(--transition-fast);
}
.btn-outline-light-custom:hover {
    background-color: var(--white);
    color: var(--unifieo-blue);
    border-color: var(--white);
}

/* --- 5. HERO SECTION (ATUALIZADO) --- */
.hero-home {
    position: relative;
    /* Gradiente escuro para garantir leitura do texto branco */
    background: linear-gradient(
        90deg, 
        rgba(0, 34, 68, 0.95) 0%, 
        rgba(0, 51, 102, 0.7) 60%,
        rgba(0, 51, 102, 0.3) 100%
    ), url('/images/banner-home.jpg'); 
    
    background-size: cover;
    background-position: center center;
    padding: 8rem 0; /* Espaçamento generoso */
    color: var(--white);
    text-align: left;
}

.hero-title {
    font-weight: 400; /* Regular */
    font-size: 3.5rem; /* Título Grande */
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-lead {
    font-weight: 300; /* Light */
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* Botão Específico do Hero (Borda Branca Retangular) */
.btn-hero-bordered {
    display: inline-block;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    background-color: transparent;
    border-radius: 4px; /* Levemente arredondado como na imagem */
    transition: all 0.3s ease;
}

.btn-hero-bordered:hover {
    background-color: var(--white);
    color: var(--unifieo-blue);
    transform: translateY(-2px);
}

/* --- 6. SEÇÃO INGRESSO --- */
#ingresso {
    background-color: var(--unifieo-blue);
    color: var(--white);
    padding-top: 5rem;
    padding-bottom: 6rem;
}
#ingresso .section-title { color: var(--white); font-weight: 400; margin-bottom: 0.5rem; }
#ingresso .section-desc { color: var(--text-muted-light); font-size: 1.1rem; font-weight: 300; }

.card-entry {
    background-color: var(--unifieo-card-blue);
    color: var(--white);
    border: none;
    border-radius: var(--card-radius);
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.card-entry:hover {
    background-color: var(--unifieo-hover-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.card-icon { font-size: 3rem; color: #ffffff; margin-bottom: 1.5rem; display: block; }
.card-entry h4 { color: #ffffff; font-size: 1.25rem; font-weight: 400; margin-bottom: 1rem; }
.card-entry p { color: var(--text-muted-light); font-size: 0.95rem; margin-bottom: 2rem; flex-grow: 1; font-weight: 300; }
.link-entry {
    color: #ffffff;
    font-weight: 400;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
}
.link-entry:hover { color: #ffffff; border-bottom-color: #ffffff; gap: 12px; }
.link-entry i { font-size: 0.8em; color: #ffffff; }

/* --- 7. SEÇÃO MODALIDADES --- */
.modalities-section {
    background-color: var(--white);
    padding: 6rem 0;
}
.modality-card-img {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 100%;
    min-height: 615px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    text-align: left;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.modality-card-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0, 51, 102, 0.6) 50%, rgba(0, 34, 68, 0.95) 100%);
    z-index: 1;
}
.modality-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}
.modality-card-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.btn-modality-rect {
    display: inline-block;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255, 0.8);
    border-radius: var(--btn-rect-radius);
    padding: 10px 25px;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    transition: all 0.2s ease;
}
.btn-modality-rect:hover {
    background: var(--white);
    color: var(--unifieo-blue);
    border-color: var(--white);
}

/* --- 8. SEÇÃO PRÉVIA DE CURSOS --- */
.courses-preview-section {
    background-color: #fcfcfc; 
    padding: 6rem 0;
}
.course-preview-card {
    background: var(--white);
    border: 1px solid #333333; 
    border-radius: 6px; 
    overflow: hidden;
    min-height: 381px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: var(--transition-smooth);
}
.course-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0, 0.1);
}
.course-area-badge {
    background-color: var(--unifieo-dark); 
    color: var(--white);
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem; 
    font-weight: 300;
    text-align: left;
    width: 100%;
}
.course-card-body {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    background-color: #f7f7f7; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}
.course-meta {
    color: #666;
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    display: block;
}
.course-title {
    color: #1a1a1a; 
    font-size: 1.8rem; 
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2rem;
}
.course-extension-link {
    color: #333;
    font-size: 0.9rem;
    text-decoration: underline;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 400;
}
.btn-course-outline {
    display: block;
    width: 80%; 
    margin: 0 auto;
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
    border-radius: 4px; 
    padding: 10px 0;
    text-align: center;
    font-weight: 400;
    text-transform: none; 
    font-size: 1rem;
    transition: all 0.2s ease;
}
.btn-course-outline:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none;
}
.btn-section-outline {
    display: inline-block;
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 14px 60px;
    font-weight: 400;
    text-transform: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.btn-section-outline:hover {
    background-color: #333;
    color: #fff;
}

/* --- 9. SEÇÃO RECURSOS --- */
.resources-section {
    background-color: var(--white);
    padding: 5rem 0;
}
.resource-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    background-size: cover;
    background-position: center;
    color: var(--white);
    transition: var(--transition-smooth);
}
.resource-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}
.resource-content { position: relative; z-index: 2; }
.resource-title { font-size: 2rem; font-weight: 400; margin-bottom: 1rem; }
.resource-desc { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; max-width: 80%; font-weight: 300; }
.btn-resource-outline {
    display: inline-block;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.btn-resource-outline:hover { background-color: var(--white); color: var(--unifieo-body); border: 1px solid var(--unifieo-body);}

/* --- 10. SEÇÃO AGENDA --- */
.agenda-section { background-color: var(--unifieo-blue); padding: 5rem 0; color: var(--white); }
.agenda-card {
    background-color: var(--unifieo-card-blue);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}
.agenda-card:hover { transform: translateY(-5px); background-color: var(--unifieo-hover-blue); }
.agenda-title { font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; line-height: 1.3; }
.agenda-desc { font-size: 0.95rem; opacity: 0.9; margin-bottom: 2rem; flex-grow: 1; font-weight: 300; }
.btn-agenda-outline {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 10px 0;
    border-radius: 4px;
    font-weight: 400;
    transition: all 0.2s ease;
}
.btn-agenda-outline:hover { background-color: var(--white); color: var(--unifieo-blue); }

/* --- 11. ANIMAÇÕES & MEDIA QUERIES --- */
.animate-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards; }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; transition-delay: 0.3s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

@media (min-width: 992px) {
    .hero-home {
        padding: 9rem 0;
        min-height: 650px;
    }
    .hero-title { font-size: 4.5rem; margin-bottom: 2rem; }
    .hero-lead { font-size: 1.25rem; }
    .btn-cta, .btn-outline-light-custom { display: inline-block; width: auto; margin-right: 15px; margin-bottom: 0; padding: 16px 40px; }
    .card-entry { padding: 3rem 2rem; }
}

@media (max-width: 991px) {
    .hero-home {
        background-position: 75% center !important; 
    }
}