/* =========================================================
   Sinigalia Engenharia — folha de estilo
   Paleta e aplicações conforme o briefing (seção 2).
   ========================================================= */

:root {
  --navy:     #0B2545;   /* primária: header, contato, footer, títulos, overlay */
  --blue:     #134074;   /* secundária: bordas de card, divisores, subtítulos */
  --concrete: #EEF4F8;   /* suporte: fundo Quem Somos, fundo dos cards, texto no escuro */
  --amber:    #EE9B00;   /* destaque: CTAs, ícones, WhatsApp, hover */
  --amber-deep: #D68A00;
  --white:    #FFFFFF;
  --ink:      #2B3D52;   /* corpo de texto sobre fundo claro */
  --ink-soft: #5B6B7D;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --header-h-sm: 62px;
  --radius: 4px;
  --shadow-card: 0 12px 28px -12px rgba(11, 37, 69, 0.28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--amber); color: var(--navy); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border: 0; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; line-height: 1;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--amber { background: var(--amber); color: var(--navy); }
.btn--amber:hover { background: var(--amber-deep); transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(238, 155, 0, .7); }
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- título de seção com cota (linha de dimensão) ---------- */
.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  max-width: 22ch;
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 88px; height: 12px;
  border-left: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  background: linear-gradient(var(--amber), var(--amber)) center / 100% 3px no-repeat;
}
.section-title--light { color: var(--white); }

/* ---------- cota: etiqueta de seção, como a numeração de uma prancha ---------- */
.cota {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.8rem; font-weight: 700; color: var(--blue);
  margin: 0 0 1.25rem;
}
/* cota grande: mesma presença em todas as seções */
.cota--lg {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  letter-spacing: -0.01em; gap: 18px;
}
.cota--lg span { font-size: .75em; }
.cota--lg::after { max-width: none; height: 12px; }

/* onde a cota é o PRÓPRIO cabeçalho (não há título abaixo), ela ganha filete e respiro */
.cota--head {
  color: var(--navy);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(19, 64, 116, .18);
}
.cota span { color: var(--amber); font-variant-numeric: tabular-nums; }
.cota::after {
  content: ""; flex: 1; max-width: 220px; height: 10px;
  border-left: 2px solid var(--blue); border-right: 2px solid var(--blue);
  background: linear-gradient(var(--blue), var(--blue)) center / 100% 1px no-repeat;
  opacity: .7;
}
.cota--light { color: rgba(238, 244, 248, .8); }
.cota--lg.cota--light { color: var(--white); }
.cota--light::after { border-color: rgba(238, 244, 248, .5); background-image: linear-gradient(rgba(238, 244, 248, .5), rgba(238, 244, 248, .5)); }

/* malha de papel de projeto, discreta, para costurar as seções ao hero */
.grid-paper { position: relative; }
.grid-paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25));
}
.grid-paper > .container { position: relative; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  transition: box-shadow .25s var(--ease);
}
.header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .28s var(--ease); }
.header.is-scrolled .header__inner { height: var(--header-h-sm); }
/* o logo encolhe por transform: não muda o layout, então não realimenta o scroll */
.header.is-scrolled .brand__logo { transform: scale(.82); }

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 44px; width: auto; transform-origin: left center; transition: transform .28s var(--ease); }
.brand__text { color: var(--white); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand__text b { color: var(--amber); font-weight: 800; margin-left: .3em; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); }
.nav > a:not(.btn) {
  color: var(--concrete); font-weight: 500; font-size: 0.95rem;
  padding: 6px 0; position: relative;
  transition: color .2s var(--ease);
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav > a:not(.btn):hover, .nav > a:not(.btn).is-active { color: var(--amber); }
.nav > a:not(.btn):hover::after, .nav > a:not(.btn).is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 0; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--concrete); transition: transform .25s var(--ease), opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------- hero / carrossel ---------- */
.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-h)), 760px);
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  display: grid;
}
.hero__track { position: relative; grid-area: 1 / 1; min-height: inherit; display: grid; }
.slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid; align-items: center;
  padding: clamp(72px, 12vh, 140px) 0 clamp(120px, 16vh, 160px);
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s .9s;
  background: var(--navy);
  overflow: hidden;
}
/* foto + fallback, numa camada própria para o Ken Burns não mexer no texto */
.slide::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    var(--slide-img, none),
    linear-gradient(115deg, #0B2545 0%, #134074 60%, #1B4E8A 100%);
  background-size: cover, cover;
  background-position: center, center;
  transform: scale(1);
  transform-origin: 60% 50%;
}
.slide.is-active::after { animation: kenburns 7.5s linear forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
/* véu: pesado sob o texto, leve onde a cena real vive */
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 37, 69, .84) 0%, rgba(11, 37, 69, .66) 38%, rgba(11, 37, 69, .28) 68%, rgba(11, 37, 69, .10) 100%),
    linear-gradient(180deg, rgba(11, 37, 69, 0) 55%, rgba(11, 37, 69, .55) 100%);
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; z-index: 1; }
/* a foto de cada lâmina vem do data-img (main.js): a 1ª na hora, as outras após o load */

