/* ================================
   Rekotuinen – Base Styles (clean)
   ================================ */

/* ---------- Design tokens ---------- */
:root {
  --primary: #1b4332;    /* donkergroen */
  --accent:  #95d5b2;    /* mintgroen */
  --text:    #1d1d1f;
  --muted:   #6b7280;
  --bg:      #fafafa;
  --white:   #ffffff;
  --black:   #000000;

  --radius:  16px;
  --shadow:  0 20px 40px rgba(0,0,0,.08);
}

/* ---------- CSS reset (light) ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.muted { 
  color: var(--text); /* gebruik dezelfde kleur als gewone tekst */
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.site-header .container {
  max-width: 100%;   /* fix: niet centreren */
  margin: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-block;
  margin: 0; padding: 0;
  border: 0;
  line-height: 1;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: .2px;
  color: var(--primary);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.nav {
  display: flex;
  gap: 16px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text);
}
.nav a:hover {
  background: rgba(0,0,0,0.04);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 56vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: center/cover no-repeat url('images/hero.jpg');
  filter: brightness(.75);
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.55));
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 48px 24px;
  max-width: 900px;
}
.hero-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: 0.2px;
}
.hero-tagline {
  margin: 0 0 24px;
  font-size: clamp(16px, 2.6vw, 20px);
  color: rgba(255,255,255,0.9);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(27,67,50,0.25);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }

/* ---------- Cards / grids (Diensten & Projecten) ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 24px 48px rgba(0,0,0,.12); }
.card-media {
  position: relative;
  aspect-ratio: 16/9;
  background: #eaeaea;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
}
.card-body { padding: 18px; }
.card-title { margin: 0 0 6px; font-weight: 700; font-size: 1.1rem; }
.card-text  { margin: 0; color: var(--muted); }

/* ---------- Project grid (met hover overlay) ---------- */
.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eaeaea;
  transition: transform .18s ease, box-shadow .18s ease;
}
.project:hover { transform: translateY(-2px); box-shadow: 0 24px 48px rgba(0,0,0,.12); }
.project img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project .overlay {
  position: absolute; inset: 0;
  display: grid; place-items: end start;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%);
  opacity: 0; transition: opacity .2s ease;
}
.project:hover .overlay { opacity: 1; }
.project .overlay h3 { margin: 0; font-size: 1.1rem; }

/* ---------- Content styles ---------- */
h1, h2, h3 { color: var(--primary); line-height: 1.2; }
.lead { font-size: 1.125rem; color: var(--muted); }

/* ---------- Forms ---------- */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-card {
  max-width: 760px;
  margin: 32px auto;
  padding: 24px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row .full { grid-column: 1 / -1; }
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
  outline: none;
  font: inherit;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(149,213,178,.25);
}
.textarea { min-height: 160px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 64px;
  background: #0f231b;
  color: rgba(255,255,255,.9);
  padding: 32px 0;
}
.site-footer a { color: #d9fff0; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.spacer-sm { height: 12px; }
.spacer-md { height: 24px; }
.spacer-lg { height: 48px; }

/* ===== Luxe theme (Meker-achtig) ===== */
:root { --panel: #ffffff; }
body.theme-luxe{
  --primary:#0f1a14; --accent:#d1b27c; --bg:#0b0e0c; --text:#e8e8e8; --panel:#141816;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
body{ font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue"; }
h1,h2,h3{ font-family:"Playfair Display", Georgia, "Times New Roman", serif; letter-spacing:.2px; }
body.theme-luxe .site-header{ background:rgba(11,14,12,.72); border-bottom:1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px); }
body.theme-luxe .brand{ color: var(--accent); font-weight:700; }
body.theme-luxe .nav a{ color: var(--text); } 
body.theme-luxe .nav a:hover{ background: rgba(255,255,255,.06); }
body.theme-luxe .hero::before{ filter: brightness(.55) saturate(.9); }
body.theme-luxe .hero::after{ background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75)); }
body.theme-luxe .hero-title{ color:#f2f2f2; } 
body.theme-luxe .hero-tagline{ color:rgba(255,255,255,.85); }
body.theme-luxe h1, body.theme-luxe h2, body.theme-luxe h3{ color:#f0f0f0; }
body.theme-luxe h2::after{ content:""; display:block; width:56px; height:3px; background: var(--accent); border-radius:2px; margin-top:8px; }
body.theme-luxe .card, body.theme-luxe .form-card{ background: var(--panel); border:1px solid rgba(255,255,255,.06); box-shadow:none; }
body.theme-luxe .card-text, body.theme-luxe .muted{ color:#b9beb9; }
body.theme-luxe .project .overlay{ background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 100%); }
body.theme-luxe .btn-primary{ background: var(--primary); color:#fff; box-shadow:none; border:1px solid rgba(255,255,255,.08); }
body.theme-luxe .btn-ghost{ background: rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.14); }
body.theme-luxe a{ color:#d8c499; }
body.theme-luxe .site-footer{ background:#0b0e0c; color:rgba(255,255,255,.9); border-top:1px solid rgba(255,255,255,.08); }
body.theme-luxe .site-footer a{ color:#e6d2a3; }

/* === Projecten lay-out met linker zijbalk === */
.layout-projecten{display:grid;grid-template-columns:260px 1fr;gap:32px;}
@media(max-width:1024px){.layout-projecten{grid-template-columns:1fr}}
.side{
  position:sticky; top:96px; align-self:start;
  background:var(--panel); border:1px solid rgba(255,255,255,.06); border-radius:16px; padding:20px;
}
.side-brand{font-family:"Playfair Display",serif;font-size:1.4rem;color:var(--accent);margin-bottom:12px;}
.side-nav{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;}
.side-nav a{padding:10px 12px;border-radius:10px;color:var(--text);text-decoration:none;}
.side-nav a.active,.side-nav a:hover{background:rgba(255,255,255,.06);}
.side-meta{color:#a9ada9;font-size:.9rem;}
.content-hero{margin-bottom:16px;}

/* === Hero lighter override === */
body.theme-luxe .hero::before{ filter: brightness(.85) saturate(.95); }
body.theme-luxe .hero::after{  background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.38)); }
body.theme-luxe .hero{ min-height: 60vh; }
body.theme-luxe .hero::before{ filter: brightness(1.08) contrast(1.1) saturate(1.08); }
body.theme-luxe .hero::after{  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.18)); }
body.theme-luxe .hero-inner{
  text-shadow: 0 2px 8px rgba(0,0,0,.28);
  display: inline-block;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 0 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(2px);
}
@media (max-width: 640px){
  body.theme-luxe .hero-inner{
    background: rgba(0,0,0,.34);
    padding: 18px 16px;
  }
}
.lead { color: inherit !important; }

/* ---------- FIX voor verspringen ---------- */
html { scrollbar-gutter: stable both-edges; }

/* Header terug naar gecentreerde container */
.site-header .container {
  max-width: 1200px;      /* TERUG naar vaste breedte */
  margin: 0 auto;         /* centreren */
  padding: 0 20px;
}

/* Binnen de header netjes uitlijnen */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* brand links, nav rechts binnen de 1200px */
  height: 64px;
}
