/* ============================================
   HERO + NAV + SECTION-SPECIFIC STYLES
   ============================================ */

/* ---------- Navigation ---------- */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  background: rgba(12, 20, 44, 0.78);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 999px;
  color: white;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.nav-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--orange-2), var(--orange) 60%, var(--orange-deep));
  box-shadow: 0 0 18px rgba(255,153,0,0.55), inset 0 0 8px rgba(255,255,255,0.4);
  position: relative;
}

/* ========== TAIYO LOGO (sol + texto reutilizável) ========== */
.taiyo-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit; /* texto adapta-se ao contexto (claro/escuro) */
  line-height: 1;
}
.taiyo-logo-sun {
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,153,0,0.35));
}
.taiyo-logo-text {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.taiyo-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
}
.taiyo-logo-tag {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit;
  opacity: 0.65;
  white-space: nowrap;
}

/* Tamanhos */
.taiyo-logo--sm .taiyo-logo-sun { width: 44px; height: 44px; }
.taiyo-logo--sm .taiyo-logo-name { font-size: 20px; }
.taiyo-logo--sm .taiyo-logo-tag { font-size: 11px; }

.taiyo-logo--md .taiyo-logo-sun { width: 44px; height: 44px; }
.taiyo-logo--md .taiyo-logo-name { font-size: 22px; }
.taiyo-logo--md .taiyo-logo-tag { font-size: 11px; }

