/* =========================================================
   Texelcadeau.nl — statische site
   ========================================================= */

:root {
    --orange:        #EF6D00;
    --orange-dark:   #DE6906;
    --green:         #1E4543;
    --green-light:   #2C605D;
    --purple:        #290E62;
    --ink:           #1E4543;
    --body:          #4A5A59;
    --muted:         #7C8B8A;
    --line:          #E3E8E7;
    --bg:            #FFFFFF;
    --bg-soft:       #F6F8F8;

    --wrap:          1200px;
    --radius:        10px;
    --radius-lg:     16px;
    --shadow:        0 4px 24px rgba(30, 69, 67, .08);
    --shadow-hover:  0 12px 34px rgba(30, 69, 67, .16);
    --header-h:      86px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; }

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

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

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

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__intro { max-width: 760px; margin-bottom: 44px; }
.section__intro--center { margin-inline: auto; text-align: center; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: #fff; padding: 12px 20px; z-index: 999;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1f1f1; color: var(--ink); }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.header__inner {
    display: flex; align-items: center; gap: 24px;
    min-height: var(--header-h);
}
.header__logo { flex: 0 0 auto; }
.header__logo img { height: 58px; width: auto; }

.nav { margin-left: auto; }
.nav__list {
    display: flex; align-items: center; gap: 4px;
    margin: 0; padding: 0; list-style: none;
}
.nav__link {
    display: block;
    padding: 10px 14px;
    color: var(--ink);
    font-weight: 600;
    border-radius: 4px;
}
.nav__link:hover { color: var(--orange); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--orange); }
.nav__cta { margin-left: 10px; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 46px; height: 46px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block; position: relative;
    width: 22px; height: 2px; margin-inline: auto;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 12px 24px 20px;
    }
    .nav.is-open { display: block; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav__cta { margin: 16px 0 0; }
    .nav__cta .btn { display: block; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--purple) url("../images/blob-paars-donker-rij.svg") center/cover no-repeat;
    color: #fff;
    padding: 76px 0;
}
.hero__grid {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 56px; align-items: center;
}
.hero__title { color: #fff; margin-bottom: .5em; }
.hero__text { color: rgba(255,255,255,.9); font-size: 1.075rem; max-width: 48ch; }
.hero__figure img { border-radius: var(--radius-lg); box-shadow: 0 18px 44px rgba(0,0,0,.28); }

@media (max-width: 860px) {
    .hero { padding: 52px 0; }
    .hero__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Page header (interior pages) ---------- */
.pagehead {
    background: var(--purple) url("../images/blob-paars-tekst.svg") center/cover no-repeat;
    color: #fff;
    padding: 56px 0;
}
.pagehead h1 { color: #fff; margin-bottom: .35em; }
.pagehead p { color: rgba(255,255,255,.9); max-width: 62ch; margin: 0; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .875rem; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--orange); }

/* ---------- Category / provider grids ---------- */
.grid { display: grid; gap: 28px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1040px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  {
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

/* Category tile — image with gradient + title, as on the original site */
.tile {
    position: relative; display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    color: #fff;
    background: var(--green);
}
.tile:hover { text-decoration: none; color: #fff; }
.tile img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .45s ease;
}
.tile:hover img { transform: scale(1.06); }
.tile__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, var(--green) 100%);
}
.tile__body {
    position: absolute; inset-inline: 0; bottom: 0;
    padding: 24px 22px;
}
.tile__title { color: #fff; font-size: 1.3rem; margin: 0 0 14px; }
.tile__cta {
    display: inline-block;
    background: var(--orange); color: #fff;
    padding: 8px 22px 10px;
    border-radius: 4px;
    font-size: .95rem; font-weight: 600;
}
.tile:hover .tile__cta { background: var(--orange-dark); }

/* Provider card */
.card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
/* De afbeelding absoluut positioneren, anders bepaalt haar eigen verhouding
   de hoogte van het kader en worden de kaarten ongelijk (800x534 naast 640x640). */
.card__media {
    position: relative;
    aspect-ratio: 10 / 9;
    overflow: hidden;
    background: var(--bg-soft);
}
.card__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card__cat {
    font-size: .78rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}
.card__title { font-size: 1.2rem; margin-bottom: 10px; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--orange); text-decoration: none; }
.card__text { font-size: .95rem; margin-bottom: 20px; }
.card__text p { margin: 0; }
.card__foot { margin-top: auto; }

/* ---------- Featured ---------- */
.featured {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.featured__media { min-height: 340px; }
.featured__media img { width: 100%; height: 100%; object-fit: cover; }
.featured__body { padding: 48px; align-self: center; }
@media (max-width: 860px) {
    .featured { grid-template-columns: 1fr; }
    .featured__body { padding: 32px 26px; }
    .featured__media { min-height: 220px; }
}

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }
.benefit { text-align: center; }
.benefit img { width: 54px; margin: 0 auto 18px; }
.benefit h3 { font-size: 1.1rem; margin-bottom: .4em; }
.benefit p { font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 0 58px;
    margin-bottom: 22px;
}
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--orange); color: #fff;
    border-radius: 50%;
    font-weight: 700;
}

