/* ==========================================================================
   Diságua Locação — estilos base
   Fonte de verdade visual: specs/design.md
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Marca */
  --brand: #6eb800;
  --brand-light: #8dc738;
  --brand-dark: #4d8200;
  --brand-text: #3f6b00; /* texto verde sobre fundo claro (AA ≥ 4.5:1) */

  /* Escuros */
  --ink: #0b0b0c;
  --graphite-900: #141416;
  --graphite-800: #1f2022;
  --graphite-700: #2c2d30;

  /* Neutros */
  --steel-500: #4c4e52;
  --steel-300: #9a9ba0;
  --line: #d8d8d4;
  --paper: #f4f3ef;
  --white: #ffffff;

  /* Tipografia */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --fs-display: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem);   /* 40 → 72 */
  --fs-h2: clamp(1.875rem, 1.45rem + 1.8vw, 3rem);       /* 30 → 48 */
  --fs-h3: clamp(1.375rem, 1.23rem + 0.6vw, 1.75rem);    /* 22 → 28 */
  --fs-h4: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);    /* 18 → 20 */
  --fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); /* 17 → 19 */
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: clamp(0.6875rem, 0.66rem + 0.1vw, 0.75rem); /* 11 → 12 */

  /* Espaçamentos (base 8) */
  --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;
  --s-9: 6rem;
  --s-10: 8rem;

  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);
  --container: 75rem; /* 1200px */
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 1.5rem);

  /* Formas */
  --radius: 6px;
  --radius-btn: 4px;
  --radius-img: 8px;
  --cut: 14px; /* corte diagonal da marca */

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 400ms;

  --header-h: 72px;
}

/* 2. Reset ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* O atributo hidden sempre vence o display dos componentes */
[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
}

.on-light :focus-visible {
  outline-color: var(--brand-dark);
}

.sr-only {
  position: absolute;
  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;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--brand);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-btn);
}

.skip-link:focus {
  top: var(--s-3);
}

/* 3. Tipografia ------------------------------------------------------------- */
.display,
.h2,
.h3,
.h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.display {
  font-size: var(--fs-display);
  line-height: 1;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  font-weight: 600;
}

.h4 {
  font-size: var(--fs-h4);
  line-height: 1.2;
  font-weight: 600;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--steel-300);
  max-width: 60ch;
}

.on-light .lead {
  color: var(--steel-500);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-light);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  transform: skewX(-30deg);
}

.on-light .eyebrow {
  color: var(--brand-text);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-brand {
  color: var(--brand);
}

.on-light .text-brand {
  color: var(--brand-text);
}

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

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

/* Variações de fundo: escuro (padrão), grafite, claro quente, branco */
.bg-ink {
  background: var(--ink);
  color: var(--white);
}

.bg-graphite {
  background: var(--graphite-900);
  color: var(--white);
}

.bg-paper {
  background: var(--paper);
  color: var(--ink);
}

.bg-white {
  background: var(--white);
  color: var(--ink);
}

.section-head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
  max-width: 48rem;
}

.section-head--split {
  max-width: none;
  align-items: end;
}

@media (min-width: 1024px) {
  .section-head--split {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-7);
  }
}

.stack > * + * {
  margin-top: var(--stack, var(--s-4));
}

.grid {
  display: grid;
  gap: var(--s-5);
}

