/* ============================================================
   AM Engenharia — site institucional (identidade 2026)
   Grafite #222628 (primária) · Ardósia #6F7C84 (secundária)
   #D5D4D4 no lugar do branco · tipografia Figtree
   Dark-first com seções claras alternadas, cantos arredondados,
   vidro (backdrop-filter) e animações discretas.
   ============================================================ */

:root {
  --ink:      #222628;
  --ink-2:    #2a2f32;
  --ink-3:    #353b3e;
  --ink-4:    #43494d;
  --slate:    #6f7c84;
  --slate-2:  #8d99a1;
  --slate-3:  #aab4ba;
  --paper:    #d5d4d4;
  --paper-2:  #e1e0e0;
  --paper-3:  #c4c3c3;
  --paper-4:  #b1b0b0;
  --wa:       #25d366;

  --bg:       var(--ink);
  --fg:       var(--paper);
  --fg-2:     var(--slate-3);
  --fg-3:     var(--slate-2);
  --line:     rgba(213, 212, 212, .12);
  --line-2:   rgba(213, 212, 212, .22);
  --card:     rgba(213, 212, 212, .05);
  --card-hover: rgba(213, 212, 212, .09);
  --glass:    rgba(34, 38, 40, .62);
  --glass-line: rgba(213, 212, 212, .14);

  --r-xl: 32px; --r-lg: 24px; --r-md: 18px; --r-sm: 12px; --r-pill: 999px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .45);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul[class], ol[class] { list-style: none; }
strong { font-weight: 700; }
::selection { background: var(--slate); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 1000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--slate-3); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1400px; }

/* ── Tipografia ───────────────────────────────────────────── */
.h1, .h2, .h3, .h4, .display { font-weight: 700; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.display { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.02em; line-height: 1.15; }
.h4 { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.25; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--fg-2); text-wrap: pretty; max-width: 62ch; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.eyebrow::before { content: ''; display: inline-block; width: 22px; height: 2px; background: var(--slate); vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.muted { color: var(--fg-3); }
.text-center { text-align: center; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head .h2 + p { margin-top: 16px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }

/* ── Seções / temas ───────────────────────────────────────── */
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--light {
  --bg: var(--paper); --fg: var(--ink); --fg-2: var(--ink-4); --fg-3: var(--slate);
  --line: rgba(34, 38, 40, .1); --line-2: rgba(34, 38, 40, .2);
  --card: rgba(255, 255, 255, .34); --card-hover: rgba(255, 255, 255, .55);
  --glass: rgba(213, 212, 212, .6); --glass-line: rgba(34, 38, 40, .12);
  background: var(--bg); color: var(--fg);
}
.section--light ::selection { background: var(--ink); color: var(--paper); }
.section--muted { background: var(--ink-2); }
.section--cta { padding-block: 0 clamp(64px, 9vw, 128px); }

/* ── Botões ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--r-pill); font-weight: 600; font-size: 1rem;
  line-height: 1; border: 1px solid transparent; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .35s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--light { background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { background: rgba(213, 212, 212, .06); border-color: var(--line-2); color: var(--fg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { background: rgba(213, 212, 212, .12); border-color: var(--fg-3); }
.section--light .btn--ghost { background: rgba(34, 38, 40, .05); }
.section--light .btn--ghost:hover { background: rgba(34, 38, 40, .1); }
.section--light .btn--light { background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px rgba(34, 38, 40, .25); }
.section--light .btn--light:hover { background: var(--ink-3); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--lg { padding: 18px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: #06281a; }
.btn--wa:hover { background: #3ee47b; }
.linklike { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.link .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link:hover .ico { transform: translateX(4px); }

/* ── Vidro ────────────────────────────────────────────────── */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: var(--r-lg);
}

/* ── Header ───────────────────────────────────────────────── */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 12px var(--gutter) 0; pointer-events: none; }
.header__bar {
  pointer-events: auto; margin-inline: auto; max-width: 1360px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 10px 0 20px; border-radius: var(--r-pill);
  background: rgba(34, 38, 40, .45); border: 1px solid rgba(213, 212, 212, .1);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  transition: background .35s, box-shadow .35s, border-color .35s;
}
.header.is-scrolled .header__bar { background: rgba(34, 38, 40, .78); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); border-color: rgba(213, 212, 212, .16); }
.header__logo img { height: 34px; width: auto; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.nav { display: none; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--r-pill);
  font-weight: 500; font-size: .95rem; color: var(--slate-3); transition: color .25s, background .25s;
}
.nav__link:hover, .nav__link.is-active, .nav__item.is-open > .nav__link { color: var(--paper); background: rgba(213, 212, 212, .08); }
.nav__chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }
.mega {
  position: absolute; left: 50%; top: calc(100% + 14px); transform: translate(-50%, 8px);
  width: min(780px, calc(100vw - 2 * var(--gutter))); padding: 12px;
  background: rgba(34, 38, 40, .86); border: 1px solid rgba(213, 212, 212, .14); border-radius: var(--r-lg);
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.nav__item.is-open .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.mega__area { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); transition: background .25s; }
.mega__area:hover { background: rgba(213, 212, 212, .08); }
.mega__icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(213, 212, 212, .07); border: 1px solid var(--line); color: var(--slate-3); }
.mega__icon .ico { width: 22px; height: 22px; }
.mega__text { display: flex; flex-direction: column; line-height: 1.25; }
.mega__text strong { font-weight: 600; font-size: .95rem; }
.mega__text small { color: var(--slate-2); font-size: .8rem; margin-top: 3px; }
.mega__area--all { grid-column: 1 / -1; justify-content: center; text-align: center; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md); margin-top: 4px; padding-top: 14px; }

