/* Mecânica Mucho Zaneti. Mobile first: base styles target phones, breakpoints add up. */

@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/assets/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('/assets/fonts/barlow-condensed-800.woff2') format('woff2'); }

:root {
  --accent: #2C6EB5;
  --accent-dark: #1F5A99;
  --accent-light: #7FB2EC;
  --accent-soft: #E3ECF7;
  --ink: #1A1F27;
  --graphite: #0E1116;
  --night: #0B0E13;
  --body: #4A5462;
  --muted: #5A6472;
  --on-dark: #D5DBE3;
  --on-dark-muted: #A7B0BC;
  --line: #E3E7EC;
  --bg: #F3F5F8;
  --star: #F2A900;

  --sans: 'Barlow', system-ui, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --gutter: 16px;
  --section: 64px;
  --panel-x: 22px;
  --panel-y: 40px;
  --radius-lg: 18px;
  --radius: 14px;
  --header-h: 64px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-door: cubic-bezier(.76, 0, .24, 1);

  /* Chapa do portão: os frisos do portão azul que aparece nas fotos da oficina. */
  --slats: repeating-linear-gradient(180deg, #245f9f 0 11px, #2C6EB5 11px 13px, #1b4f88 13px 15px);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section: 88px; --panel-x: 40px; --panel-y: 56px; --radius-lg: 22px; }
}
@media (min-width: 1024px) {
  :root { --section: 104px; --panel-x: 56px; --panel-y: 64px; --header-h: 83px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--night); }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-tap-highlight-color: transparent; }
html.menu-open { overflow: hidden; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; border-radius: 4px; }