.taiyo-logo--lg .taiyo-logo-sun { width: 52px; height: 52px; }
.taiyo-logo--lg .taiyo-logo-name { font-size: 26px; }
.taiyo-logo--lg .taiyo-logo-tag { font-size: 12px; }
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-radius: 999px;
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.06); }
.nav-cta { margin-left: 8px; padding: 10px 18px; font-size: 13px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: auto;
  height: 100vh;
  max-height: 880px;
  color: white;
  overflow: hidden;
  isolation: isolate;
  padding-top: 100px;
  padding-bottom: 100px; /* room acima do marquee (era 130 — folga excessiva) */
  display: flex;
  align-items: flex-end; /* bloco ancorado embaixo à esquerda */
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero/hero-background.webp");   /* 1920px · ~203KB */
  background-size: cover;
  background-position: center 35%;
  filter: saturate(1.05);
  transform: scale(1.04);
  animation: hero-zoom 18s ease-out both;
}
/* Mobile: versão leve (1080px · ~66KB) — corta o LCP no celular */
@media (max-width: 768px) {
  .hero-bg { background-image: url("assets/hero/hero-background-mobile.webp"); }
}
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 25% 65%, rgba(12,20,44,0.85) 0%, rgba(12,20,44,0.4) 60%, transparent 100%),
    linear-gradient(160deg, rgba(12,20,44,0.85) 0%, rgba(12,20,44,0.35) 45%, rgba(12,20,44,0.7) 100%),
    linear-gradient(180deg, rgba(12,20,44,0.45) 0%, transparent 30%, rgba(12,20,44,0.6) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Layout v6 — Todos containers da hero alinhados via override pra max-width 1240 */
.hero .container.hero-grid {
  max-width: 1272px;
  padding-left: 16px;
  padding-right: 16px;
}

/* Data + cidade — linha discreta logo abaixo do H1 (assinatura do momento,
   antes ficava numa pílula flutuante perto do menu, desconectada do texto). */
.hero-meta-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.hero-meta-line .hero-locale-dot-inline {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange, #ff9900);
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(255,153,0,0.18);
  animation: heroLocalePulse 2.4s ease-in-out infinite;
}
/* .hero-meta-text é o texto (data + cidade) — precisa de fluxo normal
   (não flex) pra respeitar o <br> que quebra a cidade no mobile. */
.hero-meta-text { display: inline; }
.hero-meta-citybreak { display: none; }

/* Botões do hero: dois conjuntos, um por breakpoint (mesmo padrão do
   nav desktop/drawer mobile já usado no resto do site). */
.hero-ctas-grid.hero-ctas-mobile { display: none; }

/* GRID: 65% copy esq / 35% stats dir.
   - copy + ctas vivem na coluna ESQUERDA (linhas separadas)
   - stats vive na coluna DIREITA (span 2 linhas, align-self end) */
.hero-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  /* gap controla o espaçamento vertical ENTRE título, data e botões —
     precisa ser um valor só (sem margin extra em nenhum filho) pra ficar
     igual entre os três. 16px no mobile, herdado abaixo. */
  gap: 16px;
  width: 100%;
  padding-top: 16px;
}
@media (min-width: 881px) {
  .hero-grid { gap: 20px; padding-top: 8px; }
}
.hero-h1 {
  max-width: 60%;
  margin-bottom: 0;
}
.hero-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;  /* bottoms de stack-left E stats alinhados */
  gap: 24px;
  width: 100%;
}
.hero-left-stack {
  width: 40%;
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-left-stack .hero-sub {
  margin-bottom: 0; /* removido — gap do stack controla espaço */
}
.hero-ctas-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
.hero-ctas-grid .btn {
  font-size: 14px;
  padding: 14px 22px;
  flex: 1 1 auto;
  justify-content: center;
}
.hero-stats {
  flex: 0 0 auto;
  width: 360px;
  max-width: 38%;
  padding: 10px 14px !important;
  gap: 0 !important;
  min-height: auto;
}
.hero-stats .hero-stat-row {
  padding: 5px 2px !important;
  gap: 8px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-kicker-pill {
  background: var(--orange);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* ============================================================
   HERO 2026 — Locale badge "ao vivo" + WhatsApp CTA
   ============================================================ */
.hero-locale-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hero-locale-badge strong {
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0;
}
.hero-locale-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,153,0,0.18);
  animation: heroLocalePulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes heroLocalePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,153,0,0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(255,153,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-locale-dot { animation: none; }
}

/* ============================================================
   HERO CAROUSEL — 3 slides com fade smooth + dots no canto
   ============================================================ */

/* Cada slide-bg é um background fixo que aparece/some via opacity.
   Use background-image custom por slide (placeholder gradient agora). */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
}
.hero-slide-bg.active { opacity: 1; }

/* Background da hero — foto única do telhado com painéis.
   (O carrossel de 3 slides foi removido — os slides 2 e 3 eram
   gradiente placeholder que nunca ganhou foto real.) */
.hero-slide-bg-1 {
  background-image:
    linear-gradient(to right, rgba(12,20,44,0.68) 0%, rgba(12,20,44,0.32) 55%, rgba(12,20,44,0.08) 100%),
    url('assets/hero/slide-01.webp');
}

/* Fade-in de entrada do conteúdo (título + CTAs) ao carregar a página. */
.hero-slide-content {
  animation: heroSlideContentFadeIn 0.72s cubic-bezier(0.32, 0.72, 0.2, 1);
}
@keyframes heroSlideContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide-bg { transition: none; }
  .hero-slide-content { animation: none; }
}

