/*====================================================================
  JP GONÇALVES — SOLUÇÕES E TECNOLOGIA
  style.css — folha de estilo principal (index.html)
====================================================================*/

/*--------------------------RESET-----------------*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }
input, textarea { font: inherit; }

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

/*--------------------------DESIGN TOKENS-----------------*/
:root {
  /* Cores — base teal/dourado herdada da identidade JP Gonçalves */
  --ink: #0E2226;
  --ink-soft: #3C5459;
  --bg: #F6F5F1;
  --bg-elevated: #FFFFFF;
  --bg-sunken: #EFEEE8;

  --teal-900: #0B3335;
  --teal-800: #0F4144;
  --teal-700: #155457;
  --teal-600: #1C6669;
  --teal-500: #2C8286;
  --teal-line: rgba(15, 65, 68, 0.14);

  --gold-500: #E3AA3E;
  --gold-600: #C98F26;
  --gold-soft: rgba(227, 170, 62, 0.16);

  --white: #FFFFFF;
  --line: rgba(14, 34, 38, 0.10);

  /* Tipografia */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Espaçamento (escala de 8) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Transições */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Header — topbar + header empilhados dentro de .header-wrap */
  --header-h: 170px;
  --header-h-scrolled: 100px;
  --topbar-h: 40px;
  --total-header-h: 210px; /* fallback; o app.js sobrescreve com a altura real */
}

/*--------------------------BASE TYPOGRAPHY-----------------*/
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold-500);
}

h2.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  max-width: 18ch;
}

.section-lede {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: var(--sp-2);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--sp-3);
}

section { position: relative; background: var(--bg); scroll-margin-top: var(--total-header-h); }
.section-pad { padding-block: 60px; }
@media (min-width: 768px)  { .section-pad { padding-block: 96px; } }
@media (min-width: 1024px) { .section-pad { padding-block: 140px; } }

.section-sunken { background: var(--bg-sunken); }
.section-dark {
  background: linear-gradient(175deg, var(--teal-900), var(--teal-800));
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-dark .section-lede { color: rgba(255,255,255,0.72); }
.section-dark .eyebrow { color: var(--gold-500); }

/*--------------------------BUTTONS-----------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 380ms var(--ease), box-shadow 380ms var(--ease), background 300ms var(--ease), color 300ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--teal-900);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(227, 170, 62, 0.55);
  background: var(--gold-600);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--teal-line);
  color: var(--teal-800);
}
.btn-outline-dark:hover {
  background: var(--teal-900);
  color: var(--white);
  transform: translateY(-3px);
  border-color: var(--teal-900);
}
.btn-sm { padding: 11px 20px; font-size: 0.85rem; }

/*====================================================================
  HEADER
====================================================================*/
/*--------------------------HEADER-----------------*/
/* Wrapper único: topbar e header empilhados em coluna, um só position:fixed */
.header-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--teal-700);
  transition: background 420ms var(--ease), backdrop-filter 420ms var(--ease), box-shadow 420ms var(--ease), height 300ms var(--ease);
}

/* Barra de contato fininha no topo (some ao rolar) */
.topbar {
  height: 0;
  overflow: hidden;
  background: var(--teal-700);
  transition: height 320ms var(--ease);
}
.topbar.is-visible { height: var(--topbar-h); }
.topbar .container {
  max-width: 1600px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
}
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color 250ms; }
.topbar a:hover { color: var(--gold-500); }

.site-header.is-scrolled {
  background: rgba(15, 65, 68, 0.68);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.35);
  height: var(--header-h-scrolled);
}

.site-header .container {
  max-width: 1600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 2;
}
.brand-mark {
  height: 150px;
  width: auto;
  position: relative;
  transition: height 300ms var(--ease);
}
.brand-mark img { height: 100%; width: auto; object-fit: contain; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--white);
  letter-spacing: -0.01em;
  transition: font-size 300ms var(--ease);
}
.brand-name span { color: var(--gold-500); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 18px 24px;
  border-radius: 100px;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  transition: background 250ms var(--ease), color 250ms var(--ease), padding 300ms var(--ease), font-size 300ms var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link.is-active { background: var(--gold-500); color: var(--teal-900); }
.nav-link.is-active:hover { background: var(--gold-600); color: var(--teal-900); }

.nav-divider {
  width: 1px; height: 22px;
  background: rgba(255,255,255,0.18);
  margin-inline: 6px;
}
.nav-link-external {
  padding: 16px 26px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  transition: all 250ms var(--ease);
}
.nav-link-external:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
  transform: translateY(-2px);
}