.burger { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; gap: 0; position: relative; }
.burger span { position: absolute; width: 20px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); top: calc(50% - 4px); }
.burger span + span { top: calc(50% + 2px); }
.burger[aria-expanded="true"] span { top: 50%; transform: rotate(45deg); }
.burger[aria-expanded="true"] span + span { transform: rotate(-45deg); }
.mobile {
  pointer-events: auto; margin: 10px auto 0; max-width: 1360px; padding: 10px;
  background: rgba(34, 38, 40, .9); border: 1px solid rgba(213, 212, 212, .14); border-radius: var(--r-lg);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); box-shadow: var(--shadow-lg);
  max-height: calc(100dvh - 100px); overflow: auto;
}
.mobile[hidden] { display: none; }
.mobile__label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); padding: 14px 14px 6px; }
.mobile__link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); font-weight: 500; }
.mobile__link:hover { background: rgba(213, 212, 212, .08); }
.mobile__link .ico { width: 20px; height: 20px; color: var(--slate-3); }
.mobile__link small { margin-left: auto; color: var(--slate-2); font-size: .8rem; }
.mobile__cta { display: grid; gap: 8px; padding: 14px; }
.header__actions .btn { display: none; }
@media (min-width: 560px) { .header__actions .btn { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav { display: block; }
  .burger, .mobile { display: none !important; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 48px) 0 clamp(48px, 7vw, 96px); overflow: clip; isolation: isolate; }
.hero--short { min-height: 72svh; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media .media { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(34, 38, 40, .55) 0%, rgba(34, 38, 40, .15) 35%, rgba(34, 38, 40, .75) 80%, var(--ink) 100%); }
.hero__inner { display: grid; gap: 32px; }
.hero__title { max-width: 14ch; }
.hero__lead { max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); font-size: .85rem; font-weight: 500; background: rgba(213, 212, 212, .08); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chip .ico { width: 14px; height: 14px; }
.hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }
.stat { padding: 22px 24px; border-radius: var(--r-lg); }
.stat__n { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat__n small { font-size: .5em; font-weight: 700; letter-spacing: 0; margin-left: 2px; color: var(--slate-3); }
.stat__l { margin-top: 8px; color: var(--fg-2); font-size: .95rem; line-height: 1.35; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 28px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); display: none; align-items: center; gap: 10px; }
.hero__scroll::after { content: ''; width: 1px; height: 44px; background: linear-gradient(var(--slate-2), transparent); animation: drop 2s infinite; }
@media (min-width: 900px) { .hero__scroll { display: flex; } }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

