/* ============================================================
   Diëtistenpraktijk Noer — shared stylesheet (pure HTML5 + CSS)
   No JavaScript. Mobile menu = checkbox hack. Dropdowns = :hover.
   ============================================================ */

:root{
  --purple:#a1406e;
  --purple-dark:#8a325c;
  --green:#94c652;
  --green-ink:#1f3d05;
  --ink:#2a2330;
  --body:#4a434f;
  --muted:#8a8290;
  --line:#f0e9ee;
  --line-2:#efe6ea;
  --tint:#faf6f8;
  --tint-line:#f0dce7;
  --page-x: clamp(20px, 5vw, 48px);   /* content padding from screen edges */
  --maxw: 1200px;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Lato", system-ui, sans-serif;
  --head: "Montserrat", system-ui, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:var(--sans);
  color:var(--body);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}
img{ display:block; max-width:100%; }
a{ color:inherit; }

/* generic content wrapper — gives every page edge padding + max width */
.container{
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--page-x);
}
.section{ padding-block:clamp(32px,6vw,56px); }
.section-tight{ padding-block:clamp(20px,4vw,32px); }

/* ---------- typography helpers ---------- */
.eyebrow{
  font-family:var(--mono);
  font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--purple); font-weight:700;
}
h1,h2{ font-family:var(--head); letter-spacing:-.02em; color:var(--ink); margin:0; }
.h1{ font-weight:800; font-size:clamp(28px,5.2vw,50px); line-height:1.06; }
.h2{ font-weight:800; font-size:clamp(22px,3.6vw,32px); line-height:1.15; }
.lead{ font-size:clamp(15px,2.2vw,18px); line-height:1.6; color:#5a5360; }
.prose p{ font-size:clamp(14.5px,2.4vw,16px); line-height:1.75; color:var(--body); }
.prose h2{ margin-top:clamp(24px,5vw,34px); margin-bottom:10px; font-size:clamp(18px,3vw,22px); }

/* ---------- buttons ---------- */
.btn{ display:inline-block; text-decoration:none; font-weight:700; border-radius:13px;
  padding:15px 28px; font-size:16px; text-align:center; transition:filter .15s; }
.btn:hover{ filter:brightness(.96); }
.btn-primary{ background:var(--purple); color:#fff; }
.btn-outline{ background:#fff; color:#4d7a23; border:1.5px solid var(--green); }
.btn-green{ background:var(--green); color:var(--green-ink); }
.btn-block{ display:block; }

/* ---------- breadcrumb ---------- */
.crumb{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--muted);
  padding-top:16px; }
.crumb a{ color:var(--muted); text-decoration:none; font-weight:600; }
.crumb .sep{ color:#cabcc3; }
.crumb .here{ color:var(--purple); font-weight:700; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar{ background:#eef6e2; border-bottom:1px solid #d8ecbe; padding:9px 0;
  display:flex; align-items:center; justify-content:center; gap:9px; text-align:center; }
.topbar .tick{ color:#4d7a23; font-weight:800; font-size:13px; }
.topbar span.txt{ font-size:13px; font-weight:600; color:#3d5e1c; }

.hdr{ position:relative; z-index:30; background:#fff; border-bottom:1px solid var(--line);
  font-family:var(--sans); }
.hdr-in{ max-width:var(--maxw); margin-inline:auto; padding:18px var(--page-x);
  display:flex; align-items:center; justify-content:space-between; gap:16px; }
.hdr-logo img{ height:36px; width:auto; }

.nav{ display:flex; align-items:center; gap:26px; }
.nav > a, .nav .drop > .lbl{ font-size:15px; font-weight:600; color:var(--ink);
  text-decoration:none; cursor:pointer; display:flex; align-items:center; gap:5px; white-space:nowrap; }
.nav a[aria-current="page"]{ color:var(--purple); font-weight:800; }
.nav .caret{ font-size:10px; color:var(--purple); }
.lang{ font-size:14px; font-weight:700; color:#5a5360; border:1px solid #e6dde2;
  border-radius:8px; padding:6px 11px; }

/* CSS-only dropdowns */
.drop{ position:static; }
.drop .menu{ position:absolute; left:0; right:0; top:100%; background:#fff;
  border-bottom:1px solid var(--line); box-shadow:0 24px 50px rgba(60,28,52,.12);
  padding:30px var(--page-x); opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .16s, transform .16s, visibility .16s; }
.drop:hover .menu, .drop:focus-within .menu{ opacity:1; visibility:visible; transform:none; }
.menu-grid{ display:grid; gap:12px; max-width:1100px; }
.menu-grid.cols4{ grid-template-columns:repeat(4,1fr); }
.menu-grid.cols6{ grid-template-columns:repeat(6,1fr); }
.menu-card{ text-decoration:none; padding:14px 16px; border-radius:12px; border:1px solid var(--line); display:block; }
.menu-card.usp{ border-color:#f6e3ee; background:var(--tint); }
.menu-card .t{ font-weight:800; font-size:15px; color:var(--ink); }
.menu-card.usp .t{ color:var(--purple); }
.menu-card .s{ font-size:12.5px; color:var(--muted); margin-top:3px; }
.menu-card.usp .s{ color:var(--purple); }
.menu-all{ display:inline-block; margin-top:18px; font-size:14px; font-weight:700;
  color:var(--purple); text-decoration:none; }

/* hamburger + mobile menu (checkbox hack, no JS) */
.nav-toggle{ display:none; }               /* the checkbox */
.hamburger{ display:none; cursor:pointer; width:44px; height:44px; border-radius:10px;
  border:1px solid #e6dde2; align-items:center; justify-content:center; color:var(--ink); }
.hamburger svg{ width:24px; height:24px; }
.mobile-panel{ display:none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ background:var(--ink); color:#c9c0ce; font-family:var(--sans); }
.footer-in{ max-width:var(--maxw); margin-inline:auto; padding:56px var(--page-x) 40px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px; align-items:start; }
.footer img.logo{ height:34px; width:auto; filter:brightness(0) invert(1); }
.footer .blurb{ font-size:14px; line-height:1.6; color:#b6acbb; margin:16px 0 0; max-width:34ch; }
.footer .col-h{ font-family:var(--mono); font-size:11px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted); font-weight:700; }
.footer .links{ display:flex; flex-direction:column; gap:9px; margin-top:15px; }
.footer .links a{ font-size:14px; color:#c9c0ce; text-decoration:none; }
.footer .links a:hover{ color:#fff; }
.socials{ display:flex; gap:10px; margin-top:13px; }
.socials a{ width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.13); display:flex; align-items:center; justify-content:center; color:#fff; }
.socials svg{ width:18px; height:18px; }
.affil{ margin-top:40px; padding-top:26px; border-top:1px solid rgba(255,255,255,.12); }
.affil-row{ display:flex; flex-wrap:wrap; gap:16px 34px; align-items:center; margin-top:18px; }
.affil-row .slot{ height:44px; display:flex; align-items:center; }
.affil-row img{ max-height:30px; max-width:130px; width:auto; object-fit:contain; opacity:.9; }
.legal{ margin-top:32px; padding-top:20px; border-top:1px solid rgba(255,255,255,.12);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; }
.legal-links{ display:flex; flex-wrap:wrap; gap:8px 18px; }
.legal-links a{ font-size:12.5px; color:#b6acbb; text-decoration:none; font-weight:600; }
.legal .copy{ font-size:12.5px; color:#6f6573; }

/* ============================================================
   MOBILE BOTTOM TAB BAR (hidden on desktop)
   ============================================================ */
.tabbar{ display:none; }

/* generic responsive grids used by pages */
.grid{ display:grid; gap:18px; }
.grid.c2{ grid-template-columns:1fr 1fr; }
.grid.c3{ grid-template-columns:repeat(3,1fr); }
.card{ background:#fff; border:1px solid var(--line-2); border-radius:18px; padding:24px; text-decoration:none; display:block; }
.card .t{ font-weight:800; font-size:18px; color:var(--ink); }
.card .s{ font-size:14px; color:var(--muted); margin-top:4px; }
.tint-card{ background:var(--tint); border:1px solid var(--tint-line); border-radius:16px; padding:24px; }

/* ============================================================
   RESPONSIVE  ≤ 820px  → mobile layout
   ============================================================ */
@media (max-width: 820px){
  .nav > a, .nav .drop, .nav .lang{ display:none; }   /* hide desktop nav items */
  .hamburger{ display:none; }                          /* no top burger — menu opens from tab bar */

  /* any two-column split collapses to one column on mobile,
     overriding inline grid-template-columns set for desktop */
  .split{ grid-template-columns:1fr !important; }
  .hdr-in{ padding:14px 18px; justify-content:center; }
  .hdr-logo img{ height:28px; }
  .topbar span.txt{ font-size:11px; }

  /* mobile menu = bottom sheet above the tab bar, toggled by the Menu label */
  .mobile-panel{ display:block; position:fixed; left:0; right:0; bottom:74px; z-index:49;
    background:#fff; border-top:1px solid var(--line); box-shadow:0 -18px 40px rgba(60,28,52,.16);
    border-radius:20px 20px 0 0; max-height:0; overflow:hidden;
    transition:max-height .28s ease; }
  .nav-toggle:checked ~ .mobile-panel{ max-height:72vh; overflow:auto; }
  .mobile-panel .inner{ padding:14px 20px 20px; }
  .mobile-panel a{ display:block; padding:13px 4px; font-size:16px; font-weight:700;
    color:var(--ink); text-decoration:none; border-bottom:1px solid #f4eef1; }
  .mobile-panel a.cta{ margin-top:14px; background:var(--purple); color:#fff; padding:14px;
    border-radius:11px; text-align:center; font-weight:800; border:none; }

  .container{ padding-inline:20px; }

  .footer-in{ padding:32px 22px 26px; }
  .footer-grid{ grid-template-columns:1fr; gap:26px; }
  .footer .blurb{ max-width:none; }
  .affil-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; }
  .affil-row .slot{ justify-content:center; }

  .grid.c2, .grid.c3{ grid-template-columns:1fr 1fr; }

  /* bottom tab bar */
  body{ padding-bottom:74px; }              /* room for fixed bar */
  .tabbar{ display:flex; position:fixed; left:0; right:0; bottom:0; z-index:50;
    background:rgba(255,255,255,.97); backdrop-filter:blur(8px);
    border-top:1px solid #eee2ea; box-shadow:0 -8px 24px rgba(60,28,52,.08);
    align-items:flex-end; justify-content:space-around;
    padding:10px 6px calc(12px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar .menu-tab{ flex:1; display:flex; flex-direction:column; align-items:center; gap:4px;
    text-decoration:none; color:var(--muted); padding-bottom:2px; cursor:pointer; }
  .tabbar a[aria-current="page"]{ color:var(--purple); }
  .tabbar svg{ width:23px; height:23px; }
  .tabbar .lbl{ font-size:10.5px; font-weight:700; }
  .tabbar .fab{ width:56px; height:56px; margin-top:-30px; border-radius:50%;
    background:var(--purple); border:4px solid #fff; display:flex; align-items:center;
    justify-content:center; color:#fff; box-shadow:0 8px 18px rgba(161,64,110,.4); }
  .tabbar .fab svg{ width:24px; height:24px; }
  .tabbar .fab-lbl{ color:var(--purple); font-weight:800; }
}

@media (max-width: 520px){
  .grid.c2, .grid.c3{ grid-template-columns:1fr; }
}

/* hide mobile-only chrome on desktop explicitly */
@media (min-width: 821px){
  .mobile-panel, .tabbar{ display:none !important; }
}
