/* ============================
   RESET BÁSICO + VARIÁVEIS
============================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Cores principais */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #dbeafe;

  --color-secondary: #0f172a;
  --color-accent: #16a34a;

  --color-bg: #0b1120;
  --color-bg-light: #f9fafb;
  --color-bg-gray: #f3f4f6;
  --color-card-bg: #ffffff;

  --color-text: #0f172a;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;

  /* Tipografia */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  /* Larguras */
  --container-width: 1120px;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* ============================
   ESTILOS GERAIS
============================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: #e5e7eb;
  line-height: 1.6;
}

/* Para evitar "pulos" ao clicar em âncoras */
html,
body {
  scroll-padding-top: 80px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================
   LINKS DE ACESSIBILIDADE
============================ */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background-color: #111827;
  color: #f9fafb;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  z-index: 999;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ============================
   CONTAINER
============================ */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================
   BOTÕES
============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.1s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), #38bdf8);
  color: #f9fafb;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), #0ea5e9);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.5);
}

.btn--secondary {
  background-color: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

.btn--secondary:hover {
  background-color: #020617;
  border-color: var(--color-primary);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

.btn--outline:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ecfdf5;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4);
}

.btn--whatsapp:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-1px);
}

/* ============================
   HEADER
============================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background-color: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: #f9fafb;
}

.header__brand strong {
  color: var(--color-primary-light);
}

/* NAV */

.nav {
  display: none;
}

.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  font-size: 0.95rem;
  color: #cbd5f5;
  position: relative;
  padding: 0.25rem 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), #38bdf8);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav__link:hover::after {
  width: 100%;
}

/* BOTÕES HEADER */

.header__whatsapp {
  display: none;
}

.menu-toggle {
  border: 1px solid rgba(148, 163, 184, 0.6);
  background-color: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.3rem;
  cursor: pointer;
}

/* MENU MOBILE ABERTO */

.nav.nav--open {
  position: fixed;
  inset: 64px 0 auto 0;
  background-color: rgba(15, 23, 42, 0.98);
  padding: 1.25rem 1.5rem 1.5rem;
  display: block;
}

.nav.nav--open .nav__list {
  flex-direction: column;
  align-items: flex-start;
}

/* ============================
   HERO
============================ */

.hero {
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(circle at bottom, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(34, 197, 94, 0.2), transparent 50%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero__text h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: #f9fafb;
  margin-bottom: 1rem;
}

.hero__text p {
  font-size: 1rem;
  color: #e5e7eb;
  max-width: 32rem;
}

.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__info {
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.hero__image {
  display: flex;
  justify-content: center;
}

/* CARTÃO DO CARRO NO HERO */

.hero-car-card {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.hero-car-card__header {
  margin-bottom: 1.25rem;
}

.hero-car-card__header h2 {
  font-size: 1.25rem;
  color: #e5e7eb;
  margin-top: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 999px;
  background-color: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.hero-car-card__list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* ============================
   SEÇÕES GENÉRICAS
============================ */

.section {
  padding: 3.5rem 0;
  background-color: #020617;
}

.section--gray {
  background-color: #030712;
}

.section__header {
  text-align: center;
  margin-bottom: 2rem;
}

.section__title {
  font-size: 1.6rem;
  color: #f9fafb;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

/* ============================
   GRID GENÉRICO
============================ */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: 1fr;
}

/* ============================
   CARDS
============================ */

.card {
  background: radial-gradient(circle at top left, #020617, #020617);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.4rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.48);
}

.card h3 {
  font-size: 1.15rem;
  color: #f9fafb;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: #d1d5db;
}

/* ============================
   CARDS DE FROTA
============================ */

.car-card__year {
  font-size: 0.88rem;
  color: #9ca3af;
  margin-bottom: 0.8rem;
}

.car-card__list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 0.8rem;
}

.car-card__highlight {
  font-size: 0.9rem;
  color: var(--color-primary-light);
}

/* ============================
   PLANOS
============================ */

.plan-card {
  position: relative;
}

.plan-card__price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #facc15;
  margin-top: 0.5rem;
}

.plan-card__km {
  font-size: 0.88rem;
  color: #9ca3af;
  margin-bottom: 0.8rem;
}

.plan-card__list {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.93rem;
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.plan-card__btn {
  width: 100%;
}

/* Plano destaque */

.plan-card--highlight {
  border: 1px solid rgba(250, 204, 21, 0.6);
  box-shadow: 0 22px 60px rgba(250, 204, 21, 0.2);
}

.plan-card--highlight::before {
  content: "Mais escolhido";
  position: absolute;
  top: -0.9rem;
  right: 1rem;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

/* ============================
   PASSO A PASSO (COMO FUNCIONA)
============================ */

.steps {
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  align-items: flex-start;
}

.step__number {
  grid-row: span 2;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), #38bdf8);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

.step h3 {
  font-size: 1rem;
  color: #e5e7eb;
}

.step p {
  font-size: 0.9rem;
  color: #d1d5db;
}

/* ============================
   CONTATO
============================ */

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: flex-start;
}

.contact-grid__info p {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 0.4rem;
}

.contact-grid__highlight {
  margin: 1.25rem 0 0.8rem;
  color: #e5e7eb;
}

/* FORMULÁRIO */

.contact-grid__form-wrapper {
  background: radial-gradient(circle at top left, #020617, #020617);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-soft);
}

.contact-form h3 {
  font-size: 1.1rem;
  color: #f9fafb;
  margin-bottom: 1rem;
}

.contact-form__field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.contact-form__field span {
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background-color: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6b7280;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.7);
  background-color: rgba(15, 23, 42, 0.95);
}

.contact-form__info {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ============================
   FOOTER
============================ */

.footer {
  border-top: 1px solid rgba(30, 64, 175, 0.4);
  background: radial-gradient(circle at top, #020617, #020617);
  padding: 1.5rem 0;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer__dev {
  color: #6b7280;
}

/* ============================
   MEDIA QUERIES
============================ */

/* >= 640px (tablets pequenos) */
@media (min-width: 640px) {
  .hero__content {
    gap: 3rem;
  }

  .hero-car-card {
    max-width: 380px;
  }

  .steps {
    gap: 1.5rem;
  }
}

/* >= 768px (tablets / notebooks) */
@media (min-width: 768px) {
  .header__content {
    padding: 0.9rem 0;
  }

  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .header__whatsapp {
    display: inline-flex;
  }

  .hero__content {
    flex-direction: row;
    align-items: center;
  }

  .hero__text {
    flex: 1;
  }

  .hero__image {
    flex: 1;
    justify-content: flex-end;
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step {
    grid-template-columns: auto;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }

  .footer__content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* >= 1024px (desktop) */
@media (min-width: 1024px) {
  .hero {
    padding: 4.2rem 0 3.5rem;
  }

  .hero__text h1 {
    font-size: 2.6rem;
  }

  .card {
    padding: 1.6rem 1.6rem;
  }

  .contact-grid__form-wrapper {
    padding: 1.8rem 1.7rem;
  }
}