/* CTA WhatsApp com 2 linhas (título + promessa de tempo) */
.hero-cta-whatsapp {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  padding-right: 22px !important;
  text-align: left;
}
.hero-cta-whatsapp .hero-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}
.hero-cta-whatsapp .hero-cta-main {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero-cta-whatsapp .hero-cta-sub {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-top: 2px;
  font-family: var(--font-mono);
}
@media (max-width: 640px) {
  .hero-cta-whatsapp .hero-cta-sub { font-size: 9.5px; }
}

.hero h1 {
  /* Reduzido pra hero caber no viewport sem scroll. Antes era até 96px. */
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 400;
  /* 1.05 cortava o topo do "l" em itálico (.accent) — o gradient-clip-text
     é mais sensível a line-height apertado que texto normal. */
  line-height: 1.15;
  letter-spacing: -0.03em;
  /* margin-bottom: 0 — espaçamento pro próximo elemento vem só do
     gap do .hero-grid, pra ficar igual entre título/data/botões. */
  margin-bottom: 0;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(120deg, var(--orange-2), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* FIX letra final cortada (ex.: "sol" — o "l" itálico tem overhang
     à direita que o inline-box não acomoda; com background-clip:text
     o Safari/WebKit corta o último glyph). inline-block + padding +
     margin negativa preservam o spacing original SEM cortar. */
  display: inline-block;
  padding-right: 0.08em;
  margin-right: -0.04em;
}
.hero-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  line-height: 1.55;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
/* Quando dentro do hero-bottom-row, zera margin pra alinhar bottom com stats */
.hero-bottom-row .hero-ctas { margin-bottom: 0; }

/* Stats panel right side of hero */
.hero-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(12,20,44,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  position: relative;
  overflow: hidden;
}
.hero-stats::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,153,0,0.6), transparent);
}
.hero-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 8px;
}
.hero-stat-row:last-child { border-bottom: 0; }
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: white;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}
.hero-stat-value .unit {
  font-size: 9.5px;
  color: rgba(255,255,255,0.5);
  margin-left: 3px;
  letter-spacing: 0;
}
/* User pediu: cor branca nas stats (não mais laranja no valor principal) */
.hero-stat-value .accent { color: white; }

