/* ========================================================
   Carbono Moto Studio — Styles
   Mobile-first · Premium motorcycle workshop
   ======================================================== */

/* ─────────────────────────────────────────────────────────
   0. DESIGN TOKENS — estrutura fixa (nunca muda por tema)
   ───────────────────────────────────────────────────────── */
:root {
  /* Tipografia */
  --ff-display: 'Oswald', system-ui, sans-serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  /* Tamanhos fluidos — FIXOS entre paletas */
  --fs-hero:    clamp(2.25rem, 8.5vw, 4.5rem);
  --fs-h2:      clamp(1.75rem, 5vw, 3rem);
  --fs-h3:      clamp(1.125rem, 2.5vw, 1.5rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-xs:      0.75rem;
  --fs-eyebrow: clamp(0.75rem, 1.5vw, 0.875rem);
  --lh-title:   1.12;

  /* Espaçamento */
  --sp-4:  4px;
  --sp-8:  8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-96: 96px;
  --section-padding: clamp(56px, 8vw, 84px);
  --card-padding: clamp(20px, 3vw, 28px);

  /* Raios, layout, header — FIXOS */
  --r-btn:  8px;
  --r-card: 12px;
  --r-pill: 999px;
  --container: 1200px;
  --gutter:    clamp(16px, 4vw, 24px);
  --header-h:  64px;
  --tap:       44px;   /* alvo mínimo de toque (WCAG 2.5.8) */

  /* Transições */
  --ease:   cubic-bezier(.4, 0, .2, 1);
  --t-fast: 200ms;
  --t-mid:  400ms;
  --t-slow: 700ms;

  /* Superfície escura (hero, header, footer) — muda com a paleta */
  --shell-bg:        #0B0B0D;
  --shell-surface:   #141418;
  --shell-surface-2: #1C1C22;
  --shell-text:      #F4F4F5;
  --shell-muted:     #9A9AA2;
  --shell-line:      rgba(255, 255, 255, .08);
  --shell-accent:    #E11414;
  --shell-accent-deep: #B30F0F;

  /* Paleta padrão — Clara Oficina */
  --bg:            #F4F4F5;
  --surface:       #FFFFFF;
  --surface-2:     #E5E5EA;
  --text:          #0B0B0D;
  --muted:         #55555C;
  --line:          rgba(0, 0, 0, .08);
  --accent:        #E11414;
  --accent-deep:   #B30F0F;
  --wa:            #25D366;
  --wa-deep:       #1eba56;
  --shadow-card:     0 2px 12px rgba(0, 0, 0, .1);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, .15);
  --shadow-soft:     0 4px 24px rgba(0, 0, 0, .12);
  --glow-red:        0 0 40px rgba(225, 20, 20, .2), 0 0 80px rgba(225, 20, 20, .08);

  /* Aliases legados */
  --ink: var(--bg);
  --red: var(--accent);
  --red-deep: var(--accent-deep);
}

html.theme-clara {
  --bg:            #F4F4F5;
  --surface:       #FFFFFF;
  --surface-2:     #E5E5EA;
  --text:          #0B0B0D;
  --muted:         #55555C;
  --line:          rgba(0, 0, 0, .08);
  --accent:        #E11414;
  --accent-deep:   #B30F0F;
  --shadow-card:     0 2px 12px rgba(0, 0, 0, .1);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, .15);
  --shell-bg:        #0B0B0D;
  --shell-surface:   #141418;
  --shell-surface-2: #1C1C22;
  --shell-text:      #F4F4F5;
  --shell-muted:     #9A9AA2;
  --shell-line:      rgba(255, 255, 255, .08);
  --shell-accent:    var(--accent);
  --shell-accent-deep: var(--accent-deep);
}

html.theme-grafite {
  --bg: #0B0B0D;
  --surface: #141418;
  --surface-2: #1C1C22;
  --text: #F4F4F5;
  --muted: #9A9AA2;
  --line: rgba(255, 255, 255, .08);
  --accent: #E11414;
  --accent-deep: #B30F0F;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .3);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, .5);
  --shell-bg:        var(--bg);
  --shell-surface:   var(--surface);
  --shell-surface-2: var(--surface-2);
  --shell-text:      var(--text);
  --shell-muted:     var(--muted);
  --shell-line:      var(--line);
  --shell-accent:    var(--accent);
  --shell-accent-deep: var(--accent-deep);
}

html.theme-areia {
  --bg: #EFEBE4;
  --surface: #FAF8F5;
  --surface-2: #E5E0D8;
  --text: #2D2A26;
  --muted: #6B655C;
  --line: rgba(0, 0, 0, .08);
  --accent: #B84A33;
  --accent-deep: #8C3827;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .1);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, .15);
  --shell-bg:        #2D2A26;
  --shell-surface:   #3D3832;
  --shell-surface-2: #4A4440;
  --shell-text:      #FAF8F5;
  --shell-muted:     #C4BEB5;
  --shell-line:      rgba(255, 255, 255, .1);
  --shell-accent:    var(--accent);
  --shell-accent-deep: var(--accent-deep);
}

