/* Aanvullingen op de prototype-CSS voor WordPress, foto's en het menu. */

body a {
  color: inherit;
  text-decoration: none;
}

body a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 100;
  padding: 8px 14px;
  background: #F2B33D;
  color: #0B2A5B;
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
}

.site-header__nav {
  display: block;
}

.site-header__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}

.site-header__panel {
  display: contents;
}

.site-header__panel-bar,
.site-header__phone,
.site-header__backdrop {
  display: none;
}

.site-header__toggle,
.site-header__close {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #D8E2F2;
  border-radius: 8px;
  background: #fff;
  color: #0B2A5B;
  font: 600 15px/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

.site-header__toggle {
  margin-left: auto;
  flex-shrink: 0;
}

.site-header__toggle:hover,
.site-header__close:hover,
.site-header__phone:hover {
  text-decoration: none;
}

.site-header__toggle:focus-visible,
.site-header__close:focus-visible,
.site-header__link:focus-visible,
.site-header__phone:focus-visible,
.site-header__contact:focus-visible {
  outline: 2px solid #1D5FD0;
  outline-offset: 3px;
}

.site-header__toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}

.site-header__toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.site-header__panel-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

main > .wp-block,
main > [class*="wp-block-acf-"] {
  margin: 0;
}

body .is-layout-flow > * + *,
body .is-layout-constrained > * + * {
  margin-block-start: 0;
}

div.photo img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: inherit;
}

div.photo--dark img {
  min-height: 380px;
}

div.photo:has(img) {
  display: block;
  padding: 0;
  border: none;
}

.text-block {
  max-width: 760px;
}

.text-block__content > * + * {
  margin-top: 1em;
}

.text-block__content h2,
.text-block__content h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.text-block__content h2 {
  margin: 1.5em 0 0.4em;
  font-size: 26px;
}

.text-block__content h3 {
  margin: 1.2em 0 0.35em;
  font-size: 20px;
}

.text-block__content ul,
.text-block__content ol {
  margin: 0.4em 0 1em;
  padding-left: 1.2em;
}

.text-block__content li + li {
  margin-top: 0.55em;
}

.text-block__content img {
  display: block;
  width: auto;
  max-width: min(100%, 280px);
  height: auto;
  margin: 8px 0 20px;
  border-radius: 16px;
}

.text-block__content .table-scroll {
  max-width: 100%;
  margin: 0.75em 0 1.25em;
  overflow-x: auto;
}

.text-block__content table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}

.text-block__content th,
.text-block__content td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e4e8ef;
}

.text-block__content th {
  background: #0B2A5B;
  color: #fff;
  font-weight: 600;
}

.text-block__content tbody tr:nth-child(even) td {
  background: #f4f7fb;
}

.text-block__content table.rates td:first-child {
  white-space: nowrap;
}

.text-block__content table.rates td:not(:first-child) {
  white-space: nowrap;
}

.text-block__content a {
  color: #1D5FD0;
  text-decoration: underline;
}

.site-footer__list a:hover,
.site-footer__address a:hover,
.cta__text a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero__deco--dot,
  .hero__deco--dot-top {
    display: none;
  }

  .hero__deco--sun {
    width: 160px;
    height: 160px;
    top: -60px;
    right: -50px;
  }

  .hero__deco--ring {
    width: 140px;
    height: 140px;
    border-width: 18px;
    bottom: -60px;
    left: -50px;
  }

  .site-header__inner {
    flex-wrap: nowrap;
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header__logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header__logo-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 44px;
  }

  .site-header__toggle {
    display: inline-flex;
  }

  .site-header__backdrop {
    display: block;
    position: fixed;
    z-index: 1000;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(11, 42, 91, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .site-header.is-open .site-header__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .site-header__panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 1001;
    top: 0;
    right: 0;
    width: min(22rem, calc(100% - 3rem));
    height: 100dvh;
    margin: 0;
    padding: 20px 20px 28px;
    background: #fff;
    box-shadow: -12px 0 40px rgba(11, 42, 91, 0.16);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
  }

  .site-header.is-open .site-header__panel {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.28s ease, visibility 0s;
  }

  .site-header__panel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
  }

  .site-header__close {
    display: inline-flex;
  }

  .site-header__nav {
    display: block;
  }

  .site-header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header__link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 8px 0;
    border-bottom: 1px solid #D8E2F2;
    font-size: 18px;
  }

  .site-header__link--active {
    border-bottom-color: #D8E2F2;
    box-shadow: inset 3px 0 0 #F2B33D;
    padding-left: 12px;
  }

  .site-header__phone {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin-top: 16px;
    color: #1D5FD0;
    font-weight: 600;
  }

  .site-header__contact {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
  }

  body.admin-bar .site-header__panel {
    top: 32px;
    height: calc(100dvh - 32px);
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header__panel,
  body.admin-bar .site-header__backdrop {
    top: 46px;
  }

  body.admin-bar .site-header__panel {
    height: calc(100dvh - 46px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__panel,
  .site-header__backdrop {
    transition: none;
  }
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
}
