/* Current Motors — site.css
   One stylesheet for the whole site. Desktop-first; the `Mobiel.dc.html`
   mockup layout takes over below --breakpoint-mobile (~760px). */

:root {
  /* Colours */
  --color-bg: #ffffff;
  --color-text: #141413;
  --color-text-muted: #3d3d3a;
  --color-text-soft: #55554f;
  --color-text-light: #6e6e69;
  --color-placeholder: #8a8a85;
  --color-border: #141413;
  --color-border-light: #d6d6d1;
  --color-link-hover: #c2521b;
  --color-mark-bg: #fff500;
  --shadow-green: #54ff00;
  --shadow-yellow: #fff500;

  /* Type */
  --font-sans: "Brandon Grotesque", "brandon-grotesque", Jost, sans-serif;

  /* Layout */
  --content-max: 1440px;
  --gutter: clamp(20px, 5vw, 80px);
  /* Side padding that keeps full-bleed rows (footer, sub page header) on the
     same left/right line as the centred .wrap content */
  --edge: max(var(--gutter), calc((100% - var(--content-max)) / 2));
  --gutter-mobile: 20px;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 56px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  /* Eyebrow height plus its gap, plus a small correction so the cap height of
     right-hand text lines up with the cap height of the h2 */
  --head-offset: calc(14px * 1.5 + 20px + 2px);

  /* Recurring shapes */
  --btn-shadow: -4px -4px 0 var(--shadow-green), 4px 4px 0 var(--shadow-yellow);
  --btn-shadow-mobile: -3px -3px 0 var(--shadow-green), 3px 3px 0 var(--shadow-yellow);
  --btn-shadow-panel: -6px -6px 0 var(--shadow-green), 6px 6px 0 var(--shadow-yellow);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

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

a {
  color: var(--color-text);
}
a:hover {
  color: var(--color-link-hover);
}

input,
textarea {
  font: inherit;
  color: var(--color-text);
}
input:focus,
textarea:focus {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
.chip__input:focus-visible + .chip__label {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

::placeholder {
  color: var(--color-placeholder);
}

ul,
ol {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout shell ---------- */

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
}

.section {
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) var(--gutter);
}

/* ---------- Top bar / nav ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--gutter) 0 var(--gutter);
}

.topbar__logo,
.menu-toggle {
  display: none;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  padding: 12px 0;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 108px;
  padding: 96px var(--gutter) 140px var(--gutter);
  text-align: center;
}

.hero__logo--full {
  width: 560px;
  height: auto;
}
.hero__logo--stacked {
  display: none;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 1200px;
}

.badge {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.5vw + 4px, 56px);
  line-height: 1.12;
  font-weight: 300;
  text-wrap: balance;
}

.hero p {
  margin: 0;
  max-width: 760px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 36px;
  border: 0;
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: var(--btn-shadow);
}
.btn:hover {
  color: var(--color-bg);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  text-underline-offset: 6px;
}

.hero .btn {
  margin-top: 12px;
}

/* ---------- Section headings ---------- */

.eyebrow {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 2.5vw + 18px, 48px);
  line-height: 1.15;
  font-weight: 300;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- #wat ---------- */

.wat {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.wat__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2xl);
  align-items: start;
}

.wat__intro p {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.tile {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-md);
  padding: 36px 32px 40px 32px;
  border: 1px solid var(--color-border-light);
  min-height: 220px;
}

.tile__icon {
  width: 28px;
  height: 48px;
  flex-shrink: 0;
}

.tile__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tile h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tile p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---------- #ophalen ---------- */

.ophalen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2xl);
  align-items: start;
}

.ophalen__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ophalen__text p {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.ophalen .btn-link {
  align-self: flex-start;
}

/* ---------- Forms ---------- */

.form-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-lg);
}

.form-section__head {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section__head p {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

#aanmelden .form-section__form {
  grid-column: span 8;
}

#contact .form-section__head {
  grid-column: span 4;
}
#contact .form-section__form {
  grid-column: 6 / span 7;
}

