/* =====================================================================
   Carbon Performance — sistema visual
   Medidas e proporções seguindo a referência (tema charcoal, cards
   arredondados sem borda, botão com ícone quadrado), com o vermelho Carbon.
   ===================================================================== */

:root {
  /* charcoal */
  --bg: #171718;          /* 950 */
  --surface: #232324;     /* 900 */
  --surface-2: #2c2c2e;   /* 800 */
  --surface-3: #3c3c3e;   /* 700 */
  --line: #2f2f31;
  --heading: #f5f5f6;     /* 50 */
  --text: #e6e6e7;        /* 100 */
  --body: #cfcfd1;        /* 200 */
  --muted: #9d9da1;       /* 300 */
  --faint: #6c6c70;
  /* vermelho Carbon */
  --red: #e3121b;
  --red-hover: #f42a32;
  --red-deep: #a90d14;
  --red-soft: rgba(227, 18, 27, .14);
  --green: #3fbf6a;

  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --container: 1280px;
  --gutter: 80px;
  --header-h: 104px;
  --bar-h: 0px;
}
@media (max-width: 1100px) { :root { --gutter: 40px; } }
@media (max-width: 768px)  { :root { --gutter: 24px; --header-h: 80px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font-body); font-weight: 500; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p a { color: var(--heading); text-decoration: underline; text-underline-offset: 3px; }
p a:hover { color: #fff; text-decoration-color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--heading); line-height: 1.3; margin: 0; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; color: var(--heading); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
main { display: block; }
.section { padding: 96px 0; }
.section + .section { padding-top: 0; }
@media (max-width: 1024px) { .section { padding: 64px 0; } }
@media (max-width: 768px)  { .section { padding: 48px 0; } }

/* ---------- Botão: rótulo + quadrado vermelho com seta ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 56px; padding: 0 8px 0 24px;
  background: linear-gradient(to right, #3c3c3e 0%, #2c2c2e 100%);
  color: var(--heading); border: 0; border-radius: var(--r-lg);
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.5;
  cursor: pointer; white-space: nowrap; transition: filter .2s;
}
.btn:hover { filter: brightness(1.15); }
.btn .ico {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--red); color: #fff; transition: background .2s;
}
.btn:hover .ico { background: var(--red-hover); }
.btn .ico svg { width: 14px; height: 14px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red .ico { background: rgba(0,0,0,.2); }
.btn-red:hover .ico { background: rgba(0,0,0,.28); }
.btn-sm { height: 48px; gap: 18px; font-size: 15px; padding-left: 20px; }
.btn-sm .ico { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--r-md); background: var(--surface-2); border: 0; cursor: pointer; color: var(--heading);
  transition: background .2s;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Faixa de anúncio ---------- */
@keyframes cp-marquee { to { transform: translateX(-100%); } }

/* ---------- Header (sobre o hero) ---------- */
.site-header { position: relative; z-index: 50; height: 104px; }
.has-photo-hero .site-header { position: absolute; left: 0; right: 0; top: 0; height: var(--header-h); }
@media (max-width: 768px) { .site-header { height: 80px; } }
body.nav-open .site-header { position: fixed; top: 0; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; max-width: none; padding: 0 40px; }
.brand { flex: none; }
.brand-logo { position: relative; display: block; height: 66px; aspect-ratio: 760 / 302; }
.brand img { display: block; width: auto; height: 100%; }
.main-nav { flex: 1; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 6px; height: 56px;
  font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 14px; color: var(--body);
  transition: color .2s;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a, .main-nav > ul > li.open > a { color: var(--heading); }
.main-nav > ul > li.active > a { box-shadow: inset 0 -2px 0 var(--red); }
.sub-toggle { display: none; }
.sub-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -12px; min-width: 240px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 24px 48px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.main-nav li.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; color: var(--body); }
.sub-menu a:hover, .sub-menu a.current { background: var(--surface-2); color: var(--heading); }
.header-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.header-search { display: grid; place-items: center; width: 40px; height: 40px; color: var(--body); border-radius: var(--r-md); }
.header-search:hover { color: var(--heading); background: rgba(255,255,255,.06); }
.header-search svg { width: 20px; height: 20px; }
.header-loc { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); }
.header-loc:hover { color: var(--heading); }
.header-loc svg { width: 18px; height: 18px; }
.header-loc .chev { width: 10px; height: 10px; opacity: .8; }
.nav-burger { display: none; }
.drawer-extra { display: none; }
@media (min-width: 1181px) { .main-nav .nav-only-drawer { display: none; } }
@media (max-width: 1180px) {
  .header-inner { padding: 0 var(--gutter); gap: 16px; }
  .brand-logo { height: 58px; }
  .nav-burger { display: inline-grid; }
  .header-loc, .header-search { display: none; }
  .main-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
    padding: calc(var(--header-h) + 8px) var(--gutter) 40px;
    background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { opacity: 1; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav > ul > li > a { flex: 1; height: auto; padding: 18px 0; font-size: 20px; line-height: 1.3; }
  .main-nav > ul > li.active > a { box-shadow: none; color: var(--red); }
  .sub-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--surface-2); border-radius: var(--r-md); cursor: pointer; color: var(--heading); }
  .sub-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
  li.open > .sub-toggle svg { transform: rotate(180deg); }
  .sub-menu { position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 14px; }
  .main-nav li.open > .sub-menu { display: block; }
  .sub-menu a { padding: 10px 0; font-size: 16px; }
  .drawer-extra { display: block; padding-top: 28px; color: var(--muted); font-size: 15px; }
  .drawer-extra a { display: block; padding: 6px 0; color: var(--heading); }
}
@media (max-width: 480px) { .header-actions .btn { display: none; } }

