/* ============================================================
   METALTHEC — Premium Industrial One-Page
   Tokens + Layout + Components
============================================================ */

:root {
  /* Brand */
  --bg:           #0B0C0E;
  --bg-2:         #121316;
  --bg-3:         #0E141E;
  --panel:        #15171B;
  --panel-2:      #1B1E24;
  --line:         #24272E;
  --line-2:       #2C313A;
  --steel:        #E0E0E0;
  --steel-dim:    #B7BCC4;
  --muted:        #7E848F;
  --muted-2:      #5A5F69;

  --copper:       #B85522;
  --copper-2:     #D26628;
  --copper-soft:  rgba(184, 85, 34, 0.16);
  --copper-glow:  rgba(184, 85, 34, 0.42);

  --success:      #4FB286;
  --warn:         #E0A340;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  /* Shadows */
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.7);
  --shadow-cta:  0 16px 40px -12px rgba(184, 85, 34, 0.55), 0 1px 0 rgba(255,255,255,0.18) inset;

  /* Type */
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Layout */
  --container: 1280px;
  --gutter: 28px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--copper); color: white; }

/* Background ambient grain + grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(184,85,34,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(14,20,30,0.9), transparent 60%);
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  z-index: 0;
  opacity: 0.55;
}

main, header, footer { position: relative; z-index: 1; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: 0 auto;
}

/* ---------- Utility / type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper);
}
.eyebrow.no-rule::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: white;
  margin: 0;
}
.h-display {
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
.h-section {
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.h-sub {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--steel-dim);
  font-weight: 400;
  line-height: 1.55;
  max-width: 64ch;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.section-head .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: right;
  white-space: nowrap;
}
.section { padding: 140px 0; }
.section.tight { padding: 96px 0; }
@media (max-width: 720px) {
  .section { padding: 96px 0; }
  .section.tight { padding: 64px 0; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .meta { text-align: left; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .2s, box-shadow .25s;
  position: relative;
  white-space: nowrap;
}
.btn .arrow { width: 16px; height: 16px; transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary {
  background: var(--copper);
  color: white;
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { background: var(--copper-2); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--steel);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--steel-dim); background: rgba(255,255,255,0.03); }
.btn--whatsapp {
  background: transparent;
  color: var(--steel);
  border: 1px solid var(--line-2);
}
.btn--whatsapp:hover { border-color: #25D366; color: #25D366; }
.btn--sm { padding: 10px 16px; font-size: 13px; }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ---------- Header ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex; align-items: center;
  transition: background .25s, backdrop-filter .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 12, 14, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; gap: 40px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: white;
}
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav__links {
  display: flex; gap: 28px; margin-left: auto;
  font-size: 14px; color: var(--steel-dim);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav__links a:hover { color: white; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; }
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ---------- Hero ---------- */
/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 60px) 0 120px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
/* Foto na orientação original (letreiro METALTHEC legível): prédio à DIREITA */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('Fotos/Hero/Hero 16-9.jpeg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}
/* Overlay leve: escuro à ESQUERDA (texto), transparente à direita (revela o prédio) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11, 12, 14, 0.96) 0%, rgba(11, 12, 14, 0.74) 38%, rgba(11, 12, 14, 0.22) 65%, rgba(11, 12, 14, 0) 86%),
    linear-gradient(to bottom, rgba(11, 12, 14, 0.5) 0%, transparent 22%, transparent 78%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero__inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 60px;
  width: 100%;
  position: relative;
  z-index: 5;
  /* Recuo lateral para o texto não ficar colado na borda (some no mobile) */
  padding-left: clamp(16px, 8.5vw, 164px);
}
.hero__card {
  position: relative;
  z-index: 2;
  /* Sem caixa: o texto flui direto sobre o gradiente da hero */
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: 600px;
  /* Sombra de texto sutil garante leitura sobre a foto */
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.55);
}
.hero__card h1 { margin: 18px 0 24px; }
.hero__card h1 .copper { color: var(--copper-2); }
.hero__card h1 .underline {
  position: relative;
  display: inline-block;
}
.hero__card h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 6px;
  background: var(--copper);
  opacity: 0.85;
  z-index: -1;
}
.hero__sub {
  font-size: clamp(16px, 1.15vw, 19px);
  color: var(--steel-dim);
  max-width: 58ch;
  margin-bottom: 40px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__signals {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero__signals .dot { color: var(--copper); }

.hero__hud {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 280px;
  background: rgba(18, 20, 24, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  z-index: 4;
}
.hero__hud .corner {
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--copper);
  opacity: 0.85;
}
.hero__hud .corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero__hud .corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero__hud .corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero__hud .corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero__hud .badge {
  position: absolute; top: 20px; left: 20px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}
.hero__hud .badge .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 12px var(--copper);
  animation: pulse 1.8s infinite;
}
.hero__hud .telemetry {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px;
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}
.hero__hud .tm-label { color: var(--muted); font-size: 9.5px; }
.hero__hud .tm-value {
  font-size: 16px;
  color: white;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin-top: 4px;
  font-weight: 500;
  text-transform: none;
}
.hero__hud .tm-value .unit { color: var(--copper-2); font-size: 11px; margin-left: 4px; }

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 30px) 0 80px;
  }
  .hero::before {
    background-position: 60% center;
  }
  /* No mobile o overlay escurece de cima para baixo para garantir leitura */
  .hero::after {
    background:
      linear-gradient(to bottom, rgba(11, 12, 14, 0.5) 0%, rgba(11, 12, 14, 0.78) 45%, rgba(11, 12, 14, 0.97) 95%);
  }
  .hero__inner {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
  }
  .hero__card {
    padding: 0;
    background: transparent;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: calc(var(--nav-h) + 20px) 0 60px;
  }
  .hero::before {
    background-position: 70% center;
  }
  .hero__card {
    padding: 0;
  }
  .hero__card h1 {
    font-size: clamp(28px, 8.5vw, 38px);
    margin: 12px 0 18px;
    line-height: 1.1;
  }
  .hero__sub {
    font-size: 14.5px;
    margin-bottom: 28px;
    line-height: 1.45;
  }
  .hero__cta {
    flex-direction: column;
    gap: 10px;
  }
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__signals {
    margin-top: 36px;
    padding-top: 24px;
    gap: 12px 18px;
  }
}

