/* ========================================================================
   FERTALI INDUSTRIAL — Site institucional
   Estética: industrial bruto · concreto · aço · sombras fortes
   ======================================================================== */

@font-face {
  font-family: 'Urbanist';
  src: url('fonts/Urbanist.ttf') format('truetype-variations'),
       url('fonts/Urbanist.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Urbanist';
  src: url('fonts/Urbanist-Italic.ttf') format('truetype-variations'),
       url('fonts/Urbanist-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Paleta Fertali */
  --c-laranja: #C46A3C;
  --c-laranja-2: #D17A4A;
  --c-laranja-3: #A85528;
  --c-azul: #0A0238;
  --c-azul-2: #150930;
  --c-grafite: #3A3A3A;
  --c-grafite-2: #2a2a2a;
  --c-grafite-3: #1a1a1a;
  --c-preto: #000000;
  --c-cinza: #e5e5e5;
  --c-cinza-2: #f5f5f3;
  --c-branco: #ffffff;

  /* Tema (escuro por padrão — industrial bruto) */
  --bg: var(--c-grafite-3);
  --bg-2: var(--c-grafite-2);
  --bg-3: var(--c-grafite);
  --ink: #f4f1ec;
  --ink-2: rgba(244, 241, 236, 0.62);
  --ink-3: rgba(244, 241, 236, 0.32);
  --line: rgba(244, 241, 236, 0.12);
  --line-2: rgba(244, 241, 236, 0.06);
  --accent: var(--c-laranja);
  --accent-2: var(--c-laranja-2);

  /* Tipografia */
  --font-base: 'Urbanist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Urbanist', ui-sans-serif, system-ui, sans-serif;

  /* Spacing */
  --pad-x: clamp(20px, 4vw, 80px);
  --section-pad: clamp(56px, 6vw, 100px);
}

[data-theme="light"] {
  --bg: #f4f1ec;
  --bg-2: #ebe6df;
  --bg-3: #ddd6cc;
  --ink: var(--c-grafite-3);
  --ink-2: rgba(26, 26, 26, 0.65);
  --ink-3: rgba(26, 26, 26, 0.35);
  --line: rgba(26, 26, 26, 0.12);
  --line-2: rgba(26, 26, 26, 0.06);
}

[data-theme="azul"] {
  --bg: var(--c-azul);
  --bg-2: var(--c-azul-2);
  --bg-3: #1d1248;
  --ink: #f0ecff;
  --ink-2: rgba(240, 236, 255, 0.62);
  --ink-3: rgba(240, 236, 255, 0.32);
  --line: rgba(240, 236, 255, 0.12);
  --line-2: rgba(240, 236, 255, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

/* ─── Reveal animation ─────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal--in { opacity: 1; transform: none; }

/* ─── Tag chip ──────────────────────────────────────────────────────────── */

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}
.tag__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 106, 60, 0.18);
}
.tag--accent { color: var(--accent); border-color: var(--accent); }

/* ─── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
  position: relative;
  overflow: hidden;
}
.btn--sm { padding: 12px 18px; font-size: 11px; }
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--c-laranja-3);
  border-color: var(--c-laranja-3);
  transform: translate(2px, -2px);
  box-shadow: -2px 2px 0 0 var(--ink);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--bg-2);
}
.btn--ghost-light {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.btn__arrow {
  transition: transform .25s;
  font-family: ui-monospace, monospace;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ─── NAV ─────────────────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad-x);
  background: transparent;
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  padding: 12px var(--pad-x);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  max-width: 1600px; margin: 0 auto;
}
.nav__logo {
  display: flex; align-items: center; gap: 12px;
}
.nav__logo-mark {
  width: 32px; height: auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.nav__logo-text {
  display: flex; flex-direction: column;
  font-size: 11px; line-height: 1; letter-spacing: 0.08em;
}
.nav__logo-text strong {
  font-weight: 800; letter-spacing: 0.12em;
}
.nav__logo-text em {
  font-style: normal; font-weight: 400;
  color: var(--ink-2); font-size: 9px;
  letter-spacing: 0.18em; margin-top: 3px;
}
.nav__links {
  display: flex; gap: clamp(18px, 2.2vw, 36px);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav__links a {
  position: relative; padding: 6px 0;
  color: var(--ink-2);
  transition: color .2s;
}
.nav__links a::after {
  content: ''; position: absolute;
  left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent);
  transition: right .3s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  transition: all .2s;
}
.nav__cta:hover {
  background: var(--c-laranja-3);
  transform: translate(2px, -2px);
  box-shadow: -2px 2px 0 0 var(--ink);
}
.nav__cta-arrow { font-family: ui-monospace, monospace; }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* ─── PLACEHOLDER (foto fake) ───────────────────────────────────────────── */

.ph {
  position: relative;
  background:
    linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  width: 100%;
}
.ph__stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 18px,
    var(--line-2) 18px,
    var(--line-2) 19px
  );
  opacity: .6;
}
.ph__corner {
  position: absolute;
  font-size: 14px; line-height: 1;
  color: var(--ink-3);
  font-family: ui-monospace, monospace;
}
.ph__corner--tl { top: 12px; left: 12px; }
.ph__corner--tr { top: 12px; right: 12px; }
.ph__corner--bl { bottom: 12px; left: 12px; }
.ph__corner--br { bottom: 12px; right: 12px; }
.ph__label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  padding: 0 24px;
  font-family: ui-monospace, monospace;
}
.ph--accent {
  background:
    linear-gradient(135deg, var(--c-laranja) 0%, var(--c-laranja-3) 100%);
  border-color: transparent;
}
.ph--accent .ph__stripes {
  background-image: repeating-linear-gradient(
    -45deg, transparent 0, transparent 18px,
    rgba(0,0,0,0.08) 18px, rgba(0,0,0,0.08) 19px
  );
}
.ph--accent .ph__corner,
.ph--accent .ph__label { color: rgba(0,0,0,0.55); }

