/*
 * Shared styles for the redesigned site (homepage, login, ...). Built from Figma "Dutna Design website".
 * Colours come only from semantic tokens in css/tokens.css. Scoped to <body class="site">.
 * Breakpoints: mobile < 768px, tablet 768–1023px, desktop >= 1024px.
 */

/* ---------- Local, non-colour design constants ---------- */
.site {
    --container-max: 1200px;
    --gutter: 20px;
    --section-pad-y: 56px;
    --radius-pill: 999px;
    /* Shadow tints from Figma (neutral/900 at low opacity). */
    --shadow-float: 0 20px 48px 0 rgba(15, 23, 41, 0.10);
    --shadow-toast: 0 16px 40px 0 rgba(15, 23, 41, 0.14);
    --shadow-soft: 0 12px 32px 0 rgba(15, 23, 41, 0.06);
}
@media (min-width: 768px) {
    .site { --gutter: 40px; --section-pad-y: 80px; }
}
@media (min-width: 1024px) {
    .site { --section-pad-y: 112px; }
}

/* ---------- Base ---------- */
.site,
.site *,
.site *::before,
.site *::after { box-sizing: border-box; }

.site {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.site h1, .site h2, .site h3, .site p, .site ul, .site ol { margin: 0; padding: 0; }
.site ul, .site ol { list-style: none; }
/* Non-production banner from the shared base (landing.css is not loaded here). */
.site .test-environment-banner { padding: 14px; text-align: center; font-size: 13px; font-weight: var(--font-weight-semibold); color: var(--text-primary); }
/* :where() keeps these resets at zero specificity so component classes (e.g. .btn--on-dark) win. */
:where(.site) a { color: inherit; text-decoration: none; }
:where(.site) button { font: inherit; }
.site img { max-width: 100%; display: block; }
.site svg { display: block; flex-shrink: 0; }

.site :focus-visible {
    outline: 3px solid var(--text-brand);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    background: var(--bg-inverse);
    color: var(--text-inverse);
    font-weight: var(--font-weight-semibold);
}
.skip-link:focus { top: 16px; }

.container {
    width: 100%;
    max-width: calc(var(--container-max) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad-y); }
.section--subtle { background: var(--bg-subtle); }
.section--page { background: var(--bg-page); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; color: var(--logo-default); }
.logo .logo__brand { fill: var(--icon-brand); }
.logo--wordmark svg { width: 121px; height: 26px; }
.logo--full svg { width: 121px; height: 49px; }

/* ---------- Button ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 14px 24px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    font-size: 16px;
    line-height: normal;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--bg-brand); color: var(--text-on-brand); }
.btn--primary:hover { box-shadow: inset 0 0 0 999px rgba(15, 23, 41, 0.06); }
.btn--secondary { background: var(--bg-page); border-color: var(--border-default); color: var(--text-primary); }
.btn--secondary:hover { border-color: var(--border-brand); background: var(--bg-subtle); }
.btn--on-dark { background: transparent; border-color: var(--border-inverse); color: var(--text-inverse); }
.btn--on-dark:hover { border-color: var(--text-inverse-secondary); }
.btn--block { width: 100%; }

/* ---------- Pill / badge ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-weight: var(--font-weight-semibold);
    font-size: 12px;
    line-height: normal;
    white-space: nowrap;
}
.tone-brand  { background: var(--bg-brand-subtle);   color: var(--text-brand); }
.tone-green  { background: var(--support-green-100); color: var(--support-green-700); }
.tone-purple { background: var(--support-purple-100); color: var(--support-purple-700); }
.tone-blue   { background: var(--support-blue-100);  color: var(--support-blue-700); }
.tone-empty  { background: var(--bg-muted); }

/* ---------- Section header ---------- */
.section-header { display: flex; flex-direction: column; gap: 12px; }
.section-header--center { align-items: center; text-align: center; }
.eyebrow {
    color: var(--text-brand);
    font-weight: var(--font-weight-bold);
    font-size: 12px;
    letter-spacing: 0.1em;
    line-height: normal;
    text-transform: uppercase;
}
.section-title {
    color: var(--text-primary);
    font-weight: var(--font-weight-extrabold);
    font-size: 30px;
    line-height: 1.18;
    letter-spacing: -0.02em;
}
.section-intro {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}
@media (min-width: 768px) {
    .section-header { gap: 16px; }
    .eyebrow { font-size: 13px; }
    .section-title { font-size: 38px; line-height: 1.15; }
    .section-intro { font-size: 18px; }
}
@media (min-width: 1024px) {
    .section-title { font-size: 44px; }
}

/* ---------- Site header / navigation ---------- */
/* Sticky header. home-nav.js adds .is-scrolled once the page moves, to separate it from content. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg-subtle);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--border-default), var(--shadow-soft); }
/* Keep anchor targets (e.g. #hoe-het-werkt) clear of the sticky header. home.css only loads on the homepage. */
html { scroll-padding-top: 96px; }
.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 16px;
}
.site-header .logo--full { display: none; }
.site-header .logo--wordmark svg { width: 96.8px; height: 20.8px; }
.site-nav, .site-header__actions { display: none; }

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-pill);
    background: var(--bg-page);
    color: var(--icon-on-brand);
    cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
    border-top: 1px solid var(--border-default);
    background: var(--bg-subtle);
    padding-block: 8px 24px;
    /* The header is sticky, so the open menu scrolls on its own if it outgrows the screen. */
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__links a {
    display: block;
    padding: 12px 0;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: 17px;
}
.mobile-menu__links a[aria-current="page"] { color: var(--text-primary); font-weight: var(--font-weight-semibold); }
.mobile-menu__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

