:root {
  --red: #c8102e;
  --red-dark: #9a0c24;
  --navy: #0b1f4d;
  --blue: #004c90;
  --blue-deep: #00205b;
  --ink: #17181c;
  --muted: #5c6370;
  --line: #e4e7ee;
  --paper: #f4f6f9;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(11, 31, 77, 0.12);
  --radius: 18px;
  --header-h: 76px;
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
}

.skip-link:focus {
  left: 8px;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: #d7deea;
  font-size: 0.86rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 38px;
  flex-wrap: wrap;
  padding-block: 6px;
}

.topbar a:hover {
  color: #fff;
}

.topbar-right {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--red);
  height: var(--header-h);
}

.header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  gap: 26px;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--blue);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--navy);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: 0.2s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 42, 0.92) 0%, rgba(7, 16, 42, 0.55) 52%, rgba(200, 16, 46, 0.28) 100%),
    url("../img/loja-veiculos.jpg") center/cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(135deg, transparent 42%, rgba(200, 16, 46, 0.55) 42.2%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding-block: 72px 64px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffd4da;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: Outfit, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.hero p.lead {
  margin-top: 18px;
  max-width: 42ch;
  font-size: 1.12rem;
  color: #e8edf6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.quote-card {
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--red);
}

.quote-card h2 {
  font-family: Outfit, sans-serif;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.quote-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fbfcfe;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 76, 144, 0.12);
}

.quote-card .btn {
  width: 100%;
  margin-top: 6px;
}

/* Stats */
.stats {
  background: var(--blue-deep);
  color: #fff;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat {
  padding: 28px 10px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 1.7rem;
}

.stat span {
  color: #c9d4e8;
  font-size: 0.95rem;
}

/* Sections */
section {
  padding: 84px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 42px;
}

.section-head span {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-head h2 {
  font-family: Outfit, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 8px 0 10px;
  letter-spacing: -0.03em;
}

.section-head p {
  color: var(--muted);
}

/* Services */
.services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11, 31, 77, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: Outfit, sans-serif;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--muted);
}

.service-card.wide {
  grid-column: span 1;
}

/* Fleet */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.car-card {
  background: linear-gradient(#fff, #f7f9fc);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.car-card figure {
  height: 150px;
  display: grid;
  place-items: center;
  padding: 16px 12px 0;
}

.car-card img {
  max-height: 130px;
  width: auto;
  object-fit: contain;
}

.car-card img[src*="sprinter"] {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
}

.car-card .body {
  padding: 8px 16px 16px;
}

.car-card h3 {
  font-family: Outfit, sans-serif;
  font-size: 1.05rem;
}

.car-card small {
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}

.car-card .btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.9rem;
}

/* About */
.about .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.about-copy h2 {
  font-family: Outfit, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 14px;
}

.photo-stack {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.photo-stack img:first-child {
  grid-row: span 2;
  min-height: 420px;
}

.photo-stack img:not(:first-child) {
  min-height: 204px;
}

/* Contact */
.contact {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.info-card,
.map-wrap,
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.info-card,
.contact-form {
  padding: 26px;
}

.info-card h3,
.contact-form h3 {
  font-family: Outfit, sans-serif;
  margin-bottom: 16px;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.info-list a:hover {
  color: var(--red);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
}

.socials a:hover {
  background: var(--red);
}

/* Footer */
.footer {
  background: var(--blue-deep);
  color: #d5deec;
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer h3 {
  color: #fff;
  font-family: Outfit, sans-serif;
  margin-bottom: 12px;
}

.footer a:hover {
  color: #fff;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.copyright {
  text-align: center;
  padding-top: 18px;
  font-size: 0.88rem;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
}

.wa-float:hover {
  transform: scale(1.05);
}

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero .container,
  .about .container,
  .contact-grid,
  .footer-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .stats .container,
  .service-grid,
  .fleet-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
  }

  .photo-stack {
    grid-template-columns: 1fr;
  }

  .photo-stack img:first-child {
    grid-row: auto;
    min-height: 240px;
  }

  .header-cta .btn span {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar-right {
    display: none;
  }

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

  .stats .container,
  .fleet-grid {
    grid-template-columns: 1fr 1fr;
  }

  .container {
    width: min(var(--max), calc(100% - 28px));
  }
}
