/* ============================================
   MOTORGAADI — Design tokens
   ============================================ */
:root {
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --muted: #6b6b6b;
  --hairline: #e7e5e0;
  --paper: #ffffff;
  --panel: #f7f7f5;
  --yellow: #f4c300;
  --yellow-deep: #d9ab00;

  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--yellow-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
}
.btn-primary:hover { background: var(--yellow-deep); }

.btn-ghost-dark {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-ghost-light {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost-light:hover { background: var(--ink); color: #fff; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 22px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 26%, rgba(0,0,0,0.1) 52%, rgba(0,0,0,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(40px, 7vw, 84px);
  padding-top: 220px;
}

.hero-eyebrow {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  display: block;
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 4.6vw, 58px);
  max-width: 14ch;
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 46ch;
  margin-top: 22px;
  font-weight: 400;
}

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

.hero-stats {
  display: flex;
  gap: clamp(28px, 5vw, 56px);
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
  flex-wrap: wrap;
}
.hero-stat-num {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hero-stat-num .unit { font-size: 0.5em; color: var(--yellow); font-weight: 700; }
.hero-stat-label {
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
  margin-top: 4px;
}

/* ============================================
   Section basics
   ============================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-panel { background: var(--panel); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
  flex-wrap: wrap;
}
.section-kicker {
  color: var(--yellow-deep);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  max-width: 20ch;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
  max-width: 42ch;
}

/* ============================================
   Trust strip
   ============================================ */
.trust-strip {
  background: var(--ink);
  padding: 22px 0;
}
.trust-strip .wrap {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 600;
}
.trust-item svg { width: 18px; height: 18px; color: var(--yellow); flex-shrink: 0; }
.trust-rating { color: var(--yellow); font-weight: 800; }

/* ============================================
   Inventory grid / cards
   ============================================ */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.car-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.car-card:hover { border-color: var(--ink); transform: translateY(-3px); }

.car-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--panel);
}
.car-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.car-card:hover .car-card-media img { transform: scale(1.04); }

.car-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 2px;
}

.car-card-body { padding: 22px; }
.car-card-body h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.car-price {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}
.car-price span { color: var(--muted); font-size: 13px; font-weight: 500; }

.car-specs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}
.car-specs span { display: flex; align-items: center; gap: 6px; }
.car-specs svg { width: 14px; height: 14px; }

.section-foot {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ============================================
   Why us
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.why-card {
  background: var(--paper);
  padding: 36px 30px;
}
.why-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow-deep);
  margin-bottom: 22px;
  display: block;
}
.why-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.why-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============================================
   Process
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-step { position: relative; }
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(100% + 16px);
  width: calc(32px - 16px);
  height: 1px;
  background: var(--hairline);
}
.process-num {
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 22px;
}
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ============================================
   CTA band
   ============================================ */
.cta-band {
  background: var(--ink);
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  max-width: 16ch;
}
.cta-band-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================
   Location / Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-list { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.contact-row svg { width: 20px; height: 20px; color: var(--yellow-deep); flex-shrink: 0; margin-top: 2px; }
.contact-row-label { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.contact-row-value { font-size: 16px; font-weight: 600; }

.map-frame {
  width: 100%;
  aspect-ratio: 4/3.2;
  border: 1px solid var(--hairline);
  filter: grayscale(0.3);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 30px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 32ch; }
.footer-col h4 {
  color: #fff;
  font-size: 13.5px;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.footer-social a:hover { border-color: var(--yellow); background: rgba(244,195,0,0.08); }
.footer-social svg { width: 16px; height: 16px; }

/* ============================================
   Sub-page hero (inventory / about / contact)
   ============================================ */
.page-hero {
  background: var(--ink);
  padding: 150px 0 56px;
}
.page-hero .hero-eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  margin-top: 14px;
  max-width: 50ch;
}

/* ============================================
   Filter bar
   ============================================ */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 40px;
  align-items: center;
}
.filter-select {
  appearance: none;
  border: 1px solid var(--hairline);
  background: var(--paper) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" fill="none" stroke="%236b6b6b" stroke-width="1.5"/></svg>') no-repeat right 14px center;
  padding: 11px 36px 11px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
.filter-count {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.results-grid { padding-bottom: 40px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: var(--pad);
    right: var(--pad);
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-radius: 4px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process-step::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .car-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}
