/* ============================================================
   TECGRUP — Sistema visual
   Indústria / engenharia premium. Navy base, branco, red accent.
   ============================================================ */

/* ---------- Tokens ---------- */
:root{
  /* Page tokens — LIGHT theme (default) */
  --bg:        #eef2f7;   /* cool off-white base */
  --surface:   #ffffff;   /* light cards */
  --surface-2: #f4f7fb;   /* raised */
  --line:        rgba(11,31,56,0.12);
  --line-strong: rgba(11,31,56,0.22);

  /* Ink (on light) */
  --white: #ffffff;
  --ink:   #0b1f38;        /* navy headings */
  --mist:  #475a72;        /* slate body */
  --mist-dim: #7c8ca1;     /* captions / meta */
  --mint:  #e9f1e3;        /* brand off-white tint */

  /* Deep navy — used by full-bleed dark zones (constant in both themes) */
  --bg-deep:   #06121f;

  /* Accent (red) — swappable via Tweaks */
  --red:        #f0404f;
  --red-bright: #ff5a67;
  --red-deep:   #c92a39;
  --accent:        var(--red);
  --accent-bright: var(--red-bright);
  --accent-deep:   var(--red-deep);

  /* WhatsApp */
  --wa: #25d366;
  --wa-deep: #128c7e;

  /* Type */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 84px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Full-bleed DARK zones — always navy, in either theme.
   They re-assert dark tokens + text colour on themselves so descendants read light.
   (.header and .hero follow the THEME — see theme-specific blocks below.) */
.mobile-nav, .stats, .factory, .convert, .footer, .acard, .about-hero, .authority{
  --surface:   #0e2740;
  --surface-2: #12304f;
  --line:        rgba(233,241,227,0.10);
  --line-strong: rgba(233,241,227,0.20);
  --ink:   #eef4fb;
  --mist:  #a6b8cd;
  --mist-dim: #6f86a1;
  color: var(--mist);
}

/* DARK theme — page tokens go navy so the light sections darken too */
body[data-theme="dark"]{
  --bg:        #0a1b2e;
  --surface:   #0e2740;
  --surface-2: #12304f;
  --line:        rgba(233,241,227,0.10);
  --line-strong: rgba(233,241,227,0.20);
  --ink:   #eef4fb;
  --mist:  #a6b8cd;
  --mist-dim: #6f86a1;
}
/* Dark theme: header + hero are dark zones */
body[data-theme="dark"] .header, body[data-theme="dark"] .hero{
  --line:        rgba(233,241,227,0.10);
  --line-strong: rgba(233,241,227,0.20);
  --ink:   #eef4fb;
  --mist:  #a6b8cd;
  --mist-dim: #6f86a1;
  color: var(--mist);
}

/* ---------- Reset ---------- */
*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--mist);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: .005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
svg{ display: block; }
::selection{ background: var(--accent); color: #fff; }

/* ---------- Helpers ---------- */
.container{
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section{ padding-block: clamp(72px, 11vw, 148px); position: relative; }
.section--tight{ padding-block: clamp(56px, 8vw, 104px); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mist);
}
.eyebrow::before{
  content: "";
  width: 30px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--center{ }

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.display{
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h-sec{
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.lead{
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--mist);
  font-weight: 400;
  text-wrap: pretty;
}
.text-accent{ color: var(--accent); }
.text-white{ color: var(--ink); }

/* ---------- Buttons ---------- */
.btn{
  --pad-y: 17px; --pad-x: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .005em;
  border-radius: 4px;
  transition: transform .35s var(--ease), background .25s var(--ease), box-shadow .35s var(--ease), border-color .25s;
  white-space: nowrap;
  line-height: 1;
}
.btn svg{ width: 19px; height: 19px; flex: none; }
.btn:active{ transform: translateY(1px); }

.btn--red{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px -14px var(--accent);
}
.btn--red:hover{ background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 22px 44px -16px var(--accent); }

.btn--ghost{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover{ border-color: var(--ink); background: rgba(255,255,255,.04); transform: translateY(-2px); }

.btn--light{
  background: var(--mint);
  color: var(--bg-deep);
}
.btn--light:hover{ background: #fff; transform: translateY(-2px); }

.btn--wa{
  background: var(--wa);
  color: #062a16;
  box-shadow: 0 14px 34px -14px var(--wa);
}
.btn--wa:hover{ background: #2ee676; transform: translateY(-2px); }

.btn--lg{ --pad-y: 21px; --pad-x: 38px; font-size: 17px; }
.btn--block{ width: 100%; }

.btn-sub{ font-weight: 500; font-size: 13px; opacity: .8; }

/* ============================================================
   HEADER
   ============================================================ */
.header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), height .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled{
  height: 70px;
  background: rgba(7,18,31,.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
/* Light theme: header becomes a clean light bar once scrolled (over light content) */
body[data-theme="light"] .header.scrolled{
  background: rgba(248,250,253,.86);
  border-bottom: 1px solid rgba(11,31,56,.10);
  box-shadow: 0 10px 30px -20px rgba(11,31,56,.4);
  --ink: #0b1f38;
  --mist: #475a72;
  --line: rgba(11,31,56,0.10);
  --line-strong: rgba(11,31,56,0.20);
}
.header__inner{
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{ position: relative; display: flex; align-items: center; flex: none; }
.brand img{ height: 38px; width: auto; transition: height .4s var(--ease), opacity .35s var(--ease); display: block; }
.brand .brand__dark{ position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; }
.header.scrolled .brand img{ height: 32px; }
/* Light theme: navy logo whenever the page is light (hero + content are light) */
body[data-theme="light"] .brand__light{ opacity: 0; }
body[data-theme="light"] .brand__dark{ opacity: 1; }

.nav{ display: flex; align-items: center; gap: 4px; }
.nav a{
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--mist);
  padding: 10px 16px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  position: relative;
}
.nav a:hover{ color: var(--ink); }
.nav a.is-active{ color: var(--ink); }
.nav a.is-active::after{
  content:""; position:absolute; left:16px; right:16px; bottom:4px;
  height:2px; background: var(--accent); border-radius: 2px;
}

.header__cta{ display: flex; align-items: center; gap: 14px; flex: none; }

.theme-toggle{
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink);
  position: relative;
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
}
.theme-toggle:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.theme-toggle svg{ width: 20px; height: 20px; position: absolute; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.theme-toggle__sun{ opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-toggle__moon{ opacity: 1; transform: rotate(0) scale(1); }
body[data-theme="dark"] .theme-toggle__sun{ opacity: 1; transform: rotate(0) scale(1); }
body[data-theme="dark"] .theme-toggle__moon{ opacity: 0; transform: rotate(90deg) scale(.6); }

.menu-toggle{ display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--line-strong); }
.menu-toggle span{ position: relative; width: 20px; height: 2px; background: var(--ink); display:block; transition: .3s; }
.menu-toggle span::before, .menu-toggle span::after{ content:""; position:absolute; left:0; width:20px; height:2px; background: var(--ink); transition:.3s; }
.menu-toggle span::before{ top:-6px; } .menu-toggle span::after{ top:6px; }
body.menu-open .menu-toggle span{ background: transparent; }
body.menu-open .menu-toggle span::before{ top:0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after{ top:0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav{
  position: fixed; inset: 0; z-index: 99;
  background: rgba(6,18,31,.97);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  pointer-events: none;
}
body.menu-open .mobile-nav{ transform: translateX(0); pointer-events: auto; }
.mobile-nav a{
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.7rem; color: var(--ink);
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-nav .btn{ margin-top: 26px; }

/* ============================================================
   HERO — base + variants
   ============================================================ */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-deep);
  padding-top: var(--header-h);
  padding-bottom: clamp(72px, 10vh, 120px);
}
.hero__media{
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
/* real photo fills any media placeholder container */
.media-ph > .photo{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Hero photo rotation (slow crossfade, driven by main.js) */
.hero__media .hero-rot{ opacity: 0; transition: opacity 1.8s ease; }
.hero__media .hero-rot.is-on{ opacity: 1; }
/* Slow Ken Burns zoom. Runs CONTINUOUSLY on every photo (not tied to the
   crossfade) so it never snaps back when one image hands off to the next —
   each photo just keeps gently breathing while the opacity crossfade does the
   switching. Composes with each photo's own `transform` framing via `scale`. */
@media (prefers-reduced-motion: no-preference){
  .hero__media .hero-rot{ animation: hero-kenburns 20s ease-in-out infinite alternate; }
}
@keyframes hero-kenburns{ from{ scale: 1; } to{ scale: 1.09; } }
/* Hero drone shot (panorâmica gerada pelo cliente): logo tecgrup à direita, sem corte */
.hero__media .hero-drone{ object-position: 72% 38%; }
.hero__media .hero-fabrica{ object-position: 50% 46%; }
.hero__media .hero-posto{ object-position: 50% 58%; }
.hero__media .hero-equipe{ object-position: 50% 60%; }
@media (max-width: 860px){
  .hero__media .hero-drone{ object-position: 60% 85%; }
  .hero__media .hero-equipe{ object-position: 50% 58%; }
}
@media (prefers-reduced-motion: reduce){
  .hero__media .hero-rot{ transition: none; }
}
/* video placeholder visual */
.media-ph{
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(233,241,227,.035) 0 2px, transparent 2px 22px),
    radial-gradient(120% 90% at 70% 10%, #16395d 0%, #0a2138 45%, #06121f 100%);
}
.media-ph__label{
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--font-body);
  font-size: 13px; letter-spacing: .08em;
  color: rgba(233,241,227,.5);
  border: 1px dashed rgba(233,241,227,.28);
  padding: 12px 20px; border-radius: 4px;
  text-align: center; max-width: min(80vw, 480px);
  background: rgba(6,18,31,.35);
  text-transform: uppercase;
}
.hero__scrim{
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,18,31,.55) 0%, rgba(6,18,31,.35) 30%, rgba(6,18,31,.72) 78%, var(--bg-deep) 100%),
    linear-gradient(100deg, rgba(6,18,31,.92) 0%, rgba(6,18,31,.55) 46%, rgba(6,18,31,.12) 100%);
}
/* Hero placeholder label sits bottom-right so it never collides with the headline */
.hero .media-ph__label{
  left: auto; top: auto; right: var(--gutter); bottom: 96px;
  transform: none; text-align: right; max-width: 320px;
}
@media (max-width: 1080px){ .hero .media-ph__label{ display: none; } }
.hero__inner{ position: relative; z-index: 3; width: 100%; }
.hero__grid{
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 40px;
}
.hero__content{ max-width: 920px; }
.hero h1{ margin-top: 22px; }
.hero h1 .ln{ display: block; }
.hero__sub{ margin-top: 22px; max-width: 620px; }
.hero__ctas{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero__cta-card{ }
.hero__scroll{
  position: absolute; left: var(--gutter); bottom: 30px; z-index: 3;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--mist-dim);
}
.hero__scroll .dot{ width: 22px; height: 36px; border: 1.5px solid var(--line-strong); border-radius: 12px; position: relative; }
.hero__scroll .dot::after{ content:""; position:absolute; left:50%; top:7px; transform: translateX(-50%); width:3px; height:7px; border-radius:2px; background: var(--accent); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot{ 0%{opacity:0; transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0; transform:translate(-50%,12px)} }
@media (max-height: 760px){ .hero__scroll{ display: none; } }
/* Short viewports (laptops): compress hero so the CTAs stay visible */
@media (max-height: 820px) and (min-width: 760px){
  .hero{ min-height: 100svh; padding-bottom: clamp(40px, 6vh, 72px); }
  .hero .display{ font-size: clamp(2.2rem, 4vw, 3.5rem); }
  .hero h1{ margin-top: 16px; }
  .hero__sub{ margin-top: 16px; font-size: 1.05rem; }
  .hero .eyebrow{ font-size: 12px; }
  .choice-row{ margin-top: 24px; }
  .choice{ padding: 16px 20px; }
  .choice__ico{ width: 44px; height: 44px; }
}

/* CTA chooser (two big choices) */
.choice-row{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.choice{
  flex: 1 1 280px;
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(10,27,46,.5);
  backdrop-filter: blur(6px);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.choice:hover{ border-color: var(--accent); background: rgba(14,39,64,.7); transform: translateY(-3px); }
.choice__ico{
  width: 52px; height: 52px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(240,64,79,.12); color: var(--accent);
}
.choice__ico svg{ width: 26px; height: 26px; }
.choice__tx b{ display:block; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.choice__tx span{ font-size: 14px; color: var(--mist); display:flex; align-items:center; gap:6px; }
.choice__arrow{ margin-left: auto; color: var(--mist-dim); transition: transform .3s, color .3s; }
.choice:hover .choice__arrow{ transform: translateX(5px); color: var(--accent); }

/* Variant B: split layout */
body[data-hero="b"] .hero__grid{ grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
body[data-hero="b"] .hero__scrim{ background:
    linear-gradient(180deg, rgba(6,18,31,.5) 0%, rgba(6,18,31,.3) 40%, rgba(6,18,31,.7) 100%),
    linear-gradient(90deg, rgba(6,18,31,.9) 0%, rgba(6,18,31,.4) 60%, rgba(6,18,31,.1) 100%); }
body[data-hero="b"] .hero__sidecard{ display: flex; }
.hero__sidecard{
  display: none;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(8,22,37,.6);
  backdrop-filter: blur(8px);
}
.hero__sidecard .scard{
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.hero__sidecard .scard:last-child{ border-bottom: none; }
.hero__sidecard .scard b{ font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; color: var(--white); display:block; line-height: 1; }
.hero__sidecard .scard b .u{ color: var(--accent); }
.hero__sidecard .scard span{ font-size: 13.5px; color: var(--mist); }

/* Variant C: centered */
body[data-hero="c"] .hero{ text-align: center; }
body[data-hero="c"] .hero__content{ max-width: 1000px; margin-inline: auto; }
body[data-hero="c"] .eyebrow{ margin-inline: auto; }
body[data-hero="c"] .eyebrow::before{ display: none; }
body[data-hero="c"] .hero__sub{ margin-inline: auto; }
body[data-hero="c"] .hero__ctas{ justify-content: center; }
body[data-hero="c"] .choice-row{ justify-content: center; max-width: 760px; margin-inline: auto; }
body[data-hero="c"] .hero__scrim{ background:
    radial-gradient(90% 80% at 50% 35%, rgba(6,18,31,.35) 0%, rgba(6,18,31,.8) 100%),
    linear-gradient(180deg, rgba(6,18,31,.4), var(--bg-deep)); }

/* ============================================================
   LIGHT THEME HERO — bright, airy capa principal
   (placed after the variants so it wins by source order)
   ============================================================ */
body[data-theme="light"] .hero{ background: var(--bg); }
body[data-theme="light"] .hero .media-ph{
  background:
    repeating-linear-gradient(135deg, rgba(11,31,56,.05) 0 2px, transparent 2px 22px),
    radial-gradient(125% 95% at 72% 6%, #dde7f4 0%, #e7eef7 46%, var(--bg) 100%);
}
/* Light theme: hero is a self-contained CINEMATIC DARK band over the photo —
   the photo stays vivid, a dark gradient carries the text side, fading into the
   light page at the very bottom for a clean seam. */
body[data-theme="light"] .hero__scrim,
body[data-theme="light"][data-hero="b"] .hero__scrim,
body[data-theme="light"][data-hero="c"] .hero__scrim{
  background:
    linear-gradient(180deg, rgba(6,16,28,.42) 0%, rgba(6,16,28,.12) 30%, rgba(6,16,28,.5) 64%, rgba(255,255,255,.7) 88%, #ffffff 96%, #ffffff 100%),
    linear-gradient(100deg, rgba(6,16,28,.93) 0%, rgba(6,16,28,.6) 46%, rgba(6,16,28,.1) 100%);
}
body[data-theme="light"][data-hero="c"] .hero__scrim{
  background:
    radial-gradient(95% 90% at 50% 38%, rgba(6,16,28,.26) 0%, rgba(6,16,28,.72) 100%),
    linear-gradient(180deg, rgba(6,16,28,.32) 0%, rgba(6,16,28,.46) 66%, rgba(255,255,255,.6) 92%, #ffffff 100%);
}
/* Seal the bottom of the hero with an OPAQUE white band that overlaps the
   stats section by 1px. The hero photo rides its own compositing layer
   (will-change:transform for parallax) and its clipped bottom edge can bleed a
   hairline at fractional zoom — this solid band, painted above the photo in the
   hero's own layer, covers that edge so white meets white with no seam. */
.hero::after{
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 80px; z-index: 2; pointer-events: none;
  /* default (dark theme): fade to the deep-navy stats background */
  background: linear-gradient(180deg, rgba(6,18,31,0) 0%, var(--bg-deep) 50%, var(--bg-deep) 100%);
}
body[data-theme="light"] .hero::after{
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 55%, #ffffff 100%);
}
body[data-theme="light"] .hero .media-ph__label{
  color: rgba(11,31,56,.55);
  border-color: rgba(11,31,56,.26);
  background: rgba(255,255,255,.55);
}

/* --- Cinematic hero: light-coloured TEXT over the dark scrim (light theme) --- */
body[data-theme="light"] .hero .eyebrow{ color: #c2d0e0; }
body[data-theme="light"] .hero .display{ color: #f1f6fc; }
body[data-theme="light"] .hero .hero__sub{ color: #cad6e5; }
body[data-theme="light"] .hero .hero__sub .text-white{ color: #ffffff; }

/* Header floating over the dark hero reads light until it scrolls onto content */
body[data-theme="light"] .header:not(.scrolled){
  --line:        rgba(233,241,227,0.10);
  --line-strong: rgba(233,241,227,0.20);
  --ink:   #eef4fb;
  --mist:  #a6b8cd;
  --mist-dim: #6f86a1;
}
body[data-theme="light"] .header:not(.scrolled) .brand__light{ opacity: 1; }
body[data-theme="light"] .header:not(.scrolled) .brand__dark{ opacity: 0; }
body[data-theme="light"] .choice{
  background: rgba(255,255,255,.72);
  border-color: rgba(11,31,56,.14);
}
body[data-theme="light"] .choice:hover{
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 18px 40px -22px rgba(11,31,56,.4);
}
/* Light hero: the side stat card (variant B) reads on light */
body[data-theme="light"] .hero__sidecard{
  background: rgba(255,255,255,.7);
  border-color: rgba(11,31,56,.14);
}
body[data-theme="light"] .hero__sidecard .scard{ border-bottom-color: rgba(11,31,56,.1); }
body[data-theme="light"] .hero__sidecard .scard b{ color: var(--ink); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats{ position: relative; z-index: 2; background: var(--bg-deep); border-top: 0; border-bottom: 1px solid var(--line); margin-top: -2px; }
.stats__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat{
  padding: clamp(38px,5vw,62px) clamp(20px,3vw,40px);
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child{ border-right: none; }
.stat__num{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--white);
  display: flex; align-items: baseline; gap: 2px;
}
.stat__num .suf{ color: var(--accent); }
.stat__label{
  margin-top: 14px;
  font-size: 15px;
  color: var(--mist);
  font-weight: 500;
  max-width: 220px;
}

/* ============================================================
   GENERIC SECTION HEADERS
   ============================================================ */
.sec-head{ max-width: 760px; }
.sec-head--center{ margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow{ }
.sec-head .h-sec{ margin-top: 22px; }
.sec-head .lead{ margin-top: 20px; }

/* ============================================================
   AUDIENCE CARDS (Para quem é)
   ============================================================ */
.audience-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 58px;
}
.acard{
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  min-height: 440px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  transition: transform .5s var(--ease), border-color .4s;
}
.acard:hover{ transform: translateY(-6px); border-color: var(--line-strong); }
.acard__media{ position: absolute; inset: 0; z-index: 0; }
.acard__media .media-ph{ background:
    repeating-linear-gradient(135deg, rgba(233,241,227,.04) 0 2px, transparent 2px 20px),
    radial-gradient(120% 100% at 30% 0%, #163a5e 0%, #0c2740 60%, #081a2d 100%); }
.acard__scrim{ position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,22,37,.1) 0%, rgba(8,22,37,.55) 50%, rgba(8,22,37,.96) 100%); }
.acard__body{ position: relative; z-index: 2; padding: 36px; }
.acard__tag{ font-family: var(--font-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.acard h3{ font-size: clamp(1.7rem,2.6vw,2.3rem); margin-top: 12px; color: var(--white); }
.acard p{ margin-top: 14px; color: var(--mist); max-width: 420px; }
.acard__link{
  margin-top: 24px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink); font-size: 15.5px;
  transition: gap .3s, color .3s;
}
.acard__link svg{ width: 18px; height: 18px; color: var(--accent); transition: transform .3s; }
.acard:hover .acard__link{ color: var(--accent); }
.acard:hover .acard__link svg{ transform: translateX(5px); }

/* ============================================================
   FACTORY (Somos fábrica) + Timeline
   ============================================================ */
.factory{ background: var(--bg-deep); border-top: 1px solid var(--line); }
.factory__top{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,90px);
  align-items: center;
}
.factory__media{
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.factory__media .media-ph{ background:
    repeating-linear-gradient(135deg, rgba(233,241,227,.04) 0 2px, transparent 2px 22px),
    radial-gradient(120% 100% at 60% 20%, #16395d 0%, #0c2740 55%, #06121f 100%); }
.factory__badge{
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(6,18,31,.7); backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 10px 18px; font-size: 13px; font-weight: 700; color: var(--ink);
}
.factory__badge .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(240,64,79,.2); }
.factory__copy .h-sec{ margin-top: 22px; }
.factory__copy .h-sec .text-accent{ display:block; }
.factory__copy p{ margin-top: 22px; max-width: 520px; }
.factory__points{ margin-top: 30px; display: grid; gap: 14px; }
.fpoint{ display: flex; gap: 14px; align-items: flex-start; }
.fpoint svg{ width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 1px; }
.fpoint span{ color: var(--ink); font-weight: 600; }

/* Process timeline */
.process{ margin-top: clamp(60px,8vw,104px); }
.process__head{ display:flex; align-items:flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.process__controls{ display: flex; gap: 12px; flex: none; margin-left: auto; }
.process__nav{
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink);
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease), opacity .25s;
}
.process__nav svg{ width: 22px; height: 22px; }
.process__nav:hover{ border-color: var(--accent); background: var(--accent); color: #fff; transform: translateY(-2px); }
.process__nav:disabled{ opacity: .35; cursor: default; pointer-events: none; }

.process__viewport{ margin-top: 44px; overflow: hidden; cursor: grab; touch-action: pan-y; }
.process__viewport.is-grabbing{ cursor: grabbing; }
.process__viewport.is-grabbing .pstep{ transition: none; }
.process__viewport.is-grabbing *{ user-select: none; }
.process__track{
  display: flex;
  gap: 18px;
  transition: transform .6s var(--ease);
  will-change: transform;
}
.pstep{
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px 28px;
  background: var(--surface);
  position: relative;
  transition: border-color .3s, background .3s, box-shadow .3s var(--ease);
}
.pstep:hover{ border-color: var(--accent); background: var(--surface-2); box-shadow: 0 16px 38px -22px rgba(6,18,31,.55); }
.pstep__n{
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  color: var(--accent); letter-spacing: .05em;
}
.pstep h4{ margin-top: 16px; font-size: 1.2rem; color: var(--ink); font-weight: 800; line-height: 1.12; }
.pstep p{ margin-top: 10px; font-size: 14.5px; color: var(--mist); }
.pstep__bar{ position:absolute; left:24px; right:24px; top:0; height:3px; background: var(--accent); border-radius: 0 0 3px 3px; transform: scaleX(0); transform-origin:left; transition: transform .4s var(--ease); }
.pstep:hover .pstep__bar{ transform: scaleX(1); }

.process__dots{ display: flex; gap: 9px; justify-content: center; margin-top: 34px; }
.process__dots button{
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-strong);
  transition: width .35s var(--ease), background .35s;
}
.process__dots button.is-active{ width: 30px; border-radius: 6px; background: var(--accent); }
@media (prefers-reduced-motion: reduce){
  .process__track{ transition: none; }
}

.process__close{
  margin: 28px auto 0; max-width: 720px; text-align: center;
  font-size: clamp(15px, 1.4vw, 17px); line-height: 1.55; color: var(--mist);
}
.process__close b{ color: var(--ink); font-weight: 700; }

/* ============================================================
   CLIENTS (logo strip)
   ============================================================ */
.logo-slot__tag{
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700;
  color: rgba(11,31,56,.34);
  border: 1px dashed rgba(11,31,56,.18);
  padding: 9px 14px; border-radius: 5px;
  white-space: nowrap;
  transition: color .3s, border-color .3s;
}
.logo-slot:hover .logo-slot__tag{ color: rgba(11,31,56,.5); border-color: rgba(11,31,56,.3); }
.clients__grid{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(11,31,56,.1);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}
.logo-slot{
  aspect-ratio: 16/8;
  display: grid; place-items: center;
  border-right: 1px solid rgba(11,31,56,.08);
  border-bottom: 1px solid rgba(11,31,56,.08);
  padding: 20px 24px;
  transition: background .3s;
}
.logo-slot:nth-child(5n){ border-right: none; }
.logo-slot:nth-last-child(-n+5){ border-bottom: none; }
.logo-slot:hover{ background: #f7f9fc; }
.logo-slot img{
  width: 72%; height: 46px;
  object-fit: contain; object-position: center;
  filter: grayscale(1);
  opacity: .6;
  transition: filter .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
}
.logo-slot:hover img{ filter: none; opacity: 1; transform: translateY(-2px); }
/* Logotipos reais (recortados): normalizados por altura */
.logo-slot__img{
  width: auto; height: auto; max-width: 74%; max-height: 40px;
  object-fit: contain; object-position: center;
  filter: grayscale(1); opacity: .62;
  transition: filter .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
}
.logo-slot:hover .logo-slot__img{ filter: none; opacity: 1; transform: translateY(-2px); }
.logo-slot__img[src$="gulf.png"]{ max-height: 58px; }
.logo-slot__img[src$="amigao.png"]{ max-height: 34px; }
.clients__grid--logos{ grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px){ .clients__grid--logos{ grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px){
  .clients__grid--logos{ grid-template-columns: repeat(7, 1fr); }
  .clients__grid--logos .logo-slot:nth-child(5n){ border-right: 1px solid rgba(11,31,56,.08); }
  .clients__grid--logos .logo-slot:nth-child(7n){ border-right: none; }
  .clients__grid--logos .logo-slot:nth-last-child(-n+7){ border-bottom: none; }
}
.logo-slot__img[src$="petrogo-v2.png"]{ max-height: 36px; }


/* ============================================================
   WORKS — obras pelo Brasil (marquee)
   ============================================================ */
.works{ padding-top: clamp(56px, 8vw, 96px); overflow: hidden; }
.works__intro{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.works__copy .eyebrow{ margin-bottom: 18px; }
.works__copy .lead{ margin-top: 18px; }
.works__map{ position: relative; max-width: 460px; justify-self: end; width: 100%; }
.works__map svg{ width: 100%; height: auto; display: block; color: var(--mist-dim); }
.works-dot{ fill: currentColor; opacity: .32; transform-box: fill-box; transform-origin: center; }
.works-dot--on{ fill: var(--accent); opacity: .95; }
.works-dot--hq{ fill: var(--accent); opacity: 1; }
.works-ring{
  fill: none; stroke: var(--accent); stroke-width: .6; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
.works-dot.is-pulsing{ animation: works-dot-pulse 1.4s var(--ease); }
@keyframes works-dot-pulse{
  0%{ opacity: .32; fill: currentColor; transform: scale(1); }
  35%{ opacity: 1; fill: var(--accent); transform: scale(1.9); }
  100%{ opacity: .32; fill: currentColor; transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference){
  .works-ring{ animation: works-ring-pulse 2.6s ease-out infinite; }
}
@keyframes works-ring-pulse{
  0%{ opacity: .8; transform: scale(.4); }
  70%{ opacity: 0; transform: scale(2.6); }
  100%{ opacity: 0; transform: scale(2.6); }
}
.works__map-tag{
  position: absolute; left: 0; top: 0;
  transform: translate(calc(-100% - 22px), -50%);
  display: inline-flex; align-items: center;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--mist);
  background: var(--bg);
  padding: 4px 8px; border-radius: 3px;
}
.works__map-tag::after{
  content: "";
  position: absolute; left: 100%; top: 50%;
  width: 16px; height: 1px;
  background: var(--accent);
  margin-left: 4px;
}
@media (max-width: 900px){
  .works__intro{ grid-template-columns: 1fr; }
  .works__map{ justify-self: center; max-width: 400px; }
}
.works__strip{ position: relative; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.works__strip.is-grabbing{ cursor: grabbing; }
.works__row{ display: flex; width: max-content; animation: works-scroll 26s linear infinite; }
.works__strip:hover .works__row{ animation-play-state: paused; }
.works__set{ display: flex; gap: 18px; padding-right: 18px; }
.work{
  position: relative; margin: 0;
  width: clamp(320px, 36vw, 520px);
  aspect-ratio: 16/9;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
}
.work img{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.work figcaption{
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-family: var(--font-body);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: #eef4fb; background: rgba(6,16,28,.62);
  padding: 5px 10px; border-radius: 3px;
  border: 1px solid rgba(233,241,227,.16);
}
@keyframes works-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .works__row{ animation: none; }
  .works__strip{ overflow-x: auto; }
}

/* ============================================================
   CASES (antes / depois)
   ============================================================ */
.cases__grid{
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.case{
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .4s;
}
.case:hover{ transform: translateY(-6px); border-color: var(--line-strong); }
.case__photo{ position: relative; aspect-ratio: 16/10; overflow: hidden; }
.case__photo .photo{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.case:hover .case__photo .photo{ transform: scale(1.045); }
.case__chip{
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-body); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px; font-weight: 700;
}
.case__chip--after{ background: var(--accent); color: #fff; }
.case__body{ padding: 26px 26px 30px; }
.case__client{ font-family: var(--font-body); font-size: 12px; letter-spacing:.1em; text-transform: uppercase; color: var(--mist-dim); }
.case__result{ margin-top: 12px; min-height: 3.45em; font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }
.case__metric{ margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display:flex; flex-direction: column; gap: 6px; }
.case__metric b{ font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; line-height: 1; color: var(--accent); letter-spacing: -.01em; }
.case__metric span{ font-size: 13.5px; line-height: 1.45; color: var(--mist); }

/* ============================================================
   CONVERSION (form + whatsapp)
   ============================================================ */
.convert{ background: var(--bg-deep); border-top: 1px solid var(--line); }
.convert__grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  margin-top: 52px;
  align-items: stretch;
}
.formcard{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(28px,3.4vw,46px);
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .field{ margin-top: 0; }
.field{ margin-top: 18px; }
.field:first-child{ margin-top: 0; }
.field label{ display:block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--mist); margin-bottom: 8px; text-transform: uppercase; }
.field input, .field textarea, .field select{
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 15px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder{ color: var(--mist-dim); }
.field input:focus, .field textarea:focus, .field select:focus{ outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,64,79,.16); }
.field textarea{ resize: vertical; min-height: 96px; }
.field select{ appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a6b8cd' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.form-foot{ margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.form-note{ font-size: 13px; color: var(--mist-dim); display:flex; align-items:center; gap: 8px; }
.form-note svg{ width: 15px; height: 15px; color: var(--mist-dim); flex:none; }

.wacard{
  background: linear-gradient(165deg, #0d3b2a 0%, #0a2a3f 100%);
  border: 1px solid rgba(37,211,102,.3);
  border-radius: 14px;
  padding: clamp(28px,3.4vw,46px);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.wacard__glow{ position:absolute; top:-40px; right:-40px; width: 200px; height: 200px; border-radius:50%; background: radial-gradient(circle, rgba(37,211,102,.3), transparent 70%); }
.wacard__ico{ width: 60px; height: 60px; border-radius: 14px; background: rgba(37,211,102,.16); display:grid; place-items:center; color: var(--wa); position: relative; }
.wacard__ico svg{ width: 32px; height: 32px; }
.wacard h3{ margin-top: 22px; font-size: clamp(1.9rem, 2.8vw, 2.5rem); color: var(--white); position: relative; letter-spacing: -.02em; line-height: 1.04; }
.wacard__tag{
  align-self: flex-start; position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: #062a16; background: var(--wa);
  padding: 7px 13px; border-radius: 100px; margin-bottom: 18px;
}
.wacard__phone{
  margin-top: 18px; position: relative;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -.01em;
  color: #eafff3;
}
.formcard__head{ margin-bottom: 22px; }
.formcard__head .kk{ font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--mist-dim); }
.formcard__head h3{ margin-top: 9px; font-size: clamp(1.2rem, 1.8vw, 1.45rem); color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.wacard p{ margin-top: 14px; color: #b6d8c6; position: relative; flex: 1; }
.wacard .btn{ margin-top: 24px; position: relative; }
.wacard__hours{ margin-top: 16px; display:flex; align-items:center; gap:10px; font-size: 13.5px; color: #8fc4a8; position: relative; }
.wacard__hours .pulse{ width:8px; height:8px; border-radius:50%; background: var(--wa); box-shadow:0 0 0 0 rgba(37,211,102,.5); animation: pulse 2s infinite; }
@keyframes pulse{ 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5)} 70%{box-shadow:0 0 0 10px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ background: #050f1a; border-top: 1px solid var(--line); padding-top: clamp(60px,7vw,90px); }
.footer__top{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand img{ height: 40px; }
.footer__brand p{ margin-top: 20px; max-width: 280px; font-size: 15px; color: var(--mist); }
.footer__social{ margin-top: 24px; display: flex; gap: 10px; }
.footer__social a{ width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line-strong); display:grid; place-items:center; color: var(--mist); transition: .25s; }
.footer__social a:hover{ color: var(--white); border-color: var(--accent); background: rgba(240,64,79,.1); transform: translateY(-2px); }
.footer__social svg{ width: 18px; height: 18px; }
.footer__col h5{ font-family: var(--font-body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mist-dim); font-weight: 700; margin-bottom: 18px; }
.footer__col ul{ list-style: none; display:grid; gap: 12px; }
.footer__col a{ color: var(--mist); font-size: 15px; transition: color .2s; }
.footer__col a:hover{ color: var(--ink); }
.footer__contact li{ list-style: none; display:flex; gap: 12px; font-size: 15px; color: var(--mist); margin-bottom: 14px; align-items:flex-start; }
.footer__contact svg{ width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.footer__bottom{ margin-top: clamp(48px,6vw,72px); border-top: 1px solid var(--line); padding-block: 26px; display:flex; justify-content: space-between; align-items:center; gap: 20px; flex-wrap: wrap; }
.footer__bottom p{ font-size: 13.5px; color: var(--mist-dim); }
.footer__bottom a{ font-size: 13.5px; color: var(--mist-dim); }
.footer__bottom a:hover{ color: var(--mist); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 0;
  background: var(--wa); color: #062a16;
  height: 60px; border-radius: 100px;
  box-shadow: 0 16px 40px -12px rgba(37,211,102,.6);
  overflow: hidden;
  transition: gap .35s var(--ease), padding .35s var(--ease), transform .25s;
  padding: 0 18px;
}
.wa-float:hover{ transform: scale(1.03); }
.wa-float svg{ width: 30px; height: 30px; flex: none; }
.wa-float .wa-label{ font-weight: 800; font-size: 15px; white-space: nowrap; max-width: 0; opacity: 0; transition: max-width .4s var(--ease), opacity .3s, margin .4s; }
.wa-float:hover .wa-label{ max-width: 160px; opacity: 1; margin-left: 12px; }
.wa-float .pip{ position:absolute; top:8px; right:10px; width:12px; height:12px; border-radius:50%; background: var(--accent); border: 2px solid var(--wa); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal{ opacity: 1; }
.js .reveal{ opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in{ opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){
  .js .reveal{ opacity: 1 !important; transform: none !important; transition: none !important; }
  *{ scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1420px){
  .header__cta .btn--ghost{ display: none; }
}
@media (max-width: 1180px){
  .nav{ display: none; }
  .menu-toggle{ display: flex; }
  .footer__top{ grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  body[data-hero="b"] .hero__grid{ grid-template-columns: 1fr; }
  body[data-hero="b"] .hero__sidecard{ display: none; }
}
@media (max-width: 860px){
  .stats__grid{ grid-template-columns: 1fr 1fr; }
  .stat{ border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd){ border-right: 1px solid var(--line); }
  .stat:nth-child(even){ border-right: none; }
  .stat:nth-last-child(-n+2){ border-bottom: none; }
  .audience-grid{ grid-template-columns: 1fr; }
  .factory__top{ grid-template-columns: 1fr; }
  .factory__media{ aspect-ratio: 16/11; }
  .cases__grid{ grid-template-columns: 1fr; max-width: 460px; }
  .convert__grid{ grid-template-columns: 1fr; }
  .clients__grid{ grid-template-columns: repeat(3, 1fr); }
  .process__rail{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  body{ font-size: 16px; }
  .hero__ctas{ flex-direction: column; align-items: stretch; }
  .hero__ctas .btn{ width: 100%; }
  .choice-row{ flex-direction: column; }
  .form-row{ grid-template-columns: 1fr; }
  .footer__top{ grid-template-columns: 1fr; }
  .footer__bottom{ flex-direction: column; align-items: flex-start; }
  .clients__grid{ grid-template-columns: repeat(2, 1fr); }
  .wa-float .wa-label{ max-width: 160px; opacity: 1; margin-left: 12px; }
  .process__rail{ grid-template-columns: 1fr; }
}

/* --- Polimento mobile do site principal (não afeta a LP) --- */
@media (max-width: 600px){
  /* Header: WhatsApp do topo é redundante no celular (botão flutuante cobre a ação) */
  body:not(.lp-page) .header__cta .btn--wa{ display: none; }
  body:not(.lp-page) .header__cta{ gap: 10px; }
}
@media (max-width: 560px){
  /* CTAs do pacote ocupam largura total e empilham */
  .pkg__cta .btn{ width: 100%; justify-content: center; }
  /* Controles do processo alinham à esquerda quando o cabeçalho quebra */
  .process__controls{ margin-left: 0; }
  /* Título de seção e leads com escala confortável no toque */
  .display{ font-size: clamp(2.1rem, 9vw, 2.8rem); }
  /* Faixa de obras: cartões um pouco menores no celular */
  .work{ width: clamp(260px, 80vw, 320px); }
}

/* ============================================================
   LIGHT THEME — coesão clara
   Navy vira TINTA + 1 bloco escuro de clímax (fábrica) + rodapé.
   Ritmo por superfícies: branco / off-white / faixa azul clara.
   (specificity 0,2,0 — vence as definições-base independentemente da ordem)
   ============================================================ */
body[data-theme="light"]{
  --tint:  #e6edf7;   /* faixa azul bem clara */
  --tint2: #eef3fa;
}

/* light token set reused by every section we turn light */
body[data-theme="light"] .stats,
body[data-theme="light"] .convert,
body[data-theme="light"] .acard{
  --ink:   #0b1f38;
  --mist:  #475a72;
  --mist-dim: #7c8ca1;
  --surface:   #ffffff;
  --surface-2: #f4f7fb;
  --line:        rgba(11,31,56,0.10);
  --line-strong: rgba(11,31,56,0.20);
  color: var(--mist);
}

/* --- 2) NÚMEROS: faixa branca limpa, números navy --- */
body[data-theme="light"] .stats{
  background: #ffffff;
  border-top: 0;
  border-bottom: 1px solid rgba(11,31,56,.10);
  margin-top: -2px;
}
body[data-theme="light"] .stat{ border-right-color: rgba(11,31,56,.10); }
body[data-theme="light"] .stat__num{ color: var(--ink); }

/* --- 3) PARA QUEM: cards CLAROS com sombra (não mais navy) --- */
body[data-theme="light"] #paraquem,
body[data-theme="light"] #padronizacao{ background: var(--bg); }
body[data-theme="light"] .acard{
  background: #ffffff;
  border-color: rgba(11,31,56,.10);
  box-shadow: 0 26px 54px -36px rgba(11,31,56,.45);
}
body[data-theme="light"] .acard:hover{ border-color: rgba(11,31,56,.2); box-shadow: 0 32px 60px -34px rgba(11,31,56,.5); }
body[data-theme="light"] .acard__media .media-ph{
  background:
    repeating-linear-gradient(135deg, rgba(11,31,56,.045) 0 2px, transparent 2px 20px),
    radial-gradient(120% 100% at 30% 0%, #d6e1f1 0%, #e7eef7 58%, #ffffff 100%);
}
body[data-theme="light"] .acard__scrim{
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 44%, #ffffff 84%);
}
body[data-theme="light"] .acard h3{ color: var(--ink); }

/* Cards forced to stay DARK even in light theme (better contrast over photo) */
body[data-theme="light"] .acard--dark{
  --ink:   #eef4fb;
  --mist:  #a6b8cd;
  --line:        rgba(233,241,227,0.10);
  --line-strong: rgba(233,241,227,0.20);
  background: #0e2740;
  border-color: rgba(233,241,227,0.12);
  box-shadow: 0 26px 54px -36px rgba(8,22,37,.7);
}
body[data-theme="light"] .acard--dark:hover{
  border-color: rgba(233,241,227,0.22);
  box-shadow: 0 32px 60px -34px rgba(8,22,37,.8);
}
body[data-theme="light"] .acard--dark .acard__media .media-ph{
  background:
    repeating-linear-gradient(135deg, rgba(233,241,227,.04) 0 2px, transparent 2px 20px),
    radial-gradient(120% 100% at 30% 0%, #163a5e 0%, #0c2740 60%, #081a2d 100%);
}
body[data-theme="light"] .acard--dark .acard__scrim{
  background: linear-gradient(180deg, rgba(8,22,37,.1) 0%, rgba(8,22,37,.55) 50%, rgba(8,22,37,.96) 100%);
}
body[data-theme="light"] .acard--dark h3{ color: #ffffff; }

/* --- 5) CLIENTES: faixa branca para alternar com o off-white --- */
body[data-theme="light"] #clientes{ background: #ffffff; }

/* --- 7) CONVERSÃO: faixa azul bem clara, form branco --- */
body[data-theme="light"] .convert{
  background: var(--tint);
  border-top: 1px solid rgba(11,31,56,.08);
}
/* form fields read light (base uses a fixed deep navy) */
body[data-theme="light"] .convert .field input,
body[data-theme="light"] .convert .field textarea,
body[data-theme="light"] .convert .field select{
  background: #f4f7fb;
  border-color: rgba(11,31,56,.16);
  color: var(--ink);
}
body[data-theme="light"] .convert .field input::placeholder,
body[data-theme="light"] .convert .field textarea::placeholder{ color: #97a6ba; }
body[data-theme="light"] .convert .field input:focus,
body[data-theme="light"] .convert .field textarea:focus,
body[data-theme="light"] .convert .field select:focus{
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,64,79,.16);
}
body[data-theme="light"] .convert .field select{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475a72' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}

/* Factory (#fabrica) e Footer permanecem navy — os 2 únicos momentos escuros. */

/* ============================================================
   BOTÃO INK (secundário, navy fixo nos 2 temas)
   ============================================================ */
.btn--ink{ background: #0b1f38; color: #fff; box-shadow: 0 14px 34px -16px rgba(11,31,56,.55); }
.btn--ink:hover{ background: #16395d; transform: translateY(-2px); box-shadow: 0 22px 44px -18px rgba(11,31,56,.6); }

/* ============================================================
   PACOTE — Padronização completa
   ============================================================ */
.pkg__head{
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  gap: clamp(26px, 5vw, 76px);
  align-items: end;
}
.pkg__head-main .h-sec{ margin-top: 22px; }
.pkg__head-aside{ padding-bottom: 6px; }
.pkg__head-aside .lead{ position: relative; padding-left: 24px; }
.pkg__head-aside .lead::before{
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 3px; border-radius: 2px; background: var(--accent);
}
@media (max-width: 860px){
  .pkg__head{ grid-template-columns: 1fr; align-items: start; gap: 22px; }
}
.pkg__grid{
  margin-top: 58px; max-width: 860px; margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 40px 90px -56px rgba(6,18,31,.6);
}
.pkg__media{
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background-color: #0c2740;
  background-image:
    repeating-linear-gradient(135deg, rgba(233,241,227,.06) 0 2px, transparent 2px 24px);
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
  transition: background-size .6s var(--ease), background-position .6s var(--ease);
}
.pkg__shot{ position: absolute; inset: 0; opacity: 0; transition: opacity .55s var(--ease); }
.pkg__shot.is-active{ opacity: 1; }
/* Zoom no item em foco: cada frente aproxima a câmera do elemento citado */
.pkg__shot-fg{ transition: transform 1.1s var(--ease); transform-origin: 50% 50%; will-change: transform; }
.pkg__shot[data-shot="Testeiras"] .pkg__shot-fg{ transform-origin: 46% 18%; }
.pkg__shot[data-shot="Testeiras"].is-active .pkg__shot-fg{ transform: scale(1.75); }
.pkg__shot[data-shot="Totem"] .pkg__shot-fg{ object-position: 72% 45%; transform-origin: 72% 45%; }
.pkg__shot[data-shot="Totem"].is-active .pkg__shot-fg{ transform: scale(1.18); }
.pkg__shot[data-shot="Pista"] .pkg__shot-fg{ transform-origin: 46% 68%; }
.pkg__shot[data-shot="Pista"].is-active .pkg__shot-fg{ transform: scale(1.28); }
.pkg__shot[data-shot="Iluminação"] .pkg__shot-fg{ transform-origin: 42% 40%; }
.pkg__shot[data-shot="Iluminação"].is-active .pkg__shot-fg{ transform: scale(1.22); }
.pkg__shot[data-shot="Conveniência"] .pkg__shot-fg{ object-position: 45% 40%; transform-origin: 45% 40%; }
.pkg__shot[data-shot="Conveniência"].is-active .pkg__shot-fg{ transform: scale(1.06); }
.pkg__shot[data-shot="Painel de LED"] .pkg__shot-fg{ object-position: 55% 46%; transform-origin: 55% 46%; }
.pkg__shot[data-shot="Painel de LED"].is-active .pkg__shot-fg{ transform: scale(1.7); }
.pkg__shot-bg{ position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(30px) saturate(.75) brightness(.5); }
.pkg__shot-fg{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pkg__media::after{ content:""; position:absolute; inset:0; background: linear-gradient(115deg, rgba(6,16,28,.12) 0%, rgba(6,16,28,.5) 100%); }
.pkg__media .media-ph__label{ z-index: 2; max-width: 80%; }
.pkg__media::before{ content:""; position:absolute; left:0; right:0; top:0; height: 44%; z-index: 3; pointer-events: none; background: linear-gradient(to bottom, rgba(5,14,25,.74) 0%, rgba(5,14,25,.44) 46%, rgba(5,14,25,0) 100%); }
.pkg__overlay{ position: absolute; left: 20px; right: 20px; top: 18px; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pkg__cap{ max-width: 46ch; font-size: 14.5px; line-height: 1.45; color: #eaf1f8; text-shadow: 0 2px 14px rgba(6,16,28,.85); }
.pkg__badge{
  z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(6,18,31,.74); backdrop-filter: blur(6px);
  border: 1px solid rgba(233,241,227,.2); border-radius: 100px;
  padding: 10px 18px; font-size: 13px; font-weight: 700; color: #eef4fb;
}
.pkg__badge .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(240,64,79,.2); }
.pkg__panel{
  background: linear-gradient(165deg, #0e2740 0%, #081a2d 100%);
  padding: clamp(20px, 2.2vw, 30px) clamp(26px, 2.6vw, 40px) clamp(24px, 2.6vw, 34px);
  display: flex; flex-direction: column;
}
.pkg__kicker{
  font-family: var(--font-body); font-weight: 700; font-size: 12.5px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.pkg__topbar{ padding: clamp(22px, 2.4vw, 32px) clamp(26px, 2.6vw, 40px) clamp(18px, 2vw, 26px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.pkg__topbar h3{ margin-top: 8px; font-size: clamp(1.3rem, 1.9vw, 1.7rem); color: #fff; font-weight: 800; letter-spacing: -.02em; line-height: 1.06; font-family: var(--font-display); }
.pkg__panel h3{
  margin-top: 10px; font-size: clamp(1.35rem, 2vw, 1.8rem);
  color: #fff; font-weight: 800; letter-spacing: -.02em; line-height: 1.04;
}
.pkg__items{ list-style: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 46px 18px 16px; display: grid; grid-template-columns: repeat(6, minmax(max-content, 1fr)); gap: 8px; background: linear-gradient(to top, rgba(5,14,25,.94) 0%, rgba(5,14,25,.78) 46%, rgba(5,14,25,0) 100%); }
.pkg__item{
  display: flex; gap: 10px; align-items: center;
  padding: 11px 12px; border: 1px solid rgba(233,241,227,.12);
  border-radius: 9px; background: rgba(255,255,255,.02);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.pkg__item{ cursor: pointer; }
.pkg__item:hover,.pkg__item.is-on{ border-color: rgba(240,64,79,.75); background: rgba(240,64,79,.22); transform: translateY(-2px); }
.pkg__item svg{ width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 1px; }
.pkg__item b{ display: block; font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: #eef4fb; letter-spacing: -.01em; white-space: nowrap; }
.pkg__item span{ display: none; }
.pkg__item svg{ margin-top: 0; }
.pkg__note{
  margin-top: 18px; font-size: 13.5px; color: #8da0b6;
  display: flex; align-items: center; gap: 12px;
}
.pkg__note::before{ content:""; width: 20px; height: 2px; background: var(--accent); flex: none; }
.pkg__cta{ margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.pkg__cta .btn--ghost{ color: #eef4fb; border-color: rgba(233,241,227,.28); }
.pkg__cta .btn--ghost:hover{ border-color: #eef4fb; background: rgba(255,255,255,.05); }

.pkg__alt{
  margin-top: 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
body[data-theme="light"] .pkg__alt{ background: #ffffff; box-shadow: 0 20px 50px -40px rgba(11,31,56,.5); }
.pkg__alt:hover{ border-color: var(--line-strong); transform: translateY(-3px); }
.pkg__alt-ico{ width: 48px; height: 48px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(240,64,79,.1); color: var(--accent); }
.pkg__alt-ico svg{ width: 25px; height: 25px; }
.pkg__alt-tx{ display: flex; flex-direction: column; gap: 3px; }
.pkg__alt b{ font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; color: var(--ink); letter-spacing: -.01em; }
.pkg__alt span{ font-size: 14px; color: var(--mist); }
.pkg__alt-arrow{ margin-left: auto; color: var(--mist-dim); transition: transform .3s, color .3s; }
.pkg__alt:hover .pkg__alt-arrow{ transform: translateX(5px); color: var(--accent); }

@media (max-width: 1100px){
  .pkg__media{ aspect-ratio: 16/9; }
  .pkg__items{ grid-template-columns: repeat(3, minmax(max-content, 1fr)); }
}
@media (max-width: 620px){
  .pkg__items{ position: static; padding: 18px 18px 22px; background: rgba(6,18,31,.55); grid-template-columns: 1fr; }
  .pkg__item{ align-items: flex-start; }
  .pkg__item span{ display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: #9fb2c8; }
  .pkg__cap{ display: none; }
  .pkg__alt{ gap: 14px; }
  .pkg__alt-arrow{ display: none; }
}

/* ============================================================
   FÁBRICA — banner drone full-width
   ============================================================ */
.factory__hero{
  position: relative;
  aspect-ratio: 16 / 6.4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.media-ph--drone{
  background:
    repeating-linear-gradient(90deg, rgba(233,241,227,.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(233,241,227,.05) 0 1px, transparent 1px 64px),
    radial-gradient(130% 150% at 50% -25%, #1a4368 0%, #0c2740 55%, #06121f 100%);
}
.factory__hero .media-ph__label{
  left: 50%; top: 50%; right: auto; bottom: auto;
  transform: translate(-50%, -50%); text-align: center;
  max-width: min(82vw, 560px);
}
.factory__lead{ max-width: 880px; margin-top: clamp(40px, 5vw, 66px); }
.factory__lead .eyebrow{ color: var(--mist); }
.factory__lead .h-sec{ margin-top: 22px; }
.factory__lead .h-sec .text-accent{ display: inline; }
.factory__lead .lead{ margin-top: 22px; }
.factory__points--row{ grid-template-columns: repeat(3, 1fr); margin-top: 42px; gap: 26px; align-items: start; }
@media (max-width: 860px){
  .factory__hero{ aspect-ratio: 16 / 9; }
  .factory__hero .media-ph__label{ max-width: 80vw; }
  .factory__points--row{ grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   CLIENTES — placeholders cinza (sem marca real)
   ============================================================ */
.logo-ph{
  width: 72%; height: 40px; border-radius: 7px;
  background: linear-gradient(100deg, rgba(11,31,56,.05) 0%, rgba(11,31,56,.11) 50%, rgba(11,31,56,.05) 100%);
  border: 1px dashed rgba(11,31,56,.16);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.logo-slot:hover .logo-ph{ border-color: rgba(11,31,56,.26); transform: translateY(-2px); }
.logo-slot:nth-child(3n) .logo-ph{ width: 58%; height: 44px; border-radius: 50px; }
.logo-slot:nth-child(4n) .logo-ph{ width: 84%; height: 32px; }
.logo-slot:nth-child(5n) .logo-ph{ width: 50%; height: 50px; border-radius: 9px; }

/* ============================================================
   PÁGINA SOBRE
   ============================================================ */
.about-hero{
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--bg-deep);
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(48px, 7vw, 96px);
  --ink: #eef4fb; --mist: #a6b8cd; --mist-dim: #6f86a1;
  --line: rgba(233,241,227,0.10); --line-strong: rgba(233,241,227,0.20);
  color: var(--mist);
}
.about-hero__media{ position: absolute; inset: 0; z-index: 0; }
.about-hero__scrim{
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,18,31,.5) 0%, rgba(6,18,31,.35) 36%, rgba(6,18,31,.86) 100%),
    linear-gradient(100deg, rgba(6,18,31,.8) 0%, rgba(6,18,31,.32) 70%);
}
.about-hero__inner{ position: relative; z-index: 2; }
.about-hero h1{ margin-top: 22px; max-width: 22ch; font-size: clamp(2.1rem, 4.6vw, 3.7rem); text-wrap: balance; }
.about-hero .lead{ margin-top: 24px; max-width: 660px; color: #cdd9e6; }
.about-hero .eyebrow{ color: #c2d0e0; }
.about-hero .display{ color: #f1f6fc; }

/* MVV */
.mvv__grid{ margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.mvv__card--vals{ grid-column: 1 / -1; }
.mvv__sub{ margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--mist); text-wrap: pretty; }
.mvv__card--mission .mvv__sub{ color: rgba(255,255,255,.72); }
.mvv__card{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--surface);
  display: flex; flex-direction: column;
}
body[data-theme="light"] .mvv__card{ background: #ffffff; box-shadow: 0 26px 60px -44px rgba(11,31,56,.45); }
.mvv__card--mission{
  background: linear-gradient(165deg, #0e2740 0%, #081a2d 100%);
  border-color: rgba(240,64,79,.4);
  --ink: #eef4fb; --mist: #a6b8cd;
}
.mvv__k{
  font-family: var(--font-body); font-size: 12.5px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.mvv__card--mission .mvv__k{ color: var(--accent-bright); }
.mvv__big{
  margin-top: 22px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.12;
  letter-spacing: -.02em; color: var(--ink); text-wrap: pretty;
}
.mvv__card--mission .mvv__big{ color: #fff; }
.mvv__vals{ list-style: none; margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.mvv__vals li{
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 26px; border-left: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  color: var(--ink); letter-spacing: -.01em;
}
.mvv__vals li:first-child{ border-left: none; padding-left: 0; }
.mvv__vals li:last-child{ padding-right: 0; }
.mvv__vals b{ font-size: 1.12rem; letter-spacing: -.01em; color: var(--ink); }
.mvv__vals span{ font-family: var(--font-body); font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--mist); }
.mvv__vals q{
  margin-top: 4px; font-family: var(--font-body); font-style: italic; font-weight: 600;
  font-size: 13.5px; line-height: 1.45; color: var(--accent); quotes: "\201C" "\201D";
}
@media (max-width: 860px){
  .mvv__vals{ grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .mvv__vals li:nth-child(odd){ border-left: none; padding-left: 0; }
}
@media (max-width: 560px){
  .mvv__vals{ grid-template-columns: 1fr; gap: 22px; }
  .mvv__vals li{ border-left: none; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
  .mvv__vals li:last-child{ padding-bottom: 0; border-bottom: none; }
}
.tag-ok, .tag-tbc{
  font-family: var(--font-body); font-size: 9.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; flex: none; line-height: 1;
}
.tag-ok{ color: #0c3b22; background: rgba(37,211,102,.9); }
.tag-tbc{ color: var(--accent); background: rgba(240,64,79,.12); border: 1px solid rgba(240,64,79,.32); }
.mvv__k .tag-tbc{ margin-left: 2px; }
@media (max-width: 920px){
  .mvv__grid{ grid-template-columns: 1fr; }
}

/* Vídeo institucional */
.about-video__frame{
  margin-top: 52px; position: relative;
  aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-strong);
}
.about-video__frame .media-ph__label{
  left: 50%; top: auto; bottom: 26px; right: auto;
  transform: translateX(-50%); text-align: center; max-width: min(82vw, 560px);
}
.about-video__play{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(72px, 9vw, 104px); height: clamp(72px, 9vw, 104px);
  border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; z-index: 2;
  box-shadow: 0 20px 50px -16px rgba(240,64,79,.6);
  transition: transform .3s var(--ease), background .3s;
}
.about-video__play::after{
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(240,64,79,.4);
  animation: works-ring-pulse 2.6s ease-out infinite;
}
.about-video__play:hover{ transform: translate(-50%, -50%) scale(1.06); background: var(--accent-bright); }
.about-video__play svg{ width: 38%; height: 38%; margin-left: 8%; }

.about-proof .stats{ margin-top: 0; }

@media (max-width: 560px){
  .about-hero{ min-height: 70vh; }
}

/* Mission card stays dark navy even in light theme (white text needs dark bg) */
body[data-theme="light"] .mvv__card--mission{
  background: linear-gradient(165deg, #0e2740 0%, #081a2d 100%);
  border-color: rgba(240,64,79,.4);
  box-shadow: 0 30px 64px -42px rgba(11,31,56,.65);
}

/* ============================================================
   SOBRE — blocos institucionais próprios (não repetir a Home)
   ============================================================ */
/* Hero: rótulo institucional no canto */
.about-hero .media-ph__label{
  left: auto; right: var(--gutter); top: auto; bottom: 30px;
  transform: none; text-align: right; max-width: 320px;
}
@media (max-width: 900px){ .about-hero .media-ph__label{ display: none; } }

/* 2) Abertura — história da empresa */
.story__grid{
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.story__head .h-sec{ margin-top: 22px; }
.story__body .lead{ color: var(--ink); font-weight: 500; }
.story__body p + p{ margin-top: 20px; color: var(--mist); }
.story__rule{ width: 54px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 26px; }
@media (max-width: 860px){ .story__grid{ grid-template-columns: 1fr; gap: 24px; } }
.tline-wrap{ margin-top: clamp(48px, 6vw, 84px); padding-top: clamp(38px, 5vw, 62px); border-top: 1px solid var(--line); }
.tline__title{ margin-top: 18px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); max-width: 20ch; text-wrap: pretty; }
.tline__intro{ margin-top: 18px; max-width: 68ch; color: var(--mist); line-height: 1.65; text-wrap: pretty; }
.tline{ list-style: none; margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.tline__i{ position: relative; padding: 28px 22px 0 0; border-top: 2px solid var(--line); }
.tline__i::before{ content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.tline__i--now{ border-top-color: var(--accent); }
.tline__i--now::before{ background: var(--accent); box-shadow: 0 0 0 5px rgba(240,64,79,.16); }
.tline__y{ display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.tline__i--now .tline__y{ color: var(--accent); }
.tline__i p{ margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--mist); text-wrap: pretty; }
.tline__foot{ margin-top: clamp(30px, 4vw, 44px); max-width: 62ch; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
@media (max-width: 900px){ .tline{ grid-template-columns: repeat(2, 1fr); gap: 26px 22px; } .tline__i{ padding-right: 0; } }
@media (max-width: 520px){ .tline{ grid-template-columns: 1fr; } }

/* 3) Diretores / maestros */
.leaders__head{ max-width: 760px; }
.leaders__head .h-sec{ margin-top: 22px; }
.leaders__head .lead{ margin-top: 20px; }

/* 4) Produção própria — medição → serralheria → instalação */
.ownproc__steps{
  list-style: none; margin-top: 52px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  counter-reset: op;
}
.ownproc__step{
  position: relative; padding: 30px 26px 32px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-2);
}
.ownproc__step + .ownproc__step::before{
  content: ""; position: absolute; left: -12px; top: 50%;
  width: 14px; height: 2px; background: var(--line-strong);
}
.ownproc__n{
  font-family: var(--font-display); font-weight: 900; font-size: 1.1rem;
  color: var(--accent); letter-spacing: .02em;
}
.ownproc__step h3{ margin-top: 14px; font-size: 1.4rem; color: var(--ink); }
.ownproc__step p{ margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--mist); }
@media (max-width: 760px){
  .ownproc__steps{ grid-template-columns: 1fr; }
  .ownproc__step + .ownproc__step::before{ left: 50%; top: -12px; width: 2px; height: 14px; transform: translateX(-50%); }
}

/* 5) Autoridade — banda escura, layout próprio (não é a faixa de stats da Home) */
.authority{ background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.authority__grid{ display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.authority__intro .h-sec{ margin-top: 22px; color: var(--ink); }
.authority__intro .lead{ margin-top: 20px; color: var(--mist); }
.authority__list{ list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.authority__list li{
  padding: 24px 22px; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.authority__list li:nth-child(-n+2){ border-top: none; }
.authority__list li:nth-child(odd){ border-left: none; }
.authority__list b{
  font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1; color: var(--ink); letter-spacing: -.02em;
}
.authority__list li:nth-child(3) b,
.authority__list li:nth-child(4) b{ color: var(--accent); }
.authority__list li:nth-child(5) b{ color: var(--accent); font-size: clamp(1.1rem, 2vw, 1.5rem); }
.authority__list span{ font-size: 14px; line-height: 1.45; color: var(--mist); }
@media (max-width: 860px){
  .authority__grid{ grid-template-columns: 1fr; }
}
@media (max-width: 480px){
  .authority__list{ grid-template-columns: 1fr; }
  .authority__list li{ border-left: none; }
  .authority__list li:nth-child(2){ border-top: 1px solid var(--line); }
}

.pkg__cta--bar{ margin-top: 0; gap: 10px; }
.pkg__cta--bar .btn{ padding: 12px 18px; font-size: 14px; }
@media (max-width: 620px){ .pkg__cta--bar{ width: 100%; } .pkg__cta--bar .btn{ flex: 1 1 auto; justify-content: center; } }


/* ---------- Cases: slider antes/depois (arrastar) ---------- */
.cases__grid--ba{ display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 820px){ .cases__grid--ba{ grid-template-columns: repeat(3, 1fr); } }
.ba__stage{
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); cursor: ew-resize; user-select: none; touch-action: none;
  -webkit-user-select: none; -webkit-touch-callout: none;
  --p: 16%;
}
.ba__ph{
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-align: center;
}
.ba__ph--after{
  background-color: #0c2740;
  background-image: repeating-linear-gradient(135deg, rgba(233,241,227,.06) 0 2px, transparent 2px 24px);
  color: rgba(233,241,227,.5);
}
.ba__before{ position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba__img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__ph--before{
  background-color: #241512;
  background-image: repeating-linear-gradient(135deg, rgba(255,220,200,.06) 0 2px, transparent 2px 24px);
  color: rgba(255,220,200,.55);
}
.ba__tag{
  position: absolute; top: 12px; z-index: 3;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  color: #fff;
}
.ba__tag--after{ right: 12px; background: var(--accent); }
.ba__tag--before{ left: 12px; background: rgba(0,0,0,.5); }
.ba__handle{
  position: absolute; top: 0; bottom: 0; left: var(--p); z-index: 4;
  width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(6,18,31,.15);
  display: grid; place-items: center; pointer-events: none;
}
.ba__handle svg{
  position: absolute; top: 50%; left: 50%; margin: -19px 0 0 -19px;
  width: 26px; height: 26px; padding: 6px; box-sizing: content-box;
  background: #fff; color: var(--ink); border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(6,18,31,.5);
  transition: color .18s ease, box-shadow .18s ease;
}
/* Feedback de clique: as setinhas ficam vermelhas enquanto arrasta */
.ba__stage.is-dragging .ba__handle svg{ color: var(--accent); box-shadow: 0 6px 20px -5px rgba(201,42,57,.6); }
/* Dica de "arraste": o ícone balança suavemente até a 1ª interação */
@media (prefers-reduced-motion: no-preference){
  .ba__stage:not(.ba-touched) .ba__handle svg{ animation: ba-nudge 2.6s ease-in-out infinite; }
  /* Desencontra o balanço entre os três sliders */
  .cases__grid--ba .ba:nth-child(2) .ba__stage:not(.ba-touched) .ba__handle svg{ animation-duration: 3.2s; animation-delay: .4s; }
  .cases__grid--ba .ba:nth-child(3) .ba__stage:not(.ba-touched) .ba__handle svg{ animation-duration: 2.2s; animation-delay: .9s; }
}
@keyframes ba-nudge{
  0%, 55%, 100%{ transform: translateX(0); }
  18%{ transform: translateX(-5px); }
  36%{ transform: translateX(5px); }
}
.ba__cap{ margin-top: 14px; }
.ba__cap b{ display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.ba__cap span{ display: block; margin-top: 3px; font-size: 13.5px; color: var(--mist); }


/* ============================================================
   RESPONSIVO — camada de blindagem (última no arquivo, vence o resto)
   Cobre 320px → 4K. Nada aqui muda o desenho no desktop.
   ============================================================ */

/* 1. A trava horizontal já existe na regra base do body (overflow-x: hidden).
      NÃO declarar overflow-x em html + body ao mesmo tempo: o html vira contêiner
      de rolagem próprio e a página inteira trava. */

/* 2. Mídia nunca estoura o contêiner */
img, video, canvas, iframe{ max-width: 100%; }
/* svg NÃO entra: ícones absolutos (alça do antes/depois) seriam esmagados pelo pai */

/* 3. Filhos de grid/flex podem encolher abaixo do conteúdo mínimo */
.container > *, .stats__grid > *, .clients__grid > *, .convert__grid > *,
.form-row > *, .footer__top > *, .pkg__grid > *, .pkg__items > *,
.works__intro > *, .cases__grid > *, .cases__grid--ba > *,
.process__rail > *, .factory__points > *, .mvv__grid > *,
.story__grid > *, .ownproc__steps > *, .authority__grid > *,
.authority__list > *, .lp-pain__grid > *, .lp-hero__grid > *,
.lp-logos__row > *, .lp-steps > *, .lp-final__grid > *{ min-width: 0; }

/* 4. Palavras longas (URLs, e-mails, nomes de rede) quebram em vez de estourar */
h1, h2, h3, h4, p, li, a, span, b, strong, label{ overflow-wrap: break-word; }
.display, .h-sec{ text-wrap: balance; }

/* 5. Telas estreitas: botões deixam de ser nowrap e ocupam a linha */
@media (max-width: 520px){
  .btn{ white-space: normal; text-align: center; line-height: 1.2; --pad-x: 20px; }
  .btn--lg{ --pad-y: 17px; --pad-x: 22px; font-size: 15.5px; }
  .btn svg{ flex: none; }
}

/* 5b. Escolhas do hero: em coluna, o flex-basis vira ALTURA — trava em auto */
@media (max-width: 900px){
  .choice-row{ flex-direction: column; }
  .choice{ flex: 0 0 auto; }
}
@media (max-width: 560px){
  .choice{ flex: 0 0 auto; padding: 13px 14px; gap: 12px; align-items: center; }
  .choice__ico{ width: 38px; height: 38px; border-radius: 7px; }
  .choice__ico svg{ width: 19px; height: 19px; }
  .choice__tx b{ font-size: 1rem; line-height: 1.2; }
  .choice__tx span{ font-size: 12.5px; line-height: 1.3; }
  .choice-row{ gap: 10px; }
  .hero__ctas{ margin-top: 28px; }
  .hero h1{ margin-top: 14px; }
  .hero__sub{ margin-top: 14px; }
  .choice-row{ margin-top: 20px; }
  .hero{ padding-bottom: 48px; }
}

/* 5c. Mídia ganha presença no celular (16:9 fica baixa demais) */
@media (max-width: 620px){
  .pkg__media{ aspect-ratio: 4 / 3; }
  .factory__hero{ aspect-ratio: 4 / 3; }
  .about-video__frame{ aspect-ratio: 3 / 2; }
  .ba__stage{ aspect-ratio: 3 / 2; }
}

/* 5d. Áreas seguras (notch / barra inferior do iPhone) */
.wa-float{ margin-bottom: env(safe-area-inset-bottom, 0px); }
.mobile-nav{ padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }

/* 6. Cartões e blocos com respiro proporcional no celular */
@media (max-width: 440px){
  :root{ --gutter: 16px; }
  .formcard, .wacard{ padding: 22px 18px; }
  .wacard h3{ font-size: 1.6rem; }
  .wacard__phone{ font-size: 1.35rem; }
  .logo-slot{ padding: 12px; }
  .stat{ padding-inline: 14px; }
  .pkg__item{ padding-inline: 0; }
}

/* 7. Alvos de toque nunca abaixo de 44px — SEM alterar o desenho do elemento:
      a área clicável cresce por pseudo-elemento invisível. */
@media (pointer: coarse){
  .btn, .menu-toggle, .process__controls button{ min-height: 44px; }
  .footer__col a, .footer__contact a, .mobile-nav a{ min-height: 44px; display: inline-flex; align-items: center; }
  .process__dots button{ position: relative; }
  .process__dots button::after{ content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:44px; height:44px; }
  .ba__handle svg{ padding: 15px; margin: -28px 0 0 -28px; }
}
/* Ícones sociais são quadrados 42×42 — nada de esticar */
.footer__social a{ display: grid; place-items: center; min-height: 0; }

/* 7b. WhatsApp flutuante: no celular volta a ser só o ícone —
      a pílula aberta tampava os cards do hero. */
@media (max-width: 760px){
  .wa-float .wa-label{ max-width: 0; opacity: 0; margin-left: 0; }
  .wa-float{ right: 16px; bottom: 16px; padding: 0; width: 58px; height: 58px; justify-content: center; }
}

/* 7c. Pacote no celular: a foto mantém a proporção original 16:9 (sem corte
      nenhum) e o trilho de pílulas ganha uma faixa PRÓPRIA abaixo dela. */
@media (max-width: 620px){
  .pkg__media{
    box-sizing: content-box;
    aspect-ratio: 16 / 9;
    padding-bottom: 116px;
  }
  .pkg__media .pkg__shot{ inset: 0 0 116px 0; }
  /* só o trilho que fica SOBRE a foto vira carrossel — a lista solta da LP
     de galpões continua empilhada */
  .pkg__media .pkg__items{
    position: absolute; left: 0; right: 0; bottom: 0; top: auto;
    height: 116px; align-content: center;
    display: flex; grid-template-columns: none;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 14px; scrollbar-width: none; gap: 8px;
    padding: 44px 14px 16px;
  }
  .pkg__media .pkg__items::-webkit-scrollbar{ display: none; }
  /* pílulas do tamanho do texto — nada de card cortado na borda */
  .pkg__media .pkg__item{
    flex: 0 0 auto; scroll-snap-align: center; align-items: center;
    padding: 10px 14px; border-radius: 100px; gap: 8px;
    background: rgba(8,20,34,.82); backdrop-filter: blur(4px);
  }
  .pkg__media .pkg__item span{ display: none; }
  .pkg__media .pkg__item b{ font-size: .95rem; white-space: nowrap; }
  .pkg__media .pkg__item svg{ width: 16px; height: 16px; }

  /* Indicativo de arraste: some na primeira interação */
  .pkg__swipe{
    position: absolute; left: 14px; right: 14px; bottom: 86px; z-index: 4;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-size: 11.5px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: #cfe0f0;
    text-shadow: 0 2px 10px rgba(5,14,25,.9);
    pointer-events: none; transition: opacity .35s;
  }
  .pkg__swipe svg{ width: 15px; height: 15px; flex: none; color: var(--accent); }
  .pkg__media.rail-touched .pkg__swipe{ opacity: 0; }
  /* borda direita esmaecida: elemento próprio, para não sequestrar o
     ::after do .pkg__media (que é o scrim da foto) */
  .pkg__railfade{
    position: absolute; right: 0; bottom: 0; z-index: 4;
    width: 46px; height: 72px; pointer-events: none;
    background: linear-gradient(to left, rgba(5,14,25,.92), rgba(5,14,25,0));
  }
  /* visível por padrão; só esconde quando não há mais itens para arrastar */
  .pkg__media:not(.has-rail) .pkg__railfade{ display: none; }
}
@media (min-width: 621px){ .pkg__swipe, .pkg__railfade{ display: none; } }
@keyframes rail-nudge{ 0%,100%{ transform: translateX(-3px) } 50%{ transform: translateX(3px) } }
@media (max-width: 620px) and (prefers-reduced-motion: no-preference){
  .pkg__swipe svg{ animation: rail-nudge 1.7s ease-in-out infinite; }
  .pkg__swipe svg:first-child{ animation-direction: reverse; }
}

/* 7d. Contadores animados herdam o tamanho do número (vinham 12px) */
.si b [data-count], .stat b [data-count], b [data-count]{ font-size: inherit; line-height: inherit; }

/* 8. Telas muito largas: o conteúdo respira mas não estica sem limite */
@media (min-width: 1800px){
  :root{ --maxw: 1440px; }
}