html.theme-azul {
  --bg: #0D131A;
  --surface: #121A24;
  --surface-2: #1A2533;
  --text: #E2E8F0;
  --muted: #94A3B8;
  --line: rgba(255, 255, 255, .08);
  --accent: #29B6F6;
  --accent-deep: #0288D1;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .3);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, .5);
  --shell-bg:        var(--bg);
  --shell-surface:   var(--surface);
  --shell-surface-2: var(--surface-2);
  --shell-text:      var(--text);
  --shell-muted:     var(--muted);
  --shell-line:      var(--line);
  --shell-accent:    var(--accent);
  --shell-accent-deep: var(--accent-deep);
}

html.theme-vermelho {
  --bg: #121212;
  --surface: #1C1C1C;
  --surface-2: #2A2A2A;
  --text: #FAFAFA;
  --muted: #999999;
  --line: rgba(255, 255, 255, .08);
  --accent: #E63946;
  --accent-deep: #C1121F;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .3);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, .5);
  --shell-bg:        var(--bg);
  --shell-surface:   var(--surface);
  --shell-surface-2: var(--surface-2);
  --shell-text:      var(--text);
  --shell-muted:     var(--muted);
  --shell-line:      var(--line);
  --shell-accent:    var(--accent);
  --shell-accent-deep: var(--accent-deep);
}

/* Superfícies escuras — herdam tokens da paleta ativa */
.surface-dark {
  --bg: var(--shell-bg);
  --surface: var(--shell-surface);
  --surface-2: var(--shell-surface-2);
  --text: var(--shell-text);
  --muted: var(--shell-muted);
  --line: var(--shell-line);
  --accent: var(--shell-accent);
  --accent-deep: var(--shell-accent-deep);
  --ink: var(--shell-bg);
  --red: var(--shell-accent);
  --red-deep: var(--shell-accent-deep);
  color: var(--text);
  background: var(--bg);
}

/* Seletor de paletas premium */
.palette-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  border: 1px solid var(--shell-line);
  background: color-mix(in srgb, var(--shell-text) 4%, transparent);
  flex-shrink: 0;
}

.palette-control__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  min-height: 36px;
  border-radius: var(--r-pill);
  font-size: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--shell-muted);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.palette-control__btn span:not(.palette-dot) {
  display: none;
}

.palette-control__btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}

.palette-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .2);
}

.palette-dot--clara    { background: linear-gradient(135deg, #fff 50%, #E11414 50%); }
.palette-dot--grafite  { background: linear-gradient(135deg, #141418, #E11414); }
.palette-dot--areia    { background: linear-gradient(135deg, #FAF8F5, #B84A33); }
.palette-dot--azul     { background: linear-gradient(135deg, #121A24, #29B6F6); }
.palette-dot--vermelho { background: linear-gradient(135deg, #1C1C1C, #E63946); }

@media (min-width: 1400px) {
  .palette-control__btn { font-size: var(--fs-xs); padding: 6px 10px; }
  .palette-control__btn span:not(.palette-dot) { display: inline; }
}

.palette-mobile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  margin-top: var(--sp-24);
  padding-top: var(--sp-24);
  border-top: 1px solid var(--line);
}

.palette-mobile__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.palette-mobile__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.palette-mobile__btns button {
  flex: 1 1 calc(50% - 4px);
  min-height: 44px;
  padding: var(--sp-8) var(--sp-12);
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 500;
}

.palette-mobile__btns button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

@media (max-width: 767px) {
  .palette-control { display: none; }
}

/* ─────────────────────────────────────────────────────────
   1. RESET & BASE
   ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;            /* previne scroll horizontal sem quebrar sticky */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { list-style: none; }

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}


/* ─────────────────────────────────────────────────────────
   2. UTILITIES
   ───────────────────────────────────────────────────────── */

/* Só para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100%;
  left: max(var(--gutter), env(safe-area-inset-left));
  z-index: 9999;
  padding: var(--sp-12) var(--sp-24);
  background: var(--red);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--r-btn) var(--r-btn);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus {
  top: 0;
}

/* Body lock (JS: menu mobile / modal aberto) */
.no-scroll {
  overflow: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  /* gutter + safe-area lateral (notch em landscape) */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Texto vermelho */
.text-red { color: var(--red); }

/* Eyebrow (rótulo superior) */
.eyebrow {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-16);
}

/* Hero eyebrow — ligeiramente menor que os de seção */
.hero .eyebrow {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.22em;
  font-weight: 600;
}

/* Ícones inline SVG */
.ico {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────
   3. BUTTONS
   ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-12) var(--sp-24);
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  white-space: nowrap;
  min-height: 48px;            /* alvo de toque ≥ 44px */
  border: 1px solid transparent;
  text-decoration: none;
}

/* Primário (vermelho) */
.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(225, 20, 20, .35);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Ghost (transparente com borda sutil) */
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .05);
}

/* Outline (para cards de pacote) */
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--red);
  color: var(--red);
  background: rgba(225, 20, 20, .06);
}

/* WhatsApp */
.btn--wa {
  background: var(--wa);
  color: #fff;
  border-color: var(--wa);
}
.btn--wa:hover,
.btn--wa:focus-visible {
  background: var(--wa-deep);
  border-color: var(--wa-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, .3);
}
.btn--wa:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Focus ring global para botões (keyboard) */
.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}


/* ─────────────────────────────────────────────────────────
   4. HEADER
   ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: color-mix(in srgb, var(--shell-bg) 82%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--shell-line);
  transition: background var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
}

/* Estado: header rolado → mais opaco */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--shell-bg) 96%, transparent);
  box-shadow: 0 1px 32px color-mix(in srgb, var(--shell-bg) 50%, transparent);
}