/* ---------- Prose (long-form content) ---------- */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; }

/* ---------- FAQ accordion ---------- */
.faq-group + .faq-group { margin-top: 52px; }
.faq {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq[open] { box-shadow: var(--shadow); }
.faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px;
    font-weight: 600; color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: "";
    flex: 0 0 auto;
    width: 10px; height: 10px;
    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s ease;
}
.faq[open] .faq__q::after { transform: rotate(-135deg) translateY(-3px); }
.faq__a { padding: 0 22px 20px; }
.faq__a p:first-child { margin-top: 0; }

/* ---------- Provider detail ---------- */
.provider-hero { position: relative; background: var(--green); }
.provider-hero img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; }

.provider-head {
    display: flex; align-items: center; gap: 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px 32px;
    margin-top: -64px;
    position: relative;
}
.provider-head__logo {
    flex: 0 0 auto;
    width: 130px; height: 130px;
    display: grid; place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
}
.provider-head__logo img { max-height: 100%; object-fit: contain; }
.provider-head__body { flex: 1 1 auto; }
.provider-head h1 { margin-bottom: .25em; }
.provider-head__meta {
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    font-size: .95rem; color: var(--muted);
}
.provider-head__meta a { color: var(--muted); text-decoration: underline; }
.provider-head__meta a:hover { color: var(--orange); }
@media (max-width: 700px) {
    .provider-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: -40px; padding: 24px; }
}

.provider-layout {
    display: grid; grid-template-columns: 1.15fr .85fr;
    gap: 48px; align-items: start;
}
@media (max-width: 900px) { .provider-layout { grid-template-columns: 1fr; gap: 32px; } }

.order-box {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: sticky; top: calc(var(--header-h) + 20px);
}
.order-box h2 { font-size: 1.35rem; }
.order-box__note { font-size: .875rem; color: var(--muted); margin-top: 18px; }
@media (max-width: 900px) { .order-box { position: static; } }

/* ---------- Contact / CTA band ---------- */
.band {
    background: var(--green);
    color: #fff;
    padding: 56px 0;
    text-align: center;
}
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.88); max-width: 60ch; margin-inline: auto; }
.band__actions { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Notice ---------- */
.notice {
    background: #FFF6EE;
    border: 1px solid #F6D3B4;
    border-left: 4px solid var(--orange);
    border-radius: var(--radius);
    padding: 22px 26px;
}
.notice h3 { margin-bottom: .4em; font-size: 1.05rem; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Definition list (contact details) ---------- */
.details { margin: 0; }
.details div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.details div:last-child { border-bottom: 0; }
.details dt { flex: 0 0 120px; font-weight: 600; color: var(--ink); }
.details dd { margin: 0; }

/* ---------- Footer ---------- */
.footer {
    background: var(--green);
    color: rgba(255,255,255,.82);
    padding: 64px 0 0;
}
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color: #fff; }
.footer__grid {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.footer__logo img { height: 96px; width: auto; margin-bottom: 18px; }
.footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 1em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.16);
    padding: 22px 0;
    font-size: .875rem;
}
.footer__bottom p { margin: 0; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-lg { margin-top: 40px; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Carrousel "Geschikt voor..." ---------- */
.carousel { position: relative; margin-top: 8px; }

.carousel__track {
    display: flex;
    gap: 24px;
    margin: 0;
    /* kleine padding zodat de kaartschaduw niet wordt afgekapt */
    padding: 6px 6px 26px;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    /* zodat snappen de padding voor de kaartschaduw niet wegscrollt */
    scroll-padding-inline: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }

/* vaste breedte per kaart: procentuele flex-basis maakt de scrollberekening
   afhankelijk van de containerbreedte en dat gaat mis binnen een scroller */
.carousel__item {
    flex: 0 0 272px;
    scroll-snap-align: start;
}
@media (max-width: 900px) { .carousel__item { flex-basis: 60vw; } }
@media (max-width: 560px) { .carousel__item { flex-basis: 76vw; } }

.carousel__nav {
    position: absolute; top: 50%; z-index: 2;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    display: grid; place-items: center;
    padding: 0 0 4px;
    font-size: 1.9rem; line-height: 1;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
.carousel__nav:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.carousel__nav[hidden] { display: none; }
.carousel__nav--prev { left: -18px; }
.carousel__nav--next { right: -18px; }
@media (max-width: 700px) {
    .carousel__nav--prev { left: 2px; }
    .carousel__nav--next { right: 2px; }
}

/* subtitel binnen een tegel */
.tile__sub {
    display: block;
    font-size: .9rem;
    line-height: 1.5;
    color: rgba(255,255,255,.9);
    margin-bottom: 16px;
}
