/* WSV De Engel subthema */

/* Dropdown-styling staat volledig in "WSV RESPONSIVE HOOFDMENU" verderop:
   desktop = hover-dropdown, mobiel = accordeon via dropdown.js.
   (Het oude ul.wsv-dropdown-blok dat hier stond overschreef door zijn hogere
   specificiteit de mobiele menuregels — oorzaak van het witte vlak.) */

/* ===== WSV CUSTOM HOMEPAGE HERO ===== */

body.path-frontpage {
  background: #f4f6f8;
}

.wsv-front-page {
  background: #f4f6f8;
  position: relative;
}

/* ===== HEADER ALLEEN OP HOMEPAGE TRANSPARANT ===== */

body.path-frontpage .wsv-front-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

/* Haven base theme overschrijven — alleen homepage */
body.path-frontpage .wsv-front-header .region-header {
  background-color: transparent !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 5vw, 72px);
  gap: 24px;
}

/* Branding links */
body.path-frontpage .wsv-front-header #block-wsv-engel-sitebranding {
  order: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Menu rechts */
body.path-frontpage .wsv-front-header #block-wsv-engel-mainnavigation {
  order: 2;
  margin-left: auto;
}

/* Logo formaat en uitlijning */
.wsv-front-header .site-logo img,
.wsv-front-header #block-wsv-engel-sitebranding img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Branding blok inline */
.wsv-front-header .block-system-branding-block,
.wsv-front-header #block-wsv-engel-sitebranding {
  display: flex;
  align-items: center;
}

/* Anchor tag horizontaal — logo en tekst naast elkaar */
.wsv-front-header #block-wsv-engel-sitebranding a {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  text-decoration: none;
}

/* Branding div naast tekst */
.wsv-front-header #block-wsv-engel-sitebranding .branding {
  display: flex !important;
  align-items: center !important;
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

/* "WSV DE ENGEL" tekst via ::after op anchor */
.wsv-front-header #block-wsv-engel-sitebranding a::after {
  content: "WSV DE ENGEL";
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: nowrap;
  line-height: 1;
}

/* Menutekst wit alleen op homepage */
body.path-frontpage .wsv-main-menu__link {
  color: #ffffff;
}

body.path-frontpage .wsv-main-menu__link:hover {
  color: #f6bd45;
}

/* ===== DONKERBLAUWE HEADER OP ALLE NIET-HOME PAGINA'S ===== */

/* Grijze strook tussen header en content weghalen — witte achtergrond.
   Sterkere selector zodat Haven's bg-background wordt overschreven. */
body:not(.path-frontpage) div.layout-container.bg-background {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Header-regio bovenop alles leggen zodat dropdown nergens achter valt */
body:not(.path-frontpage) .region-header {
  position: relative;
  z-index: 1000;
}

/* Dropdowns op niet-home pagina's extra hoog */
body:not(.path-frontpage) .wsv-dropdown {
  z-index: 10001;
}

/* De header-regio krijgt dezelfde donkerblauwe stijl als de homepage */
body:not(.path-frontpage) .region-header {
  background-color: #08233f !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 5vw, 72px);
  gap: 24px;
}

/* Branding (logo + naam) links */
body:not(.path-frontpage) .region-header #block-wsv-engel-sitebranding {
  order: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Menu rechts */
body:not(.path-frontpage) .region-header #block-wsv-engel-mainnavigation {
  order: 2;
  margin-left: auto;
}

/* Logo formaat */
body:not(.path-frontpage) .region-header #block-wsv-engel-sitebranding img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Anchor tag horizontaal — logo en tekst naast elkaar */
body:not(.path-frontpage) .region-header #block-wsv-engel-sitebranding a {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  text-decoration: none;
}

/* Branding div naast tekst */
body:not(.path-frontpage) .region-header #block-wsv-engel-sitebranding .branding {
  display: flex !important;
  align-items: center !important;
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

/* "WSV DE ENGEL" tekst via ::after */
body:not(.path-frontpage) .region-header #block-wsv-engel-sitebranding a::after {
  content: "WSV DE ENGEL";
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: nowrap;
  line-height: 1;
}

/* Menutekst wit op andere pagina's (donkerblauwe achtergrond) */
body:not(.path-frontpage) .wsv-main-menu__link {
  color: #ffffff;
}

body:not(.path-frontpage) .wsv-main-menu__link:hover {
  color: #f6bd45;
}

.wsv-custom-hero {
  min-height: clamp(460px, 55vh, 560px);
  display: flex;
  align-items: center;
  padding: 110px clamp(20px, 5vw, 72px) 120px;
  color: #ffffff;
  background:
    linear-gradient(
      to right,
      rgba(8,35,63,.95) 0%,
      rgba(8,35,63,.80) 40%,
      rgba(8,35,63,.30) 65%,
      transparent 85%
    ),
    url("../images/hero_achtergrond.webp") center center / cover no-repeat;
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  margin: 0;
}