.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  /* backdrop-filter: blur(8px) REMOVIDO — era a verdadeira causa do lag.
     O blur precisa recalcular A CADA FRAME o que está atrás. Como atrás
     tem .hero-bg com `animation: hero-zoom 18s` (imagem escalando), o
     navegador re-blurrava a imagem inteira 60x por segundo. Substituído
     por fundo navy mais opaco (de 0.5 pra 0.85), efeito visual parecido. */
  background: rgba(12,20,44,0.85);
  display: flex;
  align-items: center;
  gap: 48px;
  overflow: hidden;
}
.hero-marquee-label {
  flex-shrink: 0;
  padding-left: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.2;
}
/* Data da última atualização das notícias (admin edita HERO_MARQUEE_UPDATED) */
.hero-marquee-updated {
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: none;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}
.hero-marquee-track {
  display: flex;
  gap: 48px;
  flex: 1;
  overflow: hidden;
  /* mask-image custa MUITO em desktop (área maior, repaint a cada frame
     dentro da layer GPU do marquee). Substituído por gradientes ::before/::after
     posicionados nas bordas — mesma aparência visual, custo de pintura
     uma única vez no setup. */
  position: relative;
  cursor: grab;
  user-select: none;
}
.hero-marquee-track.is-dragging { cursor: grabbing; }
.hero-marquee-track::before,
.hero-marquee-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.hero-marquee-track::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy, #0c142c) 0%, transparent 100%);
}
.hero-marquee-track::after {
  right: 0;
  background: linear-gradient(270deg, var(--navy, #0c142c) 0%, transparent 100%);
}
.hero-marquee-inner {
  display: flex;
  /* SEM `gap` aqui de propósito — o espaçamento vira margin-right DENTRO de
     cada item, então cada item é autocontido (necessário pro cálculo de
     `half` em JS bater exato com a largura de uma cópia dos itens). */
  flex-shrink: 0;
  /* Transform é aplicado via JS a cada frame (requestAnimationFrame), tanto
     pro deslize automático quanto pro arrastar com o mouse — ver Hero() em
     sections-v2.jsx. will-change mantém a faixa numa camada dedicada da GPU
     (texto rasterizado uma vez, só desliza a textura pronta). */
  will-change: transform;
}
.hero-marquee-item {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  display: flex;
  align-items: center;
  font-weight: 400;
  margin-right: 24px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 980px) {
  /* Tablet: hero compacto, marquee/dots visíveis sem scroll. */
  .hero {
    height: 100vh;
    min-height: 640px;
    max-height: 820px;
    padding-top: 96px;
    padding-bottom: 100px;
  }
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    min-height: auto;
    padding-top: 28px;
  }
  .hero-copy { max-width: 100%; min-height: auto; }
  .hero-stats { max-width: 100%; }
  .hero-meta-line { font-size: 10.5px; }
}

@media (max-width: 640px) {
  /* Mobile: h1 60%, sub+ctas 40% esq, stats fills 60% dir. */
  .hero {
    min-height: 620px;
    max-height: 100svh;
    padding-top: 120px;      /* espaço pra data caber abaixo da pill */
    padding-bottom: 88px;    /* room acima do marquee (era 110 — folga excessiva) */
    align-items: flex-end;   /* bloco ancorado embaixo à esquerda */
  }
  .hero-grid {
    gap: 14px;
    padding-top: 30px;
  }
  .hero-h1 { max-width: 60%; }

  /* Cidade quebra pra 2ª linha (o "·" separador some, já implícito na quebra) */
  .hero-meta-citybreak { display: block; }
  .hero-meta-sep { display: none; }
  .hero-meta-text { white-space: normal; }

  /* Botões: mostra o conjunto mobile, esconde o desktop */
  .hero-ctas-grid.hero-ctas-desktop { display: none; }
  .hero-ctas-grid.hero-ctas-mobile { display: flex; }

  /* Bottom row mobile: stack-left 40% + stats 60% (fills resto).
     align-items: stretch → CTAs esticam pra altura igual stats. */
  .hero-bottom-row {
    gap: 10px;
    align-items: stretch;
  }
  .hero-left-stack {
    width: 40%;
    flex: 0 0 40%;
    gap: 8px;
    justify-content: flex-end; /* sub no topo, ctas grudados no bottom */
  }
  .hero-stats {
    flex: 1 1 auto;
    max-width: 56%;
  }
  /* CTAs grid no mobile: column flex, fills altura disponível */
  .hero-ctas-grid {
    flex: 1 1 auto;       /* cresce pra ocupar altura do parent */
    align-items: stretch;
  }
  .hero-ctas-grid .btn {
    flex: 1 1 0;          /* cada botão = mesma altura, dividindo o espaço */
    min-height: 40px;
  }

  /* Data — linha discreta abaixo do H1, encolhe no mobile */
  .hero-meta-line { font-size: 8px; letter-spacing: 0.01em; }
  .hero-meta-line .hero-locale-dot-inline {
    width: 4px; height: 4px; margin-right: 5px;
    box-shadow: 0 0 0 2px rgba(255,153,0,0.18);
  }

  /* h1 + sub */
  .hero h1, .hero-h1 {
    font-size: clamp(22px, 5.8vw, 30px);
    line-height: 1.1;
    margin-bottom: 0;
  }
  .hero-sub {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 0;
  }

  /* CTAs: empilhados full-width DENTRO da coluna de 40% */
  .hero-ctas-grid {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .hero-ctas-grid .btn {
    font-size: 11.5px;
    padding: 9px 10px;
    border-radius: 10px;
    gap: 5px;
    width: 100%;
    justify-content: center;
    flex: 0 0 auto; /* sem grow no mobile */
  }
  .hero-ctas-grid .btn svg { width: 11px; height: 11px; }

  /* Stats compacto */
  .hero-stats {
    padding: 8px 10px !important;
  }
  .hero-stats .hero-stat-row {
    padding: 3px 1px !important;
    gap: 4px;
  }
  .hero-stat-label { font-size: 6.5px; letter-spacing: 0.08em; }
  .hero-stat-value { font-size: 11px; }
  .hero-stat-value .unit { font-size: 7.5px; margin-left: 2px; }
}

/* Phones MUITO pequenos (≤360px): empilha vertical */
@media (max-width: 360px) {
  .hero-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-left-stack, .hero-stats {
    width: 100%;
    flex: 0 0 auto;
    max-width: 100%;
  }
}

/* ---------- Logos / parceiros ---------- */
.logos {
  background: var(--bg-2);
  padding: 56px 0;
}
.logos-head {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.logos-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
.logos-row .logo-tile {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
  border-right: 1px solid var(--line-2);
}
.logos-row .logo-tile:last-child { border-right: 0; }
.logos-row .logo-tile:hover { opacity: 1; filter: none; color: var(--navy); }
@media (max-width: 720px) {
  .logos-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .logos-row .logo-tile:nth-child(3n) { border-right: 0; }
}

/* ---------- Como funciona ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin-bottom: 56px;
  display: block;
}
.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.55; }
.step-icon {
  position: absolute;
  top: 40px;
  right: 28px;
  width: 28px;
  height: 28px;
  color: var(--ink-2);
  opacity: 0.4;
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}

/* ---------- Para quem ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aud-card {
  background: var(--navy-2);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, background 0.3s;
  border: 1px solid rgba(255,255,255,0.06);
}
.aud-card:hover { transform: translateY(-4px); }
.aud-card.featured {
  background: linear-gradient(135deg, #1c264a, #131c3a 60%);
}
.aud-card.featured::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, var(--orange) 0%, transparent 60%);
  opacity: 0.18;
  filter: blur(40px);
}
.aud-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aud-tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}
.aud-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.aud-desc { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.55; margin-bottom: 32px; }
.aud-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.aud-meta-row {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}
.aud-meta-row strong { font-family: var(--font-display); font-weight: 500; color: white; }
@media (max-width: 880px) { .audience { grid-template-columns: 1fr; } }

/* ---------- Financiamento ---------- */
.financing {
  background:
    var(--dot-pattern) 0 0 / var(--dot-size),
    var(--navy);
  color: white;
  border-radius: var(--radius-xl);
  padding: 64px;
  margin: 0 24px;
  position: relative;
  overflow: hidden;
}
.financing::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  background: radial-gradient(ellipse at right, rgba(255,153,0,0.18), transparent 60%);
  pointer-events: none;
}
.financing-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.banks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}
.bank-tile {
  padding: 28px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
}
.bank-tile:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); }
.bank-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.bank-meta { font-size: 11px; color: rgba(255,255,255,0.5); font-family: var(--font-mono); letter-spacing: 0.05em; }
@media (max-width: 880px) {
  .financing { padding: 40px 28px; }
  .banks-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  cursor: pointer;
  transition: background 0.18s;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.faq-q-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.faq-item.open .faq-q-toggle { background: var(--orange); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 70ch;
}
.faq-item.open .faq-a { max-height: 360px; padding-top: 16px; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: var(--navy);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  margin: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 100%, rgba(255,255,255,0.3), transparent 50%);
  pointer-events: none;
}
.cta-strip h2 { font-size: clamp(24px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.cta-strip p { color: rgba(12,20,44,0.75); margin-top: 10px; max-width: 50ch; }
.cta-strip-actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
@media (max-width: 880px) {
  .cta-strip { grid-template-columns: 1fr; padding: 28px 24px; }
}

/* ---------- Map / contact ---------- */
.map-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-info {
  padding: 56px 48px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.map-canvas {
  background: var(--navy);
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.map-canvas iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255,153,0,0.18), 0 0 24px rgba(255,153,0,0.7);
  z-index: 2;
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  animation: pulse-ring 2.4s infinite;
}
.map-streets {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(20deg, transparent 48%, rgba(255,255,255,0.08) 48%, rgba(255,255,255,0.08) 52%, transparent 52%),
    linear-gradient(110deg, transparent 48%, rgba(255,255,255,0.08) 48%, rgba(255,255,255,0.08) 52%, transparent 52%),
    linear-gradient(160deg, transparent 49%, rgba(255,153,0,0.18) 49%, rgba(255,153,0,0.18) 51%, transparent 51%);
}
.contact-row {
  display: flex;
  align-items: start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-of-type { border-bottom: 0; }
.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,153,0,0.10);
  color: var(--brand-orange, #ff9900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.22s, transform 0.22s;
}
.contact-row:hover .contact-icon {
  background: rgba(255,153,0,0.20);
  transform: scale(1.04);
}
.contact-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-value { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; }
/* Mobile: força "Seg–Sex: 08h–18h | Sáb: 08h–12h" em 1 linha (era quebrando "12h"). */
@media (max-width: 880px) {
  .contact-value { font-size: 14.5px; letter-spacing: -0.015em; }
  /* Linha de Atendimento (3ª contact-row) — força nowrap pra horário não quebrar */
  .contact-row:last-child .contact-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 880px) {
  .map-block { grid-template-columns: 1fr; }
  .map-info { padding: 32px 24px; }
}

/* ---------- Footer ---------- */
.footer {
  background:
    var(--dot-pattern) 0 0 / var(--dot-size),
    var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px; /* desktop: mais compacto que antes */
}
.footer-grid {
  display: grid;
  /* Brand · Navegação · Legal · Atendimento (último, mais largo) */
  grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 36px;
  align-items: start;
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col a:hover { color: white; }
.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: white;
  margin-bottom: 12px;
}
.footer-brand-mark .nav-logo-mark { width: 32px; height: 32px; }
/* Map-info tem fundo branco — usa texto escuro na logo */
.map-info .footer-brand-mark { color: var(--navy); }
.footer-brand-tag { font-size: 14px; max-width: 30ch; line-height: 1.55; }
/* Barra final — copyright · separador · links legais · separador · tagline,
   tudo numa linha só no desktop. No mobile os separadores somem e cada
   grupo (copyright / legal / tagline) vira sua própria linha centralizada. */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-sep { opacity: 0.3; }

/* ============================================================
   FOOTER · COLUNA ATENDIMENTO (itens com ícone)
   --------------------------------------------------------------
   Ícone vertically centered com o bloco strong+span — fix do
   desajuste visual quando o texto tem 2 linhas (Horários, Localização).
   ============================================================ */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact > li {
  display: flex;
  align-items: center; /* centro vertical em vez de flex-start */
  gap: 12px;
  font-size: 14px;
}
/* Quando o item é um <a> (mailto, wa.me, etc.), espelha os mesmos estilos */
.footer-contact > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  transition: color 0.18s;
  flex: 1;
}
.footer-contact > li > a:hover { color: white; }
.footer-contact > li > a:hover .footer-contact-icon {
  background: rgba(255,153,0,0.15);
  border-color: rgba(255,153,0,0.35);
  color: var(--orange);
}
.footer-contact-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}
/* Força o SVG a ser um flex-item de bloco (sem isso o <svg> herda
   display:inline + vertical-align:baseline e fica ancorado no canto
   superior esquerdo do box, gerando offset visual de ~8px) */
