/* ==========================================================================
   NorthByte · concept.css (conceptbalk)
   Overgenomen uit Northbyte/voorbeelden/gedeeld/conceptbalk.css. De vaste
   zwarte balk onderaan laat zien dat dit een conceptontwerp van NorthByte is
   voor H2O, en niet de echte site van H2O.

   - Vast onderaan (position: fixed), dus geen layout-sprong. De ruimte die de
     balk inneemt staat vanaf de eerste paint als padding op <body>.
   - Gebruik var(--nb-balk-h) voor eigen vaste knoppen onderaan, bijvoorbeeld:
     bottom: calc(var(--nb-balk-h) + 12px);
   - Op mobiel is de balk ingeklapt (48 px); de knop Meer schuift een paneel
     omhoog. Alleen transform en opacity bewegen.
   - Alles begint met .nb- zodat het nooit botst met de CSS van de conceptsite.
   ========================================================================== */

@font-face {
  font-family: "NB Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/space-grotesk-600-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root { --nb-balk-h: 48px; }
@media (min-width: 760px) { :root { --nb-balk-h: 56px; } }

body { padding-bottom: var(--nb-balk-h); }

.nb-concept, .nb-concept *, .nb-melding, .nb-melding * { box-sizing: border-box; }

.nb-concept {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  height: var(--nb-balk-h);
  background: #0a0a0a; color: #f5f5f3;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font: 500 14px/1.3 "NB Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.nb-concept a { color: inherit; text-decoration: none; }
.nb-concept svg { display: block; }

.nb-concept-in {
  height: 100%; max-width: 1440px; margin: 0 auto;
  padding: 0 16px;
  display: flex; align-items: center; gap: 16px;
}

/* Merk: wit NorthByte-icoon plus label */
.nb-concept-merk { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.nb-concept-icoon { width: 20px; height: 23px; flex: none; }
.nb-concept-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #a9a9a3; font-size: 13px; }
.nb-concept-label strong { color: #fff; font-weight: 600; }

.nb-concept-zin { margin: 0; color: #d6d6d1; font-size: 14px; white-space: nowrap; }
.nb-concept-zin strong { color: #fff; font-weight: 600; }

.nb-concept-knoppen { display: flex; gap: 8px; margin-left: auto; flex: none; }
.nb-concept-knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.nb-concept-knop:hover { border-color: #fff; }
.nb-concept-knop-wit { background: #fff; color: #0a0a0a !important; border-color: #fff; }
.nb-concept-knop-wit:hover { background: #e9e9e6; }
.nb-concept-knop-wit::after { content: "\2192"; }
.nb-concept :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.nb-concept-toggle {
  display: none; margin-left: auto; flex: none;
  height: 34px; padding: 0 12px 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff;
  font: 600 13px/1 "NB Grotesk", system-ui, sans-serif; cursor: pointer;
  align-items: center; gap: 6px;
}
.nb-concept-toggle::after {
  content: ""; width: 7px; height: 7px; margin-top: 3px;
  border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.nb-concept.is-open .nb-concept-toggle::after { transform: rotate(225deg); margin-top: -3px; }

/* Tussenmaat: zin weglaten als het krap wordt */
@media (max-width: 1080px) and (min-width: 760px) {
  .nb-concept-punt, .nb-concept-verzonnen { display: none; }
}
@media (max-width: 920px) and (min-width: 760px) {
  .nb-concept-zin { display: none; }
}

/* ----- Mobiel: ingeklapt met paneel ----- */
@media (max-width: 759px) {
  .nb-concept-label { display: flex; flex-direction: column; font-size: 12px; line-height: 1.25; }
  .nb-concept-label strong { font-size: 13.5px; }
  .nb-concept-punt { display: none; }
  .nb-concept-zin, .nb-concept-knoppen { display: none; }

  .nb-js .nb-concept-toggle { display: inline-flex; }
  .nb-js .nb-concept-paneel {
    display: block;
    position: absolute; left: 0; right: 0; bottom: 100%;
    padding: 18px 16px 16px;
    background: #0a0a0a; border-top: 1px solid rgba(255, 255, 255, .14);
    transform: translateY(12px); opacity: 0; visibility: hidden;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, visibility 0s linear .35s;
  }
  .nb-js .nb-concept.is-open .nb-concept-paneel {
    transform: none; opacity: 1; visibility: visible;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, visibility 0s;
  }
  .nb-js .nb-concept-paneel .nb-concept-zin { display: block; white-space: normal; font-size: 16px; margin-bottom: 14px; }
  .nb-js .nb-concept-paneel .nb-concept-knoppen { display: grid; gap: 8px; margin: 0; }
  .nb-js .nb-concept-paneel .nb-concept-knop { height: 44px; font-size: 14px; }
}
@media (min-width: 760px) {
  .nb-concept-paneel { display: contents; }
}

/* ----- Melding bij formulieren en contactlinks ----- */
.nb-melding {
  position: fixed; inset: auto 0 calc(var(--nb-balk-h) + 16px) 0; z-index: 9001;
  width: min(440px, calc(100% - 32px)); max-height: none;
  margin: 0 auto; padding: 22px 22px 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px;
  background: #0a0a0a; color: #f5f5f3;
  font: 400 15px/1.55 "NB Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
  opacity: 0; transform: translateY(16px);
  transition: opacity .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.nb-melding[open] { display: block; }
.nb-melding.is-zichtbaar { opacity: 1; transform: none; }
.nb-melding::backdrop { background: rgba(10, 10, 10, .45); }
.nb-melding-kop { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #a9a9a3; }
.nb-melding-kop svg { width: 18px; height: 21px; flex: none; }
.nb-melding-titel { margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.25; color: #fff; }
.nb-melding-tekst { margin: 0; color: #d6d6d1; }
.nb-melding-knoppen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nb-melding .nb-concept-knop { color: #fff; background: transparent; cursor: pointer; font-family: inherit; }
.nb-melding .nb-concept-knop-wit { color: #0a0a0a; background: #fff; }
.nb-melding a { text-decoration: none; }
.nb-melding :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .nb-concept *, .nb-melding { transition: none !important; }
}
