/* ==========================================================================
   WordPress-aanvullingen op main.css
   - extra blokken die niet in het prototype zaten (team, tijdlijn, documenten, …)
   - Gravity Forms in de huisstijl
   - WP-specifieke details
   ========================================================================== */

/* --- Hero-varianten --- */
.hero-panel:has(+ .section--split) { padding-bottom: 69px; }
.hero-panel--small { padding-bottom: 3px; }
.hero-panel--small .hero-panel__media { height: clamp(320px, 30vw, 560px); }
.hero-panel--small .hero-panel__box { margin-top: calc(-1 * clamp(110px, 9vw, 180px)); }
.hero-panel__box--single { grid-template-columns: minmax(0, 900px); }
.hero-panel__label { position: static; display: inline-block; margin-bottom: 16px; }
.hero-panel__date { color: rgba(255,255,255,.75); }
.hero-panel__text a { color: var(--c-green); text-decoration: underline; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.quick-request-wrap { background: var(--c-white); }
.quote-banner__quote { margin: 0; }
.quote-banner__name { display: block; }
.quote-banner--statement { min-height: 0; }

/* Proces + direct volgende afsluiter = één geheel (zoals Ik zoek personeel) */
.process--joined { padding-bottom: 0; }
.process--joined .process__grid { margin-bottom: 37px; }
.closing--after-process { padding-bottom: 60px; }
.closing--tall { padding-top: 0; }
.section--split + .closing--tall, .section--soft + .closing--tall { padding-top: 96px; }
.cases + .closing--tall { padding-top: 0; }

/* Lijsten/links in tekst+beeld */
.prose-inline p + p { margin-top: 1em; }
.prose-inline a { color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose-inline ul { padding-left: 1.2em; margin: .6em 0 0; }

/* --- Kenmerken / expertises --- */
.features__head { max-width: 760px; }
.features__grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 20px 24px;
  background: var(--c-white); border: 1.5px solid var(--c-border-card); border-radius: var(--r-md);
  font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.25;
  transition: border-color .2s, box-shadow .2s;
}
.section--white .feature { background: var(--c-white); }
.section--grey .feature, .section--soft .feature { border-color: transparent; }
.feature:hover { border-color: var(--c-green); box-shadow: var(--shadow-soft); }
.feature__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--c-green); display: grid; place-items: center; flex: none; }
.feature__icon img { width: 16px; height: 16px; }
.features__cta { margin-top: 32px; }

/* --- Team --- */
.team__intro { margin-top: 12px; max-width: 640px; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin-top: 48px; }
.person[hidden] { display: none; }
.person__img { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--c-grey-tile); }
.person__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.person:hover .person__img img { transform: scale(1.04); }
.person__name { margin-top: 16px; font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.25; }
.person__role { margin-top: 4px; font-size: 15px; color: var(--c-text-muted); line-height: 1.4; }
.person__mail { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-green); }

/* --- Tijdlijn --- */
.timeline__list { list-style: none; margin: 48px 0 0; padding: 0; position: relative; display: grid; gap: 32px; }
.timeline__list::before { content: ""; position: absolute; left: 47px; top: 24px; bottom: 24px; width: 3px; border-radius: 2px; background: var(--c-green-soft); }
.timeline__item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 32px; align-items: start; position: relative; }
.timeline__year {
  width: 96px; height: 48px; border-radius: var(--r-pill); background: var(--c-green); color: var(--c-navy);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 20px; position: relative;
}
.timeline__card { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: center; background: var(--c-white); border-radius: var(--r-lg); padding: 20px; }
.timeline__card:not(:has(.timeline__img)) { grid-template-columns: 1fr; padding: 28px 32px; }
.timeline__img { aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; }
.timeline__img img { width: 100%; height: 100%; object-fit: cover; }
.timeline__card p { font-size: 18px; line-height: 1.65; color: var(--c-text); }