/* ---------- Trust Grid ---------- */
.trust {
  padding: 0 0 40px;
  margin-top: -40px;
  position: relative;
  z-index: 5;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust__card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s;
}
.trust__card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.trust__card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--copper);
  opacity: 0.6;
}
.trust__num {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1;
}
.trust__num .copper { color: var(--copper-2); }
.trust__num .small { font-size: 0.55em; color: var(--steel-dim); margin-left: 4px; font-weight: 400; }
.trust__label {
  font-size: 13px;
  color: var(--steel-dim);
  margin-top: 12px;
  line-height: 1.4;
}
.trust__icon {
  position: absolute;
  top: 22px; right: 22px;
  color: var(--copper);
  opacity: 0.4;
}
@media (max-width: 980px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .trust__grid { grid-template-columns: 1fr; }
}

/* ---------- Quem Somos ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; gap: 56px; align-items: start; }
  /* Em coluna única a foto precisa de altura própria */
  .about__visual { aspect-ratio: 4/3; min-height: 0; }
}

.about__copy p {
  color: var(--steel-dim);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 22px;
}
.about__copy p strong { color: white; font-weight: 500; }

.peritagem {
  margin-top: 36px;
  padding: 28px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.peritagem::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}
.peritagem h4 {
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.peritagem h4 .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  background: var(--copper-soft);
  color: var(--copper-2);
  border-radius: var(--r-xs);
  letter-spacing: 0.1em;
  font-weight: 500;
}
.peritagem p { font-size: 15px; color: var(--steel-dim); margin: 0; line-height: 1.6; }

.about__visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  /* Estica para acompanhar a altura da coluna de texto (align-items: stretch) */
  height: 100%;
  min-height: 100%;
  background: #0a0b0d;
}
.about__visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.75);
}
.about__visual::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,12,14,0.1), rgba(11,12,14,0.6)),
    linear-gradient(135deg, transparent 60%, rgba(184,85,34,0.18));
}
.about__caption {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.about__caption .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--copper-2);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.about__caption .ttl {
  font-family: var(--font-display);
  font-size: 22px;
  color: white;
  font-weight: 500;
  line-height: 1.15;
}
.about__caption .reading {
  font-family: var(--font-mono);
  font-size: 12px;
  color: white;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xs);
  padding: 8px 10px;
  white-space: nowrap;
}
.about__caption .reading .num { color: var(--copper-2); }

