/* ==========================================================================
   Associação Cultural Cine Ceará — estilos do site público
   ========================================================================== */

:root {
    --bg: #fbfaf7;
    --fg: #16241c;
    --muted: #5b6a60;
    --brand: #204031;
    --brand-strong: #182f24;
    --lime: #81af40;
    --cream: #f7f3ea;
    --sand: #ece6da;
    --border: #dde3db;
    --white: #ffffff;
    --radius: 3px;
    --shadow: 0 18px 40px -28px rgba(22, 36, 28, 0.45);
    --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

p { margin: 0; }
p + p { margin-top: 1rem; }

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand); color: var(--white); }

/* ------------------------------------------------------------- estrutura --- */

.shell {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 64px 0; }

.section--tight { padding: 40px 0; }

.eyebrow {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.display-1 { font-size: clamp(2.15rem, 4.6vw, 3.75rem); }
.display-2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); }
.display-3 { font-size: clamp(1.2rem, 1.6vw, 1.55rem); line-height: 1.3; }

.lead { color: var(--muted); font-size: 1.0625rem; line-height: 1.75; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 12px 18px;
    background: var(--brand);
    color: var(--white);
    z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- botões --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    background: var(--brand);
    color: var(--white);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }

.btn--sm { height: 38px; padding: 0 16px; font-size: 0.88rem; }

.btn--outline {
    background: transparent;
    color: var(--fg);
    border-color: var(--border);
}
.btn--outline:hover { background: var(--sand); border-color: #c8d2c8; }

.btn--lime { background: var(--lime); border-color: var(--lime); color: var(--fg); }
.btn--lime:hover { background: #74a136; border-color: #74a136; }

.btn--outline-light {
    background: transparent;
    color: var(--bg);
    border-color: rgba(251, 250, 247, 0.35);
}
.btn--outline-light:hover { background: rgba(251, 250, 247, 0.12); border-color: rgba(251, 250, 247, 0.5); }

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(22, 36, 28, 0.25);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s ease, gap 0.2s ease;
}
.arrow-link:hover { border-color: var(--fg); gap: 12px; }
.arrow-link svg { width: 16px; height: 16px; }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --------------------------------------------------------------- topbar --- */

.topbar {
    display: none;
    background: var(--brand);
    color: rgba(251, 250, 247, 0.78);
    font-size: 0.78rem;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 36px;
}

.topbar__place {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
}

.topbar__contacts { display: flex; align-items: center; gap: 24px; }
.topbar__contacts a { display: inline-flex; align-items: center; gap: 8px; }
.topbar__contacts a:hover { color: var(--white); }

@media (min-width: 768px) { .topbar { display: block; } }

/* --------------------------------------------------------------- header --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--border);
    background: rgba(251, 250, 247, 0.96);
    backdrop-filter: blur(8px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.brand img { width: 168px; }

.nav { display: none; align-items: center; gap: 32px; }

.nav__link {
    position: relative;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 2px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav__link:hover { color: var(--fg); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--fg); }

.nav .btn { margin-left: 4px; }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    margin: 0 auto;
    background: var(--fg);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 20px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.mobile-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a[aria-current="page"] { color: var(--fg); }

@media (min-width: 768px) {
    .site-header__inner { height: 86px; }
    .brand img { width: 204px; }
    .nav { display: flex; }
    .nav-toggle { display: none; }
    .mobile-nav { display: none; }
}

/* ----------------------------------------------------------------- hero --- */

.hero { padding: 56px 0; }

.hero__grid { display: grid; gap: 40px; align-items: center; }

.hero h1 { margin: 20px 0 0; }
.hero .lead { margin-top: 26px; max-width: 540px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero figure { margin: 0; }

.hero__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.hero__caption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero__caption::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--lime);
}

@media (min-width: 1024px) {
    .hero { padding: 96px 0; }
    .hero__grid { grid-template-columns: 1.02fr 0.98fr; gap: 80px; }
}

/* ---------------------------------------------------------------- fatos --- */

.facts {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--cream);
}

.facts__grid {
    display: grid;
    gap: 24px;
    padding: 30px 0;
}

.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact svg { width: 20px; height: 20px; margin-top: 2px; color: var(--brand); flex: none; }
.fact dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-size: 0.98rem; font-weight: 500; }

