/* Garagem Off Road · estilos da página.
   O engine (scrollcraft.css/js) não é editado: aqui só tokens e marcação própria. */

:root {
  /* Chão: os dois tons do logo. Lama = fundo escuro; papel = o branco do site atual. */
  --sc-canvas:     #131313;
  --sc-surface:    #1c1c1b;
  --sc-ink:        #f1f0ee;
  --sc-ink-soft:   #aaa6a1;
  /* Terra: a cor do chão do slogan. Só botão de WhatsApp, seleção e foco. */
  --sc-accent:     #cf6a3f;
  --sc-accent-ink: #131313;
  --sc-font-display: "Saira", system-ui, sans-serif;
  --sc-font-text:    "Saira", system-ui, sans-serif;
  --sc-font-mono:    "Saira", system-ui, sans-serif;

  --paper:      #f4f4f2;
  --paper-ink:  #131313;
  --paper-soft: #55524f;
  --logo-top:   color-mix(in oklab, var(--sc-ink) 78%, var(--sc-canvas)); /* o cinza de cima, em negativo */

  /* Altura do relevo da borda de lama (o contorno do topo das letras do logo). */
  --relief: clamp(26px, 4.6vw, 76px);
  --radius: 3px;
}

body { font-stretch: 100%; font-weight: 400; }
.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;
}

/* ------------------------------------------------------------ tipografia -- */
/* O "off road" do logo: estreito, itálico, cantos quadrados arredondados. */
.d {
  font-family: var(--sc-font-display);
  font-style: italic;
  font-stretch: 62%;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.004em;
  text-wrap: balance;
  margin: 0;
}
.d--xl { font-size: clamp(3.4rem, 1rem + 8.6vw, 9rem); }
.d--lg { font-size: clamp(2.7rem, 1.3rem + 5vw, 6.2rem); }
.d--md { font-size: clamp(2rem, 1.2rem + 2.7vw, 3.6rem); line-height: 0.96; }
.d--sm { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.1rem); line-height: 1; }

