/* =====================================================================
   GD-iTS Werken bij: aanvullende huisstijl
   Kleuren, lettertypen en knoppen staan in de Elementor-sitesettings
   (globale kleuren en typografie). Deze stylesheet regelt alleen wat
   Elementor niet zelf kan: kaarten, filters, formulieren, toegankelijkheid.
   Klassen beginnen met gd- en worden in Elementor ingesteld via
   Geavanceerd > CSS-klassen.
   ===================================================================== */

:root {
  --gd-lichtblauw: #00a7e3;
  --gd-lichtblauw-10: #e6f6fc;
  --gd-blauw: #144195;
  --gd-blauw-donker: #0c2c6b;
  --gd-rood: #de180a;
  --gd-navy-tekst: #0b1d45;
  --gd-tekst: #1c2433;
  --gd-tekst-zacht: #4a5468;
  --gd-lijn: #d9dee8;
  --gd-grijs-30: #b3b3b3;
  --gd-zacht: #f3f6fb;
  --gd-verloop: linear-gradient(90deg, #00a7e3, #144195);
  --gd-radius: 8px;
  --gd-schaduw: 0 1px 2px rgba(12, 44, 107, .06), 0 6px 20px rgba(12, 44, 107, .08);
}

/* ---------- Basis en toegankelijkheid ---------- */
body { color: var(--gd-tekst); -webkit-font-smoothing: antialiased; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--gd-lichtblauw);
  outline-offset: 3px;
}
.gd-on-dark :where(a, button):focus-visible,
.gd-footer :where(a, button):focus-visible { outline-color: #fff; }
.gd-sr-only, .gd-sr-only .elementor-heading-title {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ---------- Header (Xpro) ---------- */
.xpro-theme-builder-header { position: sticky; top: 0; z-index: 100; background: #fff; }
.admin-bar .xpro-theme-builder-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .xpro-theme-builder-header { top: 0; } }
.gd-header { border-bottom: 1px solid var(--gd-lijn); }
.gd-header .elementor-widget-image a { display: inline-block; }

/* ---------- Taalwissel ---------- */
.gd-lang {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  border: 2px solid var(--gd-lijn); border-radius: 6px; background: #fff;
  color: var(--gd-blauw); font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
}
.gd-lang:hover, .gd-lang:focus { border-color: var(--gd-blauw); color: var(--gd-blauw); }
.gd-lang svg { flex: none; }

/* ---------- Kleine kop boven een sectie ---------- */
.gd-eyebrow .elementor-heading-title {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.gd-eyebrow .elementor-heading-title::before {
  content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--gd-lichtblauw);
}

/* ---------- Knoppen: pijl-icoon en outline-varianten ---------- */
.elementor-button .elementor-button-icon svg { width: 1.1em; height: 1.1em; }
.elementor-button { transition: background-color .15s, color .15s, border-color .15s; }
.elementor-button:hover .elementor-button-icon { transform: translateX(3px); }
.elementor-button .elementor-button-icon { transition: transform .15s; }

/* ---------- Hero (home) ---------- */
.gd-hero-panel { position: relative; }
.gd-hero-panel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: var(--gd-lichtblauw); border-radius: 0 0 var(--gd-radius) var(--gd-radius);
}
.gd-hero-note { border-left: 3px solid var(--gd-lichtblauw); padding-left: 18px; }
@media (max-width: 767px) {
  .gd-hero { padding-top: 240px !important; min-height: 0 !important; background-position: 60% top !important; background-size: auto 280px !important; background-color: var(--gd-blauw) !important; }
  .gd-hero > .e-con-inner { padding: 0 !important; }
  .gd-hero-panel { border-radius: 0 !important; box-shadow: none !important; }
  .gd-hero-panel::after { border-radius: 0; }
}

/* ---------- Paginaheader (overige pagina's) ---------- */
.gd-page-hero { position: relative; }
.gd-page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gd-verloop); z-index: 2;
}

