/* Elecourse - kleuren afgeleid van het logo */
:root {
  --orange: #f88400;
  --orange-dark: #b35c00;   /* oranje voor tekst en links op wit */
  --orange-soft: #fff4e6;
  --red: #e2001a;
  --text: #2c2c2c;
  --muted: #5f5f5f;
  --line: #ece6df;
  --white: #ffffff;
  --radius: 10px;
  --width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

::selection { background: var(--orange); color: #1f1f1f; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

a { color: var(--orange-dark); }
a:hover { color: var(--red); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: min(var(--width), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--text); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap;
  padding-block: 12px;
}
.logo img { display: block; width: 190px; }

.nav {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px;
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--orange); color: var(--text); }
.nav .nav-cta {
  background: var(--orange); color: #1f1f1f;
  padding: 8px 18px; border-radius: 999px; border-bottom: 0;
}
.nav .nav-cta:hover { background: #ff9a26; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--orange); color: #1f1f1f;
  font: inherit; font-weight: 700; text-decoration: none;
  padding: 13px 26px; border: 2px solid var(--orange); border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.button:hover { background: #ff9a26; border-color: #ff9a26; color: #1f1f1f; transform: translateY(-1px); }
.button-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.button-ghost:hover { background: var(--text); border-color: var(--text); color: var(--white); }
.button-small { padding: 8px 18px; font-size: 0.95rem; }
.button[disabled] { opacity: 0.6; cursor: wait; transform: none; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Hero */
/* Geen witruimte onderaan: de sectie eronder is ook wit en brengt zelf de standaardruimte mee. */
.hero { padding-top: clamp(48px, 9vw, 110px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  list-style: none; margin: 32px 0 0; padding: 0;
  color: var(--muted); font-size: 0.98rem; font-weight: 600;
}
.hero-points li { position: relative; padding-left: 20px; }
.hero-points li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em;
  width: 8px; height: 8px; background: var(--red); transform: rotate(45deg);
}

.eyebrow {
  color: var(--orange-dark); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8em;
}
.eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 8px; height: 8px; margin: -2px 12px 0 2px;
  background: var(--orange); transform: rotate(45deg);
}

/* Ruitmotief uit het logo */
.hero-art { text-align: center; }
.hero-art svg { height: 340px; max-width: 100%; }

/* Secties */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tint { background: var(--orange-soft); }
.section-intro { color: var(--muted); font-size: 1.1rem; margin-bottom: 2em; }

/* Diensten */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--line); border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 26px 24px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(44, 44, 44, 0.04), 0 8px 24px rgba(44, 44, 44, 0.05);
}
.card img {
  display: block; width: calc(100% + 48px); max-width: none;
  margin: -26px -24px 22px;
  aspect-ratio: 8 / 5; object-fit: cover;
}
.card p { color: var(--muted); margin: 0; }

/* Voor wie */
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.sector { background: var(--white); border-radius: var(--radius); padding: 26px 24px; }
.sector h3 { position: relative; padding-left: 24px; }
.sector h3::before {
  content: ""; position: absolute; left: 2px; top: 0.35em;
  width: 11px; height: 11px; background: var(--red); transform: rotate(45deg);
}
.sector p { color: var(--muted); margin: 0; }

.benefits {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 28px;
}
.benefits li { border-left: 3px solid var(--orange); padding-left: 16px; }

/* Klanten */
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 1.5em; }
.client {
  display: flex; flex-direction: column; gap: 2px;
  padding: 26px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.client:hover { border-color: var(--orange); color: var(--text); transform: translateY(-2px); }
.client-name { font-size: 1.25rem; font-weight: 700; }
.client-sector { color: var(--muted); }
.client-link { margin-top: 12px; color: var(--orange-dark); font-weight: 600; }
.client-link::after { content: " \2197"; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px 64px; align-items: start; }
.contact-details { display: grid; gap: 28px; }
.contact-item { border-left: 4px solid var(--orange); padding-left: 18px; }
.contact-item h3 { margin-bottom: 0.35em; }
.contact-item p { margin: 0; font-size: 1.1rem; }
.contact-item a { font-weight: 600; }

/* Contactformulier */
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 11px 14px;
  font: inherit; color: var(--text); background: var(--white);
  border: 1px solid #8a8279; border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--orange-dark);
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-success { color: #1d6b2f; }
.form-status.is-error { color: #b00015; }
.form-note { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Lokveld tegen spam: onzichtbaar voor bezoekers */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--text); color: #d9d9d9; font-size: 0.95rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 26px;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--orange); }

/* Tekstpagina (privacy) */
.text-page { padding-block: clamp(40px, 7vw, 80px); }
.text-page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.text-page ul { margin: 0 0 1em; padding-left: 1.3em; }
.text-page li { margin-bottom: 0.3em; }

/* Mobiel */
@media (max-width: 760px) {
  html { scroll-padding-top: 16px; }
  .site-header { position: static; }
  .header-inner { justify-content: center; }
  .logo img { width: 160px; }
  .nav { justify-content: center; gap: 2px 16px; }
  /* De contactknop valt op een eigen regel: geef hem lucht onder de menulinks. */
  .nav li:last-child { flex-basis: 100%; text-align: center; margin-top: 14px; }
  .nav a { font-size: 0.95rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-points { flex-direction: column; }
  .contact-layout { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .client { transition: none; }
}
