/* Herbruikbare onderdelen */

/* ---- knoppen ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--bordeaux); color: #fff; text-decoration: none; cursor: pointer;
  font-family: var(--font-head); font-size: 18px; line-height: 1.2; padding: 15px 26px; border: 1.5px solid var(--bordeaux); border-radius: 999px;
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn:hover { background: var(--bordeaux-dark); border-color: var(--bordeaux-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(139, 30, 66, 0.28); }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-dark); box-shadow: none; }
.btn--light { background: #fff; color: var(--bordeaux); border-color: #fff; }
.btn--light:hover { background: var(--bordeaux-tint); border-color: var(--bordeaux-tint); color: var(--bordeaux-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- lopende tekst (content uit de pagina-bestanden) ---- */
.prose { max-width: var(--read-w); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h2 + .lead, .prose .lead { color: var(--teal); font-family: var(--font-head); font-size: 22px; margin-top: -0.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose img { border-radius: var(--radius-sm); }
.prose p > img:first-child:not(:last-child), .prose p > strong:first-child + img { float: left; margin: 4px 22px 12px 0; max-width: min(42%, 280px); }
.prose::after { content: ""; display: table; clear: both; }
.prose iframe { border: 0; width: 100%; }
.prose .embed { min-height: 520px; background: #fff; border-radius: var(--radius-sm); }
.prose .video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; margin: 1em 0; }
.prose .video iframe { position: absolute; inset: 0; height: 100%; }
.prose a { text-underline-offset: 3px; }
.prose--wide { max-width: none; }

/* plaatsenlijsten (uitvaart / begrafenisondernemer) in kolommen */
.prose--places p { columns: 3 220px; column-gap: 32px; line-height: 2; }

/* bloglijst */
.prose--blogs p { background: #fff; border-radius: var(--radius-sm); padding: 20px 24px; }
.prose--blogs p::after { content: ""; display: table; clear: both; }

/* ---- tegels (inspiratie, werkwijze, nieuws): per onderwerp een blokje om door te klikken ---- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.tile {
  height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.tile__img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--sand); }
.tile__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile__title { font-family: var(--font-head); font-size: 24px; line-height: 1.15; color: var(--bordeaux); }
.tile__text { font-size: 15px; color: var(--text); }
.tile__more { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; color: var(--teal); }
.tile__arrow { width: 40px; height: 40px; border-radius: 999px; background: var(--bordeaux-tint); color: var(--bordeaux); display: flex; align-items: center; justify-content: center; transition: background 0.3s, color 0.3s; }
.tile:hover .tile__arrow { background: var(--bordeaux); color: #fff; }
.tile .icon { width: 18px; height: 18px; }

/* ---- stappen met uitklap (details/summary: werkt zonder JavaScript) ---- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: stap; }
.step { background: var(--teal-dark); border-radius: var(--radius-sm); transition: background 0.3s; }
.step[open], .step:hover { background: var(--teal-darker); }
.step > summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; }
.step > summary::-webkit-details-marker { display: none; }
.step__n {
  flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 16px;
}
.step__head { flex: 1; }
.step__head strong { display: block; color: #fff; }
.step__head span { color: var(--teal-tint); font-size: 15px; }
.step__toggle { flex: none; color: var(--gold-light); font-size: 24px; line-height: 1; transition: transform 0.3s; }
.step[open] .step__toggle { transform: rotate(45deg); }
.step__more { padding: 0 18px 18px 68px; color: var(--teal-tint); font-size: 15px; }
.step__more p:last-child { margin-bottom: 0; }
.step__more a { color: #fff; font-weight: 600; }
.steps-note { margin-top: 18px; font-size: 15px; color: var(--teal-tint); }
.steps-note a { color: #fff; font-weight: 600; }

/* ---- wij zijn wij: team ---- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 16px; }
.team__col { display: contents; }
.person-card {
  background: #fff; border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 24px; text-decoration: none; color: var(--ink);
  transition: transform 0.35s ease, box-shadow 0.35s ease, color 0.2s;
}
a.person-card:hover, a.person-card:focus-visible { color: var(--bordeaux); transform: translateY(-4px); box-shadow: var(--shadow); }
.person-card__img, .avatar {
  width: clamp(96px, 11vw, 140px); aspect-ratio: 1; border-radius: 999px; object-fit: cover; flex: none; transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.avatar { display: flex; align-items: center; justify-content: center; background: var(--bordeaux-tint); color: var(--bordeaux); font-family: var(--font-head); font-size: clamp(36px, 4vw, 52px); }
a.person-card:hover .person-card__img { transform: scale(1.08); box-shadow: 0 12px 26px rgba(46, 43, 37, 0.22); }
.person-card__role { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.person-card__name { display: block; font-family: var(--font-head); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; margin: 4px 0 8px; }
.person-card__line { font-size: 15px; color: var(--text); }
.person-card--soon .person-card__line { color: var(--muted); font-style: italic; }

.team__owner-h { grid-column: 1; grid-row: 1; }
.team__owner-f { grid-column: 2; grid-row: 1; }
.team__staff { grid-column: 1; grid-row: 2; }
.team__free { grid-column: 2; grid-row: 2; }

.freelancers { background: var(--sand); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.freelancers__title { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0; }
.freelancers__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1; align-content: center; }
.freelancers__list:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.freelancer { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 999px; padding: 8px 14px 8px 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.25; transition: transform 0.35s ease, box-shadow 0.35s ease, color 0.2s; }
.freelancer:hover, .freelancer:focus-visible { color: var(--bordeaux); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(46, 43, 37, 0.1); }
.freelancer img { width: 52px; height: 52px; border-radius: 999px; object-fit: cover; flex: none; transition: transform 0.5s var(--ease); }
.freelancer:hover img { transform: scale(1.12); }

@media (max-width: 1000px) {
  .team { grid-template-columns: 1fr; grid-template-rows: none; }
  .team__owner-h, .team__owner-f, .team__staff, .team__free { grid-column: 1; grid-row: auto; }
}
@media (max-width: 520px) {
  .person-card { flex-direction: column; text-align: center; }
  .freelancers__list, .freelancers__list:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; }
  .freelancer { border-radius: 24px; flex-direction: column; text-align: center; padding: 12px 8px; }
}

/* ---- reviews: wisselend citaat ---- */
.review-strip { background: var(--sand); }
.review-strip__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter); display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.review-strip__score { text-align: center; }
.review-strip__score strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: clamp(64px, 8vw, 110px); line-height: 0.95; color: var(--gold); }
.review-strip__score a { font-size: 14px; font-weight: 600; }
.review { margin: 0; transition: opacity 0.5s ease; min-height: 7.5em; }
.review.is-fading { opacity: 0; }
.review__quote { margin: 0; font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; color: var(--teal); text-wrap: pretty; }
.review__author { margin-top: 12px; font-size: 15px; color: var(--muted); font-style: normal; }
.review__author::before { content: "— "; }
@media (max-width: 700px) { .review-strip__inner { grid-template-columns: 1fr; text-align: center; } }

.review-list { column-count: 2; column-gap: 20px; }
.review-card { break-inside: avoid; margin: 0 0 20px; background: #fff; border-radius: var(--radius); padding: 24px 28px; }
.review-card blockquote { margin: 0; font-style: italic; }
.review-card figcaption { margin-top: 10px; font-weight: 600; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .review-list { column-count: 1; } }

/* ---- oproepband onderaan de pagina ---- */
.cta-band { background: var(--teal); color: #fff; }
.cta-band__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(36px, 4vw, 56px) var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(26px, 3vw, 38px); }
.cta-band p { margin: 0; color: var(--teal-tint); max-width: 38em; }

/* ---- aangesloten bij ---- */
.orgs { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.orgs__label { font-weight: 600; font-size: 15px; color: var(--text); margin-right: 8px; }
.orgs a { height: 88px; padding: 12px 22px; background: rgba(255, 255, 255, 0.88); border-radius: 22px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.orgs a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(46, 43, 37, 0.12); }
.orgs img { max-height: 64px; max-width: 190px; width: auto; height: auto; }

/* ---- video ---- */
.video-card { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--teal-dark); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22); }
.video-card__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: var(--teal-dark); display: flex; align-items: center; justify-content: center; }
.video-card__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47, 71, 83, 0) 40%, rgba(47, 71, 83, 0.7)); }
.video-card__btn { position: relative; width: 84px; height: 84px; border-radius: 999px; background: #fff; color: var(--bordeaux); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transition: transform 0.3s ease; }
.video-card__play:hover .video-card__btn { transform: scale(1.08); }
.video-card__btn svg { width: 30px; height: 30px; fill: currentColor; }
.video-card__label { position: absolute; left: 24px; bottom: 18px; color: #fff; font-weight: 600; font-size: 15px; text-align: left; }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.videos__caption { margin: 10px 4px 0; font-size: 15px; color: var(--text); }

/* ---- plaatsnamen ---- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 14px; padding: 5px 13px; border-radius: 999px; background: var(--cream); color: var(--text); cursor: default; transition: background 0.2s, color 0.2s; }
.pill:hover, .pill.is-on { background: var(--bordeaux); color: #fff; }

/* ---- formulier ---- */
.form { display: grid; gap: 18px; max-width: 40em; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.form legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.form label { font-weight: 600; display: block; margin-bottom: 4px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; }
.form .check input { margin-top: 0.4em; width: 18px; height: 18px; accent-color: var(--bordeaux); flex: none; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid rgba(32, 30, 29, 0.18); border-radius: 16px; padding: 12px 16px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-tint); }
.form .req { color: var(--bordeaux); }
.form__status { font-weight: 600; margin: 0; }
.form__status.is-error { color: var(--bordeaux); }
.form__status.is-ok { color: var(--teal); }
.form [aria-invalid="true"] { border-color: var(--bordeaux); }
.hp { position: absolute; left: -9999px; }

/* ---- zijbalk met adressen ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 28px; }
.contact-card h3 { margin-bottom: 4px; }
.contact-card p { margin: 0 0 18px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- secties op inhoudspagina's ---- */
.page-body > * + * { margin-top: clamp(32px, 4vw, 56px); }
.section-tiles, .section-videos, .section-team { margin-top: clamp(36px, 5vw, 64px); }
.section-team > h2, .section-videos > h2 { margin-bottom: 0; }
.section-team > .squiggle, .section-videos > .squiggle { margin-bottom: 24px; }

.steps-panel { background: var(--teal); color: #fff; border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); max-width: var(--read-w); }
.steps-panel h2 { color: #fff; margin-bottom: 8px; }
.steps-panel p { color: var(--teal-tint); }
.steps-panel .steps { margin-top: 20px; }
.steps-panel--light { background: var(--sand); color: var(--ink); margin-top: clamp(32px, 4vw, 56px); }
.steps-panel--light h2 { color: var(--bordeaux); }
.steps-panel--light p { color: var(--text); }

.cta-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.cta-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }

/* ---- persoonspagina ---- */
.person { display: grid; grid-template-columns: minmax(160px, 280px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.person__photo { width: 100%; aspect-ratio: 1; border-radius: 999px; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } .person__photo { max-width: 220px; } }

/* ---- foto's met onderschrift als gelijke kaartjes (afscheidsruimtes, kisten, enz.) ---- */
.cards { list-style: none; margin: 1.4em 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.prose .cards { max-width: none; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; margin: 0; }
.card__img { display: block; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.card__img a { display: block; height: 100%; }
.card__img img, .prose .card__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; float: none; max-width: none; margin: 0; transition: transform 0.5s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__text { padding: 14px 18px 18px; font-size: 15px; line-height: 1.4; }
.card__text a { font-weight: 600; }

/* logo's van organisaties: klein en op één rij */
.logo-row { list-style: none; margin: 1.4em 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.logo-row li { margin: 0; }
.logo-row a { display: flex; align-items: center; justify-content: center; height: 84px; padding: 10px 20px; background: #fff; border-radius: 20px; }
.logo-row img, .prose .logo-row img { display: block; max-height: 60px; max-width: 170px; width: auto; height: auto; float: none; margin: 0; border-radius: 0; }

/* ---- citaat (zonder naam) naast de tekst ---- */
.with-quote { display: grid; grid-template-columns: minmax(0, var(--read-w)) minmax(260px, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.with-quote .prose { max-width: none; }
.with-quote--below { display: block; }
.pullquote { background: var(--sand); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 34px); position: sticky; top: 110px; max-width: 460px; }
.pullquote::before { content: "“"; display: block; font-family: var(--font-head); font-size: 72px; line-height: 0.6; color: var(--gold); margin-bottom: 4px; }
.pullquote blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.35; color: var(--teal); text-wrap: pretty; }
.page-body > .pullquote { margin-top: clamp(32px, 4vw, 56px); position: static; }
@media (max-width: 1000px) {
  .with-quote { grid-template-columns: 1fr; }
  .pullquote { position: static; max-width: none; }
}

/* ---- formulier: aanvinkvelden en toelichting ---- */
.form .check > span { flex: 1; }
.form__note { margin: 0; font-size: 14px; color: var(--muted); }
