/* ==========================================================================
   SnapDoor — Garage Door Services Perth
   Folha de estilo unica. Ordem: tokens > reset > layout > componentes > paginas.
   Para mudar a identidade visual, mexa apenas no bloco :root abaixo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marca (extraida do site atual) */
  --brand-orange:      #FD982D;
  --brand-orange-dark: #E8811A;
  --brand-orange-soft: #FFF3E4;
  --brand-slate:       #243641;
  --brand-slate-dark:  #1A2830;
  --brand-ink:         #121A1F;

  /* Neutros */
  --white:    #FFFFFF;
  --grey-50:  #F8F9FA;
  --grey-100: #F1F3F4;
  --grey-200: #E6E5E4;
  --grey-300: #D3D6D8;
  --grey-500: #7A8891;
  --grey-700: #48565F;

  /* Semanticos */
  --danger:  #D93025;
  --success: #1E8E3E;
  --star:    #FFB400;

  /* Superficies */
  --bg:         var(--white);
  --bg-alt:     var(--grey-50);
  --text:       var(--brand-ink);
  --text-muted: var(--grey-700);
  --border:     var(--grey-200);

  /* Tipografia */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala fluida — encolhe sozinha no mobile, sem media query */
  --step--1: clamp(0.83rem, 0.79rem + 0.19vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.24vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.39vw, 1.44rem);
  --step-2:  clamp(1.44rem, 1.31rem + 0.63vw, 1.83rem);
  --step-3:  clamp(1.73rem, 1.53rem + 0.98vw, 2.33rem);
  --step-4:  clamp(2.07rem, 1.77rem + 1.48vw, 2.96rem);
  --step-5:  clamp(2.49rem, 2.04rem + 2.19vw, 3.76rem);

  /* Espacamento (base 4px) */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;

  /* Forma */
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(18,26,31,.06), 0 1px 3px rgba(18,26,31,.08);
  --shadow:    0 4px 12px rgba(18,26,31,.08), 0 2px 4px rgba(18,26,31,.04);
  --shadow-lg: 0 18px 40px rgba(18,26,31,.14), 0 4px 12px rgba(18,26,31,.06);
  --shadow-orange: 0 8px 24px rgba(253,152,45,.35);

  --container: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand-orange); color: var(--brand-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Acessibilidade: visivel apenas 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 {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--brand-orange); color: var(--brand-ink);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--brand-slate); color: var(--white); }
.section--dark p { color: rgba(255,255,255,.78); }

.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Cabecalho de secao */
.section-head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-orange-dark);
  margin-bottom: var(--sp-3);
}
.section--dark .eyebrow { color: var(--brand-orange); }
.section-head p { color: var(--text-muted); font-size: var(--step-1); margin-top: var(--sp-4); }

/* --------------------------------------------------------------------------
   4. Botoes
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  min-height: 50px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn--primary {
  background: var(--brand-orange); color: var(--brand-ink);
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover { background: var(--brand-orange-dark); }

.btn--dark { background: var(--brand-slate); color: var(--white); }
.btn--dark:hover { background: var(--brand-slate-dark); }

.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

.btn--outline { border-color: var(--border); background: var(--white); }
.btn--outline:hover { border-color: var(--brand-orange); background: var(--brand-orange-soft); }

.btn--lg { min-height: 58px; padding-inline: var(--sp-6); font-size: var(--step-1); }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--brand-slate-dark); color: rgba(255,255,255,.85);
  font-size: var(--step--1);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-5);
  min-height: 40px; flex-wrap: wrap; text-align: center;
}
.topbar strong { color: var(--white); }
.topbar__dot { color: var(--brand-orange); }
@media (max-width: 720px) { .topbar__hide-sm { display: none; } }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  min-height: var(--header-h);
}
.header__logo img { height: 42px; width: auto; }

.nav { display: none; }
@media (min-width: 1024px) { .nav { display: flex; align-items: center; gap: var(--sp-2); } }

.nav__link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  border-radius: var(--radius-pill);
  color: var(--brand-slate);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--grey-100); }
.nav__link[aria-current="page"] { color: var(--brand-orange-dark); }
.nav__caret { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

/* Dropdown de servicos */
.nav__item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 340px; padding: var(--sp-3);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__link {
  display: block; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  transition: background-color .15s var(--ease);
}
.dropdown__link:hover { background: var(--brand-orange-soft); }
.dropdown__link strong {
  display: block; font-family: var(--font-display); font-size: var(--step-0);
  color: var(--brand-slate);
}
.dropdown__link span { display: block; font-size: var(--step--1); color: var(--text-muted); }

