/* ============================================================
   1. VARIABLES & THEME SYSTEM
============================================================ */
:root {
  /* STANDAARD KLEUREN (Worden overschreven door index.php indien ingesteld) */
  --primary: #0097a7;
  --primary-hover: #00acc1;
  --accent: #d46910;

  --bg-body: #f8f9fa;
  --bg-surface: #ffffff;
  --bg-surface-2: #f1f3f4;

  --text-main: #1a1a1a;
  --text-muted: #555555;
  --border: rgba(0, 0, 0, 0.1);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);

  --radius: 16px;
  --nav-height: 70px;

  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] {
  --bg-body: #0f1115;
  --bg-surface: #181b21;
  --bg-surface-2: #22262e;

  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);

  --glass: rgba(24, 27, 33, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   2. RESET & BASE
============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3 { margin: 0 0 1rem; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
p { margin-bottom: 1rem; color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.2rem; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.max-w-800 { max-width: 800px; }

/* Utilities */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.text-center { text-align: center; }
.section-padding { padding: 5rem 0; }
.bg-surface { background: var(--bg-surface); }
.mt-large { margin-top: 3rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animatie */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600;
  cursor: pointer; border: none; font-size: 1rem; gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary { background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.9rem; }
.icon-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-main); padding: 0.5rem; }

/* ============================================================
   3. HEADER & NAV
============================================================ */
header {
  position: sticky; top: 0; z-index: 1000; height: var(--nav-height);
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border); display: flex; align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { height: 40px; }
nav ul { display: flex; list-style: none; padding: 0; margin: 0; gap: 2rem; }
.nav-link { font-weight: 500; color: var(--text-main); position: relative; }
.nav-link.active, .nav-link:hover { color: var(--primary); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--text-main); margin: 5px 0; border-radius: 3px; transition: 0.3s; }
.mobile-only { display: none; }

/* ============================================================
   4. HERO SECTION
============================================================ */
.hero-section {
  min-height: 85vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: var(--nav-height);
  background: radial-gradient(at 0% 0%, rgba(0, 151, 167, 0.08) 0px, transparent 50%),
              radial-gradient(at 100% 100%, rgba(212, 105, 16, 0.05) 0px, transparent 50%);
  background-size: cover;
}
.hero-section::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px; opacity: 0.3; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; color: var(--accent); font-weight: 700; margin-bottom: 0.5rem; }
.lead { font-size: 1.15rem; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.trust-indicators { display: flex; gap: 1rem; flex-wrap: wrap; }
.trust-badge { background: var(--bg-surface-2); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; border: 1px solid var(--border); }
.hero-visual { text-align: center; }
.hero-img { max-width: 100%; max-height: 450px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* ============================================================
   5. CARDS & SECTIONS
============================================================ */
.card {
  background: var(--bg-surface); border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.service-card { text-align: center; }
.service-icon { width: 48px; height: 48px; margin-bottom: 1.5rem; color: var(--primary); stroke-width: 1.5; transition: transform 0.3s ease, color 0.3s ease; }
.card:hover .service-icon { transform: scale(1.1); color: var(--accent); }
.content-box { background: var(--bg-surface-2); padding: 2rem; border-radius: var(--radius); border-left: 4px solid var(--accent); }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.review-card { background: var(--bg-surface-2); border: none; }
.stars { color: #ffc107; margin-bottom: 0.5rem; }
.quote { font-style: italic; font-size: 0.95rem; }
.author { font-weight: 700; font-size: 0.85rem; margin-top: 1rem; color: var(--text-main); opacity: 0.8; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg-surface-2); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.faq-item summary { padding: 1rem 1.5rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-body { padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.info-list { list-style: none; padding: 0; font-size: 1.05rem; }
.info-list li { margin-bottom: 1rem; }
.contact-btns { display: flex; gap: 1rem; margin-top: 2rem; }
.map-wrapper { position: relative; border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 300px; background: var(--bg-surface-2); }
.map-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.map-link:hover img { transform: scale(1.03); }
.map-overlay { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.btn-surface { background: var(--bg-surface); color: var(--text-main); box-shadow: var(--shadow-sm); }

/* ============================================================
   6. MODALS & FORMS
============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.modal[aria-hidden="false"] { opacity: 1; visibility: visible; }
.modal-dialog {
  background: var(--bg-surface); width: 95%; max-width: 800px; max-height: 90vh; overflow-y: auto;
  padding: 2rem; border-radius: var(--radius); position: relative; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.close-modal { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.close-modal:hover { color: var(--accent); }

/* Wizard */
.wizard-progress { display: flex; justify-content: space-between; margin-bottom: 2rem; position: relative; }
.wizard-progress::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }
.step-indicator {
  width: 35px; height: 35px; border-radius: 50%; background: var(--bg-surface-2); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: bold; position: relative; z-index: 1;
  color: var(--text-muted); transition: 0.3s;
}
.step-indicator.active { background: var(--primary); border-color: var(--primary); color: white; }
.step-indicator.completed { background: var(--primary); border-color: var(--primary); color: white; cursor: pointer; }
.wizard-step { display: none; animation: fadeIn 0.4s ease; }
.wizard-step.active { display: block; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Inputs */
.input-group { margin-bottom: 1rem; }
.input-group label { display: block; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
input:not([type="color"]), textarea {
  width: 100%; padding: 0.7rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-surface-2); color: var(--text-main); font-family: inherit; transition: 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 151, 167, 0.2); }
.address-row, .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-link-sm { background: none; border: none; color: var(--primary); font-size: 0.8rem; cursor: pointer; }
.readonly-input { background-color: rgba(0,0,0, 0.05); opacity: 0.7; cursor: not-allowed; }

/* Upload */
.upload-zone { border: 2px dashed var(--border); padding: 1.5rem; text-align: center; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.upload-zone:hover { border-color: #28a745; background: rgba(40, 167, 69, 0.08); }
.file-preview { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.file-preview img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }

/* Legal Text (voor Admin opmaak) */
.legal-text h3 { font-size: 1rem; margin-top: 1.5rem; color: var(--text-main); }
.legal-text p { margin-bottom: 1rem; }

/* ============================================================
   7. FOOTER
============================================================ */
footer { text-align: center; padding: 2rem; border-top: 1px solid var(--border); margin-top: 3rem; font-size: 0.9rem; color: var(--text-muted); }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }
.sep { margin: 0 0.5rem; }

/* FAB & Progress */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 2001; width: 0; }
.fab-btn { position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: white; display: none; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow-lg); z-index: 900; }
#back-to-top { position: fixed; bottom: 20px; left: 20px; background: var(--primary); color: white; border: none; padding: 0.8rem; border-radius: 50%; cursor: pointer; display: none; z-index: 900; }
#back-to-top.show { display: block; }

/* ============================================================
   8. MOBILE
============================================================ */
@media (max-width: 900px) {
  .section-padding { padding: 3rem 0; }
  .container { width: 92%; }
  .hero-section { padding-top: 1rem; min-height: auto; text-align: center; padding-bottom: 3rem; }
  .hero-grid, .contact-grid, .form-grid, .address-row, .row-2 { grid-template-columns: 1fr; gap: 1rem; }
  
  nav { display: none; }
  nav.active {
    display: block; position: fixed; top: auto; left: 0; right: 0; bottom: 0; height: 80vh;
    background: var(--bg-surface); padding: 2rem; border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2); overflow-y: auto; z-index: 999;
    animation: slideUp 0.3s ease-out; border-top: 1px solid var(--border);
  }
  @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  
  nav ul { flex-direction: column; gap: 1.5rem; font-size: 1.2rem; }
  .hamburger { display: block; }
  .desktop-only { display: none; }
  .mobile-only { display: block; }
  .hero-img { max-height: 250px; margin-top: 2rem; animation: none; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; }
  .fab-btn { display: flex; }
}
/* ---- THEME VARS FALLBACKS (worden overschreven door CMS vars) ---- */
:root{
  --primary:#0097a7;
  --accent:#d46910;

  --bg:#ffffff;
  --surface:#f4f7f8;
  --card:#ffffff;

  --text:#111827;
  --heading:#0b1220;
  --muted:#6b7280;
  --link:var(--primary);

  --border:#e5e7eb;
  --shadow:rgba(0,0,0,0.08);

  --input-bg:#ffffff;
  --input-border:#d1d5db;
}

[data-theme="dark"]{
  --primary:#00bcd4;
  --accent:#ff9800;

  --bg:#0b0f14;
  --surface:#111827;
  --card:#0f172a;

  --text:#f3f4f6;
  --heading:#ffffff;
  --muted:#9ca3af;
  --link:var(--primary);

  --border:#223041;
  --shadow:rgba(0,0,0,0.35);

  --input-bg:#0b1220;
  --input-border:#223041;
}

/* ---- GLOBAL USE OF VARS ---- */
html, body { background: var(--bg); color: var(--text); }
h1,h2,h3,h4 { color: var(--heading); }
p, li, .subtitle { color: var(--text); }
small, .muted, .meta-date { color: var(--muted); }

a { color: var(--link); }
a:hover { opacity: .9; }

.bg-surface { background: var(--surface); }

/* Cards / borders */
.card,
.content-box,
.modal-dialog{
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px var(--shadow);
}

/* Inputs */
input, textarea, select{
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--input-border);
}
input::placeholder, textarea::placeholder{ color: var(--muted); }

/* Buttons (als je deze classes hebt) */
.btn-primary{ background: var(--primary); border-color: var(--primary); }
.btn-secondary{ border-color: var(--border); }
.btn-outline{ border-color: var(--primary); color: var(--primary); }

/* Accent / gradients als je die gebruikt */
.text-gradient{
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
