/* =========================================================
   SP Consultoria Administrativa e Contábil — landing page
   ========================================================= */

:root {
  /* Brand */
  --blue: #17689f;          /* = fundo da foto oficial; campo do hero */
  --blue-600: #135a8a;
  --ink: #0b2e4a;           /* top bar, faixa de CTA, botões escuros */
  --ink-900: #08243b;       /* rodapé */
  --gold: #f9af43;          /* ação primária */
  --gold-600: #eb9c26;
  --gold-ink: #9a6408;      /* texto e ícones dourados sobre branco (≥4.5:1) */

  /* Neutrals (tingidos do azul) */
  --text: #0e2a40;
  --text-muted: #4a5d6e;
  --line: #e1e7ee;
  --line-strong: #cdd8e2;
  --surface: #ffffff;
  --surface-alt: #f4f7fa;
  --on-blue: #ffffff;
  --on-blue-muted: #dce9f3;
  --on-ink-muted: #b9cada;

  /* Type */
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.125rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);
  --fs-h3: 1.0625rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section-y: clamp(4.5rem, 3rem + 5vw, 7rem);
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --container: 1200px;

  /* Shape & depth */
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgb(11 46 74 / 0.06), 0 2px 6px rgb(11 46 74 / 0.05);
  --shadow-md: 0 10px 24px -8px rgb(11 46 74 / 0.18), 0 2px 6px rgb(11 46 74 / 0.06);
  --shadow-lg: 0 18px 40px -12px rgb(8 36 59 / 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  scrollbar-color: #9fb3c5 var(--surface-alt);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a,
button { -webkit-tap-highlight-color: rgb(249 175 67 / 0.22); }
strong { font-weight: 600; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible,
.cta :focus-visible,
.footer :focus-visible,
.topbar :focus-visible { outline-color: var(--gold); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--s-4); }

.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--md { width: 1.5rem; height: 1.5rem; }
.icon--lg { width: 2rem; height: 2rem; stroke-width: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.625rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease-out);
}
.btn .icon { width: 1.125rem; height: 1.125rem; transition: transform 0.25s var(--ease-out); }
.btn--lg { min-height: 56px; padding-inline: 2rem; font-size: 0.875rem; }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ghost { border-color: rgb(255 255 255 / 0.7); color: #fff; }

@media (hover: hover) {
  .btn--gold:hover { background: var(--gold-600); transform: translateY(-1px); }
  .btn--gold:hover .icon { transform: rotate(-8deg) scale(1.1); }
  .btn--ink:hover { background: var(--blue-600); transform: translateY(-1px); }
  .btn--ghost:hover { background: #fff; color: var(--blue); border-color: #fff; transform: translateY(-1px); }
  .btn--ink:hover .icon,
  .btn--ghost:hover .icon { transform: translateX(3px); }
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--gold:active { background: var(--gold-600); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--on-ink-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.01em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 40px;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
}
.topbar__item .icon { width: 0.95rem; height: 0.95rem; color: var(--gold); }
a.topbar__item:hover { color: #fff; }
.topbar__end { display: flex; align-items: center; gap: var(--s-4); }
.topbar__social {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  transition: background-color 0.2s, color 0.2s;
}
.topbar__social .icon { width: 0.85rem; height: 0.85rem; }
.topbar__social:hover { background: var(--gold); color: var(--ink); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.header.is-scrolled { box-shadow: 0 6px 20px -12px rgb(11 46 74 / 0.25); }
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { width: 30px; height: 40px; color: var(--gold); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__sub {
  white-space: nowrap;
  margin-top: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.brand--light { color: #fff; }
.brand--light .brand__sub { color: var(--gold); }

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover,
.nav__link[aria-current="true"] { color: var(--gold-ink); }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__cta { min-height: 44px; padding-inline: 1.25rem; font-size: 0.75rem; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 48px; height: 48px;
  margin-right: -8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--on-blue);
  isolation: isolate;
}
.hero__mark {
  position: absolute;
  z-index: -1;
  left: -6%;
  bottom: -28%;
  width: auto;
  height: 135%;
  aspect-ratio: 500 / 655;
  color: #fff;
  opacity: 0.06;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: var(--s-6);
  min-height: clamp(520px, 40vw + 160px, 620px);
}
.hero__copy {
  align-self: center;
  max-width: 40rem;
  padding-block: var(--s-8);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--gold); }
.hero__lead {
  max-width: 33rem;
  margin-top: var(--s-5);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--on-blue-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.hero__figure {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 580px;
}
.hero__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  /* funde as bordas laterais da foto ao campo azul do hero */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5%, #000 98.5%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 1.5%, #000 98.5%, transparent);
}
.hero__caption {
  position: absolute;
  left: 4%;
  bottom: 9%;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 1rem 0.75rem;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.35;
  box-shadow: var(--shadow-lg);
}
.hero__caption strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: rise 1.1s var(--ease-out) 0.1s both; }
  .hero__caption { animation: fade-up 0.8s var(--ease-out) 0.7s both; }
}
@keyframes rise {
  from { clip-path: inset(100% 0 0 0); transform: translateY(24px); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Stats (fatos documentados) ---------- */
.stats {
  background: var(--ink);
  color: #fff;
}
.stats__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: clamp(2rem, 1.5rem + 1.5vw, 2.75rem) var(--s-5);
}
.stat + .stat { border-left: 1px solid rgb(255 255 255 / 0.12); }
.stat:first-child { padding-left: 0; }
.stat__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 2.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--gold);
}
.stat__label {
  max-width: 26ch;
  text-wrap: balance;
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--on-ink-muted);
}
.stat__label::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: var(--s-3);
  background: var(--gold);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out) calc(var(--d, 0s) + 0.35s);
}
@media (prefers-reduced-motion: no-preference) {
  .js .stat:not(.is-in) .stat__label::before { transform: scaleX(0); }
}

