/* Apex Autoverhuur — single-page premium rental site.
   One visual world by design: asphalt night, white-paint type, a single
   racing-red accent. All colors come from the tokens below. */

:root {
  /* palette: asphalt greys with a slight blue bias + one red */
  --bg: #0c0d0e;
  --surface: #141517;
  --surface-2: #1a1c1f;
  --ink: #eceded;
  --ink-dim: #9aa1a8;
  --line: #26282c;
  --red: #d31927;
  --red-press: #a8131f;

  /* type roles: instrument-cluster display + neutral body */
  --font-display: "Michroma", "Arial", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Every band keeps its own side gutter; nothing scrolls sideways. */
.wrap {
  max-width: 1060px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* --- Type roles --- */

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  line-height: 1.2;
  text-wrap: balance;
  margin: 12px 0 14px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.3;
  text-wrap: balance;
  margin: 10px 0 12px;
}

.section-head { max-width: 660px; margin-bottom: 36px; }

.section-sub { color: var(--ink-dim); margin: 0; }

/* --- Buttons --- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-red { background: var(--red); color: #ffffff; }
.btn-red:hover { background: var(--red-press); }

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-dim); }

.btn-wide { width: 100%; text-align: center; }

/* --- Header --- */

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

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand span { color: var(--ink-dim); }

.top-cta { padding: 10px 18px; font-size: 0.88rem; }

/* --- Hero --- */

.hero { position: relative; margin: 0; }

.hero img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 360px;
  max-height: 620px;
  object-fit: cover;
  object-position: center 62%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 13, 14, 0.30) 0%,
    rgba(12, 13, 14, 0.05) 40%,
    rgba(12, 13, 14, 0.88) 100%
  );
}

.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(24px, 5vw, 56px);
  z-index: 1;
}

.hero-sub { color: var(--ink-dim); font-size: 1.02rem; max-width: 560px; margin: 0 0 22px; }

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

@media (prefers-reduced-motion: no-preference) {
  /* One orchestrated page-load moment: hero copy rises once, then rests. */
  .hero-text > * { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease forwards; }
  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .hero-text > :nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* --- Fleet --- */

.fleet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 26px;
}

@media (max-width: 900px) { .fleet { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fleet { grid-template-columns: 1fr; } }

.card-media {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface);
}

.card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 55%;
  transition: transform 0.5s ease;
}

.card:hover .card-media img { transform: scale(1.04); }

.card h3 { font-size: 1.06rem; font-weight: 600; margin: 16px 0 4px; }

.card-spec {
  color: var(--ink-dim);
  font-size: 0.9rem;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.price {
  font-size: 1.28rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.price small { color: var(--ink-dim); font-weight: 400; font-size: 0.8rem; }

.card-link {
  color: var(--ink-dim);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.card-link:hover { color: var(--ink); border-color: var(--ink-dim); }

/* The one boxed element on the page: the sixth grid tile. */
.fleet-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.fleet-cta h3 { margin: 0; font-size: 1.06rem; font-weight: 600; }

.fleet-cta p { color: var(--ink-dim); font-size: 0.95rem; margin: 0; }

.fleet-cta .btn { align-self: flex-start; margin-top: 6px; }

/* --- Why --- */

.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 34px;
}

@media (max-width: 620px) { .why { grid-template-columns: 1fr; } }

.why h3 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; }

.why p { color: var(--ink-dim); font-size: 0.95rem; margin: 0; }

/* --- Aanvraag --- */

.aanvraag-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  max-width: 620px;
  padding: clamp(28px, 4vw, 44px);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

.field input:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }

.form-note { color: var(--ink-dim); font-size: 0.85rem; margin: 0 0 18px; }

.form-hint { color: var(--red); font-size: 0.88rem; margin: 0 0 14px; }

.form-privacy { color: var(--ink-dim); font-size: 0.8rem; margin: 16px 0 0; }

.form-ok p { margin: 0 0 8px; }

/* --- Footer --- */

footer { border-top: 1px solid var(--line); padding-block: 26px; }

.foot-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.foot-brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.foot-brand span { color: var(--ink-dim); }

/* --- Section rhythm --- */

section { padding-block: clamp(48px, 7vw, 84px); }

#aanbod { padding-top: clamp(56px, 8vw, 96px); }
