/**
 * Basisstijlen voor Wieke Logistics.
 *
 * Inhoud:
 * 1. CSS-variabelen
 * 2. Reset en documentbasis
 * 3. Typografie
 * 4. Containers en algemene layout
 * 5. Knoppen en links
 * 6. Toegankelijkheid
 * 7. Algemene pagina-elementen
 * 8. Formulierbasis
 */

/* =========================================================
   1. CSS-VARIABELEN
   ========================================================= */

:root {
    --wieke-orange: #eb6709;
    --wieke-orange-dark: #c85200;
    --wieke-orange-darker: #a94300;
    --wieke-orange-light: #fff1e7;
    --wieke-orange-soft: #fff8f3;

    --wieke-purple: #595673;
    --wieke-purple-dark: #3d3a52;
    --wieke-purple-darker: #2e2c3d;
    --wieke-purple-light: #f1f0f5;
    --wieke-purple-soft: #f8f7fa;

    --wieke-white: #ffffff;
    --wieke-background: #f8f8fa;
    --wieke-background-alt: #f2f1f5;
    --wieke-dark: #24232c;
    --wieke-text: #45434f;
    --wieke-text-light: #6c6978;
    --wieke-border: #dddce4;
    --wieke-border-dark: #c7c5d0;

    --wieke-success: #26734d;
    --wieke-success-light: #eaf7f0;
    --wieke-warning: #9a5a00;
    --wieke-warning-light: #fff5e4;
    --wieke-error: #b42318;
    --wieke-error-light: #fff0ee;

    --wieke-font-heading:
        "Trebuchet MS",
        "Segoe UI",
        Arial,
        sans-serif;

    --wieke-font-body:
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    --wieke-container-width: 1240px;
    --wieke-container-small: 880px;
    --wieke-container-padding: clamp(1.25rem, 4vw, 2.5rem);

    --wieke-section-space: clamp(4.5rem, 8vw, 7.5rem);
    --wieke-section-space-small: clamp(3rem, 5vw, 4.5rem);

    --wieke-radius-small: 0.625rem;
    --wieke-radius-medium: 1rem;
    --wieke-radius-large: 1.5rem;
    --wieke-radius-xlarge: 2rem;
    --wieke-radius-pill: 999px;

    --wieke-shadow-small:
        0 0.25rem 1rem rgba(36, 35, 44, 0.08);

    --wieke-shadow-medium:
        0 1rem 2.5rem rgba(36, 35, 44, 0.12);

    --wieke-shadow-large:
        0 1.5rem 4rem rgba(36, 35, 44, 0.16);

    --wieke-transition:
        180ms ease;

    --wieke-transition-slow:
        320ms ease;

    --wieke-header-height: 88px;
}


/* =========================================================
   2. RESET EN DOCUMENTBASIS
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--wieke-header-height) + 1.5rem);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: var(--wieke-white);
    color: var(--wieke-text);
    font-family: var(--wieke-font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

img,
picture,
svg,
canvas,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

svg {
    flex: 0 0 auto;
}

iframe {
    max-width: 100%;
    border: 0;
}

button,
input,
select,
textarea {
    margin: 0;
    color: inherit;
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
blockquote,
figure {
    margin-top: 0;
}

ul,
ol {
    padding-left: 1.25rem;
}

address {
    font-style: normal;
}

::selection {
    background: var(--wieke-orange);
    color: var(--wieke-white);
}


/* =========================================================
   3. TYPOGRAFIE
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    color: var(--wieke-purple-dark);
    font-family: var(--wieke-font-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.65rem, 6vw, 5.25rem);
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.65rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1.25rem;
}

p:last-child {
    margin-bottom: 0;
}

strong,
b {
    font-weight: 700;
}

small {
    font-size: 0.875rem;
}

blockquote {
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.75rem;
    border-left: 0.3rem solid var(--wieke-orange);
    border-radius: 0 var(--wieke-radius-medium) var(--wieke-radius-medium) 0;
    background: var(--wieke-orange-light);
    color: var(--wieke-purple-dark);
    font-size: 1.1rem;
}

hr {
    height: 1px;
    margin: 2.5rem 0;
    border: 0;
    background: var(--wieke-border);
}


/* =========================================================
   4. CONTAINERS EN ALGEMENE LAYOUT
   ========================================================= */

.wieke-container {
    width: min(
        calc(100% - (var(--wieke-container-padding) * 2)),
        var(--wieke-container-width)
    );
    margin-inline: auto;
}

.wieke-container--small {
    width: min(
        calc(100% - (var(--wieke-container-padding) * 2)),
        var(--wieke-container-small)
    );
    margin-inline: auto;
}

.site-main {
    min-height: 60vh;
}

.wieke-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: var(--wieke-orange-dark);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.wieke-section-label::before {
    width: 2.25rem;
    height: 0.16rem;
    border-radius: var(--wieke-radius-pill);
    background: currentColor;
    content: "";
}

.wieke-section-label--light {
    color: var(--wieke-orange-light);
}