/* ---------- Manifesto ---------- */
.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.manifesto__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.manifesto__list { border-top: 1px solid var(--line); }
.point {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-5);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.point__icon { margin-top: 2px; color: var(--gold-ink); }
.point__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.point__text {
  max-width: 42ch;
  margin-top: var(--s-2);
  color: var(--text-muted);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section__head {
  max-width: 44rem;
  margin: 0 auto var(--s-7);
  text-align: center;
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.section__lead {
  margin-top: var(--s-4);
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ---------- Services (seletor) ---------- */
.services {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}
.svc-list { border-top: 1px solid var(--line-strong); }
.svc { border-bottom: 1px solid var(--line-strong); }
.svc__heading { margin: 0; }
.svc__tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4);
  width: 100%;
  min-height: 64px;
  padding: var(--s-3) var(--s-2);
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.svc__name { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.svc__icon { color: var(--gold-ink); }
.svc__chev { color: var(--text-muted); transition: transform 0.3s var(--ease-out), color 0.25s; }
.svc__tab[aria-expanded="true"] .svc__chev { transform: rotate(180deg); }

.svc__panel {
  position: relative;
  padding: 0 var(--s-2) var(--s-6) calc(1.5rem + var(--s-4) + var(--s-2));
}
.svc__panel-title,
.svc__watermark { display: none; }
.svc__lead { max-width: 52ch; color: var(--text-muted); }
.svc__list {
  display: grid;
  gap: var(--s-2);
  margin-block: var(--s-4) var(--s-5);
}
.svc__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text);
}
.svc__list .icon { margin-top: 0.2em; color: var(--gold-ink); }
.svc__panel .btn { width: 100%; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .svc__panel:not([hidden]) > :not(.svc__watermark) { animation: panel-in 0.5s var(--ease-out) both; }
  .svc__panel:not([hidden]) > :nth-child(3) { animation-delay: 0.04s; }
  .svc__panel:not([hidden]) > :nth-child(4) { animation-delay: 0.08s; }
  .svc__panel:not([hidden]) > :nth-child(5) { animation-delay: 0.12s; }
  .svc__panel:not([hidden]) > :nth-child(6) { animation-delay: 0.16s; }
}

@media (min-width: 900px) {
  .js .svc-list {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: repeat(6, min-content) 1fr;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    row-gap: 4px;
    align-items: start;
    border-top: 0;
  }
  .js .svc { display: contents; }
  .js .svc__heading { grid-column: 1; }
  .js .svc__tab {
    min-height: 68px;
    padding: var(--s-3) var(--s-5);
    border-radius: var(--radius);
  }
  .js .svc__chev { transform: rotate(-90deg); }
  .js .svc__tab[aria-expanded="true"] { background: var(--ink); color: #fff; }
  .js .svc__tab[aria-expanded="true"] .svc__icon,
  .js .svc__tab[aria-expanded="true"] .svc__chev { color: var(--gold); }
  .js .svc__tab[aria-expanded="true"] .svc__chev { transform: rotate(-90deg) translateY(4px); }

  .js .svc__panel {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: stretch;
    overflow: hidden;
    padding: var(--s-7);
    border-radius: var(--radius);
    background: var(--blue);
    color: #fff;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  }
  .js .svc__panel[hidden] { display: block; visibility: hidden; opacity: 0; }
  .js .svc__watermark {
    display: block;
    position: absolute;
    right: -4%;
    bottom: -12%;
    width: auto;
    height: 72%;
    aspect-ratio: 500 / 655;
    color: #fff;
    opacity: 0.07;
    pointer-events: none;
  }
  .js .svc__panel-title {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    line-height: 1.2;
    letter-spacing: -0.012em;
    text-wrap: balance;
  }
  .js .svc__lead { margin-top: var(--s-4); max-width: 46ch; font-size: 1.0625rem; color: var(--on-blue-muted); }
  .js .svc__list li { color: #fff; }
  .js .svc__list .icon { color: var(--gold); }
  .js .svc__panel .btn { width: auto; }
}
@media (min-width: 900px) and (hover: hover) {
  .js .svc__tab[aria-expanded="false"]:hover { background: #fff; }
  .js .svc__tab[aria-expanded="false"]:hover .svc__chev { color: var(--gold-ink); }
}
@media (max-width: 479px) {
  .svc__panel { padding-left: var(--s-2); }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease-out) var(--d, 0s), transform 0.8s var(--ease-out) var(--d, 0s);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.about__media { grid-column: 1; grid-row: 1; }
.about__copy { grid-column: 2; grid-row: 1; }

.about__plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  aspect-ratio: 5 / 4.6;
  padding: var(--s-7) var(--s-6) 7rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  text-align: center;
}
.about__plate-mark { width: 26%; height: auto; aspect-ratio: 500 / 655; color: var(--gold); }
.about__plate-text { display: flex; flex-direction: column; gap: var(--s-2); }
.about__plate-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.about__plate-sub {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-blue-muted);
}

.facts {
  position: relative;
  margin: -5rem var(--s-5) 0;
  padding-inline: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon value" "icon label";
  column-gap: var(--s-4);
  align-items: center;
  padding-block: var(--s-4);
}
.fact + .fact { border-top: 1px solid var(--line); }
.fact__icon { grid-area: icon; color: var(--gold-ink); }
.fact__value {
  grid-area: value;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.fact__label { grid-area: label; font-size: var(--fs-xs); color: var(--text-muted); }

.about__lead {
  max-width: 34rem;
  margin-top: var(--s-5);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
}
.about__text {
  max-width: 34rem;
  margin-top: var(--s-4);
  color: var(--text-muted);
}
.about__label {
  margin-top: var(--s-6);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}
.specialties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  max-width: 30rem;
  margin-top: var(--s-3);
}
.specialties li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.specialties .icon { width: 1.25rem; height: 1.25rem; color: var(--gold-ink); }
.about__cta { margin-top: var(--s-6); }

/* ---------- Segments (caminho) ---------- */
.segments { padding-top: 0; }
.path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
  counter-reset: none;
}
.path::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 12.5%;
  right: 12.5%;
  height: 0;
  border-top: 1px dashed rgb(154 100 8 / 0.5);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out);
}
.path.is-armed::before { transform: scaleX(0); }
.path.is-armed.is-in::before { transform: scaleX(1); }
.path__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.path__node {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  box-shadow: 0 0 0 8px var(--surface), var(--shadow-md);
}
.path__title {
  margin-top: var(--s-5);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.path__text {
  max-width: 24ch;
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
}
@media (prefers-reduced-motion: no-preference) {
  .path.is-armed .path__node { transform: scale(0.85); opacity: 0; transition: transform 0.7s var(--ease-out), opacity 0.5s; }
  .path.is-armed.is-in .path__node { transform: none; opacity: 1; }
  .path.is-armed.is-in .path__step:nth-child(2) .path__node { transition-delay: 0.25s; }
  .path.is-armed.is-in .path__step:nth-child(3) .path__node { transition-delay: 0.5s; }
  .path.is-armed.is-in .path__step:nth-child(4) .path__node { transition-delay: 0.75s; }
}

/* ---------- Testimonials (mural) ---------- */
.testimonials {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

/* Base (sem JS ou com movimento reduzido): grade estática só com a 1ª coluna */
.wall__col + .wall__col { display: none; }
.wall__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: start;
}
.wall__toggle { display: none; }

.tcard {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.3s var(--ease-out);
}
.tcard__figure { display: flex; flex-direction: column; gap: var(--s-4); }
.tcard__mark { width: 28px; height: 21px; color: var(--gold); }
.tcard__text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
}
.tcard__author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--text-muted);
}
.tcard__author strong { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.tcard__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tcard__icon { color: var(--gold-ink); }
.tcard__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.tcard__body { margin-top: calc(var(--s-2) * -1); font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); }
.tcard__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  align-self: flex-start;
  min-height: 44px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.tcard__link .icon { transition: transform 0.25s var(--ease-out); }