/* --- Documenten --- */
.documents__intro { margin-top: 16px; max-width: 760px; }
.documents__intro a { text-decoration: underline; }
.documents__group { margin-top: 48px; }
.documents__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.document {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 20px;
  background: var(--c-grey-soft); border-radius: var(--r-md); font-weight: 600; font-size: 16px; line-height: 1.35;
  border: 1.5px solid transparent; transition: border-color .2s, background .2s;
}
.document:hover { border-color: var(--c-green); background: var(--c-white); }
.document__icon { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--c-navy); color: var(--c-green); display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.document__title { flex: 1; }
.document img { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.document:hover img { transform: translateX(3px); }

/* --- Contactkaarten --- */
.contact-cards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.contact-cards .heading-small + .contact-cards__grid { margin-top: 32px; }
.contact-card { background: var(--c-white); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-card__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--c-navy); display: grid; place-items: center; }
.contact-card__icon img, .contact-card__icon .vg-icon { width: 26px; height: 26px; }
.contact-card__title { margin-top: 8px; font-family: var(--f-display); font-weight: 700; font-size: 22px; }
.contact-card__text { color: var(--c-text); font-size: 17px; line-height: 1.6; flex: 1; }

/* --- Vrije tekst / artikel --- */
.prose--narrow { max-width: 820px; }
.prose h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; margin-top: 32px; }
.prose ol { margin: 16px 0 0; padding-left: 1.4em; color: var(--c-text); font-size: 18px; line-height: 1.6; }
.prose a { color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose img { border-radius: var(--r-lg); margin: 24px 0; height: auto; }
.prose figure { margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding: 8px 0 8px 24px; border-left: 4px solid var(--c-green); font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.35; color: var(--c-navy); }
.prose blockquote p { color: inherit; font-size: inherit; }
.prose--article > p:first-child { font-size: 20px; color: var(--c-navy); }
.article-nav { margin-top: 48px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--c-border-soft); padding: 10px 8px; text-align: left; vertical-align: top; }

/* --- Nieuwsoverzicht --- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.news-tile { background: var(--c-white); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-soft); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.news-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(28,45,80,.14); }
.news-tile__img { aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.news-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.news-tile__body { padding: 24px 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-tile__date { font-size: 14px; color: var(--c-text-muted); }
.news-tile__title { font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.3; }
.news-tile__title a::after { content: ""; position: absolute; inset: 0; }
.news-tile { position: relative; }
.news-tile__excerpt { color: var(--c-text); font-size: 16px; line-height: 1.6; flex: 1; }
.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--c-white); font-weight: 700; }
.pagination .page-numbers.current { background: var(--c-navy); color: var(--c-white); }

.empty-state { margin-top: 32px; padding: 40px; border-radius: var(--r-lg); background: var(--c-white); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.empty-state p { max-width: 720px; font-size: 18px; line-height: 1.6; color: var(--c-text); }
.vacancies__head .link-arrow { font-size: 18px; }
.cert-card__file { margin-top: 12px; font-size: 15px; }
.cert-card__logo { max-height: 90px; width: auto; }
.logo-card__mark img { max-width: 120px; max-height: 120px; object-fit: contain; }

/* Taalwissel (WPML) in de header-stijl */
.site-header .wpml-ls { position: absolute; right: -120px; top: 31px; }

