/* ============================================================
   Sou Leão do Norte — Home
   ============================================================ */

/* ---------- hero pinado (vídeo full-screen → ancora à direita) ---------- */
.hero-pin {
  position: relative;
  background: var(--azul);
}
.hero-stage { position: relative; }
/* 1 tela de transição + 0,5 de pausa ancorado (JS ativa o pin) */
.hero-pin.is-pin { height: 250vh; }
.hero-pin.is-pin .hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  --hp: 0; /* progresso 0..1 — o JS sobrescreve inline a cada frame */
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .05;
  pointer-events: none;
  color: var(--creme);
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0 0 auto 0;
  height: 170px;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(14, 42, 64, .88), rgba(14, 42, 64, 0));
  pointer-events: none;
}

/* vídeo único: full-bleed por padrão; o JS anima a geometria até o slot 4:5 */
.hero-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  max-height: 820px;
  overflow: hidden;
  background: var(--azul-profundo);
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-pin.is-pin .hero-video {
  position: absolute;
  left: 0;
  top: 0;
  max-height: none;
  border: 1px solid var(--creme-20);
  will-change: left, top, width, height, border-radius;
}
.hero-media-caption {
  position: absolute;
  left: clamp(16px, 2vw, 24px);
  bottom: clamp(12px, 1.6vw, 20px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  color: var(--creme-70);
}
.hero-media-caption .icon { width: 19px; height: 19px; color: var(--ocre); flex: none; }
.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--creme-60);
  opacity: calc(1 - var(--hp, 0));
}
.hero-cue::after {
  content: "↓";
  font-size: 14px;
  letter-spacing: 0;
  animation: cue-bob 1.6s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* grade de texto — padrão EMPILHADO (sem JS, mobile e reduced-motion) */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  padding-top: 28px;
  padding-bottom: 40px;
}
.hero-copy {
  opacity: var(--hc, 1);
  transform: translateX(calc((1 - var(--hc, 1)) * -24px));
}
.hero-title {
  font-size: clamp(40px, 5.2vw, 68px);
  margin-bottom: 22px;
}
.hero-title em { font-style: normal; color: var(--terracota); display: block; }
.hero-sub { margin-bottom: 30px; max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--creme-20);
  border-radius: 999px;
  background: var(--creme-08);
  font-size: 14px;
  margin-bottom: 28px;
}
.hero-badge strong { font-size: 16px; }
.hero-badge .icon { color: var(--ocre); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media-slot { display: none; }

/* estado com pin: vídeo ancora à direita (no slot) e texto entra à esquerda */
.hero-pin:not(.is-pin) .hero-cue { display: none; }
.hero-pin.is-pin .hero-copy { visibility: hidden; }
.hero-pin.is-pin .hero-grid {
  position: absolute;
  inset: 0;
  margin-inline: auto;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-top: 104px;
  padding-bottom: 32px;
}
.hero-pin.is-pin .hero-media-slot {
  display: block;
  justify-self: end;
  height: min(72vh, 660px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  visibility: hidden;
}

/* reduced-motion em desktop: layout estático (texto à esquerda, vídeo 4:5 à direita) */
.hero-pin.is-docked-static .hero-grid {
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-top: 150px;
  padding-bottom: 40px;
}
.hero-pin.is-docked-static .hero-media-slot {
  display: block;
  justify-self: end;
  height: min(72vh, 660px);
  aspect-ratio: 4 / 5;
  visibility: visible;
}
.hero-pin.is-docked-static .hero-video {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: var(--radius-xl);
  border: 1px solid var(--creme-20);
  box-shadow: var(--shadow-2);
}

/* ---------- linha de ícones da marca (divisor hero → logos) ---------- */
/* cada item carrega o par oficial do manual (pág. 11): --gem-bg (tile) + --gem-fg (glifo) */
.icon-line {
  list-style: none;
  margin: 0;
  padding: 6px 24px 46px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 3.4vw, 44px);
}
.icon-line-item {
  position: relative;
  display: grid;
  justify-items: center;
  cursor: default;
  outline: none;
}
.icon-line-item:nth-child(even) { transform: translateY(20px); }
.icon-line-gem {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  background: var(--gem-bg);
  border: 1.5px solid rgba(254, 241, 225, .16);
  border-radius: 12px;
  color: var(--gem-fg);
  transition: transform var(--tr), box-shadow var(--tr);
}
.icon-line-gem .icon { width: 28px; height: 28px; transform: rotate(-45deg); }
.icon-line-item:hover .icon-line-gem,
.icon-line-item:focus-visible .icon-line-gem {
  transform: rotate(45deg) scale(1.12);
  box-shadow: 0 0 30px -8px var(--gem-bg);
}
.icon-line-tip {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translate(-50%, 5px);
  z-index: 6;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--azul-profundo);
  border: 1px solid var(--creme-12);
  box-shadow: var(--shadow-1);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.icon-line-item:nth-child(even) .icon-line-tip { top: calc(100% + 36px); }
.icon-line-tip b {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gem-bg);
  margin-bottom: 2px;
}
.icon-line-tip { font-size: 14.5px; font-weight: 700; color: var(--creme); }
.icon-line-item:hover .icon-line-tip,
.icon-line-item:focus-visible .icon-line-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 720px) {
  .icon-line { flex-wrap: wrap; row-gap: 34px; column-gap: 26px; padding-block: 6px 40px; }
  .icon-line-item:nth-child(even) { transform: none; }
  .icon-line-gem { width: 46px; height: 46px; border-radius: 10px; }
  .icon-line-gem .icon { width: 22px; height: 22px; }
  /* sem hover no touch: os significados ficam sempre visíveis */
  .icon-line-tip {
    position: static;
    transform: none;
    opacity: 1;
    margin-top: 12px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
  .icon-line-tip b { color: var(--creme-60); }
}

/* ---------- faixa de logos (versão negativa: glyphs creme sobre azul) ---------- */
.brands-band { padding-block: 56px 64px; }
.brands-band h2 {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--creme-60);
  margin-bottom: 34px;
}
.brands-track { --marquee-gap: 26px; --marquee-speed: 68s; }
.brands-track img {
  width: 200px;
  height: 100px;
  object-fit: contain;
  flex: none;
}

