/* Gedeelde site-header + startinformatie-modal */

:root {
  --hh-header-gold: #c3a300;
}

/* Geen min-height: header is fixed en body.has-site-header heeft padding-top */
#site-header-mount {
  min-height: 0;
  margin: 0;
  padding: 0;
}

#site-header-mount .topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#site-header-mount .topbar .container {
  width: min(1100px, calc(100% - 36px));
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

#site-header-mount .topbar__logo {
  flex-shrink: 0;
}

#site-header-mount .topbar__logo img {
  height: 54px;
  width: auto;
  display: block;
}

#site-header-mount .topbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

#site-header-mount .topbar__nav a {
  color: #f3f4f6;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: normal;
  white-space: nowrap;
}

#site-header-mount .topbar__nav a:hover {
  color: #e0bf45;
}

#site-header-mount .topbar__mobile-controls {
  display: none;
  align-items: center;
  flex-shrink: 0;
}

#site-header-mount .topbar__menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
}

#site-header-mount .topbar__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e0bf45;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

#site-header-mount .topbar__menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

#site-header-mount .topbar__menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

#site-header-mount .topbar__menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

#site-header-mount .topbar__cta.topbar__cta--dual {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#site-header-mount .topbar__cta-link {
  text-decoration: none;
}

#site-header-mount .topbar__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

#site-header-mount .topbar__cta-btn--primary {
  background: var(--hh-header-gold);
  color: #000;
  border: 2px solid var(--hh-header-gold);
}

#site-header-mount .topbar__cta-link:hover .topbar__cta-btn--primary,
#site-header-mount .topbar__cta-btn--primary:hover {
  filter: brightness(1.1);
}

/* Hogere specificiteit dan legacy `.topbar__cta button` in pagina-<style> */
#site-header-mount .topbar__cta.topbar__cta--dual button.topbar__cta-btn.topbar__cta-btn--secondary,
#site-header-mount #topbarCta button.topbar__cta-btn.topbar__cta-btn--secondary {
  background: #000;
  color: var(--hh-header-gold);
  border: 2px solid var(--hh-header-gold);
  filter: none;
}

#site-header-mount .topbar__cta.topbar__cta--dual button.topbar__cta-btn.topbar__cta-btn--secondary:hover,
#site-header-mount #topbarCta button.topbar__cta-btn.topbar__cta-btn--secondary:hover {
  background: var(--hh-header-gold);
  color: #000;
  border-color: var(--hh-header-gold);
  filter: none;
}

#site-header-mount .mobile-nav-startinfo,
#site-header-mount .mobile-nav-cta {
  display: none !important;
}

body.has-site-header {
  padding-top: 90px;
}

/* Taalwisselaar: verborgen in header (blijft in DOM op legacy pagina's) */
#site-header-mount .topbar .language-toggle,
#site-header-mount .topbar .language-toggle-mobile {
  display: none !important;
}
/* —— Startinformatie modal —— */
.startinfo-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.startinfo-modal[hidden] {
  display: none !important;
}

.startinfo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.startinfo-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #0f1115;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.startinfo-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.startinfo-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.startinfo-modal__title {
  font-size: clamp(22px, 4vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 32px 10px 0;
  color: #f3f4f6;
}

.startinfo-modal__lead {
  font-size: 16px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 20px;
}

.startinfo-modal__field {
  margin-bottom: 14px;
}

.startinfo-modal__field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #f3f4f6;
}

.startinfo-modal__field input {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f4f6;
  box-sizing: border-box;
}

.startinfo-modal__field input:focus {
  outline: 2px solid #e0bf45;
  outline-offset: 1px;
  border-color: #e0bf45;
}

.startinfo-modal__submit {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 15px 18px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  background: #e0bf45;
  color: #111;
  cursor: pointer;
  font-family: inherit;
}

.startinfo-modal__submit:hover {
  filter: brightness(1.06);
}

.startinfo-modal__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.startinfo-modal__privacy {
  margin-top: 12px;
  font-size: 12px;
  text-align: center;
  color: #94a3b8;
}

.startinfo-modal__privacy a {
  color: #f3f4f6;
}

@media (min-width: 901px) {
  /* 3 kolommen: logo | nav (exact midden) | CTA's */
  #site-header-mount .topbar .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  #site-header-mount .topbar__logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    z-index: 2;
  }

  #site-header-mount .topbar__mobile-controls {
    display: none;
  }

  #site-header-mount .topbar__nav {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    flex: none;
    width: max-content;
    max-width: min(100%, calc(100vw - 480px));
    margin: 0;
    z-index: 1;
    transform: translateX(-50px);
  }

  #site-header-mount .topbar__cta.topbar__cta--dual {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    z-index: 2;
    margin-left: 50px;
  }

  #site-header-mount .topbar__cta-btn {
    min-height: 44px;
    padding: 11px 15px;
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  #site-header-mount .topbar__mobile-controls {
    display: flex;
  }

  #site-header-mount .topbar__menu-toggle {
    display: block;
  }

  #site-header-mount .topbar__nav,
  #site-header-mount .topbar__cta {
    display: none;
  }

  #site-header-mount .topbar__nav.mobile-open {
    display: flex;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10000;
    overflow-y: auto;
    transform: none;
  }

  #site-header-mount .topbar__nav.mobile-open > a {
    display: block !important;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: normal;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    width: 100%;
    color: #f3f4f6;
    text-decoration: none;
  }

  #site-header-mount .topbar__nav.mobile-open > a:hover {
    color: #e0bf45;
  }

  #site-header-mount .topbar__nav.mobile-open > button.mobile-nav-startinfo {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    padding: 14px 20px;
    border-radius: 8px;
    border: 2px solid var(--hh-header-gold);
    background: #000;
    color: var(--hh-header-gold);
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: normal;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  #site-header-mount .topbar__nav.mobile-open > button.mobile-nav-startinfo:hover {
    background: var(--hh-header-gold);
    color: #000;
    border-color: var(--hh-header-gold);
  }

  #site-header-mount .topbar__nav.mobile-open .mobile-nav-cta {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    margin-top: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 8px;
    background: var(--hh-header-gold);
    color: #000 !important;
    border: 2px solid var(--hh-header-gold);
    text-decoration: none;
    transition: filter 0.2s ease;
  }

  #site-header-mount .topbar__nav.mobile-open .mobile-nav-cta:hover {
    filter: brightness(1.1);
  }

  #site-header-mount .topbar__cta {
    display: none !important;
  }
}

@media (max-width: 900px) {
  #site-header-mount .topbar__nav.mobile-open > button.mobile-nav-startinfo {
    display: none !important;
  }

  #site-header-mount .topbar__nav.mobile-open .mobile-nav-cta {
    margin-top: auto;
  }
}