/* ---------- Services Tabs ---------- */
.services { background: linear-gradient(180deg, transparent, var(--bg-3) 40%, transparent); }

.tabs__bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__bar::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: 22px 28px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
  display: flex; align-items: center; gap: 14px;
}
.tab .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}
.tab:hover { color: var(--steel); }
.tab.active { color: white; }
.tab.active .num { color: var(--copper); }
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.tab.active::after { transform: scaleX(1); }

.tab__panel {
  display: none;
  padding-top: 56px;
  animation: fadeUp .5s cubic-bezier(.2,.7,.2,1);
}
.tab__panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel__header {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  margin-bottom: 56px;
  align-items: end;
}
@media (max-width: 900px) { .panel__header { grid-template-columns: 1fr; gap: 32px; } }
.panel__header h3 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 18px;
}
.panel__header p {
  color: var(--steel-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.panel__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--steel-dim);
}
.chip.copper {
  border-color: var(--copper);
  color: var(--copper-2);
  background: var(--copper-soft);
}

/* Machine cards */
.machines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.machine {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
  overflow: hidden;
}
.machine::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 30%, var(--line-2) 70%, transparent);
}
.machine:hover {
  transform: translateY(-6px);
  border-color: var(--copper);
  box-shadow: 0 24px 60px -28px rgba(184,85,34,0.4);
}
.machine:hover .machine__art { color: var(--copper-2); }
.machine__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.machine__art {
  color: var(--steel);
  transition: color .3s;
}
.machine__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.machine__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: white;
  line-height: 1.2;
  margin: 0 0 8px;
}
.machine__spec {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--copper-2);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.machine__desc {
  font-size: 13px;
  color: var(--steel-dim);
  line-height: 1.5;
  margin: 0;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
}
@media (max-width: 760px) { .process-flow { grid-template-columns: repeat(2, 1fr); } }
.proc {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  position: relative;
}
.proc:last-child { border-right: 0; }
@media (max-width: 760px) {
  .proc:nth-child(2) { border-right: 0; }
  .proc:nth-child(1), .proc:nth-child(2) { border-bottom: 1px solid var(--line); }
}
.proc__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--copper-2);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.proc__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: white;
  margin: 0 0 8px;
}
.proc__desc { font-size: 13px; color: var(--steel-dim); line-height: 1.5; margin: 0; }

/* ---------- Gallery ---------- */
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter {
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--steel-dim);
  transition: all .2s;
}
.filter:hover { border-color: var(--steel-dim); color: white; }
.filter.active {
  background: var(--copper);
  border-color: var(--copper);
  color: white;
}
.filter .count {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-left: 6px;
  opacity: 0.7;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gx {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #0a0b0d;
  transition: opacity .4s, transform .4s;
}
.gx.hidden {
  display: none;
}
.gx img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s;
  filter: saturate(0.7) brightness(0.85) contrast(1.05);
}
.gx:hover img { transform: scale(1.08); filter: saturate(1) brightness(0.95) contrast(1.05); }
.gx__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,12,14,0.92) 95%);
  pointer-events: none;
}
.gx__meta {
  position: absolute;
  bottom: 18px; left: 20px; right: 20px;
  z-index: 2;
  transform: translateY(8px);
  opacity: 0.92;
  transition: transform .35s, opacity .25s;
}
.gx:hover .gx__meta { transform: translateY(0); opacity: 1; }
.gx__cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--copper-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gx__title {
  font-family: var(--font-display);
  font-size: 18px;
  color: white;
  font-weight: 500;
  line-height: 1.2;
}
.gx__spec {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-dim);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.gx__corner {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 8px;
  border-radius: var(--r-xs);
}

/* Bento spans */
.gx.s-wide-tall { grid-column: span 6; grid-row: span 2; }
.gx.s-wide      { grid-column: span 6; grid-row: span 1; }
.gx.s-sq        { grid-column: span 3; grid-row: span 1; }
.gx.s-tall      { grid-column: span 3; grid-row: span 2; }
.gx.s-md        { grid-column: span 4; grid-row: span 1; }

@media (max-width: 980px) {
  .gallery__grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; }
  .gx.s-wide-tall { grid-column: span 6; grid-row: span 2; }
  .gx.s-wide      { grid-column: span 6; }
  .gx.s-sq        { grid-column: span 3; }
  .gx.s-tall      { grid-column: span 3; grid-row: span 2; }
  .gx.s-md        { grid-column: span 6; }
}
@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gx { grid-column: 1 / -1 !important; grid-row: span 1 !important; }
}

