/* =========================================================
   HENRIQUE VILELA — LANDING PAGE STYLES
   Redesign 2026 · Campanha Deputado Federal por Goiás
   ========================================================= */

/* =========================================================
   0. RESET + TOKENS
   ========================================================= */

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

:root {
  --navy: #071b4f;
  --navy-d: #041238;
  --blue: #1644b8;
  --green: #00a94f;
  --green-d: #007a3a;
  --yellow: #ffd23f;
  --yellow-d: #e3ad00;
  --white: #ffffff;
  --cream: #f5f7f0;
  --gray-50: #f8f9fc;
  --gray-100: #eff2f9;
  --gray-500: #526078;
  --text: #11213f;

  --font-display: 'Bebas Neue', Impact, Arial Narrow, sans-serif;
  --font-body: 'Archivo', 'Inter', -apple-system, sans-serif;

  --section-py: clamp(80px, 9vw, 132px);
  --container: 1240px;
  --gutter: clamp(22px, 5vw, 64px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--yellow);
  color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   1. SCROLL PROGRESS BAR
   ========================================================= */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* =========================================================
   2. TIPOGRAFIA BASE
   ========================================================= */

.section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

.section-label-light {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(40px, 4vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--navy);
  margin-bottom: 40px;
  text-wrap: balance;
}

.section-title em {
  font-style: normal;
  color: var(--green);
}
.section-title.light {
  color: var(--white);
}
.section-title.light em {
  color: var(--yellow);
}

/* =========================================================
   3. BOTÕES
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
  border: none;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-d);
  box-shadow: 0 8px 24px rgba(0, 169, 79, 0.3);
}

.btn-white {
  background: var(--white);
  color: var(--green);
}
.btn-white:hover {
  background: var(--gray-50);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}
.btn-yellow:hover {
  background: var(--yellow-d);
}

.cta-btn-instagram {
  background: transparent;
  border: 2px solid rgba(7, 27, 79, 0.3);
  color: var(--navy);
  font-size: 14px;
}
.cta-btn-instagram:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(7, 27, 79, 0.06);
}

.btn-lg {
  font-size: 17px;
  padding: 18px 36px;
}
.icon-whatsapp {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* =========================================================
   4. SCROLL REVEAL
   ========================================================= */

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  will-change: transform, opacity;
}
.reveal {
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-48px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(48px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* =========================================================
   5. HEADER
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 64px);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    background 0.35s var(--ease-out),
    height 0.35s,
    box-shadow 0.35s;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 18, 56, 0.55), transparent);
  transition: opacity 0.35s;
}

.site-header.scrolled {
  height: 64px;
  background: rgba(7, 27, 79, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(4, 18, 56, 0.2);
}
.site-header.scrolled::before {
  opacity: 0;
}

.header-logo img {
  height: 76px;
  width: auto;
  display: block;
  transition: height 0.35s var(--ease-out);
}
.site-header.scrolled .header-logo img {
  height: 52px;
}

.header-vote {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--yellow);
  flex: 1;
  text-align: center;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.35s,
    transform 0.35s;
  pointer-events: none;
}
.site-header.scrolled .header-vote {
  opacity: 1;
  transform: translateY(0);
}

.header-menu-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.header-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.burger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.3s var(--ease-in-out),
    opacity 0.3s,
    width 0.3s;
}
.header-menu-btn.open .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-menu-btn.open .burger-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.header-menu-btn.open .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   6. DRAWER
   ========================================================= */

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1999;
  visibility: hidden;
}
.nav-drawer.open {
  visibility: visible;
}

.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 56, 0.65);
  opacity: 0;
  transition: opacity 0.35s;
  backdrop-filter: blur(2px);
}
.nav-drawer.open .nav-drawer-overlay {
  opacity: 1;
}

.nav-drawer-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--navy-d);
  transform: translateX(-100%);
  transition: transform 0.38s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 0 36px 40px;
  overflow: hidden;
}

