/* ==========================================================================
   In Christ — Shared design system
   Used by Genk in Christ, Maasmechelen in Christ & GM in Christ.
   Warm, earthy palette taken from the original sites (brown / taupe / cream).
   Per-site accent colours are overridden via the [data-site] attribute below.
   ========================================================================== */

:root {
  /* Brand palette */
  --brown-900: #2e2520;
  --brown-800: #3c322b;
  --brown-700: #5a4a3c;
  --brown-600: #6f5b48;
  --brown-500: #8a7259;
  --taupe-300: #c9bba9;
  --taupe-200: #ddd2c2;
  --cream-100: #f3ede2;
  --cream-50:  #faf6ee;
  --white:     #ffffff;
  --ink:       #2a2320;
  --ink-soft:  #5d544c;

  /* Accent — overridden per site */
  --accent:      #6f5b48;
  --accent-dark: #5a4a3c;
  --accent-soft: #ece3d5;

  /* Typography */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 2px 10px rgba(46, 37, 32, 0.06);
  --shadow-md: 0 14px 40px rgba(46, 37, 32, 0.12);
  --shadow-lg: 0 30px 70px rgba(46, 37, 32, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);          /* gentle ease-out */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* subtle overshoot */
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

/* Per-site accent themes ---------------------------------------------------*/
[data-site="genk"] {
  --accent: #7a5d40;
  --accent-dark: #5e4631;
  --accent-soft: #ece1d2;
}
[data-site="maasmechelen"] {
  --accent: #4a5a52;
  --accent-dark: #38463f;
  --accent-soft: #dce3df;
}
[data-site="gm"] {
  --accent: #6f5b48;
  --accent-dark: #534333;
  --accent-soft: #e7ddcd;
}

/* Reset --------------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

/* Accessible focus ring */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-50);
  line-height: 1.7;
  font-size: 17px;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-head); font-weight: 700; line-height: 1.1;
  color: var(--brown-900); letter-spacing: -0.015em; text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5.6vw, 4.6rem); letter-spacing: -0.025em; overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(1.95rem, 4vw, 3.05rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); letter-spacing: -0.01em; }

p { color: var(--ink-soft); text-wrap: pretty; }
.section-head p, .hero__lead, .lead { max-width: 60ch; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: 0.6;
}
.section-head.center .eyebrow { justify-content: center; }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--cream-100); }
.section--brown {
  position: relative; background: var(--brown-900); overflow: hidden;
}
/* soft radial glow + grain on dark sections for depth */
.section--brown::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: 0.5;
}
.section--brown > .container { position: relative; z-index: 1; }
.section--brown h2, .section--brown h3 { color: var(--cream-50); }
.section--brown p { color: var(--taupe-200); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Buttons ------------------------------------------------------------------*/
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.95rem 1.8rem; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring), background 0.3s, color 0.3s, box-shadow 0.4s, border-color 0.3s;
  will-change: transform;
}
/* sheen sweep on hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.22) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(-1px) scale(0.985); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px var(--accent); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); background: transparent; }
.btn--ghost:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--light { background: var(--cream-50); color: var(--brown-900); }
.btn--light:hover { background: #fff; }
.btn--lg { padding: 1.1rem 2.2rem; font-size: 1.02rem; }
.btn .arrow { transition: transform 0.35s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(5px); }

/* Header / Nav -------------------------------------------------------------*/
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem 0;
  --header-bg: 0; /* 0 → 1, set by main.js as you scroll */
  transition: padding 0.4s var(--ease);
}
/* Progressive frosted background that fades in with scroll (no sudden bar).
   Lighter & more transparent than a solid bar, with a hairline border instead of
   a heavy shadow, so it feels like premium frosted glass and never distracts. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(250, 246, 238, 0.78);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(122, 93, 64, 0.10);
  box-shadow: 0 6px 24px -18px rgba(46, 37, 32, 0.4);
  opacity: var(--header-bg);
  transition: opacity 0.25s linear;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before { background: rgba(250, 246, 238, 0.96); }
}
.site-header.scrolled { padding: 0.55rem 0; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--brown-900); margin-right: auto; }
/* desktop order: brand (left) … links · language (right) */
.nav__links { order: 2; }
.nav__lang { order: 3; }