.gd-page-hero .gd-post-title :is(h1, h2, a) { color: #fff !important; margin: 0; font-weight: 800; line-height: 1.12; }
.gd-header .xpro-elementor-horizontal-menu-toggler svg,
.gd-header .xpro-elementor-horizontal-menu-close svg { width: 20px !important; min-width: 20px; height: 20px !important; fill: currentColor; flex: none; }
.gd-header .xpro-elementor-horizontal-menu-toggler,
.gd-header .xpro-elementor-horizontal-menu-close { color: var(--gd-blauw); cursor: pointer; }

/* ---------- Cijfers ---------- */
.gd-stats { box-shadow: var(--gd-schaduw); }
.gd-stat { border-right: 1px solid var(--gd-lijn); }
.gd-stat:last-child { border-right: 0; }
.gd-stat .elementor-heading-title { white-space: nowrap; }
@media (max-width: 1024px) {
  .gd-stat { border-bottom: 1px solid var(--gd-lijn); }
  .gd-stat:nth-child(3n) { border-right: 0; }
}
@media (max-width: 767px) {
  .gd-stat:nth-child(3n) { border-right: 1px solid var(--gd-lijn); }
  .gd-stat:nth-child(2n) { border-right: 0; }
  .gd-stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ---------- Werkgebiedkaarten ---------- */
.gd-area-card { position: relative; transition: transform .2s, box-shadow .2s; }
.gd-area-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(12, 44, 107, .08), 0 14px 32px rgba(12, 44, 107, .14) !important; }
.gd-area-card:focus-within { outline: 3px solid var(--gd-lichtblauw); outline-offset: 3px; }
.gd-area-card .elementor-widget-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gd-area-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gd-area-card h3 a:focus-visible { outline: none; }
.gd-area-card h3 a { color: inherit; }
.gd-area-meta p { display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--gd-blauw); }
.gd-area-meta p::after {
  content: ""; width: 22px; height: 22px; background: var(--gd-rood);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain 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 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Vacaturekaarten ---------- */
.gd-jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gd-job-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 176px;
  background: #fff; border: 1px solid var(--gd-lijn); border-radius: var(--gd-radius); padding: 22px 22px 20px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.gd-job-card[hidden] { display: none; }
.gd-job-card::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 4px; border-radius: 0 3px 3px 0; background: var(--gd-lichtblauw); }
.gd-job-card:hover { border-color: var(--gd-lichtblauw); box-shadow: var(--gd-schaduw); transform: translateY(-2px); }
.gd-job-card:focus-within { outline: 3px solid var(--gd-lichtblauw); outline-offset: 2px; }
.gd-job-card__title { font-size: 1.25rem; line-height: 1.25; margin: 0; }
.gd-job-card__link { text-decoration: none; color: var(--gd-blauw); }
.gd-job-card__link::after { content: ""; position: absolute; inset: 0; }
.gd-job-card__link:focus-visible { outline: none; }
.gd-job-card__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gd-blauw); }
.gd-job-card__cta .gd-icon { color: var(--gd-rood); transition: transform .15s; }
.gd-job-card:hover .gd-job-card__cta .gd-icon { transform: translateX(3px); }
.gd-tag {
  align-self: flex-start; display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; line-height: 1.5; background: var(--gd-lichtblauw-10); color: var(--gd-blauw);
}
.gd-jobs-none { color: var(--gd-tekst-zacht); }

/* ---------- Vacatureoverzicht: zoeken en filteren ---------- */
.gd-job-tools { display: grid; gap: 20px; margin-bottom: 28px; }
.gd-search { max-width: 560px; margin: 0; }
.gd-search label, .gd-filters legend { display: block; font-weight: 700; color: var(--gd-blauw); margin-bottom: 6px; padding: 0; }
.gd-search__field { position: relative; }
.gd-search__field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gd-blauw); pointer-events: none; }
.gd-search input[type="search"] {
  width: 100%; min-height: 54px; padding: 12px 16px 12px 50px; margin: 0;
  border: 2px solid var(--gd-grijs-30); border-radius: 6px; font: inherit; font-size: 1.0625rem; color: var(--gd-tekst); background: #fff;
}
.gd-search input[type="search"]:focus { border-color: var(--gd-blauw); outline: 3px solid var(--gd-lichtblauw); outline-offset: 1px; }
.gd-filters { border: 0; margin: 0; padding: 0; min-width: 0; }
.gd-filters__list { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-filters .gd-chip {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--gd-grijs-30); background: #fff; color: var(--gd-tekst);
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; transition: border-color .15s, background .15s, color .15s;
}
.gd-filters .gd-chip:hover, .gd-filters .gd-chip:focus { border-color: var(--gd-blauw); background: #fff; color: var(--gd-tekst); }
.gd-filters .gd-chip[aria-pressed="true"] { background: var(--gd-blauw); border-color: var(--gd-blauw); color: #fff; }
.gd-chip__count { font-weight: 400; }
.gd-jobs-status { font-weight: 600; color: var(--gd-tekst-zacht); margin: 0 0 16px; }
.gd-jobs-empty { background: var(--gd-zacht); border-radius: var(--gd-radius); padding: 32px; text-align: center; margin-top: 8px; }
.gd-jobs-empty[hidden] { display: none; }
.gd-notice {
  background: #fff7d6; border: 1px solid #e8d48a; color: #3a2c00; border-radius: 6px;
  padding: 14px 18px; margin-bottom: 24px; font-size: 1rem;
}
.gd-notice p { margin: 0; }
.gd-notice a { color: #3a2c00; }

/* Knoppen die de plugin zelf toont */
.gd-jobs-app .gd-btn, .gd-vacature-info .gd-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 6px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid var(--gd-blauw);
}
.gd-jobs-app .gd-btn--outline, .gd-vacature-info .gd-btn--outline { background: transparent; color: var(--gd-blauw); }
.gd-jobs-app .gd-btn--outline:hover, .gd-jobs-app .gd-btn--outline:focus, .gd-vacature-info .gd-btn--outline:hover, .gd-vacature-info .gd-btn--outline:focus { background: var(--gd-blauw); color: #fff; }

/* ---------- Vacature (detailpagina) ---------- */
.gd-vacature-info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.gd-vacature-info p { margin: 0; }
.gd-back-link { font-weight: 600; }
.gd-job-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gd-job-mini a {
  display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--gd-lichtblauw-10);
  font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--gd-blauw);
}
.gd-job-mini a:hover, .gd-job-mini a:focus { background: var(--gd-blauw); color: #fff; }

/* ---------- Tekst + beeld ---------- */
.gd-img-accent { position: relative; isolation: isolate; }
.gd-img-accent::before {
  content: ""; position: absolute; z-index: -1; right: -16px; bottom: -16px; width: 60%; height: 60%;
  border-radius: var(--gd-radius); background: var(--gd-lichtblauw);
}
.gd-img-accent img, .gd-img-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--gd-radius); display: block; }
@media (max-width: 767px) { .gd-img-accent::before { right: -8px; bottom: -8px; } }