/* ---------- Clients Marquee ---------- */
.clients { padding: 96px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients__head {
  text-align: center;
  margin-bottom: 56px;
}
.clients__head .eyebrow {
  justify-content: center;
}
.clients__head h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  color: var(--steel);
  margin-top: 16px;
  letter-spacing: -0.01em;
}
.clients__head h2 .copper { color: var(--copper-2); }

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 80px;
  animation: scrollX 35s linear infinite;
  padding: 12px 0;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scrollX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-logo {
  flex: 0 0 auto;
  height: 80px;
  /* Largura fixa por slot normaliza o "peso" visual de logos horizontais e verticais */
  width: 200px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.75;
  transition: opacity .25s cubic-bezier(.2,.7,.2,1), transform .25s cubic-bezier(.2,.7,.2,1);
  padding: 0 16px;
}
.client-logo img {
  /* Cap em ambas as dimensões: logos largas e altas ficam equilibradas no mesmo slot */
  max-height: 52px;
  max-width: 168px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Tudo monocromático branco, independente da cor original do logo */
  filter: brightness(0) invert(1);
}
/* Logos quadrados/verticais batem no limite de altura antes de ganhar largura:
   damos mais altura só a eles para equilibrar a massa visual com os horizontais */
.client-logo img[alt="Cenibra"],
.client-logo img[alt="RIMA"],
.client-logo img[alt="PCM"] {
  max-height: 70px;
}
.client-logo:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* Unidade pequena nas métricas de capacidade (×, °C, mm, h) */
.case-metric__num .small { font-size: 0.5em; color: var(--steel-dim); margin-left: 2px; font-weight: 400; }

/* ---------- Garantia & Investimento ---------- */
.assurance { background: linear-gradient(180deg, transparent, var(--bg-3) 40%, transparent); }
.assurance__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) { .assurance__grid { grid-template-columns: 1fr; gap: 24px; } }
.assurance__card {
  position: relative;
  overflow: hidden;
  padding: 40px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.assurance__card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}
.assurance__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-2);
  margin-bottom: 16px;
}
.assurance__card h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  margin: 0 0 14px;
}
.assurance__card p {
  color: var(--steel-dim);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}
.assurance__card p strong { color: white; font-weight: 500; }

/* ---------- Contact / Lead form ---------- */
.contact {
  padding: 140px 0;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(184,85,34,0.08), transparent 60%),
    var(--bg);
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  /* Cada coluna usa só a própria altura — o form não estica até embaixo */
  align-items: start;
}
@media (max-width: 980px) { .contact__grid { grid-template-columns: 1fr; gap: 48px; } }

.contact__left h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  margin-bottom: 20px;
}
.contact__left h2 .copper { color: var(--copper-2); }
.contact__left p {
  color: var(--steel-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 36px;
  max-width: 44ch;
}

.contact-card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color .2s, transform .25s;
}
.contact-card:hover { border-color: var(--copper); transform: translateY(-2px); }
.contact-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--copper-soft);
  color: var(--copper-2);
  display: grid; place-items: center;
  flex: 0 0 40px;
}
.contact-card__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-card__value {
  font-family: var(--font-display);
  font-size: 17px;
  color: white;
  font-weight: 500;
  line-height: 1.3;
}
.contact-card__value a { transition: color .2s; }
.contact-card__value a:hover { color: var(--copper-2); }
.contact-card__sub {
  font-size: 13px;
  color: var(--steel-dim);
  margin-top: 4px;
}

/* Map */
.map {
  position: relative;
  margin-top: 22px;
  height: 240px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0b0d;
}
.map iframe {
  width: 100%;
  height: 100%;
  display: block;
  /* Dark-mode filter: inverts colours then compensates hue */
  filter: invert(90%) hue-rotate(180deg) saturate(0.85) brightness(0.9);
}
.map__open-btn {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: white;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.map__open-btn:hover { border-color: var(--copper); color: var(--copper-2); }

/* Form */
.form {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.form::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}
.form__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.form__head .ttl {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: white;
}
.form__head .sla {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--copper-2);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.form__head .sla .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4FB286;
  box-shadow: 0 0 12px #4FB286;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form__row.solo { grid-template-columns: 1fr; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field label .req { color: var(--copper-2); }
.field input,
.field select,
.field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: white;
  font-size: 15px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--copper);
  background: var(--bg-3);
  box-shadow: 0 0 0 4px var(--copper-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23B85522' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.file:hover { border-color: var(--copper); background: var(--bg-3); }
.file__icon {
  color: var(--copper-2);
}
.file__main {
  flex: 1;
}
.file__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: white;
}
.file__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.file input { display: none; }