.header__inner {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr auto;
  align-items: center;
  height: 100%;
  gap: var(--sp-8);
}

/* Brand (logo + nome) */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-shrink: 1;
  min-width: 0;
}
.brand__mark {
  width: 40px;
  height: auto;
}
.brand__name {
  font-family: var(--ff-display);
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.brand__name-accent {
  color: var(--muted);
  font-weight: 400;
}

/* Nav desktop — oculto até lg */
.nav {
  display: none;
  justify-self: center;
  min-width: 0;
}
.nav__list {
  display: flex;
  gap: clamp(var(--sp-12), 2vw, var(--sp-24));
  flex-wrap: nowrap;
}
.nav__link {
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--t-mid) var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text);
}
.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

/* Actions no header (paletas + CTA) */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  justify-self: end;
  flex-shrink: 0;
  min-width: 0;
}

/* CTA no header — oculto até lg */
.header__cta {
  display: none;
  padding: var(--sp-8) var(--sp-12);
  font-size: var(--fs-xs);
  min-height: 40px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hamburger (toggle) */
.nav-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease),
              opacity var(--t-fast) var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
}
.nav-toggle__bars::before { transform: translateY(-7px); }
.nav-toggle__bars::after  { transform: translateY(7px); }

/* Hamburger → X */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

/* Menu mobile (full-screen overlay) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 999;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + var(--sp-24)) var(--gutter) var(--sp-24);
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease);
  pointer-events: none;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.mobile-menu__list a {
  display: block;
  padding: var(--sp-12) 0;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color var(--t-fast) var(--ease),
              padding-left var(--t-fast) var(--ease);
}
.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible {
  color: var(--text);
  padding-left: var(--sp-8);
}
.mobile-menu__cta {
  margin-top: auto;
  width: 100%;
}


/* ─────────────────────────────────────────────────────────
   5. HERO
   ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(100dvh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + var(--sp-48)) 0 var(--sp-64);
}

/* Fundo decorativo */
.hero__bg::after,
.solucoes-media::after,
.mechanic-profile__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg::after { z-index: 2; }

.solucoes-media { position: relative; }

.mechanic-profile__img-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 6px color-mix(in srgb, var(--accent) 12%, transparent),
    0 0 48px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: .48;
  pointer-events: none;
  filter: contrast(1.06) saturate(1.05);
  transform: scale(1.02);
  animation: carbonoHeroSettle 22s cubic-bezier(.22, 1, .36, 1) both;
  will-change: transform;
}
@keyframes carbonoHeroSettle {
  from { transform: scale(1.045) translate3d(-1%, 0, 0); }
  to { transform: scale(1.02) translate3d(0, 0, 0); }
}
.hero__art {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  max-width: 960px;
  opacity: .04;
  pointer-events: none;
  filter: blur(0.5px);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--shell-bg) 50%, transparent) 0%,
    color-mix(in srgb, var(--shell-bg) 80%, transparent) 50%,
    var(--shell-bg) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__title {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.22;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-24);
  padding-block: 0.04em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: var(--sp-32);
}

/* Hero eyebrow — já definido acima com override global */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
  margin-bottom: var(--sp-48);
}

/* Trust badges */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8) var(--sp-24);
  font-size: var(--fs-small);
  color: var(--muted);
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.hero__trust li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Scroll indicator (chevron animado) */
.hero::after {
  content: '';
  position: absolute;
  bottom: 36px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateX(-50%) rotate(45deg);
  opacity: .35;
  z-index: 1;
  animation: hero-scroll 2.5s ease-in-out infinite;
}

@keyframes hero-scroll {
  0%, 100% { opacity: .3; transform: translateX(-50%) rotate(45deg) translateY(0); }
  50%      { opacity: .6; transform: translateX(-50%) rotate(45deg) translateY(8px); }
}


/* ─────────────────────────────────────────────────────────
   6. SECTIONS (base)
   ───────────────────────────────────────────────────────── */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sp-64);
}

.section__title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-title);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section__lead {
  margin-top: var(--sp-16);
  color: var(--muted);
  font-size: clamp(0.938rem, 2vw, 1.0625rem);
  line-height: 1.7;
}

/* Fundos alternados */
.section--oficina  { background: var(--surface); }
.section--solucoes {
  background: var(--bg);
}
.section--solucoes .section__title {
  color: var(--text);
}
.section--solucoes .section__lead {
  color: var(--muted);
}
.section--pacotes  { background: var(--surface); }