.slide__content { position: relative; z-index: 2; max-width: 680px; }

/* entrada única no primeiro carregamento: a cota se desenha, o texto sobe */
.hero.is-intro .slide.is-active .slide__kicker::before { animation: draw-cota .6s var(--ease) both; }
.hero.is-intro .slide.is-active .slide__kicker,
.hero.is-intro .slide.is-active .slide__title,
.hero.is-intro .slide.is-active .slide__text,
.hero.is-intro .slide.is-active .btn { animation: rise .7s var(--ease) both; }
.hero.is-intro .slide.is-active .slide__kicker { animation-delay: .15s; }
.hero.is-intro .slide.is-active .slide__title { animation-delay: .3s; }
.hero.is-intro .slide.is-active .slide__text { animation-delay: .45s; }
.hero.is-intro .slide.is-active .btn { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw-cota { from { width: 0; opacity: 0; } to { width: 40px; opacity: 1; } }
.slide__kicker {
  display: flex; align-items: center; gap: 14px;
  color: var(--amber); font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem;
}
.slide__kicker::before {
  content: ""; width: 40px; height: 10px; flex: none;
  border-left: 2px solid var(--amber); border-right: 2px solid var(--amber);
  background: linear-gradient(var(--amber), var(--amber)) center / 100% 2px no-repeat;
}
.slide__title {
  color: var(--white);
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.slide__text { color: var(--concrete); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 58ch; margin-bottom: 2rem; }

.hero__controls {
  grid-area: 1 / 1; align-self: end; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding-bottom: clamp(28px, 5vh, 48px);
}
.hero__arrow {
  width: 44px; height: 44px; border-radius: var(--radius);
  border: 1px solid rgba(238, 244, 248, .35); background: rgba(11, 37, 69, .5);
  color: var(--concrete); font-size: 1.6rem; line-height: 1;
  transition: background-color .2s, border-color .2s, color .2s;
}
.hero__arrow:hover { border-color: var(--amber); color: var(--amber); }
.hero__dots { display: flex; gap: 8px; padding: 0 6px; }
.hero__dots button {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px;
  background: rgba(238, 244, 248, .35);
  transition: background-color .25s, width .25s var(--ease);
}
.hero__dots button { position: relative; overflow: hidden; }
.hero__dots button[aria-selected="true"] { width: 52px; }
.hero__dots button::after {
  content: ""; position: absolute; inset: 0; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
}
.hero__dots button[aria-selected="true"]::after { animation: dot-fill var(--interval, 6.5s) linear forwards; }
.hero.is-paused .hero__dots button::after { animation-play-state: paused; }
.hero.is-static .hero__dots button[aria-selected="true"]::after { animation: none; transform: none; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- quem somos ---------- */
.about { background: var(--concrete); padding: clamp(64px, 9vw, 120px) 0; --grid-line: rgba(19, 64, 116, .07); overflow: hidden; }
.about__mark {
  /* no vazio abaixo da abertura: aparece inteira e não disputa espaço com o texto */
  position: absolute; left: clamp(16px, 6vw, 90px); bottom: clamp(24px, 4vw, 56px);
  width: clamp(200px, 20vw, 300px); height: auto;
  fill: var(--navy); opacity: .08; pointer-events: none;
}
.about__text .lead { font-size: 1.15rem; font-weight: 500; color: var(--navy); line-height: 1.55; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__body { position: relative; }
/* sem o carimbo, o texto vira duas colunas editoriais: abertura grande à esquerda */
.about__body .about__text {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(28px, 5vw, 72px); row-gap: 1.1em;
  align-content: start; grid-auto-rows: min-content;
}
.about__body .cota { grid-column: 1 / -1; }
.about__body .lead {
  grid-column: 1; grid-row: 2 / span 3;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.5; margin: 0;
}
.about__body .lead ~ p { grid-column: 2; max-width: 56ch; margin: 0; }
.about__text p { max-width: 68ch; }
.about__text p + p { margin-top: 1em; }

/* carimbo: bloco de identificação de prancha, como nos desenhos de projeto */
.carimbo {
  background: var(--white);
  border: 2px solid var(--navy);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.carimbo__row { padding: 16px 20px; border-top: 1px solid var(--blue); display: grid; gap: 4px; }
.carimbo__row:first-child { border-top: 0; }
.carimbo__row--split { grid-template-columns: 1fr 1fr; gap: 20px; }
.carimbo__row--split > div { display: grid; gap: 4px; }
.carimbo__row--split > div + div { border-left: 1px solid var(--blue); padding-left: 20px; }
.carimbo__label { font-size: 0.75rem; font-weight: 700; color: var(--blue); }
.carimbo__value { color: var(--navy); font-weight: 500; font-size: 0.95rem; line-height: 1.4; }
.carimbo__value--big { font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.carimbo__value--big small { font-size: 0.85rem; font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.carimbo__foot {
  display: flex; justify-content: space-between;
  padding: 8px 20px; border-top: 2px solid var(--navy);
  font-size: 0.7rem; font-weight: 700; color: var(--blue); letter-spacing: .02em;
}

/* ---------- serviços ---------- */
.services { padding: clamp(64px, 9vw, 120px) 0; }
.services__lead { max-width: 62ch; color: var(--ink-soft); margin-bottom: clamp(40px, 6vw, 72px); }
.services__group + .services__group { margin-top: clamp(40px, 6vw, 72px); }
.group__head { display: grid; gap: 4px; margin-bottom: 22px; padding-left: 18px; border-left: 3px solid var(--amber); }
.group__head h3 { font-size: 1.35rem; font-weight: 800; }
.group__head p { color: var(--ink-soft); font-size: 0.95rem; }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--concrete);
  border-top: 4px solid var(--blue);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-top-color: var(--amber); }
.card > h4, .card > p { padding-inline: 22px; }
.card > h4 { margin-top: 18px; }
.card > p { padding-bottom: 26px; }

/* foto do serviço, com o ícone da identidade ancorado no canto */
.card__media { position: relative; aspect-ratio: 3 / 2; background: var(--navy); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,37,69,.10) 0%, rgba(11,37,69,0) 45%, rgba(11,37,69,.55) 100%);
}
.card__icon {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  width: 34px; height: 34px; padding: 6px; box-sizing: content-box;
  color: var(--amber); background: rgba(11, 37, 69, .82);
}
.card h4 { font-size: 1.05rem; line-height: 1.25; font-weight: 700; margin-bottom: 8px; text-wrap: balance; color: var(--navy); }
.card p { font-size: 0.9rem; color: var(--ink); }

/* o ícone nasce como traço de projeto e se completa — ao entrar na tela e a cada hover */
.js .card__icon { stroke-dasharray: 130; stroke-dashoffset: 130; }
.js .card.is-drawn .card__icon { animation: draw-icon .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js .card__icon.is-replay { animation: draw-icon .8s var(--ease) forwards !important; animation-delay: 0s !important; }
@keyframes draw-icon { to { stroke-dashoffset: 0; } }

/* ---------- como trabalhamos ---------- */
.process { background: var(--blue); color: var(--concrete); padding: clamp(64px, 9vw, 120px) 0; --grid-line: rgba(238, 244, 248, .06); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: clamp(32px, 5vw, 56px); counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px;
  background: rgba(238, 244, 248, .25);
}
.step { position: relative; padding-top: 56px; }
.step__n {
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--navy); border: 2px solid var(--amber); border-radius: 50%;
  color: var(--amber); font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.step h3 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.925rem; color: rgba(238, 244, 248, .85); }

/* ---------- contato ---------- */
.contact { background: var(--navy); color: var(--concrete); padding: clamp(64px, 9vw, 120px) 0; --grid-line: rgba(238, 244, 248, .05); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__intro > p:not(.cota) { max-width: 46ch; font-size: 1.05rem; margin-bottom: 2rem; }
.contact__channels { display: grid; gap: 14px; }
.contact__channels li > * { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.contact__channels a { transition: color .2s; }
.contact__channels a:hover { color: var(--amber); }
.contact__channels svg { width: 22px; height: 22px; color: var(--amber); flex: none; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 6px; }
.form__row--2 { grid-template-columns: 1fr 1fr; gap: 18px; }
.form__row--2 > div { display: grid; gap: 6px; }
.form label { font-size: 0.875rem; font-weight: 700; color: var(--concrete); }
.form__optional { font-weight: 400; color: rgba(238, 244, 248, .7); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--white); border: 2px solid transparent; border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--amber); }
.form .is-invalid { border-color: #E5484D; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; font-weight: 400 !important; line-height: 1.5; }
.form__consent input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--amber); flex: none; }
.form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { font-size: 0.9rem; margin: 0; }
.form__status.is-error { color: #FFB3B5; }
.form__status.is-ok { color: var(--amber); font-weight: 700; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
.form__done[hidden] { display: none; }
.form__done {
  display: grid; gap: 12px; justify-items: start; align-content: start;
  padding: 36px 32px; border: 2px solid var(--amber); background: rgba(19, 64, 116, .35);
  animation: rise .6s var(--ease) both;
}
.form__done-mark { width: 48px; height: 50px; fill: var(--amber); }
.form__done h3 { color: var(--white); font-size: 1.4rem; }
.form__done p { max-width: 42ch; margin-bottom: 8px; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: var(--concrete); border-top: 1px solid var(--blue); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer__logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer__col p { font-size: 0.925rem; color: rgba(238, 244, 248, .85); }
.footer__col h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.footer__social { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__social a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.footer__social a:not(.btn):hover { color: var(--amber); }
.footer__social svg { width: 20px; height: 20px; }
.footer__legal {
  border-top: 1px solid rgba(19, 64, 116, .8);
  padding: 20px 0 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(238, 244, 248, .7);
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--amber); color: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .2s var(--ease), background-color .2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: var(--amber-deep); transform: scale(1.06); }

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__body .about__text { grid-template-columns: 1fr; }
  .about__body .lead { grid-column: 1; grid-row: auto; }
  .about__body .lead ~ p { grid-column: 1; }
  .carimbo { position: static; max-width: 520px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; --header-h-sm: 56px; }
  .brand__logo { height: 36px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-top: 1px solid var(--blue);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(19, 64, 116, .7); }
  .nav > a:not(.btn)::after { display: none; }
  .nav > .btn { margin-top: 16px; justify-content: center; }
  .hero__controls { justify-content: flex-start; padding-right: 80px; }
  /* no mobile o texto ocupa a largura toda: véu vertical, mais forte em cima */
  .slide::before {
    background:
      linear-gradient(180deg, rgba(11, 37, 69, .82) 0%, rgba(11, 37, 69, .62) 55%, rgba(11, 37, 69, .30) 100%);
  }
  .slide::after { transform-origin: 50% 50%; }
}
@media (max-width: 640px) {
  .services__grid, .steps { grid-template-columns: 1fr; }
  .form__row--2 { grid-template-columns: 1fr; }
  .about__mark { display: none; }
  .slide { padding-top: 56px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .footer__legal { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .hero__dots button[aria-selected="true"]::after { transform: none; }
}