/* Fotomozaïek */
.gd-mosaic > :first-child { grid-row: span 2; }
.gd-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--gd-radius); display: block; }
.gd-mosaic > :first-child img { min-height: 360px; }
.gd-mosaic > :not(:first-child) img { aspect-ratio: 4 / 3; }
.gd-mosaic .elementor-widget-container, .gd-mosaic .elementor-widget-image { height: 100%; }

/* Galerij */
.gd-gallery > :first-child { grid-column: span 2; grid-row: span 2; }
.gd-gallery img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; border-radius: var(--gd-radius); display: block; }
.gd-gallery .elementor-widget-container, .gd-gallery .elementor-widget-image { height: 100%; }
@media (max-width: 767px) {
  .gd-gallery > :first-child { grid-column: 1 / -1; grid-row: auto; }
  .gd-gallery img { min-height: 150px; aspect-ratio: 4 / 3; }
}

/* ---------- Checklist ---------- */
.gd-checklist .elementor-icon-list-icon svg { fill: var(--gd-lichtblauw); }

/* ---------- Kernpunten (Werken bij) ---------- */
.gd-pillar { border-top: 5px solid var(--gd-lichtblauw); }
@media (min-width: 768px) { .gd-pillars > :first-child { grid-row: span 2; } }

/* ---------- Stappen ---------- */
.gd-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: stap; }
.gd-steps li { counter-increment: stap; position: relative; padding-top: 20px; border-top: 3px solid var(--gd-lichtblauw); }
.gd-steps li::before {
  content: counter(stap); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gd-blauw); color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 14px;
}
.gd-steps h3 { margin: 0 0 6px; font-size: 1.25rem; }
.gd-steps li p { margin: 0; color: var(--gd-tekst-zacht); }
@media (max-width: 767px) { .gd-steps ol { grid-template-columns: 1fr; } }