@media (max-width: 767px) {
  .grid {
    gap: var(--s-4);
  }
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

/* Grade de 8 categorias: 4 (desktop) → 2 (tablet e celular) */
.grid--cats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1024px) {
  .grid--cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 5. Assinatura: corte diagonal -------------------------------------------- */
.cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.cut-br {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

/* Faixa inclinada verde (selos, destaques) */
.stripe {
  display: inline-block;
  padding: var(--s-1) var(--s-4);
  background: var(--brand);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

/* Divisor diagonal entre seções */
.slant-top {
  clip-path: polygon(0 clamp(24px, 4vw, 64px), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(clamp(24px, 4vw, 64px) * -1);
  padding-top: calc(var(--section-y) + clamp(24px, 4vw, 64px));
}

/* 6. Botões ----------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-bd: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: var(--s-4) var(--s-6);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-btn);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms, border-color 200ms, color 200ms, transform 200ms var(--ease-out);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn .arrow {
  transition: transform 200ms var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn--primary {
  --btn-bg: var(--brand);
  --btn-fg: var(--ink);
  --btn-bd: var(--brand);
}

.btn--primary:hover {
  --btn-bg: var(--brand-light);
  --btn-bd: var(--brand-light);
}

.btn--secondary {
  --btn-fg: var(--white);
  --btn-bd: var(--white);
}

.btn--secondary:hover {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
}

.on-light .btn--secondary {
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
}

.on-light .btn--secondary:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
}

.btn--block {
  width: 100%;
}

/* Botões dentro de cards estreitos */
.btn--compact {
  padding-inline: var(--s-4);
  letter-spacing: 0.04em;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px; /* alvo de toque confortável */
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-light);
}

.on-light .link-arrow {
  color: var(--brand-text);
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 7. Mídia e placeholder de foto ------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--graphite-800);
  aspect-ratio: var(--ratio, 4 / 3);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bloco visível onde falta foto real. Não pode ir ao ar. */
.placeholder {
  display: grid;
  place-items: center;
  padding: var(--s-4);
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, rgb(255 255 255 / 0.03) 12px 24px),
    var(--graphite-800);
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  border: 1px dashed var(--graphite-700);
}

/* Bloco neutro para equipamentos ainda sem foto (vai ao ar no lugar do placeholder).
   Sempre escuro, inclusive em cards claros: o logo é branco/verde. */
.media-vazia,
.equip-card .media.media-vazia {
  position: relative;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgb(255 255 255 / 0.025) 14px 28px),
    var(--graphite-900);
}

.media-vazia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/logo-disagua-360.png") center 42% / min(55%, 200px) auto no-repeat;
  opacity: 0.3;
}

.cat-card__media.media-vazia::after {
  background-position: center 32%;
}

/* 8. Cards ------------------------------------------------------------------ */
/* Categoria (fundo escuro) */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(220px, 28vw, 340px);
  padding: var(--s-5);
  overflow: hidden;
  border: 1px solid var(--graphite-700);
  border-radius: var(--radius);
  background: var(--graphite-800);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
}

.cat-card__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.8);
  transition: filter var(--dur) var(--ease-out), transform 600ms var(--ease-out);
}

.cat-card__media.placeholder {
  place-items: start end;
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(11 11 12 / 0) 30%, rgb(11 11 12 / 0.92) 85%);
}

/* Faixa diagonal verde que aparece no hover */
.cat-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.cat-card:hover .cat-card__media img,
.cat-card:focus-visible .cat-card__media img {
  filter: none;
  transform: scale(1.03);
}

.cat-card:hover::after,
.cat-card:focus-visible::after {
  transform: scaleX(1);
}

.cat-card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: var(--s-2);
}

.cat-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
}

@media (max-width: 479px) {
  .cat-card {
    padding: var(--s-4);
  }
}

/* Equipamento (fundo claro) */
.equip-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}

.equip-card .media {
  border-radius: 0;
  background: var(--paper);
}

.equip-card .placeholder {
  background: var(--paper);
  color: var(--steel-500);
  border-color: var(--line);
}

.equip-card__body {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-5);
  flex: 1;
}

.equip-card__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.equip-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.2;
}

.equip-card__footer {
  padding: 0 var(--s-5) var(--s-5);
}

/* Diferencial / passo */
.feature {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  border-top: 2px solid var(--brand);
}

.feature__num {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  color: var(--brand-light);
}

.on-light .feature__num {
  color: var(--brand-text);
}

.feature p {
  color: var(--steel-300);
}

.on-light .feature p {
  color: var(--steel-500);
}

/* Unidade */
.unit-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--graphite-700);
  border-radius: var(--radius);
  background: var(--graphite-800);
  overflow: hidden;
}

.unit-card .media {
  border-radius: 0;
  --ratio: 16 / 10;
}

.unit-card__body {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  flex: 1;
  align-content: start;
}

.unit-card__uf {
  justify-self: start;
  font-size: var(--fs-small);
}

.unit-card address {
  font-style: normal;
  color: var(--steel-300);
}

.unit-card__actions {
  display: grid;
  gap: var(--s-3);
  padding: 0 var(--s-5) var(--s-5);
}

/* 9. Cabeçalho -------------------------------------------------------------- */
.topbar {
  background: var(--graphite-900);
  border-bottom: 1px solid var(--graphite-700);
  font-size: var(--fs-small);
  color: var(--steel-300);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 40px;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em; /* inline-flex descarta o espaço entre "RO:" e o número */
  min-height: 40px;
  color: var(--white);
  text-decoration: none;
}

