/* ============================================
   Upgrade layer on top of the rebuild (loaded last).
   Same design and copy as the original; only readability,
   alignment and navigation are refined here.
   ============================================ */

:root {
  --color-primary-deep: #EE6000;   /* behind white text: more contrast, same orange feel */
  --content-max: 1140px;
  --gutter: 40px;
}

@media (max-width: 767px) { :root { --gutter: 15px; } }

/* --------------------------------------------
   Readability
   -------------------------------------------- */
.title { line-height: 1.15; }

.prose { line-height: 1.6; }
.prose p { margin-bottom: .85em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }

/* Links: dark text with orange underline instead of default blue */
.prose a,
.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover { text-decoration-color: currentColor; }

/* White text on orange: slightly deeper orange behind it, a bit larger and heavier */
.hero::before { background-color: var(--color-primary-deep); opacity: .92; }
.about { background-color: var(--color-primary-deep); }
.contact-band::before { background-color: var(--color-primary-deep); opacity: .93; }

.hero__points { font-size: 19px; line-height: 1.5; }
.hero__points li + li { margin-top: 4px; }
.about__body,
.contact-band__text,
.tile__text { font-size: 19px; font-weight: 500; }
.hero .prose a,
.about .prose a,
.contact-band .prose a,
.tile .prose a { text-decoration-color: currentColor; }

.intro-card__text { font-size: 18px; }

/* --------------------------------------------
   Alignment: one content width (1140px) for every section
   -------------------------------------------- */
@media (min-width: 1025px) {
  .hero__inner { max-width: var(--content-max); }
  .hero__row { gap: 40px; }
  .hero__text { flex: 1.45 1 0; }
  .hero__title { font-size: 46px; }
  .hero__media { flex: 1 1 0; }

  .intro__inner { align-items: stretch; max-width: var(--content-max); gap: 20px; }
  .intro-card { flex: 1 1 0; width: auto; }

  .news__inner { max-width: var(--content-max); gap: 60px; }

  .contact-band { padding-inline: max(var(--gutter), calc((100% - var(--content-max)) / 2)); gap: 60px; }
  .contact-band__col--address .contact-band__inner,
  .contact-band__inner { max-width: none; }

  .faq__list { width: 100%; max-width: 100%; }

  .site-footer__grid { padding-inline: max(var(--gutter), calc((100% - var(--content-max)) / 2)); gap: 60px; }
  .site-footer__form { width: 45%; }
}

/* Subpage heroes: same width as the content, readable intro */
.page-hero::before { background-color: var(--color-primary-deep); }
.page-hero__intro { font-size: 19px; font-weight: 500; }

@media (min-width: 1025px) {
  .page-hero__inner { max-width: var(--content-max); }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .page-hero { padding-inline: var(--gutter); }
}

/* --------------------------------------------
   Aanmeldstatus table
   -------------------------------------------- */