.label {
  font-size: var(--sc-t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-stretch: 100%;
}
.lede { font-size: var(--sc-t-lg); line-height: 1.42; max-width: 38ch; text-wrap: pretty; margin: 0; }

/* -------------------------------------------------------------- botões -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.6rem;
  border-radius: var(--radius);
  font-weight: 650; font-stretch: 100%; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--terra { background: var(--sc-accent); color: var(--sc-accent-ink); }
.btn--line { box-shadow: inset 0 0 0 1.5px currentColor; color: inherit; }
@media (hover: hover) and (pointer: fine) {
  .btn--terra:hover { background: color-mix(in oklab, var(--sc-accent) 88%, white); }
  .btn--line:hover { background: color-mix(in oklab, currentColor 8%, transparent); }
}

/* A borda da lama: contorno real do topo das letras do logo, 45 pontos.
   --line é a altura da linha; cada ponto desce até 1 × --relief. */
.terrain {
  clip-path: polygon(
    0% calc(var(--line) + 0.32 * var(--relief)),
    2.27% calc(var(--line) + 0.27 * var(--relief)),
    4.55% calc(var(--line) + 0.25 * var(--relief)),
    6.82% calc(var(--line) + 0.178 * var(--relief)),
    9.09% calc(var(--line) + 0.199 * var(--relief)),
    11.36% calc(var(--line) + 0.218 * var(--relief)),
    13.64% calc(var(--line) + 0.194 * var(--relief)),
    15.91% calc(var(--line) + 0.222 * var(--relief)),
    18.18% calc(var(--line) + 0.126 * var(--relief)),
    20.45% calc(var(--line) + 0.048 * var(--relief)),
    22.73% calc(var(--line) + 0.049 * var(--relief)),
    25% calc(var(--line) + 0.055 * var(--relief)),
    27.27% calc(var(--line) + 0.004 * var(--relief)),
    29.55% calc(var(--line) + 0.003 * var(--relief)),
    31.82% calc(var(--line) + 0.003 * var(--relief)),
    34.09% calc(var(--line) + 0 * var(--relief)),
    36.36% calc(var(--line) + 0 * var(--relief)),
    38.64% calc(var(--line) + 0.103 * var(--relief)),
    40.91% calc(var(--line) + 0 * var(--relief)),
    43.18% calc(var(--line) + 0 * var(--relief)),
    45.45% calc(var(--line) + 0.134 * var(--relief)),
    47.73% calc(var(--line) + 0.201 * var(--relief)),
    50% calc(var(--line) + 0.147 * var(--relief)),
    52.27% calc(var(--line) + 0.148 * var(--relief)),
    54.55% calc(var(--line) + 0.236 * var(--relief)),
    56.82% calc(var(--line) + 0.201 * var(--relief)),
    59.09% calc(var(--line) + 0.181 * var(--relief)),
    61.36% calc(var(--line) + 0.209 * var(--relief)),
    63.64% calc(var(--line) + 0.218 * var(--relief)),
    65.91% calc(var(--line) + 0.171 * var(--relief)),
    68.18% calc(var(--line) + 0.366 * var(--relief)),
    70.45% calc(var(--line) + 0.165 * var(--relief)),
    72.73% calc(var(--line) + 0.161 * var(--relief)),
    75% calc(var(--line) + 0.129 * var(--relief)),
    77.27% calc(var(--line) + 0.171 * var(--relief)),
    79.55% calc(var(--line) + 0.17 * var(--relief)),
    81.82% calc(var(--line) + 0.216 * var(--relief)),
    84.09% calc(var(--line) + 0.104 * var(--relief)),
    86.36% calc(var(--line) + 0.161 * var(--relief)),
    88.64% calc(var(--line) + 0.171 * var(--relief)),
    90.91% calc(var(--line) + 0.09 * var(--relief)),
    93.18% calc(var(--line) + 0.076 * var(--relief)),
    95.45% calc(var(--line) + 0.097 * var(--relief)),
    97.73% calc(var(--line) + 0.13 * var(--relief)),
    100% calc(var(--line) + 0.227 * var(--relief)),
    100% 100%, 0% 100%
  );
}

/* ================================================================ HERO ==
   Duas camadas idênticas. Papel embaixo (logo preto), lama por cima (logo
   negativo). A lama sobe com --sc-p. No meio do caminho, cada letra fica metade
   papel e metade lama, que é o próprio desenho do logo. */
.hero { background: var(--paper); }
.wade { background: var(--paper); }
.wade__layer {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3.2vh, 40px) var(--sc-gutter) clamp(28px, 7vh, 72px);
}
.wade__layer--paper { background: var(--paper); color: var(--paper-ink); }
.wade__layer--mud {
  background: var(--sc-canvas); color: var(--sc-ink);
  pointer-events: none;
  --wade: clamp(0, (var(--sc-p, 0) - 0.04) / 0.86, 1);
  --line: calc((1 - var(--wade)) * (100% + var(--relief)) - var(--relief));
}
.hero__top { display: flex; justify-content: space-between; gap: 1rem; }
.wade__layer--paper .hero__top { color: var(--paper-soft); }
.wade__layer--mud .hero__top { color: var(--sc-ink-soft); }

