/* Instituto Coletivo Black Divas — Design System */

:root {
    --primary: #004d33;
    --primary-dark: #002d1e;
    --primary-light: #007a52;
    --secondary: #d4af37;
    --secondary-dark: #a8842a;
    --secondary-light: #e6c247;
    --cream: #fffdf5;
    --paper: #faf7ef;
    --ink: #1e293b;
    --ink-muted: #5c6672;
    --border: #e6e0d0;
    --max-width: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--primary-dark);
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 14px;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

a { color: var(--primary); text-decoration: none; }

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--secondary-dark);
    margin-bottom: 10px;
}

.lede {
    font-size: 1.08rem;
    color: var(--ink-muted);
    max-width: 60ch;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary { background: var(--secondary); color: var(--primary-dark); }
.btn-primary:hover { background: var(--secondary-light); transform: translateY(-1px); }
.btn-outline { border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.btn-outline-dark { border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: white; }

/* ---- Kente trim ---- */
/* Filete inspirado nos padrões geométricos do kente ganês — um único acento têxtil no topo de cada página. */
.kente-trim {
    height: 6px;
    width: 100%;
    background: repeating-linear-gradient(
        90deg,
        var(--secondary) 0 34px,
        #111111 34px 40px,
        #b7472a 40px 66px,
        #111111 66px 72px,
        #1a7a4c 72px 98px,
        #111111 98px 104px,
        var(--secondary) 104px 138px,
        #111111 138px 144px,
        #1a7a4c 144px 170px,
        #111111 170px 176px,
        #b7472a 176px 202px,
        #111111 202px 208px
    );
}

/* ---- Header / Nav ---- */
header.site-header {
    background: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 14px rgba(0,0,0,0.15);
}
.nav-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.15rem;
}
.brand .mark {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}
.brand-logo { height: 60px; width: auto; }
.footer-logo { height: 40px; width: auto; }
nav.primary-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
nav.primary-nav a {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover,
nav.primary-nav a.active { color: white; border-bottom-color: var(--secondary); }
.nav-cta {
    background: var(--secondary);
    color: var(--primary-dark) !important;
    padding: 11px 24px;
    border-radius: 999px;
    font-weight: 800 !important;
    border-bottom: none !important;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
}

@media (max-width: 860px) {
    nav.primary-nav {
        position: fixed;
        top: 62px; left: 0; right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 18px;
        transform: translateY(-140%);
        transition: transform 0.25s ease;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    nav.primary-nav.open { transform: translateY(0); }
    nav.primary-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-cta { margin-top: 10px; text-align: center; }
    .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 64px 0 92px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 6%; right: -8%;
    width: 460px; height: 460px;
    background: url('../images/logo/logo-white-transparent.png') no-repeat center/contain;
    opacity: 0.16;
    pointer-events: none;
}
@media (max-width: 700px) {
    .hero::before { width: 220px; height: 220px; top: 2%; right: -14%; opacity: 0.09; }
}
.dome-divider {
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}
.dome-divider svg { width: 100%; height: 64px; display: block; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.hero h1 { color: white; margin-bottom: 16px; }
.hero .lede { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    aspect-ratio: 4/3;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 76px;
    height: 76px;
    background: var(--cream);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.hero-photo-badge img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 480px) {
    .hero-photo-badge { width: 60px; height: 60px; bottom: 12px; right: 12px; padding: 8px; }
}

@media (max-width: 780px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-photo { order: -1; }
}

/* ---- Stats strip ---- */
.stats-strip {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stats-grid .num { font-family: 'Fraunces', serif; font-size: 1.9rem; font-weight: 700; color: var(--primary); }
.stats-grid .lbl { font-size: 0.8rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; margin-top: 2px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

.card-stat { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.card-stat .n { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.15rem; color: var(--primary); }
.card-stat .t { font-size: 0.76rem; color: var(--ink-muted); font-weight: 600; }

/* ---- Section ---- */
section.block { padding: 70px 0; }
section.block.tight { padding: 46px 0; }
section.block.alt { background: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 12px;
    background: repeating-linear-gradient(
        90deg,
        var(--secondary) 0 8px,
        var(--primary) 8px 16px,
        #b7472a 16px 24px,
        var(--primary-light) 24px 32px,
        var(--secondary) 32px 40px
    );
}
.section-head.center .eyebrow::before { margin-left: auto; margin-right: auto; }

/* Seções de fundo claro sem foto/cartão de apoio recebem uma marca d'água
   sutil da logo para não ficarem "vazias" ao lado de blocos de texto estreitos. */
.timeline-section { position: relative; overflow: hidden; }
.timeline-section::after {
    content: "";
    position: absolute;
    top: 50%; right: -60px;
    transform: translateY(-50%);
    width: 380px; height: 380px;
    background: url('../images/logo/logo-black-transparent.png') no-repeat center/contain;
    opacity: 0.05;
    pointer-events: none;
}
.timeline { max-width: 640px; }
@media (max-width: 900px) { .timeline-section::after { display: none; } }

/* ---- Cards ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,77,51,0.07);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,77,51,0.12); }
.card .card-photo { aspect-ratio: 4/3; overflow: hidden; }
.card .card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder de marca para fotos ainda não confirmadas/recebidas —
   evita usar uma imagem de outro evento só para "preencher" o espaço. */
.photo-pending {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-pending::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/logo/logo-white-transparent.png') no-repeat center/42%;
    opacity: 0.22;
}
.photo-pending span {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.9);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    padding: 0 18px;
    letter-spacing: 0.01em;
}
.card .card-body { padding: 20px 22px 24px; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card .card-more { display: inline-block; margin-top: 10px; font-size: 0.82rem; font-weight: 800; color: var(--primary); }
a.card:hover .card-more { text-decoration: underline; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-muted); font-size: 0.94rem; }
.card .tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--primary);
    background: #e7f3ee;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

/* ---- Timeline ---- */
.timeline { position: relative; margin-left: 10px; padding-left: 30px; border-left: 3px solid var(--secondary); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: "";
    position: absolute; left: -39px; top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--secondary);
}
.timeline-item .year { font-family: 'Fraunces', serif; font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.timeline-item p { color: var(--ink-muted); margin-top: 4px; }

/* ---- Photo grid (imprensa/gallery) ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.gallery-grid figure {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1/1;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
    color: white; font-size: 0.74rem; font-weight: 600;
    padding: 22px 10px 8px;
}
@media (max-width: 780px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Press list ---- */
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.press-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: white; border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 3px 14px rgba(0,77,51,0.06);
}
.press-card .icon { font-size: 1.3rem; margin-top: 2px; }
.press-card h4 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 3px; }
.press-card p { font-size: 0.86rem; color: var(--ink-muted); }
.press-date { display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--secondary-dark); background: #faf3de; padding: 1px 8px; border-radius: 8px; margin-bottom: 5px; }
.press-card a.stretched { position: absolute; inset: 0; }
.press-card { position: relative; }
@media (max-width: 700px) { .press-grid { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta-band {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary));
    color: white;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
}
.cta-band h2 { color: white; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 56ch; margin: 0 auto 26px; }

/* ---- Forms ---- */
.form-card {
    background: white; border: 1px solid var(--border); border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,77,51,0.07);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
    width: 100%; padding: 12px 14px; border-radius: 8px;
    border: 1px solid var(--border); font-family: inherit; font-size: 0.95rem;
    background: var(--cream);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--secondary); border-color: transparent; }
.form-note { font-size: 0.78rem; color: var(--ink-muted); margin-top: 10px; }

/* ---- Info cards (contato) ---- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 780px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
    background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 26px;
    box-shadow: 0 3px 14px rgba(0,77,51,0.05);
}
.info-card h3 { margin-bottom: 14px; }
.info-line { display: flex; gap: 10px; margin-bottom: 10px; font-size: 0.94rem; }
.info-line .ic { color: var(--secondary-dark); }

.pix-box {
    background: var(--primary-dark); color: white; border-radius: 14px; padding: 26px;
    text-align: center;
}
.pix-box h3 { color: var(--secondary); margin-bottom: 8px; }
.pix-key {
    background: rgba(255,255,255,0.1); border: 1px dashed rgba(255,255,255,0.4);
    border-radius: 8px; padding: 12px 16px; font-family: monospace; font-size: 0.95rem;
    margin: 14px 0; word-break: break-all;
}

/* ---- Footer ---- */
footer.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    padding: 50px 0 26px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--secondary); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,0.72); font-size: 0.88rem; line-height: 1.7; }
.footer-grid a:hover { color: var(--secondary); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: white; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
    color: white;
}
.social-row a svg { width: 18px; height: 18px; }
.social-row a:hover { background: var(--secondary); color: var(--primary-dark); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Parceiros e apoiadores ---- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    min-height: 118px;
    box-shadow: 0 3px 14px rgba(0,77,51,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.partner-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,77,51,0.1); }
.partner-card .mark {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--primary); font-size: 1rem;
}
.partner-card .name { font-weight: 700; font-size: 0.84rem; color: var(--ink); line-height: 1.3; }
.partner-card img { max-height: 42px; max-width: 100%; }
a.partner-card { text-decoration: none; }
@media (max-width: 780px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