/* Estado "scrolled": o header encolhe de propósito — os elementos internos
   voltam a um tamanho compacto, porém ainda maior que o padrão original. */
.site-header.is-scrolled .brand-mark { height: 80px; }
.site-header.is-scrolled .brand-name { font-size: 1.3rem; }
.site-header.is-scrolled .nav-link { padding: 13px 22px; font-size: 0.92rem; }
.site-header.is-scrolled .nav-link-external { padding: 12px 20px; font-size: 0.86rem; }

/* Hamburguer / mobile */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 320ms var(--ease), opacity 250ms var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--teal-800);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: var(--sp-4);
    gap: var(--sp-1);
    transform: translateX(100%);
    transition: transform 460ms var(--ease);
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-link, .nav-link-external { text-align: center; font-size: 1.1rem; padding: 16px; }
  .nav-divider { width: 60%; height: 1px; margin: var(--sp-2) auto; }
  .nav-toggle { display: flex; }
  .topbar { display: none; }
}

/*====================================================================
  HERO
====================================================================*/
/*--------------------------HERO-----------------*/
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--total-header-h);
  overflow: hidden;
  background: var(--teal-900);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Vídeo de fundo — sem áudio, em loop. Basta apontar o src abaixo quando o
   arquivo for entregue pelo cliente. Enquanto isso, o fallback (pattern +
   gradiente) cobre o hero automaticamente. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.hero-video.is-ready { opacity: 1; }

.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(227,170,62,0.16), transparent 45%),
    linear-gradient(175deg, var(--teal-900), #082527 78%);
}
.hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--teal-900) 0%, rgba(11,51,53,0.55) 38%, rgba(11,51,53,0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--sp-8);
  color: var(--white);
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-3);
}
.hero-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 0 rgba(227,170,62,0.6);
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(227,170,62,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(227,170,62,0); }
  100% { box-shadow: 0 0 0 0 rgba(227,170,62,0); }
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  max-width: 16ch;
  font-weight: 700;
  color: var(--white);
}
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero-title .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 900ms var(--ease);
}
.hero.is-loaded .hero-title .word > span { transform: translateY(0); }
.hero-title .accent { color: var(--gold-500); }

.hero-sub {
  margin-top: var(--sp-3);
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms var(--ease) 500ms, transform 800ms var(--ease) 500ms;
}
.hero.is-loaded .hero-sub { opacity: 1; transform: translateY(0); }

.hero-cta {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms var(--ease) 700ms, transform 800ms var(--ease) 700ms;
}
.hero.is-loaded .hero-cta { opacity: 1; transform: translateY(0); }

.hero-scroll {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 34px;
  background: linear-gradient(var(--gold-500), transparent);
  animation: scroll-line 1.8s infinite var(--ease);
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/*====================================================================
  SIGNAL LINE (elemento assinatura — trilha de sinal / cabeamento)
====================================================================*/
/*--------------------------SIGNAL LINE-----------------*/
.signal-rail {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--teal-line);
  display: none;
}
.signal-rail::before {
  content: '';
  position: absolute;
  left: -2px; top: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 12px 2px rgba(227,170,62,0.5);
  animation: signal-travel 6s linear infinite;
}
@keyframes signal-travel {
  0% { top: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@media (min-width: 1200px) {
  .signal-rail { display: block; }
}

/*====================================================================
  SCROLL REVEAL (utilitário genérico)
====================================================================*/
/*--------------------------REVEAL-----------------*/
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 750ms var(--ease), transform 750ms var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/*====================================================================
  EMPRESA
====================================================================*/
/*--------------------------EMPRESA-----------------*/
.empresa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 960px) {
  .empresa-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-12); }
}
.empresa-text p { margin-top: var(--sp-2); color: var(--ink-soft); max-width: 58ch; }