.topbar a:hover {
  color: var(--brand-light);
}

.topbar__contacts {
  display: flex;
  gap: var(--s-5);
}

@media (max-width: 767px) {
  .topbar__info,
  .topbar__contacts .topbar__mt {
    display: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--graphite-700);
}

/* Desfoque num pseudo-elemento: backdrop-filter no próprio header
   viraria o bloco de referência do menu mobile (position: fixed). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(11 11 12 / 0.92);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.site-header__logo img {
  width: clamp(132px, 12vw, 168px);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav__list {
  display: flex;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--steel-300);
  transition: color 200ms;
}

.nav__list a:hover,
.nav__list a[aria-current="true"] {
  color: var(--white);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--graphite-700);
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--nav-top, var(--header-h)) 0 0 0; /* --nav-top: definido no JS ao abrir */
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-6);
    padding: var(--s-6) var(--gutter);
    background: var(--ink);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 300ms var(--ease-out), visibility 300ms;
  }

  .nav.is-open {
    transform: none;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__list a {
    display: block;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--graphite-700);
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--white);
  }
}

/* 10. Rodapé ---------------------------------------------------------------- */
.site-footer {
  background: var(--graphite-900);
  border-top: 1px solid var(--graphite-700);
  color: var(--steel-300);
  font-size: var(--fs-small);
}

.site-footer__grid {
  display: grid;
  gap: var(--s-7);
  padding-block: var(--s-8);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.site-footer__brand img {
  width: 160px;
  margin-bottom: var(--s-4);
}

.site-footer h2 {
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}

.site-footer ul {
  display: grid;
  gap: var(--s-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-light);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-5);
  border-top: 1px solid var(--graphite-700);
  font-size: var(--fs-eyebrow);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 11. WhatsApp flutuante ---------------------------------------------------- */
.wa-float {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(var(--gutter), env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-dark); /* ícone branco com contraste ≥ 3:1 */
  color: var(--white);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.35);
  transition: transform 200ms var(--ease-out), background-color 200ms;
}

.wa-float:hover {
  transform: translateY(-2px);
  background: var(--brand-text);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

/* 11b. Seções da landing (index.html) --------------------------------------- */

/* Listas usadas como grade: o card ocupa a altura toda da célula */
.grid > li {
  display: flex;
  flex-direction: column;
}

.grid > li > :only-child {
  flex: 1;
}

.section-foot {
  margin-top: var(--s-6);
}

button.link-arrow {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  padding-bottom: var(--s-6);
  overflow: hidden;
}

/* Faixa diagonal de fundo, derivada do "swoosh" do logo */
.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(180deg, var(--graphite-900), var(--ink));
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.15fr minmax(0, 520px);
    gap: var(--s-8);
  }
}

.hero__text {
  display: grid;
  gap: var(--s-5);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

@media (max-width: 479px) {
  .hero__ctas .btn {
    width: 100%;
  }
}

.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  background: var(--graphite-800);
  --cut: 28px;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(11 11 12 / 0) 55%, rgb(11 11 12 / 0.75));
}

.hero__badge {
  position: absolute;
  left: var(--s-5);
  bottom: var(--s-5);
  z-index: 1;
  font-size: 1.125rem;
}

@media (max-width: 1023px) {
  .hero__media {
    aspect-ratio: 4 / 3;
  }
}

/* Números de confiança */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5) var(--s-7);
  margin: var(--s-3) 0 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--graphite-700);
}

.stats div {
  display: grid;
  gap: var(--s-1);
}

.stats dt {
  order: 2;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-300);
}

.stats dd {
  order: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

.stats--light {
  border-top-color: var(--line);
}

.stats--light dt {
  color: var(--steel-500);
}

.stats--light dd {
  color: var(--ink);
}

/* Atalhos de categoria */
.hero__chips {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--graphite-700);
}

.hero__chips-label {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-300);
}

.hero__chips ul {
  display: flex;
  gap: var(--s-2);
  margin: 0;
  padding: 0 0 var(--s-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.hero__chips li {
  flex: none;
  scroll-snap-align: start;
}

.hero__chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--graphite-700);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: var(--steel-300);
  transition: border-color 200ms, color 200ms;
}

.hero__chips a:hover {
  border-color: var(--brand);
  color: var(--white);
}

@media (max-width: 767px) {
  .hero__chips-label {
    display: none;
  }
}