/* ─── HERO base ─────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  background: var(--bg);
  min-height: calc(100vh - 82px);
  min-height: calc(100dvh - 82px);
  padding: 100px var(--pad-x) 40px;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 50%, transparent 100%);
}

.hero__noise {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* HERO — TYPOGRAPHY */
.hero--type .hero__topbar {
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); font-family: ui-monospace, monospace;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.hero--type .hero__topbar-mid { color: var(--accent); }

.hero__giant-f {
  position: absolute;
  right: -8%; top: 50%; transform: translateY(-50%);
  height: 110%; width: auto;
  opacity: 0.16;
  pointer-events: none;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
  z-index: -1;
}

.hero__content {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 1100px;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.hero__eyebrow-bar {
  width: 48px; height: 1px; background: var(--accent);
}
.hero__eyebrow--light { color: rgba(255,255,255,0.85); }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  display: flex; flex-direction: column;
}
.hero__title-line {
  display: block;
  overflow: visible;
}
.hero__title-line:nth-child(2) {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.hero__sub {
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__bottom {
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); font-family: ui-monospace, monospace;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.hero__scroll { animation: bob 2.4s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* HERO — SPLIT */
.hero--split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-split__left { z-index: 2; }
.hero-split__left .hero__title { font-size: clamp(34px, 5vw, 80px); }
.hero-split__right {
  position: relative;
  display: flex; flex-direction: column; gap: 24px;
}
.hero-split__meta {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hero-split__meta > div {
  background: var(--bg);
  padding: 16px 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
}
.hero-split__meta span {
  color: var(--accent);
  margin-right: 8px;
}
@media (max-width: 900px) {
  .hero--split { grid-template-columns: 1fr; gap: 48px; }
}

/* HERO — FULLBLEED */
.hero--full {
  padding: 0;
  min-height: 100vh;
  position: relative;
  display: block;
}
.hero-full__bg {
  position: absolute; inset: 0;
}
.hero-full__bg .ph { width: 100%; height: 100%; aspect-ratio: auto !important; }
.hero-full__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(10,2,56,0.7) 0%, rgba(0,0,0,0.55) 50%, rgba(196,106,60,0.45) 100%);
}
.hero-full__content {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad-x) 80px;
  color: #fff;
  max-width: 1200px;
}
.hero-full__content .hero__title { color: #fff; }
.hero-full__content .hero__title-line:nth-child(2) { color: var(--c-laranja-2); }
.hero-full__content .hero__sub { color: rgba(255,255,255,0.85); }

/* ─── STRIP / Marquee ───────────────────────────────────────────────────── */

.strip {
  background: var(--accent);
  color: #fff;
  border-top: 1px solid rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}
.marquee {
  display: flex;
  overflow: hidden;
  padding: 22px 0;
  --speed: 40s;
  --dir: normal;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.marquee__track {
  flex-shrink: 0;
  display: flex; gap: 40px;
  padding-right: 40px;
  white-space: nowrap;
  animation: scroll var(--speed) linear infinite;
  animation-direction: var(--dir);
}
.marquee__item {
  display: inline-flex; align-items: center; gap: 40px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.marquee__item span { display: inline-flex; gap: 40px; }
.marquee__sep {
  font-size: 0.5em;
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ─── SECTIONS — base ───────────────────────────────────────────────────── */

.section {
  padding: var(--section-pad) var(--pad-x);
  position: relative;
}

.section__head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section__num {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-weight: 600;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 64px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: flex; flex-direction: column;
}
.section__title-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

@media (max-width: 700px) {
  .section__head { grid-template-columns: 1fr; gap: 16px; }
}

/* ─── SOBRE ─────────────────────────────────────────────────────────────── */

.sobre__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 40px 48px;
}
.sobre__lead {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 640px;
  display: flex; flex-direction: column; gap: 20px;
}
.sobre__lead strong { color: var(--accent); font-weight: 600; }
.sobre__lead em { font-style: italic; color: var(--ink-2); }
.sobre__media {
  grid-row: 1;
  grid-column: 2;
}
.sobre__photo {
  display: block;
  width: 100%;
  height: clamp(260px, 38vh, 420px);
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.sobre__pillars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--bg);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.pillar__num {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.pillar p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

@media (max-width: 980px) {
  .sobre__grid { grid-template-columns: 1fr; }
  .sobre__media { grid-row: auto; grid-column: auto; }
  .sobre__pillars { grid-column: auto; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .sobre__pillars { grid-template-columns: 1fr; }
}

/* ─── PRODUTOS ──────────────────────────────────────────────────────────── */

.produtos__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.produtos__list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}

.prod-row {
  display: grid;
  grid-template-columns: 60px 1fr auto 30px;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
  text-align: left;
  color: var(--ink);
  transition: padding .3s cubic-bezier(.2,.7,.2,1), color .25s, background .25s;
  position: relative;
  overflow: hidden;
}
.prod-row::before {
  content: ''; position: absolute;
  top: 0; left: -2px; bottom: 0; width: 2px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.prod-row--active {
  padding-left: 24px;
  background: linear-gradient(to right, var(--bg-2), transparent);
}
.prod-row--active::before { transform: scaleY(1); transform-origin: top; }
.prod-row__code {
  font-family: ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}
.prod-row__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.prod-row__tag {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  font-family: ui-monospace, monospace;
}
.prod-row__arrow {
  font-family: ui-monospace, monospace;
  color: var(--ink-3);
  transition: transform .3s, color .25s;
}
.prod-row--active .prod-row__arrow { color: var(--accent); transform: translateX(6px); }

.produtos__preview { position: sticky; top: 100px; }
.prod-preview {
  display: flex; flex-direction: column;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.prod-preview .ph { border: 0; }
.prod-preview__image {
  display: block;
  width: 100%;
  height: clamp(240px, 40vh, 420px);
  object-fit: cover;
  border: 0;
  background: var(--bg-3);
}
.prod-preview__meta {
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.prod-preview__code {
  font-family: ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent); font-weight: 600;
}
.prod-preview__name {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.prod-preview__desc {
  font-size: 14px; line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 4px;
}

@media (max-width: 980px) {
  .produtos__layout { grid-template-columns: 1fr; }
  .produtos__preview { position: static; }
  .prod-row { grid-template-columns: 50px 1fr 30px; }
  .prod-row__tag { display: none; }
}

/* ─── SERVIÇOS / PROCESSO ───────────────────────────────────────────────── */

.processo {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.processo__row {
  display: grid;
  grid-template-columns: 100px 220px 1fr 120px;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
}
.processo__row:hover .processo__bar-fill { width: 100%; }
.processo__step {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.processo__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  padding-top: 8px;
}
.processo__desc {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-2);
  padding-top: 10px;
  max-width: 580px;
}
.processo__bar {
  height: 1px;
  background: var(--line);
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}
.processo__bar-fill {
  position: absolute; inset: 0; right: auto;
  width: 30%; background: var(--accent);
  transition: width .8s cubic-bezier(.2,.7,.2,1);
}

@media (max-width: 900px) {
  .processo__row {
    grid-template-columns: 80px 1fr;
    grid-template-areas:
      "step name"
      "step desc"
      "bar bar";
    gap: 12px 24px;
  }
  .processo__step { grid-area: step; }
  .processo__name { grid-area: name; padding-top: 0; }
  .processo__desc { grid-area: desc; padding-top: 0; }
  .processo__bar { grid-area: bar; margin-top: 12px; }
}

/* ─── MÁQUINAS ─────────────────────────────────────────────────────────── */

.maquinas {
  background: var(--bg-2);
}
.maquinas__layout {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(480px, 1.4fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.maquinas__intro > p {
  max-width: 540px;
  margin-bottom: 36px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.maquinas__list {
  display: flex;
  flex-direction: column;
}
.maquina-row {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px 20px;
  position: relative;
  padding: 26px 22px 26px 0;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: padding .3s cubic-bezier(.2,.7,.2,1), background .25s;
}
.maquina-row + .maquina-row { border-top: 0; }
.maquina-row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.maquina-row:hover,
.maquina-row:focus-visible,
.maquina-row--active {
  padding-left: 22px;
  outline: none;
  background: linear-gradient(90deg, var(--bg-3), transparent);
}
.maquina-row:hover::before,
.maquina-row:focus-visible::before,
.maquina-row--active::before {
  transform: scaleY(1);
  transform-origin: top;
}
.maquina-row__code {
  grid-row: 1 / span 2;
  color: var(--accent);
  font: 600 11px/1.4 ui-monospace, monospace;
  letter-spacing: .12em;
}
.maquina-row__main {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.maquina-row__main strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.maquina-row__main small,
.maquina-row__status {
  color: var(--ink-3);
  font: 500 10px/1.4 ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.maquina-row__status {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}
.maquina-row__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(196,106,60,.14);
}
.maquina-row--active .maquina-row__status-dot {
  animation: machine-pulse 1.4s ease-in-out infinite;
}
.maquina-row__play {
  position: absolute;
  right: 0;
  top: 29px;
  color: var(--accent);
  font-size: 12px;
}
.maquina-preview {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
}
.maquina-preview__video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 760px;
  object-fit: contain;
  opacity: 1;
  filter: none;
}
.maquina-preview--playing .maquina-preview__video {
  opacity: 1;
  filter: none;
}
.maquina-preview__overlay {
  position: absolute;
  inset: 0 0 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0,0,0,.12);
  transition: background .3s;
}
.maquina-preview--playing .maquina-preview__overlay { background: transparent; }
.maquina-preview__label {
  padding: 9px 13px;
  color: #fff;
  background: rgba(5,5,5,.74);
  border: 1px solid rgba(255,255,255,.18);
  font: 600 10px/1 ui-monospace, monospace;
  letter-spacing: .14em;
  transition: opacity .25s;
}
.maquina-preview--playing .maquina-preview__label {
  align-self: flex-start;
  margin: 16px auto 16px 16px;
  background: var(--accent);
  border-color: var(--accent);
}
.maquina-preview__meta {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 20px;
  color: #f4f1ec;
  background: #111;
}
.maquina-preview__specs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.maquina-preview__specs span {
  color: var(--accent-2);
  font: 600 10px/1.4 ui-monospace, monospace;
  letter-spacing: .12em;
  white-space: nowrap;
}
.maquina-preview__specs strong {
  color: #f4f1ec;
  font: 600 12px/1.35 ui-monospace, monospace;
  letter-spacing: .04em;
}
.maquina-preview__meta p {
  color: rgba(244,241,236,.66);
  font-size: 12px;
  line-height: 1.5;
}
@keyframes machine-pulse {
  50% { transform: scale(.72); opacity: .55; }
}

@media (max-width: 980px) {
  .maquinas__layout { grid-template-columns: 1fr; }
  .maquina-preview { order: 2; }
}
@media (max-width: 600px) {
  .maquina-preview__meta { grid-template-columns: 1fr; gap: 7px; }
  .maquina-preview__overlay { bottom: 103px; }
  .maquina-preview__label { max-width: calc(100% - 32px); text-align: center; }
}

/* ─── PROJETOS ──────────────────────────────────────────────────────────── */

.projetos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.proj {
  display: flex; flex-direction: column;
  gap: 16px;
  cursor: pointer;
}
.proj--wide { grid-column: span 1; }

.proj__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.proj__media .ph {
  border: 0;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.proj:hover .proj__media .ph { transform: scale(1.04); }

.proj__cat {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
}

.proj__meta {
  display: flex; flex-direction: column; gap: 6px;
}
.proj__code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.proj__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.proj__size {
  font-size: 12px;
  color: var(--accent);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
}

@media (max-width: 980px) {
  .projetos__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .projetos__grid { grid-template-columns: 1fr; }
}

/* ─── CTA ───────────────────────────────────────────────────────────────── */

.cta {
  background: linear-gradient(135deg, #7a341c 0%, var(--c-laranja-3) 48%, var(--c-laranja) 100%);
  color: #fff7f2;
  padding: var(--section-pad) var(--pad-x);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: ''; position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(26,26,26,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,26,26,0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: -1;
}
.cta__giant-f {
  position: absolute;
  right: -5%; bottom: -20%;
  height: 110%;
  width: auto;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.3));
  user-select: none;
}
.cta__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cta__eyebrow {
  font-family: ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.2em;
  color: #2a160f;
  margin-bottom: 32px;
  font-weight: 600;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 80px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.cta__title-accent {
  color: #2a160f;
  font-style: italic;
  font-weight: 500;
}
.cta__sub {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: rgba(255, 247, 242, 0.78);
  max-width: 580px;
  margin-bottom: 64px;
}
.cta__contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(42,22,15,0.2);
  border-top: 1px solid rgba(42,22,15,0.24);
  border-bottom: 1px solid rgba(42,22,15,0.24);
}
.cta__contact {
  background: rgba(42,22,15,0.16);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background .25s;
}
.cta__contact:hover { background: rgba(42,22,15,0.28); }
.cta__contact-label {
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2a160f;
  font-family: ui-monospace, monospace;
  font-weight: 600;
}
.cta__contact-val {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cta__email-list {
  overflow-wrap: anywhere;
}
.cta__email-list a {
  color: inherit;
}

@media (max-width: 760px) {
  .cta__contacts { grid-template-columns: 1fr; }
}

/* ─── FOOTER ────────────────────────────────────────────────────────────── */

.footer {
  background: #050505;
  color: rgba(244, 241, 236, 0.85);
  padding: 100px var(--pad-x) 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; right: 0;
  width: 280px; height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(196,106,60,0.15) 50%);
  pointer-events: none;
}
.footer__inner {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}
.footer__brand {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 320px;
}
.footer__logo {
  display: flex; align-items: center; gap: 14px;
}
.footer__mark {
  width: 38px; height: auto;
}
.footer__logo-text {
  display: flex; flex-direction: column; line-height: 1;
}
.footer__logo-text strong {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.footer__logo-text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgba(244, 241, 236, 0.5);
  margin-top: 5px;
}
.footer__desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 241, 236, 0.55);
}
.footer__col {
  display: flex; flex-direction: column; gap: 14px;
  font-size: 13.5px;
  color: rgba(244, 241, 236, 0.7);
}
.footer__col a, .footer__col span {
  color: rgba(244, 241, 236, 0.7);
  transition: color .2s;
}
.footer__col a:hover { color: var(--c-laranja-2); }
.footer__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-laranja-2);
  font-family: ui-monospace, monospace;
  font-weight: 600;
  margin-bottom: 6px;
}
.footer__socials {
  display: flex; gap: 10px; margin-top: 2px;
}
.footer__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 236, 0.18);
  color: rgba(244, 241, 236, 0.75);
  transition: all .2s;
}
.footer__social:hover {
  border-color: var(--c-laranja-2);
  color: var(--c-laranja-2);
  transform: translateY(-2px);
}
.footer__rule {
  height: 1px;
  background: rgba(244, 241, 236, 0.08);
  margin-bottom: 32px;
}
.footer__bottom {
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: rgba(244, 241, 236, 0.4);
  gap: 16px; flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 600px) {
  .footer__cols { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ─── WHATSAPP FLOAT ─────────────────────────────────────────────── */

.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.wa-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

@media (max-width: 600px) {
  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}
