/* ============================================================================
   Entre Rios — site.css
   Sistema visual institucional. Cormorant Garamond + Inter.
   Paleta sóbria: off-white quente, sálvia, areia, atlântico, ink.
   ============================================================================ */

:root {
  /* New palette derived from the ERVR brand logo
     (deep marine blue + soft lavender + warm off-white) */
  --bg: #faf8f3;
  --bg-alt: #eef0f7;          /* soft lavender wash, derived from logo square */
  --bg-deep: #dce1ed;
  --ink: #1a2230;              /* near-black with a marine tint */
  --ink-soft: #424b5a;
  --ink-faint: #8089a0;

  /* Primary (logo "VILLAS & RESORTS" navy) */
  --primary: #1B4A8E;
  --primary-deep: #0F3268;
  --primary-soft: #4870A8;
  --primary-bg: #A9B0D9;       /* exact lavender from the logo square */

  /* Secondary / sustainability (kept for credibility on conservation copy) */
  --sage: #5e6f53;
  --sage-deep: #3e4c37;
  --sage-soft: #8aa07c;

  /* Warm accents */
  --sand: #c9b896;
  --sand-soft: #e6dcc0;
  --gold: #b89554;

  /* Atlantic (still used for water-related visual touches) */
  --atlantic: #2d4a5c;
  --atlantic-deep: #1d3340;

  --line: #d8d2c2;
  --line-soft: #ebe6d8;
  --danger: #8a3a2a;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --maxw-prose: 720px;
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-section: clamp(72px, 11vh, 130px);

  --rad: 2px;
  --shadow-sm: 0 1px 2px rgba(31, 38, 32, 0.04);
  --shadow-md: 0 6px 24px rgba(31, 38, 32, 0.06);

  --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }

/* ---- Typography ----------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); margin-bottom: 0.6rem; }
h4 { font-size: 0.78rem; font-family: var(--sans); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.9rem; }
em { font-style: italic; }

p { margin-bottom: 1rem; color: var(--ink-soft); max-width: 65ch; }
p.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink); margin-bottom: 1.4rem; }
p.lead-large { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-family: var(--serif); font-weight: 400; line-height: 1.4; color: var(--ink); }
.muted { color: var(--ink-faint); }

a { color: inherit; text-decoration: none; transition: color 0.18s var(--easing); }
.prose a {
  color: var(--primary-deep);
  text-decoration: underline;
  text-decoration-color: var(--sand);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--atlantic); text-decoration-color: var(--atlantic); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: '·'; margin-right: 0.5em; color: var(--ink-faint); }

/* Drop cap reusable */
.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  float: left;
  line-height: 0.9;
  padding: 0.08em 0.12em 0 0;
  color: var(--primary-deep);
  font-weight: 500;
}

/* ---- Layout primitives ---------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.wrap-prose { max-width: var(--maxw-prose); margin: 0 auto; padding: 0 var(--pad-x); }

section {
  padding: var(--pad-section) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
section.no-border { border-top: none; }
section.banded { background: var(--bg-alt); border-top: none; }
section.deep { background: var(--primary-deep); color: var(--bg); border-top: none; }
section.deep h2, section.deep h3 { color: var(--bg); }
section.deep p { color: rgba(250, 247, 240, 0.78); }
section.deep .eyebrow { color: var(--sand); }
section.deep .muted { color: rgba(250, 247, 240, 0.55); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.two-col .col-side h2 { position: sticky; top: 100px; }
.two-col .col-side .eyebrow { display: block; }

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  z-index: 200;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.skip-link:focus { top: 0; outline: 2px solid var(--sand); }

/* ---- Header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--easing), background-color 0.3s var(--easing);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
}
.logo-mark { width: 28px; height: 28px; color: var(--primary); flex-shrink: 0; }
.logo-word { font-size: 1.35rem; letter-spacing: 0.02em; line-height: 1; }
.logo-word-accent { color: var(--primary); margin-left: 0.18em; }

/* ERVR logo (img) */
.logo--ervr { padding: 6px 0; }
.logo--ervr img { display: block; height: 110px; width: auto; transition: height 0.25s ease; }
@media (max-width: 920px) {
  .logo--ervr img { height: 84px; }
}
@media (max-width: 720px) {
  .logo--ervr img { height: 64px; }
}
/* Header is taller now to accommodate larger logo */
.site-header .header-inner { padding-top: 18px; padding-bottom: 18px; }