/* Itens no card de categoria */
.cat-card__items {
  margin-top: var(--s-2);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--steel-300);
}

@media (max-width: 479px) {
  .cat-card__items {
    display: none;
  }
}

/* Quiz */
.quiz-wrap {
  display: grid;
  gap: var(--s-7);
  align-items: start;
}

@media (min-width: 1024px) {
  .quiz-wrap {
    grid-template-columns: 1fr 1.3fr;
  }
}

.quiz__intro {
  display: grid;
  gap: var(--s-4);
}

.quiz {
  display: grid;
  gap: var(--s-5);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--graphite-800);
  border: 1px solid var(--graphite-700);
  --cut: 20px;
}

.quiz__progress {
  height: 4px;
  background: var(--graphite-700);
}

.quiz__progress span {
  display: block;
  height: 100%;
  background: var(--brand);
  transition: width var(--dur) var(--ease-out);
}

.quiz__step-label {
  font-size: var(--fs-eyebrow);
  color: var(--brand-light);
}

.quiz__panel {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.quiz__panel legend {
  margin-bottom: var(--s-5);
  padding: 0;
}

.quiz__options {
  display: grid;
  gap: var(--s-3);
}

@media (min-width: 600px) {
  .quiz__options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quiz__option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-7);
  border: 1px solid var(--graphite-700);
  border-radius: var(--radius);
  background: var(--graphite-900);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 200ms, background-color 200ms;
}

.quiz__option input {
  position: absolute;
  left: var(--s-4);
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.quiz__option:hover {
  border-color: var(--steel-500);
}

.quiz__option:has(input:checked) {
  border-color: var(--brand);
  background: rgb(110 184 0 / 0.08);
}

.quiz__option:has(input:focus-visible) {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
}

.quiz__nav #quiz-proximo {
  margin-left: auto;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quiz__result {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
}

.quiz__result-unit {
  color: var(--steel-300);
}

.quiz__noscript a {
  color: var(--brand-light);
}

/* Como funciona */
.steps {
  display: grid;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps__item {
  position: relative;
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--graphite-800);
  border: 1px solid var(--graphite-700);
  border-radius: var(--radius);
}

.steps__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}

.steps__item p {
  color: var(--steel-300);
}

/* Seta entre passos (a partir do tablet) */
@media (min-width: 768px) {
  .steps__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--s-5) / -2 - 6px);
    z-index: 1;
    width: 12px;
    height: 12px;
    background: var(--brand);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }
}

/* Sobre */
.about {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

@media (min-width: 1024px) {
  .about {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
}

.about__media {
  position: relative;
  padding-bottom: var(--s-7);
}

.about__media > .media {
  --cut: 24px;
  margin: 0;
}

.about__inset {
  position: absolute;
  right: calc(var(--gutter) * -0.5);
  bottom: 0;
  width: 34%;
  margin: 0;
  --ratio: 3 / 4;
  border: 4px solid var(--paper);
  box-shadow: 0 10px 30px rgb(11 11 12 / 0.25);
}

@media (max-width: 479px) {
  .about__inset {
    right: 0;
    width: 40%;
  }
}

/* Unidades */
.unit-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
}

.unit-card__map {
  aspect-ratio: 4 / 3;
  border-top: 1px solid var(--graphite-700);
  background: var(--graphite-900);
}

.unit-card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.unit-card__desc {
  color: var(--steel-300);
}

.unit-card--delivery {
  justify-content: space-between;
  background:
    repeating-linear-gradient(-45deg, transparent 0 18px, rgb(110 184 0 / 0.05) 18px 36px),
    var(--graphite-800);
  border-style: dashed;
}

/* FAQ */
.faq-wrap {
  max-width: 56rem;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: var(--s-5) var(--s-7) var(--s-5) 0;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  translate: 0 -50%;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand-text);
  transition: rotate 200ms var(--ease-out);
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq summary:hover {
  color: var(--brand-text);
}

.faq details p {
  max-width: 68ch;
  padding-bottom: var(--s-5);
  color: var(--steel-500);
}

.faq details a {
  color: var(--brand-text);
  font-weight: 600;
}

/* CTA final */
.cta-band {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--brand);
  color: var(--ink);
  --cut: 28px;
}

@media (min-width: 1024px) {
  .cta-band {
    grid-template-columns: 1.4fr 1fr;
  }
}

.cta-band .eyebrow.cta-band__eyebrow {
  color: var(--ink);
}

