/* 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.4rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; 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(3.5rem, 8vw, 6.5rem) 0; }
.section:nth-of-type(even) { background: var(--c-surface); }
.section-heading { max-width: 680px; margin-bottom: 3rem; }
.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); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6rem; padding-block: .75rem; 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: 96px; width: auto; border-radius: 4px; }
@media (max-width: 760px) { .brand-logo { max-height: 64px; } }
.site-nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 650; font-size: 1.2rem; color: var(--c-text); padding: .6rem 1.05rem; border-radius: calc(var(--radius) / 1.5); transition: background-color .15s ease; }
.site-nav a:hover { background: color-mix(in srgb, var(--c-text) 7%, transparent); }
.site-nav a.active { color: var(--c-accent); }
.header-dark .site-nav a:hover { background: rgba(255,255,255,.1); }
.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: 760px) {
  .nav-toggle-label { display: flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: .2rem; padding-bottom: 1rem; }
  .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); }
@media (max-width: 860px) { .hero-split .hero-inner { grid-template-columns: 1fr; } }

/* 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; } }
.card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: calc(var(--radius) * 1.25); padding: 2rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0,0,0,.25); 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; }

/* 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; } }

/* 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); }

/* 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: "Populair"; 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: 3rem 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.2rem, 4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: .5rem; opacity: .8; font-size: .95rem; }

/* 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; }

/* 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; }

/* Footer */
.site-footer { border-top: 1px solid var(--c-border); padding: 2.5rem 0; color: var(--c-muted); font-size: .95rem; background: var(--c-surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-inner nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-inner a { color: inherit; text-decoration: none; }
.footer-inner a:hover { color: var(--c-text); }

/* 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; }
.icon-inherit { color: inherit; margin-right: 0; }