.nav-main {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  letter-spacing: 0.01em;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--primary);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-left: 8px;
}
.lang a { padding: 4px 4px; color: inherit; }
.lang a.is-active { color: var(--ink); }
.lang a:hover { color: var(--primary); }
.lang span { color: var(--ink-faint); user-select: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s var(--easing), opacity 0.2s var(--easing);
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  border-top: none;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(94, 111, 83, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(201, 184, 150, 0.14), transparent 65%);
}
.hero-bg-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}
.hero-content { max-width: 880px; position: relative; }
.hero h1 { margin: 0.4rem 0 1.6rem; }
.hero h1 em { font-style: italic; color: var(--primary-deep); font-weight: 400; }
.hero p.lead { max-width: 600px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); margin-bottom: 2.5rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4.5vw, 56px);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero-meta .num {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  color: var(--primary-deep);
  font-weight: 500;
  line-height: 1.05;
}
.hero-meta .lab {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* ============ PHOTO BAND ============
   Banner panorâmico de fotografia, full-width, sem padding lateral.
   Aspect-ratio mantém proporções em todos os tamanhos.
   Tem altura mínima como fallback caso aspect-ratio falhe.
   Não usa fade-in para garantir visibilidade imediata. */
.photo-band {
  position: relative;
  width: 100%;
  aspect-ratio: 2400 / 1080;
  min-height: 320px;
  overflow: hidden;
  background: var(--primary-bg);  /* lavender fallback if image fails */
  margin: 0;                       /* override figure default */
  display: block;
  opacity: 1;
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-band .photo-band-caption {
  position: absolute;
  bottom: 1.2rem;
  right: 1.4rem;
  margin: 0;
  color: rgba(250, 247, 240, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
  max-width: none;
  background: rgba(15, 50, 104, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 2px;
}
.photo-band .photo-band-caption a {
  color: inherit;
  border-bottom: 1px solid rgba(250, 247, 240, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.18s var(--easing);
}
.photo-band .photo-band-caption a:hover { border-color: var(--gold, #b89554); }
@media (max-width: 720px) {
  .photo-band { aspect-ratio: 4 / 5; min-height: 380px; }
  .photo-band .photo-band-caption { font-size: 0.66rem; bottom: 0.8rem; right: 0.8rem; left: 0.8rem; text-align: right; }
}

/* ============ GALLERY GRID ============
   Grid de fotografias com filtros por categoria e legendas + créditos visíveis. */
.gallery-wrap { margin-top: 2.5rem; }
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.gallery-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 7px 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s var(--easing);
  border-radius: 999px;
}
.gallery-filter:hover { color: var(--ink); border-color: var(--ink); }
.gallery-filter.is-active {
  background: var(--primary, #1B4A8E);
  color: #fff;
  border-color: var(--primary, #1B4A8E);
}
.gallery-filter .count {
  font-size: 0.7em;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--primary-bg, #A9B0D9);
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--easing);
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item:hover {
  box-shadow: 0 12px 32px rgba(15, 50, 104, 0.18);
}
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1rem 0.8rem;
  background: linear-gradient(to top, rgba(15, 50, 104, 0.85), rgba(15, 50, 104, 0));
  color: rgba(250, 247, 240, 0.96);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
  pointer-events: none;
  max-width: none;
}
.gallery-item .gallery-credit {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
  pointer-events: auto;
}
.gallery-item .gallery-credit a {
  color: inherit;
  border-bottom: 1px solid rgba(250, 247, 240, 0.35);
}
.gallery-item .gallery-credit a:hover { border-color: var(--gold, #b89554); }
.gallery-item .gallery-category {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: rgba(15, 50, 104, 0.78);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
}
.gallery-item.is-hidden { display: none; }
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .gallery-item figcaption { font-size: 0.7rem; padding: 0.6rem 0.7rem; }
  .gallery-item .gallery-category { font-size: 0.58rem; padding: 3px 7px; }
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 50, 104, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  flex-direction: column;
  gap: 1rem;
}
.lightbox.is-open {
  display: flex;
  animation: lightbox-fade 0.18s var(--easing);
}
@keyframes lightbox-fade { from { opacity: 0 } to { opacity: 1 } }
.lightbox img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  background: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.lightbox-caption {
  color: rgba(250, 247, 240, 0.95);
  font-size: 0.9rem;
  text-align: center;
  max-width: 56ch;
}
.lightbox-caption a {
  color: var(--gold, #b89554);
  border-bottom: 1px solid var(--gold, #b89554);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(250, 247, 240, 0.1);
  color: #fff;
  border: 1px solid rgba(250, 247, 240, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--easing);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(250, 247, 240, 0.2); border-color: var(--gold, #b89554); }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1.4rem; transform: none; }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
}

/* ============ HERO COM IMAGEM DE FUNDO ============ */
.hero.hero--photo {
  color: #fff;
  background: var(--primary-deep, #0F3268);
}
.hero.hero--photo .hero-bg {
  background:
    linear-gradient(135deg, rgba(15, 50, 104, 0.6) 0%, rgba(15, 50, 104, 0.4) 50%, rgba(0, 0, 0, 0.45) 100%),
    var(--hero-img) center/cover no-repeat;
}
.hero.hero--photo h1,
.hero.hero--photo h1 em,
.hero.hero--photo .hero-meta .num { color: #fff; }
.hero.hero--photo h1 em { color: var(--gold, #b89554); }
.hero.hero--photo .eyebrow { color: rgba(250, 247, 240, 0.85); }
.hero.hero--photo .eyebrow::before { color: rgba(250, 247, 240, 0.55); }
.hero.hero--photo p.lead { color: rgba(250, 247, 240, 0.92); }
.hero.hero--photo .hero-meta { border-top-color: rgba(250, 247, 240, 0.22); }
.hero.hero--photo .hero-meta .lab { color: rgba(250, 247, 240, 0.7); }
.hero.hero--photo .hero-credit {
  position: absolute;
  right: var(--pad-x);
  bottom: 1rem;
  font-size: 0.68rem;
  color: rgba(250, 247, 240, 0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}
.hero.hero--photo .hero-credit a { color: inherit; border-bottom: 1px solid rgba(250, 247, 240, 0.3); }
.hero.hero--photo .hero-credit a:hover { border-color: var(--gold, #b89554); color: var(--gold, #b89554); }

/* ============ BTN-CTA (botão primário comercial) ============ */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  background: var(--primary, #1B4A8E);
  color: #fff;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--primary, #1B4A8E);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.22s var(--easing);
  box-shadow: 0 2px 6px rgba(15, 50, 104, 0.12);
  text-decoration: none;
}
.btn-cta:hover {
  background: var(--primary-deep, #0F3268);
  border-color: var(--primary-deep, #0F3268);
  box-shadow: 0 8px 22px rgba(15, 50, 104, 0.25);
  transform: translateY(-1px);
}
.btn-cta .arrow { transition: transform 0.2s var(--easing); }
.btn-cta:hover .arrow { transform: translateX(4px); }
.btn-cta--ghost {
  background: transparent;
  color: var(--primary, #1B4A8E);
  border-color: var(--primary, #1B4A8E);
  box-shadow: none;
}
.btn-cta--ghost:hover { background: var(--primary, #1B4A8E); color: #fff; }
.hero.hero--photo .btn-cta--ghost { color: #fff; border-color: rgba(250, 247, 240, 0.55); }
.hero.hero--photo .btn-cta--ghost:hover { background: rgba(250, 247, 240, 0.12); border-color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }

/* ============ STATS DISPLAY GRANDE (números protagonistas) ============ */
.stats-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: clamp(60px, 8vw, 110px) 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-display .stat {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
}
.stats-display .stat:last-child { border-right: none; }
.stats-display .stat .num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 500;
  color: var(--primary-deep, #0F3268);
  line-height: 1;
}
.stats-display .stat .lab {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.8rem;
}
@media (max-width: 720px) {
  .stats-display { grid-template-columns: 1fr 1fr; }
  .stats-display .stat:nth-child(2) { border-right: none; }
  .stats-display .stat:nth-child(1),
  .stats-display .stat:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: 1rem; }
}

/* ============ INVESTOR / OPORTUNIDADE — cards com toque dourado ============ */
.card--gold {
  border: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}
.card--gold::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold, #b89554);
}
.card--gold:hover { background: var(--primary-bg, #A9B0D9); transition: background 0.3s var(--easing); }
.card--gold h3 { color: var(--primary-deep, #0F3268); }

/* Distance pill list (Localização privilegiada) */
.distances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.distance {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--primary, #1B4A8E);
}
.distance .km { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--primary-deep, #0F3268); }
.distance .to { font-size: 0.8rem; color: var(--ink-soft); }
.distance .mode { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.2rem; }

/* Footer photo notice */
.footer-photo-notice {
  border-top: 1px solid rgba(250, 247, 240, 0.08);
  padding: 1.2rem 0 0.6rem;
  margin-top: 1.4rem;
  font-size: 0.74rem;
  color: rgba(250, 247, 240, 0.5);
  line-height: 1.55;
}
.footer-photo-notice a { color: rgba(250, 247, 240, 0.7); border-bottom: 1px solid rgba(250, 247, 240, 0.2); }

/* ============ INSTAGRAM CARDS ============
   Cards de descoberta para contas Instagram da região. */
.insta-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.8rem 1.6rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  transition: transform 0.25s var(--easing), background 0.25s var(--easing), border-color 0.25s var(--easing);
  text-decoration: none;
}
.insta-card:hover {
  background: var(--bg-deep);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.insta-card-handle {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--primary-deep);
  font-weight: 500;
}
.insta-card-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  flex-grow: 1;
}
.insta-card-cta {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.4rem;
}
.insta-card .arrow { transition: transform 0.25s var(--easing); display: inline-block; }
.insta-card:hover .arrow { transform: translateX(3px); }

/* Page header (non-home) */
.page-header {
  padding-top: clamp(130px, 18vh, 180px);
  padding-bottom: clamp(40px, 7vh, 80px);
  border-top: none;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 0;
  height: 1px;
  background: var(--line);
}
.page-header h1 { margin-bottom: 1rem; max-width: 18ch; }
.page-header .lead-large { max-width: 38ch; }
.page-header .breadcrumbs {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 1.8rem;
}
.page-header .breadcrumbs a:hover { color: var(--primary); }
.page-header .breadcrumbs span { margin: 0 0.5em; }

/* Prose blocks */
.prose { max-width: var(--maxw-prose); }
.prose > * + * { margin-top: 1rem; }
.prose p + h2, .prose p + h3, .prose ul + h2, .prose ol + h2 { margin-top: 2.4rem; }
.prose h2 { margin-bottom: 0.7rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: 0.5rem; }
.prose ul, .prose ol { padding-left: 1.4em; color: var(--ink-soft); }
.prose ul li, .prose ol li { margin-bottom: 0.4rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.4em; }
.prose ul li::before {
  content: '';
  position: absolute; left: 0; top: 0.72em;
  width: 14px; height: 1px;
  background: var(--primary);
}
.prose blockquote {
  border-left: 2px solid var(--primary);
  padding: 0.4rem 0 0.4rem 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 2rem 0;
  max-width: 60ch;
}

/* ---- Pillars / Cards ------------------------------------------------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.pillar {
  padding: 2rem 0 0;
  border-top: 2px solid var(--primary);
}
.pillar .num {
  font-family: var(--serif);
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  display: block;
}
.pillar h3 { margin-bottom: 0.8rem; }
.pillar p { font-size: 0.95rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.8rem;
  transition: border-color 0.2s var(--easing), transform 0.3s var(--easing);
}
section.banded .card { background: #fdfaf2; }
.card:hover { border-color: var(--primary); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }
.card .label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.8rem;
  display: block;
}

/* Activity cards (two-column variant) */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  margin-top: 3rem;
}
.activity-card .label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}
.activity-card h3 { margin-bottom: 1rem; }

/* Numbers strip */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.numbers > div {
  background: var(--bg);
  padding: 2rem 1.5rem;
  text-align: center;
}
section.banded .numbers > div { background: #fdfaf2; }
.numbers .num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--primary-deep);
  line-height: 1.1;
  font-weight: 500;
}
.numbers .lab {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.6rem;
}

/* ---- Governance / definition list ---------------------------------------- */
.governance-list { margin-top: 2.5rem; }
.governance-list dl {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem 3rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  margin: 0;
}
.governance-list dl:first-child { border-top: 1px solid var(--line); }
.governance-list dt {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.governance-list dd { font-size: 0.98rem; color: var(--ink); margin: 0; }

/* ---- Timeline ------------------------------------------------------------- */
.timeline {
  margin-top: 3rem;
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-bottom: 2.4rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px var(--bg);
}
section.banded .timeline-item::before { box-shadow: 0 0 0 4px var(--bg-alt); }
.timeline-item.is-current::before { background: var(--primary); }
.timeline-item .year {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--primary-deep);
  font-weight: 500;
  margin-bottom: 0.2rem;
  line-height: 1.1;
}
.timeline-item h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.timeline-item p { margin-bottom: 0; font-size: 0.95rem; }

/* ---- Contact band --------------------------------------------------------- */
.contact-band {
  background: var(--primary-deep);
  color: var(--bg);
  padding: clamp(70px, 10vh, 110px) 0;
  border-top: none;
}
.contact-band h2, .contact-band h3 { color: var(--bg); }
.contact-band .eyebrow { color: var(--sand); }
.contact-band p { color: rgba(250, 247, 240, 0.85); }
.contact-band a { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201, 184, 150, 0.4); }
.contact-band a:hover { text-decoration-color: var(--sand); color: #f0e2bf; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.8rem;
  align-items: start;
}
.contact-grid h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.7rem;
  font-weight: 500;
}
.contact-grid p { margin-bottom: 0.4rem; }
.contact-cta {
  margin-top: 1.8rem;
  font-size: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--sand);
  max-width: 56ch;
}

/* ---- Buttons / CTAs ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--primary-deep);
  color: var(--bg);
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  border: 1px solid var(--primary-deep);
  cursor: pointer;
  transition: all 0.2s var(--easing);
  text-transform: uppercase;
}
.btn:hover { background: var(--atlantic-deep); border-color: var(--atlantic-deep); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--small { padding: 10px 18px; font-size: 0.78rem; }
.btn-arrow { display: inline-block; transition: transform 0.2s var(--easing); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--primary-deep);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
  transition: all 0.2s var(--easing);
}
.text-link:hover { color: var(--atlantic); border-color: var(--atlantic); }
.text-link .arrow { transition: transform 0.2s var(--easing); }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---- Section preview cards (home) ----------------------------------------- */
.section-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  margin-top: 2.5rem;
}
.preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.preview-card:first-child, .preview-card:nth-child(2) { border-top-color: var(--primary); border-top-width: 2px; }
.preview-card .label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
}
.preview-card h3 { margin-bottom: 0.3rem; font-size: 1.4rem; }
.preview-card p { font-size: 0.95rem; flex-grow: 1; }
.preview-card .text-link { margin-top: 0.4rem; align-self: flex-start; }

/* ---- Forms ---------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.4rem;
  max-width: 560px;
  margin-top: 2.5rem;
}
.form-row { display: grid; gap: 0.4rem; }
.form-row label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.form-row label .req { color: var(--danger); }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s var(--easing), background 0.2s var(--easing);
  border-radius: var(--rad);
  width: 100%;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-row .hint { font-size: 0.78rem; color: var(--ink-faint); line-height: 1.5; }
.form-row.is-honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status {
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  background: var(--bg-alt);
  border-left: 2px solid var(--primary);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { border-left-color: var(--danger); }

.checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; }
.checkbox-row input { width: auto; margin-top: 0.25rem; }
.checkbox-row label { text-transform: none; letter-spacing: normal; font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); }

/* ---- Press release / Article --------------------------------------------- */
.article {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding-top: 2rem;
}
.article-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}
.article h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.4rem; }
.article p:first-of-type { font-size: 1.15rem; color: var(--ink); }

/* ---- Decorative SVGs ----------------------------------------------------- */
.decorative-svg {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
.decorative-svg.top-right { top: 0; right: 0; width: 380px; }
.decorative-svg.bottom-left { bottom: 0; left: 0; width: 320px; }

.divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2.5rem 0;
  max-width: var(--maxw-prose);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.divider svg { color: var(--primary); width: 28px; height: 28px; flex-shrink: 0; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 0;
  font-size: 0.86rem;
  border-top: 1px solid var(--ink);
}
.site-footer * { color: inherit; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.4rem;
}
.footer-mark img {
  display: block;
  height: 64px;
  width: auto;
  background: rgba(250, 247, 240, 0.96);
  border-radius: 4px;
  padding: 6px 10px;
}
.footer-col p { color: rgba(250, 247, 240, 0.75); margin-bottom: 0.3rem; max-width: 38ch; }
.footer-col p.muted { color: rgba(250, 247, 240, 0.5); }
.footer-col strong { color: var(--bg); font-weight: 500; }
.footer-col h4 {
  color: rgba(250, 247, 240, 0.55);
  margin-bottom: 1rem;
}
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-nav a { color: rgba(250, 247, 240, 0.8); }
.footer-nav a:hover { color: var(--sand); }
.footer-nav--contact li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
}
.footer-nav--contact .footer-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.5);
}
.footer-nav--contact a { font-size: 0.86rem; }
.footer-bottom {
  border-top: 1px solid rgba(250, 247, 240, 0.08);
  padding: 1.8rem 0 2rem;
}
.footer-bottom-inner {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-notice {
  font-size: 0.78rem;
  color: rgba(250, 247, 240, 0.55);
  max-width: 60ch;
  line-height: 1.6;
  margin: 0;
}
.footer-notice strong { color: rgba(250, 247, 240, 0.75); }
.footer-bottom .muted { font-size: 0.78rem; color: rgba(250, 247, 240, 0.45); margin: 0; }


/* ---- Cookie banner ------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  max-width: 540px;
  background: var(--bg);
  color: var(--ink);
  padding: 1.2rem 1.4rem;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  z-index: 110;
  display: none;
  border-radius: var(--rad);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin-bottom: 0.8rem; color: var(--ink-soft); font-size: 0.85rem; }
.cookie-banner-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-banner-actions button {
  background: none;
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.2s var(--easing);
}
.cookie-banner-actions button:hover { color: var(--ink); border-color: var(--ink); }
.cookie-banner-actions .primary {
  background: var(--primary-deep);
  color: var(--bg);
  border-color: var(--primary-deep);
}
.cookie-banner-actions .primary:hover { background: var(--atlantic-deep); border-color: var(--atlantic-deep); color: var(--bg); }

/* ---- Map placeholder ----------------------------------------------------- */
.map-static {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 2rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.map-static-info h3 { margin-bottom: 0.5rem; }
.map-static-info p { font-size: 0.9rem; }
.map-static svg {
  width: 100%;
  height: auto;
  max-width: 360px;
  margin: 0 auto;
  display: block;
}

/* ---- 404 ----------------------------------------------------------------- */
.not-found {
  min-height: 78vh;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 130px 0 80px;
}
.not-found .code {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 9rem);
  color: var(--primary);
  line-height: 0.95;
  font-weight: 500;
  margin-bottom: 1.4rem;
}

/* ---- Animations ---------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Focus rings --------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--rad);
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--legal { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    padding: 1.6rem var(--pad-x) 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-main.is-open { display: flex; }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .nav-links a {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.is-active::after { display: none; }
  .lang { margin-left: 0; padding-top: 1rem; }
  .menu-toggle { display: block; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col .col-side h2 { position: static; }
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
  .three-col { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; gap: 2rem; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .governance-list dl { grid-template-columns: 1fr; gap: 0.4rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-preview { grid-template-columns: 1fr; gap: 0; }
  .map-static { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
  .numbers { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px 32px; }
  .hero { min-height: 80vh; }
  .timeline { padding-left: 2rem; }
  .timeline-item::before { left: -2rem; }
}

/* ---- Print --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .skip-link, .menu-toggle { display: none !important; }
  .hero, section { padding: 1.5cm 0; min-height: auto; border-color: #ccc; }
  body { background: #fff; color: #000; font-size: 11pt; }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
  p, li { color: #222; }
  .contact-band { background: #fff !important; color: #000 !important; padding: 1cm 0; }
  .contact-band * { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  .main { padding-top: 0 !important; }
}
