/* =====================================================================
   Allgrain — design system
   Brand: red #BB2625 · green #50AF3F · Helvetica
   ===================================================================== */

/* ---------- Fonts: Helvetica (brand) via the system stack — Helvetica Neue / Helvetica on macOS and iOS, Arial (metric-compatible) on Windows and Android. */

/* ---------- Tokens ---------- */
:root {
  --red: #BB2625;
  --red-600: #A21F1E;
  --red-700: #891A19;
  --red-50: #FBEDED;
  --green: #50AF3F;
  --green-600: #3F9231;
  --green-50: #EDF7EA;

  --ink: #14171A;
  --ink-800: #1D2126;
  --ink-700: #2A3037;
  --ink-600: #454D56;
  --gray: #667080;
  --gray-500: #7C8591;
  --gray-400: #98A1AC;
  --gray-300: #C9CFD6;
  --green-700: #2F7326;
  --line: #E4E7EB;
  --paper: #FFFFFF;
  --paper-2: #F5F5F2;
  --paper-3: #ECECE7;

  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;           /* headings: regular-width Helvetica Bold */
  --font-label: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-1: 0 1px 2px rgba(20, 23, 26, .05), 0 10px 30px -14px rgba(20, 23, 26, .22);
  --shadow-2: 0 2px 6px rgba(20, 23, 26, .08), 0 24px 60px -24px rgba(20, 23, 26, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .footer :focus-visible, .drawer :focus-visible, .modal :focus-visible, .hero :focus-visible,
.page-hero :focus-visible, .cta-band :focus-visible, .split :focus-visible, .nav-open .header :focus-visible,
.header--overlay:not(.is-scrolled) :focus-visible { outline-color: #FF8A86; }
::selection { background: var(--red); color: #fff; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1000; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.12; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.25; letter-spacing: -.005em; }
h4 { font-family: var(--font-sans); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-label); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.eyebrow--center { justify-content: center; }
.lead { font-size: clamp(1.125rem, 1.45vw, 1.3rem); line-height: 1.55; color: var(--ink-600); }
.muted { color: var(--gray); }
.measure { max-width: 62ch; }
.measure-s { max-width: 46ch; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
strong, b { font-weight: 700; }
em { font-style: italic; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--wide { width: min(1440px, 100% - 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--muted { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #D7DCE2; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: #B9C1CA; }
.section--dark .eyebrow { color: #FF8A86; }
.section--red { background: var(--red); color: #fff; }
.section--red h2, .section--red h3 { color: #fff; }
.section-head { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head p { margin-top: 1.1rem; }
.section-head--split { display: grid; gap: 1.5rem 3rem; align-items: end; max-width: none; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr .8fr; } }

.grid { display: grid; gap: var(--gap, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.flow > * + * { margin-top: 1em; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .8rem 1.5rem;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.1;
  border-radius: var(--radius); border: 2px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  text-align: center;
}
@media (min-width: 600px) { .btn { white-space: nowrap; } }
@media (max-width: 599.98px) { .form__actions .btn, .hero__actions .btn { width: 100%; } }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px rgba(187, 38, 37, .7); }
.btn--primary:hover { background: var(--red-600); }
.btn--green { background: var(--green); color: #0b2e17; }
.btn--green:hover { background: #5fc24c; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-700); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-2); }
.btn--lg { min-height: 3.5rem; padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn--sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .85rem; }
.btn--wa { background: #25D366; color: #0b2e17; }
.btn--wa:hover { background: #1fbe5a; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--red); }
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: #FF8A86; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, color .3s;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(20, 23, 26, .06);
  backdrop-filter: saturate(160%) blur(8px);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.header__logo { display: block; flex: none; }
.header__logo img { height: 44px; width: auto; }
.header__logo .logo-light { display: none; }
.nav { display: none; }
.nav__list { display: flex; gap: clamp(1.1rem, 2.2vw, 2.25rem); align-items: center; }
.nav__link { position: relative; display: inline-block; padding: .5rem 0; font-weight: 700; font-size: 1.08rem; letter-spacing: .005em; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: none; }
.header__burger {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -.5rem;
  border-radius: 50%;
}
.header__burger span { position: relative; width: 24px; height: 2px; background: currentColor; transition: background .2s; }
.header__burger span::before, .header__burger span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.header__burger span::before { top: -7px; }
.header__burger span::after { top: 7px; }
.nav-open .header__burger span { background: transparent; }
.nav-open .header__burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .header__burger span::after { top: 0; transform: rotate(-45deg); }

@media (min-width: 1100px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .header__burger { display: none; }
}

/* Transparent header over the home hero (until scrolled) */
.header--overlay:not(.is-scrolled):not(.nav-open) {
  background: linear-gradient(to bottom, rgba(20, 23, 26, .55), rgba(20, 23, 26, 0)); box-shadow: none; color: #fff; backdrop-filter: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 14px rgba(0, 0, 0, .35);
}
.header--overlay:not(.is-scrolled):not(.nav-open) .btn { text-shadow: none; }
.header--overlay:not(.is-scrolled):not(.nav-open) .header__logo .logo-dark { display: none; }
.header--overlay:not(.is-scrolled):not(.nav-open) .header__logo .logo-light { display: block; }
.header--overlay:not(.is-scrolled):not(.nav-open) .nav__link::after { background: #fff; }
.header--overlay:not(.is-scrolled):not(.nav-open) .btn--primary { box-shadow: none; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 2rem;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s;
  overflow-y: auto;
}
.nav-open .drawer { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .3s, visibility 0s; }
.nav-open .header { background: var(--ink); color: #fff; box-shadow: none; }
.nav-open .header__logo .logo-dark { display: none; }
.nav-open .header__logo .logo-light { display: block; }
.nav-open { overflow: hidden; }
.drawer__list { display: grid; gap: .25rem; }
.drawer__link { display: block; padding: .85rem 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 5.5vw, 2rem); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.drawer__link[aria-current="page"] { color: #FF8A86; }
.drawer__meta { display: grid; gap: 1rem; color: #B9C1CA; font-size: .95rem; }
.drawer__meta a { color: #fff; font-weight: 700; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh); display: grid; align-items: end;
  color: #fff; background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* The poster <img> stays visible until the video can actually play (visibility avoids the
   black box some browsers paint for a loading video even at opacity 0). */
.hero__media video { opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; }
.hero__media video.is-ready { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.hero__media img { position: absolute; inset: 0; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(20, 23, 26, .92) 0%, rgba(20, 23, 26, .55) 38%, rgba(20, 23, 26, .25) 70%, rgba(20, 23, 26, .45) 100%),
    linear-gradient(100deg, rgba(20, 23, 26, .55) 0%, rgba(20, 23, 26, 0) 60%);
}
.hero__inner { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.hero__content { max-width: 58rem; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero h1 { color: #fff; text-wrap: balance; }
.hero h1 em { font-style: normal; color: #FF8A86; }
.hero .lead { color: rgba(255, 255, 255, .86); margin-top: 1.4rem; max-width: 40rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__bar {
  margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .22);
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.hero__scroll { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.hero__scroll svg { width: 1.1rem; height: 1.1rem; animation: nudge 1.8s 3; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.hero__video-toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); padding: .4rem .6rem; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .25); }
.hero__video-toggle svg { width: .9rem; height: .9rem; }
.hero__video-toggle:hover { color: #fff; border-color: #fff; }
.hero__video-toggle .icon-pause, .hero__video-toggle .icon-play { display: inline-flex; }
.hero__video-toggle .icon-play, .hero__video-toggle[aria-pressed="false"] .icon-pause { display: none; }
.hero__video-toggle[aria-pressed="false"] .icon-play { display: inline-flex; }
@media (max-width: 699.98px) { .hero__bar { padding-right: 4.25rem; } } /* keep clear of the WhatsApp button */

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4.2vw, 3.4rem); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.stat__value span { color: var(--red); }
.stat__label { margin-top: .5rem; color: var(--gray); font-size: .95rem; max-width: 16rem; }
.section--dark .stat__value { color: #fff; }
.section--dark .stat__label { color: #B9C1CA; }
.stats--hero { border-top: 1px solid rgba(255, 255, 255, .15); }

/* ---------- Pillars (frentes de atuação) ---------- */
.pillars { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1.75rem 1.75rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.pillar__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--red-50); color: var(--red); }
.pillar__icon svg { width: 28px; height: 28px; }
.pillar--green .pillar__icon { background: var(--green-50); color: var(--green-600); }
.pillar--dark .pillar__icon { background: var(--paper-3); color: var(--ink); }
.pillar__num { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--gray); }
.pillar p { color: var(--ink-600); flex: 1; }
.pillar .link-arrow { margin-top: .25rem; }

/* ---------- Case features ---------- */
.case { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 960px) {
  .case { grid-template-columns: repeat(12, 1fr); gap: 3rem; }
  .case__media { grid-column: 1 / span 7; }
  .case__body { grid-column: 8 / span 5; }
  .case--flip .case__media { grid-column: 6 / span 7; order: 2; }
  .case--flip .case__body { grid-column: 1 / span 5; order: 1; }
}
.case + .case { margin-top: clamp(3.5rem, 7vw, 6rem); }
.case__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-700); }
.case__media picture, .project-card__media picture { position: absolute; inset: 0; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.case:hover .case__media img { transform: scale(1.03); }
.case__tag { position: absolute; left: 1rem; top: 1rem; padding: .4rem .7rem; background: rgba(20, 23, 26, .8); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 4px; backdrop-filter: blur(6px); }
.case__body h3 { font-size: clamp(1.45rem, 2.3vw, 2rem); }
.case__type { margin-top: .6rem; color: #B9C1CA; font-weight: 700; font-size: .95rem; }
.case__summary { margin-top: 1rem; }
.case__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.case__facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #98A1AC; font-weight: 700; }
.case__facts dd { margin: .15rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; }
.case__actions { margin-top: 1.5rem; display: flex; gap: 1rem 1.5rem; flex-wrap: wrap; align-items: center; }
.section:not(.section--dark) .case__type { color: var(--gray); }
.section:not(.section--dark) .case__facts { border-top-color: var(--line); }
.section:not(.section--dark) .case__facts dt { color: var(--gray); }
.section:not(.section--dark) .case__facts dd { color: var(--ink); }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(var(--steps, 3), 1fr); } }
.step { position: relative; padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.section--dark .step { background: var(--ink-800); border-color: rgba(255, 255, 255, .08); }
.section--muted .step { background: #fff; }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--red); letter-spacing: -.02em; }
.step h3, .step__title { margin-top: 1rem; font-size: 1.25rem; font-family: var(--font-display); font-weight: 700; }
.section--dark .step h3, .section--dark .step__title { color: #fff; }
.step p { margin-top: .6rem; color: var(--ink-600); }
.section--dark .step p { color: #B9C1CA; }
.step ul { margin-top: .75rem; padding-left: 1.1rem; color: var(--ink-600); }
.step ul li + li { margin-top: .3rem; }
.section--dark .step ul { color: #B9C1CA; }

/* ---------- Feature list / checks ---------- */
.checks { display: grid; gap: .85rem; }
.checks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .8rem; align-items: start; }
.checks svg { width: 1.5rem; height: 1.5rem; color: var(--green); margin-top: .1rem; }
.checks strong { color: var(--ink); }
.section--dark .checks strong { color: #fff; }

/* ---------- Split CTA ---------- */
.split { display: grid; gap: 1px; background: var(--line); }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split__panel {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem;
  min-height: 26rem; padding: clamp(2rem, 4vw, 3.5rem); color: #fff; overflow: hidden; background: var(--ink);
}
.split__panel img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.split__panel:hover img { transform: scale(1.05); }
.split__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20, 23, 26, .95), rgba(20, 23, 26, .35) 55%, rgba(20, 23, 26, .15)); }
.split__panel h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.split__panel p { color: rgba(255, 255, 255, .85); max-width: 34rem; }
.split__panel .eyebrow { color: #FF8A86; margin-bottom: .25rem; }
.split__panel .btn { align-self: flex-start; margin-top: .5rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(20, 23, 26, .95) 20%, rgba(20, 23, 26, .6) 60%, rgba(20, 23, 26, .35)), linear-gradient(to top, rgba(20, 23, 26, .9), transparent 50%); }
.page-hero h1 { color: #fff; max-width: 20ch; text-wrap: balance; }
.page-hero .eyebrow { color: #FF8A86; }
.page-hero .lead { color: rgba(255, 255, 255, .86); margin-top: 1.25rem; max-width: 44rem; }
.page-hero--compact { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.25rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }

/* ---------- Timeline (Sobre) ---------- */
.timeline { position: relative; display: grid; gap: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding-left: 2.5rem; }
.timeline__item::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--red-50); }
.timeline__item:nth-child(2)::before { background: var(--green); box-shadow: 0 0 0 5px var(--green-50); }
.timeline__item:nth-child(3)::before { background: var(--ink); box-shadow: 0 0 0 5px var(--paper-3); }
.timeline__kicker { font-family: var(--font-label); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.timeline__item h3 { margin-top: .3rem; }
.timeline__item p { margin-top: .6rem; color: var(--ink-600); }

/* ---------- Services grid ---------- */
.services { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.service { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; color: var(--ink); }
.service svg { width: 1.3rem; height: 1.3rem; color: var(--green); flex: none; margin-top: .1rem; }

/* ---------- Quote / credentials ---------- */
.credential { display: grid; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--paper-2); border-left: 6px solid var(--red); }
@media (min-width: 860px) { .credential { grid-template-columns: 1fr auto; align-items: center; } }
.credential p { font-family: var(--font-sans); font-weight: 700; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--ink); }
.credential__people { display: grid; gap: .75rem; }
.person { display: flex; gap: .9rem; align-items: center; }
.person__avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .9rem; flex: none; }
.person strong { display: block; color: var(--ink); line-height: 1.2; }
.person span { font-size: .85rem; color: var(--gray); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--gray-300); font-weight: 700; font-size: .875rem; color: var(--ink-600); background: #fff; transition: all .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.portfolio-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.project-card {
  display: flex; flex-direction: column; text-align: left; width: 100%; color: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.project-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); position: relative; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__count { position: absolute; right: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; background: rgba(20, 23, 26, .75); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 4px; }
.project-card__count svg { width: .9rem; height: .9rem; }
.project-card__body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.project-card__cat { font-family: var(--font-label); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.project-card__client { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); line-height: 1.2; }
.project-card__type { color: var(--ink-600); font-size: .95rem; }
.project-card__meta { margin-top: auto; padding-top: .75rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--gray); }
.project-card__meta strong { color: var(--ink); }
.project-card.is-hidden { display: none; }
.portfolio-empty { display: none; padding: 3rem 1rem; text-align: center; color: var(--gray); }
.portfolio-empty.is-visible { display: block; }

/* Lightbox / modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal[open] { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 14, .88); backdrop-filter: blur(4px); }
.modal__dialog {
  position: absolute; inset: 0; margin: auto; width: min(1180px, 100% - 1rem); height: min(100% - 1rem, 860px);
  background: var(--ink-800); color: #D7DCE2; border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
}
@media (min-width: 960px) { .modal__dialog { grid-template-rows: 1fr; grid-template-columns: 1.45fr 1fr; height: min(100% - 2rem, 760px); width: min(1180px, 100% - 2rem); } }
.modal__media { position: relative; background: #000; min-height: 240px; display: grid; place-items: center; }
.modal__media img { width: 100%; height: 100%; object-fit: contain; max-height: 100%; }
.modal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.modal__nav:hover { background: var(--red); }
.modal__nav svg { width: 20px; height: 20px; }
.modal__nav--prev { left: .75rem; }
.modal__nav--next { right: .75rem; }
.modal__nav[hidden] { display: none; }
.modal__counter { position: absolute; left: .9rem; bottom: .75rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; padding: .3rem .55rem; border-radius: 4px; background: rgba(0, 0, 0, .55); color: #fff; }
.modal__body { padding: clamp(1.25rem, 3vw, 2rem); overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.modal__close { position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.modal__close:hover { background: var(--red); }
.modal__close svg { width: 20px; height: 20px; }
.modal__cat { font-family: var(--font-label); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FF8A86; }
.modal__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: #fff; line-height: 1.15; }
.modal__type { color: #B9C1CA; font-weight: 700; }
.modal__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.modal__facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #98A1AC; font-weight: 700; }
.modal__facts dd { margin: .1rem 0 0; font-weight: 700; color: #fff; }
.modal__note { color: #B9C1CA; font-size: .95rem; }
.modal__thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.modal__thumbs button { width: 64px; height: 48px; border-radius: 4px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.modal__thumbs button[aria-current="true"] { border-color: var(--red); opacity: 1; }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal__credit { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #98A1AC; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; } /* one field per line, on every screen size */
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--gray); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: .75rem .95rem; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--gray-500); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23667080' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(187, 38, 37, .15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field__error { font-size: .82rem; color: var(--red); font-weight: 700; }
.field__error:empty { display: none; }
.field__hint { font-size: .82rem; color: var(--gray); }
.field--file input { padding: .6rem .75rem; }
.field--file input::file-selector-button { font: inherit; font-weight: 700; margin-right: .9rem; padding: .45rem .8rem; border: 0; border-radius: 4px; background: var(--paper-3); color: var(--ink); cursor: pointer; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .9rem; color: var(--ink-600); }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--red); }
.consent a { color: var(--red); font-weight: 700; text-decoration: underline; }
.form__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: .25rem; }
.form__status { display: none; padding: 1rem 1.15rem; border-radius: var(--radius); font-weight: 700; }
.form__status.is-success { display: block; background: var(--green-50); color: var(--green-700); border: 1px solid #BFE3B6; }
.form__status.is-error { display: block; background: var(--red-50); color: var(--red-700); border: 1px solid #F1C2C1; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.75rem); box-shadow: var(--shadow-1); }
.form-card__head { margin-bottom: 1.75rem; }
.form-card__head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.form-card__head p { margin-top: .5rem; color: var(--gray); }

/* Two-column layout: content + form */
.with-aside { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1000px) { .with-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; } .with-aside > .sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

/* ---------- Contact cards ---------- */
.contact-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.contact-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red); }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card--wa .contact-card__icon { background: #E6F9EC; color: #1b9b4b; }
.contact-card__title { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; color: var(--ink); }
.contact-card a, .contact-card address { color: var(--ink-600); }
.contact-card a:hover { color: var(--red); }
.contact-card a:hover strong { color: var(--red); }
.contact-card strong { color: var(--ink); font-size: 1.05rem; word-break: break-word; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--paper-3); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contact strip ---------- */
.contact-strip { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .contact-strip { grid-template-columns: 1fr auto; } }
.contact-strip__items { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.contact-strip__item { display: flex; gap: .7rem; align-items: center; font-weight: 700; color: #fff; }
.contact-strip__item svg { width: 1.2rem; height: 1.2rem; color: #FF8A86; flex: none; }
.contact-strip__item span { font-weight: 400; color: #B9C1CA; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink); }
.cta-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 20% 50%, rgba(187, 38, 37, .45), transparent 55%); }
.cta-band__inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.3fr auto; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: .75rem; max-width: 40rem; }
.cta-band .cluster { justify-content: flex-start; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #B9C1CA; padding-top: clamp(3rem, 6vw, 5rem); }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer__logo img { height: 48px; width: auto; }
.footer__brand p { margin-top: 1.25rem; max-width: 30rem; font-size: .95rem; }
.footer__title { color: #fff; font-family: var(--font-label); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__list { display: grid; gap: .55rem; }
.footer__list a { color: #D7DCE2; }
.footer__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer address { display: grid; gap: .55rem; font-size: .95rem; }
.footer address a { color: #fff; font-weight: 700; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, transform .2s; }
.footer__social a:hover { background: var(--red); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding: 1.5rem 0 2rem; font-size: .85rem; color: #98A1AC; }
.footer__bottom a { color: #D7DCE2; }
.footer__bottom a:hover { color: #fff; }
.footer__tech { display: flex; gap: .5rem; align-items: center; }
.footer__tech span { width: 10px; height: 10px; border-radius: 2px; background: var(--green); display: inline-block; }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80;
  display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem .8rem .9rem;
  background: #25D366; color: #0b2e17; font-weight: 700; border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .8), 0 2px 6px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-fab:hover { transform: translateY(-2px) scale(1.02); }
.wa-fab svg { width: 26px; height: 26px; }
.wa-fab span { display: none; }
@media (min-width: 700px) { .wa-fab span { display: inline; } }

/* ---------- Cookie / LGPD notice ---------- */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 85; margin-inline: auto; max-width: 40rem; padding: 1rem 1.15rem; background: #fff; color: var(--ink-600); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); border: 1px solid var(--line); display: none; gap: 1rem; align-items: center; font-size: .9rem; }
.cookie.is-visible { display: flex; flex-wrap: wrap; }
.cookie p { flex: 1 1 20rem; }
.cookie a { color: var(--red); font-weight: 700; text-decoration: underline; }
@media (min-width: 700px) { .cookie { right: auto; left: 1.25rem; bottom: 1.25rem; } }
@media (max-width: 699.98px) { .cookie { bottom: 5.25rem; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll svg { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); }
.tag { display: inline-block; padding: .3rem .6rem; border-radius: 4px; background: var(--paper-3); color: var(--ink); font-family: var(--font-label); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tag--red { background: var(--red-50); color: var(--red); }
.tag--green { background: var(--green-50); color: var(--green-700); }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--paper-2); border-left: 4px solid var(--green); color: var(--ink-600); font-size: .95rem; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.prose p, .prose ul, .prose ol { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .35rem; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.big-number { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 14vw, 9rem); line-height: .9; color: var(--red); letter-spacing: -.03em; }
.page-hero .big-number { color: #FF8A86; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--gray-400); }
.logo-strip span { white-space: nowrap; }

/* ---------- Print ---------- */
@media print {
  .header, .drawer, .wa-fab, .cookie, .hero__media video, .footer__social { display: none !important; }
  .hero { min-height: auto; }
  body { color: #000; }
}