.tcard--invite { border-style: dashed; border-color: var(--line-strong); background: transparent; box-shadow: none; }
.tcard--blue,
.tcard--ink { border-color: transparent; box-shadow: none; color: #fff; }
.tcard--blue { background: var(--blue); }
.tcard--ink { background: var(--ink); }
.tcard--blue .tcard__icon,
.tcard--ink .tcard__icon,
.tcard--ink .tcard__link { color: var(--gold); }
.tcard--blue .tcard__title,
.tcard--ink .tcard__title { color: #fff; }
.tcard--blue .tcard__body { color: var(--on-blue-muted); }
.tcard--ink .tcard__body { color: var(--on-ink-muted); }
@media (hover: hover) {
  .tcard:not(.tcard--blue):not(.tcard--ink):hover { border-color: rgb(154 100 8 / 0.35); box-shadow: var(--shadow-md); }
  .tcard__link:hover .icon { transform: translateX(3px); }
  .tcard__link:hover { color: var(--gold-ink); }
  .tcard--ink .tcard__link:hover { color: #fff; }
}

/* Animado (JS + movimento permitido) */
.wall.is-animated .wall__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  height: clamp(520px, 60vh, 620px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.wall.is-animated .wall__col { display: block; min-width: 0; }
.wall.is-animated .wall__list { grid-template-columns: 1fr; padding-bottom: var(--s-5); }
.wall.is-animated .wall__track { animation: wall-up var(--dur, 60s) linear infinite; animation-delay: var(--offset, 0s); }
.wall.is-animated .wall__cols:focus-within .wall__track,
.wall.is-paused .wall__track,
.wall.is-offscreen .wall__track { animation-play-state: paused; }
@media (hover: hover) {
  .wall.is-animated .wall__cols:hover .wall__track { animation-play-state: paused; }
}
.wall.is-animated .wall__toggle {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  margin: var(--s-5) auto 0;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 var(--fs-xs) / 1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.wall__toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) {
  .wall__toggle[aria-pressed="false"]:hover { border-color: var(--gold-ink); }
}
@keyframes wall-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.cta__mark {
  position: absolute;
  z-index: -1;
  right: 4%;
  top: -40%;
  height: 190%;
  width: auto;
  aspect-ratio: 500 / 655;
  color: var(--blue);
  opacity: 0.55;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6) var(--s-7);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.cta__title {
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  text-wrap: balance;
}
.cta__text {
  max-width: 36rem;
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--on-ink-muted);
}
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  flex: none;
}
.cta__mail {
  font-size: var(--fs-sm);
  color: var(--on-ink-muted);
}
.cta__mail:hover { color: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: var(--on-ink-muted);
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--s-7) var(--s-6);
  padding-block: var(--s-8) var(--s-7);
}
.footer__about { max-width: 32ch; margin-top: var(--s-5); line-height: 1.65; }
.footer__social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.footer__title {
  margin-bottom: var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.55rem var(--s-6);
}
.footer__col a { text-decoration: none; transition: color 0.2s; }
.footer__contact { display: grid; gap: 0.7rem; }
.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  overflow-wrap: anywhere;
}
.footer__contact .icon { margin-top: 0.2em; color: var(--gold); }
@media (hover: hover) {
  .footer__social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
  .footer__col a:hover { color: var(--gold); }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
  padding-block: var(--s-5);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: var(--fs-xs);
}

