/*
Theme Name: Veenland Auto Trade
Theme URI: https://veenlandautotrade.nl/
Author: Veenland Auto Trade
Description: Licht maatwerkthema voor Veenland Auto Trade.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: veenland-auto-trade
*/

:root {
  --navy: #0b1d33;
  --navy-soft: #132a45;
  --ink: #102033;
  --silver: #98a2ad;
  --silver-light: #e9edf1;
  --paper: #ffffff;
  --offwhite: #f6f7f8;
  --line: rgba(11, 29, 51, .14);
  --max: 1320px;
  --text: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 12px 18px; background: white; z-index: 9999; }

.site-shell { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.site-header { position: relative; z-index: 50; background: white; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; letter-spacing: .04em; }
.brand-main { color: var(--navy); font-size: 22px; font-weight: 800; }
.brand-sub { color: var(--silver); font-size: 10px; font-weight: 700; letter-spacing: .30em; margin-top: 7px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(20px, 2.3vw, 38px); list-style: none; margin: 0; padding: 0; }
.primary-nav a { position: relative; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 650; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 1px; background: var(--navy); transition: right .22s ease; }
.primary-nav a:hover::after, .primary-nav .current-menu-item a::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }

.button, button[type="submit"], input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px;
  border: 1px solid var(--navy); border-radius: 0; background: var(--navy); color: white;
  text-decoration: none; font-size: 14px; font-weight: 750; letter-spacing: .035em; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.button-light { background: white; border-color: white; color: var(--navy); }
.button-light:hover { background: transparent; color: white; border-color: white; }
.button-outline { background: transparent; color: var(--navy); }
.button-outline:hover { background: var(--navy); color: white; }
.button-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: white; }
.button-ghost:hover { background: white; color: var(--navy); border-color: white; }
.button-small { min-height: 44px; padding: 9px 18px; }