@media (min-width: 1024px) {
    .site-header__bar { padding-block: 20px; }
    .site-header .logo--wordmark, .menu-toggle, .mobile-menu { display: none !important; }
    .site-header .logo--full { display: inline-flex; }
    .site-nav { display: block; }
    .site-nav ul { display: flex; gap: 36px; }
    .site-nav a {
        color: var(--text-secondary);
        font-weight: var(--font-weight-medium);
        font-size: 15px;
        line-height: normal;
    }
    .site-nav a:hover { color: var(--text-primary); }
    .site-nav a[aria-current="page"] { color: var(--text-primary); font-weight: var(--font-weight-semibold); }
    .site-header__actions { display: flex; gap: 12px; align-items: center; }
}

/* ---------- Schedule mockup (decorative) ---------- */
.schedule {
    position: relative;
    background: var(--bg-page);
    border-radius: 20px;
    box-shadow: var(--shadow-float);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.schedule__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.schedule__title { font-weight: var(--font-weight-bold); font-size: 16px; line-height: normal; color: var(--text-primary); }
.schedule__sub { font-weight: var(--font-weight-medium); font-size: 12px; line-height: normal; color: var(--text-secondary); margin-top: 2px; }
.schedule__sub-extra { display: none; }
.schedule__status { font-size: 11px; padding: 5px 10px; }
.schedule__status .dot { width: 6px; height: 6px; color: var(--support-green-700); }

.schedule__grid {
    display: grid;
    grid-template-columns: 58px repeat(5, minmax(0, 1fr));
    column-gap: 5px;
    row-gap: 6px;
    align-items: center;
}
.schedule__day {
    text-align: center;
    color: var(--text-muted);
    font-weight: var(--font-weight-semibold);
    font-size: 11px;
    line-height: normal;
}
.schedule__name { font-weight: var(--font-weight-semibold); font-size: 12px; line-height: normal; color: var(--text-primary); }
.shift {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 7px;
    font-weight: var(--font-weight-semibold);
    font-size: 10px;
    line-height: normal;
    white-space: nowrap;
}
/* Weekend columns only appear on wider screens (as in the desktop frame). */
.schedule__grid .is-weekend { display: none; }

.toast {
    position: absolute;
    left: -6px;
    bottom: -28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    border-radius: 14px;
    background: var(--bg-page);
    box-shadow: var(--shadow-toast);
}
.toast__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
}
.toast__icon svg { width: 16px; height: 16px; }
.toast__title { font-weight: var(--font-weight-bold); font-size: 13px; line-height: normal; color: var(--text-primary); white-space: nowrap; }
.toast__body { font-weight: var(--font-weight-medium); font-size: 11px; line-height: normal; color: var(--text-secondary); margin-top: 1px; white-space: nowrap; }