.wieke-section-label--light::before {
    background: var(--wieke-orange);
}

.wieke-page-section {
    padding-block: var(--wieke-section-space);
}

.wieke-page-section--small {
    padding-block: var(--wieke-section-space-small);
}


/* =========================================================
   5. KNOPPEN EN LINKS
   ========================================================= */

.wieke-button {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.85rem 1.35rem;
    border: 2px solid transparent;
    border-radius: var(--wieke-radius-pill);
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        background-color var(--wieke-transition),
        border-color var(--wieke-transition),
        color var(--wieke-transition),
        box-shadow var(--wieke-transition),
        transform var(--wieke-transition);
}

.wieke-button:hover {
    transform: translateY(-2px);
}

.wieke-button:active {
    transform: translateY(0);
}

.wieke-button--large {
    min-height: 3.75rem;
    padding: 1rem 1.65rem;
    font-size: 1.02rem;
}

.wieke-button--primary {
    border-color: var(--wieke-orange);
    background: var(--wieke-orange);
    color: var(--wieke-white);
    box-shadow:
        0 0.5rem 1.5rem rgba(235, 103, 9, 0.24);
}

.wieke-button--primary:hover {
    border-color: var(--wieke-orange-dark);
    background: var(--wieke-orange-dark);
    color: var(--wieke-white);
    box-shadow:
        0 0.75rem 1.75rem rgba(200, 82, 0, 0.28);
}

.wieke-button--secondary {
    border-color: var(--wieke-purple);
    background: var(--wieke-white);
    color: var(--wieke-purple-dark);
}

.wieke-button--secondary:hover {
    border-color: var(--wieke-purple-dark);
    background: var(--wieke-purple-dark);
    color: var(--wieke-white);
}

.wieke-button--outline {
    border-color: var(--wieke-purple);
    background: transparent;
    color: var(--wieke-purple-dark);
}

.wieke-button--outline:hover {
    border-color: var(--wieke-purple);
    background: var(--wieke-purple);
    color: var(--wieke-white);
}

.wieke-button--light {
    border-color: var(--wieke-white);
    background: var(--wieke-white);
    color: var(--wieke-purple-dark);
    box-shadow:
        0 0.75rem 2rem rgba(20, 18, 30, 0.16);
}

.wieke-button--light:hover {
    border-color: var(--wieke-orange-light);
    background: var(--wieke-orange-light);
    color: var(--wieke-orange-dark);
}

.wieke-button--ghost-light {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: var(--wieke-white);
    backdrop-filter: blur(6px);
}

.wieke-button--ghost-light:hover {
    border-color: var(--wieke-white);
    background: rgba(255, 255, 255, 0.16);
    color: var(--wieke-white);
}

.wieke-button--footer {
    border-color: var(--wieke-orange);
    background: var(--wieke-orange);
    color: var(--wieke-white);
}

.wieke-button--footer:hover {
    border-color: var(--wieke-white);
    background: var(--wieke-white);
    color: var(--wieke-purple-dark);
}

.wieke-button__icon {
    transition: transform var(--wieke-transition);
}

.wieke-button:hover .wieke-button__icon {
    transform: translateX(0.2rem);
}

.wieke-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wieke-purple-dark);
    font-weight: 750;
    text-decoration: none;
    transition:
        color var(--wieke-transition),
        gap var(--wieke-transition);
}

.wieke-link-arrow:hover {
    gap: 0.75rem;
    color: var(--wieke-orange-dark);
}

.wieke-link-arrow--light {
    color: var(--wieke-white);
}

.wieke-link-arrow--light:hover {
    color: var(--wieke-orange-light);
}


/* =========================================================
   6. TOEGANKELIJKHEID
   ========================================================= */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.screen-reader-text:focus,
.skip-link:focus {
    position: fixed !important;
    top: 1rem;
    left: 1rem;
    z-index: 100000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.9rem 1.25rem;
    overflow: visible;
    clip: auto;
    clip-path: none;
    border-radius: var(--wieke-radius-small);
    background: var(--wieke-purple-dark);
    color: var(--wieke-white);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--wieke-shadow-medium);
}

:focus-visible {
    outline: 3px solid var(--wieke-orange);
    outline-offset: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
}

[hidden] {
    display: none !important;
}


/* =========================================================
   7. ALGEMENE PAGINA-ELEMENTEN
   ========================================================= */

.wieke-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.wieke-breadcrumb a {
    color: inherit;
    font-weight: 650;
    text-decoration: none;
}

.wieke-breadcrumb a:hover {
    color: var(--wieke-orange-light);
}

.entry-content {
    color: var(--wieke-text);
}

.entry-content > * {
    max-width: 100%;
}