/* Barra de acento verde → amarelo no topo do painel */
.nav-drawer-panel::before {
  content: '';
  display: block;
  flex-shrink: 0;
  height: 5px;
  margin: 0 -36px 28px;
  background: linear-gradient(90deg, var(--green) 0%, var(--yellow) 100%);
}

/* "2255" fantasma decorativo no fundo */
.nav-drawer-panel::after {
  content: '2255';
  position: absolute;
  bottom: -12px;
  right: -8px;
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
}

.nav-drawer.open .nav-drawer-panel {
  transform: translateX(0);
}

.nav-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  align-self: flex-end;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    background 0.2s,
    color 0.2s;
  margin-bottom: 16px;
}
.nav-drawer-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
}

.nav-drawer-logo {
  margin-bottom: 44px;
}
.nav-drawer-logo img {
  height: 96px;
  width: auto;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.nav-drawer-link {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.72);
  padding: 13px 0 13px 14px;
  position: relative;
  display: block;
  transition:
    color 0.2s,
    padding-left 0.2s;
}

/* Barra amarela lateral — aparece no hover */
.nav-drawer-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease-out);
}
.nav-drawer-link:hover::before {
  transform: scaleY(1);
}

.nav-drawer-link:hover {
  color: var(--white);
  padding-left: 20px;
}

.nav-drawer-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  margin-top: 28px;
}
.nav-drawer-vote {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 5px;
  color: var(--yellow);
  margin-bottom: 5px;
}
.nav-drawer-footer p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* =========================================================
   7. HERO — imagem pura
   ========================================================= */

#hero {
  display: block;
  line-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--navy-d);
}

#hero picture {
  display: block;
  width: 100%;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

@media (max-width: 680px) {
  .hero-banner-img {
    aspect-ratio: 1/1;
    object-fit: cover;
  }
}

/* =========================================================
   8. VOTE 2255
   ========================================================= */

#numero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  padding: clamp(72px, 8vw, 112px) var(--gutter);
}

/* Texto fantasma GOIÁS atrás */
#numero::before {
  content: 'GOIÁS';
  position: absolute;
  right: -1vw;
  top: 50%;
  transform: translateY(-51%);
  font: 900 clamp(130px, 25vw, 360px)/0.75 var(--font-body);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  letter-spacing: -0.08em;
  pointer-events: none;
}

/* Círculo decorativo */
#numero::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  top: -150px;
  left: -70px;
  border: 46px solid var(--yellow);
  border-radius: 50%;
  opacity: 0.9;
}

.numero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) 1.25fr;
  grid-template-areas:
    'kicker number'
    'label  number'
    'sub    action';
  column-gap: clamp(40px, 8vw, 120px);
  align-items: end;
}

.numero-kicker {
  grid-area: kicker;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  max-width: 280px;
  margin-bottom: 14px;
}

.numero-label {
  grid-area: label;
  font: 500 clamp(54px, 7vw, 92px)/0.8 var(--font-display);
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0;
}

.numero-display {
  grid-area: number;
  align-self: center;
}

.numero-count {
  display: block;
  color: var(--yellow);
  font: 900 clamp(118px, 18vw, 240px)/0.72 var(--font-body);
  letter-spacing: -0.09em;
}

.numero-line {
  display: none;
}

.numero-sub {
  grid-area: sub;
  margin: 24px 0 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}
.numero-sub span {
  display: block;
  opacity: 0.7;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.numero-inner > .btn {
  grid-area: action;
  justify-self: end;
  padding: 16px 24px;
}

/* =========================================================
   9. SOBRE
   ========================================================= */

#sobre {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--white);
}

/* Texto fantasma GO atrás */
#sobre::before {
  content: 'GO';
  position: absolute;
  top: 24px;
  right: 3vw;
  color: rgba(0, 169, 79, 0.04);
  font: 900 210px/1 var(--font-body);
  letter-spacing: -0.1em;
  pointer-events: none;
}

