/* Opbouw van de pagina: topbalk, header + menu, paginakop, footer */

/* ---- topbalk ---- */
.topbar { background: var(--bordeaux); color: #fff; font-size: 14px; }
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 9px var(--gutter);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 16px; text-align: center;
}
.topbar__msg { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 999px; background: #fff; flex: none; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); } to { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar a:hover { color: var(--bordeaux-tint); }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- header + menu ---- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 30; transition: box-shadow 0.35s ease; }
.is-scrolled .site-header { box-shadow: 0 6px 24px rgba(46, 43, 37, 0.1); }

.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 48px); transition: padding 0.3s ease;
}
.is-scrolled .site-header__inner { padding-top: 10px; padding-bottom: 10px; }

/* logo: de tekst past in de balk, de bloem is groter en steekt onder de header uit, met een witte cirkel erachter.
   --th = hoogte van de tekst; de bloem is 1,6 keer zo hoog */
.site-header { --th: clamp(54px, 5vw, 72px); }
.is-scrolled .site-header { --th: 42px; }
.logo { display: flex; align-items: center; gap: calc(var(--th) * 0.42); flex: none; position: relative; z-index: 2; height: var(--th); text-decoration: none; }
.logo__mark { position: relative; flex: none; align-self: flex-start; margin: calc(var(--th) * 0.16) calc(var(--th) * 0.1) 0 calc(var(--th) * 0.12); height: calc(var(--th) * 1.9); transition: height 0.3s ease, margin 0.3s ease; }
.logo__mark::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 134%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; }
.logo__mark img { display: block; height: 100%; width: auto; }
.logo__text { display: block; height: var(--th); width: auto; max-width: none; transition: height 0.3s ease; }

.nav { display: flex; align-items: center; margin-left: auto; padding-left: clamp(20px, 2.6vw, 44px); border-left: 1px solid rgba(32, 30, 29, 0.16); font-weight: 600; font-size: 16px; white-space: nowrap; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(16px, 1.9vw, 30px); }
.nav__item { position: relative; }
.nav__link {
  display: inline-block; color: var(--ink); text-decoration: none; padding: 6px 0;
  background: linear-gradient(var(--bordeaux), var(--bordeaux)) left bottom / 0% 2px no-repeat;
  transition: background-size 0.3s ease, color 0.2s;
}
.nav__link:hover, .nav__link:focus-visible, .nav__link[aria-current] { color: var(--bordeaux); background-size: 100% 2px; }

.subnav {
  list-style: none; margin: 0; padding: 10px; position: absolute; left: -16px; top: 100%; min-width: 260px; max-height: 70vh; overflow-y: auto;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); font-weight: 500; font-size: 15px; white-space: normal;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav__item:hover > .subnav, .nav__item:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: 8px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.subnav a:hover, .subnav a:focus-visible { background: var(--cream); color: var(--bordeaux); }

.menu-toggle, .call-icon {
  display: none; width: 48px; height: 48px; border-radius: 999px; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle { border: 1px solid rgba(32, 30, 29, 0.16); background: var(--cream); color: var(--ink); }
.call-icon { background: var(--bordeaux); color: #fff; }
.menu-toggle { transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s; }
.menu-toggle:hover, .menu-toggle:focus-visible, .menu-toggle[aria-expanded="true"] { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; transform: scale(1.06); }
.menu-toggle .icon { width: 26px; height: 26px; stroke-width: 2.6; }
.call-icon .icon { width: 22px; height: 22px; }
.header-actions { display: none; gap: 8px; align-items: center; }

.mobile-nav { display: none; padding: calc(var(--th) * 1.1 + 14px) var(--gutter) 20px; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid rgba(32, 30, 29, 0.08); }
.mobile-nav a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 8px; }
.mobile-nav a:hover { color: var(--bordeaux); }
.mobile-nav details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; padding: 12px 8px; }
.mobile-nav details > summary::-webkit-details-marker { display: none; }
.mobile-nav details > summary::after { content: "+"; font-size: 22px; color: var(--bordeaux); }
.mobile-nav details[open] > summary::after { content: "–"; }
.mobile-nav details ul a { font-weight: 400; padding: 8px 8px 8px 24px; }
.mobile-nav.is-open { display: block; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .header-actions { display: flex; }
  .menu-toggle { display: flex; }
  .is-scrolled .call-icon { display: flex; }
  .topbar__inner { justify-content: center; }
  .site-header__inner { padding-top: 10px; padding-bottom: 10px; }
}


/* vaste belknop onderin op telefoon */
.mobile-call { display: none; position: sticky; bottom: 0; z-index: 30; padding: 12px 16px; background: rgba(249, 244, 237, 0.94); border-top: 1px solid rgba(32, 30, 29, 0.1); }
.mobile-call a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--bordeaux); color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 18px; height: 52px; border-radius: 999px; }
@media (max-width: 1100px) { .mobile-call { display: flex; } }

/* ---- paginakop op binnenpagina's: brede foto + titelkaart ---- */
/* de headerfoto's zijn ca. 2,8 : 1; een iets hogere strook snijdt minder af. Met headerFocus in pages.json (top/center/bottom) kies je welk deel zichtbaar blijft */
.page-hero__image { display: block; width: 100%; height: clamp(180px, 29vw, 460px); object-fit: cover; object-position: center 35%; filter: saturate(0.85) contrast(0.96) brightness(1.03); }
/* de kaart steekt links uit met zijn eigen marge, zodat de titel op één lijn staat met logo, kruimelpad en tekst */
.page-hero__card {
  --pad: clamp(14px, 3vw, 40px);
  position: relative; max-width: calc(var(--read-w) + var(--pad) * 2); margin: clamp(-90px, -6vw, -36px) 0 0 calc(var(--pad) * -1);
  background: var(--cream); border-radius: var(--radius) var(--radius) 0 0; padding: var(--pad) var(--pad) 8px;
}
.page-hero__image--top { object-position: center 0%; }
.page-hero__image--center { object-position: center 50%; }
.page-hero__image--bottom { object-position: center 100%; }
.page-hero__card h1 { font-size: clamp(34px, 4.4vw, 58px); margin-bottom: 0; }
.page-hero__card .squiggle { margin: 8px 0 10px; }
.page-hero__sub { margin: 0; color: var(--teal); font-family: var(--font-head); font-size: clamp(20px, 2vw, 26px); }

.breadcrumb { font-size: 14px; color: var(--muted); padding-top: 14px; }
/* minder wit tussen titel/kruimelpad en tekst */
.breadcrumb + .section { padding-top: clamp(20px, 2.4vw, 32px); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.breadcrumb li + li::before { content: "›"; margin-right: 10px; color: var(--gold); }
.breadcrumb a { color: var(--muted); }

/* ---- footer ---- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--teal-dark); color: var(--teal-tint); font-size: 15px; }
.site-footer__mark { position: absolute; z-index: -1; width: clamp(180px, 22vw, 280px); right: var(--gutter); top: 8%; opacity: 0.07; }
.site-footer__grid {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter) 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 36px;
}
.site-footer strong { color: #fff; display: block; margin-bottom: 6px; }
.site-footer a { color: #fff; }
.site-footer__brand { font-family: var(--font-head); font-size: 22px; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.site-footer__brand span { display: block; font-size: 17px; color: var(--teal-tint); line-height: 1.2; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, color 0.25s;
}
.social a:hover { background: #fff; color: var(--teal-dark); border-color: #fff; transform: translateY(-2px); }
.social .icon { width: 18px; height: 18px; }
.site-footer__legal {
  max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter) 32px; display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer__legal a { color: var(--teal-tint); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