/* ─────────────────────────────────────────────────────────
   7. CARDS — base (pacotes)
   ───────────────────────────────────────────────────────── */
.cards {
  display: grid;
  gap: var(--sp-16);
}


/* ─────────────────────────────────────────────────────────
   8. CARDS — Pricing (Pacotes)
   ───────────────────────────────────────────────────────── */
.cards--pricing {
  grid-template-columns: 1fr;
  gap: var(--sp-24);
}

.price-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--sp-32) var(--sp-24);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* ★ DESTAQUE — Revisão Premium */
.price-card--featured {
  border-color: var(--red);
  background: linear-gradient(
    180deg,
    rgba(225, 20, 20, .07) 0%,
    var(--surface-2)        40%
  );
  box-shadow: var(--glow-red);
}
.price-card--featured:hover {
  box-shadow: 0 0 48px rgba(225, 20, 20, .3),
              0 0 96px rgba(225, 20, 20, .12);
  transform: translateY(-6px);
  animation: none;
}

/* Glow pulsante sutil (repouso) */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(225,20,20,.2),  0 0 80px rgba(225,20,20,.08); }
  50%      { box-shadow: 0 0 52px rgba(225,20,20,.3), 0 0 100px rgba(225,20,20,.12); }
}
.price-card--featured {
  animation: glow-pulse 4s ease-in-out infinite;
}

.price-card__badge {
  position: absolute;
  top: 0;
  left: var(--sp-24);
  transform: translateY(-50%);
  background: var(--red);
  color: #fff;
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--sp-4) var(--sp-16);
  border-radius: var(--r-pill);
}

.price-card__name {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--sp-12);
}

.price-card__price {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--sp-16);
}
.price-card__currency {
  font-size: 0.45em;
  vertical-align: super;
  margin-right: 2px;
  color: var(--muted);
}
.price-card__cents {
  font-size: 0.4em;
  color: var(--muted);
}
.price-card--featured .price-card__price {
  color: var(--red);
}

.price-card__desc {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.65;
  margin-bottom: var(--sp-24);
}

.price-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  margin-bottom: var(--sp-32);
  flex: 1;                     /* empurra CTA para baixo */
}
.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-8);
  font-size: var(--fs-small);
  color: var(--text);
  line-height: 1.5;
}
.price-card__list li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-card__cta {
  width: 100%;
  margin-top: auto;
}


/* ─────────────────────────────────────────────────────────
   10. NOTES (bônus + política de pagamento)
   ───────────────────────────────────────────────────────── */
.pacotes__notes {
  display: grid;
  gap: var(--sp-16);
  margin-top: var(--sp-48);
}

.note {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--sp-24);
}
.note--bonus {
  border-left: 3px solid var(--red);
}
.note--payment {
  border-left: 3px solid var(--muted);
}

.note__title {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-12);
}

.note__text {
  color: var(--muted);
  font-size: clamp(0.938rem, 1.8vw, 1rem);
  line-height: 1.65;
}
.note__text + .note__text {
  margin-top: var(--sp-8);
}


/* ─────────────────────────────────────────────────────────
   11. FOOTER
   ───────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  overflow: hidden;
}

.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.footer__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--shell-bg) 0%,
    color-mix(in srgb, var(--shell-bg) 85%, transparent) 35%,
    color-mix(in srgb, var(--shell-bg) 92%, transparent) 100%
  );
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-32);
  padding-top: clamp(40px, 6vw, 56px);
  padding-bottom: var(--sp-32);
}

/* Bloco CTA */
.footer__cta-block {
  text-align: center;
  width: 100%;
  max-width: 640px;
}
.footer__cta-block .btn--wa {
  margin-bottom: var(--sp-16);
}

.mechanic-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-24);
  margin-bottom: var(--sp-32);
  text-align: center;
}
.mechanic-profile__img {
  width: clamp(160px, 50vw, 260px);
  height: clamp(160px, 50vw, 260px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid color-mix(in srgb, var(--accent) 70%, white);
  display: block;
  filter: contrast(1.04) saturate(.94);
  transition: transform .8s var(--ease), filter var(--t-mid) var(--ease);
  will-change: transform;
}
.mechanic-profile__img-wrap:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.5),
    0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 62px color-mix(in srgb, var(--accent) 28%, transparent);
}
.mechanic-profile__img-wrap:hover .mechanic-profile__img {
  transform: scale(1.035);
  filter: contrast(1.06) saturate(.98);
}
.mechanic-profile__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
.mechanic-profile__title {
  color: var(--red);
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.mechanic-profile__name {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: var(--lh-title);
  letter-spacing: 0.02em;
}

.footer__actions .footer__ig {
  color: var(--text);
  border-color: var(--line);
}

.footer__actions .footer__ig:hover,
.footer__actions .footer__ig:focus-visible {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* Links rápidos */
.footer__links {
  text-align: center;
}
.footer__links-title {
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-16);
}
.footer__links ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-8) var(--sp-24);
}
.footer__links a {
  font-size: var(--fs-small);
  color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}
.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--text);
}