.sobre-inner {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.sobre-photo-wrap {
  position: relative;
}

.sobre-photo-frame {
  border-radius: 2px;
  box-shadow: 20px 20px 0 var(--yellow);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.sobre-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sobre-content {
  max-width: 610px;
}

.sobre-divider {
  width: 64px;
  height: 5px;
  background: var(--green);
  border-radius: 2px;
  margin: -24px 0 32px;
}

.sobre-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.sobre-credentials span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid #dce3da;
  background: #f8faf7;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--green-d);
}

.sobre-lead {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 20px;
}

.sobre-text {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
  max-width: 62ch;
  margin-bottom: 28px;
}

.sobre-quote {
  background: var(--navy);
  color: var(--white);
  padding: 28px 30px;
  border-radius: 0 18px 18px 18px;
  border-left: none;
}
.sobre-quote p {
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 10px;
}
.sobre-quote cite {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
}

/* =========================================================
   10. GALERIA
   ========================================================= */

#galeria {
  background: var(--navy);
  padding: var(--section-py) 0 0;
}

.galeria-header {
  text-align: left;
  margin-bottom: 48px;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* Grid: coluna esquerda (tall) + coluna direita (2 linhas) */
.galeria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: clamp(440px, 52vw, 760px);
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 7vw, 88px);
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

/* Foto esquerda ocupa as 2 linhas */
.galeria-item--tall {
  grid-row: 1 / 3;
}

.galeria-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.galeria-img-wrap img,
.galeria-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.galeria-img-wrap img {
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.galeria-item:hover .galeria-img-wrap img {
  transform: scale(1.04);
}

/* Placeholder enquanto fotos reais não chegam */
.galeria-placeholder {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

/* =========================================================
   11. GOIÁS TICKER
   ========================================================= */

.goias-strip {
  background: var(--yellow);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  border: none;
}

.goias-track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}
.goias-strip:hover .goias-track {
  animation-play-state: paused;
}

.goias-items {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  flex-shrink: 0;
}

.goias-item {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
}
.goias-bold {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 3px;
}
.goias-sep {
  color: rgba(7, 27, 79, 0.3);
  font-size: 14px;
  flex-shrink: 0;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================================================
   12. BANDEIRAS
   ========================================================= */

#bandeiras {
  background: var(--white);
  padding: var(--section-py) 0;
}

.bandeiras-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
}
.bandeiras-header .section-title {
  margin-bottom: 0;
}

/* Grade 12 colunas: linha 1 → 5+7, linha 2 → 7+5, linha 3 → 6+6 */
.bandeiras-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: #dbe2ed;
  border: 1px solid #dbe2ed;
  border-radius: 2px;
  overflow: hidden;
}

.bandeira-card {
  grid-column: span 6; /* padrão: metade da linha */
  min-height: 260px;
  background: var(--white);
  padding: 32px 28px;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s var(--ease-out);
  /* Sem opacity:0 — não usar o stagger aqui, cards ficam sempre visíveis */
}

/* Linha 1: card 1 (5 cols) + card 2 (7 cols) = 12 */
.bandeira-card:nth-child(1) {
  grid-column: span 5;
}
.bandeira-card:nth-child(2) {
  grid-column: span 7;
}
/* Linha 2: card 3 (7 cols) + card 4 (5 cols) = 12 */
.bandeira-card:nth-child(3) {
  grid-column: span 7;
}
.bandeira-card:nth-child(4) {
  grid-column: span 5;
}
/* Linha 3: card 5 (6 cols) + card 6 (6 cols) = 12 */
.bandeira-card:nth-child(5) {
  grid-column: span 6;
}
.bandeira-card:nth-child(6) {
  grid-column: span 6;
}

.bandeira-card:hover {
  background: var(--navy);
  transform: translateY(-4px);
  z-index: 1;
}
.bandeira-card:hover .bandeira-title,
.bandeira-card:hover .bandeira-text {
  color: var(--white);
}
.bandeira-card:hover .bandeira-icon {
  background: rgba(255, 255, 255, 0.08);
}
.bandeira-card:hover .bandeira-icon svg {
  color: var(--yellow);
}

.bandeira-accent {
  display: none;
} /* não usado no novo layout */

.bandeira-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ebf8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s;
}
.bandeira-icon svg {
  width: 22px;
  height: 22px;
  color: var(--green);
  transition: color 0.3s;
}