/* Image logo in nav — prominent on the homepage hero, trim slightly on scroll.
   Two stacked variants (dark + light) cross-fade so the logo always contrasts. */
.nav__brand { position: relative; }
.nav__logo { height: 64px; width: auto; display: block; transition: height 0.4s var(--ease), opacity 0.35s; }
.nav__logo--light { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.site-header.scrolled .nav__logo { height: 50px; }

/* Default (inner pages, scrolled): show the dark logo */
.nav__logo--light { opacity: 0; }
.nav__logo--dark  { opacity: 1; }
/* Over a dark hero and not yet scrolled: show the white logo + white text */
.site-header:not(.scrolled) .nav--over-hero .nav__logo--dark  { opacity: 0; }
.site-header:not(.scrolled) .nav--over-hero .nav__logo--light { opacity: 1; }
.site-header:not(.scrolled) .nav--over-hero .nav__brand,
.site-header:not(.scrolled) .nav--over-hero .nav__links a:not(.btn) { color: #fff; }
.site-header:not(.scrolled) .nav--over-hero .nav__toggle span { background: #fff; }
/* readability boost over busy photos */
.site-header:not(.scrolled) .nav--over-hero .nav__links a:not(.btn) { text-shadow: 0 1px 8px rgba(0,0,0,0.35); }

.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a:not(.btn) { font-size: 0.95rem; font-weight: 500; position: relative; padding: 0.3rem 0; transition: color 0.25s; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: currentColor; transition: width 0.3s var(--ease); opacity: 0.85;
}
.nav__links a:not(.btn):hover::after, .nav__links a.active:not(.btn)::after { width: 100%; }
.site-header:not(.scrolled) .nav--over-hero .nav__links a.active:not(.btn)::after,
.site-header:not(.scrolled) .nav--over-hero .nav__links a:not(.btn):hover::after { background: #fff; }
.nav__links a:not(.btn):hover { color: var(--accent); }
.site-header:not(.scrolled) .nav--over-hero .nav__links a:not(.btn):hover { color: #fff; opacity: 0.85; }

/* Contact button in the nav — roomier, balanced */
.nav__links .btn { color: #fff; padding: 0.7rem 1.5rem; font-size: 0.92rem; }
.nav__links .btn::after { display: none; }
/* Over the hero, give the contact button a crisp outline so it reads on any photo */
.site-header:not(.scrolled) .nav--over-hero .nav__links .btn--primary {
  background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
}
.site-header:not(.scrolled) .nav--over-hero .nav__links .btn--primary:hover {
  background: #fff; color: var(--accent-dark); border-color: #fff;
}
@media (max-width: 860px) {
  .nav__logo { height: 52px; }
  .site-header.scrolled .nav__logo { height: 46px; }
}

/* Language selector --------------------------------------------------------*/
.nav__right { display: flex; align-items: center; gap: 0.9rem; }
.lang { position: relative; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; border: 1.5px solid rgba(122,93,64,0.25); border-radius: 100px;
  padding: 0.45rem 0.7rem 0.45rem 0.8rem; cursor: pointer; color: var(--brown-900);
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.03em;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.lang__toggle:hover { border-color: var(--accent); }
.lang__globe { width: 16px; height: 16px; opacity: 0.85; }
.lang__chev { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.lang.open .lang__chev { transform: rotate(180deg); }
/* over hero: light treatment */
.site-header:not(.scrolled) .nav--over-hero .lang__toggle { color: #fff; border-color: rgba(255,255,255,0.5); }
.site-header:not(.scrolled) .nav--over-hero .lang__toggle:hover { border-color: #fff; background: rgba(255,255,255,0.12); }

.lang__menu {
  position: absolute; right: 0; top: calc(100% + 0.6rem); min-width: 184px;
  background: var(--cream-50); border: 1px solid rgba(122,93,64,0.14); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 0.4rem; list-style: none; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98);
  transform-origin: top right; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 120;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__item {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
  background: transparent; border: 0; cursor: pointer; padding: 0.6rem 0.7rem; border-radius: 9px;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--brown-900); transition: background 0.2s;
}
.lang__item:hover { background: var(--accent-soft); }
.lang__item[aria-current="true"] { background: var(--accent); color: #fff; }
.lang__code { font-weight: 700; font-size: 0.74rem; letter-spacing: 0.05em; width: 22px; opacity: 0.85; }
.lang__item[aria-current="true"] .lang__code { opacity: 1; }
.lang__name { font-weight: 500; }
@media (max-width: 860px) {
  .lang { order: -1; }
  .lang__menu { right: auto; left: 0; transform-origin: top left; }
}

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 110; }
.nav__toggle span { width: 26px; height: 2px; background: var(--brown-900); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  /* Mobile bar layout: 3-column grid — hamburger (left) · logo (centre) · language (right). */
  .nav {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    min-height: 48px; gap: 0;
  }
  .nav__toggle { display: flex; grid-column: 1; justify-self: start; }
  .nav__brand { grid-column: 2; justify-self: center; margin: 0; }
  .nav__lang  { grid-column: 3; justify-self: end; margin: 0; list-style: none; }
  .lang__toggle { padding: 0.4rem 0.55rem; font-size: 0.78rem; }

  /* slide-in drawer with the page links + contact button */
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.7rem; padding: 2rem 2.4rem; background: var(--cream-50);
    box-shadow: -20px 0 60px rgba(0,0,0,0.18);
    transform: translateX(100%); transition: transform 0.45s var(--ease);
    z-index: 104;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__toggle.open span { background: var(--brown-900) !important; }
  .nav__links a:not(.btn) { font-size: 1.2rem; color: var(--brown-900) !important; text-shadow: none !important; }
  .nav__links a:not(.btn)::after { background: var(--accent) !important; }
  .nav__links .btn { font-size: 1.05rem; padding: 0.85rem 1.8rem; margin-top: 0.5rem; }
  .site-header:not(.scrolled) .nav--over-hero .nav__links .btn--primary {
    background: var(--accent); border-color: var(--accent); color: #fff; backdrop-filter: none;
  }
}

/* Hero ---------------------------------------------------------------------*/
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: -8% 0; z-index: -2; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: hero-zoom 12s var(--ease-inout) forwards; }
@keyframes hero-zoom { to { transform: scale(1.0); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(120deg, rgba(28,22,18,0.82) 0%, rgba(28,22,18,0.5) 52%, rgba(28,22,18,0.28) 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(20,15,12,0.55), transparent 60%);
}
/* fine film grain over the hero for depth */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { padding-top: 6rem; max-width: 780px; }
/* Big hero logo that scroll-morphs into the header (see main.js).
   A wrapper holds two stacked variants (white + colour); JS cross-fades them so
   the mark is white over the photo and coloured once it lands in the cream bar. */
.hero__logo-wrap {
  display: block; position: relative; width: max-content;
  height: clamp(88px, 12vw, 150px); margin-bottom: 1.6rem;
  will-change: transform; transform-origin: left top;
}
.hero__logo { height: 100%; width: auto; display: block; }
.hero__logo--dark { position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s linear; }
/* During morph the moving logo floats above the header without affecting flow. */
.logo-morphing .hero__logo-wrap { z-index: 101; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.16)); }

/* The real header logo cross-dissolves in (driven by --realLogo, 0→1, set by
   main.js) exactly as the moving hero logo fades out in the same spot. Before
   the morph starts it's hidden so we don't see a double. */
.has-hero-logo { --realLogo: 0; }
.has-hero-logo .nav__brand .nav__logo--dark  { opacity: var(--realLogo) !important; }
.has-hero-logo .nav__brand .nav__logo--light { opacity: 0 !important; }
/* Once fully docked, lock the real logo on (independent of scroll jitter). */
.has-hero-logo.logo-handoff .nav__brand .nav__logo--dark { opacity: 1 !important; }

/* If JS/motion is off, no morph happens: the header logo shows normally and the
   inline hero logo simply sits above the text (still looks intentional). */
@media (prefers-reduced-motion: reduce) {
  .has-hero-logo .nav__brand .nav__logo { opacity: 1 !important; }
  .hero__logo-wrap { position: static !important; transform: none !important; }
  .hero__logo--dark { opacity: 0 !important; }
}
.hero h1 { color: #fff; margin-bottom: 1.4rem; hyphens: manual; }
.hero__lead { font-size: clamp(1.08rem, 2vw, 1.38rem); color: rgba(255,255,255,0.92); margin-bottom: 2.2rem; max-width: 56ch; }
.hero__verse { font-style: italic; font-family: var(--font-head); font-size: 1.1rem; color: rgba(255,255,255,0.85); border-left: 3px solid var(--accent); padding-left: 1rem; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Cinematic hero entrance (each child rises in sequence).
   Gated behind .js so the content is visible by default if JS/animation is off. */
/* Entrance animation for the hero text. The logo wrapper is EXCLUDED on purpose:
   a finished translate-animation would override the JS scroll-morph transform.
   The logo gets its own opacity-only entrance (no lingering transform). */
.js .hero__inner > *:not(.hero__logo-wrap) { opacity: 0; transform: translateY(26px); animation: hero-rise 1s var(--ease) forwards; }
.js .hero__inner > *:nth-child(2) { animation-delay: 0.22s; }
.js .hero__inner > *:nth-child(3) { animation-delay: 0.34s; }
.js .hero__inner > *:nth-child(4) { animation-delay: 0.46s; }
.js .hero__inner > *:nth-child(5) { animation-delay: 0.58s; }
@keyframes hero-rise { to { opacity: 1; transform: none; } }
/* logo: fade-in only, never leaves a transform that fights the morph */
.js .hero__logo-wrap { opacity: 0; animation: hero-fade 0.9s var(--ease) 0.1s forwards; }
@keyframes hero-fade { to { opacity: 1; } }
/* once the morph is driving it, the entrance animation must not interfere */
.logo-morphing .hero__logo-wrap { animation: none !important; opacity: 1; }

.hero__scroll { position: absolute; right: 2.4rem; bottom: 2rem; color: rgba(255,255,255,0.7); font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
@media (max-width: 860px) { .hero__scroll { display: none; } }
.js .hero__scroll { opacity: 0; animation: hero-rise 1s var(--ease) 1s forwards; }
.hero__scroll::after { content: ""; width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,0.7), transparent); animation: scroll-line 2.2s var(--ease-inout) infinite; }
@keyframes scroll-line { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) {
  .hero__inner > *, .hero__scroll { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero__bg img { animation: none !important; }
}

/* Cards / grids ------------------------------------------------------------*/
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--cream-50); border-radius: var(--radius); padding: 1.9rem 1.8rem;
  border: 1px solid rgba(122, 93, 64, 0.1); box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s;
}
/* accent bar that draws in along the top on hover */
.card::after {
  content: ""; position: absolute; left: 1.8rem; right: 1.8rem; top: 0; height: 2.5px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(122,93,64,0.18); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; margin-bottom: 1.2rem;
  transition: transform 0.45s var(--ease-spring), background 0.4s, color 0.4s;
}
.card:hover .card__icon { transform: translateY(-2px) rotate(-4deg); background: var(--accent); color: #fff; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.96rem; }
.card--photo { padding: 0; overflow: hidden; }
.card--photo img { aspect-ratio: 4/3; object-fit: cover; transition: transform 0.6s var(--ease); }
.card--photo:hover img { transform: scale(1.06); }
.card--photo .card__body { padding: 1.4rem 1.6rem 1.7rem; }

/* Split feature ------------------------------------------------------------*/
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 5/4; object-fit: cover; width: 100%; transition: transform 0.6s var(--ease), box-shadow 0.6s; }
.split__media:hover img { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* subtle accent frame offset behind split images */
.split__media::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius-lg);
  border: 1.5px solid var(--accent); opacity: 0.35; transform: translate(14px, 14px);
  transition: transform 0.6s var(--ease);
}
.split__media:hover::after { transform: translate(18px, 18px); }
.split__body p + p { margin-top: 1.1rem; }
.quote { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--brown-700); border-left: 3px solid var(--accent); padding-left: 1.1rem; margin-top: 1.6rem; }
.quote cite { display: block; font-style: normal; font-size: 0.9rem; color: var(--accent); margin-top: 0.6rem; font-family: var(--font-body); font-weight: 600; }
.quote cite::before { content: ""; display: inline-block; width: 22px; height: 1.5px; background: currentColor; vertical-align: middle; margin-right: 0.55rem; opacity: 0.7; }

/* Schedule table -----------------------------------------------------------*/
.schedule { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(122,93,64,0.12); }
.schedule__row { display: grid; grid-template-columns: 200px 1fr; }
.schedule__row--head { background: var(--accent); color: #fff; font-weight: 600; letter-spacing: 0.02em; }
.schedule__row:not(.schedule__row--head) { transition: background 0.25s; }
.schedule__row:not(.schedule__row--head):nth-child(even) { background: var(--cream-50); }
.schedule__row:not(.schedule__row--head):nth-child(odd) { background: var(--cream-100); }
.schedule__row:not(.schedule__row--head):hover { background: var(--accent-soft); }
.schedule__cell { padding: 0.95rem 1.4rem; }
.schedule__cell:first-child { font-weight: 600; color: var(--brown-800); }
.schedule__row--head .schedule__cell:first-child { color: #fff; }
@media (max-width: 560px) { .schedule__row { grid-template-columns: 130px 1fr; } .schedule__cell { padding: 0.8rem 1rem; font-size: 0.9rem; } }

/* Stats --------------------------------------------------------------------*/
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 1.5rem; } }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.7rem, 6vw, 3.9rem); color: var(--accent); line-height: 1; letter-spacing: -0.02em; }
.section--brown .stat__num { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.stat__label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin-top: 0.5rem; }

/* CTA band -----------------------------------------------------------------*/
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.8rem, 6vw, 4.5rem); text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background: radial-gradient(60% 120% at 100% 0%, rgba(255,255,255,0.16), transparent 60%),
              radial-gradient(60% 120% at 0% 100%, rgba(0,0,0,0.18), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 52ch; margin: 0 auto 1.9rem; }

/* Page hero (inner pages) --------------------------------------------------*/
.page-hero { padding: 12rem 0 4.5rem; background: var(--brown-900); color: #fff; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 100% at 85% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero > .container > * { animation: hero-rise 0.8s var(--ease) backwards; }
.page-hero .breadcrumb { animation-delay: 0.05s; }
.page-hero h1 { animation-delay: 0.15s; }
.page-hero p { color: var(--taupe-200); max-width: 60ch; margin-top: 1rem; animation-delay: 0.25s; }
.breadcrumb { font-size: 0.82rem; color: var(--taupe-300); margin-bottom: 1.2rem; letter-spacing: 0.04em; }
.breadcrumb a:hover { color: #fff; }

/* Forms --------------------------------------------------------------------*/
.form { display: grid; gap: 1.1rem; }
.form label { font-size: 0.85rem; font-weight: 600; color: var(--brown-800); margin-bottom: 0.35rem; display: block; }
.form input, .form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem; border: 1.5px solid var(--taupe-300); border-radius: 10px;
  background: var(--cream-50); transition: border-color 0.25s, box-shadow 0.25s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form textarea { min-height: 150px; resize: vertical; }

.info-list { list-style: none; display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--brown-900); font-family: var(--font-body); }
.info-list span { font-size: 0.95rem; color: var(--ink-soft); }

/* Map ----------------------------------------------------------------------*/
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(122,93,64,0.12); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(0.15); }

/* Legal --------------------------------------------------------------------*/
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { font-size: 1.5rem; margin: 2.6rem 0 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--accent-soft); }
.legal h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; color: var(--brown-800); }
.legal p, .legal li { font-size: 0.97rem; color: var(--ink-soft); }
.legal ul { margin: 0.5rem 0 0.5rem 1.2rem; }
.legal li { margin-bottom: 0.4rem; }

