/* ==========================================================================
   MaakSchoon Zeeland — homepage scroll experience (home.css)
   Loaded after the inline homepage styles, so these rules win.
   Motion is driven by home.js through CSS custom properties.
   Everything here degrades to a static, readable page when
   prefers-reduced-motion is set or JavaScript does not run.
   ========================================================================== */

:root {
  --ease: cubic-bezier(.22, .61, .36, 1);
  --pan-header: 76px;               /* height of the sticky site header */
}

/* ── HERO: four planes at different depths ─────────────────────────────── */
.hero { isolation: isolate; padding: 96px 0 104px; background: var(--blue); --k: 1; }
.hero-plane { position: absolute; inset: 0; pointer-events: none; }

/* plane 1: the photograph, slowest */
.hero-bg { z-index: 0; overflow: hidden; }
.hero-bg img {
  position: absolute; left: 0; top: -7%; width: 100%; height: 114%;
  object-fit: cover; object-position: center 40%;
  transform: translate3d(0, calc(var(--hp, 0) * 70px * var(--k)), 0) scale(1.03);
  will-change: transform;
}
/* navy veil keeps the headline readable (only the copy side is heavy) */
.hero::before {
  z-index: 1;
  background: linear-gradient(100deg, rgba(8,25,63,.88) 0%, rgba(8,25,63,.66) 46%, rgba(8,25,63,.26) 100%);
}
/* plane 2: soft daylight, drifts against the scroll */
.hero-atmos {
  z-index: 1;
  background:
    radial-gradient(60% 55% at 82% 18%, rgba(113,155,209,.28), transparent 70%),
    radial-gradient(40% 45% at 8% 92%, rgba(78,154,40,.14), transparent 70%);
  transform: translate3d(0, calc(var(--hp, 0) * -50px * var(--k)), 0);
}
.hero .container { z-index: 2; }
.hero-inner { grid-template-columns: 1.02fr .98fr; gap: 56px; }
.hero-copy { transform: translate3d(0, calc(var(--hp, 0) * -14px * var(--k)), 0); }
.hero-lead { color: rgba(255,255,255,.78); }

/* plane 3: the supporting photo, between background and cards */
.hero-stage { position: relative; min-height: 470px; }
.hero-photo {
  position: absolute; inset: 0 0 56px 56px; margin: 0;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(3,12,34,.55), 0 0 0 1px rgba(255,255,255,.12);
  transform: translate3d(0, calc(var(--hp, 0) * -34px * var(--k)), 0);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; display: block; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,25,63,.35)); }

/* plane 4: glass cards in front, overlapping the photo edge */
.hero-card {
  position: absolute; width: min(300px, 78%);
  background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 44px -18px rgba(3,12,34,.5);
  align-items: center;
}
.hero-card:hover { background: rgba(255,255,255,.96); border-color: rgba(255,255,255,.9); }
.hero-card .hc-icon { background: var(--green-pale); }
.hero-card .hc-title { color: var(--blue); }
.hero-card .hc-desc { color: var(--gray-500); }
.hero-card--a { left: 0; bottom: 0; transform: translate3d(0, calc(var(--hp, 0) * -80px * var(--k)), 0); }
.hero-card--b { right: -8px; top: 22px; transform: translate3d(0, calc(var(--hp, 0) * -26px * var(--k)), 0); }

/* entrance: planes settle in sequence, once */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: heroSettle 1.6s var(--ease) both; }
  .hero-copy > * { animation: heroRise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-photo { animation: heroRise 1.1s var(--ease) .2s both; }
  .hero-card--a { animation: heroRise 1s var(--ease) .5s both; }
  .hero-card--b { animation: heroRise 1s var(--ease) .65s both; }
}
@keyframes heroSettle { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
@keyframes heroRise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

/* ── SERVICES: photo cards ─────────────────────────────────────────────── */
.svc-card { padding: 0; background: var(--white); background-image: none; }
.svc-card::after { display: none; }
.svc-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-100); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; }
.svc-icon { margin-top: -50px; margin-bottom: 18px; background: var(--white); box-shadow: var(--sh-sm); border: 1px solid var(--gray-100); }
.svc-card:hover .svc-icon { background: var(--green-pale); }
.svc-card:nth-child(2) .svc-media img { object-position: center 60%; }
.svc-card:nth-child(3) .svc-media img { object-position: center 45%; }