@media (min-width: 761px) {
  .wat__intro p,
  .ophalen__text,
  #contact .form-section__form {
    padding-top: var(--head-offset);
  }

  #contact form {
    margin-top: 0;
  }

  /* Form labels are smaller than body text, so their cap height starts higher */
  #contact .form-section__form {
    padding-top: calc(var(--head-offset) + 17px);
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.field-grid input,
form > label > input,
textarea {
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

textarea {
  height: auto;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.chip {
  position: relative;
  display: inline-flex;
}

.chip__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.chip__label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  pointer-events: none;
}

.chip__input:checked + .chip__label {
  background: var(--color-text);
  color: var(--color-bg);
  box-shadow: var(--btn-shadow-mobile);
}

.radio-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: var(--space-lg);
  row-gap: 4px;
}

.radio-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.radio-option input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--color-text);
}

.form-submit {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-submit p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 64px var(--edge);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

.footer__company {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer__company img {
  width: 63px;
  height: 90px;
}

.footer__address {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.footer__brand {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text-light);
}

.footer__legal a {
  color: inherit;
}

.footer__contact {
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__contact h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.footer__contact ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ---------- Sub pages (privacy / voorwaarden) ---------- */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--edge);
  border-bottom: 1px solid var(--color-border);
}

.page-header img {
  flex-shrink: 0;
  width: 300px;
  height: auto;
}

.page-header .btn-link {
  min-height: auto;
  padding: 12px 0;
  text-align: right;
  line-height: 1.4;
}

.page-main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  padding: 96px var(--gutter) var(--space-3xl) var(--gutter);
}

.legal {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.legal h1 {
  margin: 0 0 8px 0;
  font-size: clamp(36px, 4.5vw + 4px, 56px);
  line-height: 1.12;
  font-weight: 300;
}

.legal h2 {
  margin: 48px 0 0 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
}

.legal p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.legal ul,
.legal ol {
  padding-left: 22px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal ol {
  padding-left: 26px;
  gap: 6px;
}

.legal .legal__updated {
  margin-top: var(--space-lg);
  font-size: 15px;
  color: var(--color-text-light);
}

.legal mark {
  background: var(--color-mark-bg);
  color: var(--color-text);
  padding: 0 4px;
}

body.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Success panel (kept for future JS wiring) ---------- */

.panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 48px;
  border: 1px solid var(--color-border);
  box-shadow: var(--btn-shadow-panel);
}

/* ================= Tablet ================= */

/* Between the mobile layout and roughly 1100px the desktop two- and
   three-column layouts get too narrow: stack the section intros and forms,
   halve the tiles and fold the footer into two rows. */
@media (min-width: 761px) and (max-width: 1100px) {
  .wat__intro,
  .ophalen {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  .wat__intro p,
  .ophalen__text,
  #contact .form-section__form {
    padding-top: 0;
    max-width: 680px;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }

  .tile {
    min-height: 0;
  }

  .form-section__head,
  #aanmelden .form-section__form,
  #contact .form-section__head,
  #contact .form-section__form {
    grid-column: 1 / -1;
  }

  .form-section__head p {
    max-width: 680px;
  }

  #contact .form-section__form,
  #aanmelden form {
    max-width: 680px;
  }

  #contact form {
    margin-top: var(--space-lg);
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "company contact"
      "legal legal";
    align-items: start;
    row-gap: var(--space-lg);
  }

  .footer__company { grid-area: company; }
  .footer__contact { grid-area: contact; }

  .footer__legal {
    grid-area: legal;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
  }
}

/* ================= Mobile ================= */

