/* =========================================================
   NÚCLEO SÃO JERÔNIMO — FOLHA DE ESTILOS PRINCIPAL
   =========================================================
   Um único CSS atende:
   - index.html
   - transparencia.html

   Organização:
   01. Variáveis e reset
   02. Estrutura geral
   03. Topbar e cabeçalho
   04. Menu
   05. Componentes gerais
   06. Hero / carrossel
   07. Estatísticas
   08. Quem somos
   09. Cards e oficinas
   10. CTA / Como ajudar
   11. Página Transparência
   12. Rodapé
   13. Responsividade
   ========================================================= */


/* =========================================================
   01. VARIÁVEIS E RESET
   ========================================================= */

:root {
    --blue: #0B4FD6;
    --blue-dark: #07399F;
    --blue-soft: #EAF2FF;

    --green: #0C8F3A;
    --green-dark: #08732F;
    --green-soft: #EAF8EF;

    --yellow: #FFC300;
    --orange: #FF7A1A;

    --text: #1F2937;
    --muted: #64748B;
    --line: #E5E7EB;
    --bg: #F7F9FC;
    --white: #FFFFFF;

    --shadow: 0 18px 50px rgba(15, 42, 80, .10);
    --container: 1180px;
    --radius: 22px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}


/* =========================================================
   02. TOPBAR
   ========================================================= */

.topbar {
    color: var(--white);
    background: var(--blue);
    font-size: .82rem;
    font-weight: 600;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* =========================================================
   03. CABEÇALHO
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(229, 231, 235, .9);
    backdrop-filter: blur(12px);
}

.nav {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    width: 190px;
    height: 64px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.brand img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
}


/* =========================================================
   04. MENU
   ========================================================= */

.menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.menu a {
    position: relative;
    padding: 10px 12px;
    border-radius: 10px;
    color: #475569;
    font-size: .91rem;
    font-weight: 700;
    transition: .2s ease;
}

.menu a:hover {
    color: var(--blue);
    background: var(--blue-soft);
}

.menu a.active {
    color: var(--blue);
}

.menu a.active::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 4px;
    left: 12px;
    height: 2px;
    border-radius: 10px;
    background: var(--blue);
}

.menu .nav-cta {
    margin-left: 7px;
    padding: 11px 17px;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 8px 20px rgba(12, 143, 58, .20);
}

.menu .nav-cta:hover {
    color: var(--white);
    background: var(--green-dark);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: var(--blue-soft);
    cursor: pointer;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    display: block;
    margin: 4px auto;
    border-radius: 5px;
    background: var(--blue);
}


/* =========================================================
   05. COMPONENTES GERAIS
   ========================================================= */

.section {
    padding: 92px 0;
}

.section-white {
    background: var(--white);
}

