/* =========================================================
   IGSA Elétrica & Manutenção
   ========================================================= */

/* ---------- Fontes: Clash Display + Satoshi (Fontshare, licença ITF Free Font) ---------- */
@font-face {
  font-family: 'Clash Display'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/clash-display-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Clash Display'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/clash-display-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Clash Display'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/clash-display-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Satoshi'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/satoshi-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Satoshi'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/satoshi-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Satoshi'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/satoshi-700.woff2') format('woff2');
}

:root {
  --black: #0d0d0d;
  --black-2: #121212;
  --surface: #161616;
  --line: #2a2a2a;
  --yellow: #ffc400;
  --yellow-hi: #ffd84d;
  --white: #f4f4f2;
  --muted: #c9c9c4;
  --dim: #8f8f8a;
  --ink-on-yellow: #2a2300;
  --wa: #25d366;

  --f-display: 'Clash Display', 'Arial Black', sans-serif;
  --f-body: 'Satoshi', system-ui, sans-serif;

  --header-h: 76px;
  --radius: 12px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --glow: 0 0 0 1px rgba(255, 196, 0, .55), 0 10px 40px -8px rgba(255, 196, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--yellow); }
a:hover { color: var(--yellow-hi); }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--yellow); color: var(--black); padding: 12px 18px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

mark.todo {
  background: rgba(255, 196, 0, .14);
  color: var(--yellow);
  border: 1px dashed rgba(255, 196, 0, .6);
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 600;
}
.section-yellow mark.todo { color: var(--black); background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 6px;
  font-family: var(--f-body); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s var(--ease-out), box-shadow .25s, background-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 18px; }
.btn-xl { min-height: 60px; padding: 18px 30px; font-size: 20px; border-radius: 8px; }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-hi); color: var(--black); box-shadow: 0 8px 30px -6px rgba(255,196,0,.6); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--white); color: var(--white); background: rgba(13,13,13,.25); }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.btn-dark { background: var(--black); color: var(--yellow); }
.btn-dark:hover { color: var(--yellow-hi); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); transform: translateY(-2px); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--yellow), #fff3b0);
  box-shadow: 0 0 10px var(--yellow);
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, backdrop-filter .35s, box-shadow .35s;
}
.site-header.is-scrolled {
  background: rgba(13, 13, 13, .9);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.9);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: min-height .35s;
}
.is-scrolled .header-inner { min-height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); min-height: 44px; }
.brand:hover { color: var(--white); }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: .5px; line-height: 1; }
.brand-tag { font-family: var(--f-display); font-weight: 500; font-size: 12px; letter-spacing: 2px; color: #b5b5b0; }

/* Raio do logo: traço desenhado + choque pulsando */
.brand-bolt path {
  fill: var(--yellow); stroke: var(--yellow); stroke-width: 1.4; stroke-linejoin: round;
}
.js .brand-bolt path {
  fill-opacity: 0; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: bolt-draw 1.1s var(--ease-out) .15s forwards, bolt-fill .4s ease-out 1.05s forwards;
}
.js .brand-bolt { animation: bolt-shock 5s ease-in-out 1.6s infinite; }
@keyframes bolt-draw { to { stroke-dashoffset: 0; } }
@keyframes bolt-fill { to { fill-opacity: 1; } }
@keyframes bolt-shock {
  0%, 82%, 100% { filter: drop-shadow(0 0 0 rgba(255,196,0,0)); transform: none; }
  84% { filter: drop-shadow(0 0 10px rgba(255,196,0,.95)); transform: translateX(-1px) rotate(-4deg); }
  86% { filter: drop-shadow(0 0 2px rgba(255,196,0,.4)); transform: translateX(1px) rotate(3deg); }
  88% { filter: drop-shadow(0 0 14px rgba(255,220,90,1)); transform: none; }
  92% { filter: drop-shadow(0 0 4px rgba(255,196,0,.5)); }
}
.brand:hover .brand-bolt { animation: bolt-shock .9s ease-in-out; }

.main-nav { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.main-nav a:not(.btn) {
  position: relative; color: var(--white); text-decoration: none;
  padding: 12px 10px; min-height: 44px; display: inline-flex; align-items: center;
}
.main-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px;
  background: var(--yellow); box-shadow: 0 0 8px var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.main-nav a:not(.btn):hover { color: var(--yellow); }
.main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav .btn { margin-left: 8px; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(13,13,13,.6); cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13,13,13,.97); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease-out), visibility 0s .25s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease-out); }
  .main-nav a:not(.btn) { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid #1f1f1f; }
  .main-nav a:not(.btn)::after { left: 4px; right: auto; width: 40px; bottom: 6px; }
  .main-nav .btn { margin: 16px 0 0; }
  .site-header:has(.main-nav.is-open) { background: rgba(13,13,13,.97); }
}
@media (max-width: 480px) {
  .brand-tag { display: none; }
}