/* ---------- Hero da home (foto em tela cheia) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100svh; min-height: 720px; max-height: 1000px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) 0 112px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(23,23,24,.55) 0%, rgba(23,23,24,.18) 50%, rgba(23,23,24,0) 100%),
    linear-gradient(180deg, rgba(23,23,24,.45) 0%, rgba(23,23,24,0) 18%, rgba(23,23,24,0) 60%, rgba(23,23,24,.75) 100%);
}
.hero h1 { max-width: 600px; font-size: 64px; line-height: 1.2; text-transform: uppercase; }
.hero-lead { max-width: 600px; margin: 24px 0 48px; font-size: 18px; line-height: 1.6; color: var(--text); }
@media (max-width: 1024px) { .hero { height: auto; min-height: 760px; max-height: none; } .hero h1 { font-size: 52px; } }
@media (max-width: 768px)  { .hero { height: auto; min-height: 0; padding-bottom: 40px; } .hero h1 { font-size: 36px; } .hero-lead { font-size: 16px; margin-bottom: 28px; } }

/* ---------- Buscador de veículo ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.finder-row > * { min-width: 0; }
.finder-search {
  position: relative; display: flex; align-items: center; gap: 16px;
  height: 88px; padding: 0 16px 0 28px; border-radius: var(--r-xl);
  background: rgba(44,44,46,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.finder-search > svg { width: 22px; height: 22px; color: var(--heading); flex: none; }
.finder-search input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; outline: none; font-size: 16px; font-weight: 500; color: #fff; }
.finder-search input::placeholder { color: var(--body); }
.finder-search input::-webkit-search-cancel-button { filter: invert(1); }
.finder-search .go { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: var(--r-lg); background: var(--red); color: #fff; cursor: pointer; }
.finder-search .go:hover { background: var(--red-hover); }
.finder-search .go svg { width: 16px; height: 16px; }
.finder-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  list-style: none; margin: 0; padding: 8px; max-height: 360px; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 24px 48px rgba(0,0,0,.5);
}
.finder-results[hidden] { display: none; }
.finder-results a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 15px; color: var(--text); }
.finder-results a:hover, .finder-results a.hl { background: var(--surface-2); }
.finder-results img { width: 34px; height: 22px; object-fit: contain; }
.finder-results small { margin-left: auto; color: var(--faint); font-size: 12px; }
.finder-results .empty { padding: 12px; color: var(--muted); font-size: 14px; }
.finder-row { display: flex; justify-content: space-between; gap: 16px; }
.type-pills { display: flex; gap: 8px; }
.type-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; min-width: 0; flex: 0 1 144px; padding: 0 12px;
  border: 2px solid var(--surface-2); border-radius: var(--r-lg); background: rgba(44,44,46,.92);
  font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--body); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.type-pill:hover { color: var(--heading); border-color: var(--surface-3); }
.type-pill[aria-pressed="true"], .type-pill.active { color: #fff; border-color: var(--red); background: rgba(227,18,27,.16); }
.select { position: relative; display: block; width: 144px; }
.select select {
  width: 100%; height: 56px; padding: 0 36px 0 18px; appearance: none; -webkit-appearance: none;
  background: rgba(44,44,46,.92); border: 0; border-radius: var(--r-lg); color: var(--body); font-size: 15px; font-weight: 500; cursor: pointer;
}
.select select:disabled { color: var(--faint); cursor: not-allowed; }
.select select:not(:disabled):hover { background: var(--surface-3); }
.select select option, .select select optgroup { background: var(--surface); color: var(--text); }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.6px solid var(--body); border-bottom: 1.6px solid var(--body); transform: rotate(45deg); pointer-events: none; }
@media (max-width: 1180px) {
  .finder-row { flex-direction: column; }
  .select { flex: 1 1 140px; width: auto; }
}
@media (max-width: 768px) {
  .finder-search { height: 64px; padding: 0 8px 0 18px; border-radius: var(--r-lg); }
  .finder-search .go { width: 48px; height: 48px; }
  .type-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-pill { height: 48px; font-size: 14px; }
  .select { flex-basis: calc(50% - 4px); }
  .select select { height: 48px; }
}

/* ---------- Cabeçalhos de seção ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 64px; }
.section-head h2, .h2 { font-size: 40px; line-height: 1.3; }
.section-head p { max-width: 590px; margin: 24px 0 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.rail-foot { display: flex; justify-content: flex-end; margin-top: 32px; }
@media (max-width: 1024px) { .section-head { margin-bottom: 40px; } }
@media (max-width: 768px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
  .section-head h2, .h2 { font-size: 28px; }
  .section-head p { margin-top: 12px; }
}

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text p { font-size: 18px; line-height: 1.6; color: var(--body); margin-bottom: 16px; }
.about-text .first { font-weight: 700; color: var(--heading); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 20px; } .about-text p { font-size: 16px; } }

/* ---------- Carrossel horizontal ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 3); gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 1024px) { .rail { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; } }
@media (max-width: 640px)  { .rail { grid-auto-columns: 85%; gap: 16px; } }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: var(--r-md); background: var(--surface-2); color: var(--heading); cursor: pointer; }
.rail-nav button:hover:not(:disabled) { background: var(--surface-3); }
.rail-nav button:disabled { opacity: .4; cursor: default; }
.rail-nav svg { width: 14px; height: 14px; }
.rail-nav .prev svg { transform: scaleX(-1); }

/* ---------- Cards de notícia ---------- */
.news-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.news-card .thumb { aspect-ratio: 406 / 200; overflow: hidden; background: #111; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 24px 80px 24px 24px; min-height: 135px; }
.news-card h3 { font-size: 20px; line-height: 1.4; }
.news-card p { color: var(--muted); font-size: 15px; margin: 0; }
.news-card .more { position: absolute; right: 24px; bottom: 24px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--red); color: #fff; font-size: 0; }
.news-card .more::after { content: ""; width: 7px; height: 7px; border-right: 2px solid #fff; border-top: 2px solid #fff; transform: translateX(-2px) rotate(45deg); }
.news-card:hover .more { background: var(--red-hover); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
@media (max-width: 1024px) { .news-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 640px)  { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Serviços ---------- */
.svc-feature {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 600px; padding: 48px; border: 2px solid var(--red); border-radius: var(--r-xl);
}
.svc-feature > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23,23,24,.92) 0%, rgba(23,23,24,.6) 50%, rgba(23,23,24,.3) 100%); }
.svc-feature:hover > img { transform: scale(1.03); }
.svc-feature .badge { position: absolute; top: 48px; left: 48px; }
.svc-feature .kicker { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--heading); margin-bottom: 10px; }
.svc-feature h3 { max-width: 560px; font-size: 36px; line-height: 1.3; margin-bottom: 16px; }
.svc-feature p { max-width: 560px; color: var(--body); margin-bottom: 32px; }
.badge {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px;
  background: var(--red); color: #fff; font-family: var(--font-display); font-size: 14px; font-weight: 800; font-style: italic; letter-spacing: .02em;
}
.svc-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 1 / 1; padding: 24px; border-radius: var(--r-lg); border: 1px solid transparent; background: var(--surface-2);
  transition: border-color .2s;
}
.svc-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,23,24,.45) 0%, rgba(23,23,24,.2) 35%, rgba(23,23,24,.88) 100%); }
.svc-card:hover { border-color: var(--red); }
.svc-card:hover > img { transform: scale(1.05); }
.svc-card .kicker { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--heading); }
.svc-card .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.svc-card h3 { font-size: 24px; line-height: 1.3; }
.svc-card .go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--red); color: #fff; }
.svc-card .go svg { width: 14px; height: 14px; }
.svc-rail { margin-top: 32px; }
@media (max-width: 768px) {
  .svc-feature { min-height: 460px; padding: 24px; }
  .svc-feature .badge { top: 24px; left: 24px; }
  .svc-feature h3 { font-size: 26px; }
  .svc-card h3 { font-size: 20px; }
}

/* ---------- Fotos (mosaico) ---------- */

/* ---------- Vídeos ---------- */

/* Lightbox de vídeo */