.entry-content h2 {
    margin-top: 2.75rem;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.entry-content h3 {
    margin-top: 2rem;
}

.entry-content a:not(.wieke-button) {
    color: var(--wieke-orange-dark);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.entry-content a:not(.wieke-button):hover {
    color: var(--wieke-purple-dark);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.55rem;
}

.entry-content table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    border-radius: var(--wieke-radius-medium);
    overflow: hidden;
    box-shadow: var(--wieke-shadow-small);
}

.entry-content th,
.entry-content td {
    padding: 0.9rem 1rem;
    border: 1px solid var(--wieke-border);
    text-align: left;
    vertical-align: top;
}

.entry-content th {
    background: var(--wieke-purple);
    color: var(--wieke-white);
}

.entry-content tr:nth-child(even) td {
    background: var(--wieke-purple-soft);
}


/* =========================================================
   8. FORMULIERBASIS
   ========================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="password"],
select,
textarea {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--wieke-border-dark);
    border-radius: var(--wieke-radius-small);
    background: var(--wieke-white);
    color: var(--wieke-dark);
    font-size: 1rem;
    line-height: 1.4;
    transition:
        border-color var(--wieke-transition),
        box-shadow var(--wieke-transition),
        background-color var(--wieke-transition);
}

textarea {
    min-height: 9rem;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #85828f;
    opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--wieke-purple);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--wieke-orange);
    outline: none;
    box-shadow:
        0 0 0 0.25rem rgba(235, 103, 9, 0.14);
}

input[type="checkbox"],
input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--wieke-orange);
}

label {
    color: var(--wieke-purple-dark);
    font-weight: 700;
}

button[type="submit"],
input[type="submit"] {
    min-height: 3.25rem;
    padding: 0.85rem 1.5rem;
    border: 2px solid var(--wieke-orange);
    border-radius: var(--wieke-radius-pill);
    background: var(--wieke-orange);
    color: var(--wieke-white);
    font-weight: 750;
    transition:
        background-color var(--wieke-transition),
        border-color var(--wieke-transition),
        box-shadow var(--wieke-transition),
        transform var(--wieke-transition);
}

button[type="submit"]:hover,
input[type="submit"]:hover {
    border-color: var(--wieke-orange-dark);
    background: var(--wieke-orange-dark);
    box-shadow:
        0 0.75rem 1.75rem rgba(200, 82, 0, 0.24);
    transform: translateY(-2px);
}


/* Forminator-basis */

.forminator-ui {
    font-family: var(--wieke-font-body) !important;
}

.forminator-ui .forminator-label {
    margin-bottom: 0.45rem !important;
    color: var(--wieke-purple-dark) !important;
    font-size: 0.95rem !important;
    font-weight: 750 !important;
}

.forminator-ui .forminator-description,
.forminator-ui .forminator-field-description {
    color: var(--wieke-text-light) !important;
    font-size: 0.875rem !important;
}

.forminator-ui .forminator-input,
.forminator-ui .forminator-textarea,
.forminator-ui .forminator-select2-selection {
    min-height: 3.2rem !important;
    border: 1px solid var(--wieke-border-dark) !important;
    border-radius: var(--wieke-radius-small) !important;
    background: var(--wieke-white) !important;
    color: var(--wieke-dark) !important;
    box-shadow: none !important;
}

.forminator-ui .forminator-input:focus,
.forminator-ui .forminator-textarea:focus,
.forminator-ui .forminator-select2-selection:focus {
    border-color: var(--wieke-orange) !important;
    box-shadow:
        0 0 0 0.25rem rgba(235, 103, 9, 0.14) !important;
}

.forminator-ui .forminator-button-submit {
    min-height: 3.35rem !important;
    padding: 0.9rem 1.6rem !important;
    border: 2px solid var(--wieke-orange) !important;
    border-radius: var(--wieke-radius-pill) !important;
    background: var(--wieke-orange) !important;
    color: var(--wieke-white) !important;
    font-size: 1rem !important;
    font-weight: 750 !important;
    box-shadow:
        0 0.5rem 1.5rem rgba(235, 103, 9, 0.2) !important;
    transition:
        background-color var(--wieke-transition),
        border-color var(--wieke-transition),
        box-shadow var(--wieke-transition),
        transform var(--wieke-transition) !important;
}

.forminator-ui .forminator-button-submit:hover {
    border-color: var(--wieke-orange-dark) !important;
    background: var(--wieke-orange-dark) !important;
    box-shadow:
        0 0.75rem 1.75rem rgba(200, 82, 0, 0.28) !important;
    transform: translateY(-2px);
}

.forminator-ui .forminator-error-message {
    color: var(--wieke-error) !important;
    font-size: 0.875rem !important;
}

.forminator-ui .forminator-response-message {
    padding: 1rem 1.1rem !important;
    border-radius: var(--wieke-radius-small) !important;
}

.forminator-ui .forminator-response-message.forminator-success {
    border: 1px solid rgba(38, 115, 77, 0.25) !important;
    background: var(--wieke-success-light) !important;
    color: var(--wieke-success) !important;
}

.forminator-ui .forminator-response-message.forminator-error {
    border: 1px solid rgba(180, 35, 24, 0.25) !important;
    background: var(--wieke-error-light) !important;
    color: var(--wieke-error) !important;
}


/* =========================================================
   9. VERMINDERDE BEWEGING
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .wieke-button:hover {
        transform: none;
    }
}