:root {
  --ink: #14181f;
  --ink-soft: #4a5262;
  --paper: #ffffff;
  --paper-soft: #f5f6f8;
  --line: #e6e8ec;
  --teal: #326478;
  --teal-deep: #244a59;
  --brand: #ffaa47;
  --brand-soft: #ffeeda;
  --coral: #e2654c;
  --brand-ink: var(--teal);
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-ink); }

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

h1, h2, h3 {
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #e0942e; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img { height: 50px; width: auto; display: block; }

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.btn-primary { color: #fff; }
.main-nav a.btn-primary:hover { color: #fff; }

/* Hero */
/* padding-block, niet de shorthand: .hero/.section delen vaak hetzelfde element
   als .container, en een shorthand zou diens zijpadding wegvegen. */
.hero {
  padding-block: 88px 64px;
  text-align: center;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding-block: 64px; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-alt { background: var(--paper-soft); }

/* Grid cards */
/* min(100%, …) zodat een kolom nooit breder wordt dan de container zelf,
   ook niet op smalle telefoons (320px). */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 8px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

.feature-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
}
.feature-list svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--teal);
}
.card p:last-child { margin-bottom: 0; }

/* Projects */
.grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.project-icon img { width: 28px; height: 28px; border-radius: 6px; }

.project-card-featured {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 16px 40px rgba(245,168,60,0.14);
  transition: box-shadow .15s, transform .15s;
}
.project-card-featured:hover { transform: translateY(-2px); }
.project-card-featured .project-icon { width: 72px; height: 72px; background: var(--brand-soft); }
.project-card-featured .project-icon img { width: 40px; height: 40px; border-radius: 9px; }
.project-card-featured .project-body h3 { margin-bottom: 8px; }
.project-card-featured .project-body p { margin: 0; }

.project-card-compact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.project-card-compact:hover { box-shadow: 0 12px 32px rgba(20,24,31,0.08); transform: translateY(-2px); }
.project-card-compact h3 { font-size: 1rem; margin-bottom: 4px; }
.project-card-compact p { font-size: 0.88rem; margin: 0; }

/* Footer */
.site-footer {
  background: #1b2a31;
  padding: 64px 0 32px;
  margin-top: 48px;
  color: #9aa7ad;
  font-size: 0.92rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.site-footer .logo { margin-bottom: 12px; }
.site-footer .logo-img { height: 40px; }
.site-footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 10px; }
.site-footer p { color: #b9c3c8; }
.site-footer a { color: #b9c3c8; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-bottom {
  color: #94a0a6;
  border-top: 1px solid #2c3d45;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Forms */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.form-errors { color: #c1391f; font-size: 0.85rem; margin-top: 6px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 24px; font-size: 0.95rem; }
.alert-success { background: #e8f7ee; color: #1c6b3a; }

/* Mobiel */
@media (max-width: 720px) {
  .container { padding-inline: 20px; }

  /* De nav past niet naast het logo op één regel: logo boven, nav eronder.
     Niet sticky op mobiel, anders eet de tweeregelige header te veel scherm. */
  .site-header { position: static; }
  .site-header .container {
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .logo-img { height: 38px; }
  /* Krappe gap zodat Diensten/Projecten/Over ons + Contact op één regel passen
     op een 375px-scherm; smaller dan dat wrapt het netjes naar twee regels. */
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
  }
  /* Het logo linkt al naar home */
  .main-nav .nav-home { display: none; }
  .main-nav a { font-size: 0.9rem; }
  .main-nav a.btn-primary { padding: 8px 16px; }

  .hero { padding-block: 48px 40px; }
  .hero p.lead { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .section { padding-block: 44px; }
  .section-head { margin-bottom: 28px; }

  .card { padding: 22px; }
  .project-card-featured {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
  }
  .project-card-compact { padding: 16px; }

  .site-footer { padding: 44px 0 28px; margin-top: 36px; }
}

/* Live editor bridge highlight hook lives in LiveEditorExtension::bridgeScript() */