/* ---------- tamanho do território (stats) ---------- */
.stats-section { background: var(--creme); color: var(--azul); }
.stats-header { max-width: 760px; margin-bottom: 54px; }
.stats-header h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 18px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 54px;
}
.stat-card {
  background: var(--azul);
  color: var(--creme);
  border-radius: var(--radius-m);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}
.stat-card .icon {
  position: absolute;
  right: 18px;
  top: 18px;
  color: var(--creme-20);
}
.stat-value {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-value sup { font-size: .45em; font-weight: 700; }
.stat-label {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--creme-70);
}
.stats-close {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  max-width: 820px;
}
.stats-note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(21, 60, 91, .55);
}

/* ---------- calendário em movimento: linha do tempo anual ---------- */
.calendar-section { text-align: center; }
.calendar-section .lead { margin-inline: auto; margin-bottom: 48px; }
.calendar-section .eyebrow { justify-content: center; }
.calendar-section .eyebrow::before { display: none; }

.calendar-timeline {
  --tl-label-w: 128px;
  display: grid;
  gap: 10px;
  max-width: 1080px;
  margin: 0 auto 48px;
  text-align: left;
}
.tl-months {
  display: grid;
  grid-template-columns: var(--tl-label-w) repeat(12, 1fr);
  column-gap: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--creme-40);
}
.tl-months span { padding-left: 4px; }
.tl-row {
  display: grid;
  grid-template-columns: var(--tl-label-w) 1fr;
  column-gap: 14px;
  align-items: center;
}
.tl-label b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tl-label i { font-style: normal; font-size: 11.5px; color: var(--creme-60); }
.tl-track {
  position: relative;
  height: 42px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, var(--creme-08) 0 1px, transparent 1px calc(100% / 12)),
    rgba(254, 241, 225, .04);
}
.tl-band {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: calc((var(--from) - 1) / 12 * 100% + 2px);
  width: calc((var(--to) - var(--from)) / 12 * 100% - 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--creme);
  cursor: default;
  transition: transform var(--tr), filter var(--tr);
}
.tl-band:hover { transform: translateY(-2px); filter: brightness(1.1); }
.tl-band::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  z-index: 5;
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--azul-profundo);
  border: 1px solid var(--creme-12);
  box-shadow: var(--shadow-1);
  color: var(--creme);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.tl-band:hover::after, .tl-band:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.tl-band.tip-right::after { left: auto; right: -2px; transform: translateY(4px); }
