/* =========================================================
   MOAISPUL — CLEAN MAKER UI
   1 column · rustig · Moaispul-blauw accent
   ========================================================= */

/* ---------- Tokens ---------- */
:root{
  --moai: #1D71B8;

  --bg: #f6f7fb;
  --panel: rgba(255,255,255,.94);
  --panel-soft: rgba(255,255,255,.86);

  --text: rgba(12,18,32,.94);
  --muted: rgba(40,52,78,.62);

  --stroke: rgba(12,18,32,.10);
  --stroke-soft: rgba(12,18,32,.06);

  --radius-xl: 22px;
  --radius-lg: 18px;

  --shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 20px 48px rgba(10,15,20,.12);

  --maxw: 980px;
  --t: 160ms cubic-bezier(.2,.8,.2,1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:
    -apple-system, BlinkMacSystemFont,
    "SF Pro Text","SF Pro Display",
    "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  background: var(--bg);
  position: relative;
}

/* vaste glow laag (kan niet overschreven worden) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      1400px 620px at 50% -120px,
      rgba(29,113,184,.26),
      transparent 62%
    ),
    radial-gradient(
      1100px 520px at 12% -80px,
      rgba(120,150,255,.20),
      transparent 60%
    );
}

/* ---------- Basics ---------- */
a{ color:inherit; text-decoration:none; }
button{ font:inherit; }
img{ max-width:100%; display:block; }

:where(a,button,input,textarea,select):focus-visible{
  outline: 3px solid rgba(29,113,184,.28);
  outline-offset: 2px;
  border-radius: 12px;
}

/* ---------- Topbar ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 18px;

  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--stroke-soft);
}

.brand-logo{
  height: 40px;
  width: auto;
}
@media (max-width:600px){
  .brand-logo{ height: 32px; }
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--stroke-soft);
  background: var(--panel);
  cursor: pointer;
}

/* ---------- Layout ---------- */
.shell{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 16px 110px; /* hero iets hoger */
}

.section{
  margin-top: 18px;
}

/* ---------- Hero Card ---------- */
.section:first-of-type .card{
  margin-top: -6px; /* hero iets hoger */
  position: relative;
  overflow: hidden;

  /* card pakt accent mee */
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.86) 0%,
      rgba(255,255,255,.96) 42%
    );
}

/* subtiele glow IN card */
.section:first-of-type .card::before{
  content:"";
  position:absolute;
  inset: -40% -20% auto -20%;
  height: 60%;
  background:
    radial-gradient(
      700px 260px at 50% 0%,
      rgba(29,113,184,.22),
      transparent 70%
    );
  pointer-events:none;
}

/* ---------- Card ---------- */
.card{
  background: var(--panel);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card.soft{
  background: var(--panel-soft);
}

/* ---------- Typography ---------- */
.h1{
  font-size: clamp(30px, 3.4vw, 48px);
  margin: 10px 0 12px;
  font-weight: 900;
  letter-spacing: -0.9px;
  line-height: 1.05;
}

.h2{
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.25px;
}

.p{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.lead{
  font-size: 17px;
  line-height: 1.85;
  max-width: 72ch;
}

/* ---------- Small UI ---------- */
.dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background: var(--moai);
  display:inline-block;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(29,113,184,.10);
  border: 1px solid rgba(29,113,184,.22);
  font-weight: 700;
  width: fit-content;
}

/* ---------- List ---------- */
.list{
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
}

.list li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: var(--muted);
}

.tick{
  width: 20px;
  height: 20px;
  border-radius: 8px;
  display:grid;
  place-items:center;
  background: rgba(29,113,184,.14);
  border: 1px solid rgba(29,113,184,.22);
  font-weight: 900;
}

/* ---------- Grid ---------- */
.grid{
  display:grid;
  gap: 14px;
}
@media (min-width: 840px){
  .grid.cols-2{ grid-template-columns: 1fr 1fr; }
  .grid.cols-3{ grid-template-columns: 1fr 1fr 1fr; }
}

/* rustige hover (geen blur / geen beweging) */
.grid .card{
  transition: border-color var(--t);
}
.grid .card:hover{
  border-color: var(--stroke);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke-soft);
  background: var(--panel);
  font-weight: 800;
  cursor: pointer;
}

.btn.primary{
  border-color: rgba(29,113,184,.30);
  background: linear-gradient(
    180deg,
    rgba(29,113,184,.20),
    rgba(29,113,184,.08)
  );
}

/* ---------- CTA ---------- */
.cta-row{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Divider ---------- */
.split{
  margin: 20px 0;
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--stroke-soft),
    transparent
  );
}

/* ---------- Bottom nav ---------- */
.bottom-nav{
  position: fixed;
  left:0; right:0; bottom:0;
  z-index: 30;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  display:flex;
  justify-content:center;
  gap: 8px;
}

.bottom-nav::before{
  content:"";
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: min(560px, calc(100% - 24px));
  height: 70px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--stroke-soft);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}

.nav-item{
  width: 74px;
  position: relative;
  z-index: 1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 4px;
  padding: 10px;
  border-radius: 18px;
  color: var(--muted);
}

