/* Shared public header. Load after page styles; keep page-specific rules out. */
html {
  --site-header-height: 73px;
  /* Reserve scrollbar space without breaking the existing body modal scroll lock. */
  scrollbar-gutter: stable;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
.site-header .brand {
  display: block;
  flex: 0 0 auto;
  color: var(--bordeaux);
  text-decoration: none;
  border-radius: 4px;
}
.site-header .brand svg { display: block; width: 238px; height: 44px; }
.site-header .links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}
.site-header .links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1.6 -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: .4px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.site-header .links a:hover { color: var(--bordeaux); background: #f8f2e8; }
.site-header .links a.active,
.site-header .links a[aria-current] { color: var(--bordeaux); background: #f3ead9; }
.site-header a:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
.site-header .nav-short { display: none; }
/* Taalkeuze NL / FR / EN */
.site-header .lang { position: relative; flex: 0 0 auto; }
.site-header .lang summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  font: 600 11px/1 -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: .8px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.site-header .lang summary::-webkit-details-marker { display: none; }
.site-header .lang summary::after { content: ""; width: 5px; height: 5px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.site-header .lang summary:hover,
.site-header .lang[open] summary { color: var(--bordeaux); border-color: var(--bordeaux); }
.site-header .lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 130px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(43, 38, 36, .12);
}
.site-header .lang-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink, #2b2624);
  font: 500 13px/1.2 -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  text-decoration: none;
}
.site-header .lang-menu a:hover { background: #f8f2e8; color: var(--bordeaux); }
@media (max-width: 900px) {
  html { --site-header-height: 113px; }
  .site-header { flex-direction: column; gap: 8px; padding: 10px 16px; }
  .site-header .brand svg { width: 217px; height: 40px; }
  .site-header .links { gap: 2px; }
  .site-header .links a { padding-inline: 12px; }
  /* Mobiel: geen knop maar een rustig label, op dezelfde hoogte als het logo */
  .site-header .lang { position: absolute; top: 17px; right: 12px; }
  .site-header .lang summary { min-height: 28px; padding: 4px 6px; border: 0; border-radius: 6px; color: var(--gold); letter-spacing: 1.6px; }
  .site-header .lang summary::after { width: 4px; height: 4px; }
  .site-header .lang[open] summary, .site-header .lang summary:hover { color: var(--bordeaux); background: #f8f2e8; }
}
@media (max-width: 600px) {
  .site-header .links a { padding-inline: 6px; font-size: 12px; letter-spacing: 0; }
  .site-header .nav-full { display: none; }
  .site-header .nav-short { display: inline; }
  .site-header .lang { top: 16px; right: 8px; }
}
@media (max-width: 380px) {
  .site-header .lang summary { padding: 4px; letter-spacing: 1px; }
  .site-header .lang summary::after { display: none; }
}

/* Route visibility is selected in the head, before the first page is painted. */
.site-pages > section { display: none; padding: 54px 0; scroll-margin-top: var(--site-header-height); }
html[data-page="home"] .site-pages > #home,
html[data-page="domeinen"] .site-pages > #domeinen,
html[data-page="horeca"] .site-pages > #horeca,
html[data-page="cavisten"] .site-pages > #cavisten,
html[data-page="prive"] .site-pages > #prive { display: block; }
@media (max-width: 600px) {
  .site-pages > section { padding: 36px 0; }
}