.hero__lockup { align-self: center; justify-self: center; width: min(100%, 78rem); }
.hero__logo { margin: 0; }
.hero__logo img { width: 100%; height: auto; }
.hero__tagline {
  margin: clamp(10px, 2.2vh, 28px) 0 0;
  text-align: right;
  font-size: clamp(1.6rem, 0.9rem + 2.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.06em; /* o slogan da capa é espacejado */
}
.hero__bottom { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.hero__sub { max-width: 34ch; }
.wade__layer--paper .hero__sub { color: var(--paper-soft); }
.wade__layer--mud .hero__sub { color: var(--sc-ink-soft); }
.hero__cta-slot { width: 15rem; height: 52px; flex: none; }

.wade__ui {
  position: absolute; z-index: 4;
  right: var(--sc-gutter); bottom: clamp(28px, 7vh, 72px);
}

/* =========================================================== CHROME == */
.mark {
  position: fixed; z-index: var(--sc-z-chrome);
  top: 18px; left: var(--sc-gutter);
  width: clamp(92px, 9vw, 128px);
  mix-blend-mode: difference;           /* preto no papel, branco na lama */
  opacity: 0; translate: 0 -6px; pointer-events: none;
  transition: opacity 240ms var(--sc-ease-out), translate 240ms var(--sc-ease-out);
}
.mark img { width: 100%; height: auto; }
.wa {
  position: fixed; z-index: var(--sc-z-chrome);
  display: flex; align-items: baseline; gap: 0.75em;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  text-decoration: none; font-weight: 650; font-stretch: 100%;
  border-radius: var(--radius);
}
.wa__num { font-weight: 500; font-variant-numeric: tabular-nums; }
.is-past-hero .mark { opacity: 1; translate: 0 0; pointer-events: auto; }

@media (min-width: 861px) {
  .wa {
    top: 16px; right: var(--sc-gutter);
    padding: 0.7rem 1.1rem;
    opacity: 0; translate: 0 -6px; pointer-events: none;
    transition: opacity 240ms var(--sc-ease-out), translate 240ms var(--sc-ease-out);
  }
  .is-past-hero .wa { opacity: 1; translate: 0 0; pointer-events: auto; }
}
@media (max-width: 860px) {
  .wa {
    left: 0; right: 0; bottom: 0;
    justify-content: space-between;
    padding: 1rem var(--sc-gutter) calc(1rem + env(safe-area-inset-bottom));
    border-radius: 0;
  }
  .wade__ui { display: none; } /* no celular, a barra fixa já é o botão */
  .hero__cta-slot { display: none; }
  .mark { display: none; }       /* sem função no celular: a barra fixa já identifica e leva ao contato */
}

/* ========================================================= SERVIÇOS == */
.services { padding-block: var(--sc-section); }
.services__grid {
  display: grid; gap: var(--sc-7) var(--sc-6);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.services__title { grid-column: 1 / span 5; align-self: start; position: sticky; top: 14vh; max-width: 9em; }
.ledger { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem;
  padding-block: clamp(1.3rem, 2.6vw, 2rem);
  border-top: 1px solid var(--sc-hairline-strong);
}
.ledger li:last-child { border-bottom: 1px solid var(--sc-hairline-strong); }
.ledger h3 { color: var(--sc-ink); }
.ledger p { margin: 0; color: var(--sc-ink-soft); max-width: 46ch; }

/* ========================================================= PROJETOS == */
.builds__stage { display: flex; align-items: center; background: var(--sc-canvas); }
.rail {
  gap: clamp(20px, 3.4vw, 56px);
  padding-inline: var(--sc-gutter);
  align-items: flex-end;
}
.rail > * { flex: none; }
.rail__lead { width: min(26rem, 78vw); align-self: center; }
.rail__lead p { margin: var(--sc-5) 0 0; color: var(--sc-ink-soft); max-width: 30ch; }
.build { width: clamp(260px, 29vw, 430px); margin: 0; }
.build__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sc-surface); }
.build__photo img { width: 100%; height: 100%; object-fit: cover; }
.spec {
  display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 0.35rem 1rem;
  margin: 1rem 0 0; padding-top: 0.9rem;
  border-top: 1px solid var(--sc-hairline-strong);
  font-variant-numeric: tabular-nums;
}
.spec dt { color: var(--sc-ink-soft); padding-top: 0.2em; }
.spec dd { margin: 0; }
.spec .spec__car { font-family: var(--sc-font-display); font-style: italic; font-stretch: 62%; font-weight: 700; font-size: var(--sc-t-xl); line-height: 1; }
.build--next .build__photo {
  display: grid; place-items: center;
  background: var(--sc-surface);
  box-shadow: inset 0 0 0 1px var(--sc-hairline-strong);
}
.build--next .build__photo span { color: var(--sc-ink-soft); text-align: center; padding: 2rem; max-width: 18ch; }
.spec a { color: var(--sc-accent); font-weight: 600; }


/* ============================================================== PICO == */
.peak__stage { background: var(--sc-canvas); }
.peak__breath {
  position: absolute; z-index: 3;
  left: calc(var(--sc-gutter) + clamp(0px, 14vw, 18rem)); top: 44%;
  max-width: 14em; color: var(--sc-ink-soft);
}
.peak__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 66%;
  margin: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%), linear-gradient(to bottom, transparent 4%, #000 46%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0%, #000 42%), linear-gradient(to bottom, transparent 4%, #000 46%);
          mask-composite: intersect;
}
.peak__photo img { width: 100%; height: 112%; object-fit: cover; object-position: 60% 50%; }
/* Texto em cima, "Tri." embaixo, na mesma coluna. O "Tri." fica com o espaço que
   sobra e calcula o próprio tamanho pela altura desse espaço (100cqh), então numa
   tela baixa ele encolhe em vez de invadir o texto. */