.form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.form__terms {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.5;
}
.form__terms a { color: var(--copper-2); }

.form__success {
  display: none;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: rgba(79,178,134,0.12);
  border: 1px solid rgba(79,178,134,0.35);
  color: #8AD8B4;
  font-size: 14px;
  margin-top: 16px;
}
.form__success.show { display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0 24px;
  max-width: 34ch;
}
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  color: var(--steel-dim);
  font-size: 14px;
  transition: color .2s;
}
.footer__col a:hover { color: var(--copper-2); }

.footer__social {
  display: flex; gap: 10px;
}
.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--steel-dim);
  transition: all .2s;
}
.footer__social a:hover {
  border-color: var(--copper);
  color: var(--copper-2);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom .copy { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Brand logo img ---------- */
.brand__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* white version for dark bg */
}
.brand__mark { display: flex; align-items: center; }

/* ---------- Mobile Nav (Hamburger) ---------- */
.nav__burger {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--steel);
  flex: 0 0 44px;
  transition: border-color .2s, color .2s;
}
.nav__burger:hover { border-color: var(--copper); color: var(--copper-2); }
.nav__burger .bars { display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.nav__burger .bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .25s;
}
.nav--open .nav__burger .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav--open .nav__burger .bar:nth-child(2) { opacity: 0; }
.nav--open .nav__burger .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__burger { display: grid; }
  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    padding: 20px var(--gutter) 32px;
    background: rgba(11,12,14,0.97);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--line);
    gap: 0;
    z-index: 49;
  }
  .nav--open .nav__links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    color: var(--steel);
  }
  .nav--open .nav__links a:last-child { border-bottom: 0; }
  .nav--open .nav__links a:hover { color: var(--copper-2); }
}

/* ---------- Parallax ---------- */
.hero__visual[data-parallax] {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* ---------- Testimonials ---------- */
.testimonials { background: linear-gradient(180deg, var(--bg-3) 0%, transparent 100%); }
.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.tcard {
  padding: 32px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.tcard:hover { border-color: var(--copper); transform: translateY(-6px); box-shadow: 0 24px 60px -28px rgba(184,85,34,0.3); }
.tcard::before {
  content: '\201C';
  position: absolute;
  top: -18px; left: 20px;
  font-size: 130px;
  color: var(--copper);
  opacity: 0.07;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}
.tcard__stars { color: var(--copper); letter-spacing: 3px; font-size: 13px; }
.tcard__quote {
  flex: 1;
  color: var(--steel-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  border: 0;
  padding: 0;
  font-style: italic;
}
.tcard__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tcard__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--copper-soft);
  border: 1px solid var(--copper);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--copper-2);
  flex: 0 0 44px;
}
.tcard__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: white;
}
.tcard__company {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Cases metrics bar */
.cases-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
}
.case-metric {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.case-metric:last-child { border-right: 0; }
.case-metric::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0.5;
}
.case-metric__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 500;
  color: var(--copper-2);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.case-metric__label {
  font-size: 13px;
  color: var(--steel-dim);
  line-height: 1.4;
}

