/* ============================================================
   Loca2Rodas — style.css
   Identidade: preto (fundo) · branco (texto/contraste) · vermelho (ação)
   ============================================================ */

:root {
  --bg: #0a0a0d;
  --bg-soft: #0f0f14;
  --bg-card: #14141b;
  --bg-card-2: #191922;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f4f6;
  --text-muted: #a8adb9;
  --text-dim: #757a8c;
  --red: #e5142b;
  --red-light: #ff4055;
  --red-dark: #b00f21;
  --red-soft: rgba(229, 20, 43, 0.14);
  --grad-red: linear-gradient(135deg, #ff4055 0%, #e5142b 55%, #b00f21 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --container: 1140px;
  --font-head: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

body.no-scroll {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

::selection {
  background: rgba(229, 20, 43, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--red-light);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.text-red {
  color: var(--red-light);
}

.text-center {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ------------------------------------------------------------
   BOTÕES
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease, border-color 0.25s ease;
}

.btn svg {
  flex: none;
}

.btn-primary {
  background: var(--grad-red);
  color: #fff;
  box-shadow: 0 12px 32px rgba(229, 20, 43, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(229, 20, 43, 0.42);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 34px;
  font-size: 1.06rem;
}

.btn-sm {
  padding: 11px 20px;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   HEADER / NAV
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 10px 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand em {
  font-style: normal;
  color: var(--red-light);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--grad-red);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(229, 20, 43, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  padding: 9px;
  line-height: 0;
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 150px 0 92px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(229, 20, 43, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(229, 20, 43, 0.06) 0%, transparent 42%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  z-index: -1;
  background: var(--grad-red);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-light);
  box-shadow: 0 0 0 4px rgba(229, 20, 43, 0.22);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(229, 20, 43, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(229, 20, 43, 0);
  }
}

.hero h1 {
  font-size: clamp(2.05rem, 5vw, 3.5rem);
  font-weight: 800;
  max-width: 900px;
  margin-bottom: 22px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  max-width: 660px;
  margin-bottom: 28px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  max-width: 780px;
}

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid rgba(229, 20, 43, 0.35);
  background: var(--red-soft);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-chips svg {
  color: var(--red-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.hero-note svg {
  color: var(--red-light);
  flex: none;
}

.hero-note span {
  text-align: center;
}

/* ------------------------------------------------------------
   SEÇÕES GERAIS
   ------------------------------------------------------------ */
.section {
  position: relative;
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 16px;
}

.section-label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad-red);
  border-radius: 2px;
}

.text-center .section-label {
  justify-content: center;
}

.text-center .section-label::before {
  display: none;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 52px;
}

.section-title {
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.04rem;
  max-width: 680px;
  margin: 0 auto;
}

.section-cta {
  margin-top: 52px;
}

/* ------------------------------------------------------------
   REVEAL (animação ao rolar)
   ------------------------------------------------------------ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   VÍDEO (YouTube configurável)
   ------------------------------------------------------------ */
.video-area {
  width: 100%;
  max-width: 840px;
}

.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--bg-card-2), var(--bg-card));
  box-shadow: var(--shadow);
}

@supports not (aspect-ratio: 16 / 9) {
  .video-box {
    height: 0;
    padding-top: 56.25%;
  }
}

.video-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}

.video-placeholder svg {
  color: var(--red-light);
  margin-bottom: 6px;
}

.video-placeholder p {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  font-size: 1.02rem;
}

.video-placeholder span {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ------------------------------------------------------------
   CARDS DE VANTAGENS
   ------------------------------------------------------------ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  border-color: rgba(229, 20, 43, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.card-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--red-soft);
  border: 1px solid rgba(229, 20, 43, 0.3);
  color: var(--red-light);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   PARA QUEM É
   ------------------------------------------------------------ */
.para-quem-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.para-quem-grid .section-title {
  max-width: 560px;
}

.para-quem-grid .section-sub {
  margin: 0 0 26px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
}

.check-list svg {
  color: var(--red-light);
  flex: none;
  margin-top: 4px;
}

.para-quem-lead {
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 520px;
}

.photo-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(420px 260px at 30% 20%, rgba(229, 20, 43, 0.25), transparent 65%),
    linear-gradient(160deg, var(--bg-card-2), var(--bg-card));
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sem URL configurada, o <img> fica oculto e o placeholder aparece */
.photo-card img.js-img {
  display: none;
}

.photo-card.has-photo img.js-img {
  display: block;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.photo-fallback svg {
  color: var(--red-light);
  opacity: 0.85;
}

.photo-card.has-photo .photo-fallback {
  display: none;
}

/* ------------------------------------------------------------
   COMO FUNCIONA
   ------------------------------------------------------------ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.step-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.14rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.is-open {
  border-color: rgba(229, 20, 43, 0.5);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 20px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
}

.faq-question .chev {
  flex: none;
  color: var(--red-light);
  transition: transform 0.3s ease;
}

.faq-item.is-open .chev {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 22px 22px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.faq-item.is-open .faq-answer {
  max-height: 320px;
}

/* ------------------------------------------------------------
   CTA FINAL
   ------------------------------------------------------------ */
.final {
  text-align: center;
  overflow: hidden;
  padding: 110px 0;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 440px at 50% 60%, rgba(229, 20, 43, 0.16), transparent 65%);
}

.final h2 {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  font-weight: 800;
  max-width: 820px;
  margin: 0 auto 20px;
}

.final p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto 34px;
}

.final .final-note {
  margin: 22px auto 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ------------------------------------------------------------
   RODAPÉ
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 96px;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 320px;
  margin-top: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--red-light);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------
   BARRA FIXA WHATSAPP (MOBILE)
   ------------------------------------------------------------ */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 13, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}

.mobile-bar .btn {
  width: 100%;
}

/* ------------------------------------------------------------
   RESPONSIVO
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }

  .para-quem-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .photo-card {
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 330px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 88px 24px 30px;
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a:not(.btn) {
    padding: 13px 8px;
    font-size: 1.04rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .btn {
    margin-top: 16px;
    justify-content: center;
  }

  .section {
    padding: 78px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .site-footer {
    padding-bottom: 130px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 26px;
  }

  .mobile-bar {
    display: block;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 128px 0 72px;
  }

  .br-desk {
    display: none;
  }

  .hero-chips {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
  }

  .hero-chips li {
    justify-content: flex-start;
    text-align: left;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .section-cta .btn {
    width: 100%;
  }

  .faq-question {
    padding: 18px;
    font-size: 0.98rem;
  }

  .faq-answer p {
    padding: 0 18px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* ------------------------------------------------------------
   PREFEÇÕES DE MOVIMENTO
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