.footer-contact-icon > svg {
  display: block;
  width: 16px;
  height: 16px;
}
.footer-contact-text { flex: 1; min-width: 0; }
.footer-contact strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  color: white;
  margin-bottom: 2px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
/* IMPORTANTE: usa .footer-contact-text span (não .footer-contact span)
   pra não vazar e sobrescrever o display:inline-flex do .footer-contact-icon
   (que também é um <span>) */
.footer-contact-text span {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   FOOTER · REDES SOCIAIS (estilo da imagem de referência)
   --------------------------------------------------------------
   - Círculo escuro com ícone branco por padrão
   - :hover → fundo branco 100% + ícone na cor da marca
   - Pulse discreto enquanto o mouse está sobre o ícone
   ============================================================ */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: white;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s, box-shadow 0.22s;
  will-change: transform;
}
.footer-social svg { width: 16px; height: 16px; transition: color 0.22s; }

/* Hover: fundo branco + cor da marca + pulso */
.footer-social:hover {
  background: #ffffff;
  border-color: #ffffff;
  animation: footer-social-pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.0);
}
.footer-social:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Cor de marca por rede no estado hover (via atributo data-brand) */
.footer-social[data-brand="facebook"]:hover  { color: #1877F2; }
.footer-social[data-brand="youtube"]:hover   { color: #FF0000; }
.footer-social[data-brand="linkedin"]:hover  { color: #0A66C2; }
.footer-social[data-brand="instagram"]:hover { color: #E4405F; }
.footer-social[data-brand="whatsapp"]:hover  { color: #25D366; }

@keyframes footer-social-pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(255,255,255,0.55); }
  60%  { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(255,255,255,0);    }
  100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(255,255,255,0);    }
}

@media (prefers-reduced-motion: reduce) {
  .footer-social:hover { animation: none; transform: scale(1.05); }
}

/* ============================================================
   FOOTER · RESPONSIVO
   --------------------------------------------------------------
   Desktop (>1080): 4 colunas (Brand · Navegação · Recursos · Atendimento).
                    Legal virou barra compacta no footer-bottom (era coluna
                    própria, mas com só 3 itens ficava desequilibrada ao
                    lado de Navegação, que tinha 8).
   Tablet (≤1080):  2x2 — brand+atendimento em cima · nav+recursos embaixo
                    (atendimento sobe pra ficar perto do brand, mais útil)
   Mobile (≤640):   stacked compacto — brand · nav+recursos lado a lado
                    (4 itens cada, equilibrado) · atendimento em 2 colunas
   ============================================================ */
@media (max-width: 1080px) {
  .footer { padding: 48px 0 22px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }
  /* Reordena: brand · atendimento · navegação · recursos */
  .footer-col-brand    { order: 1; }
  .footer-col-contact  { order: 2; }
  .footer-grid > .footer-col:nth-of-type(2) { order: 3; } /* Navegação */
  .footer-grid > .footer-col:nth-of-type(3) { order: 4; } /* Recursos */
}

@media (max-width: 640px) {
  .footer { padding: 40px 0 20px; }
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-bottom: 28px;
  }
  /* Brand ocupa a linha inteira no topo */
  .footer-col-brand    { grid-column: 1 / -1; order: 1; }
  /* Navegação + Recursos lado a lado (4 itens cada — equilibrado) */
  .footer-grid > .footer-col:nth-of-type(2) { order: 2; } /* Navegação */
  .footer-grid > .footer-col:nth-of-type(3) { order: 3; } /* Recursos */
  /* Atendimento ocupa a linha inteira no fim, com itens em 2 colunas
     iguais (minmax(0,1fr) impede que o e-mail longo "estique" a coluna) */
  .footer-col-contact  { grid-column: 1 / -1; order: 4; }
  .footer-col-contact .footer-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 16px;
  }
  /* Permite que o e-mail quebre em palavras menores quando estreito */
  .footer-col-contact .footer-contact-text span { word-break: break-word; }

  .footer-brand-tag { max-width: none; }
  /* Separadores só fazem sentido numa linha só (desktop) — no mobile
     cada grupo vira sua própria linha centralizada. */
  .footer-sep { display: none; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  /* Os 3 links legais precisam caber lado a lado numa linha só —
     fonte menor + gap reduzido + sem letter-spacing (senão "Garantias"
     quebra pra 2ª linha). */
  .footer-legal {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0;
  }
  /* Copyright e tagline numa linha só — sem quebra interna.
     letter-spacing removido + fonte um pouco menor: é o que sobra de
     espaço faltando pra "© 2026 Taiyō Solar · CNPJ ..." caber em 1 linha. */
  .footer-bottom > span {
    font-size: 10.5px;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

/* Mobile: Atendimento volta a 1 coluna pra evitar quebra feia.
   Antes era só ≤380px; agora ≤480px pra cobrir iPhones modernos
   (Pro/Plus tem ~390-430px de viewport). */
@media (max-width: 480px) {
  .footer-col-contact .footer-contact { grid-template-columns: 1fr; }
}

/* ============================================================
   ENDEREÇO no rodapé — 2 linhas no mobile e desktop
   Linha 1: "Praça da República, 06 · Sala 23"
   Linha 2: "Centro · Catanduva, SP"
   ============================================================ */
.footer-addr {
  display: block;
}
.footer-addr-line {
  display: block;
  white-space: nowrap; /* impede quebra dentro de cada chunk */
}
@media (max-width: 480px) {
  /* Em telas bem estreitas, permite wrap se ainda não couber */
  .footer-addr-line { white-space: normal; }
}
