:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d8dee8;
  --paper: #ffffff;
  --soft: #f4f6f9;
  --navy: #10213f;
  --red: #d71521;
  --green: #168a45;
  --blue: #1f5f9f;
  --shadow: 0 18px 60px rgba(13, 31, 61, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 222, 232, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--navy));
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  color: #263242;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--soft);
  outline: none;
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--green);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  margin: 3px auto;
  display: block;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 14, 28, 0.92) 0%, rgba(6, 14, 28, 0.72) 43%, rgba(6, 14, 28, 0.22) 100%),
    linear-gradient(0deg, rgba(6, 14, 28, 0.72), rgba(6, 14, 28, 0));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 64px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffccd1;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 32px rgba(215, 21, 33, 0.28);
}

.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.whatsapp {
  color: #fff;
  background: var(--green);
}

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

.email {
  color: var(--navy);
  border-color: var(--line);
  background: #fff;
}

.hero-stats {
  max-width: 560px;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats div {
  padding: 18px 18px 0 0;
}

.hero-stats dt {
  font-size: 1.7rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.brand-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -32px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.brand-pill {
  min-height: 58px;
  border: 0;
  border-radius: 6px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

.brand-pill.active,
.brand-pill:hover,
.brand-pill:focus-visible {
  color: #fff;
  background: var(--navy);
  outline: none;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.03;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

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

.car-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(13, 31, 61, 0.08);
}

.car-card figure {
  margin: 0;
  background: #dfe5ed;
}

.car-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.car-card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.car-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.price {
  margin: 10px 0 12px;
  color: var(--red);
  font-size: 1.45rem;
  font-weight: 950;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.specs span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  border-radius: 6px;
  background: var(--soft);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.details-button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

.card-actions .button {
  min-height: 44px;
  padding: 0 12px;
}

.process {
  border-top: 1px solid var(--line);
}

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

.process-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.process-grid span {
  color: var(--red);
  font-weight: 950;
}

.process-grid h3 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
}

.process-grid p,
.contact-band p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-band {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 64px max(16px, calc((100vw - 1180px) / 2));
  color: #fff;
  background: var(--navy);
}

.contact-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.contact-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-band .eyebrow {
  color: #9fe2b6;
}

.footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px max(16px, calc((100vw - 1180px) / 2));
  color: var(--muted);
  background: #f9fafc;
}

.footer p {
  margin: 0;
}

.credits {
  margin-top: 8px;
  max-width: 900px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer a {
  color: var(--navy);
  font-weight: 900;
}

.footer-top {
  white-space: nowrap;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 29, 0.72);
}

.modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.modal-body {
  padding: 34px;
}

.modal-body h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.04;
}

.modal-price {
  margin: 12px 0 20px;
  color: var(--red);
  font-size: 1.8rem;
  font-weight: 950;
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
}

.detail-list div {
  padding: 11px;
  border-radius: 6px;
  background: var(--soft);
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.compact {
  margin-top: 24px;
}

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

  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .hero {
    min-height: 620px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(6, 14, 28, 0.9), rgba(6, 14, 28, 0.52));
  }

  .brand-strip,
  .filters,
  .inventory-grid,
  .process-grid,
  .section-heading,
  .contact-band,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .filters {
    padding: 12px;
  }

  .contact-band {
    padding: 56px 16px;
  }

  .modal-gallery img {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .hero-content {
    padding-bottom: 48px;
  }

  h1 {
    font-size: 3rem;
  }

  .brand-strip {
    margin-top: -20px;
  }

  .hero-stats,
  .specs,
  .card-actions,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
