/* ==========================================================================
   Ovanta Jobs
   Kleuren en lettertypes kun je bovenaan in :root aanpassen.
   ========================================================================== */

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/outfit-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #0e1512;
    --bg-raise: #131d18;
    --bg-input: #0a100d;
    --line: #22312a;
    --line-strong: #34493d;
    --text: #edf4ef;
    --muted: #9fb2a6;
    --green: #2fcb6b;
    --green-tint: rgba(47, 203, 107, 0.12);
    --on-green: #06120b;
    --danger: #ff8577;
    --danger-tint: rgba(255, 133, 119, 0.09);

    --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --wrap: 1120px;
    --radius: 12px;
    color-scheme: dark;
}

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

html {
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--green-tint); color: var(--text); }

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: 24px;
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 60ch;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--green);
    color: var(--on-green);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.btn-primary {
    background: linear-gradient(135deg, #1fb55a, #7fd94a);
    color: var(--on-green);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { filter: grayscale(0.6) brightness(0.8); cursor: progress; }
.btn-ghost {
    border-color: var(--line-strong);
    color: var(--text);
    background: transparent;
}
.btn-ghost:hover { border-color: var(--green); background: var(--green-tint); }
.btn-block { display: flex; width: 100%; }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(14, 21, 18, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 40px; width: auto; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 500;
}
.main-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.main-nav a:hover { color: var(--text); background: var(--bg-raise); }
.main-nav .nav-external {
    color: var(--text);
    border: 1px solid var(--line-strong);
    margin-left: 6px;
}
.main-nav .nav-external:hover { border-color: var(--green); background: var(--green-tint); }

@media (max-width: 640px) {
    .main-nav a:not(.nav-external) { display: none; }
    .brand img { height: 34px; }
}

/* ---------- Hero ---------- */

.hero { padding: 72px 0 80px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: center;
}
.hero-copy h1 { max-width: 14ch; margin-bottom: 0.4em; }

.status-panel {
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
}
.status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.status-head h2 {
    margin: 0;
    font-size: 1.15rem;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 10px;
    border-radius: 999px;
    background: var(--green-tint);
    color: var(--green);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}
.dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(47, 203, 107, 0.16);
}
@media (prefers-reduced-motion: no-preference) {
    .pill .dot { animation: pulse 2.4s ease-in-out infinite; }
    @keyframes pulse {
        0%, 100% { box-shadow: 0 0 0 3px rgba(47, 203, 107, 0.16); }
        50% { box-shadow: 0 0 0 7px rgba(47, 203, 107, 0); }
    }
}
.status-list { list-style: none; }
.status-list li { border-top: 1px solid var(--line); }
.status-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    text-decoration: none;
    transition: color 0.15s ease;
}
.status-list a:hover .status-name { color: var(--green); }
.status-name { flex: 1; font-weight: 500; }
.status-count { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 899px) {
    .hero { padding: 48px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section-alt {
    background: var(--bg-raise);
    border-block: 1px solid var(--line);
}
.section-head { margin-bottom: 32px; }
.section-head h2 { margin-bottom: 0.3em; }
.section-head p { color: var(--muted); max-width: 60ch; margin: 0; }

/* ---------- Filters ---------- */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.filters a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--font-head);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.filters a:hover { color: var(--text); border-color: var(--green); }
.filters a[aria-current] {
    color: var(--text);
    border-color: var(--green);
    background: var(--green-tint);
}
.filters .count { color: var(--muted); font-size: 0.9rem; }
.filters a[aria-current] .count { color: var(--green); }

.result-count {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---------- Job list ---------- */

.job-list {
    list-style: none;
    border-top: 1px solid var(--line);
}
.job-list > li { border-bottom: 1px solid var(--line); }

.job {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding: 28px 20px;
    margin-inline: -20px;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background-color 0.15s ease;
}
.job:hover { background: var(--bg-raise); }
.job-title {
    margin: 0;
    font-size: 1.5rem;
    transition: color 0.15s ease;
}
.job:hover .job-title { color: var(--green); }
.job-full {
    display: inline-block;
    margin-left: 8px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
}
.job-teaser {
    margin: 6px 0 0;
    color: var(--muted);
    max-width: 58ch;
}
.job-meta {
    list-style: none;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.job-meta li:first-child { color: var(--text); font-weight: 500; }
.job-cta {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--green);
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
    transition: text-decoration-color 0.15s ease;
}
.job:hover .job-cta { text-decoration-color: currentColor; }

.job-list-compact .job { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; padding-block: 18px; }
.job-list-compact .job-title { font-size: 1.15rem; }

@media (max-width: 800px) {
    .job {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 16px;
        margin-inline: -16px;
    }
    .job-meta { display: flex; flex-wrap: wrap; gap: 0 16px; }
    .job-meta li:first-child { font-weight: 500; }
    .job-title { font-size: 1.3rem; }
    .job-full { display: block; margin-left: 0; }
}

/* ---------- Steps and values ---------- */

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    counter-reset: stap;
}
.steps li {
    counter-increment: stap;
    padding-top: 20px;
    border-top: 2px solid var(--line-strong);
}
.steps li::before {
    content: counter(stap);
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--green);
}
.steps p, .values p { color: var(--muted); margin: 0; }

