/* ==========================================================================
   Nassor Malanda Bestrating: basis, typografie, navigatie, footer
   ========================================================================== */

:root {
  --ink: #16181b;
  --ink-2: #1e2125;
  --ink-3: #2b2f34;
  --ink-deep: #0f1012;
  --line-dark: rgba(243, 239, 232, 0.12);
  --stone: #f3efe8;
  --stone-2: #e9e3d9;
  --stone-3: #d8cfc1;
  --line-light: rgba(22, 24, 27, 0.12);
  --text: #16181b;
  --text-muted: #5c5850;
  --text-on-dark: #f3efe8;
  --muted-on-dark: #aaa499;
  --amber: #e9a23b;
  --amber-2: #f4b758;
  --amber-deep: #8f560c;
  --whatsapp: #25d366;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --nav-h: 84px;
  --section-y: clamp(72px, 10vw, 136px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.45);

  /* Halfsteensverband als patroon, verwijst naar de stenen in het logo */
  --pattern-bond-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 .5H120M0 30.5H120M.5 0V30M60.5 30V60' stroke='%23F3EFE8' stroke-opacity='.06' fill='none'/%3E%3C/svg%3E");
  --pattern-bond-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 .5H120M0 30.5H120M.5 0V30M60.5 30V60' stroke='%2316181B' stroke-opacity='.045' fill='none'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-y: none;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--ink);
}
body {
  min-height: 100vh;
  /* clip i.p.v. hidden: maakt van body geen scrollcontainer, anders blokkeert het scrollen */
  overflow-x: clip;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--amber); color: var(--ink); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--deep { background: var(--ink-deep); color: var(--text-on-dark); }
.section--stone-2 { background: var(--ink); }
.section--bond-dark, .section--bond-light { background-image: var(--pattern-bond-dark); }
main > .section + .section { box-shadow: inset 0 1px 0 var(--line-dark); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.section-head--split { max-width: none; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr 1fr; gap: 48px; }
}

.eyebrow {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber);
}
.display-1 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 800; }
.display-2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.display-3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.025em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; color: var(--muted-on-dark); }
.accent, .text-accent-deep { color: var(--amber); }
.prose p + p { margin-top: 1em; }

