/*base elements*/

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

html, body {
    height: 100%;
    font-size: 1rem;
    line-height: 1.6;
    background: var(--cream);
    color: #222;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/*typography*/

html, body, button  {
    font-family: var(--sans);
}

/* Navigatie, knoppen en pillen */
.nav-list, .item a,
.hero-btn, .footer-cta,
.chapter-pill, .team-foot a, .contact-jobs,
.products-index a, .blog-types a, .blog-tagfilter a, .blog-filters-reset, .blog-pages,

    /* Kleine labels boven of onder iets */
.hero-tagline, .rem-reach-lead,
.chapter-kind, .chapter-facts dd,
.trust-norm-name, .trust-quote-by,
.ow-tab-name,
.team-item ul,
.contact-info-label, .field label,
.ticker-card-meta,

    /* Metadata bij artikelen */
time, .post-meta, .post-back, .count,

    /* Footer: kleine lettertjes en de merkzin */
.footer-tagline, .footer-list, .footer-address, .footer-bottom,

    /* Code */
code, pre, kbd, samp {
    font-family: var(--mono);
}

/*scrollbar*/
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 111, 130, 0.3) transparent;
}

*::-webkit-scrollbar {
    width: 4px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(11, 111, 130, 0.3);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(11, 111, 130, 0.6);
}

main,
footer {
    position: relative;
    z-index: 2;
}

/*icons*/
:where(.icon) {
    width: 1em;            /* scales with font-size; override per context */
    height: 1em;
    flex: none;
    fill: none;            /* sprite shapes set their own fill where needed */
    stroke: currentColor;
    vertical-align: -0.125em;
}

/* Hover / keyboard focus on anything interactive fills the icons inside it */
@media (hover: hover) {
    :where(a, button, summary, [role="button"]):hover .icon { --icon-filled: 1; }
}
:where(a, button, summary, [role="button"]):focus-visible .icon { --icon-filled: 1; }

/* Opt-in states, no hover needed */
.icon.is-filled,
:is([aria-current], [aria-pressed="true"], .is-active) > .icon { --icon-filled: 1; }

/* Opt-out */
.icon.no-fill { --icon-filled: 0 !important; }

@media (hover: hover) {
    .icon:hover { --icon-filled: 1; }
    :where(a, button, summary, [role="button"], .contact-address, .team-item):hover .icon { --icon-filled: 1; }
    :where(a, button, summary, [role="button"], .contact-address, .team-item, .trust-norms li):hover .icon { --icon-filled: 1; }

}

/*utilities*/
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/*dark page shell*/
/* Team, vacatures, blog, contact. A new dark page: add its body class to both lists. */
html:has(> body:is(.team, .vacature, .blog, .contact)) {
    height: auto;
    min-height: 100%;
    background: var(--rem-bg);
}

body:is(.team, .vacature, .blog, .contact) {
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    color: var(--cream);
    background: var(--rem-bg);
}

.team-main,
.werk-main,
.blog-main,
.contact-main {
    flex: 1;
    width: 100%;
    margin-top: var(--nav-offset, var(--navbar-height));
    box-sizing: border-box;
}

.team-main,
.werk-main,
.blog-main {
    padding: clamp(1.75rem, 4vw, 3rem) 0 calc(11vw + clamp(2rem, 4vw, 3rem));   /* room above the footer landscape */
}

.team-wrap,
.vacature-container,
.blog-wrap {
    width: min(var(--content-max), 100% - 2 * var(--page-gutter));
    margin-inline: auto;
}

/* Page title and the lead text under it */
.team-head h1,
h1.title,
.blog-head h1,
.products-title {
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.team-head p,
p.lead,
.products-lead {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--cream-dim);
}

/* Keyboard focus on the dark pages. :where keeps it easy to override per component. */
:where(.team-main, .werk-main, .blog-main, .contact-main, .products) :where(a, button):focus-visible {
    outline: 3px solid var(--koraal);
    outline-offset: 4px;
}

/*pill sweep*/
/* Pill buttons with a fill that slides in from the left.
   Per button: --sweep = fill colour (default cream), --sweep-time = duration (default 0.4s). */
.chapter-pill, .team-foot a,
.contact-submit, .map-directions, .contact-jobs,
.ow-cta, .footer-cta {
    position: relative;
    z-index: 0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    text-decoration: none;
}

.chapter-pill::before, .team-foot a::before,
.contact-submit::before, .map-directions::before, .contact-jobs::before,
.ow-cta::before, .footer-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--sweep, var(--cream));
    transform: translateX(-101%);
    transition: transform var(--sweep-time, 0.4s) var(--ease-sweep);
}

.chapter-pill:is(:hover, :focus-visible)::before, .team-foot a:is(:hover, :focus-visible)::before,
.contact-submit:is(:hover, :focus-visible)::before, .map-directions:is(:hover, :focus-visible)::before,
.contact-jobs:is(:hover, :focus-visible)::before,
.ow-cta:is(:hover, :focus-visible)::before, .footer-cta:is(:hover, :focus-visible)::before {
    transform: none;
}

/* Cream outline pill on dark pages (producten, team) */
.chapter-pill,
.team-foot a {
    gap: 0.5em;
    padding: 0.6em 1.15em;
    border: 1.5px solid rgba(244, 240, 234, 0.5);
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cream);
    transition: color 0.15s ease 0.1s, border-color 0.2s var(--ease-soft);
}
.chapter-pill:is(:hover, :focus-visible),
.team-foot a:is(:hover, :focus-visible) {
    border-color: var(--cream);
    color: var(--rem-bg);
}
.chapter-pill svg,
.team-foot a svg { transition: transform 0.25s var(--ease-soft); }
.chapter-pill:hover svg,
.team-foot a:hover svg { transform: translate(2px, -2px); }

@media (prefers-reduced-motion: reduce) {
    .chapter-pill, .chapter-pill::before, .chapter-pill svg,
    .team-foot a, .team-foot a::before, .team-foot a svg { transition: none; }
}