.empresa-diferenciais {
  margin-top: var(--sp-4);
  display: grid;
  gap: 14px;
}
.diferencial-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 4px;
}
.diferencial-item .ico {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  color: var(--gold-600);
}
.diferencial-item .ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; }
.diferencial-item span { color: var(--ink-soft); font-size: 0.98rem; }

.empresa-panel {
  position: relative;
  background: var(--teal-900);
  border-radius: 20px;
  padding: var(--sp-6);
  color: var(--white);
  overflow: hidden;
}
.empresa-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(227,170,62,0.18), transparent 55%);
}
.mercado-list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-top: var(--sp-2);
}
.mercado-list li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding-block: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}

/*====================================================================
  STATS
====================================================================*/
/*--------------------------STATS-----------------*/
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4) var(--sp-3);
}
@media (min-width: 720px)  { .stats-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .stats-strip { grid-template-columns: repeat(6, 1fr); } }

.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--gold-500);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.stat-label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.68);
  max-width: 14ch;
  margin-inline: auto;
}

/*====================================================================
  SERVIÇOS
====================================================================*/
/*--------------------------SERVICOS-----------------*/
.servicos-grid {
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
@media (min-width: 720px)  { .servicos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .servicos-grid { grid-template-columns: repeat(3, 1fr); } }

.servico-card {
  background: var(--bg-elevated);
  padding: var(--sp-4);
  transition: background 320ms var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.servico-card:hover { background: var(--bg-sunken); }
.servico-card .ico {
  width: 40px; height: 40px;
  color: var(--teal-700);
  margin-bottom: var(--sp-2);
}
.servico-card .ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }
.servico-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.servico-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* Mídia (imagem do serviço) — fundo neutro até o arquivo ser entregue */
.servico-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: var(--sp-2);
  background-color: var(--bg-sunken);
}
.servico-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.servico-card:hover .servico-media img { transform: scale(1.05); }

/* Lista de itens do serviço */
.servico-lista { margin: 10px 0 var(--sp-2); display: grid; gap: 6px; }
.servico-lista li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}
.servico-lista li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 1px;
  background: var(--gold-600);
}

/* Botão de orçamento sempre fixo ao fim do card */
.servico-card .btn { margin-top: auto; align-self: flex-start; }

.servico-card::after {
  content: '';
  position: absolute;
  left: var(--sp-4); right: var(--sp-4); bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}
.servico-card:hover::after { transform: scaleX(1); }

/* Card em destaque — "Infraestrutura Civil" ocupa 2 colunas no grid desktop */
.servico-card--destaque {
  grid-column: span 2;
}
@media (max-width: 1079px) {
  .servico-card--destaque { grid-column: span 1; }
}
.servico-card--destaque .servico-media { aspect-ratio: 21 / 9; }
.servico-card--destaque::before {
  content: 'Destaque';
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: var(--gold-500);
  color: var(--teal-900);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  z-index: 2;
}