.peak__content {
  position: absolute; z-index: 3;
  left: var(--sc-gutter); top: clamp(84px, 14vh, 150px); bottom: clamp(28px, 6vh, 64px);
  width: min(36rem, 38vw);
  display: flex; flex-direction: column; gap: var(--sc-6);
}
.peak__copy { flex: none; max-width: 27rem; }
.peak__copy p { margin: var(--sc-4) 0 0; color: var(--sc-ink-soft); max-width: 34ch; }
.peak__copy .peak__more { margin-top: var(--sc-6); font-size: var(--sc-t-sm); }
.peak__tri {
  flex: 1 1 0; min-height: 0;
  container-type: size;
  display: flex; align-items: flex-end;
}
/* "Tri." em dois tons, como as letras do logo: cinza em cima, branco embaixo.
   Medido na Saira 800 itálica a 62%, line-height 1: a tinta começa 0.105em abaixo
   do topo da caixa e termina 0.152em acima do fundo (altura de tinta 0.7425em).
   As margens negativas fazem a caixa ter exatamente a altura da tinta, em em,
   então o encaixe vale em qualquer tamanho de tela. */
.tri {
  --ink: 0.7425;
  position: relative; display: block;
  margin: -0.105em 0 -0.152em -0.05em;
  font-size: min(calc(100cqh / var(--ink)), 2rem + 28vw, 32rem);
  font-family: var(--sc-font-display); font-style: italic; font-stretch: 62%; font-weight: 800;
  line-height: 1; letter-spacing: -0.01em;
}
.tri__base { color: var(--sc-ink); }
.tri__top { position: absolute; inset: 0; color: var(--logo-top); clip-path: inset(0 0 50% 0); }