.values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}
.values > div { padding-left: 20px; border-left: 2px solid var(--line-strong); }

@media (max-width: 800px) {
    .section { padding: 56px 0; }
    .steps, .values { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Vacature-pagina ---------- */

.job-hero { padding: 40px 0 8px; }
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.95rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.job-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 0.15em; }
.job-subtitle {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--muted);
}

.job-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 72px;
    align-items: start;
    padding-block: 40px 72px;
}
.job-body { max-width: 68ch; }
.job-body .lead { margin-bottom: 40px; color: var(--text); font-size: 1.25rem; }
.job-body h2 { font-size: 1.6rem; margin: 40px 0 16px; }

.checklist { list-style: none; }
.checklist li {
    position: relative;
    padding: 0 0 12px 28px;
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(47, 203, 107, 0.16);
}

.job-facts {
    position: sticky;
    top: 96px;
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
}
.job-facts h2 { font-size: 1.15rem; margin-bottom: 16px; }
.job-facts dl { margin: 0 0 24px; }
.job-facts dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.job-facts dt { color: var(--muted); font-size: 0.9rem; }
.job-facts dd { margin: 0; font-weight: 500; }

@media (max-width: 900px) {
    .job-layout { grid-template-columns: 1fr; gap: 32px; padding-block: 24px 56px; }
    .job-facts { position: static; order: -1; }
}

/* ---------- Formulier ---------- */

.apply {
    padding: 72px 0 96px;
    background: var(--bg-raise);
    border-top: 1px solid var(--line);
}
.apply-wrap { max-width: 860px; margin-inline: 0; }
@media (min-width: 1200px) {
    .apply-wrap { margin-left: max(24px, calc((100% - var(--wrap)) / 2)); }
}

.apply-form { margin-top: 8px; }
.group {
    border: 0;
    margin: 0 0 40px;
    padding: 0;
    min-width: 0;
}
.group legend {
    display: block;
    width: 100%;
    padding: 0 0 16px;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 650;
}
.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
}
.field { grid-column: 1 / -1; min-width: 0; }
.field-half { grid-column: auto; }
@media (max-width: 640px) {
    .field-half { grid-column: 1 / -1; }
    .apply { padding: 48px 0 64px; }
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.97rem;
    line-height: 1.4;
}
.opt { color: var(--muted); font-weight: 400; }
.help {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder { color: #6f8478; }
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: #4a6656; }
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(47, 203, 107, 0.22);
}
.field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239fb2a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.field select:invalid { color: #6f8478; }
.field select option { color: var(--text); background: var(--bg-raise); }

.file-input {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--bg-input);
    color: var(--muted);
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    font: inherit;
    font-size: 0.95rem;
}
.file-input::file-selector-button {
    margin-right: 14px;
    padding: 9px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg-raise);
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}
.file-input:hover { border-color: var(--green); }
.file-input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.has-error input[type="text"],
.has-error input[type="email"],
.has-error input[type="tel"],
.has-error textarea,
.has-error select,
.has-error .file-input { border-color: var(--danger); }
.error {
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 0.92rem;
}

.alert {
    margin-bottom: 36px;
    padding: 18px 22px;
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    background: var(--danger-tint);
}
.alert p { margin: 0 0 8px; }
.alert ul { margin: 0; padding-left: 20px; }
.alert li { margin-bottom: 4px; }
.alert a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.alert:focus { outline: none; }

.consent { margin-bottom: 32px; }
.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.5;
}
.check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--green);
}
.consent .help { margin: 8px 0 0 32px; }
.consent .error { margin-left: 32px; }

.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.form-actions .help { margin: 0; }
.form-actions .btn { min-width: 240px; padding: 16px 28px; }
@media (max-width: 640px) {
    .form-actions .btn { width: 100%; }
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Bedankt / 404 ---------- */

.thanks { padding: 88px 0 104px; }
.thanks-wrap { max-width: 760px; margin-inline: auto; }
.thanks-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green);
}
.thanks h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.thanks .lead strong { color: var(--text); font-weight: 600; }
.next-steps {
    margin-top: 40px;
    padding-left: 20px;
    border-left: 2px solid var(--green);
}
.next-steps h2 { font-size: 1.25rem; margin-bottom: 8px; }
.next-steps p { color: var(--muted); margin: 0; }
.thanks .job-list { margin-top: 32px; }

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 0;
    padding: 64px 0 28px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 1fr 1fr;
    gap: 40px;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
}
.footer-brand p { margin: 12px 0 0; color: var(--muted); }
.footer-col h2 {
    margin: 0 0 14px;
    font-size: 1rem;
    color: var(--text);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.97rem;
    transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