.tl-band.tip-right:hover::after, .tl-band.tip-right:focus-visible::after { transform: translateY(0); }

/* faixa em movimento do calendário */
.cal-marquee { margin-bottom: 46px; }
.cal-marquee span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--creme-40);
  white-space: nowrap;
}
.cal-marquee .dot { width: 7px; height: 7px; margin-inline: 24px; }

.calendar-timeline { position: relative; }
.tl-band { cursor: pointer; }
.tl-band--verao { background: var(--ocre); color: var(--azul-profundo); }
.tl-band--carnaval { background: var(--terracota); }
.tl-band--previas {
  background: rgba(224, 73, 52, .34);
  border: 1.5px dashed rgba(224, 73, 52, .95);
}
.tl-band--saojoao { background: var(--verde); }
.tl-band--line {
  border: 2px solid transparent;
  background: var(--creme);
  background-clip: padding-box;
  border-radius: 6px;
  color: transparent;
}
.tl-band--fest {
  border: 2px solid transparent;
  background: var(--fest-bg, transparent);
  background-clip: padding-box;
  border-radius: 6px;
  color: transparent;
  padding: 0;
  font: inherit;
}
.tl-band--fest:hover,
.tl-band--fest:focus-visible {
  filter: brightness(1.18);
  transform: none;
}
.tl-band--fest:focus-visible {
  outline: 1.5px solid var(--creme-40);
  outline-offset: 2px;
}

/* popover flutuante (hover/foco) e painel de detalhe (tap) */
.cal-pop,
.cal-detail {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--azul-profundo);
  border: 1px solid var(--creme-12);
  box-shadow: var(--shadow-1);
  text-align: left;
}
.cal-pop {
  position: absolute;
  z-index: 8;
  width: min(300px, 78vw);
  pointer-events: auto;
}
.cal-detail {
  max-width: 1080px;
  margin: -24px auto 42px;
}
.cal-pop strong,
.cal-detail strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--creme);
}
.cal-pop i,
.cal-detail i {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ocre);
  margin: 3px 0 9px;
}
.cal-pop ul,
.cal-detail ul {
  margin: 0;
  padding-left: 17px;
  display: grid;
  gap: 5px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--creme-70);
}
@media (prefers-reduced-motion: reduce) {
  .tl-band { transition: none; }
}
@media (max-width: 720px) {
  .calendar-timeline { --tl-label-w: 100%; gap: 12px; padding-inline: 24px; }
  .tl-row { grid-template-columns: 1fr; row-gap: 5px; }
  .tl-months { display: none; }
  .tl-track { height: 30px; }
  .tl-band { color: transparent; } /* o label acima já dá nome + janela; toque abre o detalhe */
  .cal-pop { display: none; } /* no touch só existe o painel de detalhe */
  .cal-detail { margin-top: 18px; }
}

/* ---------- manifesto ---------- */
.manifesto-section { text-align: center; }
.gem-emblem {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 30px;
  transform: rotate(45deg);
  border: 1.5px solid var(--terracota);
  border-radius: 14px;
  color: var(--terracota);
}
.gem-emblem .icon { width: 28px; height: 28px; transform: rotate(-45deg); }
.manifesto-quote {
  font-size: clamp(28px, 3.6vw, 46px);
  max-width: 900px;
  margin: 0 auto 26px;
}
.manifesto-body {
  max-width: 760px;
  margin-inline: auto;
  color: var(--creme-70);
}