/* ── WHY: photo layered behind the panel ───────────────────────────────── */
.why-visual { position: relative; }
.why-photo {
  margin: 0; height: 270px; border-radius: var(--r-xl); overflow: hidden; position: relative;
  box-shadow: var(--sh-md);
}
.why-photo img {
  position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; display: block;
  transform: translate3d(0, calc(var(--wp, .5) * -44px + 22px), 0);
}
.why-visual .why-panel { margin: -64px 22px 0; position: relative; z-index: 1; box-shadow: 0 30px 50px -28px rgba(3,12,34,.6); }

/* ── PROCESS: pinned photo that follows the steps ──────────────────────── */
.proc-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.proc-visual {
  position: sticky; top: calc(var(--pan-header) + 28px);
  aspect-ratio: 4 / 4.4; border-radius: var(--r-xl); overflow: hidden;
  background: var(--blue); box-shadow: var(--sh-lg);
}
.proc-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.4s var(--ease);
}
.proc-visual img.is-active { opacity: 1; transform: scale(1); }
.proc-steps { list-style: none; counter-reset: none; padding: 0; margin: 0; }
.proc-step {
  display: flex; gap: 22px; text-align: left; padding: 0 0 0 0;
  min-height: 36vh; align-items: flex-start; padding-top: 6px;
  opacity: .38; transition: opacity .5s var(--ease);
}
.proc-step:last-child { min-height: 0; }
.proc-step.is-active { opacity: 1; }
.proc-step .proc-num { margin: 0; flex-shrink: 0; box-shadow: 0 0 0 6px var(--white); transition: background .3s, color .3s, transform .5s var(--ease); }
.proc-step.is-active .proc-num { background: var(--green); color: #fff; transform: scale(1.08); }
.proc-step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.proc-step p { font-size: .98rem; max-width: 440px; }
.proc-step-img { display: none; }
.proc-grid { display: none; }

/* ── WORK AREA: pinned horizontal pan along the coast (signature) ──────── */
.area { background: var(--off-white); }
.pan { height: 300vh; position: relative; }
.pan-sticky {
  position: sticky; top: 0; height: 100vh; min-height: 620px;
  padding-top: calc(var(--pan-header) + 12px); padding-bottom: 28px;
  display: flex; flex-direction: column; overflow: hidden;
}
.pan-sticky > .container { width: 100%; }
.pan-sticky .sh { margin-bottom: 26px; }
.pan-sticky .sh p { margin-top: 8px; }
.pan-viewport { flex: 1; min-height: 0; position: relative; }
.pan-track {
  --ph: clamp(250px, calc(100vh - 430px), 480px);
  --pad: max(28px, calc((100vw - 1200px) / 2 + 28px));
  display: flex; align-items: stretch; gap: 22px; height: 100%;
  padding-left: var(--pad); padding-right: var(--pad);
  width: max-content; will-change: transform;
}
.town {
  position: relative; flex: 0 0 auto; height: 100%; max-height: var(--ph);
  align-self: center; border-radius: var(--r-xl); overflow: hidden; background: var(--blue);
  box-shadow: var(--sh-md);
}
.town--goes { width: calc(var(--ph) * 1.95); }
.town--middelburg { width: calc(var(--ph) * .98); }
.town--vlissingen, .town--terneuzen { width: calc(var(--ph) * 1.35); }
.town > img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s var(--ease);
}
.town:hover > img { transform: scale(1.04); }
.town--goes > img { object-position: 50% 60%; }
.town--middelburg > img { object-position: 50% 22%; }
.town--vlissingen > img { object-position: 50% 40%; }
.town-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 26px 24px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(8,25,63,.86) 62%);
}
.town-body h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.town-body p { color: rgba(255,255,255,.82); font-size: .9rem; max-width: 380px; margin-bottom: 12px; line-height: 1.6; }
.town .area-link { color: #fff; font-size: .85rem; }
.town .area-link::after { content: ''; position: absolute; inset: 0; }   /* whole card is the link */
.town:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }

/* the route: a line that fills as the page scrolls west to east */
.pan-route { padding-top: 22px; }
.pan-route-line { position: relative; height: 2px; background: var(--gray-100); border-radius: 2px; }
.pan-route-fill {
  position: absolute; inset: 0; background: var(--green); border-radius: 2px;
  transform-origin: left; transform: scaleX(var(--pp, 0));
}
.pan-route-boat {
  position: absolute; top: 50%; left: calc(var(--pp, 0) * 100%);
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--green);
  box-shadow: 0 0 0 5px rgba(78,154,40,.16);
}
.pan-route ol { list-style: none; display: flex; justify-content: space-between; margin: 14px 0 0; padding: 0; }
.pan-route li { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-300); transition: color .4s; }
.pan-route li.is-on { color: var(--blue); }
.area-note { padding: 8px 0 var(--section-py); }

/* ── Tablet and phone: native horizontal swipe instead of a pinned pan ──── */
@media (max-width: 900px) {
  :root { --pan-header: 64px; }
  .hero { --k: .45; padding: 60px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  /* phone and tablet: photo as a clean banner, the two facts as an aligned pair below it */
  .hero-stage { min-height: 0; aspect-ratio: auto; margin-top: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-photo { position: relative; inset: auto; grid-column: 1 / -1; aspect-ratio: 16 / 10; transform: none; border-radius: 18px; }
  .hero-card {
    position: relative; inset: auto; width: auto; transform: none;
    padding: 14px 14px; gap: 10px; align-items: center;
    backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 10px 24px -14px rgba(3,12,34,.5);
  }
  .hero-card .hc-icon { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
  .hero-card .hc-title { font-size: .86rem; line-height: 1.3; margin: 0; }
  .hero-card .hc-desc { display: none; }
  .hero-card--a, .hero-card--b { left: auto; right: auto; top: auto; bottom: auto; }

  .svc-icon { margin-top: -46px; }
  .why-photo { height: 210px; }
  .why-visual .why-panel { margin: -44px 12px 0; }

  .proc-split { grid-template-columns: 1fr; gap: 0; }
  .proc-visual { display: none; }
  .proc-step { min-height: 0; opacity: 1; padding-bottom: 34px; }
  .proc-step .proc-num { background: var(--white); color: var(--green); }
  .proc-step-img { display: block; width: 100%; max-width: 420px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); margin-top: 16px; }

  .pan { height: auto; }
  .pan-sticky { position: static; height: auto; min-height: 0; padding-top: 64px; padding-bottom: 8px; overflow: visible; }
  .pan-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 14px; }
  .pan-track { --ph: 300px; --pad: 20px; transform: none !important; gap: 14px; }
  .town { scroll-snap-align: center; height: var(--ph); }
  .town--goes, .town--middelburg, .town--vlissingen, .town--terneuzen { width: min(82vw, 340px); }
  .town--goes { width: min(88vw, 420px); }
  .pan-route { display: none; }
}
@media (max-width: 480px) {
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-card { flex-direction: column; align-items: flex-start; gap: 8px; }
}
/* short laptop screens: keep the pinned frame from overflowing */
@media (min-width: 901px) and (max-height: 780px) {
  .pan-sticky .sh p { display: none; }
  .pan-sticky .sh { margin-bottom: 14px; }
  .pan-track { --ph: clamp(230px, calc(100vh - 360px), 480px); }
}

/* ── Reduced motion: everything static, swipe-friendly ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img, .hero-atmos, .hero-copy, .hero-photo, .hero-card, .why-photo img { transform: none !important; }
  .hero-bg img { top: 0; height: 100%; }
  .proc-visual img, .proc-step, .town > img, .svc-media img { transition: none; }
  .pan { height: auto; }
  .pan-sticky { position: static; height: auto; min-height: 0; padding-top: 64px; overflow: visible; }
  .pan-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
  .pan-track { transform: none !important; }
  .town { scroll-snap-align: center; }
  .pan-route { display: none; }
}


/* ==========================================================================
   COMMERCIAL POLISH: icons, spacing rhythm, credibility, closing CTA
   ========================================================================== */

/* line icons (replace emoji) */
.svc-icon svg, .trust-qual-ic svg, .hc-icon svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.svc-icon, .trust-qual-ic, .hc-icon { color: var(--green); }
.svc-icon { width: 54px; height: 54px; border-radius: 14px; }

/* section headings: a clear, even rhythm */
.sh { margin-bottom: 52px; }
.sh h2 { margin: 12px 0 0; letter-spacing: -.01em; }
.sh p { margin-top: 16px; font-size: 1.02rem; line-height: 1.75; max-width: 600px; }
.sh--c p { margin-left: auto; margin-right: auto; }
.section--alt { background: linear-gradient(180deg, var(--off-white) 0%, #EEF3FA 100%); }

/* services: roomier cards */
.svc-grid { gap: 24px; }
.svc-body { padding: 0 26px 28px; }
.svc-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.svc-card p { font-size: .92rem; line-height: 1.7; margin-bottom: 24px; }
.svc-link { font-size: .86rem; }

/* why: calmer list */
.why-point { padding: 22px 0; }
.why-point strong { font-size: 1.02rem; }
.why-point span { font-size: .92rem; line-height: 1.7; }

/* credibility numbers: proper cards instead of a thin grid */
.trust-nums { background: none; gap: 24px; border-radius: 0; overflow: visible; margin-bottom: 28px; }
.trust-num {
  border: 1px solid var(--gray-100); border-top: 3px solid var(--green);
  border-radius: var(--r-md); box-shadow: var(--sh-xs); padding: 44px 28px 40px;
}
.trust-num-val { font-size: 3.4rem; letter-spacing: -.02em; }
.trust-quals { gap: 24px; }
.trust-qual { padding: 26px; background: var(--white); box-shadow: var(--sh-xs); }
.trust-qual-ic { width: 46px; height: 46px; border-radius: 12px; }
.trust-qual strong { font-size: 1rem; }

/* recruitment block: a little more air above and below */
.rec-block { padding: 64px 56px; }

/* FAQ rows breathe */
.faq-trigger { padding-top: 22px; padding-bottom: 22px; }

/* closing call to action: a strong navy card with a photo */
.home-cta { background: var(--off-white); padding: var(--section-py) 0; text-align: left; }
.home-cta::before { display: none; }
.cta-card {
  display: grid; grid-template-columns: 1.1fr .9fr; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, #102B68 100%); box-shadow: var(--sh-lg); color: #fff;
}
.cta-copy { padding: 68px 56px; position: relative; z-index: 1; }
.cta-copy h2 { color: #fff; margin: 14px 0 16px; font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.2; }
.cta-copy p { color: rgba(255,255,255,.8); max-width: 460px; margin: 0 0 32px; font-size: 1.05rem; }
.cta-card .home-cta-btns { justify-content: flex-start; }
.cta-assure { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; font-size: .85rem; color: rgba(255,255,255,.78); }
.cta-assure li { display: inline-flex; align-items: center; gap: 8px; }
.cta-assure li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.cta-photo { position: relative; min-height: 380px; }
.cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #102B68 0%, rgba(16,43,104,.35) 38%, transparent 100%); }

@media (max-width: 900px) {
  .sh { margin-bottom: 40px; }
  .rec-block { padding: 40px 28px; }
  .trust-nums { gap: 14px; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-photo { order: -1; min-height: 190px; }
  .cta-photo::after { background: linear-gradient(0deg, #102B68 0%, transparent 70%); }
  .cta-copy { padding: 36px 26px 40px; }
}

/* prijs-teaser onder de diensten */
.price-note {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: 40px; padding: 28px 32px; background: var(--green-pale);
  border: 1px solid rgba(78,154,40,.22); border-radius: var(--r-md);
}
.price-note-text { display: flex; flex-direction: column; gap: 4px; }
.price-note-text strong { color: var(--blue); font-family: var(--font-display); font-size: 1.1rem; }
.price-note-text span { color: var(--gray-700); font-size: .95rem; max-width: 620px; }
@media (max-width: 768px) { .price-note { flex-direction: column; align-items: stretch; text-align: left; padding: 24px 22px; gap: 20px; } .price-note .btn { width: 100%; } }

/* trust cards: three across on desktop, stacked below 900px */
.trust-quals { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .trust-quals { grid-template-columns: 1fr; } }