/* Soluções (grid secundário, 4 cards) */
.solucoes-grid {
  margin-top: var(--sp-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
@media (min-width: 640px)  { .solucoes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .solucoes-grid { grid-template-columns: repeat(4, 1fr); } }
.solucao-card {
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elevated);
  overflow: hidden;
  transition: transform 350ms var(--ease), border-color 350ms var(--ease);
}
.solucao-card:hover { transform: translateY(-6px); border-color: var(--gold-500); }
.solucao-card .ico {
  display: flex;
  width: 32px; height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.solucao-card .ico svg { display: block; width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }
.solucao-card h4 { font-size: 0.98rem; margin-bottom: 6px; }
.solucao-card p { font-size: 0.86rem; color: var(--ink-soft); }

/*====================================================================
  CLIENTES
====================================================================*/
/*--------------------------CLIENTES-----------------*/
.clientes-carousel {
  margin-top: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  position: relative;
}
.carousel-viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clientes-track {
  display: flex;
  gap: var(--sp-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 4px;
}
.clientes-track::-webkit-scrollbar { display: none; }

.cliente-logo {
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: 140px;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding-inline: 28px;
  text-align: center;
}
.cliente-logo img {
  height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--teal-line);
  color: var(--teal-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease), transform 250ms var(--ease);
}
.carousel-arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.carousel-arrow:hover {
  background: var(--teal-900);
  border-color: var(--teal-900);
  color: var(--white);
  transform: translateY(-2px);
}

.carousel-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: -26px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 250ms var(--ease), transform 250ms var(--ease);
}
.carousel-dots button.is-active { background: var(--gold-500); transform: scale(1.35); }

@media (max-width: 640px) {
  .carousel-dots { bottom: -22px; }
}

/*====================================================================
  CTA ORÇAMENTO
====================================================================*/
/*--------------------------CTA-----------------*/
.cta-panel {
  position: relative;
  border-radius: 24px;
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(175deg, var(--teal-900), var(--teal-700));
  color: var(--white);
}
.cta-panel .hero-circuit { opacity: 0.35; }
.cta-panel h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta-panel p { color: rgba(255,255,255,0.75); max-width: 46ch; margin: var(--sp-2) auto 0; }
.cta-panel .hero-cta { justify-content: center; margin-top: var(--sp-4); opacity: 1; transform: none; }

/*====================================================================
  CONTATO
====================================================================*/
/*--------------------------CONTATO-----------------*/
/* Cards de informação (telefone, whatsapp, e-mail, atendimento) */
.contato-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}
@media (min-width: 700px) {
  .contato-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .contato-cards { grid-template-columns: repeat(5, 1fr); }
}
.contato-card {
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 350ms var(--ease), border-color 350ms var(--ease);
}
.contato-card:hover { transform: translateY(-6px); border-color: var(--gold-500); }
.contato-card .ico { width: 28px; height: 28px; color: var(--gold-600); margin-bottom: 4px; }
.contato-card .ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; }
.contato-card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contato-card-value { font-size: 0.9rem; color: var(--ink); }
a.contato-card-value:hover { color: var(--teal-700); }

.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 960px) {
  .contato-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-12); }
}

.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: var(--sp-4);
}
.form-row { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-2); }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 250ms, box-shadow 250ms;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { margin-top: var(--sp-2); font-size: 0.8rem; color: var(--ink-soft); }

/*====================================================================
  FOOTER
====================================================================*/
/*--------------------------FOOTER-----------------*/
.site-footer {
  background: var(--teal-900);
  color: rgba(255,255,255,0.78);
  padding-block: var(--sp-8) var(--sp-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: var(--sp-4); }
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { margin-top: var(--sp-2); font-size: 0.9rem; max-width: 34ch; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 10px; margin-top: var(--sp-3); }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all 300ms var(--ease);
}
.footer-social a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.footer-social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--teal-900); transform: translateY(-3px); }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--sp-2);
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.9rem; transition: color 250ms; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--gold-500); }

/*====================================================================
  BOTÕES FLUTUANTES
====================================================================*/
/*--------------------------FLOATING BUTTONS-----------------*/
.floating-btn {
  position: fixed;
  bottom: 24px;
  z-index: 150;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.35);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.floating-btn svg { width: 26px; height: 26px; }
.floating-btn:hover { transform: translateY(-4px) scale(1.05); }

.floating-whatsapp { right: 24px; background: #25D366; color: #fff; }
.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.55;
  animation: float-ping 2.4s infinite var(--ease);
}
.floating-instagram {
  left: 24px;
  color: #fff;
  background: linear-gradient(135deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4);
}
.floating-instagram::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #DD2A7B;
  opacity: 0.5;
  animation: float-ping 2.4s infinite var(--ease) 1.2s;
}
@keyframes float-ping {
  0% { transform: scale(0.9); opacity: 0.5; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.floating-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 250ms var(--ease);
}
.floating-instagram .floating-tooltip { right: auto; left: calc(100% + 12px); }
.floating-btn:hover .floating-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (max-width: 640px) {
  .floating-btn { width: 50px; height: 50px; bottom: 16px; }
  .floating-whatsapp { right: 16px; }
  .floating-instagram { left: 16px; }
}

/*====================================================================
  AMBIENT PARTICLES
====================================================================*/
/*--------------------------AMBIENT PARTICLES-----------------*/
/* Um canvas por seção, entre o fundo da seção e o seu conteúdo. */
.section-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* Garante que o conteúdo da seção fique acima do canvas de partículas. */
.section-pad > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .section-particles { display: none; }
}

/*--------------------------UTIL-----------------*/
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}