/* ============================================================
   Esmad — Engenharia e Sustentabilidade
   Base clean / fundos brancos. Cores da marca: #052B1E e #036745.
   Imagens são placeholders (data-img) para troca posterior.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f5;
  --ink: #14231c;          /* headings — verde quase preto */
  --ink-soft: #5b6b63;     /* corpo de texto */
  --ink-faint: #9aa8a1;
  --line: #e4e9e5;

  --dark: #052B1E;         /* seções escuras — verde profundo da marca */
  --dark-2: #03150e;
  --dark-line: rgba(255, 255, 255, 0.14);
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.66);

  --brand-deep: #052B1E;   /* verde escuro */
  --brand: #036745;        /* verde principal */
  --brand-soft: #7fc8a9;   /* verde claro p/ acentos sobre fundo escuro */

  /* aliases mantidos para não reescrever todas as regras */
  --blue: #036745;
  --blue-bright: #0a7d55;
  --link: #036745;         /* acento de links / eyebrows */

  --hero-grad: linear-gradient(
    180deg,
    #052B1E 0%,
    #036745 34%,
    #cfe3d9 70%,
    #ffffff 87%,
    #ffffff 100%
  );

  --radius: 16px;
  --radius-lg: 28px;
  --pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 160px);

  --font: "DM Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.has-smooth { scroll-behavior: auto; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section-y); }