.nav-item.is-active{
  color: var(--text);
  background: rgba(29,113,184,.12);
  border: 1px solid rgba(29,113,184,.22);
}

.nav-ico{ font-size: 18px; }
.nav-txt{ font-size: 12px; font-weight: 800; }

/* ---------- Forms (Offerte) ---------- */
.form{ margin-top: 16px; }

.field{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin: 12px 0;
}

.label{
  font-weight: 800;
  letter-spacing: -0.15px;
}

.input, .select, .textarea{
  border: 1px solid var(--stroke-soft);
  background: var(--panel);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
}

.textarea{
  min-height: 140px;
  resize: vertical;
}

.small{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   DARK THEME OVERRIDES
   ========================================================= */
html[data-theme="dark"]{
  --bg: #0b0f19;
  --panel: rgba(18,24,40,.74);
  --panel-soft: rgba(18,24,40,.62);

  --text: rgba(255,255,255,.92);
  --muted: rgba(235,240,255,.66);

  --stroke: rgba(255,255,255,.10);
  --stroke-soft: rgba(255,255,255,.07);

  --shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 24px 60px rgba(0,0,0,.42);

  color-scheme: dark;
}

html[data-theme="dark"] body{
  background: var(--bg);
}

html[data-theme="dark"] body::before{
  background:
    radial-gradient(
      1400px 620px at 50% -120px,
      rgba(29,113,184,.18),
      transparent 62%
    ),
    radial-gradient(
      1100px 520px at 12% -80px,
      rgba(120,150,255,.14),
      transparent 60%
    );
}

html[data-theme="dark"] .section:first-of-type .card{
  background:
    linear-gradient(
      180deg,
      rgba(18,24,40,.78) 0%,
      rgba(18,24,40,.92) 42%
    );
}

/* =========================================================
   Bottom nav — Dark mode contrast (fix)
   ========================================================= */
html[data-theme="dark"] .bottom-nav::before{
  background: rgba(18,24,40,.78);
  border-color: rgba(255,255,255,.10);
  backdrop-filter: blur(12px) saturate(140%);
}

html[data-theme="dark"] .bottom-nav .nav-item{
  color: rgba(235,240,255,.78);
}

html[data-theme="dark"] .bottom-nav .nav-item .nav-txt{
  color: rgba(235,240,255,.82);
}

html[data-theme="dark"] .bottom-nav .nav-item.is-active{
  color: rgba(255,255,255,.94);
  background: rgba(29,113,184,.18);
  border: 1px solid rgba(29,113,184,.28);
}
/* =========================================================
   WhatsApp knop — icon groen, tekst neutraal, subtle pulse
   ========================================================= */

.topbar .pill.whatsapp{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  border-radius: 999px;
  border: 1px solid var(--stroke-soft);
  background: var(--panel);
  color: var(--text);            /* ✅ tekst neutraal */
  font-weight: 800;

  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 10px 24px rgba(10,15,20,.10);

  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.topbar .pill.whatsapp:hover{
  transform: translateY(-1px);
  border-color: rgba(37,211,102,.38); /* hint WhatsApp */
  box-shadow:
    0 1px 0 rgba(255,255,255,.75) inset,
    0 16px 36px rgba(10,15,20,.14);
}

/* ✅ icoon: iets groter + groen */
.wa-ico{
  width: 20px;   /* 👈 groter */
  height: 20px;  /* 👈 groter */
  display: inline-block;
  background-color: #25D366;
  border-radius: 6px;

  /* subtiele “glow” rond het icoon */
  box-shadow: 0 8px 18px rgba(37,211,102,.24);

  -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'>\
<path d='M380.9 97.1C339-1.4 256.6-8.7 204.6 6.5 86.5 41.3 24.8 169.4 73.8 277.6L39 353l77.9-34.4c94.2 50.4 213.4 15.4 267.7-79.6 30.4-53.1 31.5-114.2-3.7-141.9z'/>\
</svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'>\
<path d='M380.9 97.1C339-1.4 256.6-8.7 204.6 6.5 86.5 41.3 24.8 169.4 73.8 277.6L39 353l77.9-34.4c94.2 50.4 213.4 15.4 267.7-79.6 30.4-53.1 31.5-114.2-3.7-141.9z'/>\
</svg>") center / contain no-repeat;

  /* ✅ pulse */
  animation: waPulse 8s ease-in-out infinite;
}

/* pulse is subtiel: alleen mini schaal + glow */
@keyframes waPulse{
  0%, 82%, 100%{
    transform: scale(1);
    box-shadow: 0 8px 18px rgba(37,211,102,.24);
    filter: saturate(1);
  }
  88%{
    transform: scale(1.06);
    box-shadow: 0 12px 28px rgba(37,211,102,.34);
    filter: saturate(1.05);
  }
  94%{
    transform: scale(1.02);
    box-shadow: 0 10px 22px rgba(37,211,102,.30);
  }
}

/* Dark mode: knop blijft neutraal, icoon blijft groen */
html[data-theme="dark"] .topbar .pill.whatsapp{
  background: rgba(18,24,40,.74);
  border-color: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 18px 42px rgba(0,0,0,.38);
}