.wsv-custom-hero__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.wsv-custom-hero__content {
  max-width: 600px;
}

/* "Welkom bij" cursieve tekst in goud */
.wsv-custom-hero__eyebrow {
  color: #f6bd45 !important;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Hoofdtitel */
.wsv-custom-hero h1 {
  max-width: 600px;
  margin: 0 0 16px;
  color: #ffffff !important;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0,0,0,.35);
}

/* Gouden scheidingslijn */
.wsv-custom-hero__divider {
  width: 72px;
  height: 3px;
  background-color: #f6bd45;
  margin: 0 0 20px 0;
  border-radius: 2px;
}

/* Subtitel */
.wsv-custom-hero__text {
  max-width: 500px;
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.4;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Buttons container */
.wsv-custom-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Basis button */
.wsv-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Gele primaire button */
.wsv-button--primary {
  background: #f6bd45;
  color: #08233f !important;
  border: 2px solid #f6bd45;
  box-shadow: 0 2px 8px rgba(246,189,69,.35);
}

.wsv-button--primary:hover {
  background: #e5ac35;
  border-color: #e5ac35;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(246,189,69,.45);
}

/* Outline secundaire button */
.wsv-button--secondary {
  background: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,.80);
}

.wsv-button--secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* SVG wave onderkant */
.wsv-custom-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.wsv-custom-hero__wave svg {
  width: 100%;
  height: 90px;
  display: block;
}

.wsv-front-content {
  background: #f4f6f8;
  padding-top: 0;
}

/* Canvas-blokken onder de custom hero */
.wsv-front-content [class*="card"] {
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(8,35,63,.08);
}

.wsv-front-content img {
  border-radius: 18px;
}

/* ===== WSV RESPONSIVE HOOFDMENU ===== */

.wsv-main-nav {
  position: relative;
  z-index: 100;
}

.wsv-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(8,35,63,.18);
  border-radius: 999px;
  background: #ffffff;
  color: #08233f;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.wsv-menu-toggle__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.wsv-main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wsv-main-menu__item {
  position: relative;
}

.wsv-main-menu__link,
.wsv-dropdown__link {
  text-decoration: none;
  color: #ffffff;
}

.wsv-main-menu__link {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.wsv-main-menu__link:hover {
  color: #f6bd45;
}

/* Dropdown links donker — die staan op witte achtergrond */
.wsv-dropdown__link {
  color: #08233f;
}

.wsv-dropdown__link:hover {
  color: #0f8fa3;
}

/* Desktop menu */
@media (min-width: 768px) {
  .wsv-main-menu {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .wsv-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 35px rgba(8,35,63,.16);
    z-index: 10000;
  }

  .wsv-main-menu__item:hover > .wsv-dropdown {
    display: block;
  }

  .wsv-dropdown__link {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
    font-size: .9rem;
  }
}

/* Mobiel menu */
@media (max-width: 767px) {
  .wsv-menu-toggle {
    display: inline-flex;
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.5);
    color: #ffffff;
  }

  .wsv-main-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 32px));
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: #0d1b3e;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
    z-index: 9999;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wsv-main-nav.is-open .wsv-main-menu {
    display: flex;
  }

  .wsv-main-menu__item {
    width: 100%;
  }

  .wsv-main-menu__link {
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    font-size: .95rem;
    color: #ffffff !important;
  }

  /* Accordeon: submenu's standaard dicht, dropdown.js zet .is-expanded */
  .wsv-dropdown {
    display: none;
    position: static;
    margin: 0 0 8px 12px;
    padding: 0 0 0 12px;
    list-style: none;
    border-left: 2px solid rgba(255,255,255,.2);
    background: transparent;
    box-shadow: none;
  }

  .wsv-main-menu__item.is-expanded > .wsv-dropdown {
    display: block;
  }

  .wsv-dropdown__link {
    display: block;
    padding: 8px 10px;
    font-size: .9rem;
    color: rgba(255,255,255,.8) !important;
  }

  /* Pijltje draait mee met de accordeon-status */
  .wsv-menu-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .wsv-main-menu__item.is-expanded > .wsv-main-menu__link .wsv-menu-arrow {
    transform: rotate(180deg);
  }
}

/* ===== MOBIELE HERO ===== */

@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
  }

  .wsv-custom-hero {
    min-height: auto;
    padding: 90px 24px 80px;
    align-items: flex-start;
    background:
      linear-gradient(
        to right,
        rgba(8,35,63,.95) 0%,
        rgba(8,35,63,.85) 60%,
        rgba(8,35,63,.60) 100%
      ),
      url("../images/hero_achtergrond-mobiel.webp") center center / cover no-repeat;
  }

  .wsv-custom-hero__content {
    max-width: 100%;
  }

  .wsv-custom-hero__eyebrow {
    font-size: clamp(1.4rem, 7vw, 2rem);
    margin-bottom: 8px;
  }

  .wsv-custom-hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    line-height: 1.05;
  }

  .wsv-custom-hero__text {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .wsv-custom-hero__actions {
    gap: 12px;
    margin-top: 24px;
  }

  .wsv-button {
    min-height: 50px;
    padding: 14px 20px;
    font-size: .95rem;
  }

  .wsv-custom-hero__wave svg {
    height: 60px;
  }
}