.section--dark {
  background: var(--dark);
  color: var(--on-dark-soft);
  position: relative;
}
.section--dark::before {
  /* leve brilho azul no topo das seções escuras */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 320px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(3, 103, 69, 0.28), transparent 70%);
  pointer-events: none;
}

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 22px;
}
.eyebrow--light { color: #7fc8a9; }

.h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--ink);
  max-width: 20ch;
}
.h2 span { color: var(--ink-faint); }
.h2--light { color: var(--on-dark); }
.h2--light span { color: var(--on-dark-soft); }
.h2 em, .hero__title em, .cta__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 46ch;
  margin-top: 22px;
  color: var(--ink-soft);
}
.lead--light { color: var(--on-dark-soft); }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn svg {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.btn::after {
  /* preenchimento que varre da esquerda no hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--blue);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(5, 43, 30, 0.5); }
.btn:hover::after { transform: translateX(0); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { --btn-fg: #fff; color: #fff; }
.btn--dark { --btn-bg: var(--brand-deep); --btn-fg: #fff; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { color: #fff; }
.btn--lg { padding: 19px 34px; font-size: 15px; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transition: width 0.1s linear;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
}
.nav.is-scrolled .nav__inner { padding-top: 12px; padding-bottom: 12px; }

/* Cabeçalho como uma única barra sólida, fixa, de ponta a ponta */
.nav__inner {
  max-width: none;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px var(--pad);
  border-radius: 0;
  background: var(--brand-deep);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px -14px rgba(0, 0, 0, 0.4);
  transition: padding 0.4s var(--ease);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.nav__logo-img {
  height: 45px;
  width: auto;
  transition: transform 0.4s var(--ease), height 0.4s var(--ease);
}
.nav__logo:hover .nav__logo-img { transform: scale(1.03); }
.nav.is-scrolled .nav__logo-img { height: 40px; }
/* barra sempre escura: a marca da nav é sempre a versão branca */
.nav__logo-img--dark { display: none; }
.nav__logo-img--light { display: block; }

.nav__social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.nav__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__social a:hover { background: var(--brand); transform: translateY(-2px); }
.nav__social svg { width: 15px; height: 15px; }

.nav__pill {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__pill a {
  position: relative;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--pill);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.nav__pill a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav__pill a.is-current { background: rgba(255, 255, 255, 0.14); color: #fff; }

.nav__cta {
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border-radius: var(--pill);
  background: var(--brand);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.nav__cta:hover { background: var(--brand-soft); color: var(--brand-deep); transform: translateY(-2px); }

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { bottom: 17px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav__mobile {
  position: absolute;
  top: calc(100% + 8px);
  left: var(--pad);
  right: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(23px);
  -webkit-backdrop-filter: blur(23px);
  box-shadow: 0 20px 60px -18px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.nav__mobile.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__mobile a {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 14px;
}
.nav__mobile a:hover { background: rgba(0, 0, 0, 0.05); }
.nav__mobile-cta { background: var(--ink); color: #fff !important; text-align: center; }

.nav__mobile-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(5, 43, 30, 0.1);
}
.nav__mobile-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5, 43, 30, 0.06);
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__mobile-social a:hover { background: var(--brand); color: #fff; }
.nav__mobile-social svg { width: 17px; height: 17px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 160px var(--pad) 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -12% 0 -6% 0;
  z-index: -1;
  background: var(--hero-grad);
  will-change: transform;
}
.hero__img,
.hero__media-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(5, 43, 30, 0.5) 0%,
      rgba(5, 43, 30, 0.18) 30%,
      rgba(5, 43, 30, 0.32) 62%,
      rgba(5, 43, 30, 0.72) 100%);
}

.hero__content { max-width: 1040px; }
.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(26px, 3.9vw, 44px);
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 20, 50, 0.35);
}
.hero__title strong { font-weight: 700; }
.hero__actions { margin-top: 40px; }

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  animation: scrollLine 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(46px); opacity: 0; }
}

/* ============================================================
   SOBRE (fundo claro) + CARROSSEL 3D + STATS
   ============================================================ */
.about {
  padding-top: clamp(44px, 6vw, 84px);
  padding-bottom: clamp(56px, 9vw, 120px);
  overflow: hidden;
  text-align: center;
}
.about__head {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about__title {
  max-width: 34ch;
  margin-inline: auto;
  text-wrap: balance;
}
.about__title em {
  display: inline-block;
  color: var(--brand);
}
.about__lead { margin-inline: auto; text-align: center; }

.about__text {
  max-width: 64ch;
  margin: 28px auto 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.about__text p + p { margin-top: 1.5em; }

/* selo/pílula */
.badge {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--pill);
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
  box-shadow: 0 14px 34px -14px rgba(5, 43, 30, 0.6);
}

/* ---- Carrossel 3D (cilindro de imagens) ---- */
.about__carousel {
  margin: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px);
  height: clamp(360px, 44vw, 560px);
  perspective: 1600px;
  perspective-origin: 50% 46%;
}
.about__stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.about__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(240px, 26vw, 340px);
  height: clamp(300px, 34vw, 440px);
  transform-style: preserve-3d;
  /* --spin é atualizado via JS conforme o scroll */
  transform: translateZ(-600px) rotateY(var(--spin, 0deg));
  will-change: transform;
}
.about__card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  /* 10 faces, 36° entre si, empurradas para o raio do cilindro */
  transform: rotateY(calc(var(--n) * 36deg)) translateZ(600px);
  backface-visibility: hidden;
  box-shadow: 0 40px 80px -30px rgba(5, 43, 30, 0.4);
  font-size: 13px;
}
/* quando a foto carrega, remove o visual de placeholder */
.about__card:has(img) {
  border: 0;
  background: #eef2ef;
}
.about__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .about__carousel { perspective: none; height: auto; }
  .about__ring { position: static; width: 100%; height: auto; transform: none; display: flex; gap: 16px; overflow-x: auto; }
  .about__card { position: relative; inset: auto; flex: 0 0 260px; height: 320px; transform: none; }
}