/* Barra inferior (copyright) */
.footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: var(--sp-24) var(--gutter);
  padding-bottom: calc(var(--sp-24) + 72px); /* espaço para o wa-float não sobrepor */
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
}
@media (min-width: 768px) {
  .footer__bottom {
    padding-bottom: var(--sp-24);
  }
}


/* ─────────────────────────────────────────────────────────
   12. WHATSAPP FLOAT
   ───────────────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: var(--sp-24);
  right: var(--sp-24);
  z-index: 900;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .35);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  animation: wa-pulse 3s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .5);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, .35); }
  50%      { box-shadow: 0 4px 24px rgba(37, 211, 102, .55),
                          0 0 0 10px rgba(37, 211, 102, .08); }
}


/* ─────────────────────────────────────────────────────────
   13. MODAL
   ───────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;         /* card flutuante centralizado */
  justify-content: center;
  padding: var(--sp-16);       /* respiro nas bordas da tela */
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
  pointer-events: none;
}
.modal:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card); /* arredondado em todos os cantos */
  padding: var(--sp-24) var(--sp-16) var(--sp-32);
  transform: translateY(32px);
  transition: transform var(--t-mid) var(--ease);
}
.modal:not([hidden]) .modal__dialog {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--sp-12);
  right: var(--sp-12);
  width: var(--tap);
  height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--muted);
  border-radius: var(--r-btn);
  transition: color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.modal__close:hover,
.modal__close:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.modal__eyebrow {
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-4);
}

.modal__title {
  font-family: var(--ff-display);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-24);
}

/* Indicador de progresso (1 → 2 → 3) */
.modal__progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-32);
}
.modal__progress-step {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--t-mid) var(--ease),
              color var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
}
.modal__progress-step.is-active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.modal__progress-step.is-done {
  background: var(--red-deep);
  color: #fff;
  border-color: var(--red-deep);
}

.modal__progress-bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.modal__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.modal__progress-fill.is-filled {
  transform: scaleX(1);
}

/* Labels */
.modal__label {
  display: block;
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--sp-16);
}
.modal__hint {
  font-family: var(--ff-body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 400;
}

/* Grade de marcas */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}
.brand-grid__btn {
  padding: var(--sp-8) var(--sp-4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 600;
  text-align: center;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  width: 100%;
  letter-spacing: 0.02em;
}
.brand-grid__btn:hover {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .04);
}
.brand-grid__btn.is-selected {
  border-color: var(--red);
  background: rgba(225, 20, 20, .08);
  color: var(--red);
}

/* Campo de busca de modelo */
.search {
  position: relative;
  margin-bottom: var(--sp-12);
}
.search__ico {
  position: absolute;
  left: var(--sp-16);
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search__input {
  width: 100%;
  padding: var(--sp-12) var(--sp-16) var(--sp-12) var(--sp-48);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  color: var(--text);
  font-size: var(--fs-body);
  transition: border-color var(--t-fast) var(--ease);
  min-height: 48px;
}
.search__input::placeholder {
  color: var(--muted);
}
.search__input:focus {
  outline: none;
  border-color: var(--red);
}

/* Lista de modelos */
.model-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-height: 200px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.model-list__item {
  padding: var(--sp-12) var(--sp-16);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  cursor: pointer;
  font-size: var(--fs-small);
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.model-list__item:hover {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .04);
}
.model-list__item.is-selected {
  border-color: var(--red);
  background: rgba(225, 20, 20, .08);
  color: var(--red);
}

/* Textarea */
.modal__textarea {
  width: 100%;
  padding: var(--sp-12) var(--sp-16);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  color: var(--text);
  font-size: var(--fs-body);
  resize: vertical;
  min-height: 80px;
  transition: border-color var(--t-fast) var(--ease);
}
.modal__textarea::placeholder {
  color: var(--muted);
}
.modal__textarea:focus {
  outline: none;
  border-color: var(--red);
}

/* Resumo */
.modal__summary {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: var(--sp-16);
  margin-bottom: var(--sp-16);
  font-size: var(--fs-small);
  line-height: 1.65;
}
.modal__summary strong {
  color: var(--red);
}

/* Ações do modal */
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
  margin-top: var(--sp-24);
}
.modal__actions .btn {
  flex: 1;
  min-width: 0; /* permite encolher */
}

/* No mobile: empilha os botões verticalmente */
@media (max-width: 479px) {
  .modal__actions {
    flex-direction: column;
  }
  .modal__actions .btn {
    width: 100%;
    flex: unset;
  }
}

/* ─────────────────────────────────────────────────────────
   MOBILE MODAL — layout compacto (< 480px)
   Estratégia: 3 colunas + botões menores + ações sticky
   ───────────────────────────────────────────────────────── */