/* Jeugd banner -------------------------------------------------------------*/
.jeugd { background: linear-gradient(135deg, var(--brown-800), var(--brown-900)); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.jeugd__grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
@media (max-width: 820px) { .jeugd__grid { grid-template-columns: 1fr; } }
.jeugd__body { padding: clamp(2rem, 5vw, 3.5rem); }
.jeugd__body h2, .jeugd__body h3 { color: #fff; }
.jeugd__body p { color: var(--taupe-200); margin: 1rem 0 1.6rem; }
.jeugd__media img { height: 100%; min-height: 280px; object-fit: cover; }

/* Footer -------------------------------------------------------------------*/
.site-footer { background: var(--taupe-200); color: var(--brown-800); padding: 3.5rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(122,93,64,0.18); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.footer__brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--brown-900); margin-bottom: 0.9rem; }
.footer__col h4 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem; color: var(--brown-700); }
.footer__col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer__col a { font-size: 0.95rem; transition: color 0.2s, padding-left 0.2s; }
.footer__col a:hover { color: var(--accent); padding-left: 4px; }
.footer__contact li { display: flex; gap: 0.6rem; align-items: center; font-size: 0.95rem; margin-bottom: 0.6rem; }
.footer__contact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; font-size: 0.85rem; color: var(--brown-700); }
.footer__bottom a:hover { color: var(--accent); }

