/* ============================================================
   main.css — APTIAF · Associação de Protecção à Terceira Idade
   António Ferreira Vila Cova (IPSS)
   Design: institucional, quente, acessível.
   Tipografia: Fraunces (títulos) + Inter (texto)
   ============================================================ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Marca */
    --brand:      #A82B26;
    --brand-700:  #861F1B;
    --brand-900:  #5E1411;
    --brand-50:   #FBEDEC;
    --brand-100:  #F6DDDB;

    /* Acento dourado (calor / instituição) */
    --gold:       #B97C2A;
    --gold-700:   #8F5E1C;
    --gold-50:    #F8EFDF;

    /* Neutros quentes */
    --ink:        #2A211F;
    --ink-soft:   #4A3F3B;
    --muted:      #6E615C;
    --sand:       #FBF7F2;
    --sand-200:   #F3ECE3;
    --surface:    #FFFFFF;
    --line:       #ECE2D7;
    --line-strong:#DDCFC0;

    /* Forma */
    --r:      16px;
    --r-sm:   11px;
    --r-pill: 999px;
    --shadow-sm: 0 2px 8px -3px rgba(70,40,30,.18);
    --shadow:    0 10px 30px -12px rgba(70,40,30,.22);
    --shadow-lg: 0 24px 50px -18px rgba(70,40,30,.30);

    --font:      'Inter', system-ui, -apple-system, sans-serif;
    --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;

    --container: 1160px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

body {
    font-family: var(--font);
    font-size: 17px;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-700); }

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

/* Tamanho-base de ícones inline (selectores específicos abaixo sobrepõem) */
svg { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.16em; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
    font-optical-sizing: auto;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* ── Container ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* ── Topbar ── */
.topbar {
    background: var(--brand-900);
    color: #F4E7E2;
    font-size: 13.5px;
    padding: 8px 0;
}
.topbar__inner { display: flex; gap: 26px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__inner a { color: #F4E7E2; }
.topbar__inner a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }

/* ── Header ── */
.site-header {
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 16px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo__img { height: 50px; width: auto; }

/* Nav */
.site-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 15px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    border-radius: var(--r-pill);
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nav-link:hover, .nav-link:focus, .nav-link.is-active {
    background: var(--brand-50); color: var(--brand-700);
}
.nav-link svg { width: 15px; height: 15px; }
.nav-link--cta {
    background: var(--brand);
    color: #fff !important;
    padding: 10px 20px;
    box-shadow: var(--shadow-sm);
}
.nav-link--cta:hover { background: var(--brand-700); }

/* Dropdown */
.nav-item--dropdown { position: relative; }
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow);
    min-width: 240px;
    list-style: none;
    padding: 8px;
    z-index: 200;
}
.dropdown::before {
    content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.dropdown li a {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--ink-soft);
    border-radius: 8px;
    transition: background .12s, color .12s;
}
.dropdown li a:hover { background: var(--brand-50); color: var(--brand-700); }
.dropdown__divider { border-top: 1px solid var(--line); margin: 6px 4px; }
.nav-item--dropdown:hover .dropdown,
.nav-item--dropdown:focus-within .dropdown { display: block; }

/* Hamburger */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .25s; }
.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); }

/* ── Botões ── */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 28px;
    border-radius: var(--r-pill);
    font-family: var(--font);
    font-weight: 600; font-size: 16px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .15s, background .15s, box-shadow .15s, border-color .15s, color .15s;
    text-decoration: none;
    line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--white { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); }
