/* ─── TOKENS & UTILITIES ─── */
:root {
  --gold: #F5C200;
  --gold-dim: rgba(245,194,0,0.12);
  --gold-glow: rgba(245,194,0,0.25);
  --bg: #0A0A0A;
  --bg2: #111111;
  --bg3: #181818;
  --border: rgba(255,255,255,0.07);
  --text: #F0EBE0;
  --muted: rgba(240,235,224,0.5);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --r: 12px;
  --r-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-dim); border: 1px solid rgba(245,194,0,0.25);
  color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 100px;
  font-family: var(--font-head);
}
.tag::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #000;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 16px 32px; border-radius: 100px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px var(--gold-glow); }
.btn-primary svg { width: 20px; height: 20px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 16px 28px; border-radius: 100px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Typography */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  margin-top: 16px;
  text-wrap: balance;
}

/* ─── SCROLL REVEAL ─── */
@supports (animation-timeline: view()) {
  .reveal {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
  @keyframes revealUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* ─── NAV ─── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon { width: 36px; height: 36px; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 700; font-size: 17px;
  color: var(--gold); letter-spacing: .04em;
}
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-links li { margin: 0; list-style: none; }
.nav-links a {
  font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 7px 14px; border-radius: 100px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links .current-menu-item a { color: var(--text); background: rgba(255,255,255,.05); }

.nav-cta {
  display: flex; align-items: center; gap: 10px;
  background: var(--gold); color: #000; font-weight: 700;
  font-family: var(--font-head); font-size: 13px;
  padding: 10px 20px; border-radius: 100px;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--gold-glow); }
.nav-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── FOOTER ─── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-links ul { list-style: none; display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; font-family: var(--font-head); }
.footer-links a:hover { color: var(--gold); }

/* ─── STICKY WHATSAPP ─── */
#sticky-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  display: flex; align-items: center; gap: 12px;
  background: #25D366; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  padding: 14px 22px 14px 18px; border-radius: 100px;
  text-decoration: none; box-shadow: 0 8px 32px rgba(37,211,102,.35);
  transition: transform .2s, box-shadow .2s;
  animation: bounceIn .6s .5s both;
}
#sticky-wa:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(37,211,102,.5); }
#sticky-wa svg { width: 22px; height: 22px; flex-shrink: 0; }
@keyframes bounceIn {
  from { opacity: 0; transform: translateY(20px) scale(.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── HOME SECTIONS ─── */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(245,194,0,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(245,194,0,.06) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
  z-index: 1;
}
#hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.52) 38%, rgba(0,0,0,.22) 70%, rgba(0,0,0,.50) 100%),
    linear-gradient(180deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,.62) 100%),
    radial-gradient(ellipse 82% 74% at 50% 48%, rgba(0,0,0,0) 0%, rgba(0,0,0,.36) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media-inner { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #0A0A0A 0%, #1a1208 50%, #0A0A0A 100%); overflow: hidden; }
.hero-placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, rgba(245,194,0,.03) 0px, rgba(245,194,0,.03) 1px, transparent 1px, transparent 40px);
  display: flex; align-items: center; justify-content: center; font-family: monospace; font-size: 11px; color: rgba(245,194,0,.2); letter-spacing: .1em; text-transform: uppercase;
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero-tag { margin-bottom: 28px; }
.hero-h1 { font-family: var(--font-head); font-size: clamp(42px, 7vw, 88px); font-weight: 700; line-height: 1.0; letter-spacing: -.02em; margin-bottom: 24px; text-wrap: balance; }
.hero-h1 em { font-style: normal; color: var(--gold); display: block; }
.hero-h1,
.hero-sub {
  text-shadow: 0 5px 28px rgba(0,0,0,.78), 0 1px 2px rgba(0,0,0,.62);
}
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: rgba(240,235,224,.82); max-width: 540px; margin-bottom: 40px; line-height: 1.65; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* STATS BAR */
#stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 16px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.3; }

/* CLIENTES */
.clientes-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: center; }
.cliente-item {
  display: flex; align-items: center; justify-content: center; padding: 20px 16px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r);
  text-decoration: none; transition: border-color .25s, transform .2s, box-shadow .2s; aspect-ratio: 3/2;
}
.cliente-item:hover { border-color: rgba(245,194,0,.35); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.cliente-logo-placeholder {
  font-family: var(--font-head); font-size: 10px; font-weight: 700; color: rgba(240,235,224,.25);
  text-align: center; letter-spacing: .1em; text-transform: uppercase; line-height: 1.6;
}
.cliente-logo-placeholder span { display: block; font-size: 9px; color: rgba(240,235,224,.15); font-weight: 400; letter-spacing: .08em; }

/* CTA BOX */
.cta-box {
  background: linear-gradient(135deg, var(--bg2) 0%, #1a1208 100%);
  border: 1px solid rgba(245,194,0,.2);
  border-radius: 24px; padding: 80px 64px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(245,194,0,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(245,194,0,.04) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.cta-box::after {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,194,0,.1) 0%, transparent 70%); pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-title { font-family: var(--font-head); font-size: clamp(32px, 4.5vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 20px 0 16px; }
.cta-sub { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 auto 40px; }
.cta-ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ─── MENU MOBILE & RESPONSIVIDADE (FIX) ─── */
#mobile-menu-toggle {
    display: none; background: transparent; border: 1px solid var(--border); border-radius: 8px; width: 44px; height: 44px; color: var(--text); cursor: pointer; align-items: center; justify-content: center; z-index: 101; transition: background .2s; margin-left: auto; margin-right: 12px;
}
#mobile-menu-toggle:hover { background: var(--bg3); }
#mobile-menu-toggle svg { width: 22px; height: 22px; }
.line-1, .line-2, .line-3 { transition: transform .3s, opacity .3s; transform-origin: center; }

@media (max-width: 1024px) {
  /* Altera comportamento do menu para Canvas Lateral em Tablets e Celulares */
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100svh;
    background: rgba(10,10,10,0.98); backdrop-filter: blur(20px); border-left: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; padding: 100px 32px 40px;
    transition: right .4s cubic-bezier(.4,0,.2,1); box-shadow: -10px 0 40px rgba(0,0,0,0.5); z-index: 99;
  }
  .nav-links.active { right: 0; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .nav-links a { font-size: 16px; padding: 0; background: none !important; }
  
  #mobile-menu-toggle { display: flex; }
  #mobile-menu-toggle.open .line-1 { transform: translateY(6px) rotate(45deg); }
  #mobile-menu-toggle.open .line-2 { opacity: 0; }
  #mobile-menu-toggle.open .line-3 { transform: translateY(-6px) rotate(-45deg); }
  
  .clientes-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .cta-box { padding: 48px 32px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .clientes-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  #sticky-wa span { display: none; }
  #sticky-wa { padding: 16px; border-radius: 50%; }
}

/* GENERAL PAGE HEADER */
#page-hero {
  padding: 140px 0 72px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
#page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(245,194,0,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(245,194,0,.05) 1px, transparent 1px);
  background-size: 50px 50px; pointer-events: none;
}
#page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 110%, transparent 40%, var(--bg) 100%); pointer-events: none;
}
.page-title {
  font-family: var(--font-head); font-size: clamp(40px, 6vw, 72px);
  font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 18px;
}

/* ─── TESTIMONIALS ─── */
#testimonials { padding: 100px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.testimonials-carousel { position: relative; margin-top: 8px; }
.testimonials-viewport { overflow: hidden; width: 100%; }
.testimonials-grid {
  display: flex; gap: 24px; overflow-x: auto; overflow-y: visible; padding: 20px 0 24px;
  scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.testimonials-grid::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 calc((100% - 48px) / 3); min-width: 0; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 40px; scroll-snap-align: start;
  transition: border-color .3s; display: flex; flex-direction: column; justify-content: space-between;
}
.testimonial-card:hover { border-color: var(--gold-glow); }
.testimonial-stars { color: var(--gold); display: flex; gap: 4px; margin-bottom: 20px; font-size: 14px; }
.testimonial-text { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 28px; font-style: italic; overflow-wrap: anywhere; }
.testimonial-user { display: flex; align-items: center; gap: 16px; }
.testimonial-meta strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--gold); margin-bottom: 2px; }
.testimonial-meta span { font-size: 12px; color: var(--muted); }
.testimonial-nav {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(245,194,0,.28); background: rgba(17,17,17,.92); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transform: translateY(-50%); transition: background .2s, color .2s, border-color .2s, opacity .2s;
  box-shadow: 0 14px 34px rgba(0,0,0,.35); backdrop-filter: blur(8px);
}
.testimonial-nav:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.testimonial-nav:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.testimonial-nav svg { width: 18px; height: 18px; }
.testimonial-prev { left: -22px; }
.testimonial-prev svg { transform: rotate(180deg); }
.testimonial-next { right: -22px; }
.testimonial-dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.testimonial-dot {
  width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: rgba(245,194,0,.28);
  cursor: pointer; transition: width .2s, background .2s;
}
.testimonial-dot.is-active { width: 22px; background: var(--gold); }
.testimonial-empty { flex: 1 0 100%; }

@media (max-width: 1000px) {
  .testimonial-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 700px) {
  .testimonials-grid { gap: 14px; padding-bottom: 18px; }
  .testimonial-card { flex-basis: 100%; padding: 32px 24px; }
  .testimonial-nav { top: auto; bottom: -4px; transform: none; width: 40px; height: 40px; }
  .testimonial-prev { left: calc(50% - 78px); }
  .testimonial-next { right: calc(50% - 78px); }
  .testimonial-dots { min-height: 40px; margin-top: 14px; padding: 0 54px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   REFATORAÇÃO SEO/PERFORMANCE — adições ao CSS original
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── PERFORMANCE: CONTENT VISIBILITY ──────────────────────────────────────
   content-visibility: auto instrui o browser a pular layout/paint de seções
   fora do viewport até o usuário se aproximar (heurística de ~1 viewport).
   Ganho típico: 20–40% no tempo de renderização inicial.
   contain-intrinsic-size reserva o espaço antes do conteúdo ser renderizado,
   prevenindo CLS quando o browser finalmente processa a seção. */
#clientes,
#testimonials,
#cta-final {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

/* ─── HERO IMAGE ────────────────────────────────────────────────────────────
   Substitui o inline style="width:100%;height:100%;object-fit:cover;" removido
   do front-page.php. CSS em arquivo externo é cacheado; inline style não é. */
.hero-img,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── HERO IFRAME ───────────────────────────────────────────────────────────
   position:absolute + inset:0 garante que o iframe cubra o container sem
   forçar um height explícito no elemento pai — evita CLS no carregamento. */
.hero-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78svh);
  height: max(100svh, 56.25vw);
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

/* ─── SECTION CLASSES (substituem inline styles do front-page.php) ──────────
   Mover estilos de seção para o CSS permite cache do browser e elimina
   especificidade desnecessária de atributos inline. */
.section-clientes {
  padding: 64px 0;
  background: var(--bg);
}

.section-cta-final {
  padding: 120px 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

.text-muted {
  color: var(--muted);
}

/* LP Portfolio */
.lp-portfolio {
  padding: 96px 0;
  background: var(--bg);
}

.lp-portfolio .section-header {
  text-align: center;
}

.lp-portfolio .section-sub {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.lp-portfolio-card {
  position: relative;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg3);
}

.lp-portfolio-card.is-featured {
  grid-row: span 2;
  aspect-ratio: auto;
}

.lp-portfolio-card img,
.lp-portfolio-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-portfolio-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 22px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.86), transparent);
  color: var(--text);
  pointer-events: none;
}

.lp-portfolio-overlay strong,
.lp-portfolio-overlay span {
  display: block;
}

.lp-portfolio-overlay strong {
  font-family: var(--font-head);
  font-size: 14px;
  line-height: 1.3;
}

.lp-portfolio-overlay span {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.lp-portfolio-video-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-decoration: none;
}

.lp-portfolio-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  position: relative;
  opacity: .94;
}