/* ---------- Verhalen (voorbeeldkaarten) ---------- */
.gd-story-card--voorbeeld { border: 2px dashed var(--gd-grijs-30) !important; }
.gd-story-placeholder {
  background: repeating-linear-gradient(135deg, var(--gd-zacht) 0 14px, #e9eef6 14px 28px) !important;
}
.gd-badge-voorbeeld {
  display: inline-block; background: #fff7d6; color: #4d3b00; border: 1px solid #e8d48a;
  font-size: .8125rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}

/* Videotegels (Onze verhalen) */
.gd-story-video { position: relative; }
.gd-story-video img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.gd-story-video::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(20, 65, 149, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='white'/%3E%3C/svg%3E") center / 30px no-repeat;
  pointer-events: none;
}

.gd-story-video a { display: block; border-radius: 6px; }
.gd-story-video:hover::after, .gd-story-video:focus-within::after { background-color: rgba(0, 167, 227, .95); transform: translate(-50%, -50%) scale(1.08); }
.gd-story-video::after { transition: transform .15s, background-color .15s; }

/* ---------- Footer ---------- */.gd-footer { position: relative; }
.gd-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--gd-verloop); }
.gd-footer a { color: #fff; }
.gd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gd-footer ul a { text-decoration: none; }
.gd-footer ul a:hover, .gd-footer ul a:focus { text-decoration: underline; }
.gd-footer p { margin: 0 0 .5em; }

/* ---------- WPForms in huisstijl ---------- */
.wpforms-container .wpforms-field-label { color: var(--gd-blauw) !important; font-weight: 700 !important; font-size: 1rem !important; }
.wpforms-container .wpforms-field-sublabel, .wpforms-container .wpforms-field-description { color: var(--gd-tekst-zacht) !important; }
.wpforms-container input[type="text"], .wpforms-container input[type="email"], .wpforms-container input[type="tel"],
.wpforms-container select, .wpforms-container textarea {
  border: 2px solid var(--gd-grijs-30) !important; border-radius: 6px !important; min-height: 50px;
  font-family: inherit !important; font-size: 1.0625rem !important; color: var(--gd-tekst) !important; background-color: #fff !important;
  box-shadow: none !important;
}
.wpforms-container input:focus, .wpforms-container select:focus, .wpforms-container textarea:focus {
  border-color: var(--gd-blauw) !important; outline: 3px solid var(--gd-lichtblauw) !important; outline-offset: 1px;
}
.wpforms-container input[readonly] { background-color: var(--gd-zacht) !important; color: var(--gd-blauw) !important; font-weight: 700; }
.wpforms-container .wpforms-error, .wpforms-container label.wpforms-error { color: #b31207 !important; font-weight: 600; }
.wpforms-container .wpforms-has-error input, .wpforms-container .wpforms-has-error textarea, .wpforms-container .wpforms-has-error select { border-color: var(--gd-rood) !important; }
.wpforms-container button[type="submit"].wpforms-submit {
  background-color: var(--gd-blauw) !important; color: #fff !important; border: 0 !important; border-radius: 6px !important;
  min-height: 52px; padding: 12px 28px !important; font-family: inherit !important; font-weight: 700 !important; font-size: 1.0625rem !important; height: auto !important;
}
.wpforms-container button[type="submit"].wpforms-submit:hover { background-color: var(--gd-blauw-donker) !important; }
.wpforms-confirmation-container-full {
  background: #e9f6e7 !important; border: 1px solid #a8d8a2 !important; color: #1d4d18 !important; border-radius: 6px; padding: 16px 20px !important;
}
.wpforms-container .wpforms-field-checkbox li label { font-weight: 400; color: var(--gd-tekst); }

/* ---------- Cookiemelding ---------- */
.gd-cookie {
  position: fixed; z-index: 9999; left: 24px; bottom: 24px; max-width: 560px;
  display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  background: #fff; color: var(--gd-tekst); border-top: 5px solid var(--gd-lichtblauw); border-radius: var(--gd-radius);
  box-shadow: 0 10px 40px rgba(12, 44, 107, .25); padding: 20px 24px; font-size: 1rem; line-height: 1.55;
}
.gd-cookie[hidden] { display: none; }
.gd-cookie__text { margin: 0; flex: 1 1 280px; }
.gd-cookie__text a { color: var(--gd-blauw); }
.gd-cookie .gd-cookie__btn {
  flex: none; min-height: 48px; padding: 10px 24px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--gd-blauw); color: #fff; font: inherit; font-weight: 700;
}
.gd-cookie .gd-cookie__btn:hover, .gd-cookie .gd-cookie__btn:focus { background: var(--gd-blauw-donker); color: #fff; }
@media (max-width: 767px) {
  .gd-cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 16px; }
  .gd-cookie .gd-cookie__btn { width: 100%; }
}

/* Vacaturetekst */
.gd-vacature-tekst h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.gd-vacature-tekst h2:first-child { margin-top: 0; }
.gd-vacature-tekst ul { padding-left: 1.2em; margin: 0 0 1em; }
.gd-vacature-tekst li { margin-bottom: .35em; }
.gd-vacature-tekst li::marker { color: var(--gd-lichtblauw); }
.gd-vacature-tekst .gd-vacature-meta { color: var(--gd-blauw); font-size: 1.125rem; }

@media (prefers-reduced-motion: reduce) {
  .gd-area-card, .gd-job-card, .elementor-button .elementor-button-icon { transition: none !important; }
  .gd-area-card:hover, .gd-job-card:hover { transform: none; }
}