.header__cta { display: none; }
@media (min-width: 640px) { .header__cta { display: inline-flex; } }

/* Botao hamburguer */
.burger {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger span {
  display: block; width: 22px; height: 2px; background: var(--brand-slate);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--white);
  padding: calc(var(--header-h) + var(--sp-6)) var(--sp-5) var(--sp-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }
.mobile-menu a {
  display: block; padding: var(--sp-4) 0;
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .mobile-menu__sub {
  font-size: var(--step-0); font-weight: 500; padding-left: var(--sp-5);
  color: var(--text-muted);
}
.mobile-menu__actions { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--brand-slate-dark);   /* mesmo tom da faixa do topo */
  color: var(--white);
  overflow: hidden;
}
.hero::after { /* brilho quente atras do conteudo */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 15% 20%, rgba(253,152,45,.20), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: var(--sp-7);
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--sp-8); }
}
.hero h1 { color: var(--white); }
.hero__lead {
  font-size: var(--step-2); color: rgba(255,255,255,.82);
  margin-top: var(--sp-5); max-width: 46ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
/* Vitrine do hero: fotos do site que passam sozinhas (ritmo em main.js #11).
   Quem marca o tempo e a barrinha do ponto ativo; congelar a barra = pausar. */
.hero-reel { --reel-time: 5.5s; min-width: 0; }
.hero-reel [hidden] { display: none !important; }   /* setas e pontos so com JS */
.hero-reel__frame {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.35);
  background: var(--brand-ink);
}
.hero-reel__slide {
  position: absolute; inset: 0; display: block;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s .9s;
}
.hero-reel__slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity .9s var(--ease), visibility 0s 0s;
}
.hero-reel__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-reel__slide.is-active img { animation: reel-zoom calc(var(--reel-time) + 1s) ease-out both; }
@keyframes reel-zoom { from { scale: 1.08; } to { scale: 1; } }

.hero-reel__cap {
  position: absolute; left: var(--sp-4); bottom: var(--sp-4);
  max-width: calc(100% - 2 * var(--sp-4));
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(18,26,31,.78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  color: var(--white); line-height: 1.25;
}
.hero-reel__cap small {
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand-orange);
}
.hero-reel__cap strong {
  grid-column: 1; font-family: var(--font-display); font-size: var(--step-1); font-weight: 700;
}
.hero-reel__cap svg {
  grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px;
  color: var(--brand-orange); transition: translate .25s var(--ease);
}
@media (max-width: 599px) {
  .hero-reel__cap {
    left: var(--sp-3); bottom: var(--sp-3); max-width: calc(100% - 2 * var(--sp-3));
    padding: var(--sp-2) var(--sp-3); column-gap: var(--sp-3);
  }
  .hero-reel__cap small { font-size: .7rem; }
  .hero-reel__cap strong { font-size: var(--step-0); }
  .hero-reel__cap svg { width: 18px; height: 18px; }
}
.hero-reel__slide:hover .hero-reel__cap svg,
.hero-reel__slide:focus-visible .hero-reel__cap svg { translate: 4px 0; }
.hero-reel__slide:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: -3px; border-radius: var(--radius-lg); }