@media (min-width: 640px) { .facts__grid { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------- seções --- */

.section-head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.section-head h2 { margin-top: 16px; max-width: 680px; }
.section-head__aside { max-width: 320px; }

.pillars {
    display: grid;
    gap: 1px;
    margin-top: 48px;
    border: 1px solid var(--border);
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.pillar { padding: 32px; background: var(--white); }
.pillar__index { margin: 0; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; color: var(--lime); }
.pillar h3 { margin-top: 20px; }
.pillar p { margin-top: 14px; color: var(--muted); font-size: 0.97rem; }

.inclusion-photo {
    width: 100%;
    height: 260px;
    margin-top: 48px;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

@media (min-width: 768px) {
    .pillars { grid-template-columns: repeat(3, 1fr); }
    .pillar { padding: 40px; }
    .inclusion-photo { height: 420px; }
    .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* ---------------------------------------------------------------- faixa --- */

.media-band {
    position: relative;
    display: flex;
    min-height: 320px;
    align-items: flex-end;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.media-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 47, 36, 0.92), rgba(24, 47, 36, 0.3) 55%, rgba(24, 47, 36, 0));
}

.media-band__content { position: relative; z-index: 1; width: 100%; padding: 32px 0; color: var(--white); }
.media-band__eyebrow { margin: 0; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.media-band__title { margin-top: 12px; max-width: 640px; font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.25; }

@media (min-width: 768px) { .media-band { min-height: 460px; } .media-band__content { padding: 48px 0; } }

/* --------------------------------------------------------- benefícios --- */

.split { display: grid; gap: 40px; align-items: center; }
.split img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.split__copy h2 { margin-top: 16px; max-width: 440px; }
.split__copy .lead { margin-top: 22px; max-width: 520px; }

.benefits { display: grid; gap: 28px; margin-top: 40px; }
.benefit { padding-top: 18px; border-top: 1px solid rgba(22, 36, 28, 0.15); }
.benefit h3 { font-size: 1.05rem; }
.benefit p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }

.band-cream { background: var(--cream); }

/* ----------------------------------------------------------- programas --- */

.programs { display: grid; gap: 40px; margin-top: 48px; }

.program { padding-top: 24px; border-top: 1px solid var(--border); }
.program__top { display: flex; align-items: center; justify-content: space-between; }
.program__index { margin: 0; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; color: var(--muted); }
.program__icon { width: 32px; height: 32px; opacity: 0.8; }
.program h3 { margin-top: 24px; max-width: 280px; }
.program p { margin-top: 14px; color: var(--muted); font-size: 0.97rem; }

@media (min-width: 768px) { .programs { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ------------------------------------------------------------------ cta --- */

.cta { background: var(--lime); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.cta__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 56px 0;
}

.cta .eyebrow { color: rgba(22, 36, 28, 0.65); }
.cta h2 { margin-top: 12px; max-width: 560px; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--outline { border-color: rgba(22, 36, 28, 0.3); }
.cta .btn--outline:hover { background: rgba(22, 36, 28, 0.08); border-color: rgba(22, 36, 28, 0.45); }

@media (min-width: 768px) { .cta__inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 64px 0; } }

/* ---------------------------------------------------------- page hero --- */

.page-hero { background: var(--cream); border-bottom: 1px solid var(--border); }
.page-hero .shell { padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { margin-top: 16px; max-width: 900px; }
.page-hero .lead { margin-top: 22px; max-width: 620px; }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--muted);
}
.breadcrumbs a:hover { color: var(--fg); }
.breadcrumbs span[aria-current] { color: var(--fg); }

@media (min-width: 768px) { .page-hero .shell { padding-top: 72px; padding-bottom: 72px; } }

/* -------------------------------------------------------------- projetos --- */

.project-list { display: flex; flex-direction: column; }

.project-row {
    display: grid;
    gap: 32px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.project-row:first-child { padding-top: 0; }
.project-row:last-child { border-bottom: 0; padding-bottom: 0; }

.project-row img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.project-row h2 { margin-top: 20px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.project-row p { margin-top: 16px; color: var(--muted); max-width: 480px; }
.project-row .arrow-link { margin-top: 26px; }

@media (min-width: 768px) {
    .project-row { grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0; }
    .project-row:nth-child(even) .project-row__media { order: 2; }
    .project-row:nth-child(even) .project-row__body { order: 1; }
}

/* ---------------------------------------------------------- detalhes --- */

.detail { padding: 64px 0; }
.detail__grid { display: grid; gap: 48px; }

.gallery { display: flex; flex-direction: column; gap: 24px; }
.gallery img {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    object-fit: cover;
}

.detail__body h2 { font-size: 1.3rem; }
.detail__text { margin-top: 20px; color: var(--muted); line-height: 1.8; }

.meta-list { margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); display: grid; gap: 16px; }
.meta-list dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.meta-list dd { margin: 4px 0 0; font-weight: 500; }

@media (min-width: 1024px) {
    .detail { padding: 88px 0; }
    .detail__grid { grid-template-columns: 1.2fr 1fr; gap: 80px; }
    .detail__body { position: sticky; top: 112px; align-self: start; }
}

/* --------------------------------------------------------------- emendas --- */

.timeline { position: relative; margin: 0; padding: 0 0 0 26px; border-left: 1px solid var(--border); list-style: none; }

.timeline__item { position: relative; padding-bottom: 44px; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 8px;
    width: 13px;
    height: 13px;
    border: 2px solid var(--brand);
    border-radius: 50%;
    background: var(--bg);
}

.timeline__row { display: grid; gap: 16px; }
.timeline__year { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; }
.timeline__empty { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }

.amendment-list { display: flex; flex-direction: column; gap: 14px; }

.amendment-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 0.2s ease;
}
.amendment-card:hover { border-color: rgba(22, 36, 28, 0.28); }

.amendment-card__top { display: flex; flex-direction: column; gap: 14px; }
.amendment-card h3 { font-size: 1.08rem; }
.amendment-card__numbers { margin-top: 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

@media (min-width: 768px) {
    .timeline { padding-left: 40px; }
    .timeline__item::before { left: -47px; }
    .timeline__row { grid-template-columns: 120px 1fr; gap: 40px; }
    .amendment-card { padding: 26px; }
    .amendment-card__top { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 24px; }
}

/* ---------------------------------------------------------- emenda/dados --- */

.data-card { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.data-card h2 { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.data-list { margin: 20px 0 0; }
.data-list__row { padding: 12px 0; border-top: 1px solid var(--border); }
.data-list__row:first-child { border-top: 0; padding-top: 0; }
.data-list dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.data-list dd { margin: 4px 0 0; font-size: 0.95rem; font-weight: 500; }
.data-list dd.is-note { font-weight: 400; color: var(--muted); line-height: 1.65; }

.detail-section { margin-top: 40px; }
.detail-section:first-child { margin-top: 0; }
.detail-section h2 { font-size: 1.3rem; }
.detail-section p { margin-top: 14px; color: var(--muted); line-height: 1.8; }

/* --------------------------------------------------------------- contato --- */

.contact-grid { display: grid; gap: 48px; }

.contact-list { display: flex; flex-direction: column; }
.contact-item { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--border); }
.contact-item:first-child { padding-top: 0; border-top: 0; }
.contact-item:last-child { padding-bottom: 0; }

.contact-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--brand);
}
.contact-item__icon svg { width: 20px; height: 20px; }

.contact-item h2 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.contact-item p, .contact-item address { margin: 8px 0 0; font-style: normal; font-size: 1.02rem; line-height: 1.65; }
.contact-item a:hover { text-decoration: underline; text-underline-offset: 4px; }

.map-card { padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.map-card iframe { display: block; width: 100%; height: 340px; border: 0; border-radius: 2px; }

@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; }
    .map-card iframe { height: 520px; }
}

/* --------------------------------------------------------------- rodapé --- */

.site-footer { background: var(--brand); color: rgba(251, 250, 247, 0.82); }

.site-footer .shell { padding-top: 64px; padding-bottom: 32px; }

.footer-grid { display: grid; gap: 44px; }

.footer-brand img { width: 196px; }
.footer-brand p { margin-top: 22px; max-width: 290px; font-size: 0.9rem; line-height: 1.7; color: rgba(251, 250, 247, 0.7); }

.footer-col h2 { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(251, 250, 247, 0.5); }
.footer-col ul { margin-top: 18px; display: grid; gap: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 52px;
    padding-top: 22px;
    border-top: 1px solid rgba(251, 250, 247, 0.15);
    font-size: 0.78rem;
    color: rgba(251, 250, 247, 0.6);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom a:hover { color: var(--white); }

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
    .site-footer .shell { padding-top: 80px; }
    .footer-grid { grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr; }
}

/* ------------------------------------------------------------------ 404 --- */

.notice { padding: 88px 0; }
.notice h1 { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* --------------------------------------------------------------- ajustes --- */

.history p { color: var(--muted); line-height: 1.8; }
.history p:first-child { margin-top: 0; color: var(--fg); font-size: 1.15rem; line-height: 1.7; }

.split--portrait img { aspect-ratio: 4 / 5; }

.split__copy p + p { margin-top: 16px; }
.split__copy .lead + p { margin-top: 16px; }
.split__copy .history { margin-top: 0; }

.notice { padding: 88px 0; }
.notice h1 { margin-top: 16px; }