/* Scroll reveal ------------------------------------------------------------*/
.js [data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal][data-reveal="left"]  { transform: translateX(-44px); }
.js [data-reveal][data-reveal="right"] { transform: translateX(44px); }
.js [data-reveal][data-reveal="scale"] { transform: scale(0.94); }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

/* Auto-stagger children of a [data-stagger] container */
.js [data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].in > *:nth-child(2) { transition-delay: 0.12s; }
[data-stagger].in > *:nth-child(3) { transition-delay: 0.19s; }
[data-stagger].in > *:nth-child(4) { transition-delay: 0.26s; }
[data-stagger].in > *:nth-child(5) { transition-delay: 0.33s; }
[data-stagger].in > *:nth-child(6) { transition-delay: 0.40s; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .hero__bg img { transform: none !important; }
  .scroll-progress { display: none; }
}

/* Back to top --------------------------------------------------------------*/
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md); cursor: pointer; border: 0;
  opacity: 0; transform: translateY(20px) scale(0.8); transition: opacity 0.3s, transform 0.3s;
}
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--accent-dark); }

/* Footer logos -------------------------------------------------------------*/
.footer__logo { height: 40px; width: auto; display: block; margin-bottom: 1rem; }

/* Social icon row */
.socials { display: flex; gap: 0.7rem; margin-top: 1.3rem; flex-wrap: wrap; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(122,93,64,0.1); color: var(--brown-800);
  transition: transform 0.3s var(--ease-spring), background 0.3s, color 0.3s;
}
.socials a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
/* Socials shown over a dark surface (e.g. jeugd banner / hero CTAs) */
.socials--light a { background: rgba(255,255,255,0.14); color: #fff; }
.socials--light a:hover { background: #fff; color: var(--accent-dark); }
.footer__partner { margin-top: 1.6rem; }
.footer__partner img { height: 30px; width: auto; opacity: 0.7; transition: opacity 0.3s; }
.footer__partner img:hover { opacity: 1; }

/* Scripture verse band ------------------------------------------------------*/
.verse-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brown-900), var(--brown-800));
  color: #fff; text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.verse-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
}
.verse-band .container { position: relative; z-index: 1; }
.verse-band__mark {
  font-family: var(--font-head); font-size: 5rem; line-height: 0.6; color: var(--accent);
  opacity: 0.6; display: block; margin-bottom: 0.5rem;
}
.verse-band blockquote {
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.4; color: #fff;
  max-width: 24ch; margin: 0 auto 1.4rem; text-wrap: balance;
}
.verse-band cite {
  font-family: var(--font-body); font-style: normal; font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 0.7rem;
}
.verse-band cite::before, .verse-band cite::after {
  content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: 0.6;
}

