/* ============================================
   RST-Software Website – Stylesheet
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blauw-donker: #1a3a5c;
  --blauw-midden: #2568a8;
  --blauw-accent: #3b8ad9;
  --blauw-licht: #e8f1fa;
  --grijs-warm: #f5f6f8;
  --grijs-tekst: #3a3f47;
  --grijs-licht: #6b7280;
  --wit: #ffffff;
  --rand: #d1d9e6;
  --schaduw: 0 2px 12px rgba(26, 58, 92, .08);
  --radius: 6px;
  --max-breedte: 1140px;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--grijs-tekst);
  background: var(--grijs-warm);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blauw-midden); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blauw-accent); }

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

/* ── Header & Navigatie ── */
header {
  background: var(--wit);
  border-bottom: 1px solid var(--rand);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}
.logo img { height: 40px; width: auto; }

nav ul { display: flex; gap: 4px; list-style: none; }
nav a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: .925rem;
  font-weight: 500;
  color: var(--grijs-tekst);
  transition: background .2s, color .2s;
}
nav a:hover,
nav a.actief {
  background: var(--blauw-licht);
  color: var(--blauw-midden);
}

/* Hamburger (mobiel) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grijs-tekst);
  margin: 5px 0;
  transition: .3s;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--blauw-donker) 0%, var(--blauw-midden) 100%);
  color: var(--wit);
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/hero-bg.svg') center/cover no-repeat;
  opacity: .4;
  pointer-events: none;
  filter: blur(1px);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(59,138,217,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(10,30,60,.45), 0 1px 3px rgba(0,0,0,.25);
}
.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 1;
  color: rgba(255,255,255,.93);
  line-height: 1.65;
  text-shadow: 0 1px 12px rgba(10,30,60,.4), 0 1px 2px rgba(0,0,0,.2);
}
.hero .btn { font-size: 1rem; }

/* Frosted backdrop behind hero text for extra readability */
.hero-tekst-wrap {
  display: inline-block;
  background: rgba(13, 35, 64, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 40px 48px 36px;
  max-width: 740px;
  border: 1px solid rgba(255,255,255,.08);
}
.hero-tekst-wrap p:last-of-type {
  margin-bottom: 32px;
}
/* When the last child is a <p> (subpages without buttons), reduce bottom spacing */
.hero-tekst-wrap > p:last-child {
  margin-bottom: 0;
}

/* ── Hero variant: homepage (taller, with extra visual depth) ── */
.hero-home {
  padding: 100px 0 88px;
}
.hero-home::before {
  opacity: .65;
  animation: heroFloat 20s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.04) translateY(-8px); }
}

/* ── Decorative floating shapes (added via HTML) ── */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-deco--1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(91,163,230,.2) 0%, transparent 70%);
  animation: decoFloat1 14s ease-in-out infinite;
}
.hero-deco--2 {
  width: 200px;
  height: 200px;
  bottom: -40px;
  left: -30px;
  background: radial-gradient(circle, rgba(59,138,217,.15) 0%, transparent 70%);
  animation: decoFloat2 18s ease-in-out infinite;
}
.hero-deco--3 {
  width: 140px;
  height: 140px;
  top: 30%;
  left: 8%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  animation: decoFloat3 12s ease-in-out infinite;
}
@keyframes decoFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12px, 16px) scale(1.06); }
}
@keyframes decoFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -12px) scale(1.08); }
}
@keyframes decoFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, 10px); }
}

/* ── Knoppen ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .925rem;
  transition: background .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--blauw-accent);
  color: var(--wit);
}
.btn-primary:hover {
  background: #2d78c4;
  color: var(--wit);
  box-shadow: 0 4px 14px rgba(59, 138, 217, .35);
}
.btn-outline {
  background: transparent;
  color: var(--wit);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  color: var(--wit);
  border-color: #fff;
}

/* ── Secties ── */
section { padding: 64px 0; }
section:nth-child(even) { background: var(--wit); }

.sectie-header {
  text-align: center;
  margin-bottom: 48px;
}
.sectie-header h2 {
  font-size: 1.85rem;
  color: var(--blauw-donker);
  margin-bottom: 12px;
}
.sectie-header p {
  color: var(--grijs-licht);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Kaarten (diensten, projecten) ── */
.kaarten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 32px 28px;
  transition: box-shadow .25s, transform .25s;
}
.kaart:hover {
  box-shadow: var(--schaduw);
  transform: translateY(-3px);
}
.kaart h3 {
  font-size: 1.15rem;
  color: var(--blauw-donker);
  margin-bottom: 10px;
}
.kaart p { color: var(--grijs-licht); font-size: .94rem; }

