/* muziekschool-header-shell 1.0.0 · vanilla port van de 21st.dev Variable Font Hover By Letter (@danielpetho) voor
   Toonkamer. Iedere navigatielink is in letters gesplitst; bij hover en focus zwellen die van 'wght' 400, 'SOFT' 0
   naar 'wght' 760, 'SOFT' 100, gestaffeld vanuit het midden. Kleuren alleen via --m-*; Fraunces en Montserrat komen
   uit assets/fonts.css van de hero. */
.msm-muziekschool-header-shell {
  --mn-ink: var(--m-ink, #242126);
  --mn-bg: var(--m-bg, #eee8dc);
  --mn-surface: var(--m-surface, #fffaf2);
  --mn-line: var(--m-line, #dbd5ca);
  --mn-primary: var(--m-primary, #cf4f3f);
  /* Gevulde knop: --m-primary iets verdiept met --m-ink, zodat de tekst in --m-surface ruim leesbaar blijft. */
  --mn-fill: color-mix(in srgb, var(--m-primary, #cf4f3f) 86%, var(--m-ink, #242126));
  --mn-display: var(--m-font-display, 'Fraunces', ui-serif, Georgia, serif);
  --mn-body: var(--m-font-body, 'Montserrat', ui-sans-serif, system-ui, sans-serif);
  position: sticky;
  top: 0;
  z-index: 60;
  margin: 0;
  background: var(--mn-bg);
  border-bottom: 1px solid var(--mn-line);
  color: var(--mn-ink);
  font-family: var(--mn-body);
  -webkit-font-smoothing: antialiased;
}
.msm-muziekschool-header-shell *,
.msm-muziekschool-header-shell *::before,
.msm-muziekschool-header-shell *::after { box-sizing: border-box; }

.msm-muziekschool-header-shell .mn-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1400px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}
.msm-muziekschool-header-shell .mn-brand,
.msm-muziekschool-header-shell .mn-panel-brand {
  font-family: var(--mn-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--mn-ink);
  text-decoration: none;
}
.msm-muziekschool-header-shell .mn-brand { padding: 8px 0; border-radius: 6px; }

/* Vijf links in het midden. Fraunces variabel, want de zwelling gebruikt de assen wght en SOFT. */
.msm-muziekschool-header-shell .mn-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.9vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.msm-muziekschool-header-shell .mn-link,
.msm-muziekschool-header-shell .mn-panel-link {
  position: relative;
  display: inline-flex;
  color: var(--mn-ink);
  text-decoration: none;
  font-family: var(--mn-display);
  font-variation-settings: 'wght' 400, 'SOFT' 0;
  border-radius: 6px;
}
.msm-muziekschool-header-shell .mn-link { padding: 10px 2px; font-size: 18px; line-height: 1; }
.msm-muziekschool-header-shell .mn-label { display: inline-block; text-align: center; white-space: nowrap; }
.msm-muziekschool-header-shell .mn-letter { display: inline-block; white-space: pre; }
.msm-muziekschool-header-shell .mn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* De actieve link houdt de zwelling vast; een haarlijn eronder maakt de stand ook zonder gewicht zichtbaar. */
.msm-muziekschool-header-shell .mn-link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 1px;
  background: var(--mn-primary);
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.msm-muziekschool-header-shell .mn-link[aria-current="true"]::after { transform: scaleX(1); }

.msm-muziekschool-header-shell .mn-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.msm-muziekschool-header-shell .mn-secondary {
  font-weight: 500;
  font-size: 15px;
  color: var(--mn-ink);
  text-decoration: none;
  padding: 10px 2px;
  border-radius: 6px;
  text-underline-offset: 6px;
}
.msm-muziekschool-header-shell .mn-secondary:hover,
.msm-muziekschool-header-shell .mn-secondary[aria-current="true"] { text-decoration: underline; text-decoration-color: var(--mn-primary); }
.msm-muziekschool-header-shell .mn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--mn-fill);
  color: var(--mn-surface);
  font-family: var(--mn-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.msm-muziekschool-header-shell .mn-cta:hover { transform: translateY(-2px); }
.msm-muziekschool-header-shell .mn-menu,
.msm-muziekschool-header-shell .mn-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mn-line);
  border-radius: 999px;
  background: var(--mn-surface);
  color: var(--mn-ink);
  cursor: pointer;
}
.msm-muziekschool-header-shell .mn-close { display: inline-flex; }
.msm-muziekschool-header-shell svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.msm-muziekschool-header-shell a:focus-visible,
.msm-muziekschool-header-shell button:focus-visible {
  outline: 2px solid var(--mn-primary);
  outline-offset: 4px;
}

/* Paneel van rechts. */
.msm-muziekschool-header-shell .mn-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: color-mix(in srgb, var(--m-ink, #242126) 38%, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.msm-muziekschool-header-shell .mn-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 71;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  padding: 14px clamp(16px, 5vw, 32px) 28px;
  overflow-y: auto;
  background: var(--mn-bg);
  border-left: 1px solid var(--mn-line);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.msm-muziekschool-header-shell.is-open .mn-backdrop { opacity: 1; }
.msm-muziekschool-header-shell.is-open .mn-panel { transform: translateX(0); }
.msm-muziekschool-header-shell .mn-panel[hidden],
.msm-muziekschool-header-shell .mn-backdrop[hidden] { display: none; }
.msm-muziekschool-header-shell .mn-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mn-line);
}
.msm-muziekschool-header-shell .mn-panel-links { margin: 18px 0 0; padding: 0; list-style: none; }
.msm-muziekschool-header-shell .mn-panel-link {
  display: flex;
  padding: 10px 0;
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.1;
}
.msm-muziekschool-header-shell .mn-panel-link .mn-label { text-align: left; }
.msm-muziekschool-header-shell .mn-panel-link[aria-current="true"] { color: var(--m-accent2, #7a3833); }
.msm-muziekschool-header-shell .mn-panel-foot {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 14px;
}
.msm-muziekschool-header-shell .mn-panel-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--m-muted, #69616b); }
.msm-muziekschool-header-shell .mn-panel-cta { width: 100%; min-height: 52px; font-size: 16px; }

@media (max-width: 1099px) {
  .msm-muziekschool-header-shell .mn-bar { gap: 16px; }
  .msm-muziekschool-header-shell .mn-link { font-size: 17px; }
  .msm-muziekschool-header-shell .mn-actions { gap: 14px; }
  .msm-muziekschool-header-shell .mn-cta { padding: 0 18px; }
}
@media (max-width: 1023px) {
  .msm-muziekschool-header-shell .mn-bar { gap: 12px; }
  .msm-muziekschool-header-shell .mn-brand { font-size: 23px; }
  .msm-muziekschool-header-shell .mn-links { gap: 10px; }
  .msm-muziekschool-header-shell .mn-link { font-size: 16px; }
  .msm-muziekschool-header-shell .mn-actions { gap: 12px; }
  .msm-muziekschool-header-shell .mn-cta { padding: 0 16px; font-size: 14px; }
}
@media (max-width: 899px) {
  .msm-muziekschool-header-shell .mn-bar { grid-template-columns: 1fr auto; min-height: 64px; }
  .msm-muziekschool-header-shell .mn-nav,
  .msm-muziekschool-header-shell .mn-secondary { display: none; }
  .msm-muziekschool-header-shell .mn-menu { display: inline-flex; }
  .msm-muziekschool-header-shell .mn-brand { font-size: 24px; }
  /* Zonder script: geen paneel, de links staan als tweede rij onder de merknaam. */
  .msm-muziekschool-header-shell:not(.is-ready) .mn-menu { display: none; }
  .msm-muziekschool-header-shell:not(.is-ready) .mn-nav { display: block; grid-column: 1 / -1; overflow-x: auto; padding-bottom: 8px; }
  .msm-muziekschool-header-shell:not(.is-ready) .mn-links { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .msm-muziekschool-header-shell .mn-actions .mn-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .msm-muziekschool-header-shell .mn-panel,
  .msm-muziekschool-header-shell .mn-backdrop,
  .msm-muziekschool-header-shell .mn-cta,
  .msm-muziekschool-header-shell .mn-link::after { transition-duration: 0.01ms; }
  .msm-muziekschool-header-shell .mn-cta:hover { transform: none; }
}
