﻿/* =========================================================================
   Nome do Arquivo: assets/css/gestao-escolar.css
   Descrição: Estilos compartilhados do módulo de pré-matrícula.
   Origem: bloco <style> do index.html (integral) + classes usadas pelas
           views de Pré-matrícula, para eliminar duplicação entre páginas.
   ========================================================================= */

/* ---------- 1. Tokens de design (identidade Intellectus Vita) ---------- */
:root {
    --wine: #720b32;
    --wine-dark: #3f061d;
    --magenta: #b30b54;
    --gold: #e9b949;
    --goldEscuro: #a97909;
    --cream: #fbf6ec;
    --ink: #2d2230;
    --muted: #6e6570;

    --vinho: #6B1D3A;
    --vinho-escuro: #4A1528;
    --magenta: #9B2D5B;
    --dourado: #C8963E;
    --dourado-claro: #E8C97A;
    --creme: #F5F0E8;
    --creme-escuro: #EBE3D5;
    --cinza-escuro: #2D2D2D;
    --cinza-medio: #6B6B6B;
    --cinza-claro: #F9F7F4;
    --branco: #FFFFFF;
    --sombra-suave: 0 4px 20px rgba(107, 29, 58, 0.08);
    --sombra-media: 0 8px 40px rgba(107, 29, 58, 0.12);
    --sombra-dourada: 0 4px 20px rgba(200, 150, 62, 0.2);
}

/* ---------- 2. Base / reset ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--cream);
}

[id] {
    scroll-margin-top: 5rem;
}

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
}

/* ---------- 3. Navbar ---------- */
.navbar {
    background: rgba(63, 6, 29, .96);
}

.navbar-brand img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.navbar-brand span {
    color: #fff;
    font-weight: 700;
    letter-spacing: .04em;
}

.nav-link {
    color: rgba(255,255,255,.75) !important;
    font-size: .84rem;
}

    .nav-link:hover {
        color: var(--gold) !important;
    }

.navbar-nav .nav-link.active {
    color: var(--gold) !important;
    font-weight: 600;
}

/* Itens de âncora da home: tipografia levemente reduzida e separador à esquerda */
.nav-ancoras {
    border-left: 1px solid rgba(233, 185, 73, .28);
}

    .nav-ancoras .nav-link {
        font-size: .78rem;
        letter-spacing: .02em;
        padding-inline: .55rem;
    }

    .nav-ancoras .btn-gold {
        padding: .35rem .75rem;
        font-size: .78rem;
        border-radius: .375rem;
    }

@media (max-width: 991.98px) {
    .nav-ancoras {
        border-left: 0;
        margin-top: .5rem;
        padding-top: .5rem;
        border-top: 1px solid rgba(233, 185, 73, .28);
    }

        .nav-ancoras .nav-link {
            font-size: .86rem;
            padding-block: .45rem;
        }
}

/* ---------- 4. Heros ---------- */
.hero {
    min-height: 91vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 85% 15%, rgba(233,185,73,.2), transparent 25%), linear-gradient(135deg, var(--wine-dark), var(--wine) 55%, #9c0c4c);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .hero:after {
        content: '';
        position: absolute;
        inset: auto -10% -35% 35%;
        height: 70%;
        border: 1px solid rgba(233,185,73,.2);
        border-radius: 50%;
        transform: rotate(-14deg);
    }

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .76rem;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(3.1rem, 7vw, 6.7rem);
    line-height: .94;
}

.hero .lead {
    color: rgba(255,255,255,.78);
    max-width: 630px;
    font-size: 1.12rem;
}

.hero-logo {
    max-height: 390px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 22px 25px rgba(0,0,0,.3));
}

/* Hero interno das páginas de formulário e de listagem */
.page-header {
    padding: 5rem 0;
    color: #fff;
    background: radial-gradient(circle at 85% 15%, rgba(233,185,73,.2), transparent 25%), linear-gradient(135deg, var(--wine-dark), var(--wine) 55%, #9c0c4c);
}

/* ---------- 5. Botões ---------- */
.btn-gold {
    background: var(--gold);
    color: #341324;
    border: 0;
    font-weight: 700;
    padding: .85rem 1.2rem;
}

    .btn-gold:hover {
        background: #f4cd68;
        color: #341324;
    }

.btn-outline-light:hover {
    color: var(--wine-dark);
}

/* ---------- 6. Seções ---------- */
section {
    padding: 5.5rem 0;
}

.section-space {
    padding: 5rem 0;
}

.section-kicker {
    color: var(--magenta);
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .15em;
    font-weight: 700;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.3rem);
    color: var(--wine-dark);
}

.section-intro {
    color: var(--muted);
    max-width: 720px;
    font-size: 1.05rem;
}

.gold-rule {
    width: 62px;
    height: 4px;
    background: var(--gold);
    border-radius: 5px;
    margin: 1.1rem 0 1.6rem;
}

.band {
    background: var(--wine-dark);
    color: #fff;
}

    .band .section-title {
        color: #fff;
    }

    .band .section-intro {
        color: rgba(255,255,255,.7);
    }

/* ---------- 7. Cards ---------- */
.card-clean {
    background: #fff;
    border: 1px solid rgba(114,11,50,.1);
    border-radius: 18px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 12px 32px rgba(63,6,29,.06);
}

.icon-box {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f9e8ee;
    color: var(--magenta);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/*
   Observação: .card sobrescreve a classe homônima do Bootstrap, exatamente
   como no index.html. Mantido para paridade visual.
*/
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 30px;
    border-radius: 8px;
    transition: transform .3s ease, box-shadow .3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 20px rgba(0,0,0,.05);
        border-color: var(--cor-secundaria);
    }