.bandeira-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.bandeira-text {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 46ch;
  transition: color 0.3s;
}

/* =========================================================
   13. TRAJETÓRIA
   ========================================================= */

#trajetoria {
  background: var(--cream);
  padding: var(--section-py) 0;
}

.trajetoria-header {
  text-align: left;
  max-width: 480px;
  margin-bottom: 64px;
}
.trajetoria-header .section-title {
  margin-bottom: 0;
}

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

/* Linha vertical */
.timeline-line-track {
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(0, 169, 79, 0.15);
  border-radius: 4px;
  overflow: hidden;
}
.timeline-line-fill {
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, var(--green), var(--yellow));
  border-radius: 4px;
  transition: height 2.2s var(--ease-out);
}

/* Todos os items: dot esquerda, conteúdo direita */
.timeline-item,
.timeline-item.tl-left,
.timeline-item.tl-right {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 28px;
  align-items: start;
  margin-bottom: 16px;
  position: relative;
}
.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item .tl-node {
  grid-column: 1;
  grid-row: 1;
}
.timeline-item .tl-spacer {
  display: none;
}

.timeline-item .tl-content {
  grid-column: 2;
  grid-row: 1;
  text-align: left;
  background: var(--white);
  border: 1px solid #e3e8de;
  border-radius: 0 20px 20px 20px;
  padding: 28px 32px;
}

.tl-node {
  display: flex;
  align-items: flex-start;
  padding-top: 6px;
}

.tl-dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px var(--cream);
}
.tl-dot span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.tl-dot--green {
  background: var(--green);
}
.tl-dot--green span {
  color: var(--white);
}
.tl-dot--yellow {
  background: var(--yellow);
}
.tl-dot--yellow span {
  color: var(--navy);
}

.tl-period {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.tl-title {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 10px;
}
.tl-text {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.75;
  max-width: 68ch;
}

/* =========================================================
   14. APOIOS
   ========================================================= */

#apoios {
  position: relative;
  background: var(--green-d);
  padding: var(--section-py) 0;
  overflow: hidden;
}

/* Texto fantasma 2255 */
#apoios::after {
  content: '2255';
  position: absolute;
  right: -30px;
  bottom: -70px;
  color: rgba(255, 255, 255, 0.05);
  font: 900 250px/1 var(--font-body);
  letter-spacing: -0.09em;
  pointer-events: none;
}

.apoios-header {
  text-align: left;
  margin-bottom: 48px;
}

.apoios-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 56px;
}

.apoio-item {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  column-gap: 48px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  border-radius: 0;
  transition: background 0.2s;
}
.apoio-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.apoio-item-bar {
  display: none;
}

.apoio-item-role {
  grid-column: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}