/* --- Gravity Forms in huisstijl --- */
.form__notice { padding: 16px; border-radius: var(--r-md); background: #fff7d6; color: #6b5100; }
.gform_wrapper { margin-top: 24px; }
.gform_wrapper .gform_heading, .gform_wrapper .gform_required_legend { display: none; }
.gform_wrapper .gform_fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; list-style: none; margin: 0; padding: 0; }
.gform_wrapper .gfield { grid-column: span 12; display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.gform_wrapper .gfield--width-half { grid-column: span 6; }
.gform_wrapper .gfield--type-honeypot, .gform_wrapper .gform_validation_container { display: none !important; }
.gform_wrapper .gfield_label, .gform_wrapper legend.gfield_label { font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--c-navy); padding: 0; }
.gform_wrapper .gfield_required { color: var(--c-placeholder); font-weight: 400; margin-left: 2px; }
.gform_wrapper .gfield_required .gfield_required_text { font-size: 0; }
.gform_wrapper .gfield_required .gfield_required_text::after { content: "*"; font-size: 14px; }
.gform_wrapper input[type="text"], .gform_wrapper input[type="email"], .gform_wrapper input[type="tel"], .gform_wrapper input[type="url"], .gform_wrapper input[type="number"], .gform_wrapper select, .gform_wrapper textarea {
  width: 100%; height: 56px; padding: 0 16px; font: 400 16px/1.4 var(--f-body); color: var(--c-navy);
  background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--r-md);
  transition: border-color .2s, box-shadow .2s;
}
.gform_wrapper textarea { height: 160px; padding: 16px; resize: none; }
.gform_wrapper input::placeholder, .gform_wrapper textarea::placeholder { color: var(--c-placeholder); }
.gform_wrapper input:focus, .gform_wrapper textarea:focus, .gform_wrapper select:focus { outline: none; border-color: var(--c-navy); box-shadow: 0 0 0 3px rgba(175,202,11,.45); }
.gform_wrapper input[type="file"] { padding: 14px 16px; height: auto; background: var(--c-white); border: 1px dashed var(--c-border); border-radius: var(--r-md); width: 100%; }
.gform_wrapper .gfield_checkbox, .gform_wrapper .gfield_radio { display: grid; gap: 8px; }
.gform_wrapper .gchoice { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 22px; color: var(--c-placeholder); }
.gform_wrapper .gchoice input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-navy); flex: none; }
.gform_wrapper .gfield--type-consent .ginput_container, .gform_wrapper .gfield--type-consent { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--c-placeholder); }
.gform_wrapper .gfield--type-consent input { width: 20px; height: 20px; accent-color: var(--c-navy); }
.gform_wrapper .gfield--type-consent .gfield_label { display: none; }
.gform_wrapper .gfield_description, .gform_wrapper .gform_fileupload_rules { font-size: 14px; color: var(--c-placeholder); }
.gform_wrapper .gform_footer { display: flex; justify-content: flex-end; margin-top: 16px; padding: 0; }
.gform_wrapper .gform_footer .btn { min-width: 223px; height: 56px; box-shadow: 0 10px 10px rgba(175,202,11,.2); }
.gform_wrapper .gform_ajax_spinner { width: 24px; height: 24px; margin: 16px; }
.gform_wrapper .gfield_error input, .gform_wrapper .gfield_error textarea { border-color: #c0392b; }
.gform_wrapper .validation_message, .gform_wrapper .gfield_validation_message { font-size: 14px; color: #c0392b; }
.gform_wrapper .gform_validation_errors { margin-bottom: 16px; padding: 16px; border-radius: var(--r-md); background: #fff1f0; color: #9f2a1f; }
.gform_wrapper .gform_validation_errors h2 { font-size: 16px; font-weight: 600; }
.gform_confirmation_message { margin-top: 24px; padding: 24px; border-radius: var(--r-md); background: var(--c-white); border: 1px solid var(--c-border-soft); font-size: 18px; }
.gform_wrapper .screen-reader-text, .gform_wrapper .hidden_label .gfield_label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Nieuwsbrief in de footer */
.newsletter__gf .gform_wrapper { margin-top: 0; }
.newsletter__gf .gform_fields { gap: 24px; }
.newsletter__gf .gfield { grid-column: span 12; }
.newsletter__gf .gfield_label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.newsletter__gf input[type="text"], .newsletter__gf input[type="email"] { height: auto; padding: 16px; }
.newsletter__gf .gfield--type-html { font-size: 18px; line-height: 1.35; color: #96999c; }
.newsletter__gf .gform_footer { justify-content: flex-start; margin-top: 24px; }
.newsletter__gf .gform_footer .btn { width: 223px; min-width: 0; height: auto; box-shadow: none; color: var(--c-navy-deep); }
.newsletter__gf .gform_confirmation_message { margin-top: 0; padding: 0; border: 0; background: none; font-weight: 700; }

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features__grid, .documents__list, .news-grid, .contact-cards__grid { grid-template-columns: 1fr 1fr; }
  .timeline__card { grid-template-columns: 200px 1fr; }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .features__grid, .documents__list, .news-grid, .contact-cards__grid { grid-template-columns: 1fr; }
  .gform_wrapper .gfield--width-half { grid-column: span 12; }
  .gform_wrapper .gform_footer .btn { width: 100%; }
  .timeline__list::before { left: 31px; }
  .timeline__item { grid-template-columns: 64px 1fr; gap: 16px; }
  .timeline__year { width: 64px; font-size: 16px; }
  .timeline__card { grid-template-columns: 1fr; }
  .hero-panel:has(+ .section--split) { padding-bottom: 24px; }
  .empty-state { padding: 24px; }
}