.aanmeldinfo__scroll { padding: 0; margin-top: 20px; border: 1px solid #E3DDD6; border-radius: 5px; }

.status-table { margin: 0; font-size: 17px; }

.status-table th,
.status-table td { padding: 10px 16px; border: 0; border-bottom: 1px solid #E3DDD6; white-space: normal !important; }

.status-table tr:last-child td { border-bottom: 0; }
.status-table tr:first-child th { background-color: var(--color-slate); color: var(--color-white); }
.status-table tr:nth-child(odd) > td { background-color: #FAF7F4; }

.status-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border-radius: 50%;
  vertical-align: -2px;
}

/* Traffic light, chosen per insurer in Pages CMS */
.status-dot--groen { background-color: #1B8A6B; }
.status-dot--oranje { background-color: var(--color-primary); }
.status-dot--rood { background-color: #C62E2E; }

/* --------------------------------------------
   FAQ bars: a bit more air
   -------------------------------------------- */
.acc--faq .acc__title { padding-block: 16px; border-radius: 5px; }
.acc--faq[open] .acc__title { border-radius: 5px 5px 0 0; }
.acc--faq .acc__panel { padding-bottom: 20px; border-radius: 0 0 5px 5px; }

/* --------------------------------------------
   Desktop navigation
   -------------------------------------------- */
@media (min-width: 1025px) {
  .menu__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 3px;
    border-radius: 3px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
  }

  .menu__item--sub > .menu__link::after { right: 26px; }

  .menu__link:hover::after,
  .menu__item--sub.is-open > .menu__link::after,
  .menu .menu__link[aria-current="page"]::after,
  .menu__item--sub:has([aria-current="page"]) > .menu__link::after { transform: scaleX(1); }

  /* Text stays dark: orange text on white is hard to read */
  .menu .menu__link[aria-current="page"],
  .menu__item--sub.is-open > .menu__link { color: var(--color-text); fill: var(--color-text); }

  .menu__arrow svg { transition: transform .25s ease; }
  .menu__item--sub.is-open .menu__arrow svg { transform: rotate(180deg); }

  .menu__sub,
  .menu__item:not(:first-child) > .menu__sub {
    top: calc(100% + 14px);
    left: -16px;
    min-width: 260px;
    padding: 8px;
    border-radius: 5px;
    background-color: var(--color-white);
    box-shadow: 0 18px 40px -12px rgba(43, 58, 66, .35), 0 0 0 1px rgba(43, 58, 66, .06);
    animation: menu-in .18s ease-out;
  }

  .menu__item:not(:first-child) > .menu__sub { left: 0; }

  /* Bridge over the gap so the panel stays open while the pointer moves down */
  .menu__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }

  .menu__sublink,
  .menu__sub li:first-child .menu__sublink,
  .menu__sub li:last-child .menu__sublink {
    padding: 11px 14px;
    border-radius: 5px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 500;
    text-transform: none;
  }

  .menu__sublink[aria-current="page"] {
    background-color: #FFF1E6;
    color: var(--color-text);
    box-shadow: inset 3px 0 0 var(--color-primary);
  }
}

@media (min-width: 1025px) and (hover: hover) {
  .menu__link:hover { color: var(--color-text); fill: var(--color-text); }
  .menu__sublink:hover { background-color: #FFF1E6; color: var(--color-text); }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------
   Tablet and mobile menu: light panel with large tap targets
   -------------------------------------------- */
@media (max-width: 1024px) {
  .menu .menu__list {
    max-height: 0;
    background-color: var(--color-white);
    box-shadow: 0 24px 40px -16px rgba(43, 58, 66, .35);
  }

  .menu.is-open .menu__list { max-height: calc(100vh - 110px); }

  .menu__item { border-bottom: 1px solid #ECE6E0; }
  .menu__item:last-child { border-bottom: 0; }

  .menu__link,
  .menu__sublink {
    min-height: 56px;
    padding: 14px 24px;
    color: var(--color-text);
    fill: var(--color-text);
    font-family: var(--font-main);
    font-size: 19px;
    font-weight: 600;
    text-transform: none;
  }

  .menu__link { justify-content: space-between; }

  .menu__sub { background-color: #FAF7F4; }

  .menu__sub li .menu__sublink {
    min-height: 50px;
    padding-left: 40px;
    border-left: 0;
    font-size: 17px;
    font-weight: 500;
  }

  .menu .menu__link[aria-current="page"],
  .menu .menu__sublink[aria-current="page"] {
    background-color: #FFF1E6;
    color: var(--color-text);
    fill: var(--color-text);
    box-shadow: inset 4px 0 0 var(--color-primary);
  }

  .menu__item--sub.is-open > .menu__link { background-color: transparent; color: var(--color-primary-deep); fill: var(--color-primary-deep); }

  .menu__arrow svg { width: 18px; height: 18px; transition: transform .25s ease; }
  .menu__item--sub.is-open .menu__arrow svg { transform: rotate(180deg); }
}

@media (max-width: 1024px) and (hover: hover) {
  .menu__link:hover,
  .menu__sublink:hover { background-color: #FFF1E6; }
}

/* --------------------------------------------
   Footer: wave on top, logo, form in a panel
   -------------------------------------------- */
.site-footer { position: relative; background-color: var(--color-slate); border-bottom: 6px solid var(--color-primary); }
.site-footer .wave svg { --wave-h: 60px; }

.site-footer__grid { align-items: flex-start; padding-top: 130px; padding-bottom: 80px; }

.site-footer__info { gap: 24px; }

.site-footer__logo { display: inline-flex; width: fit-content; padding: 6px; border-radius: 50%; background-color: var(--color-white); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5); }
.site-footer__logo img { width: 84px; height: auto; border-radius: 50%; }

.site-footer__text { font-size: 17px; line-height: 1.7; }
.site-footer__text strong { color: var(--color-primary); font-size: 18px; }
.site-footer__text p:last-child { display: none; }   /* empty spacer paragraph from the original */

.site-footer__form {
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, .05);
}

.site-footer__title { font-size: 26px; }

.site-footer .form__label { padding-bottom: 8px; font-size: 16px; }
.site-footer .form__group { margin-bottom: 16px; }

.site-footer .form__field {
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 17px;
}

.site-footer .form__field--area { min-height: 120px; }
.site-footer .form__field:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255, 108, 4, .3); }
.site-footer .form__submit { padding: 14px 28px; font-size: 18px; }

@media (max-width: 1024px) {
  .site-footer__grid { padding-top: 100px; padding-bottom: 50px; }
}

@media (max-width: 767px) {
  .site-footer .wave svg { width: calc(234% + 1.3px); --wave-h: 30px; }
  .site-footer__grid { padding-top: 60px; }
  .site-footer__form { padding: 24px 18px; }
  .site-footer__title { font-size: 21px; }
}

/* --------------------------------------------
   Menu item Aanmelden: small live status dot
   (same traffic light as the table, so visitors spot it)
   -------------------------------------------- */
.menu__status {
  position: relative;
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 1px;
}
.menu__status--groen { background-color: #1B8A6B; }
.menu__status--oranje { background-color: var(--color-primary); }
.menu__status--rood { background-color: #C62E2E; }

/* Soft pulse only when registration is open */
.menu__status--groen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: inherit;
  animation: menu-status-pulse 2.4s ease-out infinite;
}
@keyframes menu-status-pulse {
  0% { transform: scale(1); opacity: .5; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .menu__status--groen::after { animation: none; }
}

/* Footer bottom line: copyright and ForwardX credit, kept quiet */
.site-footer__onder {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px max(var(--gutter), calc((100% - var(--content-max)) / 2));
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}
.site-footer__onder a { color: rgba(255, 255, 255, .9); }