.sprite { position: absolute; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: #fff; color: var(--graphite); font-weight: 700; }
.skip:focus { top: 12px; }
.page { overflow-x: clip; }
.wrap { max-width: 1240px; margin: 0 auto; }
.section { padding: var(--section) var(--gutter) 0; }
.section--tight { padding-top: calc(var(--section) * .7); }
.section--hero { padding-top: var(--gutter); }
.accent-light { color: var(--accent-light); }

/* Ícones */
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--14 { width: 14px; height: 14px; }
.icon--18 { width: 18px; height: 18px; }
.icon--20 { width: 20px; height: 20px; }
.icon--22 { width: 22px; height: 22px; }
.icon--30 { width: 30px; height: 30px; }
.icon--bold { stroke-width: 2.4; }
.icon--heavy { stroke-width: 3; }
.icon--accent { color: var(--accent); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, transform .2s var(--ease-out), box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--white { align-self: flex-start; min-height: 48px; margin-top: auto; background: #fff; color: var(--graphite); }
.btn--lg { min-height: 50px; padding: 0 24px; }
.btn--xl { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; font-size: 16px; }
.btn__arrow { transition: transform .25s var(--ease-out); }

/* Rótulos e títulos */
.pill { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.pill--glass { background: rgba(255,255,255,.1); color: #fff; }
.title { margin-top: 16px; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 58px); line-height: 1; color: var(--graphite); text-wrap: balance; }
.title--light { color: #fff; }

/* Barra superior */
.topbar { background: var(--night); color: #C9D1DC; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1240px; margin: 0 auto; padding: 9px var(--gutter); }
.topbar__group { display: flex; gap: 28px; align-items: center; }
.topbar__item { display: flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; white-space: nowrap; }
a.topbar__item { padding-block: 12px; margin-block: -12px; }
.topbar__item .icon { width: 14px; height: 14px; color: var(--accent-light); }
.topbar__address { display: none; }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
.header.is-stuck { box-shadow: 0 6px 24px rgba(14,17,22,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; min-height: var(--header-h); margin: 0 auto; padding: 8px var(--gutter); }
.header__logo { display: block; flex: none; }
.header__logo img { width: auto; height: 44px; }
.header__cta { display: none; }

/* Hambúrguer: três barras viram um X */
.burger { display: none; position: relative; flex: none; width: 48px; height: 48px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; color: var(--graphite); cursor: pointer; }
.js .burger { display: block; }
.burger span { position: absolute; left: 12px; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease-out), opacity .15s ease; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 31px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menu: sem JS fica aberto em fila; com JS vira painel no celular */
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 600; font-size: 15px; }
.nav > a { color: var(--ink); text-decoration: none; }
.nav__ink, .nav__extra { display: none; }

@media (max-width: 1023.98px) {
  .js .nav {
    position: fixed; inset: var(--menu-top, 64px) 0 0 0; z-index: 49;
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0;
    padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: #fff; overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .2s ease, transform .3s var(--ease-out), visibility 0s linear .3s;
  }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .3s var(--ease-out); }
  .js .nav > a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--graphite); }
  .js .nav > a[aria-current="true"] { color: var(--accent); }
  .js .nav__extra { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
  .nav__extra .btn { width: 100%; }
  .nav__tel { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--graphite); text-decoration: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--graphite); isolation: isolate; }
.hero__media { position: absolute; inset: -12% 0 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,.55), rgba(14,17,22,.25) 70%); }
.hero__door { display: none; }
.hero__body { display: flex; flex-direction: column; gap: 28px; padding: 36px var(--panel-x) 24px; }
.hero__copy { color: #fff; }
.hero__pill { padding: 8px 14px; border: 1px solid rgba(255,255,255,.18); font-weight: 600; }
.hero__title { margin-top: 20px; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 7vw, 88px); line-height: .95; }
.w { display: inline-block; overflow: clip; padding: .12em .02em; margin: -.12em -.02em; vertical-align: top; }
.w > span { display: inline-block; }
.hero__lead { max-width: 540px; margin-top: 18px; font-size: 17px; line-height: 1.55; color: var(--on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 26px; }
.hero__actions .btn { width: 100%; }
.hero__call { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.hero__call-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--accent); transition: transform .25s var(--ease-out); }
.hero__call-text { display: flex; flex-direction: column; font-size: 15px; color: var(--on-dark); }
.hero__call-text strong { font-family: var(--display); font-size: 22px; color: #fff; }
.hero__aside { display: flex; flex-direction: column; gap: 14px; }
.hero__quote { padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(14,17,22,.72); }
.hero__quote p:first-child { font-size: 16px; line-height: 1.55; color: #E6EAF0; }
.hero__quote-by { margin-top: 10px; font-size: 13px; color: var(--on-dark-muted); }
.hero__rating { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius); background: #fff; }
.hero__score { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1; color: var(--graphite); }
.hero__rating-text { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); }
.hero__rating-text strong { font-size: 16px; color: var(--graphite); }
.stars { display: flex; gap: 3px; }
.star { width: 18px; height: 18px; fill: var(--star); }

/* Fotos: a chapa do portão cobre a imagem até entrar na tela (ver bloco de movimento) */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: #DDE2E8; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.photo--tall { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.photo--card { aspect-ratio: 16 / 10; border-radius: 12px; }
.photo--gallery { aspect-ratio: 16 / 10; }

/* Sobre */
.about { display: flex; flex-direction: column; gap: 36px; }
.about__copy, .about__media { min-width: 0; }
.about__lead { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--body); }
.about__points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 28px; margin-top: 24px; }
.about__points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.tick { display: flex; align-items: center; justify-content: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; }
.about__actions { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; margin-top: 30px; }
.owner { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: var(--radius); background: var(--graphite); color: #fff; }
.owner__badge { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); font-family: var(--display); font-weight: 800; font-size: 22px; }
.owner__text { display: flex; flex-direction: column; font-size: 14px; color: var(--on-dark-muted); }
.owner__text strong { font-family: var(--display); font-size: 22px; color: #fff; }
.about__media { position: relative; }
.about__badge { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: var(--radius); background: #fff; box-shadow: 0 18px 40px rgba(14,17,22,.18); }
.about__badge-num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.about__badge-text { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.1; color: var(--graphite); }

/* Pagamento */
.pay { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.pay__title { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--graphite); }
.pay__list { display: flex; flex-direction: column; gap: 12px 36px; font-weight: 600; font-size: 15px; color: var(--body); }
.pay__list span { display: flex; align-items: center; gap: 10px; }

/* Serviços: painel escuro com os cards subindo sobre ele */
.services__head { display: flex; flex-direction: column; gap: 22px; padding: var(--panel-y) var(--panel-x) 180px; border-radius: var(--radius-lg); background: var(--graphite); color: #fff; }
.services__side p { font-size: 17px; line-height: 1.6; color: #C9D1DC; }
.services__side .btn { margin-top: 20px; }
.services__grid { position: relative; display: grid; gap: 18px; margin: -148px 12px 0; }
.service { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 16px 40px rgba(14,17,22,.1); transition: transform .3s var(--ease-out), box-shadow .3s ease; }
.service:active { transform: scale(.985); }
.service__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service h3 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.05; }
.service__link { color: var(--graphite); text-decoration: none; }
.service__link::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 18px; }
.service__arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; transition: transform .3s var(--ease-out), background-color .2s ease; }
.service > p { font-size: 15px; line-height: 1.6; color: var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 12px 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; }

/* Números */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.stat { padding: 24px 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { display: flex; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.stat__label { margin-top: 8px; font-weight: 700; font-size: 14px; line-height: 1.2; color: var(--graphite); }
.stat__desc { display: none; margin-top: 6px; font-size: 15px; color: var(--muted); }

/* Odômetro */
.odo { display: inline-flex; line-height: 1; }
.odo__cell { display: block; height: 1em; }
.odo__col { overflow: hidden; }
.odo__stack { display: block; font-variant-numeric: tabular-nums; will-change: transform; }
.odo__stack > span { display: block; height: 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* CTA e formulário */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--graphite); isolation: isolate; }
.cta__media { position: absolute; inset: -8% 0; z-index: -1; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta__body { display: flex; flex-direction: column; gap: 28px; padding: var(--panel-y) var(--panel-x); }
.cta .title { margin-top: 0; }
.cta__copy p { max-width: 480px; margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.form { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius-lg); background: #fff; }
.form__title { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--graphite); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #CBD2DB; border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 400; font-size: 16px; /* 16px evita o zoom automático do iOS */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(44,110,181,.2); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field__error { display: none; font-weight: 600; font-size: 13px; color: #B3261E; }
.field__error:not(:empty) { display: block; }
.form__status { min-height: 0; font-size: 14px; color: var(--muted); text-align: center; }
.form__status:empty { display: none; }

/* Como funciona: trilho vertical no celular, horizontal no desktop */
.center-head { max-width: 680px; margin: 0 auto; text-align: center; }
.steps { position: relative; margin-top: 36px; padding-left: 30px; }
.steps__rail { position: absolute; left: 8px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: #D9DFE6; overflow: hidden; }
.steps__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; }
.steps__list { display: grid; gap: 18px; }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.step::before { content: ''; position: absolute; left: -28px; top: 44px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); transition: background-color .3s ease; }
.step__num { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 800; font-size: 26px; transition: background-color .3s ease, color .3s ease; }
.step h3 { margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.05; color: var(--graphite); }
.step p { font-size: 16px; line-height: 1.6; color: var(--body); }
.steps--live .step:not(.is-on)::before { background: #CBD2DB; }
.steps--live .step:not(.is-on) .step__num { background: var(--accent-soft); color: var(--accent-dark); }

/* Avaliações */
.reviews { padding: var(--panel-y) var(--panel-x); border-radius: var(--radius-lg); background: var(--graphite); color: #fff; }
.reviews__head { display: flex; flex-direction: column; gap: 16px; }
.reviews__all { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; font-weight: 700; font-size: 16px; color: var(--accent-light); }
.review { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid #262D38; border-radius: var(--radius-lg); background: #161B22; }
.review blockquote { font-size: 17px; line-height: 1.55; color: #E6EAF0; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__initial { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--accent); font-weight: 700; }
.review__by { display: flex; flex-direction: column; font-size: 14px; color: var(--on-dark-muted); }
.review__by strong { font-size: 16px; color: #fff; }

/* Carrossel com encaixe: no celular o próximo item aparece na borda */
@media (max-width: 767.98px) {
  .snap {
    display: flex; gap: 14px; margin-top: 28px; padding-bottom: 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .snap::-webkit-scrollbar { display: none; }
  .snap > * { flex: 0 0 86%; scroll-snap-align: start; }
  .reviews__grid { margin-inline: calc(var(--panel-x) * -1); padding-inline: var(--panel-x); scroll-padding-inline: var(--panel-x); }
  .gallery { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}

/* Galeria */
.gallery__head { display: flex; flex-direction: column; gap: 14px; }
.gallery__head > p { max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--body); }

/* Contato */
.contact { display: grid; gap: 16px; }
.contact__card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.contact__card h3 { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--graphite); }
.contact__card p { font-size: 16px; line-height: 1.6; color: var(--body); }
.contact__link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: auto; font-weight: 700; font-size: 15px; }
.contact__card--accent { border: 0; background: var(--accent); color: #fff; }
.contact__card--accent h3 { color: #fff; }
.contact__phone { display: flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 34px; color: #fff; text-decoration: none; }

/* Rodapé */
.footer { margin-top: var(--section); background: var(--night); color: var(--on-dark-muted); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-direction: column; gap: 28px; max-width: 1240px; margin: 0 auto; padding: 44px var(--gutter) 28px; }
.footer__brand img { width: auto; height: 52px; }
.footer__brand p { max-width: 380px; margin-top: 12px; font-size: 15px; line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; font-size: 15px; }
.footer__col > a, .footer__col > span:not(.footer__title) { display: flex; align-items: center; min-height: 44px; color: var(--on-dark-muted); text-decoration: none; }
.footer__col > a { transition: color .15s ease; }
.footer__title { margin-bottom: 6px; font-weight: 700; color: #fff; }
.footer__legal { border-top: 1px solid #1E242D; }
.footer__legal p { max-width: 1240px; margin: 0 auto; padding: 18px var(--gutter); font-size: 14px; }

/* Barra fixa do celular */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 10px; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(14,17,22,.08);
  transform: translateY(110%); visibility: hidden;
  transition: transform .35s var(--ease-out), visibility 0s linear .35s;
}
.mbar.is-visible { transform: none; visibility: visible; transition: transform .35s var(--ease-out); }
.mbar__main { flex: 1; min-height: 50px; }
.mbar__call { display: flex; align-items: center; justify-content: center; flex: 0 0 50px; height: 50px; border-radius: 50%; background: var(--graphite); color: #fff; }

/* Telas bem estreitas: rótulo e botão do hero em uma linha só */
@media (max-width: 359.98px) {
  .hero__pill { padding-inline: 12px; font-size: 11px; letter-spacing: 1px; white-space: nowrap; }
  .btn--xl { padding: 0 16px; font-size: 15px; }
}

/* Larguras maiores */
@media (min-width: 400px) {
  .hero__actions .btn { width: auto; }
  .about__points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .stat { padding: 32px 16px; }
  .stat__num { font-size: 60px; }
  .stat__label { font-size: 17px; }
  .stat__desc { display: block; }
  .pay__list { flex-direction: row; flex-wrap: wrap; }
  .contact { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .hero__aside { flex-direction: row; }
  .hero__aside > * { flex: 1 1 0; min-width: 0; }
}
@media (min-width: 768px) {
  .topbar { font-size: 14px; }
  .topbar__address { display: flex; }
  .header__inner { padding-block: 14px; }
  .header__logo img { height: 54px; }
  .header__cta { display: inline-flex; margin-left: auto; }
  .footer { padding-bottom: 0; }
  .footer__inner { flex-direction: row; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; padding-top: 56px; padding-bottom: 32px; }
  .footer__brand { flex: 1 1 300px; max-width: 380px; }
  .mbar { display: none; }
  .hero__body { padding-block: 64px 48px; }
  .hero__lead { font-size: 18px; line-height: 1.6; }
  .services__head { padding-bottom: 220px; }
  .services__grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: -180px 32px 0; }
  .service { padding: 24px; }
  .chips { margin: 28px 32px 0; }
  .chips li { font-size: 15px; padding: 12px 18px; }
  .reviews__head, .gallery__head { flex-direction: row; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; }
  .reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 44px; }
  .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
  .gallery .photo { aspect-ratio: auto; height: clamp(200px, 24vw, 300px); }
  .about__badge { padding: 20px 26px; gap: 14px; left: -12px; bottom: 28px; }
  .about__badge-num { font-size: 56px; }
  .about__badge-text { font-size: 20px; }
  .cta__copy p, .about__lead { line-height: 1.65; }
  .form { padding: 28px; }
}
@media (min-width: 900px) {
  .steps { margin-top: 48px; padding: 30px 0 0; }
  .steps__rail { left: 0; right: 0; top: 8px; bottom: auto; width: auto; height: 3px; }
  .steps__fill { transform-origin: left; }
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step { padding: 32px; }
  .step::before { left: 53px; top: -28px; }
}
@media (min-width: 1024px) {
  .topbar__inner { padding-block: 10px; }
  .header__cta { margin-left: 0; }
  .js .burger { display: none; }
  .nav { position: relative; flex-wrap: nowrap; gap: 26px; }
  .nav > a { padding: 8px 0; transition: color .15s ease; }
  .nav__ink { display: block; position: absolute; left: 0; bottom: 2px; width: var(--ink-w, 0); height: 2px; border-radius: 2px; background: var(--accent); transform: translateX(var(--ink-x, 0)); transition: transform .35s var(--ease-out), width .35s var(--ease-out), opacity .2s ease; }
  .hero { min-height: 560px; }
  .hero__media::after { background: linear-gradient(90deg, rgba(14,17,22,.72), rgba(14,17,22,.15) 62%); }
  .hero__body { flex-direction: row; gap: 40px; align-items: flex-end; justify-content: space-between; min-height: 560px; padding: 72px var(--panel-x) var(--panel-x); }
  .hero__copy { flex: 1 1 520px; max-width: 640px; }
  .hero__aside { flex: 0 1 320px; flex-direction: column; gap: 16px; --base: 750ms; }
  .hero__aside > * { flex: none; }
  .hero__quote, .hero__rating { padding: 22px; }
  .about { flex-direction: row; gap: 56px; align-items: center; }
  .about__copy { flex: 1 1 520px; }
  .about__media { flex: 1 1 440px; }
  .photo--tall { aspect-ratio: auto; height: 520px; }
  .pay { flex-direction: row; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; padding: 24px 32px; }
  .pay__list { font-size: 16px; }
  .services__head { flex-direction: row; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
  .services__intro { flex: 1 1 480px; }
  .services__side { flex: 1 1 340px; max-width: 440px; }
  .cta__body { flex-direction: row; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
  .cta__copy { flex: 1 1 440px; }
  .form { flex: 0 1 420px; }
  .contact { gap: 24px; }
  .contact__card { padding: 32px; }
}

/* Hover só onde existe ponteiro de verdade */
@media (hover: hover) {
  .btn--primary:hover { background: var(--accent-dark); color: #fff; }
  .btn--white:hover { background: #E9EDF2; color: var(--graphite); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .nav > a:hover { color: var(--accent); }
  .hero__call:hover .hero__call-icon { transform: scale(1.08) rotate(-8deg); }
  .service:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(14,17,22,.16); }
  .service:hover .service__arrow { transform: rotate(-45deg); background: var(--accent-dark); }
  .service:hover .photo img, .photo--gallery:hover img, .photo--tall:hover img { transform: scale(1.04); }
  .footer__col > a:hover { color: #fff; }
  .reviews__all:hover { color: #fff; }
  .contact__card a:not(.btn):hover { text-decoration: underline; }
}

/* Movimento: tudo aqui some para quem pede menos animação, e o conteúdo fica estático e visível */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes door-open { to { transform: translateY(-101%); } }
  @keyframes word-up { from { transform: translateY(112%); } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  @keyframes settle { from { transform: scale(1.1); } }
  @keyframes star-pop { from { opacity: 0; transform: scale(.3) rotate(-20deg); } }
  @keyframes num-pop { 40% { transform: scale(1.12); } }
  @keyframes drift { from { transform: translateY(0); } to { transform: translateY(10%); } }
  @keyframes drift-view { from { transform: translateY(-6%); } to { transform: translateY(6%); } }

  /* Portão de chapa sobe na abertura; o texto sobe junto, por cima dele */
  .js .hero__door {
    display: block; position: absolute; inset: 0; z-index: -1; background: var(--slats);
    animation: door-open 1.05s var(--ease-door) .15s forwards;
    will-change: transform;
  }
  .js .hero__door { border-bottom: 10px solid #123a66; }
  .js .w > span { animation: word-up .85s var(--ease-out) backwards; }
  .js .w:nth-child(1) > span { animation-delay: .38s; }
  .js .w:nth-child(2) > span { animation-delay: .44s; }
  .js .w:nth-child(3) > span { animation-delay: .5s; }
  .js .w:nth-child(4) > span { animation-delay: .56s; }
  .js .w:nth-child(5) > span { animation-delay: .62s; }
  .js .w:nth-child(6) > span { animation-delay: .68s; }
  .js .hero__pill { animation: fade-up .6s var(--ease-out) .3s backwards; }
  .js .hero__lead { animation: fade-up .7s var(--ease-out) .72s backwards; }
  .js .hero__actions { animation: fade-up .7s var(--ease-out) .82s backwards; }

  /* Entrada ao rolar: usa animação com "backwards" para não disputar o transform do hover */
  .js [data-reveal]:not(.is-in) { opacity: 0; }
  .js [data-reveal].is-in { animation: rise .75s var(--ease-out) backwards; animation-delay: calc(var(--base, 0ms) + var(--i, 0) * 70ms); }

  /* Fotos: o portão sobe por cima da imagem. Usa só transform, e a foto continua
     carregando normalmente por baixo (clip-path na imagem atrapalhava o lazy load). */
  .js [data-door]::after { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--slats); border-bottom: 8px solid #123a66; }
  .js [data-door].is-in::after { animation: door-open .95s var(--ease-door) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
  .js [data-door].is-in img { animation: settle 1.3s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms); }

  /* No celular os itens ficam empilhados: sem atraso em sequência */
  @media (max-width: 767.98px) {
    .js [data-reveal], .js [data-door] { --i: 0 !important; }
  }

  /* Odômetro: cada casa roda até o valor, a última por mais tempo */
  .js .odo__stack { transition: transform 1.25s var(--ease-out); transition-delay: calc(var(--base, 0ms) + 150ms); transition-duration: calc(1.05s + var(--c, 0) * .3s); }
  .js .is-rolled .odo__stack { transform: translateY(calc(var(--to, 0) * -1em)); }

  .js .is-in .star { animation: star-pop .45s var(--ease-out) backwards; animation-delay: calc(var(--base, 0ms) + 200ms); }
  .js .is-in .star:nth-child(2) { animation-delay: calc(var(--base, 0ms) + 260ms); }
  .js .is-in .star:nth-child(3) { animation-delay: calc(var(--base, 0ms) + 320ms); }
  .js .is-in .star:nth-child(4) { animation-delay: calc(var(--base, 0ms) + 380ms); }
  .js .is-in .star:nth-child(5) { animation-delay: calc(var(--base, 0ms) + 440ms); }

  .step.is-on .step__num { animation: num-pop .45s var(--ease-out); }

  /* Menu do celular: links entram em sequência */
  @media (max-width: 1023.98px) {
    .js .nav.is-open > a, .js .nav.is-open .nav__extra { animation: rise .5s var(--ease-out) backwards; }
    .js .nav.is-open > a:nth-child(2) { animation-delay: 40ms; }
    .js .nav.is-open > a:nth-child(3) { animation-delay: 80ms; }
    .js .nav.is-open > a:nth-child(4) { animation-delay: 120ms; }
    .js .nav.is-open > a:nth-child(5) { animation-delay: 160ms; }
    .js .nav.is-open > a:nth-child(6) { animation-delay: 200ms; }
    .js .nav.is-open .nav__extra { animation-delay: 260ms; }
  }

  /* Parallax leve, rodando no compositor onde o navegador suporta */
  @supports (animation-timeline: scroll()) {
    .hero__media { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .cta__media { animation: drift-view linear both; animation-timeline: view(); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .odo__stack { transform: translateY(calc(var(--to, 0) * -1em)); }
}