@media (max-width: 479px) {

  /* Dialog ocupa tela, com respiro em volta, scroll interno */
  .modal__dialog {
    max-height: calc(100dvh - 32px); /* respeita o padding do container */
    padding: var(--sp-16) 12px 0; /* zero padding-bottom: ações são sticky */
    display: flex;
    flex-direction: column;
  }

  /* Comprime eyebrow + título */
  .modal__eyebrow {
    font-size: 0.65rem;
    margin-bottom: 2px;
    letter-spacing: 0.12em;
  }
  .modal__title {
    font-size: 1.05rem;
    margin-bottom: var(--sp-12);
  }

  /* Comprime indicador de progresso */
  .modal__progress {
    margin-bottom: var(--sp-16);
  }
  .modal__progress-step {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  /* Label do passo */
  .modal__label {
    font-size: 0.8rem;
    margin-bottom: var(--sp-8);
  }

  /* Conteúdo do passo faz scroll */
  .modal__step {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: var(--sp-8);
  }

  /* ★ GRADE DE MARCAS: 3 colunas compactas */
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .brand-grid__btn {
    min-height: 40px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 2px;
    border-radius: 6px;
    letter-spacing: 0;
    line-height: 1.2;
  }

  /* Lista de modelos mais compacta */
  .model-list {
    max-height: 45dvh;
  }
  .model-list__item {
    min-height: 38px;
    font-size: 0.82rem;
    padding: var(--sp-8) var(--sp-12);
  }

  /* Ações ficam grudadas no fundo — sempre visíveis */
  .modal__actions {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    padding: var(--sp-12) 0 var(--sp-16);
    margin-top: var(--sp-8);
    border-top: 1px solid var(--line);
    flex-direction: row; /* lado a lado quando couber */
    gap: var(--sp-8);
  }
  .modal__actions .btn {
    flex: 1;
    width: auto;
    min-height: 44px;
    font-size: 0.85rem;
    padding: 0 var(--sp-8);
  }
  /* Se tiver 3 botões (Voltar + Continuar + WhatsApp), empilha WhatsApp */
  .modal__actions .btn--wa {
    flex: 0 0 100%;
    order: 3;
  }
}


/* ─────────────────────────────────────────────────────────
   14. SCROLL REVEAL (classes gerenciadas por JS)
   ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger em filhos (para grids de cards) */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay:   0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay:  80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}


/* ─────────────────────────────────────────────────────────
   15a. RESPONSIVE — xs (≤ 359px) telas muito pequenas
   ───────────────────────────────────────────────────────── */
@media (max-width: 359px) {
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
  }
}


/* ─────────────────────────────────────────────────────────
   15. RESPONSIVE — sm (≥ 480px)
   ───────────────────────────────────────────────────────── */
@media (min-width: 480px) {
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ─────────────────────────────────────────────────────────
   16. RESPONSIVE — md (≥ 768px)
   ───────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 72px;
  }

  .cards--pricing {
    grid-template-columns: repeat(2, 1fr);
  }

  .pacotes__notes {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer centralizado no tablet+ */
  .footer__inner {
    align-items: center;
  }
  .footer__cta-block {
    text-align: center;
  }
  .mechanic-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-32);
  }
  .mechanic-profile__info {
    align-items: center;
  }
  .footer__actions {
    justify-content: center;
  }

  /* Modal centralizado no tablet+ */
  .modal {
    align-items: center;
    padding: var(--sp-32);
  }
  .modal__dialog {
    border-radius: var(--r-card);
    margin: auto;
    padding: var(--sp-32);
  }
}


/* ─────────────────────────────────────────────────────────
   17. RESPONSIVE — lg (≥ 1024px)
   ───────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  /* Mostra nav desktop, esconde hamburger */
  .header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--sp-12);
  }
  .nav          { display: flex; }
  .header__cta  { display: inline-flex; }
  .nav-toggle   { display: none; }

  .nav__link {
    font-size: clamp(0.72rem, 1.1vw, var(--fs-small));
  }

  .cards--pricing {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__actions {
    flex-wrap: nowrap;
  }

  .brand-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ─────────────────────────────────────────────────────────
   18. RESPONSIVE — xl (≥ 1200px)
   ───────────────────────────────────────────────────────── */
@media (min-width: 1200px) {
  :root {
    --gutter: 40px;
  }
}


/* ─────────────────────────────────────────────────────────
   19. ACESSIBILIDADE — Reduced Motion
   ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}


/* ─────────────────────────────────────────────────────────
   20. SCROLLBAR (dark theme)
   ───────────────────────────────────────────────────────── */
/* ─────────────────────────────────────────────────────────
   21. ADIÇÕES — Domicílio · Instagram · footer nav
   ───────────────────────────────────────────────────────── */

/* Atendimento a domicílio */
.section--domicilio { background: var(--bg); }
.domicilio {
  position: relative;
  display: grid;
  gap: var(--sp-24);
  background: linear-gradient(135deg, rgba(225, 20, 20, .12), rgba(28, 28, 34, .55));
  border: 1px solid rgba(225, 20, 20, .28);
  border-radius: var(--r-card);
  padding: clamp(24px, 5vw, 56px);
  overflow: hidden;
}
.domicilio__lead {
  margin: var(--sp-16) 0 var(--sp-24);
  color: var(--muted);
  font-size: clamp(0.938rem, 2vw, 1.0625rem);
  line-height: 1.7;
  max-width: 54ch;
}
.domicilio__points {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  margin-bottom: var(--sp-32);
}
.domicilio__points li {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  font-weight: 500;
  font-size: var(--fs-small);
}
.domicilio__points .ico { color: var(--red); }
.domicilio__visual { display: none; }

/* Mecânico — foto e textos */
.mechanic-profile__role {
  color: var(--text);
  font-size: clamp(0.938rem, 1.8vw, 1.05rem);
  font-weight: 600;
  margin-top: var(--sp-8);
  text-align: center;
}
.mechanic-profile__bio {
  color: var(--muted);
  font-size: clamp(0.938rem, 1.8vw, 1.0625rem);
  line-height: 1.6;
  margin-top: var(--sp-8);
  max-width: 42ch;
  text-align: center;
}

/* Ações do rodapé (WhatsApp + Instagram) */
.footer__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  justify-content: center;
  align-items: stretch;
  margin-top: var(--sp-24);
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}