/* ---- Stats ---- */
.stats {
  margin-top: clamp(40px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  border-top: 1px solid var(--dark-line);
  padding-top: 48px;
}
.stats--light {
  border-top-color: var(--line);
  max-width: 560px;
  margin-inline: auto;
}
.stat { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.stat__num {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.stats--light .stat__num { color: var(--ink); }
.stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  line-height: 1.5;
}
.stats--light .stat__label { color: var(--ink-faint); }

/* ============================================================
   MÉTODO (sticky pin scroll)
   ============================================================ */
.method { background: var(--bg); }
.method__intro {
  padding-top: var(--section-y);
  padding-bottom: clamp(40px, 7vw, 90px);
}
.method__hint {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.method__hint svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
.method__intro .btn { margin-top: 34px; }

/* Pilha de cards: cada passo "gruda" no topo conforme o scroll,
   deixando uma beiradinha do card anterior visível em cima. */
.method__sticky {
  position: relative;
  padding-bottom: clamp(60px, 12vh, 160px);
}
.method__viewport {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--pad);
}
.method__progress { display: none; }

.method__step {
  position: sticky;
  top: calc(96px + var(--s, 0) * 18px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: min(74vh, 620px);
  padding: clamp(30px, 4.5vw, 56px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -45px rgba(5, 43, 30, 0.35);
  transition: box-shadow 0.4s var(--ease), filter 0.4s var(--ease);
}
.method__step + .method__step { margin-top: clamp(90px, 18vh, 200px); }
/* card já coberto pelo próximo — recolhe a sombra */
.method__step.is-buried { box-shadow: none; filter: brightness(0.985); }

.method__step-index {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--link);
}
.method__step-title {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 14px 0 18px;
}
.method__step-text p { max-width: 44ch; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tags li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 9px 16px;
  border: 1px solid rgba(5, 43, 30, 0.25);
  border-radius: var(--pill);
  background: rgba(5, 43, 30, 0.04);
}

.method__step-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.method__step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   POR QUE
   ============================================================ */
.quote {
  margin: clamp(48px, 8vw, 90px) 0;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(3, 103, 69, 0.14), rgba(3, 103, 69, 0.02));
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.4;
  color: var(--on-dark);
  max-width: 30ch;
}
.quote cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7fc8a9;
}

.why__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-top: clamp(40px, 6vw, 72px);
}
.why__card {
  padding: 30px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
}
/* último card ocupa a linha inteira, evitando um card solto */
.why__cards > .why__card:last-child { grid-column: 1 / -1; }
.why__card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(10, 125, 85, 0.4);
}
.why__card-num {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #7fc8a9;
}
.why__card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--on-dark);
  margin: 16px 0 12px;
  letter-spacing: -0.01em;
}
.why__card p { font-size: 15px; color: var(--on-dark-soft); }

/* ============================================================
   GALERIA / MARQUEE
   ============================================================ */
.gallery { padding-block: var(--section-y); overflow: hidden; }
.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.marquee {
  --gap: 24px;
  --speed: 46s;
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee + .marquee { margin-top: var(--gap); }
.marquee__track {
  display: flex;
  gap: var(--gap);
  padding-right: var(--gap);
  flex-shrink: 0;
  /* sem "width" explícito: como item flex, o tamanho já se ajusta
     ao conteúdo sozinho — mais compatível entre navegadores do que
     a palavra-chave max-content/fit-content */
  animation: marquee var(--speed) linear infinite;
  will-change: transform;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--gap))); }
}
.marquee__item {
  flex: 0 0 clamp(260px, 32vw, 440px);
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.marquee__item:hover { transform: scale(1.03); }

/* ---- Faixa de logos de clientes (logo abaixo do hero) ---- */
.logos {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(26px, 3.4vw, 42px);
  overflow: hidden;
}
.logos__marquee { --gap: clamp(40px, 6vw, 84px); --speed: 44s; }
.logos__item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.logos__item img {
  height: clamp(26px, 3.2vw, 42px);
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
  opacity: 0.55;
  mix-blend-mode: multiply;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}
.logos__item:hover img {
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

/* ============================================================
   CONTATO / FORMULÁRIO
   ============================================================ */
.contactf__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.contactf__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  font-size: 14px;
}
.contactf__links a {
  color: var(--brand-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.contactf__links a:hover { border-color: currentColor; }

.contactf__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}
.contactf__form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cf-group { border: 0; padding: 0; margin: 0; }
.cf-group + .cf-group { margin-top: 6px; }
.cf-group legend {
  padding: 0;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-soft);
}
.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.cf-span { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  padding: 13px 14px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  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='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select option { color: #14231c; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-soft);
  background: rgba(255, 255, 255, 0.07);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #e0796b; }

.contactf__form .btn { align-self: flex-start; margin-top: 4px; }
.contactf__status {
  font-size: 13px;
  color: var(--brand-soft);
  min-height: 1em;
}
.contactf__status.is-error { color: #e0796b; }

/* ============================================================
   COMO TRABALHAMOS / PROCESS
   ============================================================ */
.process { padding-block: var(--section-y); }
.process__list {
  margin: clamp(48px, 8vw, 90px) 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.process__item {
  padding: 40px 28px 40px 0;
  border-right: 1px solid var(--line);
}
.process__item:last-child { border-right: 0; padding-right: 0; }
.process__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.process__num {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.process__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--link);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
}
.process__item h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.process__item p { font-size: 15px; }

/* ============================================================
   CONSCIÊNCIA AMBIENTAL
   ============================================================ */
.green__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.green__head .h2 { max-width: 12ch; }
.green__body {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
}
.green__body p:first-child {
  color: var(--ink);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

/* ============================================================
   COMPARATIVO
   ============================================================ */
.compare__grid {
  margin-top: clamp(48px, 8vw, 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare__col {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-line);
}
.compare__col--muted { background: rgba(255, 255, 255, 0.02); }
.compare__col--brand {
  background: linear-gradient(180deg, rgba(3, 103, 69, 0.22), rgba(3, 103, 69, 0.04));
  border-color: rgba(10, 125, 85, 0.35);
}
.compare__col h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.compare__col--muted h3 { color: var(--on-dark-soft); }
.compare__col--brand h3 { color: var(--on-dark); }
.compare__col li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  font-size: 15px;
  border-top: 1px solid var(--dark-line);
}
.compare__col li:first-of-type { border-top: 0; }
.compare__col--brand li { color: var(--on-dark); }
.ic {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-top: 2px;
  position: relative;
}
.ic--x { background: rgba(255, 255, 255, 0.08); }
.ic--x::before, .ic--x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1.5px;
  background: var(--on-dark-soft);
}
.ic--x::before { transform: translate(-50%, -50%) rotate(45deg); }
.ic--x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ic--check { background: var(--blue-bright); }
.ic--check::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta { padding-block: var(--section-y); }
.cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 8vw, 100px) var(--pad);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.cta__title {
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  max-width: 18ch;
  margin: 0 auto;
}
.cta .lead { margin-inline: auto; text-align: center; }
.cta .btn { margin-top: 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: clamp(56px, 8vw, 100px) 0 26px;
  overflow: hidden;
}
.footer__wordmark {
  padding-inline: var(--pad);
  margin-bottom: clamp(28px, 4vw, 52px);
}
.footer__wordmark img {
  width: 65%;
  margin-inline: auto;
  display: block;
}
.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  padding-bottom: clamp(26px, 4vw, 44px);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.footer__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s var(--ease);
}
.footer__contacts a:hover { color: #fff; }
.footer__contacts svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}
.footer__sep { opacity: 0.28; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s var(--ease);
}
.footer__bottom a:hover { color: #fff; }
.footer__bottom-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.22);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.footer__lock:hover { color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.08); }
.footer__lock svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   PLACEHOLDERS (trocar por imagens depois)
   ============================================================ */
.placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0 12px, rgba(0, 0, 0, 0.06) 12px 24px);
  border: 1px dashed rgba(0, 0, 0, 0.18);
}
.placeholder--dark {
  color: rgba(255, 255, 255, 0.45);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 12px, rgba(255, 255, 255, 0.08) 12px 24px);
  border-color: rgba(255, 255, 255, 0.2);
}
.placeholder--sky {
  color: rgba(255, 255, 255, 0.75);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 14px, rgba(255, 255, 255, 0.12) 14px 28px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   REVEAL (scroll-triggered)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur) var(--ease-out) calc(var(--i, 0) * 90ms),
    transform var(--dur) var(--ease-out) calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .nav__pill { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }

  .method__step {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 26px;
    top: calc(80px + var(--s, 0) * 14px);
  }
  .method__step-media { max-height: 40vh; width: 100%; }
  .method__step + .method__step { margin-top: clamp(48px, 10vh, 100px); }

  .contactf__grid { grid-template-columns: 1fr; }
  .contactf__form .field-row,
  .cf-grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr; }
  .process__item { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .process__item:last-child { border-bottom: 0; }
  .compare__grid { grid-template-columns: 1fr; }
  .green__grid { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__contacts .footer__sep { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery__head { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .hero__title br,
  .about__title br { display: none; }
}

/* ============================================================
   MOTION-REDUCE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* as faixas de imagens (logos e galeria) continuam rolando mesmo com
     "reduzir movimento" ativado no aparelho — sem isso, a regra acima
     trava a faixa num único quadro parado. */
  .marquee__track {
    animation-duration: var(--speed) !important;
    animation-iteration-count: infinite !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .method__step { position: static; min-height: 0; }
  .method__step + .method__step { margin-top: 28px; }
}
