/* ============================================
   Autobedrijf Oosterwolde — stylesheet
   ============================================ */

:root {
  --navy-900: #132b40;
  --navy-800: #1a3a57;
  --navy-700: #21486c;
  --blue-500: #2e8fd4;
  --blue-400: #4da8e8;
  --blue-100: #e3f0fa;
  --grey-100: #f4f7fa;
  --grey-300: #d7dee6;
  --grey-600: #5c6b7a;
  --text: #24303c;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 43, 64, 0.10);
  --shadow-lg: 0 18px 45px rgba(19, 43, 64, 0.18);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-700); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-900);
  color: #c9d8e6;
  font-size: 14px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
  padding-top: 4px;
  padding-bottom: 4px;
}
.topbar a { color: #ffffff; font-weight: 600; }
.topbar a:hover { color: var(--blue-400); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; fill: var(--blue-400); flex-shrink: 0; }
.topbar .tb-hours { display: inline-flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy-800);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(0,0,0,0.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.brand img { height: 52px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 10px 16px;
  color: #dce8f2;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.3px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.main-nav a.active { color: var(--white); background: var(--blue-500); }
.main-nav a.nav-cta {
  background: var(--blue-500);
  color: var(--white);
  margin-left: 10px;
}
.main-nav a.nav-cta:hover { background: var(--blue-400); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  min-height: 560px;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(19,43,64,0.92) 0%, rgba(26,58,87,0.72) 45%, rgba(26,58,87,0.25) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 640px; padding: 90px 0; }
.hero .kicker {
  display: inline-block;
  background: rgba(46,143,212,0.25);
  border: 1px solid rgba(77,168,232,0.55);
  color: #bfe0f7;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--blue-400); }
.hero p { font-size: 19px; color: #d7e5f0; margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (subpages) */
.page-hero {
  position: relative;
  color: var(--white);
  background-size: cover;
  background-position: center;
  padding: 84px 0 64px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(19,43,64,0.94) 0%, rgba(26,58,87,0.80) 55%, rgba(26,58,87,0.55) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.page-hero p { color: #cfe0ee; font-size: 18px; margin-top: 10px; max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--blue-500); color: var(--white); }
.btn-primary:hover { background: var(--blue-400); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-whatsapp { background: #23b556; color: var(--white); }
.btn-whatsapp:hover { background: #2ecc66; color: var(--white); transform: translateY(-2px); }

/* ---------- USP strip ---------- */
.usp-strip { background: var(--navy-800); padding-bottom: 6px; }
.usp-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  transform: translateY(46px);
  margin-top: -46px;
}
.usp {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-top: 4px solid var(--blue-500);
}
.usp .icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.usp .icon svg { width: 24px; height: 24px; fill: var(--blue-500); }
.usp h3 { font-size: 17px; font-weight: 700; color: var(--navy-900); margin-bottom: 3px; }
.usp p { font-size: 14.5px; color: var(--grey-600); line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: 96px 0 80px; }
.section.alt { background: var(--grey-100); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head .kicker,
.split-text .kicker {
  color: var(--blue-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13.5px;
  display: block;
  margin-bottom: 10px;
}
.section-head h2, .split-text h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.15;
}
.section-head p { margin-top: 14px; color: var(--grey-600); font-size: 17.5px; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; fill: var(--blue-500); }
.card h3 { font-size: 20px; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.card p { color: var(--grey-600); font-size: 15.5px; }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text p { color: var(--grey-600); margin-bottom: 16px; }
.split-text h2 { margin-bottom: 18px; }

.checklist { list-style: none; margin: 22px 0 30px; }
.checklist li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 12px;
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-500);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / 15px no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / 15px no-repeat;
  background-color: var(--blue-500);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(19,43,64,0.88), rgba(26,58,87,0.88));
}
.cta-band .container { position: relative; z-index: 1; max-width: 760px; }
.cta-band h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: #cfe0ee; font-size: 18px; margin-bottom: 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Steps (inkoop) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-300);
  padding: 32px 28px;
  position: relative;
}
.step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 800;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.step p { color: var(--grey-600); font-size: 15.5px; }

/* ---------- Aanbod iframe ---------- */
.aanbod-frame {
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.aanbod-frame iframe { display: block; width: 100%; border: 0; min-height: 1400px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-300);
  padding: 30px 28px;
  margin-bottom: 22px;
}
.info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-card h3 svg { width: 20px; height: 20px; fill: var(--blue-500); }
.info-card p, .info-card li { color: var(--grey-600); }
.info-card a { font-weight: 600; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid var(--grey-100); color: var(--grey-600); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--text); }
.hours-table tr:last-child td { border-bottom: 0; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-300);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}
.contact-form h3 { font-size: 22px; font-weight: 800; color: var(--navy-900); margin-bottom: 6px; }
.contact-form .sub { color: var(--grey-600); font-size: 15px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--grey-300);
  border-radius: 9px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--text);
  background: var(--grey-100);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.contact-form button[disabled] { opacity: 0.65; cursor: wait; }

.form-alert {
  border-radius: 9px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-alert.is-ok { background: #e6f6ec; color: #1c7a3d; border: 1px solid #b9e4c8; }
.form-alert.is-fout { background: #fceceb; color: #b3362b; border: 1px solid #f2c6c2; }

/* Honeypot: buiten beeld voor mensen, wel invulbaar voor spambots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.map-wrap {
  margin-top: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-300);
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- RDW badge ---------- */
.rdw-badge {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 18px 22px;
  max-width: 420px;
}
.rdw-badge img { width: 84px; height: auto; border-radius: 8px; }
.rdw-badge strong { color: var(--navy-900); display: block; }
.rdw-badge span { color: var(--grey-600); font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a9bccd; }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
}
.footer-main h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}
.footer-main p { font-size: 15px; }
.footer-main ul { list-style: none; }
.footer-main li { margin-bottom: 10px; font-size: 15px; }
.footer-main a { color: #a9bccd; }
.footer-main a:hover { color: var(--blue-400); }
.footer-logo { height: 46px; width: auto; margin-bottom: 18px; }
.footer-rdw { margin-top: 16px; width: 90px; border-radius: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 14px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom a { color: #cfe0ee; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .usp-strip .container { grid-template-columns: 1fr 1fr; transform: none; margin-top: 0; padding-top: 40px; padding-bottom: 34px; }
  .usp-strip { padding-bottom: 0; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar .tb-hours { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-800);
    display: none;
    box-shadow: 0 14px 24px rgba(0,0,0,0.3);
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 20px; }
  .main-nav a { padding: 14px 16px; font-size: 17px; }
  .main-nav a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .hero { min-height: 480px; }
  .hero-inner { padding: 70px 0; }
  .section { padding: 64px 0 56px; }
  .cards, .steps, .usp-strip .container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
}