/* ---------- Voltar ao topo ---------- */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 68px);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: opacity 0.3s, visibility 0.3s, transform 0.35s var(--ease-out), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.to-top .icon { width: 1.25rem; height: 1.25rem; transition: transform 0.25s var(--ease-out); }
.to-top.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }
@media (hover: hover) {
  .to-top:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
  .to-top:hover .icon { transform: translateY(-2px); }
}
.to-top:active { transform: scale(0.94); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 24px -6px rgb(8 36 59 / 0.45);
  transition: transform 0.35s var(--ease-out), opacity 0.3s, background-color 0.2s, visibility 0.3s;
}
.wa-float { text-decoration: none; }
.wa-float__label {
  display: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (hover: hover) {
  .wa-float:hover { background: var(--gold-600); }
}
.wa-float:active { transform: scale(0.96); }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(16px); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1120px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
    padding: var(--s-3) var(--gutter) var(--s-5);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgb(11 46 74 / 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.8125rem;
  }
  .nav__link::after { display: none; }
  .nav__cta { min-height: 52px; }

  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s-7); }

  .wall.is-animated .wall__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall.is-animated .wall__col:nth-child(3) { display: none; }
  .wall__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .topbar__mail { display: none; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }
  .hero__copy { max-width: 36rem; padding-block: var(--s-7) var(--s-6); }
  .hero__figure { justify-self: center; max-width: 460px; }
  .hero__mark { height: 80%; bottom: auto; top: -10%; left: -30%; }

  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: var(--s-5) var(--s-5); }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgb(255 255 255 / 0.14); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgb(255 255 255 / 0.14); }

  .manifesto__grid { grid-template-columns: 1fr; gap: var(--s-6); }

  .about__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .about__media,
  .about__copy { grid-column: 1; grid-row: auto; }
  .about__media { width: 100%; max-width: 36rem; }
  .about__plate {
    flex-direction: row;
    gap: var(--s-5);
    aspect-ratio: 16 / 8;
    padding: var(--s-6) var(--s-5) 6rem;
    text-align: left;
  }
  .about__plate-mark { width: 64px; flex: none; }
  .facts { margin-top: -4.5rem; }

  .cta__inner { flex-direction: column; align-items: flex-start; }
  .cta__actions { align-items: flex-start; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .path { grid-template-columns: 1fr; gap: var(--s-6); max-width: 30rem; margin-inline: auto; }
  .path::before {
    top: 44px;
    bottom: 44px;
    left: 44px;
    right: auto;
    height: auto;
    border-top: 0;
    border-left: 1px dashed rgb(154 100 8 / 0.5);
    transform-origin: top;
  }
  .path.is-armed::before { transform: scaleY(0); }
  .path.is-armed.is-in::before { transform: scaleY(1); }
  .path__step {
    display: grid;
    grid-template-columns: 88px 1fr;
    grid-template-areas: "node title" "node text";
    column-gap: var(--s-5);
    align-items: center;
    text-align: left;
  }
  .path__node { grid-area: node; align-self: center; }
  .path__title { grid-area: title; align-self: end; margin-top: 0; }
  .path__text { grid-area: text; align-self: start; max-width: none; }
}