.section h2 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 3.3vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.lead {
    max-width: 700px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.nos,
.kicker {
    margin-bottom: 10px;
    color: var(--green);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.kicker-light {
    color: #BCE9CA;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: .93rem;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn-primary {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 12px 26px rgba(11, 79, 214, .22);
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.btn-light {
    color: var(--blue);
    background: var(--white);
    border-color: #DCE6F5;
}

.btn-light:hover {
    background: var(--blue-soft);
}

.btn-white {
    color: var(--blue);
    background: var(--white);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.section-head > p {
    max-width: 430px;
    color: var(--muted);
    font-size: .94rem;
}


/* =========================================================
   06. HERO / CARROSSEL
   ---------------------------------------------------------
   O conteúdo textual fica fixo.
   Somente o fundo troca de imagem.
   ========================================================= */

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--white);
    isolation: isolate;
}

.hero-slides,
.hero-slide,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slides {
    z-index: -3;
}

.hero-slide {
    opacity: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.03);
    transition: opacity .8s ease, transform 5s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

/*
   Camadas de proteção para leitura.
   A esquerda fica mais escura porque é onde estão
   título, texto e botões.
*/
.hero-overlay {
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(7, 25, 55, .88) 0%,
            rgba(7, 25, 55, .70) 38%,
            rgba(7, 25, 55, .28) 70%,
            rgba(7, 25, 55, .18) 100%
        ),
        linear-gradient(
            0deg,
            rgba(7, 25, 55, .24),
            rgba(7, 25, 55, .10)
        );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-copy {
    width: min(700px, 62%);
}

.hero h1 {
    max-width: 720px;
    margin-bottom: 24px;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.texto-gradiente {
    display: inline;
    background: linear-gradient(90deg, #8BC5FF, #63E38A, #FFD45C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    color: rgba(255, 255, 255, .91);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.hero-controls {
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-dot,
.hero-control {
    border: 0;
    cursor: pointer;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .50);
    transition: width .2s ease, background .2s ease;
}

.hero-dot.is-active {
    width: 27px;
    border-radius: 99px;
    background: var(--white);
}

.hero-control {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, .24);
    backdrop-filter: blur(8px);
    transition: background .2s ease, transform .2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, .48);
    transform: translateY(-1px);
}


/* =========================================================
   07. ESTATÍSTICAS
   ========================================================= */

.stats {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    min-height: 118px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    color: var(--blue);
    font-size: 1.7rem;
    line-height: 1.1;
}

.stat span {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
}


/* =========================================================
   08. QUEM SOMOS — MISSÃO, VISÃO E VALORES
   ========================================================= */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 70px;
}

.about-copy {
    padding-top: 8px;
}

.about-copy .btn {
    margin-top: 22px;
}

.values-panel {
    display: grid;
    gap: 14px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.value-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 15px;
    padding: 18px;
    border-radius: 18px;
    background: #F8FAFC;
}

.value-item h3 {
    margin-bottom: 5px;
    color: var(--blue);
    font-size: 1.05rem;
}

.value-item p {
    color: #526174;
    font-size: .91rem;
    line-height: 1.7;
}

.value-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 1.25rem;
    font-weight: 900;
}


/* =========================================================
   09. CARDS / OFICINAS / ROTINA
   ========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 8px 28px rgba(15, 42, 80, .045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
    border-color: #D5E1F3;
    box-shadow: 0 18px 38px rgba(15, 42, 80, .09);
    transform: translateY(-5px);
}

.icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #EEF4FF, #F2FBF5);
    font-size: 1.55rem;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.card p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.7;
}


/* =========================================================
   10. CTA / COMO AJUDAR
   ========================================================= */

.section-help {
    padding-top: 20px;
    padding-bottom: 90px;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 48px;
    overflow: hidden;
    border-radius: 30px;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 195, 0, .30), transparent 24%),
        radial-gradient(circle at 10% 90%, rgba(76, 216, 92, .18), transparent 25%),
        linear-gradient(120deg, var(--blue-dark), var(--blue));
    box-shadow: 0 20px 50px rgba(11, 79, 214, .20);
}

.cta h2 {
    max-width: 720px;
    margin-bottom: 10px;
    color: var(--white);
}

.cta p {
    color: rgba(255, 255, 255, .88);
    line-height: 1.8;
}


/* =========================================================
   11. PÁGINA TRANSPARÊNCIA
   ========================================================= */

.page-hero {
    padding: 72px 0 68px;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 195, 0, .24), transparent 25%),
        linear-gradient(120deg, var(--blue-dark), var(--blue));
}

.page-hero h1 {
    margin-bottom: 15px;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, .84);
    font-size: 1.06rem;
    line-height: 1.75;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 8px 28px rgba(15, 42, 80, .045);
}

.data-table td {
    padding: 17px 19px;
    border-bottom: 1px solid var(--line);
    color: #526174;
    font-size: .92rem;
    vertical-align: middle;
}

.data-table td:first-child {
    width: 22%;
    color: var(--text);
    font-weight: 800;
}

.data-table tr:last-child td {
    border-bottom: 0;
}


/* Biblioteca de documentos */
.document-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.document-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    min-height: 150px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 8px 28px rgba(15, 42, 80, .045);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.document-card:hover {
    border-color: #D5E1F3;
    box-shadow: 0 18px 38px rgba(15, 42, 80, .08);
    transform: translateY(-4px);
}

.document-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--blue-soft);
    font-size: 1.45rem;
}

.document-card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.document-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed #DDE4ED;
    color: var(--blue);
    font-size: .9rem;
    font-weight: 700;
}

