/* Base stylesheet for all rendered sites. Colours, fonts and radius come from /__site/theme.css (CSS variables). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.12; margin: 0 0 .5em; color: var(--c-text); letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); font-weight: 800; line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.container { width: min(1140px, 100% - 3rem); margin-inline: auto; }
.container.narrow { max-width: 760px; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section:nth-of-type(even) { background: var(--c-surface); }
.section-heading { max-width: 720px; margin-bottom: 3.25rem; }
.section-heading .lead { margin-bottom: 0; }
.section-heading h2 { position: relative; padding-top: 1rem; }
.section-heading h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; border-radius: 2px; background: var(--c-accent); }
.lead { font-size: 1.2rem; color: var(--c-muted); line-height: 1.6; }
.muted { color: var(--c-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--c-accent); margin-bottom: 1rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-primary); color: var(--c-primary-contrast); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: var(--radius); font-weight: 650; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.btn-primary { background: var(--c-primary); color: var(--c-primary-contrast); }
.btn-secondary { background: transparent; color: var(--c-primary); border-color: var(--c-border); }
.btn-secondary:hover { border-color: var(--c-primary); }
.btn-accent { background: var(--c-accent); color: var(--c-accent-contrast); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.link { font-weight: 650; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link-arrow span { display: inline-block; transition: transform .15s ease; }
.link-arrow:hover span { transform: translateX(3px); }

/* Header */
.site-header { background: var(--c-bg); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 20; }
.header-dark .site-header { background: var(--c-primary); border-bottom-color: rgba(255,255,255,.08); }
.header-dark .site-header a, .header-dark .brand-text { color: var(--c-primary-contrast); }
.site-header { box-shadow: 0 1px 0 var(--c-border), 0 8px 24px -20px rgba(0,0,0,.25); border-bottom: none; }
/* The header gets a wider container than the content, so sites with many pages keep logo, menu and button on one row. */
.header-inner { width: min(1320px, 100% - 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.25rem; padding-block: .6rem; flex-wrap: wrap; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; }
.brand-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--c-text); }
.brand-logo { max-height: 84px; width: auto; border-radius: 4px; }
@media (max-width: 960px) { .brand-logo { max-height: 60px; } }
.site-nav { display: flex; gap: .1rem; align-items: center; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--c-text); padding: .5rem .6rem; border-radius: calc(var(--radius) / 1.5); position: relative; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.site-nav a:hover { background: color-mix(in srgb, var(--c-text) 7%, transparent); }
/* Active page: accent underline instead of a colour swap, so it also reads on a dark header. */
.site-nav a.active::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 3px; border-radius: 2px; background: var(--c-accent); }
.header-dark .site-nav a:hover { background: rgba(255,255,255,.1); }
.header-cta { margin-left: .75rem; padding: .6rem 1.15rem; font-size: .95rem; }
.header-cta:hover { transform: none; box-shadow: 0 8px 20px -10px rgba(0,0,0,.35); }
/* Language switch: "NL | EN" as plain links; the current language is marked, not hidden, so the choice stays visible. */
.language-switch { list-style: none; display: flex; align-items: center; gap: .1rem; margin: 0 0 0 .75rem; padding: 0 0 0 .75rem; border-left: 1px solid var(--c-border); }
.site-nav .language-switch a { font-size: .85rem; font-weight: 700; letter-spacing: .06em; padding: .35rem .45rem; opacity: .6; }
.site-nav .language-switch a.active { opacity: 1; }
.site-nav .language-switch a.active::after { display: none; }
.header-dark .language-switch { border-left-color: rgba(255,255,255,.2); }
@media (max-width: 960px) { .language-switch { margin: .5rem 0 0; padding: .5rem 0 0; border-left: none; border-top: 1px solid var(--c-border); } }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
.nav-toggle-label span { display: block; width: 24px; height: 2px; background: currentColor; }
.header-dark .nav-toggle-label { color: var(--c-primary-contrast); }
@media (max-width: 960px) {
  .nav-toggle-label { display: flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: .2rem; padding-bottom: 1rem; }
  .site-nav a { font-size: 1.1rem; padding: .7rem .85rem; }
  .site-nav a.active::after { left: 0; width: 4px; right: auto; top: .55rem; bottom: .55rem; height: auto; }
  .header-cta { margin: .5rem 0 0; justify-content: center; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--c-bg); padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(4rem, 10vw, 7.5rem); }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--c-accent) 14%, transparent), transparent 70%),
  radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--c-primary) 10%, transparent), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero-split .hero-inner { grid-template-columns: 1.15fr .85fr; }
