<?php
/**
 * Archetype-specific layout, typography, spacing, and component styles.
 *
 * @package SBS_Jobs_Ready
 */

/* ── Hero variants ── */
.sbs-hero-split {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--sbs-surface, #fafaf9);
}
.sbs-hero-split__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .sbs-hero-split__grid { grid-template-columns: 1fr 1fr; }
}
.sbs-hero-split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--sbs-radius, 0.5rem);
  object-fit: cover;
}
.sbs-hero-editorial {
  padding: clamp(3rem, 8vw, 6rem) 0 3rem;
  text-align: center;
}
.sbs-hero-editorial h1 {
  font-family: var(--sbs-font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0.5rem auto 1rem;
}
.sbs-hero-editorial--photo {
  position: relative;
  min-height: clamp(380px, 55vh, 560px);
  display: flex;
  align-items: center;
  color: #fafaf9;
  background-image:
    linear-gradient(180deg, rgba(28, 25, 23, 0.55) 0%, rgba(28, 25, 23, 0.4) 55%, rgba(28, 25, 23, 0.62) 100%),
    var(--sbs-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.sbs-hero-editorial--photo .sbs-kicker,
.sbs-hero-editorial--photo .sbs-hero-lead {
  color: rgba(250, 250, 249, 0.9);
}
.sbs-hero-editorial--photo .sbs-btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.sbs-hero-jobs {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sbs-primary) 8%, #fff), #fff);
}
.sbs-hero-jobs--photo {
  color: #f8fafc;
  background-image:
    linear-gradient(105deg, rgba(15, 23, 42, 0.62) 0%, rgba(15, 23, 42, 0.42) 50%, rgba(15, 23, 42, 0.28) 100%),
    var(--sbs-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: clamp(360px, 50vh, 520px);
  display: flex;
  align-items: center;
}
.sbs-hero-jobs--photo .sbs-hero-lead {
  color: rgba(248, 250, 252, 0.9);
}
.sbs-hero-jobs--photo .sbs-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.sbs-hero-jobs__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
/* Flex hero shrink-wraps .sbs-container to its content. Keep Direct Apply copy on the dark left side. */
.sbs-variant-directapply .sbs-hero-jobs > .sbs-container {
  width: 100%;
}
.sbs-variant-directapply .sbs-hero-jobs h1,
.sbs-variant-directapply .sbs-hero-jobs .sbs-hero-jobs__actions,
.sbs-variant-directapply .sbs-hero-jobs .sbs-trust-row {
  max-width: 40rem;
}
.sbs-hero-corporate {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--sbs-primary);
  color: #fff;
  background-size: cover;
  background-position: center;
}
.sbs-hero-corporate--photo {
  background-image:
    linear-gradient(105deg, rgba(15, 23, 42, 0.68) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.32) 100%),
    var(--sbs-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.sbs-hero-corporate__inner { max-width: 40rem; }
.sbs-hero-corporate .sbs-btn,
.sbs-hero-corporate .sbs-btn:hover {
  background: #fff !important;
  color: var(--sbs-primary, #1c1917) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.95);
}
.sbs-hero-corporate .sbs-btn:hover {
  background: #fafaf9 !important;
  transform: translateY(-1px);
}
.sbs-hero-industrial {
  padding: clamp(3rem, 7vw, 5rem) 0;
  color: #f8fafc;
  background: #0f172a center/cover no-repeat;
}

/* ── Process steps ── */
.sbs-process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .sbs-archetype-trades-process .sbs-process-steps,
  .sbs-archetype-technical-installer .sbs-process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .sbs-archetype-contractor-corporate .sbs-process-steps {
    grid-template-columns: repeat(5, 1fr);
  }
}
.sbs-process-steps li {
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--sbs-primary) 15%, #e7e5e4);
  border-radius: var(--sbs-radius, 0.5rem);
}
.sbs-process-steps__num {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  background: var(--sbs-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* ── FAQ ── */
.sbs-faq-item {
  border-bottom: 1px solid #e7e5e4;
  padding: 0.75rem 0;
}
.sbs-faq-style-cards .sbs-faq-list {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .sbs-faq-style-cards .sbs-faq-list { grid-template-columns: repeat(3, 1fr); }
}
.sbs-faq-style-cards .sbs-faq-item {
  border: 1px solid #e7e5e4;
  border-radius: 0.5rem;
  padding: 1rem;
}

/* ── Local chips ── */
.sbs-local-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.sbs-local-chips a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sbs-primary) 10%, #fff);
  text-decoration: none;
  font-weight: 500;
}

/* ── CTA band ── */
.sbs-cta-band {
  background: var(--sbs-primary);
  color: #fff;
  padding: 2.5rem 0;
}
.sbs-cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.sbs-cta-band .sbs-btn { background: #fff !important; color: #111 !important; }
.sbs-cta-band .sbs-btn--ghost { background: transparent !important; border: 1px solid rgba(255,255,255,.6); color: #fff !important; }

/* Light footers: override dark-footer link defaults from theme.css */
.sbs-site-footer--editorial-split,
.sbs-site-footer--brand-minimal,
.sbs-site-footer--portal {
  color: var(--sbs-muted, #57534e);
}
.sbs-site-footer--editorial-split a,
.sbs-site-footer--brand-minimal a,
.sbs-site-footer--portal a,
.sbs-site-footer--editorial-split .sbs-footer-editorial a,
.sbs-site-footer--brand-minimal .sbs-footer-minimal a {
  color: var(--sbs-text, #1c1917) !important;
}
.sbs-site-footer--editorial-split a:hover,
.sbs-site-footer--brand-minimal a:hover,
.sbs-site-footer--portal a:hover {
  color: var(--sbs-primary) !important;
}

/* ── Breadcrumbs ── */
.sbs-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--sbs-muted, #78716c);
}
.sbs-breadcrumbs li + li::before { content: "›"; margin-right: 0.5rem; opacity: 0.5; }

/* ── Footer variants ── */
.sbs-site-footer--brand-minimal { padding: 2rem 0; border-top: 1px solid #e7e5e4; }
.sbs-footer-minimal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.sbs-footer-minimal nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.sbs-footer-minimal__legal { font-size: 0.88rem; }
.sbs-site-footer--editorial-split { padding: 3rem 0 1.5rem; background: #fafaf9; }
.sbs-footer-editorial { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.sbs-footer-editorial__links,
.sbs-footer-editorial__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}
.sbs-footer-editorial__legal { font-size: 0.88rem; }
.sbs-footer-brand--serif { font-family: var(--sbs-font-display); font-size: 1.5rem; }
.sbs-site-footer--portal { padding: 1.5rem 0; font-size: 0.9rem; border-top: 1px solid #e7e5e4; }
.sbs-footer-portal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.sbs-footer-portal nav,
.sbs-footer-portal__nav,
.sbs-footer-portal__legal { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.sbs-footer-portal--rich {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}
@media (min-width: 900px) {
  .sbs-footer-portal--rich {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  }
}
.sbs-footer-portal__brand p {
  margin: 0.35rem 0 0;
  color: var(--sbs-muted, #78716c);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 28rem;
}
.sbs-footer-two-col__legal,
.sbs-footer-cert-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}
.sbs-footer-cert-legal {
  margin: 1.25rem 0 0.75rem;
  font-size: 0.88rem;
}
.sbs-site-footer--portal .sbs-footer-bottom {
  border-top: 1px solid var(--sbs-border, #e7e5e4);
  padding: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--sbs-muted, #78716c);
}
.sbs-site-footer--industrial { background: #0f172a; color: #94a3b8; padding: 2rem 0 1rem; }
.sbs-footer-industrial { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.sbs-footer-industrial--grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .sbs-footer-industrial--grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.sbs-site-footer--industrial .sbs-footer-col h4 {
  color: #e2e8f0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}
.sbs-site-footer--industrial .sbs-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sbs-site-footer--industrial .sbs-footer-col li { margin-bottom: 0.45rem; }
.sbs-site-footer--industrial .sbs-footer-tagline,
.sbs-site-footer--industrial .sbs-footer-kvk {
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0.35rem 0 0;
}
.sbs-site-footer--industrial .sbs-footer-powered-by {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
}
.sbs-footer-bottom--dark a { color: #e2e8f0; margin-right: 1rem; }
.sbs-footer-certs { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0 0 1rem; margin: 0; }
.sbs-footer-certs li { font-size: 0.8rem; padding: 0.35rem 0.65rem; border: 1px solid #44403c; border-radius: 0.25rem; }

/* ── Header variants ── */
.sbs-header-dark .sbs-site-header { background: #0f172a; color: #f8fafc; }
.sbs-header-dark .sbs-nav a { color: #e2e8f0; }
/* Keep NL/EN labels readable on the white pill (nav link color must not win). */
.sbs-header-dark .sbs-nav a.sbs-lang-switch__btn {
  color: #1e293b;
  background: transparent;
}
.sbs-header-dark .sbs-nav a.sbs-lang-switch__btn:hover {
  color: var(--sbs-primary);
  background: color-mix(in srgb, var(--sbs-primary) 10%, #fff);
}
.sbs-header-dark .sbs-nav a.sbs-lang-switch__btn.is-active {
  background: var(--sbs-primary);
  color: #fff;
}
.sbs-header-transparent.sbs-site-header,
.sbs-site-header.sbs-header-transparent {
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 30;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}
.sbs-nav-style-centered-serif .sbs-nav ul { justify-content: center; flex-wrap: wrap; }
.sbs-nav-style-portal-tabs .sbs-nav li:not(.sbs-header-cta) a.is-current[href*="aanbod"] {
  background: var(--sbs-primary);
  color: #fff !important;
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
}
@media (max-width: 1100px) {
  .sbs-nav-style-portal-tabs .sbs-nav-toggle { display: block; }
  .sbs-nav-style-portal-tabs .sbs-site-header .sbs-container { position: relative; }
  .sbs-nav-style-portal-tabs .sbs-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--sbs-border);
    padding: 0.75rem 1.25rem 1rem;
    box-shadow: var(--sbs-shadow);
    z-index: 40;
  }
  .sbs-nav-style-portal-tabs .sbs-nav.is-open { display: block; }
  .sbs-nav-style-portal-tabs .sbs-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .sbs-nav-style-portal-tabs .sbs-header-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* ── Spacing scales ── */
.sbs-spacing-compact .sbs-section { padding: 2rem 0; }
.sbs-spacing-relaxed .sbs-section { padding: 4rem 0; }
.sbs-spacing-airy .sbs-section { padding: 5rem 0; }

/* ── Card styles ── */
.sbs-card-style-sharp-shadow .sbs-service-card,
.sbs-card-style-sharp-shadow .sbs-usp--card {
  border-radius: 0;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--sbs-primary) 25%, #000);
}
.sbs-card-style-bordered .sbs-service-card { border: 2px solid #d6d3d1; box-shadow: none; }
.sbs-card-style-borderless .sbs-service-card { border: none; box-shadow: none; background: transparent; }
.sbs-card-style-list-row .sbs-service-grid { grid-template-columns: 1fr !important; }
.sbs-card-style-list-row .sbs-service-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
}
.sbs-card-style-glass .sbs-service-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
}

/* ── Archetype: job portal ── */
.sbs-archetype-job-portal .sbs-stats { grid-template-columns: repeat(3, 1fr); }

/* Direct Apply cookie bar: full-width strip, not a card over the intro. */
body.sbs-site-directapply .sbs-cookie-banner {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
}
body.sbs-site-directapply .sbs-cookie-banner__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.5rem;
  row-gap: 0.2rem;
  align-items: center;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 -8px 28px rgba(28, 25, 23, 0.12);
}
body.sbs-site-directapply .sbs-cookie-banner__title,
body.sbs-site-directapply .sbs-cookie-banner__body,
body.sbs-site-directapply .sbs-cookie-banner__links {
  grid-column: 1;
  margin-bottom: 0;
}
body.sbs-site-directapply .sbs-cookie-banner__title { font-size: 0.95rem; }
body.sbs-site-directapply .sbs-cookie-banner__body { font-size: 0.85rem; }
body.sbs-site-directapply .sbs-cookie-banner__links { margin-top: 0.15rem; }
body.sbs-site-directapply .sbs-cookie-banner__panel > .sbs-cookie-banner__actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-content: flex-end;
}
body.sbs-site-directapply .sbs-cookie-prefs {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  max-height: 46vh;
  overflow: auto;
}
@media (max-width: 800px) {
  body.sbs-site-directapply .sbs-cookie-banner__panel {
    grid-template-columns: 1fr;
  }
  body.sbs-site-directapply .sbs-cookie-banner__panel > .sbs-cookie-banner__actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
}
.sbs-archetype-luxury-editorial .sbs-testimonial {
  font-family: var(--sbs-font-display);
  font-size: 1.25rem;
  border-left: 3px solid var(--sbs-primary);
  padding-left: 1.5rem;
}

/* ── Editorial contextual links ── */
.sbs-editorial-link {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--sbs-primary) 6%, #fff);
  border-left: 3px solid var(--sbs-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.sbs-editorial-link a { font-weight: 600; }
