/* ============================================================================
   NEGO INSULFILM — styles.css
   Tema CLARO, automotivo, profissional. Destaque em azul "película".
   Variáveis de tema no :root para fácil customização.
   ============================================================================ */

:root {
  /* Fundos claros */
  --bg:         #ffffff;   /* fundo da página */
  --bg-alt:     #f3f7fc;   /* fundo de seções alternadas */
  --surface:    #ffffff;   /* fundo dos cards */
  --line:       #e3eaf2;   /* bordas e divisores */

  /* Rodapé / faixas escuras */
  --ink:        #0c1825;   /* fundo escuro (rodapé) */
  --ink-2:      #11243a;

  /* Textos */
  --heading:    #0f1d2b;   /* títulos e textos fortes */
  --text:       #41525f;   /* texto de corpo */
  --slate:      #51626f;   /* texto de apoio */
  --muted:      #74858f;   /* texto auxiliar */

  /* Destaque (azul) */
  --accent:     #1577e0;   /* COR DE DESTAQUE (CTAs) */
  --accent-2:   #0f63c2;   /* hover do destaque */
  --accent-3:   #1e9bff;   /* azul claro p/ gradientes/realces */
  --accent-soft:#e8f2fe;   /* tinte suave do destaque (fundo de ícones) */
  --white:      #ffffff;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 6px 24px rgba(16, 42, 73, .08);
  --shadow-lg:  0 18px 50px rgba(16, 42, 73, .14);
  --maxw:       1160px;
  --font:       'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ---------- Reset leve ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.18; color: var(--heading); margin: 0 0 .4em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 800; color: var(--accent); margin-bottom: .7em;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-size: 1rem; padding: 14px 28px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(21,119,224,.30); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: #f0f6ff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-lg { padding: 17px 36px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; }

/* Reflexo automático que varre o botão para chamar atenção */
.btn-primary, .btn-light { position: relative; overflow: hidden; }
.btn-primary::after, .btn-light::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%;
  transform: skewX(-22deg); pointer-events: none;
  animation: btn-shine 4.5s ease-in-out infinite;
}
.btn-primary::after { background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%); }
.btn-light::after   { background: linear-gradient(110deg, transparent 0%, rgba(21,119,224,.28) 50%, transparent 100%); }
.btn-primary:hover::after, .btn-light:hover::after { animation-duration: 1.2s; }
@keyframes btn-shine {
  0%   { left: -80%; }
  16%  { left: 140%; }
  100% { left: 140%; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); border-color: var(--line); background: rgba(255,255,255,.96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: auto; height: 46px; }
.nav { display: flex; gap: 28px; }
.nav a { font-weight: 600; color: var(--slate); font-size: .96rem; }
.nav a:hover { color: var(--accent); }

/* ---------- Hero (foto de veículos ao fundo + texto por cima) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: #0b1622; }
/* Carrossel de fundo: slides em crossfade */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease; will-change: opacity;
  filter: brightness(.62) saturate(1.05); /* ofusca a foto para não competir com o texto */
}
.hero-slide.is-active { opacity: 1; }
/* Camada escura para legibilidade do texto sobre as fotos */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,16,27,.85) 0%, rgba(7,16,27,.6) 55%, rgba(7,16,27,.5) 100%),
    linear-gradient(0deg, rgba(7,16,27,.6) 0%, rgba(7,16,27,.15) 55%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 116px; padding-bottom: 124px; min-height: 70vh; display: flex; align-items: center; }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin-bottom: .35em; font-weight: 800; color: #fff; }