.footer__actions .btn {
  box-sizing: border-box;
  width: 100%;
  height: 64px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 5%;
  font-size: clamp(0.95rem, 3.6vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

@media (min-width: 480px) {
  .footer__actions {
    flex-direction: row;
    align-items: stretch;
    max-width: 520px;
  }

  .footer__actions .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}
/* Ícones dentro dos botões do footer — maiores */
.footer__actions .btn .ico {
  width: 26px !important;
  height: 26px !important;
  flex-shrink: 0;
}

/* Nav do rodapé (links logo acima do copyright) */
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-8) var(--sp-24);
}
.footer__nav a {
  font-size: var(--fs-small);
  color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}
.footer__nav a:hover,
.footer__nav a:focus-visible { color: var(--text); }

@media (min-width: 768px) {
  .domicilio {
    grid-template-columns: 1.5fr 0.5fr;
    align-items: center;
    gap: var(--sp-48);
  }
  .domicilio__visual {
    display: grid;
    place-items: center;
    position: relative;
  }
  .domicilio__art {
    width: clamp(130px, 16vw, 200px);
    opacity: .92;
    filter: drop-shadow(0 8px 30px rgba(225, 20, 20, .4));
  }
  .domicilio__pin {
    position: absolute;
    top: -6px;
    right: 14%;
    color: var(--red);
    background: var(--ink);
    border: 1px solid rgba(225, 20, 20, .45);
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  }
}


::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) var(--ink);
}


/* ─────────────────────────────────────────────────────────
   21. FOCUS GLOBAL
   ───────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ─────────────────────────────────────────────────────────
   22. LOCATION CARD
   ───────────────────────────────────────────────────────── */
.section--localizacao {
  background: var(--bg);
  padding-bottom: clamp(32px, 5vw, 48px);
}

.location-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.location-card__map {
  position: relative;
  background: var(--surface-2);
  height: 280px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* Iframe do Google Maps */
.location-card__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: filter var(--t-mid) var(--ease);
}
.location-card__iframe:hover {
  filter: grayscale(0%) contrast(1);
}

.location-card__content {
  padding: var(--sp-24);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.location-card__name {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.location-card__address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.6;
}

.location-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  margin-top: var(--sp-8);
}

@media (min-width: 768px) {
  .location-card {
    flex-direction: row;
  }
  .location-card__map {
    width: 40%;
    height: auto;
    min-height: 240px;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
  .location-card__content {
    width: 60%;
    padding: var(--sp-32);
    justify-content: center;
  }
  .location-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}


/* ─────────────────────────────────────────────────────────
   23. OFICINA EDITORIAL
   ───────────────────────────────────────────────────────── */
.oficina-editorial {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
  max-width: 100%;
}

.oficina-editorial__content {
  max-width: 52ch;
}

.oficina-editorial__gallery {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 100%;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.oficina-editorial__gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  z-index: 2;
}

.oficina-editorial__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  width: 100%;
}

.oficina-editorial__strip img {
  width: 100%;
  height: clamp(72px, 14vw, 120px);
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.04) saturate(1.02);
  transition: transform 1s var(--ease), filter var(--t-mid) var(--ease);
  will-change: transform;
}

.oficina-editorial__seal {
  position: absolute;
  bottom: var(--sp-8);
  left: var(--sp-8);
  padding: var(--sp-4) var(--sp-8);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--shell-bg) 82%, transparent);
  color: var(--shell-text);
  border: 1px solid var(--shell-line);
  border-radius: var(--r-pill);
  z-index: 3;
}

@media (max-width: 520px) {
  .oficina-editorial__strip {
    grid-template-columns: 1fr;
  }
  .oficina-editorial__strip img {
    height: clamp(88px, 28vw, 120px);
  }
}

.oficina-editorial__subtitle {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-title);
  text-transform: uppercase;
  margin-bottom: var(--sp-12);
}

.oficina-editorial__text {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--sp-16);
  font-size: var(--fs-small);
}

.oficina-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8) var(--sp-20);
  margin: 0;
}

.oficina-checklist li {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: var(--fs-xs);
  font-weight: 500;
}

@media (min-width: 768px) {
  .oficina-editorial {
    gap: var(--sp-20);
  }
}


/* ─────────────────────────────────────────────────────────
   24. SOLUÇÕES LAYOUT
   ───────────────────────────────────────────────────────── */