@media (max-width: 760px) {
  .wrap {
    max-width: none;
  }

  .section {
    padding: 72px var(--gutter-mobile);
  }

  /* Top bar becomes icon logo + Menu toggle */
  .topbar {
    justify-content: space-between;
    align-items: stretch;
    flex-direction: column;
    padding: 0 var(--gutter-mobile);
    border-bottom: 1px solid var(--color-border);
  }

  .topbar__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
  }

  .topbar__logo {
    display: flex;
  }

  .topbar__logo img {
    width: 34px;
    height: 48px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text);
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: var(--space-sm);
  }

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

  .nav a {
    min-height: 56px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 15px;
    letter-spacing: 0.22em;
    padding: 0;
  }

  /* Hero */
  .hero {
    gap: 56px;
    padding: 56px var(--gutter-mobile) 80px var(--gutter-mobile);
  }

  .hero__logo--full {
    display: none;
  }

  .hero__logo--stacked {
    display: block;
    width: 260px;
    height: 127px;
  }

  .hero__content {
    gap: 24px;
  }

  .badge {
    font-size: 13px;
    padding: 10px 16px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.15;
    white-space: normal;
  }

  .hero p {
    font-size: 17px;
  }

  .hero .btn {
    align-self: stretch;
    justify-content: center;
    margin: 12px 4px 0 4px;
    box-shadow: var(--btn-shadow-mobile);
  }

  .section h2 {
    font-size: 32px;
  }

  .eyebrow {
    font-size: 13px;
  }

  .section-head {
    gap: 16px;
  }

  /* #wat */
  .wat {
    gap: 32px;
  }

  .wat__intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .wat__intro p {
    font-size: 17px;
  }

  .tiles {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .tile {
    padding: 24px 20px;
    gap: 18px;
    min-height: 0;
  }

  .tile__icon {
    width: 24px;
    height: 41px;
  }

  .tile__body {
    gap: 8px;
  }

  .tile h3 {
    font-size: 15px;
    letter-spacing: 0.16em;
  }

  .tile p {
    font-size: 16px;
    line-height: 1.55;
  }

  /* #ophalen */
  .ophalen {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .ophalen__text {
    gap: 16px;
  }

  .ophalen__text p {
    font-size: 17px;
  }

  .ophalen .btn-link {
    font-size: 14px;
  }

  /* Forms */
  .form-section,
  #aanmelden .form-section__form,
  #contact .form-section__head,
  #contact .form-section__form {
    display: block;
    grid-column: auto;
  }

  .form-section__head {
    gap: 16px;
  }

  .form-section__head p {
    font-size: 17px;
  }

  form {
    gap: var(--space-sm);
    margin-top: var(--space-lg);
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .field-grid input,
  form > label > input {
    padding: 0 14px;
  }

  textarea {
    padding: 12px 14px;
  }

  .chips {
    gap: 10px;
  }

  .chip__label {
    padding: 0 16px;
  }

  .radio-group {
    flex-direction: column;
    gap: 2px;
  }

  .form-submit {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .form-submit .btn {
    align-self: stretch;
    justify-content: center;
    margin: 8px 4px 0 4px;
    box-shadow: var(--btn-shadow-mobile);
  }

  /* Footer */
  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-lg);
    padding: 48px var(--gutter-mobile);
  }

  .footer__company {
    order: 1;
  }

  .footer__company img {
    width: 56px;
    height: 80px;
  }

  .footer__contact {
    order: 2;
    justify-self: auto;
  }

  .footer__legal {
    order: 3;
    align-items: flex-start;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
  }

  /* Sub pages */
  .page-header {
    padding: var(--space-md) var(--gutter-mobile);
  }

  .page-header {
    gap: var(--space-sm);
  }

  .page-header img {
    width: min(160px, 42vw);
  }

  .page-header .btn-link {
    font-size: 12px;
  }

  .page-main {
    padding: 56px var(--gutter-mobile) 72px var(--gutter-mobile);
  }

  .legal h1 {
    font-size: 36px;
  }

  .legal h2 {
    font-size: 22px;
    margin-top: 40px;
  }

  .legal p,
  .legal ul,
  .legal ol {
    font-size: 16px;
  }
}