/* ---------- palavras em movimento ---------- */
.words-marquee { padding-block: 30px; background: var(--azul); border-block: 1px solid var(--creme-08); }
.words-marquee span {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--creme-70);
}
.words-marquee .dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--ocre);
  transform: rotate(45deg);
  flex: none;
  margin-inline: 22px;
}

/* ---------- atuação / 9 estados ---------- */
.states-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.states-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.states-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--azul-15);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
}
.states-list .icon { width: 15px; height: 15px; color: var(--verde); }
.map-panel {
  position: relative;
  border-radius: var(--radius-l);
  background: var(--azul);
  color: var(--creme);
  padding: 44px 38px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.map-panel .icon {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 54px;
  height: 54px;
  color: var(--creme-20);
}
.map-panel strong { font-size: 21px; margin-bottom: 6px; }
.map-panel p { color: var(--creme-60); font-size: 13.5px; }

/* ---------- quatro frentes ---------- */
.frentes-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 48px; }
.frentes-header h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 560px; }
.frentes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 46px;
}
.frente-card {
  background: var(--azul-elevado);
  border: 1px solid var(--creme-08);
  border-radius: var(--radius-m);
  padding: 30px 26px 34px;
  transition: transform var(--tr), background var(--tr);
}
.frente-card:hover { transform: translateY(-6px); background: #21527A; }
.frente-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 46px;
  color: var(--creme-40);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
}
.frente-card .icon { color: var(--ocre); width: 30px; height: 30px; }
.frente-card h3 { font-size: 21px; margin-bottom: 10px; }
.frente-card p { font-size: 14.5px; color: var(--creme-70); }
.frentes-cta { text-align: center; }

/* ---------- dois caminhos ---------- */
.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.path-card {
  border-radius: var(--radius-l);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
}
.path-card--marca { background: var(--azul); color: var(--creme); }
.path-card--creator { background: var(--terracota); color: var(--creme); }
.path-card .icon { width: 36px; height: 36px; color: var(--creme-40); }
.path-card h3 { font-size: clamp(24px, 2.4vw, 32px); }
.path-card p { color: var(--creme-70); max-width: 430px; }
.path-card .btn { margin-top: auto; align-self: flex-start; }
.path-card--creator .btn { background: var(--azul); }
.path-card--creator .btn:hover { background: var(--azul-profundo); }

/* ---------- responsivo home ---------- */
@media (max-width: 1020px) {
  .hero-video { max-height: 780px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .frentes-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .states-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-ctas .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .frentes-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .paths-grid { grid-template-columns: 1fr; }
  .brands-track img { width: 150px; height: 75px; }
}

/* ---------- mapa 3D do Nordeste ---------- */
.map-panel--3d {
  position: relative;
  overflow: hidden;
  padding: 26px;
  min-height: 540px;
  display: block;
}
.map-panel--3d .map-head { position: relative; z-index: 2; pointer-events: none; }
.map-panel--3d .map-head strong { display: block; font-size: 19px; margin: 10px 0 4px; }
.map-panel--3d .map-head p { color: var(--creme-60); font-size: 13px; max-width: 240px; }
.map-panel--3d .map-head .icon { color: var(--creme-20); }
.map-panel--3d .map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
.map-tip {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--azul-profundo);
  border: 1px solid var(--creme-12);
  box-shadow: var(--shadow-1);
  pointer-events: none;
  white-space: nowrap;
}
.map-tip strong { display: block; font-size: 13.5px; }
.map-tip span { font-size: 11.5px; color: var(--ocre); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.map-panel--3d .map-fallback {
  position: absolute;
  inset: auto 26px 26px;
  z-index: 2;
  font-size: 13px;
  color: var(--creme-60);
}
@media (max-width: 640px) {
  .map-panel--3d { min-height: 400px; padding: 20px; }
}