@media (max-width: 680px) {
  .topbar__inner { justify-content: center; }
  .topbar__inner > .topbar__item:first-child { display: none; }

  .brand__name { font-size: 1.125rem; }
  .brand__mark { width: 26px; height: 34px; }

  .hero__actions .btn { flex: 1 1 100%; }

  .stat { padding: var(--s-5) var(--s-4); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat__label { font-size: 0.8125rem; }

  .point { gap: var(--s-4); }

  .wa-float {
    width: auto;
    height: 52px;
    padding-inline: 16px 20px;
  }
  .wa-float__label { display: block; }
  .footer__bottom { padding-bottom: calc(var(--s-5) + 124px); }
  .to-top { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); }

  .about__lead { font-size: 1.0625rem; }
  .about__plate { aspect-ratio: auto; min-height: 210px; padding: var(--s-5) var(--s-5) 5.5rem; }
  .about__plate-mark { width: 52px; }
  .about__plate-name { font-size: 1.125rem; letter-spacing: 0.02em; }
  .about__plate-sub { font-size: 0.6875rem; letter-spacing: 0.12em; }
  .facts { margin: -4.5rem var(--s-4) 0; padding-inline: var(--s-4); }
  .about__cta { width: 100%; }

  .wall.is-animated .wall__cols { grid-template-columns: 1fr; height: 540px; }
  .wall.is-animated .wall__col:nth-child(2) { display: none; }
  .wall__list { grid-template-columns: 1fr; }
  .tcard { padding: var(--s-5); }

  .cta__actions,
  .cta__actions .btn { width: 100%; }
  .cta__actions { align-items: center; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 374px) {
  .specialties { grid-template-columns: 1fr; }
  .brand { gap: 0.6rem; }
  .brand__sub { letter-spacing: 0.04em; }
  .btn { padding-inline: 1rem; letter-spacing: 0.03em; }
  .btn--lg { padding-inline: 1.25rem; font-size: 0.8125rem; }
  .about__plate { flex-direction: column; gap: var(--s-3); text-align: center; }
  .about__plate-mark { width: 44px; }
  .about__plate-name { font-size: 1rem; letter-spacing: 0; }
  .about__cta .icon:last-child { display: none; }
  .facts { margin-inline: var(--s-3); padding-inline: var(--s-3); }
  .fact { column-gap: var(--s-3); }
  .fact__value { font-size: 1rem; }
}

/* Botões flutuantes: reserva espaço no rodapé enquanto eles invadem a coluna de conteúdo */
@media (min-width: 681px) and (max-width: 1343px) {
  .footer .container { padding-right: calc(var(--gutter) + 72px); }
}

@media (pointer: coarse) {
  .topbar__inner { min-height: 44px; }
  .topbar__social { position: relative; width: 36px; height: 36px; }
  .topbar__social::after { content: ""; position: absolute; inset: -4px; }
  a.topbar__item { min-height: 44px; }
  .footer__links { row-gap: 0; }
  .footer__contact { gap: 0; }
  .footer__col a:not(.btn),
  .footer__contact a { display: inline-block; padding-block: 0.7rem; }
  .svc__tab:active { background: rgb(11 46 74 / 0.06); }
  .footer__contact li { align-items: center; }
  .footer__contact .icon { margin-top: 0; }
  .cta__mail { display: inline-block; padding-block: 0.65rem; }
  .nav__link { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn,
  .to-top,
  .wa-float,
  .nav { transform: none !important; }
}
