/* ==========================================================================
   UNIÃO ACESSÓRIOS — style.css
   Tokens > Base > Layout > Componentes > Seções > Responsivo
   ========================================================================== */

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, button { font-family: inherit; }

/* ---------- Tokens ---------- */
:root {
  /* Cor */
  --c-void: #05070A;
  --c-navy: #0B1220;
  --c-navy-raised: #101A34;
  --c-navy-card: #0E1729;
  --c-royal: #1B2A6E;
  --c-blue: #3355FF;
  --c-blue-dim: #24408A;
  --c-ink: #F3F5FA;
  --c-mist: #98A1B8;
  --c-mist-dim: #626B85;
  --c-line: rgba(255, 255, 255, 0.08);
  --c-line-strong: rgba(255, 255, 255, 0.16);

  /* Tipografia */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.75rem, 1.5rem + 1vw, 2.35rem);
  --fs-2xl: clamp(2.35rem, 1.8rem + 2.4vw, 3.5rem);
  --fs-hero: clamp(2.75rem, 1.9rem + 5vw, 5.75rem);

  /* Espaçamento */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 5.5rem;
  --sp-9: 7.5rem;

  /* Formas */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;

  --shadow-card: 0 24px 48px -24px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 60px rgba(51, 85, 255, 0.28);

  --t-fast: 180ms ease;
  --t-base: 280ms ease;
  --t-slow: 420ms ease;

  --container: 1240px;
  --pad-inline: clamp(1.25rem, 4vw, 3rem);
  --header-h: 84px;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  background: var(--c-navy);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
p { color: var(--c-mist); max-width: 62ch; }

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

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografia de seção ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-blue);
  margin-bottom: var(--sp-2);
}
.section-head { max-width: 640px; margin-bottom: var(--sp-6); }
.section-title { font-size: var(--fs-2xl); color: var(--c-ink); }
.section-subtitle { font-size: var(--fs-md); margin-top: var(--sp-3); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  padding: 0.85em 1.7em;
  border-radius: var(--r-full);
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn--primary { background: var(--c-blue); color: #fff; box-shadow: 0 12px 30px -10px rgba(51, 85, 255, 0.6); }
.btn--primary:hover { background: #4a68ff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--c-ink); border: 1.5px solid var(--c-line-strong); }
.btn--outline:hover { border-color: var(--c-blue); color: var(--c-blue); transform: translateY(-2px); }
.btn--ghost { background: var(--c-royal); color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-blue); transform: translateY(-2px); }
.btn--sm { padding: 0.6em 1.3em; font-size: 0.9rem; }
.btn--lg { padding: 1em 2.1em; font-size: 1.2rem; }
.btn--xl { padding: 1.15em 2.6em; font-size: 1.35rem; }
.btn--block { width: 100%; margin-top: var(--sp-4); }

/* ==========================================================================
   05. HEADER
   ========================================================================== */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 1.1rem;
  background: rgba(5, 7, 10, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), padding var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.header.is-scrolled {
  background: rgba(8, 12, 22, 0.92);
  padding-block: 0.75rem;
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-card);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__main { font-family: var(--font-display); font-size: 1.5rem; color: var(--c-ink); letter-spacing: 0.04em; }
.logo__sub { font-family: var(--font-body); font-size: 0.6rem; font-weight: 600; color: var(--c-mist); letter-spacing: 0.32em; margin-top: 2px; }

.nav { display: none; align-items: center; gap: var(--sp-6); }
.nav__link { font-size: 0.95rem; font-weight: 500; color: var(--c-ink); position: relative; padding-block: 4px; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--c-blue); transition: right var(--t-base);
}
.nav__link:hover::after { right: 0; }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }
.header__cta { display: none; }

.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--c-line-strong); color: var(--c-ink);
}
.hamburger .icon { width: 20px; height: 20px; }

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--c-navy);
  display: flex; flex-direction: column;
  padding: 1.1rem var(--pad-inline) 2rem;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu:not([hidden]) { animation: menuIn 0.35s ease both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-7); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: auto; }
.mobile-menu__link { font-family: var(--font-display); font-size: 2rem; color: var(--c-ink); letter-spacing: 0.02em; }

