/*
 * Wasstraat de Walvis — GEDEELDE stijl, deel 3: ONDERDELEN (menubalk, footer, knoppen, kaarten).
 * Alleen op klassenamen gebaseerd, zodat het naast de oude stijl van Mijn Walvis kan staan.
 * Alleen toevoegen wat in BEIDE systemen gebruikt wordt; stijl voor alleen de website staat in walvis-site.css.
 */

/* alles in deze onderdelen rekent breedtes inclusief opvulling */
.site-nav, .site-nav *, .site-nav *::before, .site-nav *::after,
.site-footer, .site-footer *, .site-footer *::before, .site-footer *::after,
.btn, .brand, .brand *, .card, .note-box { box-sizing: border-box; }
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--sky-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 700;
}
.skip-link:focus { left: 8px; }


/* ===== menubalk ===== */
.site-nav {
  font-family: var(--font-text);
  line-height: 1.55;
  position: sticky; /* menubalk blijft bovenaan beeld */
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: var(--navy);
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  border-radius: 999px;
  background: #fff; /* het logo is blauw; op de donkerblauwe balk heeft het een witte ondergrond nodig */
  text-decoration: none;
}
.brand img { display: block; height: 44px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav-links ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.82); text-decoration: none; }
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current-menu-ancestor > a,
.nav-links a.current { color: #fff; }

/* uitklapmenu: onderliggende items (bijvoorbeeld de vestigingen onder "Locaties") */
.nav-links li { position: relative; }
.nav-links .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  padding: 2.5px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  vertical-align: 2px;
}
.nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -14px;
  z-index: 20;
  display: block;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(0, 0, 30, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .12s;
}
.nav-links .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; } /* houdt het menu open tussen item en lijst */
.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.nav-links .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav-links .sub-menu a:hover { background: rgba(255,255,255,0.1); }

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--yellow-ink) !important;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* zoekveld in de menubalk */
.nav-search { display: flex; align-items: center; margin: 0; border-radius: 999px; background: rgba(255,255,255,0.12); }
.nav-search input {
  width: 170px;
  padding: 8px 4px 8px 16px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  outline: none;
  transition: width .15s, padding .15s;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.6); }
.nav-search input::-webkit-search-cancel-button { display: none; }
.nav-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-search button:hover { background: rgba(255,255,255,0.14); }
.nav-search svg { width: 20px; height: 20px; }
.nav-search:focus-within { box-shadow: 0 0 0 2px var(--yellow); }
.nav-search.is-collapsed { background: transparent; }
.nav-search.is-collapsed input { width: 0; padding: 0; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 720px) {
  .brand { padding: 3px 12px; }
  .brand img { height: 36px; }
  .site-nav { padding: 12px 18px; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding: 12px 0 6px; }
  .nav-links ul { flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-links .nav-cta { text-align: center; }
  .nav-search input,
  .nav-search.is-collapsed input { width: 100%; padding: 10px 4px 10px 16px; }
  .nav-search.is-collapsed { background: rgba(255,255,255,0.12); }
  .nav-links .menu-item-has-children > a::after { display: none; }
  .nav-links .sub-menu { position: static; min-width: 0; margin-top: 8px; padding: 0 0 0 14px; background: none; box-shadow: none; opacity: 1; visibility: visible; }
  .nav-links .sub-menu::before { display: none; }
  .nav-links .sub-menu a { padding: 6px 0; }
  .site-nav.nav-open .nav-links { display: flex; }
}

/* ankerlinks en toetsenbordfocus mogen niet onder de vaste menubalk verdwijnen */
html { scroll-padding-top: 84px; }
@media (max-width: 720px) { html { scroll-padding-top: 72px; } }
/* WordPress-adminbalk (alleen ingelogd) staat er al boven */
body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-nav { top: 46px; } }

/* ===== footer ===== */
.site-footer { font-family: var(--font-text); line-height: 1.55; padding: 34px 28px 22px; background: var(--navy); color: rgba(255,255,255,0.75); font-size: 13.5px; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand { order: 1; margin-left: auto; flex: 0 0 auto; } /* logo rechts, naast de kolommen */
.footer-brand .brand { display: inline-flex; }
@media (max-width: 720px) {
  .footer-brand { order: -1; margin-left: 0; flex: 1 1 100%; } /* op een smal scherm bovenaan */
}
.footer-col h4 { margin: 0 0 10px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col a { display: block; margin-bottom: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding-top: 14px; font-size: 12.5px; color: rgba(255,255,255,0.55); }
.footer-bottom ul { display: contents; margin: 0; padding: 0; list-style: none; }
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ===== knoppen ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--yellow); color: var(--yellow-ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-block { width: 100%; }

/* ===== formulieren ===== */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
/* ===== kaarten en meldingen ===== */
.card { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.note-box { padding: 14px 18px; border-radius: 10px; background: var(--surface-sunken); font-size: 14px; }
.status-ok { color: var(--ok); font-weight: 700; }