/* ---------- Hero ---------- */
/* vídeo vertical à direita; as bordas dele se dissolvem no fundo da página (fade por máscara) */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  border-bottom: 6px solid var(--yellow);
  background: var(--black);
}
.fade-video {
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 18%, #000 48%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 18%, #000 48%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
/* mesmo fade, espelhado: vídeo à esquerda sumindo para a direita */
.fade-video-left {
  -webkit-mask-image:
    linear-gradient(to left, transparent 0%, rgba(0,0,0,.35) 18%, #000 48%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
  mask-image:
    linear-gradient(to left, transparent 0%, rgba(0,0,0,.35) 18%, #000 48%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
}
.hero-media {
  position: absolute; top: 0; bottom: 0; z-index: -1;
  right: max(0px, calc((100vw - 1200px) / 2 - 20px));   /* mais para o centro, alinhado ao conteúdo */
  height: 100%; aspect-ratio: 9 / 16; max-width: 50vw;
  background: url('../assets/obra-poster.webp') center / cover no-repeat;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-overlay { display: none; }
.hero-inner {
  width: 100%;
  padding-top: calc(var(--header-h) + 64px); padding-bottom: 88px;
}
.hero-copy { max-width: 660px; min-width: 0; }
@media (max-width: 900px) {
  /* no celular o vídeo ocupa a tela toda, atrás da copy, e some em fade embaixo */
  .hero-media { left: 0; right: 0; aspect-ratio: auto; max-width: none; width: auto; }
  .hero-media.fade-video {
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .hero-overlay {
    display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(13,13,13,.78) 0%, rgba(13,13,13,.86) 50%, rgba(13,13,13,.93) 100%);
  }
}

.eyebrow {
  margin: 0 0 14px; font-family: var(--f-display); font-weight: 600;
  letter-spacing: 2.5px; color: var(--yellow); font-size: 13px;
}
.eyebrow-dark { color: var(--black); }
.hero .eyebrow { margin-bottom: 18px; }

.hero-title {
  margin: 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.hero-title .w { display: inline-block; }
.js .hero-title.is-split .w {
  opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(6px);
  animation: word-in .7s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 70ms + 150ms);
}
.hero-title .w-accent { color: var(--yellow); }
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }

.hero-lead { margin: 26px 0 0; max-width: 620px; font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.hero-card {
  background: rgba(22,22,22,.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-top: 3px solid var(--yellow);
  border-radius: 10px; padding: 16px 18px;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.hero-card:hover { transform: translateY(-4px); border-color: rgba(255,196,0,.6); box-shadow: var(--glow); }
.hero-card-title { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: var(--yellow); line-height: 1; }
.hero-card-text { color: var(--muted); margin-top: 6px; font-size: 14px; line-height: 1.4; }
@media (max-width: 560px) {
  .hero-cards { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .hero-card { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; border-top-width: 1px; border-left: 3px solid var(--yellow); }
  .hero-card-text { margin-top: 0; }
}

/* ---------- Stats ---------- */
.stats { background: var(--black-2); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 40px 24px; text-align: center; position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px;
  background: linear-gradient(transparent, var(--yellow), transparent); opacity: .5;
}
.stat-num {
  font-family: var(--f-display); font-weight: 600; color: var(--yellow);
  font-size: clamp(52px, 6vw, 76px); line-height: 1; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(255,196,0,.25);
}
.stat-label { margin-top: 8px; font-weight: 600; color: var(--white); max-width: 260px; margin-inline: auto; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 28px 16px; }
  .stat + .stat::before { left: 20%; right: 20%; top: 0; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--yellow), transparent); }
}

/* ---------- "Corrente elétrica" entre seções ---------- */
.wire {
  max-width: 1200px; margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; gap: 14px;
}
.wire-line { position: relative; flex: 1; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.wire-line::before {
  content: ''; position: absolute; inset: 0; background: rgba(255,196,0,.55);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out);
}
.wire-line + .wire-node + .wire-line::before { transition-delay: .9s; }
.wire-line::after {
  content: ''; position: absolute; top: -2px; left: 0; width: 120px; height: 6px; border-radius: 6px;
  background: radial-gradient(closest-side, #fff8d6, var(--yellow) 45%, transparent);
  filter: blur(.5px);
  transform: translateX(-130px); opacity: 0;
}
.wire.is-visible .wire-line::before { transform: scaleX(1); }
.wire.is-visible .wire-line::after { opacity: 1; animation: current 2.8s linear 1.2s infinite; }
.wire.is-visible .wire-line + .wire-node + .wire-line::after { animation-delay: 2.6s; }
@keyframes current { from { transform: translateX(-130px); } to { transform: translateX(110vw); } }
.wire-node { width: 26px; height: 26px; flex: none; }
.wire-node path { fill: #2a2a2a; transition: fill .4s .8s, filter .4s .8s; }
.wire.is-visible .wire-node path { fill: var(--yellow); }
.wire.is-visible .wire-node { animation: node-flicker 4s ease-in-out 1.4s infinite; }
@keyframes node-flicker {
  0%, 70%, 100% { filter: drop-shadow(0 0 4px rgba(255,196,0,.6)); }
  72% { filter: drop-shadow(0 0 14px rgba(255,196,0,1)); }
  74% { filter: drop-shadow(0 0 2px rgba(255,196,0,.3)); }
  76% { filter: drop-shadow(0 0 12px rgba(255,196,0,.9)); }
}

/* ---------- Sections ---------- */
.section { padding-top: 88px; padding-bottom: 56px; }
.section-title {
  margin: 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.02em;
}
.eyebrow + .section-title { margin-top: -4px; }
.section-lead { margin: 16px 0 0; max-width: 720px; color: var(--muted); font-size: 19px; }
.section-lead-dark { color: var(--ink-on-yellow); }

.section-yellow { background: var(--yellow); color: var(--black); margin-top: 48px; position: relative; }
.section-yellow .section { padding-top: 96px; padding-bottom: 96px; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 44px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s, background-color .35s;
}
.card::before {
  /* traço de luz que acende no topo */
  content: ''; position: absolute; left: 20px; right: 20px; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0; transform: scaleX(.2); transition: opacity .35s, transform .5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,196,0,.7); box-shadow: var(--glow); background: #191919; }
.card:hover::before { opacity: 1; transform: scaleX(1); }
.card h3 { margin: 16px 0 12px; font-family: var(--f-display); font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.card li::marker { color: var(--yellow); }
.card-dark { background: var(--black); color: var(--white); border-color: transparent; }
.card-dark:hover { background: #0a0a0a; border-color: var(--black); box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); }

.card-icon {
  width: 44px; height: 44px; fill: none; stroke: var(--yellow); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: filter .3s;
}
.card:hover .card-icon { animation: icon-zap .6s ease-in-out; filter: drop-shadow(0 0 8px rgba(255,196,0,.8)); }
.card:hover .card-icon-spin { animation: icon-spin 1.4s var(--ease-out); }
@keyframes icon-zap {
  0% { transform: none; }
  20% { transform: translate(-2px, 1px) rotate(-6deg); }
  40% { transform: translate(2px, -1px) rotate(5deg); }
  60% { transform: translate(-1px, 0) rotate(-3deg) scale(1.08); }
  100% { transform: scale(1.08); }
}
@keyframes icon-spin { from { transform: rotate(0); } to { transform: rotate(180deg) scale(1.08); } }

/* painel "Mais serviços": vídeo vertical à direita com o mesmo fade */
.extras-panel { position: relative; isolation: isolate; }
.extras-media {
  position: absolute; top: -40px; bottom: -40px; z-index: -1;
  left: -44px;   /* mais para o centro, alinhado à borda esquerda do conteúdo */
  aspect-ratio: 9 / 16; max-width: 46vw;
  background: url('../assets/quadro-poster.webp') center / cover no-repeat;
}
.bg-video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.bg-video.is-playing { opacity: 1; }
.extras-content { max-width: 64%; margin-left: auto; }
.extras-panel .mini-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.extras-panel .mini-card { background: rgba(13,13,13,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.extras-panel .mini-card:hover { background: rgba(22,22,22,.9); }
@media (max-width: 900px) {
  .extras-content { max-width: none; }
  .extras-media {
    left: calc((100% - 100vw) / 2); right: calc((100% - 100vw) / 2); aspect-ratio: auto; max-width: none; opacity: .35;
  }
  .extras-media.fade-video {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 80%, transparent 100%);
  }
}

.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 40px; }
.mini-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 22px;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s, background-color .3s;
}
.mini-card:hover { transform: translateY(-4px); border-color: rgba(255,196,0,.7); box-shadow: var(--glow); background: var(--surface); }
.mini-card h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--yellow); line-height: 1.1; }
.mini-card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Como funciona ---------- */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: none; }
.step { position: relative; padding-top: 18px; }
.step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--line);
}
.step::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out) calc(var(--d, 0s) + .2s);
  box-shadow: 0 0 10px rgba(255,196,0,.5);
}
.step.is-visible::after, html:not(.js) .step::after { transform: scaleX(1); }
.step-num { font-family: var(--f-display); font-weight: 600; font-size: 44px; color: var(--yellow); line-height: 1; }
.step h3 { margin: 8px 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); }