@media (max-width: 430px) {
  .wsv-custom-hero h1 {
    font-size: clamp(2.3rem, 11vw, 3rem);
  }

  .wsv-custom-hero__actions {
    flex-direction: column;
  }

  .wsv-button {
    width: 100%;
    justify-content: center;
  }
}

/* ===== TITEL OP MOBIEL NETJES AFBREKEN ===== */

.wsv-title-mobile {
  display: none;
}

@media (max-width: 767px) {
  .wsv-title-desktop {
    display: none;
  }

  .wsv-title-mobile {
    display: inline;
  }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  .wsv-button,
  .wsv-menu-arrow {
    transition: none;
  }
}

/* ===== HOMEPAGE ICON CARDS (Passanten / Campers / Leden) ===== */

/* De drie kaartjes in de Canvas content op de homepage */
.wsv-front-content .grid.md\:grid-cols-3 > div {
  position: relative;
  background: #ffffff !important;
  border: 1px solid rgba(8,35,63,.12) !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Gouden accentlijn bovenaan */
.wsv-front-content .grid.md\:grid-cols-3 > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #f6bd45;
}

/* Hover effect */
.wsv-front-content .grid.md\:grid-cols-3 > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(8,35,63,.12);
  border-color: rgba(246,189,69,.5) !important;
}

/* Iconen in de kaartjes goudkleurig */
.wsv-front-content .grid.md\:grid-cols-3 > div svg {
  color: #08233f;
  transition: color 0.2s ease;
}

.wsv-front-content .grid.md\:grid-cols-3 > div:hover svg {
  color: #f6bd45;
}

/* Titels in de kaartjes */
.wsv-front-content .grid.md\:grid-cols-3 > div h3 {
  color: #08233f !important;
}

/* ===== HOMEPAGE SECTIE-INDELING (achtergrond + kader) ===== */

/* Zachte zeeblauwe achtergrond achter alle content onder de hero */
.wsv-front-content {
  background: #eef4f8 !important;
  padding-top: 40px;
  padding-bottom: 56px;
}

/* Welkomstsectie (Hero side-by-side) in een wit kader met schaduw */
.wsv-front-content section.relative.flex.h-full {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(8,35,63,.10);
  border: 1px solid rgba(8,35,63,.06);
  margin-bottom: 40px;
}

/* De kaartjes krijgen iets meer ademruimte van de zeeblauwe achtergrond */
.wsv-front-content .grid.md\:grid-cols-3 {
  margin-top: 8px;
  margin-bottom: 24px;
}

/* "Meer info →" hint onderaan elke kaart */
.wsv-front-content .grid.md\:grid-cols-3 > div::after {
  content: "Meer info →";
  display: block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d4911a;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wsv-front-content .grid.md\:grid-cols-3 > div:hover::after {
  color: #08233f;
}

/* ===== CUSTOM FOOTER ===== */

.wsv-footer {
  margin-top: 0;
}

/* Golf-overgang bovenaan de footer */
.wsv-footer__wave {
  display: block;
  line-height: 0;
  margin-bottom: -1px;
}

.wsv-footer__wave svg {
  display: block;
  width: 100%;
  height: 70px;
}

/* Footer body — donkerblauw */
.wsv-footer__body {
  background: #08233f;
  color: #ffffff;
  padding: 48px clamp(20px, 5vw, 72px) 28px;
}

/* Kolommen */
.wsv-footer__cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 32px;
}

/* Merk (logo + naam) */
.wsv-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.wsv-footer__logo {
  height: 38px;
  width: auto;
}

.wsv-footer__name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.wsv-footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
  margin: 0;
  max-width: 340px;
}

/* Kolomkoppen */
.wsv-footer__heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f6bd45;
  margin: 0 0 14px;
}

/* Lijsten */
.wsv-footer__links,
.wsv-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wsv-footer__links li,
.wsv-footer__contact li {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255,255,255,.8);
}

.wsv-footer__links a,
.wsv-footer__contact a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wsv-footer__links a:hover,
.wsv-footer__contact a:hover {
  color: #f6bd45;
}

/* Onderbalk */
.wsv-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wsv-footer__legal {
  font-size: 0.95rem;
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wsv-footer__legal a {
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  text-decoration-color: rgba(246,189,69,.45);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.wsv-footer__legal a:hover {
  color: #f6bd45;
}

.wsv-footer__copy {
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
  margin: 0;
}

/* Mobiel: kolommen onder elkaar */
@media (max-width: 767px) {
  .wsv-footer__cols {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .wsv-footer__brand {
    justify-content: center;
  }

  .wsv-footer__tagline {
    margin: 0 auto;
  }

  .wsv-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .wsv-footer__legal {
    justify-content: center;
  }
}