.hero-center .hero-inner { text-align: center; justify-items: center; }
.hero-center .hero-copy { max-width: 800px; }
.hero-center .actions { justify-content: center; }
.hero .lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 560px; }
.hero-center .lead { margin-inline: auto; }
.hero-media img { border-radius: calc(var(--radius) * 1.5); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .hero-split .hero-inner { grid-template-columns: 1fr; } }
/* Cover hero: full-bleed photo with a dark overlay and centred copy. Falls back to the primary colour without a photo. */
.hero-cover { background: var(--c-primary); color: #fff; min-height: min(78vh, 720px); display: grid; align-items: center; padding-top: clamp(5rem, 12vw, 9rem); padding-bottom: clamp(5rem, 12vw, 9rem); }
.hero-cover::before { display: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.6) 100%); }
.hero-cover .hero-inner { text-align: center; justify-items: center; }
.hero-cover .hero-copy { max-width: 880px; }
.hero-cover h1 { color: #fff; font-size: clamp(2.1rem, 6vw, 4.6rem); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-cover .lead { color: #fff; opacity: .92; margin-inline: auto; max-width: 640px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-cover .eyebrow { color: var(--c-accent); }
.hero-cover .actions { justify-content: center; }
.hero-cover .btn-secondary { color: #fff; border-color: rgba(255,255,255,.65); }
.hero-cover .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* Grids and cards */
.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 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-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }
/* Fewer items than columns: centre them instead of leaving the right side empty. */
.grid-count-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.grid-count-2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
@media (max-width: 600px) { .grid-count-1, .grid-count-2 { grid-template-columns: 1fr; } }
.card { background: var(--c-bg); border: 1px solid color-mix(in srgb, var(--c-border) 60%, transparent); border-radius: calc(var(--radius) * 1.25); padding: 2rem; box-shadow: 0 10px 30px -24px rgba(0,0,0,.25); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 48px -24px rgba(0,0,0,.28); border-color: color-mix(in srgb, var(--c-primary) 30%, var(--c-border)); }
.section:nth-of-type(even) .card { background: var(--c-bg); }
.section:nth-of-type(odd) .card { background: var(--c-surface); }
.card h3 { margin-top: .3em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--c-muted); }
.card-icon { width: 52px; height: 52px; border-radius: calc(var(--radius) / 1.2); background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary); display: grid; place-items: center; margin-bottom: 1.25rem; }
.icon { width: 24px; height: 24px; }
.icon-sm { width: 18px; height: 18px; vertical-align: -3px; margin-right: .3rem; color: var(--c-accent); }
.card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media img, .media-placeholder { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.media-placeholder { background: linear-gradient(135deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 55%, var(--c-accent))); }
.monogram { display: grid; place-items: center; color: var(--c-primary-contrast); font-family: var(--font-heading); font-weight: 800; font-size: 3rem; letter-spacing: .05em; }
.card-body { padding: 1.6rem 1.75rem 1.9rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body .link { margin-top: auto; padding-top: .75rem; }
.card-link { margin: 1rem 0 0; }
/* Service cards with a photo: the image zooms slightly on hover, clipped by the card. */
.card-media img { transition: transform .45s ease; }
.card-media:hover img { transform: scale(1.04); }
.services .card-media .card-body { text-align: left; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-image-left .split-media { order: -1; }
.split-media img { border-radius: calc(var(--radius) * 1.5); box-shadow: 0 30px 60px -25px rgba(0,0,0,.3); }
.split-media.media-placeholder { border-radius: calc(var(--radius) * 1.5); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } .split-image-left .split-media { order: 0; } }

/* Gallery */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item figure { margin: 0; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--c-surface); }
.gallery-item a { display: block; }
.gallery-item a:hover img { filter: brightness(1.05); }
.gallery-item figcaption { margin-top: .5rem; font-size: .92rem; color: var(--c-muted); line-height: 1.4; }
@media (max-width: 900px) { .gallery-cols-3, .gallery-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-cols-2, .gallery-cols-3, .gallery-cols-4 { grid-template-columns: 1fr; } }