.hero { position: relative; min-height: clamp(620px, 78vh, 820px); display: grid; align-items: end; overflow: hidden; background: var(--navy); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,15,28,.92) 0%, rgba(5,15,28,.64) 47%, rgba(5,15,28,.18) 100%); z-index: 1; }
.hero::after { content: ""; position: absolute; width: min(70vw, 980px); height: min(27vw, 370px); right: -6vw; bottom: 14%; border: 1px solid rgba(255,255,255,.20); border-radius: 52% 42% 12% 10% / 72% 68% 18% 16%; transform: skewX(-9deg); opacity: .8; }
.hero.has-image { background-size: cover; background-position: center; }
.hero-content { position: relative; z-index: 2; padding-top: 130px; padding-bottom: clamp(70px, 10vh, 116px); }
.eyebrow { display: block; margin-bottom: 20px; color: var(--silver); font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.hero .eyebrow { color: #d8dde4; }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.05; letter-spacing: -.035em; }
h1 { font-size: clamp(48px, 7vw, 104px); max-width: 1000px; }
h2 { font-size: clamp(38px, 5vw, 72px); }
h3 { font-size: clamp(25px, 2.5vw, 38px); }
.hero h1 { color: white; max-width: 830px; }
.hero-lead { max-width: 700px; margin: 28px 0 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.52; color: rgba(255,255,255,.86); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.section { padding: clamp(82px, 10vw, 150px) 0; }
.section-tight { padding: clamp(62px, 8vw, 108px) 0; }
.section-muted { background: var(--offwhite); }
.section-dark { background: var(--navy); color: white; }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark p { color: rgba(255,255,255,.82); }
.narrow { max-width: 840px; }
.lead { max-width: 820px; margin: 28px 0 0; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.55; }
.body-copy { max-width: 760px; margin-top: 26px; }
.body-copy p:first-child { margin-top: 0; }
.body-copy p:last-child { margin-bottom: 0; }
.type-line { display: flex; flex-wrap: wrap; gap: 14px 38px; margin-top: 58px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--navy); font-size: clamp(22px, 3vw, 42px); font-weight: 800; letter-spacing: .075em; }
.type-line span:not(:last-child)::after { content: "—"; margin-left: 38px; color: var(--silver); font-weight: 400; }
.section-dark .type-line { border-color: rgba(255,255,255,.22); color: white; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(52px, 8vw, 122px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.media-frame { min-height: clamp(380px, 44vw, 620px); background: linear-gradient(140deg, #dde2e7, #f7f8f9); position: relative; overflow: hidden; }
.media-frame::before { content: ""; position: absolute; width: 85%; height: 36%; left: 13%; top: 37%; border: 2px solid rgba(11,29,51,.24); border-radius: 46% 55% 16% 12% / 70% 70% 26% 22%; transform: skewX(-8deg); }
.media-frame::after { content: "BEELDSELECTIE VOLGT"; position: absolute; left: 28px; bottom: 24px; color: rgba(11,29,51,.55); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.media-frame.has-image { background-size: cover; background-position: center; }
.media-frame.has-image::before, .media-frame.has-image::after { display: none; }

.page-hero { padding: clamp(90px, 12vw, 165px) 0 clamp(70px, 9vw, 120px); background: var(--offwhite); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 1050px; font-size: clamp(48px, 7vw, 94px); }
.page-hero .lead { max-width: 800px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(52px, 9vw, 130px); align-items: start; }
.details { margin: 32px 0 0; padding: 0; list-style: none; }
.details li { margin: 7px 0; }
.details a { color: var(--navy); }
.appointment { margin-top: 36px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.appointment strong { display: block; margin-bottom: 8px; color: var(--navy); }

.form-card { padding: clamp(28px, 5vw, 60px); background: var(--offwhite); border-top: 3px solid var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 14px; font-weight: 750; }
.field .required { color: #8c2735; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #cbd1d7; border-radius: 0; background: white; color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field-help { display: block; margin-top: 7px; color: #63707d; font-size: 13px; }
.form-actions { margin-top: 28px; }
.form-notice { margin-bottom: 28px; padding: 18px 20px; border-left: 4px solid var(--navy); background: #eef2f5; }
.form-notice.error { border-color: #9d2d3b; background: #faf0f1; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

.contact-band { padding: clamp(70px, 9vw, 118px) 0; background: var(--navy); color: white; }
.contact-band-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; }
.contact-band h2 { color: white; max-width: 850px; }
.contact-band p { color: rgba(255,255,255,.8); }
.contact-band address { font-style: normal; color: rgba(255,255,255,.82); }
.contact-band a { color: white; }

.site-footer { padding: 56px 0 30px; background: #071525; color: rgba(255,255,255,.73); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 56px; padding-bottom: 44px; }
.site-footer .brand-main { color: white; }
.site-footer h2 { margin: 0 0 14px; color: white; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 24px; font-size: 12px; }

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.legal { max-width: 860px; }
.legal h2 { margin-top: 54px; font-size: 34px; }
.legal h3 { margin-top: 38px; font-size: 25px; }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }

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

@media (max-width: 980px) {
  .site-shell { width: min(calc(100% - 40px), var(--max)); }
  .header-inner { min-height: 76px; }
  .header-actions .button { display: none; }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 76px 0 0; padding: 52px 24px; background: white; transform: translateX(100%); transition: transform .25s ease; }
  .menu-open .primary-nav { transform: translateX(0); }
  .primary-nav ul { display: block; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 18px 0; font-size: 22px; }
  .primary-nav a::after { display: none; }
  .split, .contact-grid, .contact-band-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: initial; }
  .contact-band-grid { align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --text: 16px; }
  .site-shell { width: min(calc(100% - 32px), var(--max)); }
  .brand-main { font-size: 18px; }
  .hero { min-height: 680px; align-items: end; }
  .hero::before { background: linear-gradient(0deg, rgba(5,15,28,.96) 0%, rgba(5,15,28,.64) 70%, rgba(5,15,28,.42) 100%); }
  .hero::after { width: 110vw; height: 42vw; right: -25vw; bottom: 38%; }
  .hero-content { padding-top: 105px; padding-bottom: 62px; }
  h1 { font-size: clamp(44px, 14vw, 62px); }
  h2 { font-size: clamp(36px, 11vw, 50px); }
  .button-row { align-items: stretch; }
  .button-row .button { flex: 1 1 100%; }
  .type-line { display: block; margin-top: 42px; }
  .type-line span { display: block; margin: 11px 0; }
  .type-line span:not(:last-child)::after { content: ""; margin: 0; }
  .media-frame { min-height: 330px; }
  .page-hero { padding-top: 76px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { display: block; }
}
