/* ==========================================================================
   MIEDEMA ASSISTANCE — Vacature Templates
   GeneratePress child-theme stylesheet
   Design: Monocle editorial / system-font / mobile-first / 0 border-radius
   ========================================================================== */

/* --------------------------------------------------------------------------
   OVERZICHT (query-loop) template
   -------------------------------------------------------------------------- */

/* Intro */
.gb-element-ovz-intro {
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
  max-width: 640px;
}

.gb-text-ovz-kicker {
  color: var(--ma-accent);
  display: block;
  font-size: clamp(0.65rem, 1.5vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: clamp(0.5rem, 2vw, 0.75rem);
  text-transform: uppercase;
}

.gb-text-ovz-h1 {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: clamp(0.6rem, 2vw, 1rem);
  margin-top: 0;
}

/* TODO: bevestigen — staat deze intro op een donkere sectie? Zo niet: var(--ma-ink-1) */
.gb-text-ovz-desc {
  color: var(--ma-off-white);
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Grid */
.gb-looper-ovz-loop {
  align-items: stretch;
  column-gap: clamp(1rem, 3vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  row-gap: clamp(1rem, 3vw, 1.5rem);
}

/* Card (hele <a> tag) */
.gb-element-ovz-card {
  background-color: var(--ma-surface-inverse);
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.gb-element-ovz-card:is(:hover, :focus) .gb-element-ovz-card-cta {
  background-color: var(--ma-accent);
  color: var(--ma-accent-ink);
}

.gb-element-ovz-card:is(:hover, :focus) .gb-media-ovz-img {
  transform: scale(1.03);
}

.gb-element-ovz-card:focus-visible {
  outline: 2px solid var(--ma-focus-ring);
  outline-offset: 2px;
}

/* Image wrapper */
.gb-element-ovz-img-wrap {
  overflow: hidden;
  position: relative;
}

/* Badge */
.gb-element-ovz-badge {
  background-color: var(--ma-accent);
  left: 0;
  margin-left: clamp(0.6rem, 2vw, 1rem);
  margin-top: clamp(0.6rem, 2vw, 1rem);
  position: absolute;
  top: 0;
  z-index: 2;
}

.gb-text-ovz-status {
  color: var(--ma-accent-ink);
  display: block;
  font-size: clamp(0.65rem, 1.6vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
}

/* Image */
.gb-media-ovz-img {
  aspect-ratio: 16/9;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
  width: 100%;
}

/* Card body */
.gb-element-ovz-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: clamp(1rem, 3vw, 1.5rem);
}

/* Card title */
.gb-text-ovz-title {
  color: var(--ma-ink-inverse);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: clamp(0.3rem, 1vw, 0.5rem);
}

/* Card excerpt — 3 line clamp */
.gb-text-ovz-excerpt {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: color-mix(in srgb, var(--ma-white) 60%, transparent);
  display: -webkit-box;
  font-size: clamp(0.82rem, 2.2vw, 0.9rem);
  line-height: 1.6;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  overflow: hidden;
}

/* Meta strip */
.gb-element-ovz-meta {
  border-top: 1px solid color-mix(in srgb, var(--ma-white) 8%, transparent);
  column-gap: clamp(0.75rem, 2vw, 1rem);
  display: flex;
  flex-wrap: wrap;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  padding-top: clamp(0.5rem, 2vw, 0.75rem);
  row-gap: 0.4rem;
}

.gb-text-ovz-regio,
.gb-text-ovz-duur {
  align-items: center;
  color: color-mix(in srgb, var(--ma-white) 55%, transparent);
  column-gap: 0.4em;
  display: inline-flex;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
}

.gb-text-ovz-regio .gb-shape svg,
.gb-text-ovz-duur .gb-shape svg {
  fill: currentColor;
  height: 0.9em;
  opacity: 0.5;
  width: 0.9em;
}

/* CTA wrapper */
.gb-element-ovz-cta-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

/* CTA button (span inside <a> card) */
.gb-element-ovz-card-cta {
  align-items: center;
  background-color: var(--ma-white);
  color: var(--ma-black);
  display: inline-flex;
  font-size: clamp(0.8rem, 2vw, 0.88rem);
  font-weight: 600;
  gap: 0.5em;
  letter-spacing: 0.02em;
  padding: clamp(0.6rem, 2vw, 0.85rem) clamp(1.1rem, 3vw, 1.75rem);
  transition: background-color 0.2s ease, color 0.2s ease;
}


/* --------------------------------------------------------------------------
   SINGLE (vacature detail) template
   -------------------------------------------------------------------------- */

/* Nav */
.gb-element-sgl-nav {
  align-items: center;
  border-bottom: 1px solid var(--ma-border-strong);
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  padding-bottom: clamp(0.75rem, 2vw, 1rem);
  padding-top: clamp(0.75rem, 2vw, 1rem);
}

@media (max-width: 767px) {
  .gb-element-sgl-nav {
    align-items: flex-start;
    flex-direction: column;
    row-gap: 0.5rem;
  }
}

.gb-text-sgl-back {
  align-items: center;
  color: var(--ma-ink-0);
  column-gap: 0.5em;
  display: inline-flex;
  font-size: clamp(0.82rem, 2vw, 0.9rem);
  font-weight: 500;
  text-decoration: none;
}

.gb-text-sgl-back:is(:hover, :focus) {
  text-decoration: underline;
}

.gb-text-sgl-back .gb-shape svg {
  fill: none;
  height: 1.1em;
  stroke: currentColor;
  stroke-width: 2;
  width: 1.1em;
}

.gb-text-sgl-next {
  align-items: center;
  color: var(--ma-ink-2);
  column-gap: 0.5em;
  display: inline-flex;
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  margin-bottom: 0;
}

.gb-text-sgl-next .gb-shape svg {
  fill: currentColor;
  height: 0.9em;
  width: 0.9em;
}

/* Hero */
.gb-element-sgl-hero {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 0;
  overflow: hidden;
}

.gb-element-sgl-hero-img {
  overflow: hidden;
  position: relative;
}

/* Badge (single) */
.gb-element-sgl-badge {
  background-color: var(--ma-accent);
  left: 0;
  margin-left: clamp(0.6rem, 2vw, 1.25rem);
  margin-top: clamp(0.6rem, 2vw, 1.25rem);
  position: absolute;
  top: 0;
  z-index: 2;
}

.gb-text-sgl-badge-txt {
  color: var(--ma-accent-ink);
  display: block;
  font-size: clamp(0.65rem, 1.6vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
}

/* Hero image */
.gb-media-sgl-hero-media {
  aspect-ratio: 21/9;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center 20%;
  width: 100%;
}

@media (max-width: 767px) {
  .gb-media-sgl-hero-media {
    aspect-ratio: 16/9;
  }
}

/* Hero title bar */
.gb-element-sgl-hero-bar {
  background-color: var(--ma-surface-inverse);
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem);
}

.gb-text-sgl-h1 {
  color: var(--ma-ink-inverse);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: clamp(0.4rem, 1.5vw, 0.75rem);
  margin-top: 0;
}

/* Data strip */
.gb-element-sgl-strip {
  background-color: var(--ma-border-strong);
  border: 1px solid var(--ma-border-strong);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.gb-element-sgl-s-regio,
.gb-element-sgl-s-opl,
.gb-element-sgl-s-vervoer,
.gb-element-sgl-s-status {
  background-color: var(--ma-surface-1);
  padding: clamp(0.85rem, 2.5vw, 1.25rem) clamp(1rem, 2.5vw, 1.5rem);
}

/* Data strip labels */
.gb-text-sgl-s-regio-label,
.gb-text-sgl-s-opl-label,
.gb-text-sgl-s-vervoer-label,
.gb-text-sgl-s-status-label {
  color: var(--ma-ink-2);
  display: block;
  font-size: clamp(0.6rem, 1.4vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* Data strip values */
.gb-text-sgl-s-regio-val,
.gb-text-sgl-s-opl-val,
.gb-text-sgl-s-vervoer-val,
.gb-text-sgl-s-status-val {
  color: var(--ma-ink-0);
  display: block;
  font-size: clamp(0.82rem, 2vw, 0.92rem);
  font-weight: 500;
  line-height: 1.4;
}

/* Content 2-column grid */
.gb-element-sgl-content {
  column-gap: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  row-gap: clamp(1.5rem, 4vw, 2.5rem);
}

/* Section headings (aanbod, profiel, verwachtingen, eisen, toelichting, extra) */
.gb-text-sgl-aanbod-h,
.gb-text-sgl-profiel-h,
.gb-text-sgl-verwacht-h,
.gb-text-sgl-eisen-h,
.gb-text-sgl-toel-h,
.gb-text-sgl-extra-h {
  border-bottom: 1px solid var(--ma-border-strong);
  color: var(--ma-accent);
  font-size: clamp(0.65rem, 1.6vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: clamp(0.6rem, 2vw, 1rem);
  padding-bottom: 8px;
  text-transform: uppercase;
}

/* Looper grids */
.gb-looper-sgl-aanbod-loop,
.gb-looper-sgl-profiel-loop,
.gb-looper-sgl-verwacht-loop,
.gb-looper-sgl-eisen-loop,
.gb-looper-sgl-toel-loop {
  display: grid;
  row-gap: 10px;
}

/* List items (all sections) */
.gb-text-sgl-aanbod-item,
.gb-text-sgl-profiel-item,
.gb-text-sgl-verwacht-item,
.gb-text-sgl-eisen-item,
.gb-text-sgl-toel-item {
  align-items: flex-start;
  color: var(--ma-ink-0);
  column-gap: 0.75em;
  display: flex;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  line-height: 1.55;
}

/* Aanvullende info text block */
.gb-text-sgl-extra-text {
  color: var(--ma-ink-0);
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  line-height: 1.65;
}

/* Sticky CTA bar */
.gb-element-sgl-sticky {
  align-items: center;
  background-color: var(--ma-surface-1);
  border-top: 1px solid var(--ma-border-strong);
  bottom: 0;
  column-gap: 1rem;
  display: flex;
  justify-content: space-between;
  padding: clamp(0.75rem, 2.5vw, 1.25rem) 0;
  position: sticky;
  z-index: 10;
}

@media (max-width: 767px) {
  .gb-element-sgl-sticky {
    align-items: stretch;
    flex-direction: column;
    row-gap: 0.75rem;
  }
}

.gb-element-sgl-sticky-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.gb-text-sgl-sticky-regio {
  color: var(--ma-ink-2);
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
}


/* --------------------------------------------------------------------------
   GLOBAL RESET — enforce 0 border-radius everywhere
   -------------------------------------------------------------------------- */
.gb-element-ovz-card,
.gb-element-ovz-badge,
.gb-media-ovz-img,
.gb-element-ovz-card-cta,
.gb-element-sgl-badge,
.gb-media-sgl-hero-media,
.gb-element-sgl-hero-bar,
.gb-element-sgl-strip,
.gb-element-sgl-s-regio,
.gb-element-sgl-s-opl,
.gb-element-sgl-s-vervoer,
.gb-element-sgl-s-status,
.gb-element-sgl-sticky,
.gb-button-sgl-sticky-cta {
  border-radius: 0 !important;
}