/* ---------- Knoppen ---------- */
.btn {
  --btn-bg: var(--amber); --btn-fg: var(--ink); --btn-bd: var(--amber);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 12px;
  border: 1.5px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 800; font-size: 0.98rem; letter-spacing: 0.01em; text-decoration: none; line-height: 1.2;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
  touch-action: manipulation; cursor: pointer;
}
.btn:hover { --btn-bg: var(--amber-2); --btn-bd: var(--amber-2); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.25s var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text-on-dark); --btn-bd: rgba(243, 239, 232, 0.35); }
.btn--ghost:hover { --btn-bg: rgba(243, 239, 232, 0.08); --btn-bd: var(--text-on-dark); --btn-fg: var(--text-on-dark); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--stone); --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: var(--ink-3); --btn-bd: var(--ink-3); --btn-fg: var(--stone); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: rgba(22, 24, 27, 0.3); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--stone); --btn-bd: var(--ink); }
.btn--whatsapp { --btn-bg: var(--whatsapp); --btn-bd: var(--whatsapp); --btn-fg: #0b2e17; }
.btn--whatsapp:hover { --btn-bg: #3ee07f; --btn-bd: #3ee07f; --btn-fg: #0b2e17; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row > .btn { flex: 1 1 100%; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.link-arrow .icon { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Navigatie (hoog genoeg voor het originele vierkante logo) ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  color: var(--text-on-dark);
  transition: height 0.3s var(--ease-out), background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(22, 24, 27, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand__logo {
  height: calc(var(--nav-h) - 20px); width: auto; aspect-ratio: 1; flex: none;
  border-radius: 10px; box-shadow: 0 0 0 1px rgba(243, 239, 232, 0.12);
  transition: height 0.3s var(--ease-out);
}
@media (min-width: 1080px) {
  :root { --nav-h: 100px; }
  .nav.is-scrolled:not(.is-open) { height: calc(var(--nav-h) - 16px); }
  .nav.is-scrolled:not(.is-open) .brand__logo { height: calc(var(--nav-h) - 32px); }
}
.brand__text { display: grid; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.nav__links { display: none; gap: 4px; list-style: none; padding: 0; }
.nav__links a {
  position: relative; display: block; padding: 10px 14px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; color: rgba(243, 239, 232, 0.78);
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--text-on-dark); background: rgba(243, 239, 232, 0.07); }
.nav__links a[aria-current="page"] { color: var(--text-on-dark); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--amber);
}
.nav__phone { display: none; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.nav__phone .icon { color: var(--amber); }
.nav__cta { display: none; min-height: 44px; padding: 10px 18px; font-size: 0.92rem; }
.nav__toggle {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  border: 1.5px solid rgba(243, 239, 232, 0.25); color: var(--text-on-dark);
}
.nav__toggle-lines { position: relative; width: 20px; height: 14px; }
.nav__toggle-lines span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav__toggle-lines span:nth-child(1) { top: 0; }
.nav__toggle-lines span:nth-child(2) { top: 6px; }
.nav__toggle-lines span:nth-child(3) { top: 12px; }
.nav.is-open .nav__toggle-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle-lines span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 640px) { .nav__cta { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}
@media (min-width: 1280px) { .nav__phone { display: inline-flex; } }

/* Mobiel menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(10, 11, 12, 0.6);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(420px, 100%);
  display: flex; flex-direction: column; gap: 28px;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  background: var(--ink); color: var(--text-on-dark);
  background-image: var(--pattern-bond-dark);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.45s var(--ease-out), visibility 0.45s;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu__links { list-style: none; padding: 0; display: grid; }
.mobile-menu__links a {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 0;
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu__links a[aria-current="page"] { color: var(--amber); }
.mobile-menu__links .icon { color: var(--amber); }
.mobile-menu__contact { display: grid; gap: 12px; margin-top: auto; }
.mobile-menu__contact .btn { width: 100%; }
html.menu-open, html.menu-open body { overflow: hidden; }
@media (min-width: 1080px) { .mobile-menu, .menu-overlay { display: none; } }

/* ---------- Pagina-hero (subpagina's) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 72vh, 720px); display: flex; align-items: flex-end;
  background: var(--ink-deep); color: var(--text-on-dark);
}
.page-hero__media { position: absolute; inset: -8% 0 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 16, 18, 0.55) 0%, rgba(15, 16, 18, 0.15) 35%, rgba(15, 16, 18, 0.9) 100%),
    linear-gradient(90deg, rgba(15, 16, 18, 0.75) 0%, rgba(15, 16, 18, 0) 70%);
}
.page-hero--solid { background: var(--ink); background-image: var(--pattern-bond-dark); min-height: clamp(420px, 60vh, 600px); }
.page-hero--solid::before { background: radial-gradient(80% 60% at 85% 20%, rgba(233, 162, 59, 0.16), transparent 70%); }
.page-hero__content { width: 100%; padding-top: calc(var(--nav-h) + 56px); padding-bottom: clamp(44px, 7vw, 88px); display: grid; gap: 20px; }
.page-hero__content .lead { max-width: 640px; color: rgba(243, 239, 232, 0.82); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; font-size: 0.88rem; font-weight: 600; color: rgba(243, 239, 232, 0.65); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text-on-dark); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-deep); color: var(--text-on-dark); padding-top: clamp(64px, 8vw, 112px); }
.footer__grid { display: grid; gap: 44px; }
.footer__brand { display: grid; gap: 20px; max-width: 360px; align-content: start; }
.footer__logo { width: 168px; height: 168px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(243, 239, 232, 0.12); }
.footer__brand p { color: var(--muted-on-dark); }
.footer h2 { font-size: 0.8rem; font-family: var(--font-body); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.footer__list { list-style: none; padding: 0; display: grid; gap: 10px; color: rgba(243, 239, 232, 0.85); }
.footer__list a { text-decoration: none; }
.footer__list a:hover { color: var(--amber); }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .icon { margin-top: 3px; color: var(--amber); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; color: rgba(243, 239, 232, 0.85); }
.hours dt { font-weight: 700; }
.hours dd { text-align: right; font-variant-numeric: tabular-nums; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line-dark); transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.socials a:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.footer__bottom {
  margin-top: clamp(48px, 6vw, 80px); padding-block: 24px 28px; border-top: 1px solid var(--line-dark);
  padding-right: 76px; /* ruimte voor de zwevende WhatsApp-knop */
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 0.88rem; color: var(--muted-on-dark);
}
.footer__credit { text-decoration: none; transition: color 0.2s; }
.footer__credit strong { color: var(--text-on-dark); font-weight: 700; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.footer__credit:hover, .footer__credit:hover strong { color: var(--amber); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer__grid { grid-template-columns: 1.3fr 0.8fr 1.1fr 1fr; } }

/* ---------- WhatsApp knop ---------- */
.wa-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whatsapp); color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s var(--ease-out), opacity 0.25s, visibility 0.25s;
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 30px; height: 30px; }
.viewer-open .wa-fab { opacity: 0; visibility: hidden; }

/* ---------- Scroll-animaties ---------- */
[hidden] { display: none !important; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-hero-in] { animation: hero-in 0.9s var(--ease-out) both; animation-delay: var(--d, 0.5s); }
.js .hero [data-split], .js .page-hero [data-split] { visibility: hidden; animation: show-late 0s 2s forwards; }
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-word { display: inline-block; will-change: transform; }
@keyframes hero-in { from { opacity: 0; transform: translateY(26px); } }
@keyframes show-late { to { visibility: visible; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-hero-in] { animation: none; }
  .js .hero [data-split], .js .page-hero [data-split] { visibility: visible; animation: none; }
}