/* ========================================================= AVALIAÇÕES == */
.reviews { padding-block: var(--sc-section); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.reviews__head a { color: var(--sc-ink-soft); }
.sample {
  display: inline-block; margin-top: var(--sc-4);
  padding: 0.35rem 0.6rem;
  border: 1px dashed var(--sc-accent); color: var(--sc-accent);
  font-size: var(--sc-t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.reviews__list {
  display: grid; gap: var(--sc-8) var(--sc-7);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: var(--sc-8);
}
.review { margin: 0; }
.review--lead { grid-column: 1 / span 7; grid-row: span 2; }
.review:not(.review--lead) { grid-column: 9 / -1; }
.review blockquote { margin: var(--sc-3) 0 0; }
.review blockquote p { margin: 0; text-wrap: pretty; }
.review--lead blockquote p { font-size: var(--sc-t-xl); line-height: 1.3; letter-spacing: -0.01em; }
.review figcaption { margin-top: var(--sc-4); color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.stars { display: flex; gap: 3px; color: var(--sc-ink); }
.stars svg { width: 15px; height: 15px; }

/* ============================================================ CONTATO == */
.close {
  --line: 0px;
  background: var(--paper); color: var(--paper-ink);
  padding-top: calc(var(--sc-section) + var(--relief));
}
.close :focus-visible { outline-color: var(--paper-ink); }
.close__grid { display: grid; gap: var(--sc-7) var(--sc-6); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.close__call { grid-column: 1 / -1; }
.close__call .label { color: var(--paper-soft); }
.close__phone {
  display: inline-block; margin-top: var(--sc-3);
  font-size: clamp(3.2rem, 0.6rem + 11vw, 11.5rem);
  text-decoration: none; color: var(--paper-ink);
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
  .close__phone { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 0.05em; text-underline-offset: 0.12em; transition: text-decoration-color 160ms var(--sc-ease-out); }
  .close__phone:hover { text-decoration-color: var(--sc-accent); }
}
.close__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--sc-6); }
.info { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sc-6); margin: 0; padding-top: var(--sc-6); border-top: 1px solid color-mix(in oklab, var(--paper-ink) 16%, transparent); }
.info dt { color: var(--paper-soft); margin-bottom: var(--sc-3); }
.info dd { margin: 0; }
.info dd + dd { margin-top: var(--sc-3); }
.info a { color: var(--paper-ink); }
.info .links { display: flex; gap: 1.2rem; }

.foot { margin-top: var(--sc-10); padding-bottom: var(--sc-7); }
.foot__logo { width: min(100%, 78rem); height: auto; margin-inline: auto; }
.foot__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: var(--sc-4); width: min(100%, 78rem); margin-inline: auto; }
.foot__row small { color: var(--paper-soft); font-size: var(--sc-t-xs); }
.foot__row .d { font-size: clamp(1.2rem, 0.8rem + 1.4vw, 2rem); font-weight: 600; letter-spacing: 0.06em; }
.foot__credits { width: min(100%, 78rem); margin: var(--sc-4) auto 0; font-size: var(--sc-t-xs); color: var(--paper-soft); }
.foot__credits a { color: inherit; }

/* =========================================================== CELULAR == */
@media (max-width: 860px) {
  /* A barra fixa do WhatsApp ocupa ~60px embaixo: nada importante pode ficar ali. */
  :root { --bar: calc(60px + env(safe-area-inset-bottom)); }
  .wade__layer { padding-bottom: calc(var(--bar) + 20px); }
  .close { padding-bottom: var(--bar); }
  /* Grades de 12 colunas com o espaçamento do desktop estouram a largura. */
  .services__grid, .reviews__list, .close__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__bottom { display: block; }
  .hero__tagline { text-align: left; }
  .hero__top .hero__where { display: none; }
  .services__title { grid-column: 1 / -1; position: static; }
  .ledger { grid-column: 1 / -1; }
  /* No celular o palco vira grade: foto na linha de cima (fica com o que sobra),
     "Tri." + texto na de baixo. Por construção, nada se sobrepõe. */
  .peak__stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  .peak__photo {
    position: relative; inset: auto; width: auto; height: 100%; grid-row: 1;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 66%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 66%, transparent 100%);
  }
  .peak__breath { left: var(--sc-gutter); right: var(--sc-gutter); top: 40%; }
  .peak__content {
    position: relative; inset: auto; width: auto; grid-row: 2;
    padding: var(--sc-4) var(--sc-gutter) calc(var(--bar) + 16px);
    gap: var(--sc-5);
  }
  .peak__copy { max-width: none; }
  .peak__tri { order: -1; flex: none; container-type: normal; display: block; }
  .tri { font-size: min(37vw, 24vh); }
  .review--lead, .review:not(.review--lead) { grid-column: 1 / -1; grid-row: auto; }
  .info { grid-template-columns: minmax(0, 1fr); }
  .foot__row { flex-direction: column; }
}

/* =================================================== MOVIMENTO REDUZIDO == */
@media (prefers-reduced-motion: reduce) {
  .wade__layer--mud { display: none; }
  .mark, .wa { transition: none; }
}
