/*
Theme Name: Car Garage
Theme URI: https://example.test/pib-motors
Author: Codex
Description: Premium WordPress demo voor auto inkoop, verkoop, occasions en inruilwaarde.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: pib-motors
*/

:root {
  --ink: #111317;
  --paper: #fbfaf7;
  --muted: #6d737c;
  --line: #e2e0da;
  --gold: #c6a15b;
  --red: #b9232d;
  --forest: #183f39;
  --blue: #24476f;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 19, 23, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: rgba(17, 19, 23, .62);
  color: var(--white);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  font-weight: 700;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-weight: 850;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  background: #a81e27;
  box-shadow: 0 14px 34px rgba(185, 35, 45, .28);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .12);
}

.hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/images/hero-showroom.png") center / cover no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, .90), rgba(7, 9, 12, .56) 42%, rgba(7, 9, 12, .14)),
    linear-gradient(0deg, rgba(7, 9, 12, .86), rgba(7, 9, 12, 0) 42%);
  content: "";
}

.hero-inner {
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 88px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 96px);
  line-height: .94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(18px, 2vw, 22px);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin-top: 58px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(14px);
}

.hero-stat {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: #f1f0eb;
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.service:nth-child(2) {
  background: var(--forest);
  color: var(--white);
}

.service:nth-child(3) {
  background: var(--blue);
  color: var(--white);
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 36px;
  place-items: center;
  background: rgba(198, 161, 91, .16);
  color: var(--gold);
}

.service h3,
.car-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.service p {
  margin: 14px 0 0;
  color: currentColor;
  opacity: .78;
}

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

.car-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 42px rgba(17, 19, 23, .08);
}

.car-media {
  position: relative;
  display: block;
  min-height: 210px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9d6cd;
}

.car-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(17, 19, 23, .42), rgba(17, 19, 23, 0));
  content: "";
}

.car-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .35s ease;
}

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

.car-body {
  padding: 22px;
}

.car-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.tag {
  padding: 7px 9px;
  background: #f1f0eb;
  color: #4f545b;
  font-size: 12px;
  font-weight: 800;
}

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

.price {
  color: var(--red);
  font-size: 24px;
  font-weight: 950;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel.dark {
  background: var(--ink);
  color: var(--white);
}

.panel-inner {
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #4a4f57;
  font-size: 13px;
  font-weight: 850;
}

.panel.dark .field label {
  color: rgba(255, 255, 255, .74);
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d9d6cd;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  outline: 0;
}

.field input:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, .18);
}

.estimate {
  display: grid;
  align-content: space-between;
  min-height: 100%;
}

.estimate-value {
  margin: 18px 0 8px;
  color: var(--gold);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 950;
  line-height: .96;
}

.estimate small {
  color: rgba(255, 255, 255, .68);
}

.estimate-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.estimate-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .78);
}

.estimate-list strong {
  color: var(--white);
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 42px;
  background: var(--forest);
  color: var(--white);
}

.contact-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.contact-band p {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .74);
}

.site-footer {
  padding: 34px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 860px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 112px;
  }

  .hero-stats,
  .service-grid,
  .inventory-grid,
  .calculator,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
  }

  .hero-stat:last-child {
    border-bottom: 0;
  }

  .section-head {
    display: grid;
  }

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

  .contact-band {
    padding: 28px;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 480px) {
  .nav {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-cta {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding-top: 104px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 40px;
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 260px;
  }
}