/* Prose (markdown) */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 0; }
.prose h3, .prose h4 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--c-accent); }
.prose blockquote { border-left: 4px solid var(--c-accent); margin: 1.5em 0; padding: .3em 1.2em; color: var(--c-muted); }
.prose code { background: var(--c-surface); padding: .1em .35em; border-radius: 4px; font-size: .95em; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .98em; }
.prose th, .prose td { text-align: left; padding: .6em .8em; border-bottom: 1px solid var(--c-border, #e5e7eb); vertical-align: top; }
.prose th { background: var(--c-surface); font-weight: 600; }
.prose tr:last-child td { border-bottom: none; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }

/* Steps */
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(4, 1fr); }
.step { display: flex; flex-direction: column; gap: 1rem; }
.step-number { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-contrast); font-weight: 800; display: grid; place-items: center; font-family: var(--font-heading); }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--c-muted); }
@media (max-width: 900px) { .steps-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-list { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-grid { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan-highlighted { border: 2px solid var(--c-accent); box-shadow: 0 24px 50px -24px rgba(0,0,0,.25); position: relative; }
.plan-highlighted::before { content: attr(data-badge); position: absolute; top: -.85rem; left: 1.5rem; background: var(--c-accent); color: var(--c-accent-contrast); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.price { margin: .5rem 0 1rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price-value { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--c-text); }
.price-period { color: var(--c-muted); }
.features { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.features li { padding: .45rem 0; border-top: 1px solid var(--c-border); }
.plan .btn { margin-top: auto; justify-content: center; }

/* Testimonials */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1.25rem; font-size: 1.15rem; line-height: 1.6; color: var(--c-text); }
.quote blockquote::before { content: "\201C"; display: block; color: var(--c-accent); font-size: 3.5rem; line-height: .6; margin-bottom: .6rem; font-family: var(--font-heading); }
.quote figcaption { color: var(--c-muted); font-size: .95rem; }

/* Stats */
.section.stats { padding: 3.5rem 0; background: var(--c-primary); color: var(--c-primary-contrast); }
.stats-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat-value { display: block; font-family: var(--font-heading); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--c-accent); }
.stat-label { display: block; margin-top: .6rem; opacity: .85; font-size: 1rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--c-border); padding: .4rem 0; }
.faq-item summary { cursor: pointer; font-weight: 650; font-size: 1.1rem; padding: .8rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--c-accent); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .prose { padding-bottom: 1rem; color: var(--c-muted); }

/* CTA */
.section.cta { background: linear-gradient(120deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 70%, var(--c-accent))); color: var(--c-primary-contrast); }
.cta h2, .cta .lead { color: inherit; }
.cta .lead { opacity: .88; margin-bottom: 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
/* With a background photo: same technique as the cover hero (an <img>, no inline styles), darkened for legibility. */
.section.cta-photo { position: relative; overflow: hidden; background: var(--c-primary); color: #fff; padding-block: clamp(5rem, 11vw, 8.5rem); }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.35) 100%); }
.cta-photo .cta-inner { position: relative; }
.cta-photo h2 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.cta-photo .lead { color: #fff; opacity: .92; max-width: 560px; }

/* Contact */
.contact-details { display: grid; gap: 1.1rem; margin: 0; }
.contact-details dt { font-weight: 700; display: flex; align-items: center; font-size: .95rem; }
.contact-details dd { margin: .15rem 0 0; color: var(--c-muted); }
.contact-details dd a { color: var(--c-text); }
.preline { white-space: pre-line; }
.contact-form { background: var(--c-bg); padding: 2rem; border-radius: calc(var(--radius) * 1.25); border: 1px solid var(--c-border); box-shadow: 0 24px 50px -30px rgba(0,0,0,.3); }
.section:nth-of-type(odd) .contact-form { background: var(--c-surface); }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.form-field input, .form-field textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--c-border); border-radius: calc(var(--radius) / 1.5); font: inherit; background: var(--c-bg); color: var(--c-text); transition: border-color .15s ease, box-shadow .15s ease; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 20%, transparent); }
.field-error { color: #b42318; margin: .3rem 0 0; font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1.1rem 1.25rem; border-radius: var(--radius); }
.notice-success { background: #e6f7ec; color: #14532d; border: 1px solid #9fdcb4; }
/* Note for the person editing the site; only ever rendered in previews. */
.notice-editor { background: #fff3cd; color: #664d03; border: 1px dashed #d9b64a; font-size: .95rem; }

/* Footer: dark, in columns (brand, pages, contact) with a bottom bar for the copyright and the legal pages. */
.site-footer { background: color-mix(in srgb, var(--c-primary) 82%, #000); color: color-mix(in srgb, var(--c-primary-contrast) 78%, transparent); font-size: .98rem; border-top: 4px solid var(--c-accent); }
.site-footer a { color: inherit; text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: var(--c-primary-contrast); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--c-primary-contrast) !important; }
.footer-brand p { margin: .9rem 0 0; max-width: 38ch; line-height: 1.6; }
.footer-brand .social-links { margin-top: 1.1rem; margin-left: -.55rem; }
.site-footer .social-links a:hover { background: rgba(255,255,255,.12); color: var(--c-accent); text-decoration: none; }
.footer-column h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--c-primary-contrast); margin: .35rem 0 1.1rem; }
.footer-column ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
/* Many pages: two columns keep the footer compact. */
.footer-pages-split ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.footer-contact li { display: flex; gap: .5rem; align-items: flex-start; }
.footer-contact .icon-sm { flex: none; margin: .25rem 0 0; }
.footer-address-label { font-size: .85rem; opacity: .75; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; padding-block: 1.25rem; }
.footer-bottom nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Placeholder for unpublished sites */
.placeholder { font-family: system-ui, sans-serif; background: #f4f6fa; color: #1b2430; }
.placeholder-main { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 2rem; }

/* Template accents */
.template-freelancer h1 { letter-spacing: -0.03em; }
.template-freelancer .site-nav a.active { color: var(--c-accent); }
.template-business .section-heading { text-align: center; margin-inline: auto; }
.template-business .section-heading h2::before { left: 50%; transform: translateX(-50%); }
.template-business .card { text-align: center; }
.template-business .card-icon { margin-inline: auto; }
.template-portfolio h1, .template-portfolio h2 { font-weight: 500; letter-spacing: 0; }
.template-portfolio .section-heading h2::before { display: none; }
.template-portfolio .card { border: none; background: transparent !important; padding: 0; box-shadow: none; }
.template-portfolio .card:hover { transform: none; }
.template-portfolio .card-body { padding: 1.1rem 0; }
.template-portfolio .section:nth-of-type(even) { background: var(--c-bg); }
.template-onepage .section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.template-onepage .card { box-shadow: 0 10px 30px rgba(0,0,0,.06); border: none; }

/* Preview badge */
.is-preview::before { content: "Voorbeeld - wijzigingen zijn nog niet gepubliceerd"; display: block; background: #fff3cd; color: #664d03; text-align: center; font-size: .85rem; padding: .35rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Social links (header/footer) and embeds */
.social-links { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.social-links a, .site-nav .social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; color: inherit; transition: background-color .15s ease, color .15s ease; }
.social-links a:hover { background: color-mix(in srgb, var(--c-text) 8%, transparent); color: var(--c-accent); }
.header-dark .site-header .social-links a { color: var(--c-primary-contrast); }
.header-dark .social-links-header a:hover { background: rgba(255,255,255,.12); }
.social-links-header { margin-left: .75rem; padding-left: .75rem; border-left: 1px solid var(--c-border); }
.header-dark .social-links-header { border-left-color: rgba(255,255,255,.2); }
@media (max-width: 760px) { .social-links-header { margin-left: 0; padding-left: 0; border-left: none; padding-top: .5rem; } }
.social-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.social-embed { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; max-width: 100%; }
.social-embed iframe { display: block; border: 0; max-width: 100%; }
.social-note { text-align: center; margin-top: 1.5rem; font-size: .9rem; }
.social-actions { text-align: center; margin: 1.5rem 0 0; }

/* Video (YouTube/Vimeo player in a 16:9 frame) and map (OpenStreetMap frame): plain iframes, no script. */
.video-grid { display: grid; gap: 1.5rem; }
.video-cols-1 { max-width: 960px; margin: 0 auto; }
.video-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .video-cols-2 { grid-template-columns: 1fr; } }
.video-item { margin: 0; }
.video-frame, .map-frame { position: relative; aspect-ratio: 16 / 9; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.video-frame iframe, .map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: .6rem; font-size: .9rem; color: var(--c-muted); text-align: center; }
.map-frame { max-width: 960px; margin: 0 auto; }
.map-footer { max-width: 960px; margin: 1.25rem auto 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.map-address { margin: 0; }
.map-actions { margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.map-note { text-align: center; margin-top: 1.25rem; font-size: .9rem; }
.icon-inherit { color: inherit; margin-right: 0; }

/* Focal point of a cropped photo, set per file in the media library (fx = from the left, fy = from the top).
   Classes in steps of ten because the site CSP allows no inline styles. */
img[class*="fx-"] { object-position: var(--fx, 50%) var(--fy, 50%); }
.fx-0 { --fx: 0%; } .fx-10 { --fx: 10%; } .fx-20 { --fx: 20%; } .fx-30 { --fx: 30%; } .fx-40 { --fx: 40%; } .fx-50 { --fx: 50%; } .fx-60 { --fx: 60%; } .fx-70 { --fx: 70%; } .fx-80 { --fx: 80%; } .fx-90 { --fx: 90%; } .fx-100 { --fx: 100%; }
.fy-0 { --fy: 0%; } .fy-10 { --fy: 10%; } .fy-20 { --fy: 20%; } .fy-30 { --fy: 30%; } .fy-40 { --fy: 40%; } .fy-50 { --fy: 50%; } .fy-60 { --fy: 60%; } .fy-70 { --fy: 70%; } .fy-80 { --fy: 80%; } .fy-90 { --fy: 90%; } .fy-100 { --fy: 100%; }

/* Business details: address lines, registration numbers in the footer, and the floating call/WhatsApp button. */
.address-line { display: block; }
.footer-registration { margin-left: 1rem; opacity: .8; white-space: nowrap; }
.floating-button { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--c-primary); color: var(--c-primary-contrast); box-shadow: 0 10px 25px -8px rgba(0,0,0,.45); transition: transform .15s ease; }
.floating-button:hover, .floating-button:focus-visible { transform: scale(1.06); }
.floating-button .icon { width: 1.6rem; height: 1.6rem; }
.floating-whatsapp { background: #128c7e; color: #fff; }
@media print { .floating-button { display: none; } }
@media (prefers-reduced-motion: reduce) { .floating-button { transition: none; } }

/* Agenda: a date badge next to each activity. */
.agenda-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.agenda-item { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.25rem; background: var(--c-surface); border-radius: var(--radius); }
.agenda-badge { flex: 0 0 4rem; display: grid; justify-items: center; padding: .55rem 0; border-radius: var(--radius); background: var(--c-primary); color: var(--c-primary-contrast); line-height: 1.1; }
.agenda-day { font-size: 1.6rem; font-weight: 700; }
.agenda-month { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.agenda-body h3 { margin: 0 0 .2em; font-size: 1.15rem; }
.agenda-body p { margin: 0 0 .4em; }
.agenda-when { color: var(--c-muted); display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .95rem; }
.agenda-location { display: inline-flex; align-items: center; gap: .3rem; }
.agenda-empty, .vacancies-empty { text-align: center; color: var(--c-muted); }
.agenda-title-link { color: inherit; text-decoration: none; }
.agenda-title-link:hover { color: var(--c-accent); }
.agenda-subscribe { margin: 1.5rem 0 0; text-align: center; font-size: .95rem; }
.agenda-subscribe a { display: inline-flex; align-items: center; gap: .35rem; }
.agenda-past { margin-top: 3rem; }
.agenda-past h4 { margin: 1.5rem 0 .4rem; color: var(--c-muted); }
.agenda-past ul { list-style: none; padding: 0; margin: 0; }
.agenda-past li { display: flex; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--c-border); }
.agenda-past time { flex: 0 0 7.5rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.event-when { margin: 0 0 1rem; font-size: 1.05rem; }
.event-over { margin: 0 0 1.5rem; background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-muted); }
.event-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }

/* Projects: cards like the news, a category label and the photos of a project in the gallery grid. */
.project-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }
.project-category { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--c-accent) 18%, transparent); color: var(--c-text); font-size: .8rem; font-weight: 650; letter-spacing: .02em; }
.project-page .project-meta { font-size: 1rem; margin-bottom: .75rem; }
.project-photos { margin-top: 2.5rem; }
.project-card .media-placeholder { background: var(--c-surface); }

/* Countdown: whole days to a date, big and centred. */
.countdown-block { text-align: center; }
.countdown-number { margin: 0; font-size: clamp(3.5rem, 12vw, 7rem); font-weight: 800; line-height: 1; color: var(--c-accent); letter-spacing: -.02em; }
.countdown-label { margin: .35rem 0 1.25rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.countdown-over { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 650; color: var(--c-accent); }
.countdown-block .section-heading { text-align: center; }
.countdown-date { margin: -.5rem 0 0; color: var(--c-muted); font-size: 1.05rem; }
.countdown-actions { margin: 1.5rem 0 0; }
.event-actions:empty { display: none; }
@media (max-width: 480px) { .agenda-item { gap: .9rem; padding: 1rem; } .agenda-badge { flex-basis: 3.25rem; } }

/* Vacancies */
.vacancy-list { display: grid; gap: 1.25rem; }
.vacancy h3 { margin-bottom: .3em; }
.vacancy-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; color: var(--c-muted); margin: 0 0 1em; }
.vacancy-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.vacancy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.25em 0 0; }

/* Team */
.team-member { text-align: center; }
.team-photo { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; background: var(--c-surface); }
.team-photo-empty { display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; color: var(--c-muted); }
.team-member h3 { margin-bottom: .15em; }
.team-role { color: var(--c-muted); margin: 0 0 .6em; }

/* Timeline: a line on the left with a dot per moment. */
.timeline-list { list-style: none; margin: 0; padding: 0 0 0 1.75rem; border-left: 2px solid var(--c-border); display: grid; gap: 2rem; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: calc(-1.75rem - 7px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-bg); }
.timeline-label { display: inline-block; font-weight: 700; color: var(--c-accent); letter-spacing: .02em; }
.timeline-item h3 { margin: .1em 0 .3em; }
.timeline-item p { margin: 0; color: var(--c-muted); }

/* Sponsors: logos of very different shapes in cells of one size. */
.sponsor-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: center; }
.sponsor { display: grid; place-items: center; min-height: 6rem; padding: .75rem; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.sponsor a { display: grid; place-items: center; width: 100%; }
.sponsor img { max-width: 100%; max-height: 4.5rem; width: auto; height: auto; object-fit: contain; }
.sponsor-name { font-weight: 650; color: #222; text-align: center; }

.contact-route { margin-top: 1.25rem; }

/* Announcement bar above the header. */
.announcement { font-size: .95rem; }
.announcement-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .25rem 1rem; padding-block: .6rem; text-align: center; }
.announcement a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.announcement-calm { background: var(--c-surface); color: var(--c-text); border-bottom: 1px solid var(--c-border); }
.announcement-accent { background: var(--c-accent); color: var(--c-accent-readable, #111); }
@media print { .announcement { display: none; } }

/* Opening hours */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: .7rem .25rem; border-bottom: 1px solid var(--c-border); text-align: left; font-weight: 400; }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours-today th, .hours-today td { font-weight: 700; color: var(--c-primary); }
.hours-special-title { margin: 2rem 0 .5rem; font-size: 1.1rem; }
.hours-special { list-style: none; padding: 0; margin: 0; }
.hours-special li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .25rem; border-bottom: 1px solid var(--c-border); font-variant-numeric: tabular-nums; }

/* Downloads */
.download-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.download a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--c-surface); border-radius: var(--radius); text-decoration: none; color: inherit; transition: transform .15s ease; }
.download a:hover, .download a:focus-visible { transform: translateY(-1px); }
.download-icon { flex: 0 0 auto; display: grid; place-items: center; width: 3rem; height: 3.6rem; border-radius: 6px; background: var(--c-primary); color: var(--c-primary-contrast); font-size: .75rem; font-weight: 700; letter-spacing: .05em; }
.download-body { display: grid; gap: .1rem; min-width: 0; }
.download-title { font-weight: 650; }
.download-description, .download-meta { color: var(--c-muted); font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .download a { transition: none; } }