/* Hero interno (páginas) */
.page-hero { position: relative; padding: calc(var(--header-h) + 56px) 0 clamp(40px, 6vw, 72px); overflow: clip; isolation: isolate; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media .media { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.page-hero__media img, .page-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.page-hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(34, 38, 40, .7), rgba(34, 38, 40, .85) 70%, var(--ink)); }
.page-hero__inner { display: grid; gap: 20px; max-width: 900px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ── Mídia / placeholders ─────────────────────────────────── */
.media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ink-2); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--fill { position: absolute; inset: 0; border-radius: 0; }
.media--placeholder {
  background: repeating-linear-gradient(135deg, rgba(213, 212, 212, .035) 0 14px, transparent 14px 28px), var(--ink-2);
  border: 1px dashed rgba(213, 212, 212, .25);
}
.section--light .media--placeholder { background: repeating-linear-gradient(135deg, rgba(34, 38, 40, .05) 0 14px, transparent 14px 28px), var(--paper-3); border-color: rgba(34, 38, 40, .3); }
.media__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 16px; color: var(--slate-3); }
.section--light .media__ph { color: var(--ink-4); }
.media__ph svg { width: 34px; height: 34px; opacity: .7; margin-bottom: 4px; }
.media__kind { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.media__desc { font-size: .85rem; max-width: 36ch; line-height: 1.35; opacity: .85; }
.media__ratio { font-size: .7rem; opacity: .55; font-variant-numeric: tabular-nums; }
.media--logo { border-radius: var(--r-sm); }
.media--logo .media__ph svg, .media--logo .media__desc, .media--logo .media__ratio { display: none; }
.media--logo .media__kind { font-size: .62rem; }

/* ── Grades e cartões ─────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card {
  display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: transform .5s var(--ease), background .3s, border-color .3s, box-shadow .5s var(--ease);
}
a.card:hover { transform: translateY(-6px); background: var(--card-hover); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.card__media .media { border-radius: 0; }
.card__media img { transition: transform .8s var(--ease); }
a.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__kicker { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--fg-3); }
.card__title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.card__text { color: var(--fg-2); font-size: .97rem; flex: 1; }
.card__more { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .95rem; }
.card__more .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
a.card:hover .card__more .ico { transform: translateX(4px); }
.card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(213, 212, 212, .07); border: 1px solid var(--line); color: var(--fg-2); margin-bottom: 8px; }
.section--light .card__icon { background: rgba(34, 38, 40, .06); }
.card__icon .ico { width: 26px; height: 26px; }
.card--feature .card__body { padding: 28px; }
.card--area { min-height: 100%; }
.card--area .card__title { font-size: 1.35rem; }
.card__count { font-size: .8rem; color: var(--fg-3); }

/* Bento de áreas (home) */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); grid-auto-rows: minmax(260px, auto); }
.bento__item { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.bento__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.bento__item .media { position: absolute; inset: 0; border-radius: 0; z-index: -2; }
.bento__item::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(34, 38, 40, 0) 20%, rgba(34, 38, 40, .92) 100%); }
.bento__item--lg { grid-column: span 2; grid-row: span 2; }
.bento__kicker { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--slate-3); margin-bottom: 8px; }
.bento__title { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.bento__item--lg .bento__title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.bento__text { color: var(--slate-3); margin-top: 8px; font-size: .95rem; max-width: 46ch; }
.bento__more { margin-top: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; }
.bento__more .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.bento__item:hover .bento__more .ico { transform: translateX(4px); }
@media (max-width: 640px) { .bento__item--lg { grid-column: span 1; grid-row: span 1; } }

/* Split (texto + mídia) */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split .lead { margin-top: 16px; }
.split__list { margin-top: 24px; display: grid; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check .ico { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; color: var(--fg-3); }
.check strong { display: block; }
.check span { color: var(--fg-2); font-size: .97rem; }
.split__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Números */
.numbers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.number { padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.number__n { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.number__n small { font-size: .45em; margin-left: 2px; color: var(--fg-3); letter-spacing: 0; }
.number__l { margin-top: 10px; color: var(--fg-2); }

/* Passos */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.step { padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-size: .85rem; font-weight: 700; letter-spacing: .12em; color: var(--fg-3); display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.step p { color: var(--fg-2); font-size: .97rem; }

/* Logos e depoimentos */
.logos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: clamp(32px, 5vw, 56px); }
.logos__item .media { aspect-ratio: 3/1; }
.testimonials { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.testimonial { padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.testimonial blockquote p { font-size: 1.05rem; line-height: 1.5; text-wrap: pretty; }
.testimonial figcaption { display: flex; flex-direction: column; font-size: .9rem; color: var(--fg-3); margin-top: auto; }
.testimonial figcaption strong { color: var(--fg); }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 10px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: background .3s; }
.faq__item[open] { background: var(--card-hover); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: 0 0 18px; width: 18px; height: 18px; transition: transform .35s var(--ease); color: var(--fg-3); }
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__body { padding: 0 22px 22px; color: var(--fg-2); }

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--slate-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a:hover { color: var(--paper); }
.crumbs [aria-current] { color: var(--slate-3); }

/* Faixa CTA */
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); }
.cta-band p { color: var(--fg-2); margin-top: 6px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Lista de entregas (página de serviço) */
.deliverables { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.deliverable { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.deliverable .ico { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; color: var(--fg-3); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 600; background: rgba(213, 212, 212, .08); border: 1px solid var(--line); }
.section--light .tag { background: rgba(34, 38, 40, .06); }
.service-aside { display: grid; gap: 14px; align-content: start; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; }
.aside-card h3 { font-size: 1.05rem; font-weight: 700; }
.aside-card ul { display: grid; gap: 8px; font-size: .95rem; }
.aside-card li a { display: flex; justify-content: space-between; gap: 8px; color: var(--fg-2); padding: 6px 0; border-bottom: 1px solid var(--line); }
.aside-card li a:hover { color: var(--fg); }
.aside-card li:last-child a { border-bottom: 0; }
.service-layout { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 980px) { .service-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.service-body { display: grid; gap: clamp(36px, 5vw, 56px); }
.service-body h2 { margin-bottom: 16px; }

/* Blog */
.post-card .card__media .media { aspect-ratio: 16/10; }
.post-meta { font-size: .85rem; color: var(--fg-3); display: flex; gap: 10px; flex-wrap: wrap; }
.prose { font-size: 1.08rem; line-height: 1.7; max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; margin-top: 2em; line-height: 1.15; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--fg-3); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.prose blockquote { padding: 18px 22px; border-left: 3px solid var(--slate); background: var(--card); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--fg-2); }
.prose .callout { padding: 20px 24px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.prose .callout strong { display: block; margin-bottom: 4px; }

/* Formulário */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--fg-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(213, 212, 212, .06); border: 1px solid var(--line-2); color: var(--fg);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.section--light .field input, .section--light .field select, .section--light .field textarea { background: rgba(255, 255, 255, .5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--slate-3); box-shadow: 0 0 0 4px rgba(111, 124, 132, .25); background: rgba(213, 212, 212, .1); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%238d99a1' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field select option { color: var(--ink); background: var(--paper); }
.field textarea { min-height: 150px; resize: vertical; }
.field__error { font-size: .85rem; color: #f0a4a4; }
.section--light .field__error { color: #9b2222; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #d66; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--slate); padding: 0; }
.field--check label { font-weight: 400; font-size: .92rem; }
.field--check label a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__alert { padding: 16px 18px; border-radius: var(--r-md); background: rgba(214, 102, 102, .12); border: 1px solid rgba(214, 102, 102, .4); font-size: .95rem; }
.form__note { font-size: .85rem; color: var(--fg-3); }
.contact-grid { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.25fr; } }
.contact-list { display: grid; gap: 12px; margin-top: 28px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.contact-item .ico { flex: 0 0 22px; width: 22px; height: 22px; color: var(--fg-3); margin-top: 2px; }
.contact-item strong { display: block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 2px; }
.contact-item a:hover { text-decoration: underline; }

/* Switch (cookies) */
.switch { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; cursor: pointer; padding: 10px 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch > span:first-of-type { width: 44px; height: 26px; border-radius: 13px; background: rgba(213, 212, 212, .18); position: relative; transition: background .25s; margin-top: 2px; }
.switch > span:first-of-type::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--slate); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .5; }
.switch__text { display: flex; flex-direction: column; font-size: .92rem; }
.switch__text small { color: var(--slate-3); font-size: .82rem; margin-top: 2px; }

/* Cookies */
.cookies { position: fixed; inset: auto 0 0 0; z-index: 90; padding: 0 var(--gutter) calc(16px + env(safe-area-inset-bottom)); pointer-events: none; }
.cookies[hidden] { display: none; }
.cookies__card {
  pointer-events: auto; margin-inline: auto; max-width: 720px; padding: 24px 26px; border-radius: var(--r-lg);
  background: rgba(34, 38, 40, .9); border: 1px solid rgba(213, 212, 212, .16); backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: var(--shadow-lg); display: grid; gap: 16px; animation: rise .6s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.cookies__head h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.cookies__head p { font-size: .9rem; color: var(--slate-3); line-height: 1.5; }
.cookies__head a { text-decoration: underline; text-underline-offset: 3px; color: var(--paper); }
.cookies__prefs { display: grid; border-top: 1px solid var(--line); padding-top: 8px; }
.cookies__prefs[hidden] { display: none; }
.cookies__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookies__actions .btn { padding: 12px 18px; font-size: .92rem; }
.cookies__actions [hidden] { display: none; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 12px 12px; border-radius: var(--r-pill);
  background: var(--wa); color: #06281a; font-weight: 700; font-size: .92rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 50px rgba(37, 211, 102, .35); }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { padding: 12px; } }

/* ── Footer ───────────────────────────────────────────────── */
.footer { padding: clamp(56px, 8vw, 110px) 0 32px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--ink), #1b1f21); }
.footer__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-bottom: clamp(40px, 6vw, 72px); margin-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.footer__cta .h2 { max-width: 22ch; }
.footer__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer__brand { grid-column: span 1; max-width: 360px; }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer__brand img { height: 36px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--slate-3); font-size: .95rem; }
.footer__legal { margin-top: 12px; font-size: .82rem !important; color: var(--slate-2) !important; }
.footer__title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 16px; font-weight: 600; }
.footer ul { display: grid; gap: 10px; font-size: .95rem; }
.footer ul a { color: var(--slate-3); transition: color .25s; }
.footer ul a:hover { color: var(--paper); }
.footer__contact li a, .footer__contact li span { display: flex; gap: 10px; align-items: center; }
.footer__contact .ico { width: 18px; height: 18px; flex: 0 0 18px; }
.footer__social { display: flex; gap: 8px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--slate-3); transition: background .25s, color .25s; }
.footer__social a:hover { background: var(--paper); color: var(--ink); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--slate-2); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__bottom .linklike { font-size: inherit; color: var(--slate-3); }

/* ── Animações de entrada ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--scale { transform: scale(.96) translateY(16px); }
.grid > .reveal:nth-child(2), .bento > .reveal:nth-child(2), .numbers > .reveal:nth-child(2), .steps > .reveal:nth-child(2), .testimonials > .reveal:nth-child(2) { --d: .08s; }
.grid > .reveal:nth-child(3), .bento > .reveal:nth-child(3), .numbers > .reveal:nth-child(3), .steps > .reveal:nth-child(3), .testimonials > .reveal:nth-child(3) { --d: .16s; }
.grid > .reveal:nth-child(4), .bento > .reveal:nth-child(4), .numbers > .reveal:nth-child(4), .steps > .reveal:nth-child(4), .testimonials > .reveal:nth-child(4) { --d: .24s; }
.grid > .reveal:nth-child(n+5), .bento > .reveal:nth-child(n+5), .testimonials > .reveal:nth-child(n+5) { --d: .3s; }
.hero__inner > .reveal:nth-child(2) { --d: .1s; } .hero__inner > .reveal:nth-child(3) { --d: .2s; } .hero__inner > .reveal:nth-child(4) { --d: .3s; } .hero__inner > .reveal:nth-child(5) { --d: .4s; }
[data-parallax] { will-change: transform; }

/* Divisor suave entre seções escuras e claras */
.section--light + .section:not(.section--light), .section:not(.section--light) + .section--light { border-top: 1px solid rgba(34, 38, 40, .08); }

/* Erro 404 */
.error-page { min-height: 70svh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.error-page .display { font-size: clamp(5rem, 18vw, 12rem); color: var(--ink-4); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .hero__scroll::after { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .header, .footer__cta, .cookies, .wa-float, .hero__media, .hero__veil { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Placeholders de mídia de fundo (hero/bento): etiqueta no topo, longe do texto */
.media--fill .media__ph { justify-content: flex-start; padding-top: 28px; }
.hero__media .media__ph, .page-hero__media .media__ph { padding-top: calc(var(--header-h) + 28px); align-items: flex-end; text-align: right; padding-right: var(--gutter); }
.hero__media .media__desc, .page-hero__media .media__desc { max-width: 44ch; }
.hero__media .media__ph, .page-hero__media .media__ph { opacity: .5; }

/* Logotipos maiores (arquivo recortado sem margem transparente) */
.header__logo img { height: 40px; }
.footer__brand img { height: 56px; margin-bottom: 22px; }
@media (max-width: 420px) { .header__logo img { height: 34px; } }

/* Véu do hero com vídeo real (claro): escurece o lado do texto e o rodapé,
   deixa o vídeo aparecer à direita. No celular o texto ocupa a largura toda. */
.hero__veil {
  background:
    linear-gradient(90deg, rgba(34, 38, 40, .95) 0%, rgba(34, 38, 40, .9) 45%, rgba(34, 38, 40, .62) 100%),
    linear-gradient(180deg, rgba(34, 38, 40, .55) 0%, rgba(34, 38, 40, 0) 22%, rgba(34, 38, 40, 0) 62%, var(--ink) 100%);
}
@media (max-width: 768px) {
  .hero__veil { background: linear-gradient(180deg, rgba(34, 38, 40, .9) 0%, rgba(34, 38, 40, .86) 55%, var(--ink) 100%); }
}
.hero__media video { filter: saturate(.85); }
.hero .hero__lead { color: var(--paper); text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero .hero__title { text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }

/* Bento das áreas com fotos reais: grade fechada (sem buracos) e texto legível.
   Desktop: 4 colunas, destaque 2×2, os dois últimos ocupam 2 colunas cada.
   Tablet: 2 colunas, destaque na largura toda. Celular: 1 coluna. */
.bento { grid-template-columns: 1fr; grid-auto-rows: minmax(240px, auto); }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--lg { grid-column: span 2; grid-row: span 1; min-height: 380px; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); }
  .bento__item--lg { grid-column: span 2; grid-row: span 2; }
  .bento__item:nth-child(6), .bento__item:nth-child(7) { grid-column: span 2; }
}
.bento__item::after { background: linear-gradient(180deg, rgba(34, 38, 40, .12) 0%, rgba(34, 38, 40, .38) 40%, rgba(34, 38, 40, .94) 100%); }
.bento__item .media img { transition: transform .9s var(--ease); }
.bento__item:hover .media img { transform: scale(1.05); }
.bento__kicker { color: var(--paper); opacity: .85; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.bento__title, .bento__text, .bento__more { text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.bento__text { color: var(--paper-2); }

/* Máscara mais forte nas fotos do bento de áreas */
.bento__item::after { background: linear-gradient(180deg, rgba(34, 38, 40, .34) 0%, rgba(34, 38, 40, .58) 45%, rgba(34, 38, 40, .96) 100%); }

/* Fotos da home: enquadramento dos recortes verticais (4/5) */
.split .media img[src*="home-nr12"] { object-position: 62% center; }
.split .media img[src*="home-integridade"] { object-position: 62% center; }