.btn--white:hover { background: #fff; color: var(--brand-900); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }
.btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ── HERO Homepage (foto + scrim) ── */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: var(--brand-900);
}
.hero__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    z-index: 0;
}
.hero__scrim {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(94,20,17,.92) 0%, rgba(94,20,17,.78) 42%, rgba(94,20,17,.30) 78%, rgba(94,20,17,.12) 100%),
        linear-gradient(180deg, rgba(40,8,7,.20), rgba(40,8,7,.45));
}
.hero__inner {
    position: relative; z-index: 2;
    padding: 92px 0 96px;
    max-width: 640px;
}
.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    padding: 7px 16px; border-radius: var(--r-pill);
    margin-bottom: 22px;
    backdrop-filter: blur(4px);
}
.hero__badge svg { width: 14px; height: 14px; }
.hero__title { font-size: clamp(34px, 5.4vw, 58px); font-weight: 600; line-height: 1.04; color: #fff; }
.hero__title em { font-style: italic; color: #F7D9A6; }
.hero__sub { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.92); max-width: 540px; margin: 22px 0 34px; line-height: 1.6; }
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── HERO de página interna (faixa fotográfica) ── */
.page-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: var(--brand-900);
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero__scrim {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(94,20,17,.90) 0%, rgba(94,20,17,.72) 55%, rgba(94,20,17,.45) 100%);
}
.page-hero--plain { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-900) 100%); }
.page-hero--dark { background: #241E1C; }
.page-hero--dark .page-hero__scrim { background: linear-gradient(90deg, rgba(28,24,22,.90) 0%, rgba(28,24,22,.72) 55%, rgba(28,24,22,.42) 100%); }
.page-hero__inner { position: relative; z-index: 2; padding-top: 68px; padding-bottom: 60px; }
.page-hero__breadcrumb { font-size: 14px; color: rgba(255,255,255,.82); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.page-hero__breadcrumb a { color: rgba(255,255,255,.82); }
.page-hero__breadcrumb svg { width: 15px; height: 15px; }
.page-hero__breadcrumb a:hover { color: #fff; }
.page-hero__title { font-size: clamp(30px, 4.6vw, 46px); color: #fff; }
.page-hero__sub { margin-top: 12px; font-size: 18px; color: rgba(255,255,255,.9); max-width: 620px; }

/* ── Secções ── */
.section { padding: 92px 0; }
.section--sand { background: var(--sand); }
.section--sand-200 { background: var(--sand-200); }
.section--brand {
    background: linear-gradient(120deg, var(--brand) 0%, var(--brand-900) 100%);
    color: #fff;
}
.section--ink { background: #201917; color: #EFE7E2; }
.section--tight { padding: 64px 0; }
.section__header { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__header--left { margin-left: 0; text-align: left; }
.section__tag {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--brand); font-size: 13px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}
.section__tag::before { content: ''; width: 26px; height: 2px; background: var(--gold); display: inline-block; border-radius: 2px; }
.section--brand .section__tag, .section--ink .section__tag { color: #F7D9A6; }
.section--brand .section__tag::before { background: rgba(255,255,255,.6); }
.section__title { font-size: clamp(28px, 3.8vw, 40px); }
.section--brand .section__title, .section--ink .section__title { color: #fff; }
.section__sub { color: var(--muted); margin-top: 14px; font-size: 18px; }
.section--brand .section__sub { color: rgba(255,255,255,.88); }

/* ── Cards de valências ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.card {
    background: #fff;
    border-radius: var(--r);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 32px 30px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card__icon {
    width: 56px; height: 56px;
    background: var(--brand-50);
    color: var(--brand);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.card--gold .card__icon { background: var(--gold-50); color: var(--gold-700); }
.card__title { font-size: 21px; margin-bottom: 9px; }
.card__text { font-size: 15.5px; color: var(--muted); line-height: 1.65; }
.card__link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.card__link svg { width: 16px; height: 16px; transition: transform .15s; }
.card:hover .card__link svg { transform: translateX(3px); }

/* ── Sobre (homepage) ── */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.about-text h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 18px; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.75; font-size: 17px; }
.about-media { position: relative; }
.about-media__img { border-radius: var(--r); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-media__badge {
    position: absolute; left: -24px; bottom: -24px;
    background: #fff; border-radius: var(--r); box-shadow: var(--shadow);
    padding: 18px 22px; border: 1px solid var(--line);
    display: flex; align-items: center; gap: 14px;
}
.about-media__badge .num { font-family: var(--font-head); font-size: 40px; font-weight: 600; color: var(--brand); line-height: 1; }
.about-media__badge .lbl { font-size: 14px; color: var(--muted); line-height: 1.3; max-width: 120px; }

.about-stats { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.stat {
    flex: 1; min-width: 120px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 18px 20px;
}
.stat__num { font-family: var(--font-head); font-size: 34px; font-weight: 600; color: var(--brand); line-height: 1; }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ── Documentos / Lista de PDFs ── */
.doc-list { display: flex; flex-direction: column; gap: 14px; }
.doc-item {
    display: flex; align-items: center; gap: 18px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .18s, border-color .18s, transform .18s;
}
.doc-item:hover { box-shadow: var(--shadow); border-color: var(--brand-100); transform: translateY(-2px); }
.doc-item__file {
    flex-shrink: 0; width: 46px; height: 46px;
    background: var(--brand-50); color: var(--brand);
    border-radius: 11px; display: flex; align-items: center; justify-content: center;
}
.doc-item__file svg { width: 24px; height: 24px; }
.doc-item__info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.doc-item__title { font-weight: 600; font-size: 16.5px; color: var(--ink); font-family: var(--font); }
.doc-item__meta { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.doc-item__tag {
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 3px 9px; border-radius: var(--r-pill);
    background: var(--gold-50); color: var(--gold-700);
}
.doc-item__tag--conta { background: var(--brand-50); color: var(--brand-700); }
.doc-item__btn {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; color: var(--brand-700);
    border: 1.5px solid var(--line-strong);
    padding: 9px 16px; border-radius: var(--r-pill);
    font-size: 14px; font-weight: 600; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.doc-item__btn svg { width: 16px; height: 16px; }
.doc-item__btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.doc-empty {
    padding: 56px 24px; text-align: center; color: var(--muted);
    background: var(--sand); border: 1px dashed var(--line-strong); border-radius: var(--r);
}
.doc-empty svg { width: 40px; height: 40px; color: var(--line-strong); margin: 0 auto 12px; }

/* Arquivo por ano (acordeão) */
.year-group { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.year-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; background: #fff; border: none; cursor: pointer;
    font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--ink);
}
.year-head:hover { background: var(--sand); }
.year-head__count { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); background: var(--sand-200); padding: 4px 12px; border-radius: var(--r-pill); margin-left: auto; margin-right: 14px; }
.year-head__chev { transition: transform .25s; color: var(--brand); width: 24px; height: 24px; }
.year-group.is-open .year-head__chev { transform: rotate(180deg); }
.year-body { padding: 0 16px 16px; display: none; }
.year-group.is-open .year-body { display: block; }
.year-body .doc-item { box-shadow: none; border-color: var(--line); }

/* ── Página de conteúdo (texto) ── */
.content-page { padding: 80px 0; }
.content-prose { max-width: 760px; margin: 0 auto; font-size: 18px; }
.content-prose h2 { font-size: 28px; margin: 40px 0 14px; color: var(--ink); }
.content-prose h2:first-child { margin-top: 0; }
.content-prose h3 { font-size: 22px; margin: 28px 0 10px; color: var(--brand-700); }
.content-prose p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 18px; }
.content-prose ul, .content-prose ol { margin: 0 0 20px 22px; }
.content-prose li { margin-bottom: 10px; color: var(--ink-soft); line-height: 1.7; }
.content-prose ul li::marker { color: var(--gold); }
.content-prose strong { color: var(--ink); }
.content-prose blockquote {
    border-left: 4px solid var(--gold); background: var(--gold-50);
    padding: 16px 22px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 22px 0;
    font-family: var(--font-head); font-size: 20px; font-style: italic; color: var(--ink-soft);
}

/* Timeline (história) */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item::before { content: ''; position: absolute; left: -34px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand-100); }
.timeline__year { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--brand-700); }
.timeline__text { color: var(--ink-soft); margin-top: 4px; }

/* ── Valências (página detalhada) ── */
.valencia { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.valencia:last-child { border-bottom: none; }
.valencia__icon { width: 64px; height: 64px; background: var(--brand-50); color: var(--brand); border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.valencia__icon svg { width: 32px; height: 32px; stroke-width: 1.6; }
.valencia__title { font-size: 24px; margin-bottom: 4px; }
.valencia__age { display: inline-block; font-size: 13px; font-weight: 600; color: var(--gold-700); background: var(--gold-50); padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 12px; }
.valencia__body p { color: var(--ink-soft); margin-bottom: 12px; line-height: 1.7; }
.valencia__body ul { margin: 0 0 8px 20px; }
.valencia__body li { color: var(--ink-soft); margin-bottom: 7px; }
.valencia__body li::marker { color: var(--gold); }

/* ── Investimentos (cards de projeto) ── */
.invest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 26px; align-items: start; }
.invest-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.invest-card__top { padding: 28px 28px 0; }
.invest-card__badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-700); background: var(--gold-50); padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 14px; }
.invest-card__title { font-size: 22px; margin-bottom: 10px; }
.invest-card__desc { color: var(--muted); font-size: 15.5px; line-height: 1.6; padding: 0 28px 20px; }
.invest-card__facts { margin-top: auto; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.invest-fact { padding: 16px 20px; }
.invest-fact:nth-child(odd) { border-right: 1px solid var(--line); }
.invest-fact:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--line); }
.invest-fact__label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.invest-fact__value { font-family: var(--font-head); font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 3px; word-break: break-word; }
.invest-card__logos { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 18px 26px; border-top: 1px solid var(--line); background: var(--sand); }
.invest-card__logos img { height: 30px; width: auto; opacity: .92; }

/* ── Contactos ── */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.contact-form-card,
.contact-info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 36px; box-shadow: var(--shadow-sm); }
.contact-info-card { background: var(--sand); }
.contact-block__title { font-size: 22px; margin-bottom: 6px; }
.contact-block__intro { color: var(--muted); font-size: 15.5px; margin-bottom: 24px; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.contact-form input,
.contact-form textarea {
    width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
    background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.contact-form input.is-error,
.contact-form textarea.is-error { border-color: var(--brand); background: var(--brand-50); }
.field-error { font-size: 12.5px; color: var(--brand-700); }
.contact-submit { align-self: flex-start; margin-top: 4px; }
.contact-form__note { font-size: 12.5px; color: var(--muted); margin: 0; }

/* Honeypot — escondido de humanos, visível a bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Alerta de sucesso */
.contact-alert { display: flex; gap: 13px; align-items: flex-start; border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 22px; font-size: 15px; line-height: 1.5; }
.contact-alert svg { width: 24px; height: 24px; flex-shrink: 0; }
.contact-alert--ok { background: #EAF6EC; border: 1px solid #BFE3C6; color: #1F5B2C; }
.contact-alert--ok svg { color: #2E7D3A; }

/* Info */
.contact-item { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item__icon { flex-shrink: 0; width: 42px; height: 42px; background: var(--brand-50); color: var(--brand); border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.contact-item__icon svg { width: 21px; height: 21px; }
.contact-item__label { font-size: 13px; color: var(--muted); }
.contact-item__value { font-size: 16.5px; color: var(--ink); font-weight: 500; line-height: 1.5; }
.contact-item__value a { color: var(--ink); }
.contact-item__value a:hover { color: var(--brand); }

/* Mapa */
.contact-map { margin-top: 28px; }
.contact-map iframe { width: 100%; height: 380px; border-radius: var(--r); border: 1px solid var(--line); display: block; }

/* ── CTA band ── */
.cta-band { text-align: center; }
.cta-band__title { font-size: clamp(28px, 4vw, 40px); color: #fff; max-width: 700px; margin: 0 auto 14px; }
.cta-band__sub { color: rgba(255,255,255,.9); font-size: 18px; max-width: 560px; margin: 0 auto 30px; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Faixa de documentos recentes (home) ── */
.docs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.docs-col h3 { font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.docs-col h3 svg { width: 22px; height: 22px; color: var(--brand); }

/* ── Footer ── */
.funding {
    background: #fff; border-top: 1px solid var(--line);
    padding: 26px 0;
}
.funding__inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.funding img { height: 38px; width: auto; opacity: .9; filter: saturate(.9); }
.funding__note { width: 100%; text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.site-footer { background: #201917; color: #C9BDB6; padding: 64px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 44px; }
.footer-logo { height: 50px; width: auto; margin-bottom: 16px; }
.footer-about { font-size: 14.5px; line-height: 1.7; color: #B6A89F; }
.footer-title { font-family: var(--font); font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14.5px; color: #B6A89F; }
.footer-links a:hover { color: #fff; }
.footer-address { font-size: 14.5px; line-height: 1.9; font-style: normal; color: #B6A89F; }
.footer-address a { color: #B6A89F; }
.footer-address a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #3A302C; padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: #8A7D75; }

/* ── Utilitários ── */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.center-btn { display: flex; justify-content: center; margin-top: 44px; }

/* ── Responsive ── */
@media (max-width: 980px) {
    .about-grid { grid-template-columns: 1fr; gap: 44px; }
    .about-media { max-width: 460px; margin: 0 auto; }
    .contact-layout { grid-template-columns: 1fr; gap: 20px; }
    .contact-info-card { order: -1; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-card, .contact-info-card { padding: 24px; }
    .contact-submit { align-self: stretch; justify-content: center; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .docs-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .topbar { display: none; }
    .nav-toggle { display: flex; }
    .site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
        padding: 10px 0; max-height: 80vh; overflow-y: auto;
    }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link { border-radius: 0; padding: 14px 24px; font-size: 16px; }
    .nav-link--cta { margin: 8px 24px; border-radius: var(--r-pill); justify-content: center; }
    .dropdown { display: block; position: static; border: none; box-shadow: none; background: var(--sand); border-radius: 0; padding: 0; }
    .dropdown li a { padding-left: 40px; }
    .hero__inner { padding: 64px 0; }
    .site-header__inner { padding-top: 11px; padding-bottom: 11px; }
    .site-logo__img { height: 38px; }
    .hero__badge { font-size: 10.5px; letter-spacing: .05em; padding: 7px 13px; }
    .hero__btns { width: 100%; }
    .hero__btns .btn { flex: 1 1 100%; justify-content: center; }
    .section { padding: 60px 0; }
    .about-media__badge { left: 12px; bottom: -20px; }
    .invest-grid, .cards-grid { grid-template-columns: 1fr; }
    .valencia { grid-template-columns: 52px 1fr; gap: 16px; }
    .valencia__icon { width: 52px; height: 52px; }
    .about-stats { gap: 12px; }
    .about-stats .stat { flex: 1 1 calc(50% - 6px); min-width: 0; }
    .doc-item { flex-wrap: wrap; }
    .doc-item__btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .funding__inner { gap: 26px; }
    .funding img { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .btn:hover, .card:hover, .doc-item:hover { transform: none; }
}
