/* === VARIÁVEIS DO TEMA === */
:root{
    --primary: #0068b1;
    --secondary: #275195;
    --accent: #318a08;
    --warning: #ffb401;
    --text: #333333;
    --bg: #f4f7fa;
}

/* === BASE === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === NAVBAR === */
.bg-secondary{ background-color: var(--secondary) !important; } /* fallback */
.navbar{ background-color: var(--secondary); } /* garante a cor mesmo sem .bg-secondary */

.navbar-logo{
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}
@media (max-width: 991.98px){ .navbar-logo{ height: 50px; } }
@media (max-width: 575.98px){ .navbar-logo{ height: 44px; } }

.navbar .nav-link{
    color: #ffffff !important;
    font-weight: 500;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus{
    color: var(--warning) !important;
}

/* botão "Entrar" da navbar (outline claro mais legível) */
.navbar .btn.btn-outline-light{
    border-width: 2px;
    border-color: #ffffff;
    color: #ffffff;
}
.navbar .btn.btn-outline-light:hover{
    background: #ffffff;
    color: var(--secondary);
}

/* === HERO / CARROSSEL === */
.hero-img{
    width: 100%;
    height: 58vh;
    min-height: 320px;
    max-height: 72vh;      /* evita banner gigante em telas baixas */
    object-fit: cover;
    object-position: center; /* foco no centro por padrão */
}
@media (max-width: 991.98px){
    .hero-img{ height: 48vh; min-height: 260px; }
}
@media (max-width: 575.98px){
    .hero-img{ height: 40vh; min-height: 220px; }
}

.carousel-caption{
    /* caixa translúcida para leitura */
    background: rgba(0,0,0,.28);
    backdrop-filter: saturate(1.15) blur(2px);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.hero-title{ font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-subtitle{ font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0,0,0,.35); }

.carousel-indicators [data-bs-target]{
    width: 12px; height: 12px; border-radius: 50%;
}

/* === SEÇÕES === */
.section-title{
    color: var(--primary);
    font-weight: 700;
}

/* imagens do "Sobre" mais elegantes */
.rounded-img{
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
@media (max-width: 575.98px){
    .rounded-img{ width: 96px; height: 96px; }
}

/* === CARDS DE CURSO === */
.course-card{
    background: #ffffff;
    border-radius: 14px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.course-card:hover{ transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.course-img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 575.98px){ .course-img{ height: 170px; } }

.course-body{ padding: 16px; }
.course-title{
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: .25rem;
}
.course-desc{
    color: #555;
    min-height: 48px;              /* equaliza alturas */
    margin-bottom: .75rem;
}

/* === BOTÕES === */
.btn-primary{
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover{
    background-color: #035892;
    border-color: #035892;
}
.btn-outline-light{ border-width: 2px; }
.btn-accent{
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: .6rem 1.1rem;
    transition: transform .12s ease, background .25s ease;
    text-decoration: none;
    display: inline-block;
    border: 0;
}
.btn-accent:hover{ background: #256f06; color: #fff; transform: translateY(-1px); }

/* === ÍCONES SOCIAIS === */
.social-icon{
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    transition: transform .2s ease, opacity .2s ease;
    color: #fff;
    text-decoration: none;
}
.social-icon:hover{ transform: translateY(-2px); opacity: .9; }
.whatsapp-icon{ background: #25D366; }

/* === PARCEIROS === */
.partner-img{
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

/* === FOOTER === */
.footer{
    background: var(--secondary);
    color: #fff;
}
.footer a{ color: #fff; text-decoration: none; }
.footer a:hover{ color: var(--warning); }

/* --- Footer elegante (usado no seu index.php) --- */
.site-footer {
    background: #0f1f3a;          /* azul mais escuro/profissional */
    color: #e9eef6;
    padding: 32px 0 12px;
    border-top: 4px solid #318a08;  /* detalhe nas suas cores do projeto */
}
.site-footer a {
    color: #e9eef6;
    text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand-line {
    font-weight: 600;
    letter-spacing: .2px;
}
.site-footer .divider {
    height: 1px; background: rgba(255,255,255,.12); margin: 16px 0;
}
.site-footer .mini {
    font-size: .92rem; opacity: .9;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float{
    position: fixed;
    right: 16px; bottom: 18px;
    width: 56px; height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    z-index: 1050;
}
.whatsapp-float i{ font-size: 26px; }

/* --- Selo/Marca d’água Projeto Educacional (não usar na navbar) --- */
.watermark-logo {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: clamp(120px, 18vw, 220px);
    opacity: 0.28;           /* visível, porém discreto */
    pointer-events: none;     /* não clicável */
    z-index: 1040;            /* acima do conteúdo, abaixo de modais */
    filter: saturate(0.9) contrast(1.05);
}
@media (max-width: 576px) {
    .watermark-logo { opacity: 0.22; width: 140px; }
}
/* garante que apareça na impressão (PDF) */
@media print {
    .watermark-logo { position: fixed; right: 10mm; bottom: 10mm; opacity: 0.35; }
}

/* === RESPONSIVO FINO === */
@media (min-width: 992px){
    .carousel-control-prev-icon,
    .carousel-control-next-icon{ transform: scale(1.15); }

    /* espaçamento ao rolar para âncoras */
    section{ scroll-margin-top: 84px; }
}
