/* =========================================================
   Emanuel Cavalar — Coragem para mudar o Norte Pioneiro!
   Reescrita estática a partir do export WordPress/Elementor.
   ========================================================= */

/* === TOKENS === */
:root {
  --verde: #B7D734;
  --verde-divisor: #8BC34A;
  --verde-escuro: #182A1A;
  --azul-timeline: #1A237E;
  --azul-primary: #1C244B;
  --texto: #324A6D;
  --cinza: #F5F5F5;
  --branco: #FFFFFF;

  --fonte-titulo: "Montserrat", Sans-serif;
  --fonte-corpo: "Roboto", Sans-serif;
  --fonte-base: "Poppins", Sans-serif;

  --container: 1200px;
  --transicao: 200ms ease;
}

/* === RESET MÍNIMO === */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--fonte-base);
  font-weight: 400;
  color: var(--texto);
  background: var(--branco);
  line-height: 1.5;
}

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

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

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

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--azul-primary);
}

p {
  font-family: var(--fonte-corpo);
  font-weight: 300;
  line-height: 1.5em;
  margin: 0 0 1rem;
}

:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 2px;
}

/* === DIVISORES === */
hr.divisor {
  border: none;
  height: 4px;
  width: 80px;
  margin: 0 0 1.5rem;
  background: var(--verde-divisor);
}

hr.divisor--fino {
  height: 3px;
}

hr.divisor--escuro {
  background: var(--verde-escuro);
}

.espacador {
  height: 1.5rem;
}

.topo-sentinela {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 400px;
  pointer-events: none;
}

/* === HEADER === */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--verde);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.menu-principal {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-principal a {
  font-family: var(--fonte-titulo);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--azul-primary);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transicao);
}

.menu-principal a:hover,
.menu-principal a:focus-visible {
  border-bottom-color: var(--azul-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* === HERO === */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3.6 / 1;
  overflow: hidden;
  background: var(--verde-escuro);
}

.hero__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 38%;
}

.hero__overlay {
  position: absolute;
  left: 30%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  width: 32%;
  min-width: 220px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.hero__logo-principal {
  width: 100%;
}

.hero__logo-secundario {
  width: 44%;
}

/* === TRAJETÓRIA === */
.trajetoria {
  background: var(--azul-timeline);
  padding: 6rem 0;
}

.trajetoria__titulo {
  color: var(--branco);
  text-align: center;
  margin-bottom: 3rem;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.timeline__item p {
  color: var(--branco);
  opacity: 0.8;
  font-size: 14px;
  margin: 0;
}

.timeline__ano {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 32px;
  color: var(--verde);
}

/* === BLOCO ESCURO (apresentação + retrato) === */
.apresentacao {
  background: var(--verde-escuro);
  padding: 5rem 0;
}

.apresentacao .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.apresentacao__titulo {
  color: var(--verde);
}

.apresentacao p {
  color: var(--branco);
  max-width: 520px;
}

.retrato {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 4px;
}

.botao {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--fonte-titulo);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--verde-escuro);
  background: var(--verde);
  padding: 0.9rem 1.75rem;
  border-radius: 2px;
  transition: transform var(--transicao), background var(--transicao);
}

.botao svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.botao:hover,
.botao:focus-visible {
  background: var(--verde-divisor);
  transform: translateY(-1px);
}

/* === PROPOSTAS === */
.propostas {
  background: var(--cinza);
  padding: 6rem 0;
}

.propostas__grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.propostas__item {
  background: var(--verde);
  padding: 2.5rem 2rem;
}

.propostas__item h2 {
  font-size: 20px;
  line-height: 1.2em;
  color: var(--azul-primary);
}

.propostas__item .divisor {
  background: var(--azul-primary);
  width: 48px;
}

.propostas__item p {
  color: var(--azul-primary);
  opacity: 0.75;
  max-width: 640px;
}

/* === ACOMPANHE === */
.acompanhe {
  background: var(--cinza);
  padding: 5rem 0;
  text-align: center;
}

.acompanhe h2 {
  font-size: 28px;
}

.acompanhe p {
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.redes {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.redes a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--azul-primary);
  color: var(--branco);
  transition: background var(--transicao), transform var(--transicao);
}

.redes a:hover,
.redes a:focus-visible {
  background: var(--verde);
  color: var(--verde-escuro);
  transform: translateY(-2px);
}

.redes svg {
  width: 22px;
  height: 22px;
}

/* === FOOTER / APOIE === */
.site-footer {
  background: var(--verde-escuro);
  padding: 4rem 0;
  text-align: center;
}

.site-footer p {
  color: var(--branco);
  opacity: 0.85;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer__logo {
  width: 100%;
  max-width: 320px;
  margin: 1.5rem auto;
}

.site-footer__copyright {
  font-size: 14px;
  opacity: 0.6;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* === VOLTAR AO TOPO === */
.voltar-topo {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--verde-escuro);
  color: var(--branco);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transicao), transform var(--transicao), visibility var(--transicao);
  z-index: 20;
}

.voltar-topo.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.voltar-topo svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   RESPONSIVO — breakpoints do projeto original
   767px (mobile) · 1024px (tablet) · 1366px (laptop)
   ========================================================= */

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  h1 { font-size: 65px; }

  .trajetoria h2,
  .apresentacao h2 { font-size: 45px; }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .apresentacao .container {
    grid-template-columns: 1.3fr 1fr;
  }

  .propostas__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .acompanhe h2 { font-size: 36px; }
}

/* --- Laptop (1367px+) --- */
@media (min-width: 1367px) {
  h1 { font-size: 85px; }

  .trajetoria h2,
  .apresentacao h2 { font-size: 65px; }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .acompanhe h2 { font-size: 36px; }
}

/* --- Mobile (até 767px) --- */
@media (max-width: 767px) {
  .menu-principal {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--verde);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transicao);
  }

  .menu-principal.is-open {
    max-height: 320px;
    padding: 0.5rem 1.5rem 1.5rem;
  }

  .menu-principal li {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .menu-principal a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: none;
  }

  .site-header .container {
    position: relative;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  h1 { font-size: 48px; }
  .trajetoria h2,
  .apresentacao h2 { font-size: 28px; }

  .hero {
    aspect-ratio: 3 / 4;
  }

  .hero__foto {
    object-position: 30% 8%;
  }

  .hero__overlay {
    left: 6%;
    top: auto;
    bottom: 6%;
    transform: none;
    width: 88%;
    min-width: 0;
  }

  .hero__logo-secundario {
    width: 34%;
  }
}
