/* ==========================================================================
   Auto Peças Modelo — estilos complementares ao Tailwind (CDN)
   Paleta: primária #C1121F · secundária #1F2937 · fundo #F9FAFB · texto #111827
   ========================================================================== */

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* compensa o menu fixo ao navegar por âncoras */
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #C1121F;
  color: #fff;
}

[x-cloak] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #C1121F;
  outline-offset: 3px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 2rem;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: 9999px;
  background: #111827;
  color: #fff;
  font-weight: 600;
  transition: top .2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Ícones (sprite SVG no topo do index.html) ---------- */
.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-thin {
  stroke-width: 1.6;
}

.ico-fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Tipografia ---------- */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4B5563;
}

@media (min-width: 768px) {
  .section-lead {
    font-size: 1.125rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #C1121F;
}

.eyebrow::before,
.eyebrow--center::after {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: #FF8A93;
}

/* ---------- Botões (pílula, como no template) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding: .95rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease,
    transform .25s ease, box-shadow .25s ease;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #C1121F;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(193, 18, 31, .55);
}

.btn-primary:hover {
  background: #9F0F1A;
  box-shadow: 0 14px 28px -10px rgba(193, 18, 31, .6);
}

.btn-outline {
  border-color: #C1121F;
  color: #C1121F;
}

.btn-outline:hover {
  background: #C1121F;
  color: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: #111827;
}

.btn-light {
  background: #fff;
  color: #C1121F;
}

.btn-light:hover {
  background: #9F0F1A;
  color: #fff;
}

.btn-sm {
  padding: .7rem 1.3rem;
  font-size: .9375rem;
}

.btn-sm svg {
  width: 1rem;
  height: 1rem;
}

/* Botão compacto dos cards (equivale ao tamanho "xs" do template) */
.btn-xs {
  gap: .5rem;
  padding: .65rem 1.15rem;
  font-size: .875rem;
}

.btn-xs svg {
  width: 1rem;
  height: 1rem;
}

/* Link de texto com seta */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: #C1121F;
  transition: gap .25s ease, color .25s ease;
}

.link-arrow svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.link-arrow:hover {
  gap: .8rem;
  color: #9F0F1A;
}

/* ---------- Header ---------- */
.site-header {
  transition: box-shadow .3s ease, background-color .3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -12px rgba(17, 24, 39, .18);
}

.nav-link {
  position: relative;
  padding-block: .5rem;
  transition: color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #C1121F;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #C1121F;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.mobile-link {
  transition: color .2s ease;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: #C1121F;
}

/* ---------- Hero ---------- */
.hero-overlay {
  background:
    radial-gradient(60% 90% at 0% 100%, rgba(193, 18, 31, .38) 0%, rgba(193, 18, 31, 0) 60%),
    linear-gradient(135deg, rgba(17, 24, 39, .96) 0%, rgba(17, 24, 39, .86) 45%, rgba(17, 24, 39, .3) 100%);
}

@media (max-width: 767px) {
  .hero-overlay {
    background:
      radial-gradient(80% 60% at 0% 100%, rgba(193, 18, 31, .35) 0%, rgba(193, 18, 31, 0) 60%),
      linear-gradient(180deg, rgba(17, 24, 39, .9) 0%, rgba(17, 24, 39, .94) 100%);
  }
}

/* Efeito Ken Burns (zoom lento), como o slideshow do template */
@keyframes kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.12);
  }
}

.kenburns {
  animation: kenburns 24s ease-out infinite alternate;
  transform-origin: 65% 40%;
  will-change: transform;
}

/* ---------- Barra de credibilidade ---------- */
.cred-panel {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #C1121F 0%, #8E0D17 100%);
}

/* ---------- Seção "Como funciona": círculos ligados por linha tracejada ---------- */
@media (min-width: 1024px) {
  .steps::before {
    content: "";
    position: absolute;
    top: 5.5rem; /* metade da altura do círculo (11rem) */
    left: 12.5%;
    right: 12.5%;
    border-top: 2px dashed #F2B8BD;
  }
}

.step-circle {
  background: linear-gradient(180deg, #FDE4E6 0%, #FFFFFF 97%);
}

/* ---------- Avaliações ---------- */
.reviews-bg {
  background: radial-gradient(70% 60% at 50% 0%, #FEF2F3 0%, rgba(254, 242, 243, 0) 100%), #fff;
}

/* ---------- Contato ---------- */
.contact-overlay {
  background:
    radial-gradient(50% 80% at 100% 100%, rgba(193, 18, 31, .3) 0%, rgba(193, 18, 31, 0) 60%),
    linear-gradient(90deg, rgba(17, 24, 39, .96) 0%, rgba(17, 24, 39, .88) 55%, rgba(31, 41, 55, .78) 100%);
}

/* ---------- Mapa ---------- */
.map-embed iframe {
  display: block;
  width: 100%;
  height: 350px;
}

@media (min-width: 768px) {
  .map-embed iframe {
    height: 420px;
  }
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 9999px;
  background: #25D366;
  animation: wa-pulse 2.6s ease-out infinite;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: .55;
  }

  80%,
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

/* ---------- Acessibilidade: menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .btn:hover {
    transform: none;
  }
}
