/* ==========================================================================
   STOFCAR — Design tokens
   ========================================================================== */
:root {
  --bg: #0c0c0d;
  --bg-alt: #111213;
  --surface: #1a1b1d;
  --surface-2: #201f1a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f1ec;
  --muted: #a7a49d;

  --gold-1: #f2c879;
  --gold-2: #b3812f;
  --gold: #d8ab5c;
  --red: #a8352a;
  --red-hover: #8f2b22;

  --font-display: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1180px;
  --radius: 14px;
  --transition: 0.35s cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-hover) 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(168, 53, 42, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(168, 53, 42, 0.75); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg { padding: 18px 40px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12, 12, 13, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.header.scrolled {
  background: rgba(12, 12, 13, 0.92);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand__logo {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a {
  position: relative;
  color: var(--muted);
  transition: color var(--transition);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header__cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
  margin: 0 auto;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 32%;
  transform: scale(1.05);
  filter: saturate(1.02) contrast(1.03);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,9,0.35) 0%, rgba(8,8,9,0.6) 50%, rgba(8,8,9,0.95) 100%),
    linear-gradient(90deg, rgba(8,8,9,0.88) 0%, rgba(8,8,9,0.3) 62%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow--center { display: block; text-align: center; }

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: 22px;
}
.hero__title span { color: var(--gold); }

.hero__subtitle {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero__tags {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__tags li {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section {
  padding: 110px 0;
}
.section--dark { background: var(--bg-alt); }

.section__title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  max-width: 20ch;
  margin: 0 auto 16px;
}
.section__lede {
  text-align: center;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 56px;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 171, 92, 0.4);
}
.service-card--highlight {
  border-color: rgba(216, 171, 92, 0.5);
  background: linear-gradient(180deg, rgba(216,171,92,0.08), var(--surface) 40%);
}

.service-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.service-card__intro {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.service-card ul { display: flex; flex-direction: column; gap: 9px; }
.service-card li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   Before / After sliders
   ========================================================================== */
.sliders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 20px;
}

.ba-slider__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}

.ba-slider__img {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.ba-slider__img--after { z-index: 1; }
.ba-slider__img--before { z-index: 2; }
/* horizontal composite (Antes | Depois side-by-side, same source image) */
.ba-slider[data-orientation="horizontal"] .ba-slider__img--before {
  background-size: 200% 100%;
  background-position: left top;
}
.ba-slider[data-orientation="horizontal"] .ba-slider__img--after {
  background-size: 200% 100%;
  background-position: right top;
}
/* vertical composite (Antes / Depois top-to-bottom) */
.ba-slider[data-orientation="vertical"] .ba-slider__img--before {
  background-size: 100% 200%;
  background-position: center top;
}
.ba-slider[data-orientation="vertical"] .ba-slider__img--after {
  background-size: 100% 200%;
  background-position: center bottom;
}

.ba-slider__img--before {
  clip-path: inset(0 50% 0 0);
}

.ba-slider__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--gold);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}
.ba-slider__handle-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.5);
}

.ba-slider__label {
  position: absolute;
  top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 4;
}
.ba-slider__label--left { left: 16px; }
.ba-slider__label--right { right: 16px; color: var(--gold); }

.ba-slider__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  z-index: 5;
}
.ba-slider__range::-webkit-slider-runnable-track {
  width: 100%;
  height: 100%;
  background: transparent;
}
.ba-slider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: ew-resize;
}
.ba-slider__range::-moz-range-track {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
}
.ba-slider__range::-moz-range-thumb {
  width: 44px;
  height: 100%;
  border: none;
  background: transparent;
  cursor: ew-resize;
}

.ba-slider__caption {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Why us
   ========================================================================== */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why__lede {
  margin-top: 16px;
  color: var(--muted);
  max-width: 40ch;
}
.why__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.why__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.why__icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(216,171,92,0.15);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ==========================================================================
   Como funciona
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}
.step {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
}
.step p { font-size: 0.98rem; }

/* ==========================================================================
   Quote form
   ========================================================================== */
.quote-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; }
.field__hint { font-size: 0.78rem; color: var(--muted); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.gallery__item {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  width: 100%;
  max-width: 420px;
}
.gallery__item--wide { width: 100%; max-width: 100%; aspect-ratio: 3 / 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item--contain img { object-fit: contain; }
.gallery__item:hover img { transform: scale(1.06); }

/* ==========================================================================
   Location
   ========================================================================== */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.location__info { display: flex; flex-direction: column; gap: 14px; align-self: center; }
.location__address { font-size: 1.05rem; }
.location__coverage { color: var(--muted); margin-bottom: 10px; }
.location__map {
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ==========================================================================
   Instagram
   ========================================================================== */
.instagram {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  padding: 120px 0;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(216,171,92,0.12), transparent),
    var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cta-final h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: 18ch;
}
.cta-final p:not(.cta-final__phone) {
  color: var(--muted);
  max-width: 40ch;
}
.cta-final__phone {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.footer__logo { height: 40px; border-radius: 6px; }
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer__links a:hover { color: var(--gold); }
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: right;
}
.footer__contact a:hover { color: var(--gold); }
.footer__disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ==========================================================================
   Floating WhatsApp + mobile bar
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e8e5a;
  color: #fff;
  padding: 14px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.6);
  transition: transform var(--transition), padding var(--transition);
}
.whatsapp-float span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  transition: max-width var(--transition);
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  padding: 14px 20px;
}
.whatsapp-float:hover span { max-width: 220px; }

.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(12,12,13,0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-group .reveal:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr; }
  .sliders { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .location { grid-template-columns: 1fr; }
  .location__map { min-height: 280px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(12,12,13,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }

  .header__cta { display: none; }
  .menu-toggle { display: flex; }

  .hero__content { padding-top: 120px; }
  .hero__overlay {
    background: rgba(8,8,9,0.86);
  }
  .quote-form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__contact { text-align: left; }

  .whatsapp-float span { display: none; }
  .whatsapp-float:hover { padding: 14px; }
  .mobile-bar { display: block; }
  .section { padding: 80px 0; }
  body { padding-bottom: 78px; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .quote-form { padding: 26px 20px; }
}