/* setas discretas nas laterais da foto */
.hero-reel__arrow {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  display: grid; place-items: center; width: 40px; height: 40px;
  padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  background: rgba(18,26,31,.4); color: var(--white); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: .7; transition: opacity .2s, background-color .2s, color .2s, border-color .2s;
}
.hero-reel__arrow--prev { left: var(--sp-3); }
.hero-reel__arrow--next { right: var(--sp-3); }
.hero-reel__arrow svg { width: 20px; height: 20px; }
.hero-reel__frame:hover .hero-reel__arrow { opacity: 1; }
.hero-reel__arrow:hover {
  background: var(--brand-orange); border-color: var(--brand-orange); color: var(--brand-ink);
}
.hero-reel__arrow:focus-visible { opacity: 1; outline: 2px solid var(--brand-orange); outline-offset: 2px; }
@media (max-width: 599px) {
  .hero-reel__arrow { width: 34px; height: 34px; }
  .hero-reel__arrow--prev { left: var(--sp-2); }
  .hero-reel__arrow--next { right: var(--sp-2); }
  .hero-reel__arrow svg { width: 18px; height: 18px; }
}

.hero-reel__nav { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.hero-reel__dots { display: flex; flex-wrap: wrap; }
/* botao de 24px (area de toque) com o ponto desenhado no <span> */
.hero-reel__dot {
  display: grid; place-items: center; width: 24px; height: 24px;
  padding: 0; border: 0; background: none; cursor: pointer;
  transition: width .3s var(--ease);
}
.hero-reel__dot span {
  position: relative; display: block; width: 8px; height: 8px; overflow: hidden;
  border-radius: var(--radius-pill); background: rgba(255,255,255,.3);
  transition: width .3s var(--ease), background-color .2s;
}
.hero-reel__dot:hover span { background: rgba(255,255,255,.6); }
.hero-reel__dot.is-active { width: 44px; }
.hero-reel__dot.is-active span { width: 32px; background: rgba(255,255,255,.25); }
.hero-reel__dot.is-active span::after {
  content: ""; position: absolute; inset: 0; background: var(--brand-orange);
  transform-origin: left; animation: reel-progress var(--reel-time) linear both;
}
@keyframes reel-progress { from { scale: 0 1; } to { scale: 1 1; } }
.hero-reel__dot:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; border-radius: var(--radius-sm); }

/* pausa: botao (ou foco pelo teclado, ver main.js), hero fora da tela ou mouse
   em cima (so onde ha mouse — no celular o :hover "gruda" depois do toque) */
.hero-reel.is-paused .hero-reel__dot span::after, .hero-reel.is-paused .hero-reel__slide img,
.hero-reel.is-offscreen .hero-reel__dot span::after, .hero-reel.is-offscreen .hero-reel__slide img {
  animation-play-state: paused;
}
@media (hover: hover) {
  .hero-reel:hover .hero-reel__dot span::after, .hero-reel:hover .hero-reel__slide img {
    animation-play-state: paused;
  }
}

.hero-reel__pause {
  display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto;
  padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  background: none; color: rgba(255,255,255,.8); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.hero-reel__pause:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.hero-reel__pause:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
.hero-reel__pause svg { width: 14px; height: 14px; }
.hero-reel__ico-play { fill: currentColor; }
.hero-reel__pause[aria-pressed="true"] .hero-reel__ico-pause,
.hero-reel__pause[aria-pressed="false"] .hero-reel__ico-play { display: none; }

/* "reduzir movimento": nada passa sozinho (sem barrinha nao ha troca) */
@media (prefers-reduced-motion: reduce) {
  .hero-reel__slide, .hero-reel__slide.is-active { transition: none; }
  .hero-reel__slide.is-active img, .hero-reel__dot.is-active span::after { animation: none; }
  .hero-reel__dot.is-active span { background: var(--brand-orange); }
  .hero-reel__pause { display: none; }
}

/* Selo de emergencia pulsante */
.badge-emergency {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(217,48,37,.15);
  border: 1px solid rgba(217,48,37,.4);
  border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: #FFB4AE;
}
.badge-emergency::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #FF5449; box-shadow: 0 0 0 0 rgba(255,84,73,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(255,84,73,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,84,73,0); }
}

/* Faixa de provas rapidas */
.trust-strip { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.trust-strip li {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-pill);
  font-size: var(--step--1); font-weight: 500;
}
.trust-strip svg { width: 16px; height: 16px; color: var(--brand-orange); flex-shrink: 0; }

/* Hero das paginas internas */
.page-hero {
  background: var(--brand-slate); color: var(--white);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 85% 10%, rgba(253,152,45,.18), transparent 60%);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 70ch; }