.document-link:last-child {
    border-bottom: 0;
}

.document-link:hover {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.document-link span {
    flex: 0 0 auto;
    font-size: 1rem;
}


/* Painel final */
.info-panel {
    padding: 48px;
    overflow: hidden;
    border-radius: 30px;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 195, 0, .28), transparent 24%),
        radial-gradient(circle at 10% 90%, rgba(76, 216, 92, .16), transparent 25%),
        linear-gradient(120deg, var(--green-dark), var(--green));
    box-shadow: 0 20px 50px rgba(12, 143, 58, .16);
}

.info-panel h2 {
    max-width: 800px;
    color: var(--white);
}


/* =========================================================
   12. RODAPÉ
   ========================================================= */

footer {
    padding: 62px 0 24px;
    color: #CBD5E1;
    background: #102033;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .7fr 1.2fr;
    gap: 55px;
    padding-bottom: 45px;
}

.footer-brand img {
    width: auto;
    max-width: 230px;
    max-height: 75px;
    margin-bottom: 16px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 360px;
    color: #94A3B8;
    font-size: .9rem;
}

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

footer a {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-bottom: 9px;
    color: #AAB8CA;
    font-size: .88rem;
    transition: color .2s ease;
}

footer a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    color: #7F8EA3;
    font-size: .78rem;
}

.dev {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-bottom: 9px;
    color: #AAB8CA;
    font-size: .88rem;
    transition: color .2s ease;
}

#dev{
    display: flex;
    
}

#dev a{
    padding-left: 10px;
    font-size: 12px;
}

/* =========================================================
   13. RESPONSIVIDADE
   ========================================================= */

@media (max-width: 1000px) {

    .nav {
        min-height: 76px;
        gap: 18px;
    }

    .brand {
        width: 165px;
        height: 58px;
    }

    .brand img {
        max-height: 48px;
    }

    .menu {
        gap: 1px;
    }

    .menu a {
        padding: 9px 8px;
        font-size: .84rem;
    }

    .menu .nav-cta {
        padding: 10px 12px;
        margin-left: 4px;
    }

    .hero-copy {
        width: 68%;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {

    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .topbar-inner {
        min-height: 34px;
        font-size: .72rem;
    }

    .topbar-inner span:last-child {
        display: none;
    }

    .nav {
        min-height: 72px;
    }

    .brand {
        width: 180px;
        height: 58px;
    }

    .brand img {
        max-height: 48px;
    }

    .mobile-toggle {
        display: block;
    }

    .menu {
        position: absolute;
        top: 72px;
        right: 14px;
        left: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .menu.open {
        display: flex;
    }

    .menu a {
        width: 100%;
        padding: 12px 14px;
    }

    .menu a.active::after {
        display: none;
    }

    .menu .nav-cta {
        margin: 5px 0 0;
        text-align: center;
    }

    .hero {
        min-height: 620px;
    }

    .hero-copy {
        width: 100%;
        max-width: 700px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 12vw, 4rem);
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(7, 25, 55, .86),
                rgba(7, 25, 55, .62)
            ),
            linear-gradient(
                0deg,
                rgba(7, 25, 55, .30),
                rgba(7, 25, 55, .12)
            );
    }

    .hero-controls {
        justify-content: center;
        bottom: 20px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .section {
        padding: 68px 0;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .cards,
    .document-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .data-table {
        min-width: 700px;
    }

    .cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 34px 28px;
    }

    .info-panel {
        padding: 34px 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px;
    }

    .page-hero {
        padding: 55px 0 50px;
    }
}

@media (max-width: 430px) {

    .brand {
        width: 155px;
    }

    .brand img {
        max-height: 44px;
    }

    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
    }

    .value-item {
        grid-template-columns: 38px 1fr;
        padding: 15px;
    }

    .value-icon {
        width: 36px;
        height: 36px;
    }

    .stat {
        padding: 19px 14px;
    }

    .document-card {
        grid-template-columns: 44px 1fr;
        padding: 20px;
    }

    .document-icon {
        width: 44px;
        height: 44px;
    }
}


/* =========================================================
   ACESSIBILIDADE — REDUZIR MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