/* ==========================================================================
   06. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + var(--sp-6)) var(--sp-8);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 85% 10%, var(--c-royal) 0%, var(--c-navy) 45%, var(--c-void) 100%); }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--c-line) 1px, transparent 1px), linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 75%);
  opacity: 0.5;
}
.hero__glow {
  position: absolute; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  right: -12%; top: -18%;
  background: radial-gradient(circle, rgba(51,85,255,0.35), transparent 65%);
  filter: blur(10px);
}
.hero__car {
  position: absolute; right: -4%; bottom: 4%;
  width: min(60vw, 640px);
  color: var(--c-blue);
  opacity: 0.35;
}
.hero__content { position: relative; max-width: 720px; }
.hero__eyebrow { color: var(--c-blue); }
.hero__title { font-size: var(--fs-hero); color: var(--c-ink); }
.hero__subtitle { font-size: var(--fs-md); margin-top: var(--sp-4); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__info { margin-top: var(--sp-5); font-size: var(--fs-xs); color: var(--c-mist-dim); letter-spacing: 0.02em; }

/* Sequência única de entrada do hero (uma única vez, ao carregar) */
.hero__eyebrow, .hero__title, .hero__subtitle, .hero__actions, .hero__info {
  opacity: 0; transform: translateY(18px);
  animation: heroIn 0.85s ease forwards;
}
.hero__eyebrow { animation-delay: 0.05s; }
.hero__title { animation-delay: 0.18s; }
.hero__subtitle { animation-delay: 0.4s; }
.hero__actions { animation-delay: 0.58s; }
.hero__info { animation-delay: 0.74s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   07. BARRA DE DESTAQUES
   ========================================================================== */
.highlights { background: var(--c-navy-card); border-block: 1px solid var(--c-line); padding-block: var(--sp-6); }
.highlights__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-4); }
.highlight { display: flex; gap: var(--sp-3); align-items: flex-start; padding-right: var(--sp-3); }
.highlight__icon { width: 26px; height: 26px; color: var(--c-blue); margin-top: 2px; }
.highlight__title { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--c-ink); margin-bottom: 2px; }
.highlight__text { font-size: 0.85rem; }

/* ==========================================================================
   08. SERVIÇOS
   ========================================================================== */
.services { padding-block: var(--sp-9); }
.services__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.service-card {
  background: linear-gradient(165deg, var(--c-navy-raised), var(--c-navy-card));
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-base), border-color var(--t-base);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--c-line-strong); }
.service-card__icon { width: 34px; height: 34px; color: var(--c-blue); margin-bottom: var(--sp-3); }
.service-card__title { font-size: 1.5rem; color: var(--c-ink); margin-bottom: var(--sp-1); letter-spacing: 0.01em; }
.service-card__text { font-size: 0.9rem; margin-bottom: var(--sp-4); }

/* ==========================================================================
   09. CONVERSÃO
   ========================================================================== */
.conversion { position: relative; padding-block: var(--sp-8); overflow: hidden; }
.conversion__bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--c-void), var(--c-royal) 55%, var(--c-void));
}
.conversion__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 44px);
}
.conversion__inner { max-width: 640px; margin-inline: auto; text-align: center; }
.conversion__title { font-size: var(--fs-2xl); color: var(--c-ink); }
.conversion__text { margin: var(--sp-4) auto var(--sp-6); }

/* ==========================================================================
   10. POR QUE UNIÃO
   ========================================================================== */
.why-us { padding-block: var(--sp-9); }
.why-us__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.why-card { padding-top: var(--sp-4); border-top: 1px solid var(--c-line); }
.why-card__icon { width: 28px; height: 28px; color: var(--c-blue); margin-bottom: var(--sp-3); }
.why-card__title { font-size: 1.4rem; color: var(--c-ink); margin-bottom: var(--sp-1); }
.why-card__text { font-size: 0.9rem; }

/* ==========================================================================
   11. GALERIA
   ========================================================================== */
