/* Mecânica Lopes Diesel — cores tiradas da logo + verde das placas do DNIT */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  --asfalto: #1d2433;     /* azul-marinho do escudo da logo */
  --asfalto-2: #283247;
  --amarelo: #f6d70f;     /* amarelo "LOPES" / faixa de rodovia */
  --amarelo-esc: #d9bb00;
  --vermelho: #d3202f;    /* vermelho "MECÂNICA / DIESEL" */
  --aco: #c5cad3;         /* cinza do caminhão da logo */
  --concreto: #eef0f3;
  --branco: #ffffff;
  --texto: #1d2433;
  --texto-suave: #4f586b;
  --placa: #006b3f;       /* verde placa de rodovia */
  --whats: #1fa855;
  --ok: #2fbf71;

  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --max: 1160px;
  --radius: 6px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--texto);
  background: var(--concreto);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--amarelo); color: var(--asfalto); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  font: 700 1.0625rem/1.1 var(--body);
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn--lg { min-height: 56px; font-size: 1.125rem; padding-inline: 24px; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 1rem; }
.btn--yellow { background: var(--amarelo); color: var(--asfalto); }
.btn--yellow:hover { background: #ffe229; }
.btn--whats { background: var(--whats); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(29,36,51,.35); }
.btn--ghost:hover { border-color: #fff; }
.btn--dark { background: var(--asfalto); color: #fff; }
.btn--dark:hover { background: var(--asfalto-2); }
.btn--outline { border-color: var(--asfalto); color: var(--asfalto); }
.btn--outline:hover { background: rgba(29,36,51,.06); }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(29,36,51,.96);
  color: #fff;
  border-bottom: 3px solid var(--amarelo);
}
@supports (backdrop-filter: blur(8px)) {
  .topbar { background: rgba(29,36,51,.86); backdrop-filter: blur(10px); }
}
.topbar__inner {
  max-width: var(--max); margin-inline: auto; padding: 8px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__logo { width: 52px; height: auto; }
.brand__name { font: 700 1.25rem/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.brand__name small { display: block; font: 500 .8125rem/1.3 var(--body); color: var(--aco); letter-spacing: 0; }
.nav { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; background: var(--asfalto);
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(29,36,51,.55) 0%, rgba(29,36,51,.78) 45%, rgba(29,36,51,.96) 100%);
}
.hero__inner {
  flex: 1; width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 20px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
}
.hero__logo { width: min(34vw, 150px); filter: drop-shadow(0 8px 24px rgba(0,0,0,.45)); }
.hero__copy { display: grid; gap: 14px; max-width: 40rem; }
.hero__title {
  font: 800 clamp(2.5rem, 11vw, 5rem)/0.92 var(--display);
  letter-spacing: -.005em; text-transform: none;
  text-wrap: balance;
}
.hero__lead { font-size: 1.0625rem; color: #dfe3ea; max-width: 34rem; }
.hero__actions { display: grid; gap: 10px; margin-top: 6px; }

/* Faixa de rodovia — o elemento-assinatura */
.lane {
  height: 14px; flex-shrink: 0;
  background:
    repeating-linear-gradient(90deg, var(--amarelo) 0 56px, transparent 56px 96px) center / 100% 6px no-repeat,
    var(--asfalto);
}

/* Status aberto/fechado */
.status {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font-weight: 600; font-size: .9375rem;
}
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--aco); }
.status.is-open .status__dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(47,191,113,.25); }
.status.is-closed .status__dot { background: var(--vermelho); box-shadow: 0 0 0 4px rgba(211,32,47,.22); }
.status--light { background: #fff; border-color: #d6dae1; color: var(--texto); }

/* ---------- Seções ---------- */
.section { padding: 64px 0; }
.h2 {
  font: 800 clamp(2rem, 8vw, 3.25rem)/1 var(--display);
  letter-spacing: -.005em; color: var(--asfalto);
  text-wrap: balance;
}
.lead { margin-top: 14px; color: var(--texto-suave); font-size: 1.125rem; max-width: 36rem; }

/* Serviços */
.services { background: var(--concreto); }
.services__grid { display: grid; gap: 36px; }
.services__photo { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--aco); }
.services__photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-list { border-top: 2px solid var(--asfalto); }
.svc {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid #cfd4dc;
}
.svc__icon { width: 44px; height: 44px; color: var(--vermelho); margin-top: 2px; }
.svc__name { font: 700 1.5rem/1.1 var(--display); color: var(--asfalto); margin-bottom: 4px; }
.svc p { color: var(--texto-suave); }

/* Galeria */
.gallery { background: var(--asfalto); padding: 20px 0; }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%;
  gap: 12px; padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { margin: 0; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--asfalto-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* Proprietário */
.owner { background: #fff; }
.owner__grid { display: grid; gap: 32px; }
.owner__photo { margin: 0; position: relative; max-width: 460px; }
.owner__photo img { border-radius: var(--radius); aspect-ratio: 680 / 690; object-fit: cover; object-position: center top; width: 100%; }
.owner__photo::after {
  content: ""; position: absolute; left: 14px; right: -14px; bottom: -14px; height: 14px;
  background: repeating-linear-gradient(90deg, var(--amarelo) 0 40px, var(--asfalto) 40px 64px);
  border-radius: 0 0 var(--radius) var(--radius);
}
.promise { margin-top: 24px; display: grid; gap: 14px; }
.promise li { padding-left: 22px; position: relative; color: var(--texto-suave); }
.promise li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--vermelho); }
.promise strong { color: var(--asfalto); }
.owner__sign { margin-top: 28px; font: 700 1.75rem/1 var(--display); color: var(--asfalto); }
.owner__sign span { display: block; margin-top: 4px; font: 500 .9375rem/1.3 var(--body); color: var(--texto-suave); }

/* Horário */
.hours { background: var(--concreto); }
.hours__grid { display: grid; gap: 28px; }
.hours .status { margin-top: 20px; }
.hours__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 #d6dae1; }
.hours__table th, .hours__table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid #e3e6eb; font-size: 1.0625rem; }
.hours__table th { font-weight: 600; }
.hours__table td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hours__table tr:last-child th, .hours__table tr:last-child td { border-bottom: 0; }
.hours__table .is-closed td { color: var(--vermelho); }
.hours__table .is-closed th { color: var(--texto-suave); }
.hours__table tr.is-today { background: var(--amarelo); }
.hours__table tr.is-today th, .hours__table tr.is-today td { color: var(--asfalto); font-weight: 700; }
.hours__table tr.is-today th::after { content: " (hoje)"; font-weight: 500; }

/* Localização */
.local { background: #fff; }
.local__grid { display: grid; gap: 28px; }
.sign {
  margin-top: 24px; background: var(--placa); color: #fff;
  border: 3px solid #fff; outline: 2px solid var(--placa);
  border-radius: 10px; padding: 18px 20px 20px; max-width: 420px;
  font-family: var(--display);
}
.sign__top { display: flex; align-items: center; justify-content: space-between; }
.sign__shield {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 64px; height: 70px; background: #fff; color: #111;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
  font: 800 1.5rem/0.9 var(--display); padding-bottom: 12px;
}
.sign__shield span { font-size: .8rem; font-weight: 700; }
.sign__arrow { width: 52px; height: 52px; color: #fff; }
.sign__place { margin-top: 14px; font: 700 2.5rem/1 var(--display); }
.sign__city { font: 600 1.375rem/1.2 var(--display); opacity: .9; }
.sign__dest { margin-top: 14px; padding-top: 12px; border-top: 2px solid rgba(255,255,255,.8); font: 700 1.375rem/1.1 var(--display); color: var(--amarelo); }
.address { margin-top: 22px; font-style: normal; font-size: 1.125rem; font-weight: 500; }
.local__actions { margin-top: 20px; display: grid; gap: 10px; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--aco); aspect-ratio: 4 / 3.4; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* CTA final */
.cta { background: var(--asfalto); color: #fff; padding: 56px 0; border-top: 6px solid var(--amarelo); }
.cta__inner { display: grid; gap: 24px; }
.cta__title { font: 800 clamp(2rem, 8.5vw, 3.5rem)/1 var(--display); text-wrap: balance; }
.cta__actions { display: grid; gap: 10px; }

/* Rodapé */
.footer { background: #151b27; color: #b8bfcc; padding: 40px 0 calc(32px + var(--bar-h) + env(safe-area-inset-bottom)); font-size: .9375rem; }
.footer__grid { display: grid; gap: 18px; }
.footer__logo { width: 96px; }
.footer__name { color: #fff; font: 700 1.375rem/1.1 var(--display); margin-bottom: 6px; }
.footer p + p { margin-top: 2px; }
.footer a { color: #fff; }
.footer__copy { font-size: .8125rem; color: #8a93a4; }

/* Barra de ação fixa (celular) */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; background: var(--asfalto);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px rgba(13,17,26,.25);
}
.actionbar__btn {
  flex: 1; min-height: var(--bar-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #fff; text-decoration: none; font-size: .8125rem; font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.actionbar__btn svg { width: 22px; height: 22px; }
.actionbar__btn--primary { background: var(--amarelo); color: var(--asfalto); font-weight: 700; flex: 1.35; }
.actionbar__btn[hidden] { display: none; }

[hidden] { display: none !important; }

/* ---------- Telas maiores ---------- */
@media (min-width: 560px) {
  .hero__actions, .cta__actions, .local__actions { grid-template-columns: repeat(auto-fit, minmax(220px, max-content)); }
  .gallery__track { grid-auto-columns: 46%; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  body { font-size: 1.125rem; }
  .footer { padding-bottom: 32px; }
  .actionbar { display: none; }
  .nav { display: flex; gap: 28px; margin-left: auto; }
  .nav a { text-decoration: none; font-weight: 600; color: #dfe3ea; padding: 8px 0; border-bottom: 2px solid transparent; }
  .nav a:hover { color: #fff; border-bottom-color: var(--amarelo); }
  .brand__logo { width: 60px; }

  .hero { min-height: min(86vh, 820px); }
  .hero__bg::after { background: linear-gradient(90deg, rgba(29,36,51,.95) 0%, rgba(29,36,51,.8) 45%, rgba(29,36,51,.35) 100%); }
  .hero__inner { flex-direction: row; align-items: center; justify-content: flex-start; gap: 56px; padding-block: 64px; }
  .hero__logo { width: 300px; order: 2; margin-left: auto; }
  .hero__copy { max-width: 46rem; }

  .section { padding: 104px 0; }
  .services__grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
  .services__intro { position: sticky; top: 104px; }
  .services__photo { aspect-ratio: 8 / 9; }
  .svc { grid-template-columns: 60px 1fr; padding: 24px 0; }
  .svc__icon { width: 48px; height: 48px; }

  .gallery { padding: 28px 0; }
  .gallery__track { grid-auto-columns: calc((100% - 3 * 12px - 2 * var(--gutter)) / 4); max-width: none; overflow: visible; }

  .owner__grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
  .hours__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .local__grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: stretch; }
  .map { aspect-ratio: auto; min-height: 480px; }
  .cta__inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
  .cta__actions { grid-template-columns: max-content; }
  .footer__grid { grid-template-columns: auto 1fr auto; align-items: end; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Home: botão de orçamento nos serviços ---------- */
.services__cta { margin-top: 24px; width: 100%; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--amarelo); }

/* ---------- Página de orçamento ---------- */
.quote { padding: 32px 0 56px; background: var(--concreto); }
.quote__grid { display: grid; gap: 28px; }
.quote__title { font: 800 clamp(2.5rem, 11vw, 4rem)/0.95 var(--display); color: var(--asfalto); }
.quote__intro .status { margin-top: 18px; }
.steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: 12px; }
.steps li { counter-increment: passo; position: relative; padding-left: 44px; color: var(--texto-suave); min-height: 32px; }
.steps li::before {
  content: counter(passo); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--asfalto); color: var(--amarelo); font: 800 1.125rem/1 var(--display); border-radius: 4px;
}
.steps strong { color: var(--asfalto); }
.quote__alt { margin-top: 20px; font-weight: 500; }
.quote__alt a { font-weight: 700; color: var(--asfalto); }

.form { background: #fff; border-radius: var(--radius); padding: 20px; display: grid; gap: 24px; box-shadow: 0 1px 0 #d6dae1; border-top: 4px solid var(--amarelo); }
.form__group { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.form__group legend { font: 700 1.5rem/1.1 var(--display); color: var(--asfalto); padding: 0; margin-bottom: 12px; }
.form__hint { color: var(--texto-suave); font-size: .9375rem; margin-top: -6px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 1rem; }
.opt { font-weight: 400; color: var(--texto-suave); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field textarea {
  width: 100%; font: 400 1.0625rem/1.4 var(--body); color: var(--texto);
  padding: 13px 14px; min-height: 50px;
  border: 2px solid #cfd4dc; border-radius: var(--radius); background: #fff;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--asfalto); box-shadow: 0 0 0 3px rgba(246,215,15,.6); }
.field [aria-invalid="true"] { border-color: var(--vermelho); }
.field__error { color: var(--vermelho); font-size: .9375rem; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input, .option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 2px solid #cfd4dc; border-radius: 999px; font-weight: 600; font-size: .9375rem; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.chip input:checked + span { background: var(--asfalto); border-color: var(--asfalto); color: #fff; }
.chip input:focus-visible + span, .option input:focus-visible + span { outline: 3px solid var(--amarelo); outline-offset: 2px; }

.options { display: grid; gap: 8px; }
.option span {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px;
  border: 2px solid #cfd4dc; border-radius: var(--radius); font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.option span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9aa2b1; flex-shrink: 0; }
.option input:checked + span { border-color: var(--asfalto); background: #f7f8fa; }
.option input:checked + span::before { border: 6px solid var(--asfalto); }

.form__submit { width: 100%; }
.form__note { margin-top: -12px; font-size: .875rem; color: var(--texto-suave); text-align: center; }

.result { scroll-margin-top: 88px; border: 2px solid var(--asfalto); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; outline: none; }
.result__title { font: 700 1.5rem/1.1 var(--display); color: var(--asfalto); }
.result p { color: var(--texto-suave); }
.result__msg { margin: 0; white-space: pre-wrap; font: 500 .9375rem/1.5 var(--body); background: var(--concreto); padding: 14px; border-radius: var(--radius); }
.result__actions { display: grid; gap: 10px; }

@media (min-width: 560px) {
  .form { padding: 28px; }
  .result__actions { grid-template-columns: repeat(2, max-content); }
}
@media (min-width: 960px) {
  .services__cta { width: auto; }
  .quote { padding: 72px 0 104px; }
  .quote__grid { grid-template-columns: 4fr 6fr; gap: 72px; align-items: start; }
  .quote__intro { position: sticky; top: 112px; }
  .form { padding: 36px; }
}