.page-hero h1 { font-size: var(--step-4); margin-block: var(--sp-3); }
.page-hero p { color: rgba(255,255,255,.8); font-size: var(--step-1); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  font-size: var(--step--1); color: rgba(255,255,255,.6);
}
.breadcrumb a:hover { color: var(--brand-orange); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: var(--sp-2); opacity: .5; }

/* --------------------------------------------------------------------------
   7. Diagnostico por sintoma
   -------------------------------------------------------------------------- */
.symptoms { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px)  { .symptoms { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .symptoms { grid-template-columns: repeat(6, 1fr); } }

.symptom {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--sp-3); padding: var(--sp-5) var(--sp-3);
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease);
}
.symptom:hover {
  transform: translateY(-4px);
  border-color: var(--brand-orange);
  box-shadow: var(--shadow);
}
.symptom__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-orange-soft); color: var(--brand-orange-dark);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.symptom:hover .symptom__icon { background: var(--brand-orange); color: var(--brand-ink); }
.symptom__icon svg { width: 28px; height: 28px; }
.symptom span {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-100); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; gap: var(--sp-3); }
.card__body > p { color: var(--text-muted); font-size: var(--step--1); }
.card__list { display: grid; gap: var(--sp-2); font-size: var(--step--1); margin-top: var(--sp-1); }
.card__list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.card__list svg {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px;
  color: var(--brand-orange-dark);
}
.card__foot { margin-top: auto; padding-top: var(--sp-4); }
.card__link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 600; color: var(--brand-orange-dark);
}
.card__link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Card de detalhe (servico / reparo / peca) */
.detail-card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  border-top: 3px solid var(--brand-orange);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.detail-card__tag {
  align-self: flex-start;
  padding: 2px var(--sp-3);
  background: var(--brand-orange-soft); color: var(--brand-orange-dark);
  border-radius: var(--radius-pill);
  font-size: var(--step--1); font-weight: 600;
}
.detail-card h3 { font-size: var(--step-1); }
.detail-card p { color: var(--text-muted); font-size: var(--step--1); }
.detail-card__media {
  aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--grey-100); margin-bottom: var(--sp-1);
}
.detail-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   9. Antes / Depois (slider arrastavel)
   -------------------------------------------------------------------------- */
.compare-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 700px)  { .compare-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .compare-grid { grid-template-columns: repeat(3, 1fr); } }

.compare {
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.compare__stage {
  position: relative; aspect-ratio: 4 / 3;
  overflow: hidden; cursor: ew-resize;
  touch-action: pan-y; user-select: none;
  background: var(--grey-100);
}
.compare__stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
/* A imagem "depois" fica por cima, revelada pelo clip */
.compare__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare__label {
  position: absolute; bottom: var(--sp-3); z-index: 2;
  padding: 2px var(--sp-3);
  font-size: var(--step--1); font-weight: 600;
  border-radius: var(--radius-pill);
  background: rgba(18,26,31,.72); color: var(--white);
  pointer-events: none;
}
.compare__label--before { left: var(--sp-3); }
.compare__label--after  { right: var(--sp-3); background: rgba(253,152,45,.95); color: var(--brand-ink); }

.compare__handle {
  position: absolute; top: 0; bottom: 0; z-index: 3;
  left: var(--pos, 50%);
  width: 3px; margin-left: -1.5px;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0,0,0,.4);
  pointer-events: none;
}
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background-color: var(--white); box-shadow: var(--shadow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23243641' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18-6-6 6-6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
/* Input range invisivel por cima — garante teclado e leitores de tela */
.compare__range {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.compare__range:focus-visible ~ .compare__handle::after { outline: 3px solid var(--brand-orange); }
.compare__caption { padding: var(--sp-4) var(--sp-5); }
.compare__caption strong { display: block; font-family: var(--font-display); }
.compare__caption span { font-size: var(--step--1); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   10. Passos / preco / marcas
   -------------------------------------------------------------------------- */
/* Numero centralizado em cima de cada passo; no desktop uma linha tracejada
   liga um numero ao outro */
.steps {
  counter-reset: step; display: grid; gap: var(--sp-7);
  max-width: 1080px; margin-inline: auto;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); } }
.step {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: relative; z-index: 1;
  display: grid; place-items: center; flex-shrink: 0;
  width: 56px; height: 56px; margin-bottom: var(--sp-5);
  border-radius: 50%;
  background: var(--brand-orange); color: var(--brand-ink);
  box-shadow: 0 0 0 8px var(--brand-orange-soft);
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; line-height: 1;
}
@media (min-width: 800px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 28px;
    /* da borda do anel deste numero ate a do proximo (coluna + gap) */
    left: calc(50% + 44px); width: calc(100% + var(--sp-6) - 88px);
    border-top: 2px dashed rgba(36,54,65,.22);
  }
}
.step h3 { font-size: var(--step-1); }
.step p { color: var(--text-muted); margin-top: var(--sp-3); max-width: 34ch; }