.kaart-icoon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blauw-licht);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

/* ── Twee-kolom layout ── */
.twee-kolom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Tag cloud ── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 24px 0;
}
.tag-cloud span {
  background: var(--blauw-licht);
  color: var(--blauw-donker);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s;
}
.tag-cloud span:hover {
  background: var(--blauw-accent);
  color: var(--wit);
}
/* Variatie in grootte */
.tag-cloud .tag-lg { font-size: 1rem; padding: 8px 20px; }
.tag-cloud .tag-sm { font-size: .78rem; padding: 5px 12px; }

/* ── Tijdlijn (ervaring) ── */
.tijdlijn { position: relative; padding-left: 32px; }
.tijdlijn::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rand);
}
.tijdlijn-item {
  position: relative;
  margin-bottom: 36px;
}
.tijdlijn-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blauw-accent);
  border: 2px solid var(--wit);
  box-shadow: 0 0 0 3px var(--blauw-licht);
}
.tijdlijn-item h3 { font-size: 1.05rem; color: var(--blauw-donker); }
.tijdlijn-item .periode {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blauw-accent);
  margin-bottom: 4px;
}
.tijdlijn-item p { font-size: .92rem; color: var(--grijs-licht); margin-top: 6px; }

/* ── Technologie badges ── */
.tech-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tech-badges span {
  background: var(--grijs-warm);
  color: var(--grijs-tekst);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .78rem;
  border: 1px solid var(--rand);
}

/* ── Formulier ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--blauw-donker);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .925rem;
  background: var(--wit);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blauw-accent);
  box-shadow: 0 0 0 3px rgba(59, 138, 217, .15);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-container {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 40px;
  max-width: 620px;
}

/* ── Kengetallen balk ── */
.kengetallen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 48px 0;
}
.kengetal h3 {
  font-size: 2.2rem;
  color: var(--blauw-accent);
  font-weight: 700;
}
.kengetal p {
  font-size: .88rem;
  color: var(--grijs-licht);
  margin-top: 4px;
}

/* ── Competenties lijst ── */
.competenties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.competentie-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--grijs-warm);
  border-radius: var(--radius);
}
.competentie-item .check {
  color: var(--blauw-accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  background: var(--blauw-donker);
  color: rgba(255,255,255,.75);
  padding: 40px 0 28px;
  font-size: .88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 32px;
}
footer h4 { color: var(--wit); margin-bottom: 10px; font-size: .95rem; }
footer a { color: rgba(255,255,255,.75); }
footer a:hover { color: var(--wit); }
footer ul { list-style: none; }
footer li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 28px;
  padding-top: 20px;
  text-align: center;
  font-size: .82rem;
  opacity: .7;
}

/* ── Section divider (wave/curve between hero and content) ── */
.sectie-divider {
  position: relative;
  height: 48px;
  margin-top: -48px;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.sectie-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Accent stripe on section headings ── */
.sectie-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--blauw-accent);
  border-radius: 2px;
  margin: 12px auto 0;
}
.sectie-header h2[style*="color:var(--wit)"]::after {
  background: rgba(255,255,255,.5);
}

/* ── USP strip ── */
.usp-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 0;
  background: var(--blauw-licht);
  font-size: .9rem;
  font-weight: 500;
  color: var(--blauw-donker);
}
.usp-strip span::before {
  content: '✓ ';
  font-weight: 700;
  color: var(--blauw-accent);
}

/* ── Melding na verzenden ── */
.melding {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: none;
}
.melding-succes { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.melding-fout { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .menu-toggle { display: block; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--wit);
    border-bottom: 1px solid var(--rand);
    padding: 12px 0;
    box-shadow: var(--schaduw);
  }
  nav ul.open { display: flex; }
  nav a { padding: 12px 24px; }

  .hero { padding: 56px 0 48px; }
  .hero-home { padding: 72px 0 64px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-deco--1 { width: 180px; height: 180px; top: -40px; right: -30px; }
  .hero-deco--2 { width: 120px; height: 120px; }
  .hero-deco--3 { display: none; }
  .hero-tekst-wrap { padding: 28px 24px 24px; }
  .sectie-divider { height: 32px; margin-top: -32px; }
  .twee-kolom { grid-template-columns: 1fr; gap: 32px; }
  .kengetallen { grid-template-columns: repeat(2, 1fr); }
  .kaarten { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .form-container { padding: 24px; }
  section { padding: 48px 0; }
}