.section-note { margin: 14px 0 0; color: var(--dim); font-size: 15px; }

/* ---------- Quem cuida ---------- */
.about {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 40px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.about::before {
  content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(closest-side, rgba(255,196,0,.14), transparent); pointer-events: none;
}
.about-copy { flex: 999 1 420px; min-width: 0; }
.about-title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -.02em; }
.about-copy p { margin: 12px 0 0; color: var(--muted); }
.rt-badge {
  display: inline-flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 20px;
  background: var(--black); border: 1px solid var(--yellow); border-radius: 8px; padding: 12px 18px;
  box-shadow: 0 0 24px -10px rgba(255,196,0,.6);
}
.rt-label { font-family: var(--f-display); font-weight: 600; letter-spacing: 2px; color: var(--yellow); font-size: 12px; }
.rt-name { font-weight: 600; }
.checklist { flex: 1 1 260px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.checklist li { display: flex; gap: 10px; align-items: center; }
.checklist svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .about { padding: 28px 22px; } }

/* ---------- Regiões ---------- */
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.region {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px;
  position: relative; overflow: hidden;
  transition: border-color .35s, box-shadow .35s;
}
.region:hover { border-color: rgba(255,196,0,.6); box-shadow: var(--glow); }
.region::after {
  /* malha de "circuito" decorativa */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: linear-gradient(var(--yellow) 1px, transparent 1px), linear-gradient(90deg, var(--yellow) 1px, transparent 1px);
  background-size: 28px 28px;
}
.region-head { display: flex; gap: 14px; align-items: center; position: relative; z-index: 1; }
.region-head svg { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.region:hover .region-head svg { animation: pin-bounce .7s var(--ease-out); }
@keyframes pin-bounce { 30% { transform: translateY(-6px); } 60% { transform: translateY(0); } 80% { transform: translateY(-2px); } }
.region-head h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 26px; line-height: 1.05; letter-spacing: -.01em; }
.region-head p { margin: 4px 0 0; color: var(--yellow); font-weight: 600; font-size: 15px; letter-spacing: .5px; }
.chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.chips li {
  padding: 7px 12px; border-radius: 999px; background: var(--black); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500; transition: border-color .2s, color .2s;
}
.chips li::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 6px var(--yellow); }
.chips li:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- Formulário de orçamento ---------- */
.quote-box {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start;
  background: linear-gradient(135deg, #171717, #111); border: 1px solid var(--line); border-radius: 16px; padding: 44px;
  position: relative; overflow: hidden;
}
.quote-box::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--yellow); box-shadow: 0 0 18px var(--yellow);
}
.quote-intro .section-lead { font-size: 18px; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 8px;
  background: var(--black); color: var(--white); border: 1px solid #3a3a3a;
  font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc400' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field select option, .field select optgroup { background: var(--black); color: var(--white); }
.field ::placeholder { color: #7d7d78; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,196,0,.25);
}
.field .is-invalid { border-color: #ff6b5a; box-shadow: 0 0 0 3px rgba(255,107,90,.2); }
.form-error { margin: 0; color: #ff8a7d; font-weight: 600; }
.quote-form .btn { width: 100%; }
@media (max-width: 900px) {
  .quote-box { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
}
@media (max-width: 520px) {
  .quote-form { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color .3s; }
.faq-item[open] { border-color: rgba(255,196,0,.6); }
.faq-item summary {
  list-style: none; cursor: pointer; min-height: 60px; padding: 16px 60px 16px 22px; position: relative;
  font-family: var(--f-display); font-weight: 500; font-size: 19px; line-height: 1.25;
  display: flex; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; border: 2px solid var(--yellow);
  background:
    linear-gradient(var(--yellow), var(--yellow)) center / 12px 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) center / 2px 12px no-repeat;
  transition: transform .35s var(--ease-out), background-size .35s;
}
.faq-item[open] summary::after { transform: rotate(180deg); background-size: 12px 2px, 2px 0; }
.faq-item summary:hover { color: var(--yellow); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-body p { margin: 0; }
.faq-item[open] .faq-body { animation: faq-open .35s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- CTA final ---------- */
.cta-band { background: var(--yellow); color: var(--black); margin-top: 48px; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; right: -40px; top: 50%; width: 360px; height: 360px; margin-top: -180px; opacity: .08;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z' fill='%230d0d0d'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta-inner { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; position: relative; }
.cta-copy { flex: 999 1 480px; min-width: 0; }
.cta-script { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(15px, 1.6vw, 17px); letter-spacing: 2.5px; text-transform: uppercase; }
.cta-copy h2 { margin: 10px 0 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
.cta-copy p:last-child { margin: 10px 0 0; font-size: 18px; color: var(--ink-on-yellow); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 28px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--dim); font-size: 14px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px;
  box-shadow: 0 10px 30px -6px rgba(0,0,0,.6), 0 0 0 0 rgba(37,211,102,.6);
  transition: transform .25s var(--ease-out), box-shadow .25s;
  animation: wa-pulse 2.6s ease-out 3s infinite;
}
.wa-float:hover { color: #fff; transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; flex: none; }
.js .wa-float { transform: translateY(120px); }
.js .wa-float.is-shown { transform: none; }
.js .wa-float.is-shown:hover { transform: translateY(-3px) scale(1.03); }
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 30px -6px rgba(0,0,0,.6), 0 0 0 0 rgba(37,211,102,.55); }
  70%, 100% { box-shadow: 0 10px 30px -6px rgba(0,0,0,.6), 0 0 0 16px rgba(37,211,102,0); }
}
@media (max-width: 560px) {
  .wa-float { width: 60px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .wa-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  transition-property: opacity, transform, border-color, box-shadow, background-color, color;
  transition-duration: .8s, .8s, .35s, .35s, .35s, .2s;
  transition-timing-function: var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.js [data-reveal="right"]:not(.is-visible) { transform: translateX(32px); }
/* depois de aparecer, o hover responde na hora e com a duração curta */
.js [data-reveal].is-done { transition-delay: 0s; transition-duration: .35s; }

/* Celular: cards entram pelas laterais ao rolar, alternando esquerda e direita */
@media (max-width: 760px) {
  main { overflow-x: clip; }
  .js :is(.card, .mini-card, .hero-card, .region, .step, .faq-item)[data-reveal] {
    transition-duration: .75s, .75s, .35s, .35s, .35s, .2s;
  }
  .js :is(.card, .mini-card, .region, .step, .faq-item)[data-reveal] { transition-delay: 0s; }
  .js :is(.card, .mini-card, .hero-card, .region, .step, .faq-item)[data-reveal]:not(.is-visible):nth-child(odd) {
    transform: translateX(-70px) rotate(-2deg);
  }
  .js :is(.card, .mini-card, .hero-card, .region, .step, .faq-item)[data-reveal]:not(.is-visible):nth-child(even) {
    transform: translateX(70px) rotate(2deg);
  }
}

/* ---------- Responsivo geral ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding-top: 64px; padding-bottom: 40px; }
  .section-yellow .section { padding-top: 64px; padding-bottom: 64px; }
  .hero-inner { padding-top: calc(var(--header-h) + 36px); padding-bottom: 56px; gap: 32px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .card { padding: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .section-lead { font-size: 17px; }
  .faq-item summary { font-size: 17px; }
}
@media (max-width: 420px) {
  .container, .wire { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Movimento reduzido: página parada ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .js [data-reveal], .js .hero-title.is-split .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .brand-bolt path { stroke-dashoffset: 0; fill-opacity: 1; }
  .hero-video, .bg-video { display: none; }
  .wire-line::after { display: none; }
  .js .wa-float { transform: none; }
  .wa-float { animation: none; }
}

/* ---------- E-mail de contato ---------- */
.quote-email { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.quote-email a, .footer-inner a { font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer-inner a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.footer-inner a:hover { color: var(--yellow); }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cta-email {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px;
  color: var(--black); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere;
}
.cta-email:hover { color: var(--black); text-decoration-thickness: 2px; }

/* Clash Display tem espaço entre palavras curto: abre um pouco nos títulos */
.hero-title, .section-title, .about-title, .cta-copy h2, .card h3, .mini-card h3,
.region-head h3, .hero-card-title, .faq-item summary, .brand-tag, .eyebrow { word-spacing: .12em; }