.price-card {
  display: grid; gap: var(--sp-6);
  padding: var(--sp-6);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
@media (min-width: 800px) { .price-card { grid-template-columns: minmax(190px, auto) 1fr; align-items: center; } }
.price-tag { text-align: center; }
@media (min-width: 800px) { .price-tag { border-right: 1px solid var(--border); padding-right: var(--sp-6); } }
.price-tag__from { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.price-tag__value {
  /* flex + align-items:flex-start alinha o cifrao ao topo dos digitos sem
     precisar de position:relative — que antes subia o "$" por cima do label */
  display: flex; align-items: flex-start; justify-content: center; gap: 2px;
  font-family: var(--font-display); font-size: var(--step-5); font-weight: 700;
  color: var(--brand-slate); line-height: 1;
  margin-block: var(--sp-2);
}
.price-tag__value sup { font-size: .45em; line-height: 1.15; position: static; top: auto; }
.price-tag__unit { font-size: var(--step-0); color: var(--text-muted); }

.brands {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--sp-6) clamp(var(--sp-5), 4vw, var(--sp-8));
}
/* --h vem do BRANDS em content.py (altura de cada logo) */
.brands img {
  height: var(--h, 64px); width: auto; max-width: 190px; object-fit: contain;
  filter: grayscale(1); opacity: .75;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.brands img:hover { filter: none; opacity: 1; }
/* celular: logos menores, ate 4 por linha (7 marcas = 4 + 3) */
@media (max-width: 599px) {
  .brands { gap: var(--sp-5) var(--sp-4); }
  .brands img { height: calc(var(--h, 64px) * .7); max-width: calc(25% - var(--sp-4)); }
}

/* --------------------------------------------------------------------------
   11. Avaliacoes e depoimentos
   -------------------------------------------------------------------------- */
.rating-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--sp-4) var(--sp-6); text-align: center;
}
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 22px; height: 22px; }

.reviews {
  display: grid; gap: var(--sp-5);
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 1fr);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-4);
  scrollbar-width: thin;
}
.reviews > * { scroll-snap-align: start; }
@media (min-width: 1024px) {
  .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}
.review {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.review__text { font-size: var(--step--1); color: var(--text-muted); flex: 1; }
.review__author { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.review__avatar {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-slate); color: var(--white);
  font-family: var(--font-display); font-weight: 600;
}
.review__name { font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); }
.review__source { font-size: .78rem; color: var(--grey-500); }

.reviews-hint {
  text-align: center; font-size: var(--step--1); color: var(--text-muted);
  margin-top: var(--sp-3);
}
@media (min-width: 1024px) { .reviews-hint { display: none; } }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--brand-orange); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display); font-weight: 600;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0;
  width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FD982D' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { background: var(--grey-50); }
.faq__answer { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   13. Formularios
   -------------------------------------------------------------------------- */
.form-card {
  padding: var(--sp-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.form-card__head { margin-bottom: var(--sp-5); }
.form-card__head h3 { font-size: var(--step-2); }
.form-card__head p { color: var(--text-muted); font-size: var(--step--1); margin-top: var(--sp-2); }

.form-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 560px) { .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: var(--sp-2); align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 600; font-family: var(--font-display); }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  min-height: 50px;
  background: var(--grey-50);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), background-color .18s var(--ease),
              box-shadow .18s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348565F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 20px;
  padding-right: var(--sp-7);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(253,152,45,.18);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--danger); background: #FEF6F5;
}
.field__error { font-size: var(--step--1); color: var(--danger); }
.field__hint  { font-size: .78rem; color: var(--text-muted); }

