/* =========================================================================
   NCS, Núcleo de Cultura e Comunicação Social
   Identidade derivada do logotipo da associação: o sol azul de oito raios.
   ========================================================================= */

:root {
    --ncs-blue: #4F86C6;
    --ncs-blue-dark: #2E5F97;
    --ncs-deep: #17395F;
    --ncs-sun: #E8A33D;
    --ncs-sand: #F7F1E6;
    --ncs-sand-deep: #EFE3CE;
    --ncs-clay: #B4552F;
    --ink: #1D2B36;
    --soft: #5A6B78;
    --line: #E2DACB;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(23, 57, 95, .10);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: #fff;
    font-size: 1.06rem;
    line-height: 1.68;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3 {
    font-family: 'Archivo', system-ui, sans-serif;
    font-weight: 800;
    color: var(--ncs-deep);
    letter-spacing: -.015em;
    line-height: 1.15;
}

h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); font-weight: 700; }

a { color: var(--ncs-blue-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ncs-clay); }

.text-soft { color: var(--soft); }
.lead { font-size: 1.16rem; }

/* --- Olho: o pequeno sol que abre cada seção ---------------------------- */
.eyebrow {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ncs-clay);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
}
.eyebrow::before {
    content: "";
    width: 14px; height: 14px;
    background: var(--ncs-sun);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    flex: none;
}

/* --- Faixa de raios, o motivo do logotipo ------------------------------- */
.raios {
    height: 12px;
    background:
        linear-gradient(45deg, transparent 50%, var(--ncs-sun) 50%) 0 0 / 24px 12px repeat-x,
        linear-gradient(-45deg, transparent 50%, var(--ncs-sun) 50%) 12px 0 / 24px 12px repeat-x;
}
.raios--azul {
    background:
        linear-gradient(45deg, transparent 50%, var(--ncs-blue) 50%) 0 0 / 24px 12px repeat-x,
        linear-gradient(-45deg, transparent 50%, var(--ncs-blue) 50%) 12px 0 / 24px 12px repeat-x;
}

/* --- Navegação ---------------------------------------------------------- */
.nav-ncs {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 14px rgba(23, 57, 95, .06);
}
.nav-ncs .navbar-brand { display: flex; align-items: center; gap: .7rem; }
.nav-ncs .navbar-brand img { width: 46px; height: auto; }
.nav-ncs .brand-txt { line-height: 1.1; }
.nav-ncs .brand-txt strong {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    color: var(--ncs-deep);
    font-size: 1.28rem;
    letter-spacing: -.02em;
    display: block;
}
.nav-ncs .brand-txt span { font-size: .74rem; color: var(--soft); letter-spacing: .04em; }
.nav-ncs .nav-link {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ncs-deep);
    padding: .45rem .8rem;
    border-radius: 9px;
}
.nav-ncs .nav-link:hover { background: var(--ncs-sand); color: var(--ncs-blue-dark); }
.nav-ncs .nav-link.active { color: var(--ncs-clay); }