/* News: overview cards, the archive list and the page of one post. */
.blog-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.blog-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-date { margin: 0 0 .35rem; color: var(--c-muted); font-size: .9rem; }
.blog-card h3 { margin: 0 0 .4em; }
.blog-card .link { display: inline-block; margin-top: .5rem; }
.blog-back { margin: 0 0 1.5rem; }
.blog-empty { text-align: center; color: var(--c-muted); }
.blog-archive { margin-top: 3rem; max-width: 760px; }
.blog-archive h4 { margin: 1.5rem 0 .4rem; color: var(--c-muted); }
.blog-archive ul { list-style: none; padding: 0; margin: 0; }
.blog-archive li { display: flex; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--c-border); }
.blog-archive time { flex: 0 0 7.5rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.blog-post-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 .4em; }
.blog-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 1.5rem 0 2rem; background: var(--c-surface); }
.blog-neighbours { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
.blog-neighbour { display: grid; gap: .2rem; color: inherit; text-decoration: none; font-weight: 650; }
.blog-neighbour span { font-weight: 400; font-size: .9rem; color: var(--c-muted); }
.blog-neighbour-next { grid-column: 2; text-align: right; }
@media (max-width: 560px) { .blog-neighbours { grid-template-columns: 1fr; } .blog-neighbour-next { grid-column: 1; text-align: left; } .blog-archive li { flex-direction: column; gap: 0; } }