@media (min-width: 768px) {
    .schedule { border-radius: 24px; padding: 24px; gap: 20px; }
    .schedule__title { font-size: 18px; }
    .schedule__sub { font-size: 13px; }
    .schedule__sub-extra { display: inline; }
    .schedule__status { font-size: 12px; padding: 6px 12px; }
    .schedule__status .dot { width: 7px; height: 7px; }
    .schedule__grid { grid-template-columns: 84px repeat(7, minmax(0, 1fr)); column-gap: 6px; row-gap: 8px; }
    .schedule__grid .is-weekend { display: flex; }
    .schedule__grid .schedule__day.is-weekend { display: block; }
    .schedule__day { font-size: 12px; }
    .schedule__name { font-size: 13px; }
    .shift { height: 38px; border-radius: 8px; font-size: 11px; }
    .toast { left: -60px; bottom: -26px; gap: 12px; padding: 14px 20px 14px 16px; border-radius: 16px; }
    .toast__icon { width: 40px; height: 40px; }
    .toast__icon svg { width: 20px; height: 20px; }
    .toast__title { font-size: 14px; }
    .toast__body { font-size: 12px; margin-top: 2px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .toast { left: -24px; }
}

/* ---------- CTA band ---------- */
.cta-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 24px;
    border-radius: 24px;
    background: var(--bg-inverse);
    text-align: center;
}
.cta-band__title {
    max-width: 800px;
    color: var(--text-inverse);
    font-weight: var(--font-weight-extrabold);
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.cta-band__text { max-width: 620px; color: var(--text-inverse-secondary); font-size: 16px; line-height: 1.55; }
.cta-band__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; padding-top: 8px; }
.cta-band__actions .btn { width: 100%; }
@media (min-width: 768px) {
    .cta-band { gap: 24px; padding: 72px 48px; border-radius: 32px; }
    .cta-band__title { font-size: 44px; }
    .cta-band__text { font-size: 19px; }
    .cta-band__actions { flex-direction: row; justify-content: center; gap: 12px; width: auto; padding-top: 12px; }
    .cta-band__actions .btn { width: auto; }
}
@media (min-width: 1024px) {
    .cta-band { padding: 88px 80px; }
    /* Figma wraps this title after "eerlijker"; browser text runs slightly narrower. */
    .cta-band__title { font-size: 52px; max-width: 720px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-page); padding-block: 24px 40px; }
.site-footer__top { display: flex; flex-direction: column; gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__tagline { max-width: 300px; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 24px; }
.site-footer__heading { color: var(--text-primary); font-weight: var(--font-weight-bold); font-size: 14px; line-height: normal; margin-bottom: 12px; }
.site-footer__cols ul { display: flex; flex-direction: column; gap: 12px; }
.site-footer__cols a, .site-footer__bottom a { transition: color .15s ease; }
.site-footer__cols a { color: var(--text-secondary); font-size: 15px; line-height: normal; }
.site-footer__cols a:hover { color: var(--text-primary); }
.site-footer__divider { height: 1px; border: 0; margin: 32px 0 24px; background: var(--border-default); }
.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: normal;
}
.site-footer__bottom a:hover { color: var(--text-secondary); }
.site-footer__sep { margin-inline: 8px; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (min-width: 768px) {
    .site-footer__top { flex-direction: row; justify-content: space-between; }
    .site-footer__cols { gap: 64px; justify-content: end; }
    .site-footer__divider { margin: 40px 0; }
    .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
    .site-footer__cols { gap: 96px; }
}

/* ---------- Mobile-only tuning (< 768px) ---------- */
@media (max-width: 767px) {
    .cta-band { padding: 40px 24px; }
    .cta-band__title { font-size: 30px; }
    .cta-band__text { font-size: 15px; }

    .site-footer { padding-block: 0 32px; }
    .site-footer__top { gap: 24px; }
    .site-footer__brand { gap: 12px; }
    .site-footer__tagline { max-width: none; font-size: 14px; }
    .site-footer__heading { font-size: 13px; margin-bottom: 10px; }
    .site-footer__cols ul { gap: 10px; }
    .site-footer__cols a { font-size: 14px; }
    .site-footer__divider { margin: 24px 0 16px; }
    .site-footer__bottom { font-size: 11px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .site * { transition: none !important; }
}