/* ---------- Faixa de foto e parceiros ---------- */
.photo-band { height: 480px; overflow: hidden; background: #111; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) { .photo-band { height: 240px; } }
@keyframes cp-marquee-x { to { transform: translateX(-50%); } }

/* ---------- Contato (home e página) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.info-card { display: flex; flex-direction: column; gap: 24px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); }
.info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.info-row .k { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.info-row .v { display: block; font-size: 16px; line-height: 1.5; color: var(--body); }
.info-row a.v:hover { color: var(--heading); }
.copy-btn { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--body); cursor: pointer; }
.copy-btn:hover { color: var(--heading); background: var(--surface-2); }
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn.done { color: var(--green); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 6px 0; vertical-align: top; }
.hours td:last-child { text-align: right; color: var(--heading); font-variant-numeric: tabular-nums; }
.hours tr.closed td:last-child { color: var(--muted); }
.map-card { position: relative; min-height: 320px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }
.map-card .btn { position: absolute; left: 16px; bottom: 16px; }
.contact-side { display: grid; gap: 16px; }

/* Formulário (campos de 64px como na referência) */
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 16px; }
.field { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; }
.field.half { grid-column: span 3; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .field, .field.half { grid-column: 1 / -1; } }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; height: 64px; padding: 20px 24px; border: 2px solid transparent; border-radius: var(--r-lg);
  background: var(--surface-2); outline: none; font-size: 16px; font-weight: 500; color: var(--text); transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select { padding-top: 0; padding-bottom: 0; appearance: none; -webkit-appearance: none; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23cfcfd1' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 24px center; background-size: 12px; }
.field select option { background: var(--surface); }
.field textarea { height: auto; min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--surface-3); }
.field .field-error, .field input.field-error, .field textarea.field-error { border-color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; color: var(--body); cursor: pointer; }
.check a { color: var(--heading); text-decoration: underline; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--red); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--heading); cursor: pointer; }
.switch { position: relative; flex: none; width: 52px; height: 30px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--red); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.extra-fields { display: contents; }
.extra-fields[hidden] { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-foot small { color: var(--muted); font-size: 13px; max-width: 44ch; }

.consulta-vehiculo { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--red-soft); border: 1px solid rgba(227,18,27,.45); }
.consulta-vehiculo .cv-tag { font-size: 13px; font-weight: 700; color: var(--red); }
.consulta-vehiculo .cv-car { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--heading); }
.consulta-vehiculo .cv-hint { color: var(--body); font-size: 14px; }

/* ---------- Cabeçalho das páginas internas ---------- */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 2px; border-right: 1.5px solid var(--faint); border-top: 1.5px solid var(--faint); transform: rotate(45deg); }
.crumbs a:hover { color: var(--heading); }
.crumbs [aria-current] { color: var(--heading); }
.subnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 32px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: var(--r-lg); background: var(--surface-2); font-size: 15px; color: var(--body); }
.subnav a:hover { color: var(--heading); background: var(--surface-3); }
.subnav a[aria-current] { background: var(--red); color: #fff; }

/* ---------- Conteúdo de texto ---------- */

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.person { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--r-lg); background: var(--surface-2); }
.person img { width: 88px; height: 88px; border-radius: var(--r-lg); object-fit: cover; }
.person h3 { font-size: 22px; }
.person p { margin: 2px 0 0; color: var(--muted); }
.partner-links { display: grid; gap: 16px; max-width: 760px; }
.partner-links a { display: block; border-radius: var(--r-lg); overflow: hidden; border: 2px solid transparent; transition: border-color .2s; }
.partner-links a:hover { border-color: var(--red); }
.partner-links img { width: 100%; }
.empty-state { text-align: center; padding: 72px 24px; border-radius: var(--r-xl); background: var(--surface); }
.empty-state h2 { font-size: 28px; margin-bottom: 12px; }
.empty-state p { color: var(--muted); margin: 0 auto 28px; max-width: 46ch; }

/* ---------- FAQ ---------- */
.faq-page { max-width: 800px; margin: 0 auto; }
.faq-page h1 { font-size: 64px; line-height: 1.2; margin-bottom: 32px; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group h2 { font-size: 40px; line-height: 1.3; margin-bottom: 16px; }
.faq-list details { border-bottom: 1px solid #515154; padding: 24px 0 40px; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.4; color: var(--heading); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { flex: none; position: relative; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--surface-2); }
.faq-list summary .pm::before, .faq-list summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: #fff; transition: transform .2s; }
.faq-list summary .pm::after { transform: rotate(90deg); }
.faq-list details[open] summary .pm { background: var(--red); }
.faq-list details[open] summary .pm::after { transform: rotate(0); }
.faq-list .answer { padding-top: 16px; color: var(--body); font-size: 16px; line-height: 1.6; }
.faq-list .answer em { font-style: normal; }
.faq-list .answer p { margin: 0 0 .8em; }
.faq-list .answer ul { margin: 0; padding-left: 20px; }
.faq-list .answer br:first-child { display: none; }
.faq-cta { margin-top: 64px; }
@media (max-width: 768px) { .faq-page h1 { font-size: 40px; } .faq-group h2 { font-size: 28px; } .faq-list summary { font-size: 18px; } }

/* ---------- Catálogo ---------- */

.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 1 / .86; padding: 18px 14px 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 2px solid transparent; transition: border-color .2s, background .2s; }
.brand-tile:hover { border-color: var(--red); background: #313133; }
.brand-tile .logo { flex: 1; display: grid; place-items: center; width: 100%; min-height: 0; }
.brand-tile img { max-width: 76%; max-height: 64px; object-fit: contain; }
.brand-tile span { font-size: 14px; color: var(--body); text-align: center; line-height: 1.25; }
.brand-tile:hover span { color: var(--heading); }
.brand-grid .no-results { grid-column: 1 / -1; }
@media (max-width: 480px) { .brand-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; } }
.disclaimer { color: var(--faint); font-size: 13px; margin-top: 32px; }
.disclaimer a { color: var(--muted); }
.step { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 8px; border-radius: var(--r-lg); background: var(--surface-2); font-size: 15px; color: var(--muted); }
.step b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-3); color: var(--muted); font-size: 14px; }
.step.done { color: var(--heading); }
.step.done b { background: var(--heading); color: var(--bg); }
a.step:hover { background: var(--surface-3); }

.chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 12px 12px 12px 20px; border-radius: var(--r-lg); background: var(--surface-2); border: 2px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--heading); transition: border-color .2s; }
.chip svg { flex: none; width: 12px; height: 12px; color: var(--muted); }
.chip:hover { border-color: var(--red); }
.chip:hover svg { color: var(--red); }