.lp-portfolio-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-40%, -50%);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #000;
}

.lp-portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 12px;
  color: rgba(245,194,0,.45);
}

@media (max-width: 900px) {
  .lp-portfolio {
    padding: 64px 0;
  }

  .lp-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-portfolio-card.is-featured {
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .lp-portfolio {
    padding: 48px 0;
  }

  .lp-portfolio-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
}

/* ─── STATS: UL SEMÂNTICO ───────────────────────────────────────────────────
   front-page.php agora usa <ul> no lugar de <div> para os stats.
   Reset de list-style sem role="list" remove semântica no VoiceOver/Safari —
   por isso o role="list" foi adicionado no HTML. */
#stats ul.stats-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

#stats li.stat-item {
  list-style: none;
}

/* ─── TESTIMONIALS: ARTICLE/BLOCKQUOTE ─────────────────────────────────────
   Remove margin padrão do browser no <blockquote> para manter o design. */
.testimonial-text blockquote,
.testimonial-text p {
  margin: 0;
}

/* ─── CLIENTES: UL SEMÂNTICO ────────────────────────────────────────────────
   Mesmo padrão do stats: <ul> com list-style:none precisa de role="list" no HTML. */
.clientes-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clientes-grid li {
  list-style: none;
}

/* ─── ACESSIBILIDADE: FOCUS VISIBLE ────────────────────────────────────────
   :focus-visible mostra o outline apenas para navegação por teclado,
   não ao clicar com o mouse. Balanceia estética e acessibilidade. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── NAV SCROLLED STATE ────────────────────────────────────────────────────
   Classe aplicada via JS ao rolar — aumenta a sombra para destacar o header. */