.cta-band__text {
  max-width: 52ch;
  font-size: var(--fs-lead);
}

.cta-band__actions {
  display: grid;
  gap: var(--s-3);
}

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-bd: var(--ink);
}

.btn--dark:hover {
  --btn-bg: var(--graphite-800);
  --btn-bd: var(--graphite-800);
}

.btn--dark-outline {
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
}

.btn--dark-outline:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
}

.cta-band :focus-visible {
  outline-color: var(--ink);
}

/* Rodapé com 5 colunas */
@media (min-width: 1280px) {
  .site-footer__grid--5 {
    grid-template-columns: 1.3fr repeat(4, 1fr);
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .site-footer__grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer .pendente {
  color: var(--steel-300);
  font-style: italic;
}

/* 11c. Páginas internas (categorias) ----------------------------------------- */
.section--tight {
  padding-block: var(--s-8);
}

.page-hero {
  position: relative;
  padding-top: var(--s-6);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, var(--graphite-900), var(--ink));
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

/* Conteúdo sempre acima da faixa diagonal decorativa (::before) */
.page-hero > .container,
.hero > .container {
  position: relative;
}

.breadcrumb {
  position: relative;
  margin-bottom: var(--s-6);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-300);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--s-2);
  color: var(--graphite-700);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  text-decoration: none;
  color: var(--steel-300);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb [aria-current] {
  color: var(--brand-light);
}

.page-hero__grid {
  position: relative;
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

@media (min-width: 1024px) {
  .page-hero__grid {
    grid-template-columns: 1.3fr minmax(0, 400px);
    gap: var(--s-8);
  }
}

.page-hero__grid--solo .page-hero__text {
  max-width: 52rem;
}

.page-hero__text {
  display: grid;
  gap: var(--s-5);
}

.page-hero__title {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem);
}

.page-hero__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--graphite-800);
  --cut: 24px;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .page-hero__media {
    aspect-ratio: 3 / 4;
  }
}

/* Faixa "Não encontrou?" */
.help-band {
  display: grid;
  gap: var(--s-5);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--graphite-800);
  border-left: 4px solid var(--brand);
  --cut: 20px;
}

@media (min-width: 1024px) {
  .help-band {
    grid-template-columns: 1.5fr auto;
    gap: var(--s-7);
  }
}

.help-band__text {
  max-width: 60ch;
  color: var(--steel-300);
}

.help-band__actions {
  display: grid;
  gap: var(--s-2);
  justify-items: start;
}

/* Lista compacta de unidades */
.unit-list {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .unit-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .unit-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.unit-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--s-1) var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--graphite-700);
  border-radius: var(--radius);
  background: var(--graphite-800);
}

.unit-list .stripe {
  font-size: var(--fs-small);
}

.unit-list li > a:not(.link-arrow) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
}

.unit-list li > a:not(.link-arrow):hover {
  color: var(--brand-light);
}

.unit-list .link-arrow {
  grid-column: 2;
  justify-self: start;
}

/* Texto + cartão lateral (páginas de equipamento, cidade e catálogo) */
.split {
  display: grid;
  gap: var(--s-7);
  align-items: start;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1.5fr minmax(0, 380px);
    gap: var(--s-8);
  }
}

.prose p {
  max-width: 68ch;
  color: var(--steel-500);
}

.nota {
  padding-left: var(--s-4);
  border-left: 3px solid var(--brand);
  font-size: var(--fs-small);
}

.checklist-card {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6) var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
}

@media (min-width: 1024px) {
  .checklist-card {
    position: sticky;
    top: calc(var(--header-h) + var(--s-5));
  }
}

.checklist {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: var(--s-6);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--steel-500);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 18px;
  height: 18px;
  background: var(--brand);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.chips-label {
  margin-top: var(--s-6);
}

.page-404 {
  min-height: 60vh;
  padding-top: clamp(3rem, 2rem + 5vw, 6rem);
}

.page-404 .page-hero__text {
  max-width: 44rem;
}

/* Chips de categoria (reutilizáveis) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}

.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--graphite-700);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  color: var(--steel-300);
  transition: border-color 200ms, color 200ms;
}

.chips a:hover {
  border-color: var(--brand);
  color: var(--white);
}

.chips--light a {
  border-color: var(--line);
  color: var(--steel-500);
}

.chips--light a:hover {
  border-color: var(--brand-dark);
  color: var(--ink);
}

/* 12. Animação de entrada --------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Sem JS, nada fica escondido */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