/* ---------- Página do motor ---------- */
.stage-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.dyno { border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
@keyframes cp-grow { from { transform: scaleX(0); } }

.panel { padding: 32px; border-radius: var(--r-xl); background: var(--surface); }
.panel h3 { font-size: 22px; margin-bottom: 18px; }
.panel p { color: var(--muted); font-size: 15px; }
.quality-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.quality-list li { position: relative; padding-left: 36px; color: var(--body); font-size: 15px; line-height: 1.5; }
.quality-list li::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--bg); padding-top: 96px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.footer-top h2 { font-size: 16px; color: #fff; margin-bottom: 16px; }
.footer-news { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.footer-news input { width: 100%; height: 64px; padding: 0 24px; border: 2px solid transparent; border-radius: var(--r-lg); background: var(--surface-2); outline: none; font-size: 16px; color: var(--text); }
.footer-news input::placeholder { color: var(--muted); }
.footer-news input:focus { border-color: var(--surface-3); }
.footer-news .full { grid-column: 1 / -1; }
.footer-news .row { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; }
.footer-news small { font-size: 13px; line-height: 1.5; color: var(--body); }
.footer-news small a { color: var(--heading); text-decoration: underline; }
.footer-news .done { grid-column: 1 / -1; color: var(--heading); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.footer-grid h4 { font-size: 16px; color: #fff; margin-bottom: 24px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-grid ul a { display: block; padding: 8px 0; font-size: 14px; color: var(--body); }
.footer-grid ul a:hover { color: var(--heading); }
.footer-center { position: relative; }
.footer-center select { width: 100%; max-width: 256px; height: 32px; padding: 0 32px 0 12px; appearance: none; -webkit-appearance: none; border: 0; border-radius: var(--r-sm); background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23cfcfd1' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 11px; font-size: 14px; color: var(--text); }
.f-contact { display: grid; gap: 16px; }
.f-contact .info-row .k { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.f-contact .info-row .v { font-size: 14px; color: var(--text); }
.f-contact .btn { margin-top: 4px; height: 56px; }
.f-contact .btn .ico svg { transform: rotate(90deg); }
.footer-grid .hours { font-size: 14px; }
.footer-grid .hours td { padding: 6px 0; color: var(--body); }
.footer-grid .hours td:last-child { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 40px; font-size: 12px; color: var(--muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-bottom a:hover { color: var(--heading); }
.footer-bottom .tuv { display: inline-flex; align-items: center; gap: 12px; }
.footer-bottom .tuv img { width: 28px; height: 28px; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 48px; height: 48px; background: var(--red); color: #fff; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, background .2s; }
.to-top:hover { background: var(--red-hover); }
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { transform: rotate(-90deg); }
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer { padding-top: 56px; }
  .footer-news { grid-template-columns: 1fr; }
  .footer-news .row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom nav { gap: 20px; }
}

/* ---------- Avisos flutuantes ---------- */
.cookie-consent { position: fixed; left: 40px; bottom: 40px; z-index: 90; width: min(612px, calc(100% - 48px)); padding: 32px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 30px 60px rgba(0,0,0,.55); font-size: 16px; }
.cookie-text strong { display: block; font-family: var(--font-display); font-size: 24px; color: var(--heading); margin-bottom: 16px; }
.cookie-text p { color: var(--body); line-height: 1.6; margin: 0 0 20px; }
.cookie-choose { display: inline-block; margin-bottom: 24px; font-size: 15px; color: var(--body); text-decoration: underline; text-underline-offset: 3px; }
.cookie-choose:hover { color: var(--heading); }
.cookie-actions { display: grid; gap: 16px; }
.cookie-actions button { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 12px 0 24px; border: 2px solid var(--surface-3); border-radius: var(--r-lg); background: transparent; color: var(--heading); font-weight: 600; font-size: 16px; cursor: pointer; text-align: left; }
.cookie-actions button::after { content: ""; width: 40px; height: 40px; border-radius: var(--r-md); background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cookie-actions button:hover { background: var(--surface-2); }
.cookie-actions .cookie-accept { border-color: transparent; background: linear-gradient(to right, #3c3c3e 0%, #2c2c2e 100%); }
.cookie-actions .cookie-accept::after { background-color: var(--red); }
.cookie-sep { border: 0; border-top: 1px solid var(--surface-3); margin: 24px 0 18px; }
.cookie-policy { font-size: 15px; color: var(--body); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
.cookie-consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; font-size: 14px; border-radius: var(--r-lg); }
.cookie-text strong { font-size: 19px; margin-bottom: 8px; }
.cookie-text p { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.cookie-choose { margin-bottom: 14px; font-size: 14px; }
.cookie-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-actions button { height: 50px; padding: 0 6px 0 14px; font-size: 15px; }
.cookie-actions button::after { width: 34px; height: 34px; }
.cookie-sep { margin: 14px 0 10px; }
.cookie-policy { font-size: 13px; } }

/* ---------- Utilidades ---------- */
.muted { color: var(--muted); }
body.nav-open .site-header { z-index: 70; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.logo-cell { margin: 0; display: grid; place-items: center; height: 96px; border-radius: var(--r-lg); background: var(--surface-2); }
.logo-cell img { height: 34px; width: auto; opacity: .75; filter: grayscale(1) brightness(1.6); }
.logo-cell:hover img { opacity: 1; filter: none; }

/* ---------- Páginas internas no padrão da referência ---------- */
.page-head { padding-block: 96px 48px; }
.page-head h1, .h1 { font-size: 48px; line-height: 1.3; }
.page-head p { max-width: 800px; margin: 24px 0 0; font-size: 18px; line-height: 1.6; color: var(--body); }
.page-head .btn-back { margin-bottom: 32px; }
@media (max-width: 768px) { .page-head { padding-block: 48px 24px; } .page-head h1, .h1 { font-size: 32px; } }
.btn-back { flex-direction: row-reverse; padding: 0 24px 0 8px; }
.btn-back .ico svg { transform: scaleX(-1); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; padding-block: 96px; }
.split + .split { padding-top: 0; }
.split .media { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: #111; aspect-ratio: 593 / 395; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split.rev .media { order: -1; }
.split .kicker { display: block; margin: 0 0 16px; font-size: 16px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--body); }
.split h1, .split h2 { font-size: 48px; line-height: 1.3; margin-bottom: 32px; }
.split p { font-size: 18px; line-height: 1.6; color: var(--body); margin-bottom: 18px; }
.split ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 12px; }
.split ul li { position: relative; padding-left: 24px; font-size: 18px; line-height: 1.5; color: var(--body); }
.split ul li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--red); }
.split .btn { margin-top: 16px; }
.split .btn-back { margin: 0 0 32px; }
.split .callout { padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface); border-left: 3px solid var(--red); color: var(--heading); font-weight: 600; }
@media (max-width: 1024px) { .split { grid-template-columns: minmax(0,1fr); gap: 32px; padding-block: 64px; } .split.rev .media { order: 0; } }
@media (max-width: 768px) { .split { padding-block: 48px; } .split h1, .split h2 { font-size: 32px; margin-bottom: 20px; } .split p, .split ul li { font-size: 16px; } }

/* Hero das páginas de reprogramação */
.hero.hero-reprog h1 { max-width: 760px; }

/* Serviços empilhados */
.svc-stack { display: grid; gap: 32px; }
.svc-stack .svc-feature { border-color: transparent; }
.svc-stack .svc-feature.featured { border-color: var(--red); }
.svc-stack .svc-feature:not(.featured) .badge { display: none; }

/* Notícias: carregar mais */
.load-more { display: flex; justify-content: center; margin-top: 48px; }
.news-grid .news-card[hidden] { display: none; }

/* Contato: cards do centro e mapa */
.center-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.center-col { display: grid; gap: 32px; align-content: start; }
.center-card { padding: 24px; border-radius: var(--r-lg); background: var(--surface); }
.center-card h2 { font-size: 36px; line-height: 1.3; margin-bottom: 24px; }
.center-card .v { color: var(--body); font-size: 16px; line-height: 1.5; }
.center-card .btn { width: 100%; margin-top: 24px; }
.center-card .hours td { padding: 8px 0; }
.center-grid .map-card { min-height: 100%; }
@media (max-width: 1024px) { .center-grid { grid-template-columns: minmax(0,1fr); } .center-grid .map-card { min-height: 360px; } }

/* Piezas performance */

/* ---------- Configurador por fases ---------- */
.hero { overflow: visible; z-index: 5; } /* painel de marcas por cima das seções seguintes */
.hero-bg { clip-path: inset(0); }
.finder { position: relative; }
.finder-steps { display: flex; gap: 8px; }
.step-field { position: relative; width: 144px; flex: none; }
.step-btn, .step-input {
  width: 100%; height: 56px; border: 0; border-radius: var(--r-lg);
  background: rgba(44,44,46,.92); color: var(--body); font-size: 15px; font-weight: 500;
}
.step-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 0 18px; cursor: pointer; text-align: left; }
.step-btn .lbl { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.step-btn svg { flex: none; width: 11px; height: 11px; transition: transform .2s; }
.step-btn:disabled { color: var(--faint); cursor: not-allowed; }
.step-btn:not(:disabled):hover { background: var(--surface-3); }
.step-field.has-value .step-btn { color: var(--heading); }
.step-field.is-open .step-btn, .step-input { box-shadow: inset 0 0 0 2px var(--red); color: var(--heading); background: #1f1f20; }
.step-field.is-open .step-btn svg { transform: rotate(180deg); }
.step-input { padding: 0 16px; outline: none; }
.step-input::placeholder { color: var(--muted); }
.step-input::-webkit-search-cancel-button { filter: invert(1); }
.finder.has-crumbs .finder-search input::placeholder { color: var(--heading); }
.finder-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 12px); z-index: 40;
  padding: 16px; border-radius: var(--r-xl); background: rgba(52,52,55,.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.finder-panel[hidden] { display: none; }
.panel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-height: 420px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #5b5b5f transparent; }
.tile {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 12px 20px;
  border: 2px solid transparent; border-radius: var(--r-lg); background: var(--surface-2); color: var(--heading);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.tile:hover, .tile:focus-visible { border-color: var(--red); background: #313133; outline: none; }
.tile.brand { flex-direction: column; min-height: 104px; }
.tile.brand img { height: 40px; width: auto; max-width: 80%; object-fit: contain; }
.panel-msg { grid-column: 1 / -1; margin: 0; padding: 16px; color: var(--body); text-align: center; }
.panel-msg a { color: var(--heading); text-decoration: underline; }
@media (max-width: 1180px) {
  .finder-steps { flex-wrap: wrap; }
  .step-field { flex: 1 1 140px; width: auto; }
  .panel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .step-field { flex-basis: calc(50% - 4px); }
  .step-btn, .step-input { height: 48px; }
  .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 55vh; }
  .tile.brand { min-height: 88px; }
}

/* ---------- Página do motor (resultado do configurador) ---------- */
.result-top { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; padding-block: 96px 48px; }
.result-top h1 { font-size: 48px; line-height: 1.3; margin: 32px 0 12px; }
.result-top .sub { font-size: 18px; color: var(--body); margin: 0; }
.result-top .media { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 545 / 363; background: #111; }
.result-top .media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) { .result-top { grid-template-columns: minmax(0,1fr); gap: 32px; padding-block: 48px 24px; } .result-top h1 { font-size: 34px; } }
.stage-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 32px; }
.stage-bar::-webkit-scrollbar { display: none; }
.stage-bar a { flex: none; display: inline-flex; align-items: center; height: 54px; padding: 0 21px; border-radius: var(--r-md); background: var(--surface-2); color: var(--body); font-size: 14px; font-weight: 600; text-transform: uppercase; }
.stage-bar a:hover { color: var(--heading); background: var(--surface-3); }
.stage-bar a[aria-current] { background: var(--red); color: #fff; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1024px) { .result-grid { grid-template-columns: minmax(0,1fr); } }
.spec-card { padding: 24px 24px 48px; border-radius: var(--r-xl); background: var(--surface); }
.spec-card h2 { font-size: 36px; line-height: 1.3; margin-bottom: 8px; }
.spec-block { padding: 16px 0; border-bottom: 1px solid var(--surface-3); }
.spec-block h3 { font-size: 24px; color: #fff; margin: 0 0 12px; }
.spec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 18px; }
.spec-row .k { color: #b0b0b3; }
.spec-row .v { color: var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec-row.mod .v { color: var(--red); font-size: 21px; font-weight: 700; }
.spec-row.diff .v { color: var(--red); font-size: 21px; }
.spec-row.eco .v { color: var(--green); }
.spec-price { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 16px; }
.spec-price h3 { font-size: 24px; color: #fff; margin: 0; }
.spec-price .p { text-align: right; }
.spec-price .amount { display: block; font-size: 28px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.spec-price small { color: #8d8d90; font-size: 15px; }
.spec-card .btn { margin-top: 28px; }
.spec-card .note { color: var(--body); margin: 8px 0 0; }
.graph-card { padding: 24px; border-radius: var(--r-xl); background: #000; }
.graph-card h3 { font-size: 36px; margin-bottom: 24px; }
.gbar + .gbar { margin-top: 24px; }
.gbar .top { display: flex; justify-content: space-between; color: var(--body); font-size: 15px; margin-bottom: 10px; }
.gbar .top b { color: #fff; }
.gbar .track { position: relative; height: 14px; border-radius: 8px; background: #1d1d1f; overflow: hidden; }
.gbar .orig, .gbar .mod { position: absolute; inset: 0 auto 0 0; border-radius: 8px; }
.gbar .mod { background: linear-gradient(90deg, var(--red-deep), var(--red)); transform-origin: left; animation: cp-grow 1s cubic-bezier(.2,.7,.2,1) both .15s; }
.gbar .orig { z-index: 1; background: #5b5b5f; }
.gbar.eco .mod { background: linear-gradient(90deg, #2a8a4b, var(--green)); }
.gbar .legend { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 13px; }
.imp { margin-top: 32px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); }
.imp h4 { font-size: 18px; color: var(--body); margin-bottom: 8px; }
.imp p { margin: 0; color: var(--body); font-size: 15px; line-height: 1.6; }
.media-rail { grid-auto-columns: calc((100% - 32px) / 2); }
.media-rail figure { margin: 0; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 545 / 306; background: #111; }
.media-rail img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .media-rail { grid-auto-columns: 88%; } }
.finder-search { z-index: 25; }
.step-btn[hidden], .step-input[hidden] { display: none; }
@media (max-width: 400px) { .hero h1 { font-size: 30px; } } .hero h1, .page-head h1, .split h1 { overflow-wrap: break-word; }

/* Ritmo vertical da home igual à referência: cada seção com 96px em cima e embaixo; "Sobre" com 132px */
.page-home .section + .section { padding-top: 96px; }
.page-home .sec-about { padding-block: 132px; }
@media (max-width: 768px) { .page-home .section + .section { padding-top: 64px; } .page-home .section { padding-block: 64px; } .page-home .sec-about { padding-block: 80px; } }
/* Header como na referência: menu alinhado à direita, junto das ações, 24px entre tudo */
@media (min-width: 1181px) {
  .main-nav { display: flex; justify-content: flex-end; }
  .header-inner { gap: 24px; }
  .header-actions { gap: 24px; margin-left: 0; }
  .header-search { width: 24px; height: 40px; }
}
/* Medidas da referência a 1280: colunas de 352px com 24px de espaço */
.rail { grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; }
.news-card .thumb { aspect-ratio: 2 / 1; }
.news-card .body { min-height: 188px; padding: 24px 88px 24px 24px; }
.about { gap: 80px; }
.rail-foot { margin-top: 64px; }
.rail-nav { gap: 12px; }
.svc-feature { margin-bottom: 64px; }
.svc-stack .svc-feature { margin-bottom: 0; }
.svc-feature h3, .svc-feature p { max-width: 464px; }
@media (max-width: 1024px) { .rail { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px)  { .rail { grid-auto-columns: 85%; gap: 16px; } }
/* Rodapé e contato com as medidas da referência */
.site-footer { padding-top: 144px; }
.footer-logo { display: inline-block; margin-bottom: 40px; }
.footer-logo img { height: 96px; width: auto; }
.footer-news-intro { margin: 0 0 24px; font-size: 18px; line-height: 1.5; color: var(--body); }
.footer-top { padding-bottom: 96px; }
.footer-news { gap: 24px; }
.footer-grid { gap: 80px; padding: 48px 0; }
.footer-grid h4 { margin-bottom: 20px; }
.footer-grid ul a { padding: 7px 0; font-size: 16px; }
.footer-bottom { padding: 40px 0 48px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 768px) { .site-footer { padding-top: 72px; } .footer-top { padding-bottom: 56px; } .footer-news-intro { font-size: 16px; } }
.form-grid { gap: 24px; }
.section-head p { max-width: 513px; margin-top: 32px; font-size: 18px; line-height: 1.5; }
@media (max-width: 768px) { .section-head p { margin-top: 12px; font-size: 16px; } .form-grid { gap: 16px; } }
.about-text p { line-height: 1.5; }
@media (max-width: 560px) { .site-footer { padding-top: 56px; } .footer-grid { grid-template-columns: 1fr; } }
.footer-grid .hours tr { display: block; padding: 6px 0; }
.footer-grid .hours td { display: block; padding: 0; }
/* FAQ como na referência: coluna de 800px, título com introdução e grupos espaçados */
.faq-page { max-width: calc(800px + var(--gutter) * 2); }
.faq-head { padding-block: 96px; }
.faq-head h1 { margin-bottom: 72px; }
.faq-intro { margin: 0; font-size: 20px; line-height: 1.5; color: var(--body); }
.section.faq-body { padding-top: 96px; }
@media (max-width: 768px) { .section.faq-body { padding-top: 40px; } }
.faq-group h2 { margin-bottom: 40px; }
.faq-list details { padding: 24px 0 56px; }
.faq-group + .faq-group { margin-top: 96px; }
@media (max-width: 768px) { .faq-head { padding-block: 56px; } .faq-head h1 { margin-bottom: 24px; } .faq-intro { font-size: 17px; } .faq-list details { padding: 20px 0 32px; } .faq-group + .faq-group { margin-top: 56px; } }
.section + .section.sec-centers { padding-top: 96px; }
@media (max-width: 768px) { .section + .section.sec-centers { padding-top: 56px; } }
/* Promos y noticias como na referência */
.promo-head { padding-block: 96px; }
.promo-head h1 { font-size: 48px; line-height: 62px; }
.promo-head p { margin-top: 64px; line-height: 1.5; }
.news-sec { padding-block: 40px; }
.news-sec .h1 { font-size: 48px; line-height: 62px; margin-bottom: 64px; }
@media (max-width: 768px) { .promo-head { padding-block: 56px 32px; } .promo-head h1, .news-sec .h1 { font-size: 36px; line-height: 1.25; } .promo-head p { margin-top: 24px; } .news-sec .h1 { margin-bottom: 32px; } }
.section + .section.sec-contact { padding-top: 96px; }
@media (max-width: 768px) { .section + .section.sec-contact { padding-top: 56px; } }
/* Piezas performance: cartões grandes empilhados, como na referência */
.section + .section.sec-parts, .sec-parts { padding-top: 96px; }
.parts-head { margin-bottom: 64px; }
.parts-head .h1 { font-size: 48px; line-height: 62px; margin-bottom: 32px; }
.parts-head p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--body); }
.part-feature h2 { max-width: 464px; font-size: 36px; line-height: 1.3; margin-bottom: 12px; }
.part-feature .logos { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-bottom: 32px; }
.part-feature .logos img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
@media (max-width: 768px) { .sec-parts, .section + .section.sec-parts { padding-top: 56px; } .parts-head .h1 { font-size: 32px; line-height: 1.25; } .parts-head { margin-bottom: 32px; } .part-feature h2 { font-size: 26px; } }
.page-home .hero-bg { object-position: 72% 50%; }
@media (max-width: 768px) { .page-home .hero-bg { object-position: 78% 50%; } }
.photo-band img { object-position: 50% 55%; }
.hero-reprog .hero-bg { object-position: 70% 50%; }
.footer-tagline { max-width: 420px; margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.footer-grid .hours td { text-align: left; } .footer-grid .hours td:last-child { margin-top: 2px; }

/* ===== WhatsApp fixo (direita, embaixo) ===== */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wa-icon { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.wa-icon svg { width: 32px; height: 32px; }
.wa-icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: wa-ping 2.6s cubic-bezier(0,0,.2,1) infinite; }
.wa-float:hover .wa-icon { transform: scale(1.08); box-shadow: 0 14px 36px rgba(37,211,102,.35); }
.wa-bubble { padding: 10px 16px; border-radius: 14px 14px 4px 14px; background: #fff; color: #171718; font-size: 14px; line-height: 1.3; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0; transform: translateX(8px) scale(.96); transform-origin: right center; pointer-events: none; transition: opacity .3s, transform .3s cubic-bezier(.2,.7,.2,1); }
.wa-bubble b { color: #128c4b; }
.wa-float.show-bubble .wa-bubble, .wa-float:hover .wa-bubble { opacity: 1; transform: none; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.to-top { right: 30px; bottom: 100px; }
@media (max-width: 768px) {
  .wa-float { right: 16px; bottom: 16px; }
  .wa-icon { width: 56px; height: 56px; }
  .to-top { right: 20px; bottom: 84px; width: 44px; height: 44px; }
  .wa-bubble { font-size: 13px; padding: 8px 12px; }
  body.cookie-open .wa-float, body.cookie-open .to-top { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-icon::before { animation: none; } }

/* ===== Final da escolha: chamada direta ===== */
.cta-box { display: grid; gap: 16px; margin-top: 8px; }
.btn-wa { width: 100%; justify-content: center; gap: 12px; height: 64px; padding: 0 24px; background: #25d366; color: #0b2e17; font-size: 18px; font-weight: 700; box-shadow: 0 12px 30px rgba(37,211,102,.22); transition: transform .2s, box-shadow .2s, filter .2s; }
.btn-wa svg { width: 26px; height: 26px; }
.btn-wa:hover { filter: none; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37,211,102,.32); }
.cta-alt { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.cta-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--heading); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.3); }
.cta-link:hover { text-decoration-color: var(--red); }
.cta-link svg { width: 16px; height: 16px; color: var(--red); }
.cta-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.cta-trust li::before { content: "✓"; margin-right: 6px; color: #25d366; font-weight: 700; }

/* ===== Animações ===== */
:root { --ease-out: cubic-bezier(.16,1,.3,1); }
/* capa: palavras sobem por trás de uma máscara */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .w > span { display: inline-block; }
.anim .hero h1 .w > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out) calc(120ms + var(--i) * 90ms); }
.anim.hero-ready .hero h1 .w > span { transform: none; }
.anim .hero-in { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out) var(--d), transform .9s var(--ease-out) var(--d); }
.anim.hero-ready .hero-in { opacity: 1; transform: none; }
.anim .hero-bg { transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
.anim.hero-ready .hero-bg { transform: none; }
.hero-bg { clip-path: inset(0); }

/* blocos ao rolar */
.anim [data-reveal] { transition-property: opacity, transform, filter, clip-path; transition-timing-function: var(--ease-out); transition-delay: var(--d, 0ms); }
.anim [data-reveal="up"] { opacity: 0; transform: translateY(32px); filter: blur(6px); transition-duration: 1s; }
.anim [data-reveal="card"] { opacity: 0; transform: translateY(48px) scale(.96); transition-duration: 1.1s; }
.anim [data-reveal="img"] { clip-path: inset(12% 6% 12% 6% round 20px); transition-duration: 1.3s; }
.anim .photo-band[data-reveal="img"] { clip-path: inset(10% 0 10% 0); }
.anim [data-reveal="img"] img { transform: scale(1.18); transition: transform 1.8s var(--ease-out) var(--d, 0ms); }
.anim [data-reveal].is-in { opacity: 1; transform: none; filter: none; clip-path: inset(0 0 0 0 round 0); }
.anim .split .media[data-reveal].is-in, .anim .result-top .media[data-reveal].is-in { clip-path: inset(0 0 0 0 round 20px); }
.anim [data-reveal].is-in img { transform: none; }
/* fotos dentro dos cartões fazem um zoom de entrada */
.anim [data-reveal="card"] > img, .anim [data-reveal="card"] .thumb img { transform: scale(1.15); transition: transform 1.6s var(--ease-out) var(--d, 0ms); }
.anim [data-reveal="card"].is-in > img, .anim [data-reveal="card"].is-in .thumb img { transform: none; }

/* hover dos cartões */
.news-card, .svc-card, .svc-feature, .center-card { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .25s, opacity 1.1s var(--ease-out); }
.news-card:hover, .svc-card:hover, .center-card:hover { transform: translateY(-6px); box-shadow: 0 28px 56px rgba(0,0,0,.5); }
.svc-feature:hover { transform: translateY(-4px); box-shadow: 0 32px 64px rgba(0,0,0,.55); }
.svc-card > img, .svc-feature > img, .news-card .thumb img { transition: transform 1s var(--ease-out); }
.svc-card:hover > img, .svc-feature:hover > img, .news-card:hover .thumb img { transform: scale(1.06); }
/* botões: setinha anda, brilho passa por cima */
.btn { position: relative; overflow: hidden; transition: filter .2s, transform .2s var(--ease-out); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent); transform: skewX(-20deg); transition: left .7s var(--ease-out); pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn .ico svg, .svc-card .go svg { transition: transform .35s var(--ease-out); }
.btn:hover .ico svg, .svc-card:hover .go svg { transform: translateX(3px); }
.btn-back:hover .ico svg { transform: scaleX(-1) translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-wa { animation: wa-glow 3s ease-in-out infinite; }
@keyframes wa-glow { 0%, 100% { box-shadow: 0 12px 30px rgba(37,211,102,.22); } 50% { box-shadow: 0 12px 40px rgba(37,211,102,.45); } }
/* sublinhado vermelho do menu desliza */
.main-nav > ul > li > a { position: relative; }
@media (min-width: 1181px) {
  .main-nav > ul > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
  .main-nav > ul > li > a:hover::after, .main-nav > ul > li.active > a::after { transform: scaleX(1); }
  .main-nav > ul > li.active > a { box-shadow: none; }
}

/* ===== Topo fixo ao rolar ===== */
body.header-stuck .site-header { position: fixed; left: 0; right: 0; top: 0; height: 76px; background: rgba(23,23,24,.82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.35); animation: header-drop .45s var(--ease-out); }
body.header-stuck .site-header .brand-logo { height: 54px; }
body.header-stuck .site-header .btn { height: 48px; }
body.header-stuck .site-header .btn .ico { width: 34px; height: 34px; }
@keyframes header-drop { from { transform: translateY(-100%); } to { transform: none; } }
@media (max-width: 768px) { body.header-stuck .site-header { height: 64px; } body.header-stuck .site-header .brand img { width: 132px; } }
body.nav-open.header-stuck .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }

@media (prefers-reduced-motion: reduce) {
  .news-card:hover, .svc-card:hover, .center-card:hover, .svc-feature:hover { transform: none; }
  .btn-wa { animation: none; }
  body.header-stuck .site-header { animation: none; }
}

/* ===== Celular ===== */
@media (max-width: 768px) {
  .section, .page-home .section, .page-home .section + .section { padding-block: 56px; }
  .page-home .sec-about { padding-block: 64px 40px; }
  .section + .section.sec-contact, .section + .section.sec-centers, .sec-parts, .section + .section.sec-parts { padding-top: 56px; }
  .section-head { margin-bottom: 28px; }
  .section-head h2, .h2 { font-size: 30px; }
  .about { gap: 20px; }
  .about-text p { font-size: 16px; }
  /* notícias da home viram carrossel deslizável */
  .page-home .news-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .page-home .news-grid::-webkit-scrollbar { display: none; }
  .page-home .news-grid > * { scroll-snap-align: start; }
  .news-card .body { min-height: 0; padding: 20px 72px 20px 20px; }
  .news-card h3 { font-size: 18px; }
  .news-card h3, .svc-card h3, .svc-feature h3, .part-feature h2 { overflow-wrap: anywhere; }
  .svc-feature { min-height: 460px; padding: 28px 24px; }
  .svc-feature .badge { top: 24px; left: 24px; }
  .svc-feature h3 { font-size: 28px; }
  .photo-band { height: 260px; }
  .hero-lead { margin-bottom: 24px; }
  /* tabela de horário empilhada */
  .hours tr { display: block; padding: 6px 0; }
  .hours td { display: block; padding: 0; text-align: left !important; }
  /* página de resultado: números primeiro */
  .result-top { padding-block: 32px 16px; gap: 0; }
  .result-top .media { display: none; }
  .result-top h1 { font-size: 34px; margin-top: 24px; }
  .stage-bar { padding-bottom: 20px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .stage-bar a { height: 46px; padding: 0 16px; }
  .spec-card, .graph-card { padding: 24px 20px; }
  .btn-wa { height: 58px; font-size: 17px; }
  /* barra fixa com preço + WhatsApp */
  .result-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(23,23,24,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 rgba(255,255,255,.07), 0 -12px 30px rgba(0,0,0,.4); animation: rs-up .5s var(--ease-out) .6s both; }
  .result-sticky .rs-info { display: grid; line-height: 1.2; }
  .result-sticky .rs-stage { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  .result-sticky .rs-price { font-size: 22px; color: var(--heading); }
  .result-sticky .btn-wa { flex: 1; width: auto; height: 50px; font-size: 16px; }
  .result-sticky .btn-wa svg { width: 22px; height: 22px; }
  body.has-result-sticky { padding-bottom: 84px; }
  body.has-result-sticky .wa-float { display: none; }
  body.has-result-sticky .to-top { bottom: 96px; }
}
.result-sticky { display: none; }
@media (max-width: 768px) { .result-sticky { display: flex; } }
@keyframes rs-up { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Tela de carregamento (em todo carregamento / F5) ---------- */
@media (max-width: 768px) { .brand-logo { height: 52px; } body.header-stuck .site-header .brand-logo { height: 46px; } }
.intro { display: none; }
.site-intro { overflow: hidden; }
.site-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background: radial-gradient(ellipse 60% 45% at 50% 55%, #1a0303 0%, #070707 60%, #030303 100%);
  animation: intro-out .5s 4.2s cubic-bezier(.4, 0, .2, 1) forwards; /* trava de segurança: some sozinha */
}
.site-intro .intro.is-done { animation: intro-out-now .5s .28s cubic-bezier(.4, 0, .2, 1) forwards; }
.intro-stage { position: relative; display: grid; justify-items: center; gap: 34px; }
.intro-glow { position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; opacity: 0;
  background: radial-gradient(circle, rgba(225,6,0,.16) 0%, transparent 42%); }
.site-intro .intro-glow { animation: intro-glow 1.6s .3s ease-out both; }
.intro-logo { position: relative; width: min(82vw, 620px); aspect-ratio: 760 / 302; }
.intro-logo img { display: block; width: 100%; height: 100%; }
.brand-fx { position: absolute; inset: 0; pointer-events: none; }
.site-intro .intro-logo { animation: logo-in .85s .1s cubic-bezier(.16, 1, .3, 1) both; will-change: transform, opacity; }
/* motion blur: dois "fantasmas" da logo ficando para trás */
.site-intro .intro-logo::before, .site-intro .intro-logo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: url(../images/logo-mido.webp) center / 100% 100% no-repeat;
}
.site-intro .intro-logo::before { animation: logo-ghost-1 .7s .1s ease-out both; }
.site-intro .intro-logo::after  { animation: logo-ghost-2 .7s .1s ease-out both; }
/* brilho metálico nas letras MIDO */
.brand-shine {
  -webkit-mask: url(../images/logo-mido-letters.png) center / 100% 100% no-repeat;
          mask: url(../images/logo-mido-letters.png) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 0 40%, rgba(255,255,255,.35) 45%, #fff 49%, rgba(255,255,255,.35) 53%, transparent 58%) 100% 0 / 300% 100% no-repeat;
  mix-blend-mode: screen; opacity: 0;
}
.site-intro .brand-shine { animation: logo-shine .8s .65s cubic-bezier(.45, 0, .2, 1) both; }
/* rastro de luz vermelha no contorno do Skyline e nas linhas de baixo */
.brand-trail {
  -webkit-mask: url(../images/logo-mido-trail.png) center / 100% 100% no-repeat;
          mask: url(../images/logo-mido-trail.png) center / 100% 100% no-repeat;
  background: linear-gradient(90deg, transparent 0 36%, rgba(255,30,30,.35) 46%, #ff4d4d 54%, #fff 56.5%, #fff 58%, rgba(255,80,80,.7) 59.5%, transparent 62%) 100% 0 / 300% 100% no-repeat;
  mix-blend-mode: plus-lighter; opacity: 0;
}
.site-intro .brand-trail { animation: logo-trail 1.1s .75s cubic-bezier(.45, .05, .55, .95) both; }
/* faróis acendem (duas piscadas) */
.brand-lights {
  -webkit-mask: url(../images/logo-mido-lights.png) center / 100% 100% no-repeat;
          mask: url(../images/logo-mido-lights.png) center / 100% 100% no-repeat;
  background: #cfe6ff; mix-blend-mode: plus-lighter; opacity: 0;
}
.site-intro .brand-lights { animation: logo-lights .9s 1.15s ease-out both; }
/* barra de carregamento */
.intro-bar { width: min(52vw, 260px); height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; opacity: 0; }
.intro-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #7a0000, #e10600 70%, #ff6a5f); box-shadow: 0 0 10px rgba(225,6,0,.8); transform-origin: left; transform: scaleX(0); }
.site-intro .intro-bar { animation: bar-in .4s .5s ease-out both; }
.site-intro .intro-bar span { animation: bar-load 1.6s .55s cubic-bezier(.3, .6, .4, 1) both; }
.site-intro .intro.is-done .intro-bar span { animation: bar-full .26s ease-out both; }
/* aviso "toca para ouvir" (só quando o navegador bloqueou o som) */
.intro-tap { display: flex; align-items: center; gap: 8px; margin-top: -14px; font: 600 12px/1 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.intro-tap svg { width: 16px; height: 16px; color: #e10600; }
.intro.needs-tap .intro-tap { opacity: 1; visibility: visible; animation: tap-pulse 1.2s .2s ease-in-out infinite alternate; }
.intro.needs-tap { cursor: pointer; }
@keyframes tap-pulse { from { opacity: .45; } to { opacity: 1; } }
@keyframes intro-glow { 0% { opacity: 0; transform: scale(.7); } 100% { opacity: 1; transform: none; } }
@keyframes intro-out     { to { opacity: 0; visibility: hidden; } }
@keyframes intro-out-now { to { opacity: 0; visibility: hidden; transform: scale(1.03); } }
@keyframes bar-in   { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bar-load { from { transform: scaleX(0); } to { transform: scaleX(.82); } }
@keyframes bar-full { from { transform: scaleX(.82); } to { transform: scaleX(1); } }
@keyframes logo-in {
  0%   { opacity: 0; transform: translateX(-60vw) skewX(-16deg); filter: blur(4px); }
  20%  { opacity: 1; }
  62%  { transform: translateX(12px) skewX(3deg); filter: blur(0); }
  82%  { transform: translateX(-3px) skewX(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes logo-ghost-1 {
  0%   { opacity: .5;  transform: translateX(-70px); }
  60%  { opacity: .18; transform: translateX(-24px); }
  100% { opacity: 0;   transform: none; }
}
@keyframes logo-ghost-2 {
  0%   { opacity: .3;  transform: translateX(-150px); }
  50%  { opacity: .1;  transform: translateX(-50px); }
  100% { opacity: 0;   transform: none; }
}
@keyframes logo-shine {
  0%   { opacity: 1; background-position: 100% 0; }
  90%  { opacity: 1; }
  100% { opacity: 0; background-position: 0 0; }
}
@keyframes logo-trail {
  0%   { opacity: 1; background-position: 100% 0; }
  85%  { opacity: 1; }
  100% { opacity: 0; background-position: 0 0; }
}
@keyframes logo-lights {
  0% { opacity: 0; } 8% { opacity: 1; } 18% { opacity: .1; } 30% { opacity: 1; } 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .site-intro .intro { display: none; } .site-intro { overflow: auto; } }
/* celular: texto da capa legível sobre a parte clara da foto */
@media (max-width: 768px) { .hero h1, .hero .hero-lead { text-shadow: 0 2px 14px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.6); } }
/* botão do WhatsApp: só o círculo (e o balão quando visível) recebem toque — a área invisível ao lado não */
.wa-float { pointer-events: none; }
.wa-float .wa-icon { pointer-events: auto; }
.wa-float.show-bubble .wa-bubble { pointer-events: auto; }
/* balão do WhatsApp não aparece por cima da lista do configurador aberta */
body:has(.finder-panel:not([hidden])) .wa-bubble { opacity: 0 !important; pointer-events: none !important; }
/* ---------- Páginas legales ---------- */
.legal { max-width: 860px; padding-top: calc(var(--header-h) + 40px); padding-bottom: 96px; }
.page-legal .legal { padding-top: 48px; }
.legal h1 { margin: 8px 0 8px; }
.legal .legal-date { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.legal .subnav { margin: 24px 0 40px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--body); line-height: 1.7; font-size: 16px; }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--heading); text-decoration: underline; text-underline-offset: 3px; }
.legal .legal-data { list-style: none; padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface); }
.legal .pendiente { color: #ffb4ad; background: rgba(225,6,0,.14); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
@media (max-width: 768px) { .legal h2 { font-size: 19px; margin-top: 32px; } .legal p, .legal li { font-size: 15px; } .legal { padding-bottom: 64px; } }
.legal .subnav a { text-decoration: none; }

/* ---------- Página 404 ---------- */
.notfound { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: 64px 96px; }
.notfound .nf-code { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(96px, 18vw, 200px); line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 0%, #9a9a9e 70%); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.notfound .nf-code::after { content: ""; display: block; width: 120px; height: 6px; margin-top: 8px; background: var(--red); transform: skewX(-24deg); }
.notfound h1 { font-size: clamp(28px, 4vw, 44px); margin: 28px 0 12px; }
.notfound p { color: var(--body); font-size: 18px; max-width: 560px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