#main-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Mobile polish */
img,
svg,
video,
iframe {
  max-width: 100%;
}

.logo,
.nav-cta,
.btn-primary,
.btn-ghost {
  min-width: 0;
}

.btn-primary,
.btn-ghost,
.nav-cta,
.wa-btn {
  max-width: 100%;
}

.section-title,
.page-title,
.hero-h1,
.lp-h1,
.cta-title {
  overflow-wrap: anywhere;
}

.lp-badge-icon,
.dor-card-icon,
.segmento-icon,
.dor-icon {
  flex: 0 0 auto;
}

@media (max-width: 1024px) {
  #main-nav {
    padding: 12px 0;
  }

  .nav-inner {
    gap: 10px;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .logo-text {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #mobile-menu-toggle {
    order: 3;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .nav-cta {
    order: 2;
    flex: 0 0 auto;
    padding: 10px 14px;
  }

  .nav-links {
    order: 4;
  }
}

@media (max-width: 700px) {
  #hero::after {
    background:
      linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.38) 42%, rgba(0,0,0,.84) 100%),
      linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.34) 100%);
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .hero-sub,
  .lp-sub,
  .page-sub {
    font-size: 16px;
    line-height: 1.6;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
  }

  .hero-ctas {
    align-items: stretch;
    width: 100%;
  }

  .cta-box,
  .pacote-box,
  .piloto-box {
    border-radius: 16px;
  }

  .pacote-feat,
  .info-card,
  .valor-item,
  .dor-item,
  .dif-item {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  #main-nav .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    max-width: calc(100vw - 158px);
    font-size: 15px;
  }

  .nav-cta {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .nav-cta span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .section-title,
  .page-title,
  .lp-h1 {
    letter-spacing: 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .segmentos-grid,
  .dores-grid,
  .servicos-grid,
  .team-grid,
  .faq-grid,
  .contact-layout {
    grid-template-columns: 1fr !important;
  }

  .servico-card,
  .segmento-card,
  .dor-card,
  .testimonial-card,
  .wa-card,
  .contact-form-wrap {
    padding: 28px 22px;
  }

  .footer-links ul {
    flex-direction: column;
    gap: 10px;
  }
}