.solucoes-layout {
  display: grid;
  gap: var(--sp-24);
}

.solucoes-col__title {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-title);
  text-transform: uppercase;
  margin-bottom: var(--sp-16);
}

.solucoes-list {
  display: grid;
  gap: var(--sp-12);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.65;
}

.solucoes-list--numbered li {
  display: flex;
  gap: var(--sp-12);
  align-items: flex-start;
}

.solucoes-list--numbered span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(225, 20, 20, .12);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--fs-xs);
}

.solucoes-media {
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-elevated);
}

.solucoes-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.04) saturate(.98);
  transition: transform 1.1s var(--ease), filter var(--t-mid) var(--ease);
  will-change: transform;
}
.solucoes-media:hover img {
  transform: scale(1.035);
  filter: contrast(1.06) saturate(1);
}

.solucoes-highlight {
  margin-top: var(--sp-24);
  padding: var(--card-padding);
  background: rgba(225, 20, 20, .08);
  border: 1px solid rgba(225, 20, 20, .22);
  border-radius: var(--r-card);
}

.solucoes-highlight h4 {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-title);
  margin-bottom: var(--sp-8);
}

.solucoes-highlight p {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.65;
}

.solucoes-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-12);
}

.solucoes-mini__item {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-16);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.solucoes-mini__item strong {
  color: var(--text);
  font-size: var(--fs-small);
}

.solucoes-mini__icon {
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

@media (min-width: 768px) {
  .solucoes-layout {
    grid-template-columns: 1fr 0.9fr 1fr;
    grid-template-areas:
      "symptoms media diag"
      "mini mini mini";
    gap: var(--sp-32);
  }
  .solucoes-col--symptoms { grid-area: symptoms; }
  .solucoes-media { grid-area: media; }
  .solucoes-col--diag { grid-area: diag; }
  .solucoes-mini { grid-area: mini; grid-template-columns: repeat(4, 1fr); }
}


/* ─────────────────────────────────────────────────────────
   25. FOOTER PREMIUM
   ───────────────────────────────────────────────────────── */
.footer__brand-block {
  text-align: center;
  max-width: 640px;
  width: 100%;
}

.footer__institutional {
  color: var(--muted);
  font-size: clamp(0.938rem, 2vw, 1rem);
  line-height: 1.7;
  margin: 0 0 var(--sp-12);
}

.footer__seal {
  display: inline-block;
  padding: var(--sp-8) var(--sp-16);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
}

.footer__grid {
  display: grid;
  gap: var(--sp-48);
  width: 100%;
  align-items: start;
}

.footer__cta-block {
  text-align: center;
}

.footer__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-12);
  margin-top: var(--sp-24);
}

.footer__links ul {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-12);
}

@media (min-width: 768px) {
  .footer__inner {
    align-items: stretch;
  }
  .footer__grid {
    grid-template-columns: 1.4fr 0.6fr;
    gap: var(--sp-64);
  }
  .footer__brand-block {
    text-align: left;
    max-width: none;
  }
  .mechanic-profile {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  .mechanic-profile__info {
    align-items: flex-start;
  }
  .mechanic-profile__role,
  .mechanic-profile__bio {
    text-align: left;
  }
  .footer__actions {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
  }
  .footer__links {
    text-align: left;
  }
  .footer__links ul {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  :root {
    --fs-hero: clamp(2.15rem, 7.2vw, 3.05rem);
  }
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + var(--sp-32));
    padding-bottom: calc(var(--sp-48) + 44px);
    align-items: flex-start;
  }
  .hero .eyebrow {
    font-size: clamp(0.72rem, 2.5vw, 0.9rem);
    letter-spacing: 0.18em;
    line-height: 1.45;
  }
  .hero__title {
    line-height: 1.16;
    margin-bottom: var(--sp-16);
  }
  .hero__subtitle {
    font-size: 0.95rem;
    line-height: 1.58;
    margin-bottom: var(--sp-24);
    max-width: 36ch;
  }
  .hero__actions {
    margin-bottom: var(--sp-32);
  }
  .hero__trust {
    gap: var(--sp-8) var(--sp-16);
  }
  .wa-float {
    width: 48px;
    height: 48px;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  .wa-float svg {
    width: 22px;
    height: 22px;
  }
  .brand__name {
    font-size: 0.9rem;
  }

  /* Alvos de toque ≥44px (§4): links de texto do rodapé ganham altura mínima
     sem inflar a fonte; remove o flash de toque azul nativo. */
  a, button { -webkit-tap-highlight-color: transparent; }
  .footer__links a,
  .footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
  }
}

@media (max-width: 430px) {
  .brand {
    gap: 6px;
  }
  .brand__mark {
    width: 34px;
  }
  .brand__name {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }
  .hero {
    padding-top: calc(var(--header-h) + var(--sp-24));
    padding-bottom: calc(var(--sp-64) + 40px);
  }
  .hero__title {
    font-size: clamp(2rem, 8.4vw, 2.35rem);
  }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }
  .wa-float {
    width: 44px;
    height: 44px;
  }
}
