/* =====================================================================
   Fundação Bento Kangamba — Folha de estilos
   Paleta da marca: navy #14254E · azul #1E3A7A · azul claro #5E7CC0
   ===================================================================== */

:root {
  --navy-900: #0E1A36;
  --navy-800: #14254E;
  --navy-700: #1E3A7A;
  --blue-600: #2F4C95;
  --blue-500: #3B5BA5;
  --blue-400: #5E7CC0;
  --blue-200: #A9BBE0;
  --blue-100: #D7E0F2;

  --cream: #ECE7DD;
  --paper: #F7F5EF;
  --white: #FFFFFF;
  --ink: #16203A;
  --muted: #5A6275;
  --line: #E4E1D8;

  --gold: #C9A24B;
  --gold-dark: #B08A36;

  /* Acento — azul da marca */
  --accent: #3B5BA5;
  --accent-dark: #2F4C95;
  --accent-soft: #E7EDF8;

  --maxw: 1200px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 54, .06), 0 6px 16px rgba(14, 26, 54, .06);
  --shadow-md: 0 18px 50px rgba(14, 26, 54, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-script: "Caveat", "Segoe Script", cursive;
  --header-h: 80px;

  /* Marca — coração de duas figuras (motivo recorrente) */
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='49.5 42.5 141 151.5'%3E%3Cg fill='%231E3A7A'%3E%3Cpath d='M119 184 C 95 163, 60 141, 57 107 C 54 80, 78 62, 98 80 C 108 89, 114 108, 119 130 Z'/%3E%3Ccircle cx='83' cy='76' r='23.5'/%3E%3C/g%3E%3Cg fill='%235E7CC0'%3E%3Cpath d='M121 184 C 145 163, 180 141, 183 107 C 186 80, 162 62, 142 80 C 132 89, 126 108, 121 130 Z'/%3E%3Ccircle cx='157' cy='76' r='23.5'/%3E%3C/g%3E%3C/svg%3E");
  --heart-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='49.5 42.5 141 151.5'%3E%3Cg fill='%23FFFFFF'%3E%3Cpath d='M119 184 C 95 163, 60 141, 57 107 C 54 80, 78 62, 98 80 C 108 89, 114 108, 119 130 Z'/%3E%3Ccircle cx='83' cy='76' r='23.5'/%3E%3C/g%3E%3Cg fill='%23A9BBE0'%3E%3Cpath d='M121 184 C 145 163, 180 141, 183 107 C 186 80, 162 62, 142 80 C 132 89, 126 108, 121 130 Z'/%3E%3Ccircle cx='157' cy='76' r='23.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { line-height: 1.14; letter-spacing: -0.02em; color: var(--navy-800); }
h2 {
  font-family: var(--ff-serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08;
  font-size: clamp(2rem, 1rem + 2.9vw, 3.3rem);
}
h3 { font-family: var(--ff-serif); font-weight: 600; font-size: 1.34rem; letter-spacing: -0.01em; }
h4 { font-family: var(--ff-sans); font-weight: 700; font-size: .95rem; }
.ital { font-style: italic; font-weight: 500; color: var(--blue-500); }
.script {
  font-family: var(--ff-script); font-weight: 700; font-style: normal; color: var(--blue-500);
  letter-spacing: 0; line-height: 1; text-transform: none; display: block; margin-bottom: 4px;
  font-size: clamp(1.6rem, 1rem + 1.2vw, 2.1rem);
}
.script--light { color: var(--blue-200); }
p { color: var(--muted); }
section p { max-width: 64ch; }

.eyebrow {
  display: flex; align-items: center; gap: 11px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; flex: none; width: 17px; height: 18px;
  background: var(--heart) center / contain no-repeat;
}
.eyebrow-light { color: var(--blue-200); }
.eyebrow-light::before { background-image: var(--heart-light); }
.center .eyebrow { justify-content: center; }
.section-sub { font-size: 1.08rem; margin-top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .98rem; padding: 14px 26px; border-radius: 999px;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-light { background: #fff; color: var(--navy-800); box-shadow: 0 12px 30px rgba(14, 26, 54, .18); }
.btn-light:hover { background: var(--cream); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
/* Botão do cabeçalho — contorno claro sobre o hero, navy quando o cabeçalho fica sólido */
.site-header.scrolled .btn-header { color: var(--navy-800); border-color: rgba(20, 37, 78, .3); }
.site-header.scrolled .btn-header:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.link-underline {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy-700);
  border-bottom: 2px solid var(--blue-400); padding-bottom: 2px; transition: gap .25s var(--ease), color .25s;
}
.link-underline:hover { gap: 12px; color: var(--accent-dark); border-color: var(--accent); }
.link-underline--light { color: #fff; border-color: var(--blue-400); }
.link-underline--light:hover { color: #fff; border-color: var(--accent); }

/* =====================================================================
   HEADER — transparente sobre o hero, sólido ao fazer scroll
   ===================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(247, 245, 239, .95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(14, 26, 54, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; }
.brand-logo--navy { display: none; }
.site-header.scrolled .brand-logo--white { display: none; }
.site-header.scrolled .brand-logo--navy { display: block; }

.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a {
  font-weight: 600; font-size: .96rem; color: #fff; position: relative; padding: 4px 0;
  text-shadow: 0 1px 8px rgba(14, 26, 54, .35); transition: color .3s;
}
.site-header.scrolled .main-nav a { color: var(--navy-800); text-shadow: none; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--blue-400);
  transition: width .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.site-header.scrolled .nav-toggle span { background: var(--navy-800); }
.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); }

/* ---------- Pesquisa ---------- */
.search-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .2s;
}
.search-toggle svg { width: 18px; height: 18px; }
.search-toggle:hover { transform: scale(1.08); background: rgba(255, 255, 255, .14); border-color: #fff; }
.site-header.scrolled .search-toggle { color: var(--navy-800); border-color: rgba(20, 37, 78, .25); }
.site-header.scrolled .search-toggle:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.search-modal { position: fixed; inset: 0; z-index: 300; }
.search-modal[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(14, 26, 54, .55); backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.search-panel {
  position: relative; width: min(680px, 92vw); margin: clamp(70px, 12vh, 140px) auto auto;
  background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(14, 26, 54, .35);
  overflow: hidden; animation: pop .3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
.search-bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-bar-icon { width: 22px; height: 22px; color: var(--blue-500); flex: none; }
#search-input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1.1rem; font-family: inherit; color: var(--ink); background: transparent; }
#search-input::placeholder { color: #9aa0ad; }
.search-close { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--cream); color: var(--navy-800); cursor: pointer; transition: background .2s, color .2s; flex: none; }
.search-close svg { width: 15px; height: 15px; }
.search-close:hover { background: var(--accent); color: #fff; }
.search-results { max-height: min(52vh, 420px); overflow-y: auto; }
.search-results a {
  display: flex; align-items: baseline; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line);
  transition: background .18s;
}
.search-results a:hover, .search-results a.is-active { background: var(--accent-soft); }
.search-results .res-tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-dark); flex: none; min-width: 92px; padding-top: 4px; }
.search-results .res-body strong { display: block; font-family: var(--ff-serif); font-weight: 600; color: var(--navy-800); font-size: 1.06rem; }
.search-results .res-body span { font-size: .9rem; color: var(--muted); }
.search-results mark { background: var(--accent-soft); color: var(--accent-dark); border-radius: 3px; padding: 0 2px; }
.search-hint { padding: 20px 18px; color: var(--muted); font-size: .92rem; text-align: center; }

/* =====================================================================
   HERO — fotografia com título sobreposto (estilo editorial)
   ===================================================================== */
.hero { background: var(--navy-800); padding-top: var(--header-h); }
.hero .container { padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(28px, 4vw, 48px); }
.hero-figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-slides { position: relative; width: 100%; height: clamp(440px, 64vh, 660px); }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
  opacity: 0; transition: opacity 1.1s var(--ease); will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-dots {
  position: absolute; right: clamp(20px, 4vw, 42px); bottom: clamp(20px, 4vw, 42px); z-index: 3;
  display: flex; gap: 9px;
}
.hero-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .45); transition: background .25s, transform .25s;
}
.hero-dots button:hover { background: rgba(255, 255, 255, .8); }
.hero-dots button.is-active { background: #fff; transform: scale(1.3); }
.hero-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(to top, rgba(14, 26, 54, .9) 0%, rgba(14, 26, 54, .6) 42%, rgba(14, 26, 54, .15) 74%);
}
.hero-title {
  color: #fff; font-size: clamp(2.4rem, 1rem + 6vw, 5rem); font-weight: 900; letter-spacing: -0.035em;
  text-transform: uppercase; line-height: .96; max-width: 16ch;
}
.hero-lead { color: var(--blue-100); font-size: clamp(1.02rem, .9rem + .6vw, 1.28rem); max-width: 52ch; margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Animação de abertura: a imagem "abre" do centro até ao tamanho normal */
@keyframes heroOpen {
  from { clip-path: inset(47% 0 47% 0 round var(--radius-lg)); }
  to   { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
}
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-figure { animation: heroOpen 1.2s var(--ease) .12s both; }
.hero-overlay > * { opacity: 0; animation: heroRise .7s var(--ease) both; }
.hero-overlay .eyebrow { animation-delay: .58s; }
.hero-overlay .hero-title { animation-delay: .7s; }
.hero-overlay .hero-lead { animation-delay: .88s; }
.hero-overlay .hero-cta { animation-delay: 1.02s; }

/* =====================================================================
   SECÇÕES GERAIS
   ===================================================================== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--cream { background: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }

/* ---------- Missão (editorial) ---------- */
.mission { position: relative; overflow: hidden; background: var(--paper); padding: clamp(72px, 10vw, 130px) 0; text-align: center; }
.mission::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(640px, 92vw); aspect-ratio: 141 / 151.5;
  background: var(--heart) center / contain no-repeat; opacity: .06; z-index: 0; pointer-events: none;
}
.mission .container { position: relative; z-index: 1; }
.mission .eyebrow { display: inline-flex; }
.mission-text {
  font-family: var(--ff-serif); font-weight: 400; font-size: clamp(1.7rem, 1rem + 3vw, 3.1rem);
  line-height: 1.22; letter-spacing: -0.01em; color: var(--navy-800); margin: 0 auto 32px;
}
.mission-text em { font-style: italic; color: var(--blue-500); }

/* ---------- Split (imagem + texto) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 76px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-body h2 { margin-bottom: 18px; }
.split-body p + p { margin-top: 16px; }
.media-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.media-img--portrait { aspect-ratio: 4 / 4.4; object-position: center 20%; max-width: 460px; }
.media-img--organic { border-radius: 30px 96px 30px 96px; }
.human { background: var(--cream); }

/* ---------- Áreas / pilares ---------- */
.cards-grid { display: grid; gap: 24px; }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Cartões "Mais sobre a Fundação" (imagem + título + link) */
.about-card { display: flex; flex-direction: column; }
.about-img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius);
  margin-bottom: 20px; transition: transform .4s var(--ease), box-shadow .4s;
}
.about-card:hover .about-img { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.about-card h3 { color: var(--navy-800); margin-bottom: 10px; }
.about-card p { font-size: .98rem; margin-bottom: 14px; }
.about-card .link-underline { align-self: flex-start; font-size: .92rem; }
.pillar {
  position: relative; padding-top: 26px; border-top: 2px solid var(--navy-800);
  transition: border-color .3s;
}
.pillar:hover { border-top-color: var(--accent); }
.pillar:hover .pillar-num { color: var(--accent); }
.pillar-num {
  display: block; font-family: var(--ff-serif); font-weight: 600; font-size: .92rem;
  color: var(--blue-400); letter-spacing: .05em;
}
.pillar-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-100); color: var(--navy-700); margin: 16px 0 18px;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.pillar:hover .pillar-icon { background: var(--navy-700); color: #fff; transform: translateY(-3px); }
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: .98rem; }

/* ---------- Feature (Benguela) ---------- */
.feature-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0 26px;
  border-top: 1px solid var(--line); padding-top: 26px;
}
.feature-stats b { display: block; font-family: var(--ff-serif); font-weight: 600; font-size: clamp(1.7rem, 1rem + 1.6vw, 2.4rem); color: var(--navy-800); line-height: 1; }
.feature-stats span { display: block; font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* =====================================================================
   GALERIA
   ===================================================================== */
.gallery { background: var(--navy-900); color: #fff; }
.gallery h2 { color: #fff; }
.gallery-note { color: var(--blue-200); font-size: .92rem; align-self: flex-end; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 16px 14px; color: #fff; font-size: .82rem; font-weight: 600;
  background: linear-gradient(to top, rgba(14, 26, 54, .85), rgba(14, 26, 54, 0));
}

/* =====================================================================
   IMPACTO (banda navy)
   ===================================================================== */
.impact { background: var(--navy-800); color: #fff; }
.impact h2 { color: #fff; }
.impact-note { color: var(--blue-200); font-size: .92rem; align-self: flex-end; }
.stats-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  border-top: 1px solid rgba(169, 187, 224, .22); padding-top: 44px;
}
.stats-row dt {
  font-family: var(--ff-serif); font-weight: 600; font-size: clamp(2rem, 1rem + 2.6vw, 3.2rem);
  color: #fff; line-height: 1;
}
.stats-row dd { color: var(--blue-200); margin-top: 10px; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }

/* =====================================================================
   FUNDADOR
   ===================================================================== */
.founder { background: var(--cream); }
.founder-quote {
  font-family: var(--ff-serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.2rem); line-height: 1.3; color: var(--navy-800); margin-bottom: 22px;
}
.founder-sign { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; }
.founder-sign strong { color: var(--navy-800); font-size: 1.05rem; }
.founder-sign span { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }

/* =====================================================================
   HISTORIAL DE SOLIDARIEDADE — cartões
   ===================================================================== */
.causes { background: var(--paper); }
.cause-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s;
}
.cause-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cause-media { position: relative; aspect-ratio: 16 / 10; }
.cause-media img { width: 100%; height: 100%; object-fit: cover; }
.cause-badge {
  position: absolute; left: 16px; top: 16px; background: #fff; color: var(--navy-800);
  font-weight: 700; font-size: .82rem; letter-spacing: .01em; padding: 7px 15px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(14, 26, 54, .28);
}
.cause-body { padding: 22px 24px 26px; }
.cause-body h3 { color: var(--navy-800); margin-bottom: 10px; }
.cause-body p { font-size: .96rem; }

/* =====================================================================
   EMPREENDEDORISMO JOVEM — editorial (imagem orgânica + manuscrito)
   ===================================================================== */
.youth { background: #fff; }
.youth .split { align-items: center; }
.youth-body { text-align: center; }
.youth-body p { margin-inline: auto; }
.youth-script {
  font-family: var(--ff-script); font-weight: 700; font-style: normal; color: var(--navy-800);
  font-size: clamp(2.7rem, 1rem + 5.4vw, 4.6rem); line-height: .9; letter-spacing: 0;
  text-transform: none; margin-bottom: 22px;
}
.youth-body .btn { margin-top: 30px; }
.media-img--leaf { border-radius: 30px 150px 60px 30px; }

/* =====================================================================
   NEWSLETTER
   ===================================================================== */
.newsletter { background: var(--blue-400); color: var(--navy-900); }
.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(44px, 6vw, 72px) 24px;
}
.newsletter-text h2 { color: var(--navy-900); }
.newsletter-text p { color: var(--navy-800); margin-top: 8px; opacity: .85; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter-form input {
  flex: 1; min-width: 220px; padding: 14px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 1rem; background: #fff; color: var(--ink);
}
.newsletter-form input:focus { outline: 3px solid rgba(14, 26, 54, .25); outline-offset: 1px; }
.form-msg { flex-basis: 100%; font-weight: 600; font-size: .92rem; color: var(--navy-900); min-height: 1em; }
.form-msg.error { color: #7a1326; }

/* =====================================================================
   CTA APOIAR
   ===================================================================== */
.cta-band {
  background: linear-gradient(150deg, var(--navy-800), var(--blue-600)); color: #fff;
  padding: clamp(64px, 9vw, 120px) 0; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: var(--blue-100); margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--navy-900); color: var(--blue-100); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(169, 187, 224, .15);
}
.footer-logo { height: 42px; margin-bottom: 18px; }
.footer-brand .footer-tagline {
  font-family: var(--ff-serif); font-style: italic; font-weight: 500; font-size: 1.4rem;
  color: #fff; max-width: none; margin: 2px 0 14px; line-height: 1.2;
}
.footer-brand p { color: var(--blue-200); font-size: .96rem; max-width: 38ch; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(169, 187, 224, .3); color: var(--blue-100); transition: background .25s, color .25s, transform .25s;
}
.socials a:hover { background: #fff; color: var(--navy-900); border-color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-col h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--blue-200); padding: 6px 0; font-size: .96rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact p { color: var(--blue-200); font-size: .96rem; padding: 6px 0; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 28px 24px; font-size: .88rem; color: var(--blue-200);
}
.footer-legal a:hover { color: #fff; }

/* =====================================================================
   REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 1024px) {
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  :root { --header-h: 64px; }
  .brand-logo { height: 34px; }
  .main-nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px 24px;
    transform: translateY(-150%); transition: transform .35s var(--ease); box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--navy-800); text-shadow: none; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .cards-grid--3 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .media-img--portrait { max-width: 380px; }
  .media-img--leaf { border-radius: 24px 80px 40px 24px; }
  .feature-stats { gap: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head--row { align-items: flex-start; }
  .newsletter-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .cards-grid--4 { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .feature-stats { grid-template-columns: 1fr; text-align: left; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .btn { width: 100%; }
  .hero-cta, .cta-band .hero-cta { flex-direction: column; }
  .header-actions .btn { width: auto; }
  .btn-header { display: none; }
  .hero-slides { height: 78vh; min-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .gallery-item:hover img { transform: none; }
  .hero-figure, .hero-overlay > * { animation: none !important; opacity: 1 !important; clip-path: none !important; transform: none !important; }
}

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