/*
Theme Name: WERKlink
Theme URI: https://werklink.nl
Author: WERKlink
Description: Blockthema voor werklink.nl. Kleuren, typografie en maten komen uit tokens.css en theme.json (Brandguide V02.1). Richting "Warm raster".
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: werklink
Tags: block-theme, full-site-editing
*/

/* Alle waarden komen uit assets/css/tokens.css. Geen losse hex-waarden. */

body { text-wrap: pretty; }

/* --- secties --- */
.wl-section { padding-top: var(--wl-sectie-padding-mobiel); padding-bottom: var(--wl-sectie-padding-mobiel); }
@media (min-width: 900px) {
  .wl-section { padding-top: var(--wl-sectie-padding-desktop); padding-bottom: var(--wl-sectie-padding-desktop); }
}
.wl-section + .wl-section { border-top: 1px solid var(--wl-rand); }

/* --- typografie --- */
.wl-label {
  font-size: var(--wl-fs-label); line-height: var(--wl-lh-label); letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500; margin-bottom: var(--wl-space-xs);
}
.wl-h1 { font-size: var(--wl-fs-display); line-height: var(--wl-lh-display); letter-spacing: -.02em; }
.wl-intro { font-size: var(--wl-fs-body-lg); line-height: var(--wl-lh-body-lg); }
.wl-small { font-size: var(--wl-fs-small); line-height: var(--wl-lh-small); }

/* --- kaarten --- */
.wl-cards { gap: var(--wl-space-lg); margin-top: var(--wl-space-xl); }
.wl-card {
  border: 1px solid var(--wl-rand); border-radius: var(--wl-radius-lg);
  padding: var(--wl-space-lg); box-shadow: var(--wl-shadow-sm); height: 100%;
  display: flex; flex-direction: column;
}
.wl-card h3 { font-size: var(--wl-fs-h3); line-height: var(--wl-lh-h3); margin-top: var(--wl-space-md); }
.wl-card p { margin-top: var(--wl-space-sm); }
.wl-cardlink { margin-top: auto; padding-top: var(--wl-space-md); font-weight: 700; }
.wl-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--wl-blue-050);
  display: inline-flex; align-items: center; justify-content: center;
}

/* --- stappen en onderdelen --- */
.wl-step { padding: var(--wl-space-md) 0; border-bottom: 1px dashed var(--wl-rand); }
.wl-step-label { font-size: var(--wl-fs-label); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: var(--wl-space-2xs); }
.wl-step h4 { font-size: var(--wl-fs-h4); line-height: var(--wl-lh-h4); margin-bottom: var(--wl-space-2xs); }
.wl-blokken { gap: var(--wl-space-2xl); margin-top: var(--wl-space-xl); }
.wl-blokken h3 { font-size: var(--wl-fs-h3); line-height: var(--wl-lh-h3); }

/* --- noot --- */
.wl-noot {
  border-left: 4px solid var(--wl-amber-500);
  border-radius: 0 var(--wl-radius-md) var(--wl-radius-md) 0;
  padding: var(--wl-space-md) var(--wl-space-lg); margin-top: var(--wl-space-lg);
}
.wl-noot-tekst { font-size: var(--wl-fs-small); line-height: var(--wl-lh-small); margin: 0; }

/* --- afsluitende CTA --- */
.wl-cta { text-align: center; }
.wl-cta .wp-block-buttons { justify-content: center; }
.wl-cta h2 { font-size: var(--wl-fs-h2); line-height: var(--wl-lh-h2); }

/* --- juridische pagina's --- */
.wl-legal h2 { margin-top: var(--wl-space-xl); }
.wl-legal h3 { margin-top: var(--wl-space-lg); font-size: var(--wl-fs-h4); }
.wl-legal table { font-size: var(--wl-fs-small); }
.wl-anchor { display: block; height: 0; scroll-margin-top: 96px; }

/* --- formulier --- */
.wl-form { max-width: 520px; display: flex; flex-direction: column; gap: var(--wl-space-md); margin-top: var(--wl-space-lg); }
.wl-field label { display: block; font-weight: 600; font-size: var(--wl-fs-small); color: var(--wl-blue-700); margin-bottom: var(--wl-space-2xs); }
.wl-field input, .wl-field select, .wl-field textarea {
  width: 100%; font: inherit; padding: 11px 13px; color: var(--wl-tekst);
  border: 1.5px solid var(--wl-line); border-radius: var(--wl-radius-sm); background: var(--wl-white);
}

/* --- header en footer --- */
.wl-header { border-bottom: 1px solid var(--wl-rand); position: sticky; top: 0; z-index: 20; }
.admin-bar .wl-header { top: 32px; }
.wl-logo a, .wl-logo { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--wl-blue-700); text-decoration: none; }
.wl-logo .wl-logo-accent { color: var(--wl-amber-500); }
.wl-nav a { text-decoration: none; font-weight: 500; }
.wl-nav a:hover { text-decoration: underline; }
.wl-footer a { color: var(--wl-white); text-decoration: none; opacity: .85; }
.wl-footer a:hover { text-decoration: underline; opacity: 1; }
.wl-footer .wl-label { color: var(--wl-amber-500); }
.wl-footer h2, .wl-footer h3 { color: var(--wl-white); }
.wl-kernwaarden { font-size: var(--wl-fs-label); letter-spacing: .08em; color: var(--wl-amber-300); }
.wl-onderbalk { border-top: 1px solid rgba(255,255,255,.16); font-size: var(--wl-fs-small); }

/* --- cookiemelding --- */
.wl-cookie {
  position: fixed; left: var(--wl-space-md); right: var(--wl-space-md); bottom: var(--wl-space-md);
  max-width: 520px; border: 1px solid var(--wl-rand); border-radius: var(--wl-radius-lg);
  box-shadow: var(--wl-shadow-lg); padding: var(--wl-space-lg); z-index: 50;
}

/* --- toegankelijkheid --- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 3px solid var(--wl-focus); outline-offset: 3px;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  border: 2px solid var(--wl-blue-700); color: var(--wl-blue-700); background: transparent;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wl-blue-700); color: var(--wl-white); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