/* --- Botões ------------------------------------------------------------- */
.btn-sol, .btn-azul, .btn-linha, .btn-branco {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid transparent;
    padding: .62rem 1.25rem;
}
.btn-sol { background: var(--ncs-sun); color: #3D2A08; }
.btn-sol:hover { background: #D4901F; color: #3D2A08; }
.btn-azul { background: var(--ncs-deep); color: #fff; }
.btn-azul:hover { background: var(--ncs-blue-dark); color: #fff; }
.btn-linha { border-color: var(--ncs-deep); color: var(--ncs-deep); }
.btn-linha:hover { background: var(--ncs-deep); color: #fff; }
.btn-branco { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-branco:hover { background: #fff; color: var(--ncs-deep); }

/* --- Herói -------------------------------------------------------------- */
.heroi { position: relative; color: #fff; overflow: hidden; }
.heroi::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(23, 57, 95, .94) 0%, rgba(23, 57, 95, .80) 46%, rgba(46, 95, 151, .55) 100%);
    z-index: 1;
}
.heroi img.heroi-fundo {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    /* Les visages vivent à droite du cadre : le titre ne doit pas s'asseoir dessus. */
    object-position: 62% center;
}
.heroi .container { position: relative; z-index: 2; }
.heroi h1 {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    max-width: 15ch;
}
.heroi .lead { color: rgba(255, 255, 255, .93); max-width: 60ch; }
.heroi-selo {
    display: inline-flex; align-items: center; gap: .55rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: .3rem .9rem;
    font-size: .86rem;
    color: #fff;
}

/* Herói curto das páginas internas */
.heroi-pagina {
    background: var(--ncs-deep);
    color: #fff;
    padding: 3.2rem 0 3.4rem;
}
.heroi-pagina h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.heroi-pagina .lead { color: rgba(255, 255, 255, .88); max-width: 66ch; }
.heroi-pagina .eyebrow { color: var(--ncs-sun); }

/* --- Faixa dos reconhecimentos ----------------------------------------- */
.faixa-fatos { background: var(--ncs-sand); border-bottom: 1px solid var(--line); }
.fato { display: flex; gap: .9rem; align-items: flex-start; }
.fato i { color: var(--ncs-clay); font-size: 1.5rem; line-height: 1; }
.fato strong { font-family: 'Archivo', sans-serif; color: var(--ncs-deep); display: block; }
.fato span { font-size: .93rem; color: var(--soft); }

/* --- Cartões das frentes ------------------------------------------------ */
.cartao {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
}
.cartao::after {
    content: "";
    position: absolute; top: 0; right: 0;
    border-width: 0 30px 30px 0;
    border-style: solid;
    border-color: transparent var(--ncs-sun) transparent transparent;
}
.cartao:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cartao .cartao-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ncs-sand-deep); }
.cartao .cartao-media img { width: 100%; height: 100%; object-fit: cover; }
.cartao .cartao-corpo { padding: 1.2rem 1.25rem 1.35rem; }
.cartao h3 { margin-bottom: .35rem; }
.cartao p { color: var(--soft); margin-bottom: .6rem; font-size: .99rem; }
.cartao-link {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: .93rem;
    text-decoration: none;
    color: var(--ncs-blue-dark);
}
.cartao-link:hover { color: var(--ncs-clay); }

/* --- Blocos de conteúdo ------------------------------------------------- */
.bloco-areia { background: var(--ncs-sand); }
.bloco-azul { background: var(--ncs-deep); color: rgba(255, 255, 255, .9); }
.bloco-azul h2, .bloco-azul h3 { color: #fff; }
.bloco-azul .eyebrow { color: var(--ncs-sun); }
.bloco-azul a { color: #fff; }

.foto-quadro {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.foto-quadro img { width: 100%; height: auto; display: block; }
/* Une photo verticale (rayonnages, portraits) recadrée pour ne pas étirer la colonne. */
.foto-quadro--retrato { aspect-ratio: 4 / 5; }
.foto-quadro--retrato img { height: 100%; object-fit: cover; }
.legenda { font-size: .87rem; color: var(--soft); margin-top: .5rem; }
.bloco-azul .legenda { color: rgba(255, 255, 255, .68); }

/* --- Listas com o raio como marcador ------------------------------------ */
.lista-raio { list-style: none; padding-left: 0; }
.lista-raio li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.lista-raio li::before {
    content: "";
    position: absolute; left: 0; top: .55em;
    width: 10px; height: 10px;
    background: var(--ncs-sun);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* --- Linha do tempo ----------------------------------------------------- */
.tempo { list-style: none; padding-left: 0; margin: 0; border-left: 2px solid var(--ncs-sand-deep); }
.tempo li { position: relative; padding: 0 0 1.5rem 1.6rem; }
.tempo li::before {
    content: "";
    position: absolute; left: -7px; top: .5em;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--ncs-blue); border: 2px solid #fff;
}
.tempo .ano { font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--ncs-clay); display: block; }

/* --- Galeria ------------------------------------------------------------ */
/* C'est le CADRE qui porte le ratio, jamais l'image : une photo verticale et une
   photo horizontale doivent donner la même vignette, sinon la grille part en
   escalier. Même patron que .cartao-media. */
.galeria-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; height: 100%; display: flex; flex-direction: column; }
.galeria-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ncs-sand-deep); flex: none; }
.galeria-media--retrato { aspect-ratio: 3 / 4; }
.galeria-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeria-item figcaption { padding: .7rem .9rem .85rem; font-size: .9rem; color: var(--soft); flex: 1 1 auto; }
.galeria-item figcaption strong { display: block; color: var(--ncs-deep); font-family: 'Archivo', sans-serif; font-size: .95rem; }

/* --- Contato ------------------------------------------------------------ */
/* 414 px de contenu mesures sur l'embed, quelle que soit la largeur ; la marge
   couvre un message de validation qui s'affiche sous un champ. */
.form-embed { width: 100%; min-height: 500px; border: 0; border-radius: var(--radius); background: #fff; }
.mapa-embed { width: 100%; height: 300px; border: 0; border-radius: var(--radius); }

.dados-lista { list-style: none; padding-left: 0; margin: 0; }
.dados-lista li { display: flex; gap: .7rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.dados-lista li:last-child { border-bottom: 0; }
.dados-lista i { color: var(--ncs-blue); margin-top: .2rem; }
@media (min-width: 768px) {
    .dados-lista--duas { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.8rem; }
    .dados-lista--duas li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* --- Chamada final ------------------------------------------------------ */
.chamada {
    background: linear-gradient(120deg, var(--ncs-deep) 0%, var(--ncs-blue-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
}
.chamada h2 { color: #fff; }

/* --- Rodapé ------------------------------------------------------------- */
.rodape { background: var(--ncs-deep); color: rgba(255, 255, 255, .78); }
.rodape h6 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
}
.rodape a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.rodape a:hover { color: var(--ncs-sun); text-decoration: underline; }
.rodape .marca-rodape { width: 54px; height: auto; }
.rodape-credito { background: rgba(0, 0, 0, .22); }
.rodape-credito .credito-serenity { color: #fff; text-decoration: underline; }

@media (max-width: 991.98px) {
    .nav-ncs .navbar-nav { padding-top: .6rem; }
    .heroi h1 { max-width: none; }
}