.gallery { padding-block: var(--sp-9); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 190px;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  text-align: left; width: 100%; height: 100%;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: transform var(--t-slow);
}
.gallery__ph .icon { width: 34px; height: 34px; }
.gallery__ph--a { background: linear-gradient(155deg, #1B2A6E, #0B1220); }
.gallery__ph--b { background: linear-gradient(155deg, #24408A, #0B1220); }
.gallery__ph--c { background: linear-gradient(155deg, #142055, #05070A); }
.gallery__ph--d { background: linear-gradient(155deg, #3355FF, #101A34); }
.gallery__ph--e { background: linear-gradient(155deg, #1B2A6E, #05070A); }
.gallery__ph--f { background: linear-gradient(155deg, #24408A, #142055); }
.gallery__item:hover .gallery__ph { transform: scale(1.08); }
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-3);
  font-size: 0.85rem; font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
}

.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: var(--sp-4); }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(5,7,10,0.86); backdrop-filter: blur(4px); }
.lightbox__box {
  position: relative; z-index: 1; width: min(92vw, 620px);
  background: var(--c-navy-card); border: 1px solid var(--c-line-strong);
  border-radius: var(--r-lg); padding: var(--sp-4); animation: menuIn 0.3s ease both;
}
.lightbox__visual { border-radius: var(--r-md); height: min(50vh, 380px); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); }
.lightbox__visual .icon { width: 48px; height: 48px; }
.lightbox__caption { margin-top: var(--sp-3); color: var(--c-ink); font-weight: 600; }
.lightbox__close {
  position: absolute; top: -14px; right: -14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-blue); color: #fff; display: flex; align-items: center; justify-content: center;
}
.lightbox__close .icon { width: 16px; height: 16px; }

/* ==========================================================================
   12. OFERTAS
   ========================================================================== */
.offers { padding-block: var(--sp-9); background: var(--c-navy-card); border-block: 1px solid var(--c-line); }
.offers__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.offer-card {
  border: 1.5px dashed var(--c-line-strong); border-radius: var(--r-md);
  padding: var(--sp-5); background: var(--c-navy);
}
.offer-card__icon { width: 26px; height: 26px; color: var(--c-blue); margin-bottom: var(--sp-2); }
.offer-card__title { font-size: 1.3rem; color: var(--c-ink); margin-bottom: var(--sp-1); }
.offer-card__text { font-size: 0.88rem; margin-bottom: var(--sp-4); }

/* ==========================================================================
   13. COMO FUNCIONA
   ========================================================================== */
.how { padding-block: var(--sp-9); }
.how__steps { display: flex; flex-direction: column; gap: var(--sp-6); counter-reset: step; }
.how__number { font-family: var(--font-display); font-size: 2.4rem; color: var(--c-blue); line-height: 1; display: block; margin-bottom: var(--sp-2); }
.how__title { font-size: 1.4rem; color: var(--c-ink); margin-bottom: var(--sp-1); }
.how__text { font-size: 0.9rem; }

/* ==========================================================================
   14. CTA FINAL
   ========================================================================== */
.final-cta { padding-block: var(--sp-9); background: linear-gradient(180deg, var(--c-navy), var(--c-void)); }
.final-cta__inner { max-width: 620px; margin-inline: auto; text-align: center; }
.final-cta__title { font-size: var(--fs-2xl); color: var(--c-ink); }
.final-cta__text { margin: var(--sp-4) auto var(--sp-6); }

/* ==========================================================================
   17. RODAPÉ
   ========================================================================== */
.footer { background: var(--c-void); padding-top: var(--sp-8); }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); padding-bottom: var(--sp-7); border-bottom: 1px solid var(--c-line); }
.footer__brand { max-width: 280px; }
.footer__tagline { color: var(--c-mist); margin-top: var(--sp-2); font-size: 0.9rem; }
.footer__heading { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--c-mist-dim); margin-bottom: var(--sp-3); }
.footer__col { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__link { display: inline-flex; align-items: flex-start; gap: 0.5em; color: var(--c-mist); font-size: 0.92rem; width: fit-content; }
.footer__link .icon { margin-top: 0.2em; }
.footer__link:hover { color: var(--c-ink); }
.footer__link--btn { text-align: left; }
.footer__bottom { padding-block: var(--sp-4); font-size: 0.8rem; color: var(--c-mist-dim); }

/* ==========================================================================
   16. WHATSAPP FLUTUANTE
   ========================================================================== */
.whatsapp-float {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 90;
  display: flex; align-items: center; gap: var(--sp-2);
  background: var(--c-blue); color: #fff;
  width: 58px; height: 58px; border-radius: var(--r-full);
  box-shadow: var(--shadow-glow), 0 10px 24px rgba(0,0,0,0.4);
  animation: floatPulse 2.8s ease-in-out infinite;
  overflow: hidden;
}
.whatsapp-float .icon { width: 26px; height: 26px; flex-shrink: 0; margin-inline: 16px; }
.whatsapp-float__label {
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width var(--t-base), opacity var(--t-base);
}
@media (hover: hover) {
  .whatsapp-float:hover, .whatsapp-float:focus-visible { border-radius: var(--r-full); }
  .whatsapp-float:hover .whatsapp-float__label, .whatsapp-float:focus-visible .whatsapp-float__label { max-width: 140px; opacity: 1; padding-right: 18px; }
}
@keyframes floatPulse { 0%, 100% { box-shadow: var(--shadow-glow), 0 10px 24px rgba(0,0,0,0.4); } 50% { box-shadow: 0 0 0 rgba(51,85,255,0), 0 10px 24px rgba(0,0,0,0.4); } }

/* ==========================================================================
   REVEAL AO ROLAR
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.services__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services__grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.services__grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.services__grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.why-us__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.why-us__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.why-us__grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.gallery__grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.gallery__grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.gallery__grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.gallery__grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.gallery__grid .reveal:nth-child(6) { transition-delay: 0.3s; }
.offers__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.offers__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.how__steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.how__steps .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVO — tablet (≥720px)
   ========================================================================== */
@media (min-width: 720px) {
  .highlights__grid { grid-template-columns: repeat(4, 1fr); }
  .highlight { border-left: 1px solid var(--c-line); padding-left: var(--sp-4); }
  .highlight:first-child { border-left: none; padding-left: 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why-us__grid { grid-template-columns: repeat(2, 1fr); }
  .offers__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1.1fr 0.8fr 0.8fr 1fr; }
  .how__steps { flex-direction: row; }
  .how__step { flex: 1; }
}

/* ==========================================================================
   RESPONSIVO — desktop (≥960px)
   ========================================================================== */
@media (min-width: 960px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .hamburger { display: none; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }

  .how__steps { position: relative; }
  .how__steps::before { content: ""; position: absolute; top: 1.2rem; left: 0; right: 0; height: 1px; background: var(--c-line); }
  .how__step { position: relative; padding-top: var(--sp-4); }
}

/* ==========================================================================
   RESPONSIVO — telas grandes / ultrawide (≥1600px)
   ========================================================================== */
@media (min-width: 1600px) {
  :root { --container: 1400px; }
  .hero__title { font-size: 6.5rem; }
}
