/* ============================================================
   ESCALA GOVTECH BRASIL - base + hero (1ª dobra)
   Linha visual: Lato + verde/amarelo sobre claro (ref. manual)
   Dispositivos de marca: barra degradê verde->amarelo,
   barra verde->marinho, círculo verde
   Shape system: superfícies retas / botões pill (regra documentada)
   Z-INDEX SCALE: 1 decor / 2 conteúdo / 3 nav / 60 cookie banner
   Seções 2-6, rodapé e cookies: sections.css
   ============================================================ */
:root {
  --bg:          #F0F0F1;  /* cinza-claro do manual */
  --paper:       #FBFBFC;  /* superfície elevada (off-white) */
  --ink:         #101211;  /* off-black */
  --muted:       #52606D;
  --green:       #1BA81F;  /* verde vivo (fills, gradientes) */
  --green-text:  #0F7A16;  /* verde escurecido p/ texto (AA) */
  --amber:       #ECAC1F;  /* amarelo do degradê */
  --navy:        #1A1548;  /* marinho profundo do manual */
  --black:       #0A0A0B;  /* preto (off-black) p/ blocos de cor */
  --yellow:      #F4AB23;  /* amarelo-âmbar dos botões primários */
  --blue:        #18489D;  /* azul do headline */
  --navy-ink:    #EDEEF3;  /* texto sobre marinho */
  --navy-muted:  rgba(237, 238, 243, 0.75);
  --hairline:    rgba(16, 18, 17, 0.12);
  --radius-cta:  999px;
}

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

html, body { height: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: "Lato", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ---------- Layout base ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
}

.section { padding: clamp(72px, 10vh, 128px) 0; }

.section--paper { background: var(--paper); }

.section-title {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.lead {
  margin-top: 24px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

.lead strong { color: var(--ink); }

/* ---------- CTAs (pill, regra de shape) ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-cta);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  padding: 18px 34px;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.cta:active { transform: translateY(1px) scale(0.98); }

.cta--primary {
  background: var(--yellow);
  color: #06130A;
}
.cta--primary:hover { background: #E09C15; }

.cta--secondary {
  color: var(--ink);
  border: 1.5px solid rgba(16, 18, 17, 0.45);
  background: var(--paper); /* fundo sólido: não some sobre a borda colorida */
}
.cta--secondary:hover { border-color: var(--ink); }

.cta__arrow { font-size: 18px; line-height: 1; }

/* ============================================================
   HERO (primeira dobra)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.nav {
  position: relative;
  z-index: 3;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--hairline);
}

.nav__brand { display: flex; align-items: center; gap: 14px; }

.nav__brand img { height: 34px; width: auto; }

.nav__brand-program {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  border-left: 1px solid rgba(16, 18, 17, 0.18);
  padding-left: 14px;
  line-height: 1.35;
}

.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }

.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  opacity: 0.82;
}
.nav__links a:hover { opacity: 1; color: var(--green-text); }

.nav__reg {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid rgba(16, 18, 17, 0.35);
  border-radius: var(--radius-cta);
  padding: 9px 20px;
}
.nav__reg:hover { border-color: var(--green); color: var(--green-text); }

/* barra vertical verde->marinho */
.hero__edge {
  position: absolute;
  z-index: 1;
  top: 72px;
  right: 0;
  bottom: 0;
  width: clamp(56px, 6vw, 96px);
  background: linear-gradient(180deg, var(--green) 0%, var(--navy) 100%);
}

/* marca d'água: mapa LatAm preenchendo o hero,
   esmaecendo de 100% (topo/direita) a 0% (base/esquerda) */
.hero__bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("assets/bg_hero.png") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(225deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  mask-image: linear-gradient(225deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(24px, 5vw, 72px) 7vh;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--amber));
}

.headline {
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 900;
  line-height: 0.99;
  letter-spacing: -0.025em;
  white-space: nowrap;
  color: var(--blue);
}

.headline span { display: block; }

/* escadaria assimétrica: segunda linha recuada */
.headline .l2 { margin-left: clamp(24px, 5vw, 92px); }

.headline em {
  font-style: italic;
  color: var(--green-text);
  line-height: 1.1;
  padding-bottom: 0.06em; /* clearance do descender do itálico ("p" de público) */
  display: inline-block;
}

/* barra degradê verde->amarelo */
.hero__band {
  margin-top: clamp(30px, 4.5vh, 52px);
  margin-left: clamp(24px, 5vw, 92px);
  margin-right: calc(-1 * clamp(24px, 5vw, 72px));
  height: 22px;
  background: linear-gradient(90deg, var(--green) 0%, var(--amber) 100%);
}

.hero__base {
  margin-top: clamp(30px, 4.5vh, 52px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.subtext {
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
  border-left: 3px solid var(--green);
  padding-left: 22px;
}

.subtext strong { color: var(--ink); font-weight: 700; }

.ctas { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }

/* ---------- Colapso mobile do hero (< 768px) ---------- */
@media (max-width: 767px) {
  .nav { padding: 0 20px; }
  .nav__links a { display: none; }
  .nav__brand-program { display: none; }
  .hero__edge { width: 14px; }
  .hero__content { padding: 0 20px 40px; }
  .headline { font-size: clamp(40px, 11.5vw, 58px); white-space: normal; }
  .headline .l2 { margin-left: 0; }
  .hero__band { margin-left: 0; margin-right: -20px; height: 16px; }
  .hero__base { flex-direction: column; align-items: stretch; gap: 28px; }
  .subtext { max-width: none; }
  .ctas { flex-direction: column; align-items: stretch; }
  .cta { justify-content: center; white-space: normal; text-align: center; }

  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}