/* Honeypot — invisivel para humanos, preenchido por bots */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok  { background: #E8F5EA; color: #14622C; border: 1px solid #B7E0C0; }
.form-status--err { background: #FDECEA; color: #8C1D18; border: 1px solid #F5C6C2; }

/* O card e branco mesmo dentro de uma secao escura: sem isto o
   ".section--dark p" pintava de branco o aviso, os erros e a dica do rodape */
.form-card p { color: var(--text-muted); }
.form-card .field__error { color: var(--danger); }
.form-card .form-status--ok  { color: #14622C; }
.form-card .form-status--err { color: #8C1D18; }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::before {
  content: ""; width: 18px; height: 18px;
  border: 2.5px solid rgba(18,26,31,.25);
  border-top-color: var(--brand-ink);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Bloco com texto de um lado e formulario do outro */
.contact-split { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 960px) { .contact-split { grid-template-columns: 1fr 1.05fr; gap: var(--sp-8); } }

.contact-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
.contact-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-list__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(253,152,45,.15); color: var(--brand-orange);
}
.contact-list__icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-display); color: var(--white); }
.contact-list a:hover { color: var(--brand-orange); }
.contact-list--light .contact-list__icon { background: var(--brand-orange-soft); color: var(--brand-orange-dark); }
.contact-list--light strong { color: var(--text); }

/* --------------------------------------------------------------------------
   14. Footer + barra fixa mobile
   -------------------------------------------------------------------------- */
.footer {
  background: var(--brand-slate-dark); color: rgba(255,255,255,.72);
  padding-block: var(--sp-8) var(--sp-6);
  font-size: var(--step--1);
}
.footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 700px)  { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-7); } }
.footer h4 { color: var(--white); font-size: var(--step-0); margin-bottom: var(--sp-4); }
.footer__logo { display: inline-block; margin-bottom: var(--sp-4); }
.footer__logo img { height: 36px; width: auto; }
.footer ul { display: grid; gap: var(--sp-3); }
.footer a:hover { color: var(--brand-orange); }
.footer__social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer__social a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.footer__social a:hover { background: var(--brand-orange); color: var(--brand-ink); transform: translateY(-2px); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between; align-items: center;
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }

/* Barra fixa de acao no mobile */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 98;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(18,26,31,.1);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) { .action-bar { display: none; } }
@media (max-width: 767px) { body { padding-bottom: 68px; } }

.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: var(--sp-3) var(--sp-2);
  font-size: .72rem; font-weight: 600; font-family: var(--font-display);
  color: var(--brand-slate);
}
.action-bar a + a { border-left: 1px solid var(--border); }
.action-bar svg { width: 22px; height: 22px; }
.action-bar .is-primary { background: var(--brand-orange); color: var(--brand-ink); }
.action-bar .is-whatsapp { color: #128C4B; }

/* --------------------------------------------------------------------------
   15. Conteudo de texto longo (paginas legais)
   -------------------------------------------------------------------------- */
.prose { max-width: 75ch; }
.prose h2 {
  font-size: var(--step-2); margin-top: var(--sp-7); margin-bottom: var(--sp-3);
  padding-top: var(--sp-5); border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose p { margin-bottom: var(--sp-4); color: var(--text-muted); }
.prose ul { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.prose li { display: flex; gap: var(--sp-3); color: var(--text-muted); }
.prose li::before {
  content: ""; flex-shrink: 0; margin-top: .6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-orange);
}
.prose li p { margin-bottom: var(--sp-2); }
.prose strong { color: var(--text); }
.prose a { color: var(--brand-orange-dark); text-decoration: underline; }
.prose__updated {
  display: inline-block; margin-bottom: var(--sp-6);
  padding: var(--sp-2) var(--sp-4);
  background: var(--grey-100); border-radius: var(--radius-pill);
  font-size: var(--step--1); color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   16. Reveal on scroll (progressivo — sem JS o conteudo aparece normalmente)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