.card-icone {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-block;
}

.card h4 {
    font-size: 1.2rem;
    color: var(--cor-primaria);
    margin-bottom: 10px;
}

.card p {
    font-size: .95rem;
    color: var(--cor-texto-claro);
}

.expressao-latim {
    font-family: var(--fonte-titulos);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--cor-secundaria);
    margin-bottom: 20px;
}

/* ---------- 8. Tabelas e listagens ---------- */
.table thead th {
    background: var(--wine);
    color: #fff;
    font-weight: 600;
}

.table tbody tr:hover {
    background: #fff5f8;
}

.table-wrapper {
    margin-top: -2rem;
    margin-bottom: 5rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(63,6,29,.12);
}

.status-select {
    min-width: 150px;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: .5rem;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    padding: .375rem .75rem;
}

/* ---------- 9. Formulários ---------- */
.form-wrapper {
    margin-top: -3rem;
    margin-bottom: 5rem;
    padding: 2rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(63,6,29,.12);
}

.form-label {
    font-weight: 600;
}

.required::after {
    content: " *";
    color: #b02a37;
}

/* ---------- 10. Componentes diversos ---------- */
.pill {
    display: inline-block;
    border: 1px solid rgba(233,185,73,.5);
    color: var(--goldEscuro);
    padding: .35rem .65rem;
    border-radius: 50rem;
    font-size: 0.95rem;
    margin: .15rem;
    /*text-shadow: 1px 1px 0px #000, 3px 3px 5px rgba(0, 200, 255, 0.7);*/
    letter-spacing: 1px;
    font-weight: normal;
}

.timeline {
    border-left: 2px solid var(--gold);
    padding-left: 1.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.35rem;
}

    .timeline-item:before {
        content: '';
        width: 12px;
        height: 12px;
        background: var(--gold);
        border: 3px solid var(--wine-dark);
        position: absolute;
        left: -1.93rem;
        top: .28rem;
        border-radius: 50%;
    }

.map-card {
    background: linear-gradient(135deg, #f9e8ee, #fff);
    border-radius: 22px;
    padding: 2rem;
    border: 1px solid #efd5df;
    color:var(--vinho);
}

.map-link {
    color: var(--magenta);
    word-break: break-word;
}

.small-label {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .7rem;
    font-weight: 700;
}

/* ---------- 11. Rodapé ---------- */
footer {
    background: #260413;
    color: rgba(255,255,255,.7);
    padding: 2.5rem 0;
}

    footer a {
        color: var(--gold);
        text-decoration: none;
    }

/* ---------- 12. Figura flutuante (paridade com o index.html) ---------- */
.floating-figure {
    position: absolute;
    z-index: 3;
    top: 1.5rem;
    left: 50%;
    width: clamp(420px, 16vw, 190px);
    aspect-ratio: 1;
    transform: translate(-50%, -180px);
    opacity: 0;
    animation: figure-drop 3.5s ease-out .25s forwards;
    /*animation: figure-drop 1.1s cubic-bezier(.22,.8,.25,1) .25s forwards;*/
}

    .floating-figure::before {
        content: '';
        position: absolute;
        inset: -18%;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(233,185,73,.55) 0%, rgba(233,185,73,.22) 35%, transparent 72%);
        filter: blur(14px);
        opacity: .9;
        transition: opacity .35s ease, transform .35s ease;
        pointer-events: none;
    }

.floating-figure-link {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    outline: none;
}

    .floating-figure-link:focus-visible {
        box-shadow: 0 0 0 4px var(--gold), 0 0 0 8px rgba(255,255,255,.85);
    }

.floating-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 18px rgba(0,0,0,.35));
    transition: transform .3s ease;
}

.floating-figure:hover img,
.floating-figure-link:focus-visible img {
    transform: scale(1.04);
}

.floating-figure-close {
    position: absolute;
    z-index: 2;
    top: -.55rem;
    right: -.55rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: var(--wine-dark);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    transform: scale(.8);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
    cursor: pointer;
}

.floating-figure:hover .floating-figure-close,
.floating-figure:focus-within .floating-figure-close {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.floating-figure-close:hover,
.floating-figure-close:focus-visible {
    background: var(--magenta);
}

.floating-figure.is-hidden {
    display: none;
}

@keyframes figure-drop {
    from {
        transform: translate(-50%, -180px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* ---------- 13. Responsivo ---------- */
@media (max-width: 991px) {
    .hero {
        padding-top: 4rem;
    }

    .hero-logo {
        max-height: 290px;
        margin-top: 2rem;
    }

    .floating-figure-close {
        visibility: visible !important;
        opacity: 1 !important;
        transform: scale(1) !important;
        display: grid !important;
    }
}

/* ---------- 14. Contador regressivo ---------- */
.contador-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.contador-item {
    background: var(--vinho-escuro); /*rgba(255, 255, 255, 0.1);*/
    border: 1px solid var(--dourado); /*rgba(255, 255, 255, 0.2);*/
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 90px;
}

.contador-numero {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dourado);
    line-height: 1;
}

.contador-label {
    color: var(--dourado-claro); /*rgba(255, 255, 255, 0.6);*/
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ---------- 15. Botao WhatsApp ---------- */
.btn-whatsapp {
    position: fixed;
    top: 85%;
    right: 30px;
    background: #25D366;
    color: var(--branco);
    font-weight: 700;
    padding: 10px;
    border-radius: 50px;
    font-size: 1.1rem;
    border: none;
    /*max-width: 90px;*/
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

    .btn-whatsapp:hover {
        background: #1DA851;
        color: var(--branco);
        transform: translateY(-2px);
    }