@media (max-width: 980px) {
  .tgrid { grid-template-columns: 1fr; }
  .cases-bar { grid-template-columns: repeat(2, 1fr); }
  .case-metric:nth-child(2) { border-right: 0; }
  .case-metric:nth-child(1), .case-metric:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .cases-bar { grid-template-columns: 1fr; }
  .case-metric { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .case-metric:last-child { border-bottom: 0; }
}

/* ---------- WhatsApp Float ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 60;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 8px 32px -8px rgba(37,211,102,0.55), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
  animation: waPulse 4s infinite 3s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 14px 44px -8px rgba(37,211,102,0.65), 0 2px 8px rgba(0,0,0,0.4);
}
@keyframes waPulse {
  0%, 88%, 100% { box-shadow: 0 8px 32px -8px rgba(37,211,102,0.55), 0 2px 8px rgba(0,0,0,0.4); }
  94% { box-shadow: 0 8px 32px -8px rgba(37,211,102,0.55), 0 0 0 10px rgba(37,211,102,0.12), 0 2px 8px rgba(0,0,0,0.4); }
}
.wa-float__tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  border: 1px solid rgba(255,255,255,0.08);
}
.wa-float:hover .wa-float__tooltip { opacity: 1; }
@media (max-width: 560px) {
  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* ---------- Cookie Consent LGPD ---------- */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  padding: 18px var(--gutter);
  background: rgba(15, 16, 19, 0.97);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar__text {
  font-size: 13.5px;
  color: var(--steel-dim);
  line-height: 1.55;
  max-width: 72ch;
  margin: 0;
}
.cookie-bar__text a { color: var(--copper-2); }
.cookie-bar__text strong { color: var(--steel); }
.cookie-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.cookie-btn {
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 0;
  transition: all .2s;
  white-space: nowrap;
}
.cookie-btn--accept { background: var(--copper); color: white; }
.cookie-btn--accept:hover { background: var(--copper-2); transform: translateY(-1px); }
.cookie-btn--decline { background: transparent; color: var(--muted); border: 1px solid var(--line-2); }
.cookie-btn--decline:hover { color: var(--steel); border-color: var(--steel-dim); }

/* ============================================================
   BLOG
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 360px at 15% 0%, rgba(184,85,34,0.08), transparent 60%),
    var(--bg);
}
.page-hero .eyebrow { justify-content: flex-start; }
.page-hero h1 { margin-top: 18px; max-width: 20ch; }
.page-hero p { color: var(--steel-dim); font-size: 17px; line-height: 1.6; max-width: 62ch; margin-top: 20px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color .25s, transform .25s;
}
.post-card:hover { border-color: var(--copper); transform: translateY(-3px); }
.post-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background:#0a0b0d; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.82); transition: transform .4s; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__cat, .post-card__soon {
  position: absolute; top: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 100px;
}
.post-card__cat { left: 14px; color: white; background: rgba(11,12,14,0.8); border:1px solid rgba(255,255,255,0.12); }
.post-card__soon { right: 14px; color: var(--copper-2); background: var(--copper-soft); border:1px solid var(--copper); }
.post-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__title { font-family: var(--font-display); font-size: 19px; font-weight: 500; color: white; line-height: 1.25; }
.post-card__excerpt { color: var(--steel-dim); font-size: 14.5px; line-height: 1.6; }
.post-card__meta { margin-top: auto; padding-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }

.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.post-card--featured .post-card__media { flex: 0 0 52%; aspect-ratio: auto; }
.post-card--featured .post-card__body { padding: 40px; justify-content: center; }
.post-card--featured .post-card__title { font-size: clamp(24px, 2.4vw, 32px); }
.post-card--featured .post-card__excerpt { font-size: 16px; }
@media (max-width: 760px) {
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__media { flex: none; aspect-ratio: 16/10; }
  .post-card--featured .post-card__body { padding: 26px; }
}

/* Article page */
.article { padding: calc(var(--nav-h) + 48px) 0 80px; }
.article__wrap { max-width: 760px; margin: 0 auto; }
.article__back { font-family: var(--font-mono); font-size: 12px; color: var(--copper-2); text-decoration: none; letter-spacing: .05em; }
.article__back:hover { color: var(--copper); }
.article__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing:.14em; text-transform: uppercase; color: var(--copper-2); margin: 28px 0 14px; }
.article h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.article__meta { display:flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing:.04em; }
.article__hero { margin: 32px 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; background:#0a0b0d; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__body p { font-size: 17px; line-height: 1.75; color: var(--steel-dim); margin: 0 0 22px; }
.article__body h2 { font-size: 24px; font-weight: 500; margin: 40px 0 16px; color: white; }
.article__body strong { color: white; font-weight: 500; }
.article__body ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 12px; }
.article__body ul li { position: relative; padding-left: 26px; color: var(--steel-dim); font-size: 16px; line-height: 1.6; }
.article__body ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--copper); }
.article__cta { margin-top: 44px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-md); background: linear-gradient(180deg, var(--panel), var(--bg-2)); text-align: center; }
.article__cta h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.article__cta p { color: var(--steel-dim); margin-bottom: 22px; }