.apoio-item-name {
  grid-column: 1;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.05;
}
.apoio-item-text {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.apoios-cta {
  max-width: 700px;
  margin: 0 0 0 auto;
  text-align: left;
}
.apoios-cta p {
  font-size: clamp(16px, 2vw, 20px);
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* =========================================================
   15. CTA FINAL
   ========================================================= */

#cta {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--white);
  overflow: hidden;
}

/* Triângulo amarelo no lado direito */
#cta::before {
  content: '';
  position: absolute;
  width: 42vw;
  height: 100%;
  right: 0;
  top: 0;
  background: var(--yellow);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.cta-content {
  max-width: 520px;
}

.cta-hashtag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.cta-title {
  font-size: clamp(40px, 5.5vw, 70px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--navy);
  margin-bottom: 24px;
}
.cta-title span {
  color: var(--green);
}

.cta-divider {
  width: 56px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin-bottom: 20px;
}

.cta-text {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.cta-vote {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-top: 8px;
}

/* Foto direita */
.cta-photo-wrap {
  position: relative;
}

.cta-photo-frame {
  border-radius: 2px;
  box-shadow: 18px 18px 0 var(--blue);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.cta-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   16. FOOTER
   ========================================================= */

footer {
  background: var(--navy);
  border-top: 4px solid var(--yellow);
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  justify-self: start;
}
.footer-logo img {
  height: 94px;
  width: auto;
  opacity: 0.85;
  margin-bottom: 30px;
  margin-left: -15px;
}

.footer-text {
  text-align: left;
  font-size: 12px;
  color: #fff;
  line-height: 1.8;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.footer-number {
  justify-self: end;
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--yellow);
  opacity: 0.8;
  line-height: 1;
}

/* =========================================================
   17. RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  /* Numero: volta para coluna única */
  .numero-inner {
    grid-template-columns: 1fr;
    grid-template-areas: 'kicker' 'label' 'number' 'sub' 'action';
    text-align: center;
    justify-items: center;
  }
  .numero-kicker,
  .numero-label {
    text-align: center;
  }
  .numero-count {
    font-size: clamp(112px, 32vw, 190px);
  }
  .numero-inner > .btn {
    justify-self: center;
    margin-top: 28px;
  }

  /* Sobre: empilha */
  .sobre-inner {
    grid-template-columns: 1fr;
  }
  .sobre-photo-wrap {
    max-width: 420px;
    margin: 0 auto;
  }
  .sobre-photo-frame {
    box-shadow: 12px 12px 0 var(--yellow);
  }

  /* Bandeiras: 2 colunas iguais */
  .bandeiras-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bandeira-card,
  .bandeira-card:nth-child(n) {
    grid-column: span 1;
    min-height: 0;
  }
  .bandeiras-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  /* Apoios: empilha item */
  .apoio-item {
    grid-template-columns: 1fr;
  }
  .apoio-item-text {
    grid-column: 1;
    grid-row: auto;
    margin-top: 14px;
  }
  .apoios-cta {
    margin: 48px 0 0 0;
  }

  /* CTA: empilha */
  .cta-inner {
    grid-template-columns: 1fr;
  }
  #cta::before {
    width: 52vw;
  }
  .cta-photo-wrap {
    max-width: 360px;
  }
}

@media (max-width: 680px) {
  :root {
    --section-py: 76px;
    --gutter: 22px;
  }

  /* Header */
  .site-header {
    height: 70px;
  }
  .header-logo img {
    height: 60px;
  }
  .site-header.scrolled {
    height: 58px;
  }

  /* Galeria: coluna única */
  .galeria-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    gap: 8px;
  }
  .galeria-item--tall {
    grid-row: auto;
  }
  .galeria-img-wrap {
    aspect-ratio: 4/3;
    height: auto;
  }

  /* Bandeiras: coluna única */
  .bandeiras-grid {
    grid-template-columns: 1fr;
  }
  .bandeira-card,
  .bandeira-card:nth-child(n) {
    grid-column: 1;
    min-height: 0;
    padding: 28px 24px;
  }

  /* Timeline */
  .timeline-item,
  .timeline-item.tl-left,
  .timeline-item.tl-right {
    grid-template-columns: 48px 1fr;
    gap: 0 16px;
  }
  .tl-dot {
    width: 48px;
    height: 48px;
    font-size: 20px;
    box-shadow: 0 0 0 6px var(--cream);
  }
  .timeline-item .tl-content {
    padding: 22px 20px;
  }

  /* CTA: pilha + triângulo reposicionado */
  #cta::before {
    width: 100%;
    height: 36%;
    top: auto;
    bottom: 0;
    clip-path: polygon(0 26%, 100% 0, 100% 100%, 0 100%);
  }
  .cta-photo-frame {
    box-shadow: 10px 10px 0 var(--blue);
  }

  /* Footer */
  footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .footer-logo,
  .footer-number {
    justify-self: center;
  }
}

/* =========================================================
   WHATSAPP FLUTUANTE
   ========================================================= */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  border-radius: 50px;
  padding: 14px 22px 14px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s,
    padding 0.3s;
  white-space: nowrap;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

/* Mobile: só ícone, sem texto */
@media (max-width: 480px) {
  .whatsapp-float {
    padding: 16px;
    border-radius: 50%;
  }
  .whatsapp-float span {
    display: none;
  }
}