/* Mission + organisation details (Google for Nonprofits transparency) ------*/
.mission { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .mission { grid-template-columns: 1fr; } }
.mission__statement { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1.4; color: var(--brown-900); font-weight: 500; }
.mission__statement strong { color: var(--accent); font-weight: 600; }
.org-card { background: var(--cream-50); border: 1px solid rgba(122,93,64,0.14); border-radius: var(--radius-lg); padding: 1.8rem 2rem; box-shadow: var(--shadow-sm); }
.org-card h3 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brown-700); margin-bottom: 1.1rem; }
.org-card dl { display: grid; gap: 0.85rem; margin: 0; }
.org-card .org-row { display: flex; flex-direction: column; gap: 0.1rem; }
.org-card dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.org-card dd { margin: 0; font-weight: 600; color: var(--brown-900); }
.org-card dd a { color: var(--accent); }
.org-card dd a:hover { text-decoration: underline; }

/* Video facade (privacy-friendly YouTube lazy-load) ------------------------*/
.video { max-width: 940px; margin-inline: auto; }
.video__facade {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden;
  background: #000; box-shadow: var(--shadow-lg); isolation: isolate;
}
.video__facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.7s var(--ease), opacity 0.5s; }
.video__facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0.05) 55%); z-index: 1; }
.video__facade:hover img { transform: scale(1.05); opacity: 1; }
.video__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.7); color: #fff;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.video__play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); animation: pulse-ring 2.6s var(--ease) infinite; }
.video__play svg { width: 34px; height: 34px; margin-left: 4px; }
.video__facade:hover .video__play { transform: translate(-50%,-50%) scale(1.1); background: var(--accent); border-color: var(--accent); }
@keyframes pulse-ring { 0% { transform: scale(0.85); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }
.video__label {
  position: absolute; left: 1.4rem; bottom: 1.2rem; z-index: 2; color: #fff;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(0,0,0,0.35); padding: 0.45rem 0.9rem; border-radius: 100px; backdrop-filter: blur(4px);
}
.video__facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.jubilee .stats { padding-top: 1rem; }

/* Calendar embed -----------------------------------------------------------*/
.calendar-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(122,93,64,0.12); background: var(--cream-50); }
.calendar-embed iframe { width: 100%; height: 620px; border: 0; display: block; }
.calendar-note { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; background: var(--accent-soft); border-radius: var(--radius); margin-top: 1.2rem; }
.calendar-note p { color: var(--brown-800); font-size: 0.95rem; margin: 0; }
.calendar-placeholder { display: grid; place-items: center; text-align: center; padding: 3rem 1.5rem; min-height: 320px; color: var(--ink-soft); background: var(--cream-100); }
.calendar-placeholder svg { width: 48px; height: 48px; color: var(--accent); margin-bottom: 1rem; }
@media (max-width: 560px) { .calendar-embed iframe { height: 520px; } }

/* Utility ------------------------------------------------------------------*/
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.85rem; border-radius: 100px; letter-spacing: 0.04em; }
