/* =============================================
   KOELTHUIS.NL — Shared Design System
   ============================================= */

:root {
  --bg:       #06101f;
  --surface:  #0c1a32;
  --surface2: #112240;
  --border:   #1a3050;
  --accent:   #0ea5e9;
  --accent2:  #06b6d4;
  --text:     #e8f0fe;
  --muted:    #64748b;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Grid background ─────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── Hero radial glows ──────────────── */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(14,165,233,.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(6,182,212,.07)  0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 0%,  rgba(14,165,233,.05) 0%, transparent 70%),
    var(--bg);
}

/* ─── Typography helpers ─────────────── */
.text-gradient {
  background: linear-gradient(135deg, #38bdf8, #22d3ee, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  background: rgba(14,165,233,.10);
  border: 1px solid rgba(14,165,233,.22);
  color: #7dd3fc;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
}

/* ─── Buttons ────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(14,165,233,.30), 0 2px 8px rgba(0,0,0,.20);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn-primary:hover  { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 28px rgba(14,165,233,.40), 0 4px 14px rgba(0,0,0,.30); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-primary:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  padding: 12px 26px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-secondary:hover  { transform: translateY(-2px); border-color: rgba(14,165,233,.50); background: rgba(14,165,233,.05); }
.btn-secondary:active { transform: translateY(0); }
.btn-secondary:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }

/* ─── Cards ──────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,.35);
  box-shadow: 0 20px 56px rgba(14,165,233,.09), 0 8px 20px rgba(0,0,0,.25);
}

.service-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, rgba(14,165,233,.14), rgba(6,182,212,.08));
  border: 1px solid rgba(14,165,233,.20);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.card:hover .service-icon { transform: scale(1.10); }

/* ─── Stat card ──────────────────────── */
.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Step number ────────────────────── */
.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(14,165,233,.30);
}

/* ─── Navigation ─────────────────────── */
nav.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(6,16,31,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #f1f5f9;
  letter-spacing: -0.03em;
}
.nav-logo-text span { color: #38bdf8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  position: relative;
  transition: color .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4);
  border-radius: 1px;
  transition: width .3s ease;
}
.nav-links a:hover         { color: #e8f0fe; }
.nav-links a:hover::after  { width: 100%; }
.nav-links a.active        { color: #38bdf8; }
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

.mobile-menu {
  display: none;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 12px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.mobile-menu a:hover  { color: #e8f0fe; background: rgba(14,165,233,.06); }
.mobile-menu a.active { color: #38bdf8; background: rgba(14,165,233,.08); }
.mobile-menu .mobile-cta { margin-top: 12px; width: 100%; justify-content: center; }

/* ─── Divider ────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: none;
}

/* ─── Surface sections ───────────────── */
.section-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ─── Page hero (inner pages) ────────── */
.page-hero {
  padding: 140px 0 80px;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(14,165,233,.09) 0%, transparent 60%),
    var(--bg);
}

/* ─── Form styles ────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 13px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(14,165,233,.60);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}
.form-select option { background: var(--surface2); }

/* ─── Footer ─────────────────────────── */
footer.main-footer {
  background: #040b16;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 32px;
}
.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color .2s ease;
}
.footer-link:hover { color: #94a3b8; }
.footer-link-accent:hover { color: #38bdf8; }

/* ─── Cookie banner ──────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 460px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  z-index: 10000;
  box-shadow: 0 24px 64px rgba(0,0,0,.40), 0 8px 24px rgba(0,0,0,.20);
  display: none;
  animation: slideUp .4s cubic-bezier(.34,1.56,.64,1);
}
#cookie-banner.show { display: block; }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ─── Scroll animations ──────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.34,1.56,.64,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-primary { display: none; }
  .hamburger { display: flex; }

  .page-hero { padding: 120px 0 60px; }

  .btn-primary, .btn-secondary {
    font-size: 15px;
    padding: 13px 22px;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: clamp(1.8rem, 8.5vw, 2.6rem) !important;
    letter-spacing: -0.025em !important;
  }
  .hero-section { padding-top: 20px !important; padding-bottom: 48px !important; }

  /* Buttons stack full-width on small screens */
  .btn-row {
    flex-direction: column !important;
  }
  .btn-row .btn-primary,
  .btn-row .btn-secondary {
    width: 100%;
    justify-content: center;
    font-size: 15px !important;
    padding: 14px 20px !important;
  }
}

@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}
