/*
 * SWO Spijkenisse – mogelijkheden archive.
 */

/* ---------- Hero ---------- */
/* Zelfde ontwerp als de homepage-hero (basic-hero.css, ontwerp B, 15-10-2026): licht vlak #FBF4EC met donkere tekst,
   de foto rechts tot aan de schermrand met een ronde linkerkant en een zachte oranje cirkel bovenaan. */
.mogelijkheden-hero { --hero-foto: clamp(380px, 46vw, 860px); position: relative; overflow: hidden; min-height: 440px; background: #FBF4EC; }
.mogelijkheden-hero::after { position: absolute; z-index: 0; top: -80px; right: calc(var(--hero-foto) - 120px); width: 230px; height: 230px; content: ""; background: #FCE3CB; border-radius: 50%; pointer-events: none; }
.mogelijkheden-hero__inner { position: relative; z-index: 1; min-height: 440px; }
.mogelijkheden-hero__content { position: relative; z-index: 3; width: 100%; max-width: min(640px, calc(100vw - var(--hero-foto) - 64px - (100vw - 100%) / 2)); padding: 48px 0 116px; }
.mogelijkheden-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 15px; color: var(--swo-color-text); font-size: 17px; line-height: 1.5; }
.mogelijkheden-breadcrumbs a { color: var(--swo-color-primary-dark); font-weight: 600; text-decoration: none; }
.mogelijkheden-breadcrumbs a:hover { color: var(--swo-color-heading); text-decoration: none; }
.mogelijkheden-breadcrumbs a:focus-visible { outline: 3px solid var(--swo-color-focus); outline-offset: 3px; }
.mogelijkheden-breadcrumbs__separator { color: var(--swo-color-primary-dark); }
.mogelijkheden-hero__title { margin: 0; color: var(--swo-color-heading); font-size: clamp(40px, 4vw, 54px); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.mogelijkheden-hero__intro { max-width: 610px; margin: 16px 0 0; color: #394452; font-size: 19px; line-height: 1.6; }
.mogelijkheden-hero__media { position: absolute; z-index: 1; top: 0; right: calc((100vw - 100%) / -2); bottom: 0; width: var(--hero-foto); overflow: hidden; background: #EEE8E1; border-radius: 9999px 0 0 9999px; }
.mogelijkheden-hero__image { display: block; width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: center; }

/* ---------- Hero search ---------- */
/* Het zoekveld van de hele site (.swo-zoeken__field in zoeken.css), met preview tijdens het typen. */
.mogelijkheden-hero__search-wrap { position: absolute; z-index: 6; right: 0; bottom: 34px; left: 0; pointer-events: none; }
.mogelijkheden-hero__search-wrap .site-container { pointer-events: none; }
.mogelijkheden-hero__search { width: 100%; max-width: min(620px, calc(100vw - var(--hero-foto) - 64px - (100vw - 100%) / 2)); margin: 0; pointer-events: auto; }

/* ---------- Overview ---------- */
/* Licht achtergrondmotief achter de kaarten, net als op de activiteitenpagina (--swo-motif in main.css); de hero blijft effen. */
.mogelijkheden-overview { padding: 56px 0 84px; background-color: var(--swo-color-background-soft); background-image: var(--swo-motif); background-size: var(--swo-motif-size); background-position: var(--swo-motif-position); }
.mogelijkheden-overview__top { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 18px; }
.mogelijkheden-filter__count { margin: 0; color: var(--swo-color-text); font-size: 18px; line-height: 1.4; white-space: nowrap; }

/* ---------- Grid ---------- */
.mogelijkheden-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mogelijkheid-card { min-width: 0; height: 100%; }
.mogelijkheid-card__link { position: relative; overflow: hidden; display: flex; height: 100%; flex-direction: column; color: var(--swo-color-heading); background: var(--swo-color-card); border: 1px solid #D8D8D8; border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.mogelijkheid-card__link::before { position: absolute; z-index: 4; top: 0; right: 0; left: 0; height: 6px; content: ""; background: var(--dienst-color, var(--swo-color-primary-dark)); }
.mogelijkheid-card__link:hover { color: var(--swo-color-heading); border-color: var(--dienst-color, var(--swo-color-primary-dark)); box-shadow: 0 8px 24px rgba(0, 0, 0, .11); transform: translateY(-4px); text-decoration: none; }
.mogelijkheid-card__link:focus-visible { outline: 3px solid var(--swo-color-focus); outline-offset: 4px; }

/* ---------- Card image ---------- */
.mogelijkheid-card__media { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 7; background: #EDEAE5; }
.mogelijkheid-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.mogelijkheid-card__link:hover .mogelijkheid-card__image { transform: scale(1.03); }
.mogelijkheid-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #F2EEE8 0%, #E6E0D8 100%); }

/* ---------- Card content ---------- */
.mogelijkheid-card__content { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 16px; min-height: 176px; flex: 1; padding: 20px 22px 18px; }
.mogelijkheid-card__icon { position: relative; z-index: 3; grid-column: 1; grid-row: 1 / span 3; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-top: -49px; color: var(--swo-color-white); background: var(--dienst-color, var(--swo-color-primary-dark)); border: 4px solid var(--swo-color-card); border-radius: 50%; box-shadow: 0 3px 10px rgba(0, 0, 0, .12); }
.mogelijkheid-card__icon svg { display: block; width: 30px; height: 30px; }
.mogelijkheid-card__icon .kami-icon { width: 30px; height: 30px; }
.mogelijkheid-card__icon .dashicons { width: 30px; height: 30px; font-size: 30px; line-height: 1; }
.mogelijkheid-card__title { grid-column: 2; grid-row: 1; align-self: start; margin: 0; color: var(--swo-color-heading); font-size: 21px; line-height: 1.2; font-weight: 700; text-wrap: balance; }
.mogelijkheid-card__description { grid-column: 2; grid-row: 2; margin: 7px 0 0; color: var(--swo-color-text); font-size: 17px; line-height: 1.45; }
.mogelijkheid-card__more { display: inline-flex; grid-column: 2; grid-row: 3; align-self: end; align-items: center; justify-self: start; gap: 8px; margin-top: 12px; color: var(--dienst-color, var(--swo-color-primary-dark)); font-size: 17px; line-height: 1.3; font-weight: 700; }
.mogelijkheid-card__arrow { display: block; width: 22px; height: 22px; flex: 0 0 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px 22px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px 22px no-repeat; transition: transform .2s ease; }
.mogelijkheid-card__link:hover .mogelijkheid-card__arrow { transform: translateX(4px); }

/* ---------- Empty state ---------- */
.mogelijkheden-overview__empty { margin: 28px 0 0; padding: 24px; color: var(--swo-color-text); background: var(--swo-color-card); border: 1px solid #D8D8D8; border-radius: 12px; font-size: 18px; line-height: 1.6; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
	/* Smal: de foto over de volle breedte met een ronde hoek linksonder (zoals de homepage-hero). */
	.mogelijkheden-hero { min-height: 0; }
	.mogelijkheden-hero::after { display: none; }
	.mogelijkheden-hero__inner { min-height: 0; }
	.mogelijkheden-hero__content { width: 100%; max-width: none; padding: 44px 0 32px; }
	.mogelijkheden-hero__media { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: 100vw; height: 320px; margin-left: calc(50% - 50vw); border-radius: 0 0 0 140px; }
	.mogelijkheden-hero__image { width: 100%; height: 320px; min-height: 0; object-position: center; }
	.mogelijkheden-hero__search-wrap { position: relative; right: auto; bottom: auto; left: auto; padding: 22px 0 30px; }
	.mogelijkheden-hero__search-wrap .site-container { pointer-events: auto; }
	.mogelijkheden-hero__search { width: 100%; max-width: none; }
	.mogelijkheden-overview { padding-top: 44px; }
	.mogelijkheden-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
	.mogelijkheden-hero__content { padding: 36px 0 26px; }
	.mogelijkheden-breadcrumbs { margin-bottom: 14px; font-size: 16px; }
	.mogelijkheden-hero__title { font-size: clamp(34px, 9vw, 44px); }
	.mogelijkheden-hero__intro { margin-top: 14px; font-size: 18px; line-height: 1.6; }
	.mogelijkheden-hero__media { height: 270px; border-radius: 0 0 0 100px; }
	.mogelijkheden-hero__image { height: 270px; }
	.mogelijkheden-hero__search-wrap { padding: 18px 0 26px; }
	.mogelijkheden-overview { padding: 36px 0 64px; }
	.mogelijkheden-overview__top { margin-bottom: 16px; }
	.mogelijkheden-filter__count { font-size: 17px; }
	.mogelijkheden-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.mogelijkheid-card__media { aspect-ratio: 16 / 7; }
	.mogelijkheid-card__content { min-height: 166px; }
}

/* ---------- Small mobile ---------- */
@media (max-width: 500px) {
	.mogelijkheden-hero__content { padding-top: 30px; }
	.mogelijkheden-hero__media { height: 230px; }
	.mogelijkheden-hero__image { height: 230px; }
	.mogelijkheden-overview { padding-top: 30px; }
	.mogelijkheid-card__media { aspect-ratio: 16 / 8; }
	.mogelijkheid-card__content { grid-template-columns: 50px minmax(0, 1fr); column-gap: 14px; min-height: 0; padding: 18px; }
	.mogelijkheid-card__icon { width: 50px; height: 50px; margin-top: -43px; border-width: 3px; }
	.mogelijkheid-card__icon svg { width: 26px; height: 26px; }
	.mogelijkheid-card__icon .kami-icon { width: 26px; height: 26px; }
	.mogelijkheid-card__icon .dashicons { width: 26px; height: 26px; font-size: 26px; }
	.mogelijkheid-card__title { font-size: 20px; }
	.mogelijkheid-card__description { font-size: 16px; line-height: 1.5; }
	.mogelijkheid-card__more { font-size: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.mogelijkheid-card__link, .mogelijkheid-card__image, .mogelijkheid-card__media::after, .mogelijkheid-card__arrow { transition: none; }
	.mogelijkheid-card__link:hover { transform: none; }
	.mogelijkheid-card__link:hover .mogelijkheid-card__image { transform: none; }
	.mogelijkheid-card__link:hover .mogelijkheid-card__arrow { transform: none; }
}