.gradient-text { color: var(--accent-3); }
.hero .eyebrow { color: var(--accent-3); }
.lede { font-size: 1.18rem; color: #dbe6f1; }
.lede strong { color: #fff; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 24px; }
.hero-actions.center { justify-content: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #e3ecf4; font-weight: 600; font-size: .96rem; }
.hero-proof.center { justify-content: center; }
.hero-proof li { white-space: nowrap; }
.hero-proof li::before { content: "✓"; color: var(--accent-3); font-weight: 800; margin-right: 7px; }

/* ---------- Faixa de estatísticas ---------- */
.stats { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 40px 0; text-align: center; }
.stat-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1; }
.stat-num .suffix { color: var(--accent-3); }
.stat-label { color: #aebfcf; font-size: .96rem; margin-top: 8px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.10); }

/* ---------- Cards / grids ---------- */
.cards { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d4e2f2; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--slate); margin: 0; }

/* Card de serviço */
.service .feat-ico {
  width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); border-radius: 14px; font-size: 1.7rem;
}

/* ---------- Diferenciais (imagem + lista) ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.why-content .section-head { text-align: left; margin: 0 0 26px; }
.feature-list { display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .fl-ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); font-size: 1.2rem;
}
.feature-list h4 { margin: 0 0 2px; font-size: 1.04rem; color: var(--heading); }
.feature-list p { margin: 0; color: var(--slate); font-size: .96rem; }

/* ---------- Como funciona (passos) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--slate); font-size: .96rem; margin: 0; }

/* ---------- Faixa de CTA (azul) ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent-2) 0%, var(--accent) 60%, var(--accent-3) 100%);
  color: #fff; text-align: center; padding: 70px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,.92); font-size: 1.12rem; max-width: 620px; margin: 0 auto 28px; }

/* ---------- Cases (carrossel) ---------- */
.dash-frame {
  max-width: 940px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg);
}
.dash-bar { display: flex; gap: 7px; padding: 12px 16px; background: #f6f9fd; border-bottom: 1px solid var(--line); }
.dash-bar span { width: 11px; height: 11px; border-radius: 50%; background: #c6d3e0; }
.dash-carousel { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.dash-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
.dash-slide { min-width: 100%; height: 100%; overflow: hidden; }
.dash-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 2.4s ease-out; }
.dash-slide.is-active img { transform: scale(1.05); }
.dash-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; justify-content: center; }
.dash-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: rgba(255,255,255,.7); cursor: pointer; transition: width .25s ease, background .25s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.dash-dot.is-active { width: 24px; background: var(--accent-3); }
.dash-cap { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--heading); padding: 18px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); font-weight: 700; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--slate); padding-bottom: 18px; margin: 0; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; padding: 90px 0; }
.cta-final h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.cta-final p { color: var(--slate); font-size: 1.15rem; max-width: 600px; margin: 0 auto 28px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #c2d2e1; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.brand-footer .brand-logo { height: 52px; }
.footer-tag { color: #93a8be; margin-top: 14px; max-width: 32ch; font-size: .96rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a, .footer-contact a { color: #c2d2e1; font-weight: 500; font-size: .96rem; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-wa { display: inline-flex; align-items: center; gap: 9px; font-weight: 700 !important; }
.footer-wa svg { color: #25D366; flex-shrink: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background .2s ease;
}
.footer-social a:hover { background: var(--accent); }
.footer-bottom { padding-top: 24px; font-size: .88rem; color: #8da3ba; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Botão flutuante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; z-index: -1; animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================================
   RESPONSIVO
   ============================================================================ */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-media { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .stat:nth-child(odd) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 40px; } /* mais respiro lateral no mobile */
  .hide-sm { display: none; } /* encurta o CTA do header no mobile */
  .header-inner { gap: 12px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  /* Hero no mobile: texto melhor enquadrado e foto mais uniforme/escura */
  .hero-inner { padding-top: 76px; padding-bottom: 84px; min-height: auto; }
  .hero-copy { max-width: 34rem; }
  .hero .eyebrow { letter-spacing: .1em; font-size: .72rem; }
  .hero h1 { font-size: clamp(1.55rem, 6.6vw, 2.05rem); line-height: 1.18; margin-bottom: .5em; }
  .hero .lede { font-size: 1.02rem; }
  .hero-actions { margin: 26px 0 22px; }
  .hero-proof { gap: 8px 16px; font-size: .9rem; }
  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(7,16,27,.82) 0%, rgba(7,16,27,.52) 65%, rgba(7,16,27,.46) 100%),
      rgba(7,16,27,.30);
  }
}
/* Telas bem estreitas: reduz o gutter e o título para o conteúdo respirar */
@media (max-width: 380px) {
  .container { padding: 0 28px; }
  .hero h1 { font-size: 1.5rem; }
}

/* ---------- Respeita usuários que preferem menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
  .dash-track, .dash-slide img, .dash-dot { transition: none; }
  .dash-slide.is-active img { transform: none; }
  .wa-float::before { animation: none; opacity: 0; }
  .btn-primary::after, .btn-light::after { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}
