/* Cultuurwerker — Design System
   Inspired by Linear, adapted for the cultural sector */

:root {
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;

  --bg: #FAFAF8;
  --bg-elevated: #FFFFFF;
  --text: #18181B;
  --text-secondary: #52525B;
  --text-muted: #A1A1AA;
  --border: #EEEEEE;
  --border-subtle: #F4F4F5;

  /* Dark olive green palette */
  --accent: #3D5246;
  --accent-hover: #2F4036;
  --accent-light: #E8EDE9;
  --accent-focus: rgba(61, 82, 70, 0.14);

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --transition: 150ms ease;
  --container-job-max: 1400px;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */

h1, h2, h3, h4, h5, h6,
.display-hero,
.display-section,
.job-card-title,
.job-detail-title,
.navbar-cw .navbar-brand,
.footer-brand {
  font-family: var(--font-display);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.display-hero {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.display-section {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-muted-custom {
  color: var(--text-secondary);
}

.text-subtle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Layout */

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3.5rem 0;
}

.container-job {
  max-width: var(--container-job-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */

.navbar-cw {
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-cw .navbar-brand {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.navbar-cw .nav-link {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 0.375rem 0.75rem;
  transition: color var(--transition);
}

.navbar-cw .nav-link:hover,
.navbar-cw .nav-link.active {
  color: var(--text);
}

/* Buttons */

.btn-cw-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-cw-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-cw-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  transition: color var(--transition);
  cursor: pointer;
}

.btn-cw-ghost:hover {
  color: var(--text);
}

.btn-cw-ghost .arrow {
  transition: transform var(--transition);
}

.btn-cw-ghost:hover .arrow {
  transform: translateX(3px);
}

/* Subscribe widget (Bootstrap input-group) */

.subscribe-widget {
  width: 100%;
  max-width: 26rem;
}

.subscribe-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.625rem;
  text-align: left;
}

.subscribe-widget .input-group .form-control {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-elevated);
  border-color: var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
}

.subscribe-widget .input-group .form-control::placeholder {
  color: var(--text-muted);
}

.subscribe-widget .input-group .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-focus);
  z-index: 3;
}

.subscribe-widget .input-group .btn-subscribe {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  padding: 0;
  font-size: 1rem;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.subscribe-widget .input-group .btn-subscribe:hover,
.subscribe-widget .input-group .btn-subscribe:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.social-links a:hover {
  color: var(--text);
  background: var(--border-subtle);
}

.social-links a i {
  font-size: 1.125rem;
}

/* Hero */

.hero {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 38rem;
  margin: 1.25rem auto 2.5rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto;
}

.hero-cta-group .subscribe-widget {
  margin: 0 auto;
}

.hero .subscribe-label {
  text-align: center;
}

.hero .social-links {
  justify-content: center;
}

.hero-employer-cta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-employer-cta a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-employer-cta a:hover {
  color: var(--accent);
}

/* Job cards */

.jobs-section {
  padding-top: 1rem;
}

.jobs-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}

.job-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  height: 100%;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  color: var(--text);
  transform: translateY(-1px);
}

.job-card-org {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.625rem;
}

.job-card-title {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.job-card-teaser {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: auto;
}

.job-card-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 4px;
}

/* Logos */

.logos-section {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.logos-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.25rem 3rem;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: #111111;
  opacity: 0.72;
  transition: opacity var(--transition), transform var(--transition);
}

.logo-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.logo-item svg {
  display: block;
  height: 32px;
  width: auto;
}

.logo-wordmark {
  fill: currentColor;
}

.logo-wordmark--rm {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-wordmark--nob {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.logo-wordmark--lowlands {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.logo-wordmark--boijmans {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Footer */

.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-brand {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 20rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-newsletter {
  margin-left: auto;
}

.footer-newsletter .subscribe-label {
  font-size: 0.875rem;
}

.footer-newsletter .subscribe-widget {
  max-width: 100%;
}

@media (min-width: 992px) {
  .footer-newsletter .subscribe-widget {
    margin-left: auto;
    max-width: 20rem;
  }
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─── Job detail page (Linear Ramp-inspired) ─── */

.job-page-header {
  padding: 2.5rem 0 0;
}

.job-breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.job-breadcrumb a {
  color: var(--text-secondary);
}

.job-breadcrumb a:hover {
  color: var(--text);
}

.job-breadcrumb span {
  margin: 0 0.5rem;
}

.job-detail-title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 0;
  max-width: 52rem;
}

.job-detail-visual {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
  overflow: hidden;
  position: relative;
  background: var(--border-subtle);
}

.job-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-detail-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.job-detail-content .job-detail-lead {
  max-width: none;
}

.job-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

@media (min-width: 992px) {
  .job-detail-layout {
    grid-template-columns: 200px minmax(0, 720px) 200px;
    justify-content: center;
    gap: 6rem;
  }
}

.job-detail-sidebar {
  order: 2;
}

@media (min-width: 992px) {
  .job-detail-sidebar {
    order: 1;
    position: sticky;
    top: 5rem;
    align-self: start;
  }
}

.job-detail-content {
  order: 1;
}

@media (min-width: 992px) {
  .job-detail-content {
    order: 2;
    max-width: 720px;
  }
}

.job-meta-block {
  margin-bottom: 1.5rem;
}

.job-meta-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.job-meta-value {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.job-meta-org {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.job-meta-org a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

.job-meta-org a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.job-apply-card {
  margin-top: 0.5rem;
  padding: 1.25rem;
  background: var(--accent-light);
  border: 1px solid rgba(61, 82, 70, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.job-apply-card p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.job-apply-card .btn-cw-primary {
  width: 100%;
}

.job-content-section {
  margin-bottom: 3rem;
}

.job-content-section h2 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--text);
  border: none;
  padding: 0;
}

.job-content-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1rem;
}

.job-content-section ul {
  color: var(--text-secondary);
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.job-content-section ul li {
  margin-bottom: 0.625rem;
  line-height: 1.75;
}

.job-related {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
}

/* ─── Job page variant: centered (Linear Ramp) ─── */

.job-page--centered {
  padding-bottom: 1rem;
}

.job-page-breadcrumb-wrap {
  padding-top: 2.5rem;
}

.job-page--centered .job-breadcrumb {
  margin-bottom: 0;
}

.job-centered-column {
  box-sizing: border-box;
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.job-centered-column:last-of-type {
  padding-bottom: 4rem;
}

.job-centered-visual {
  box-sizing: border-box;
  width: 100%;
  max-width: 980px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.job-page--centered .job-centered-intro {
  text-align: center;
  padding-top: 3rem;
  margin-bottom: 2.5rem;
}

.job-page--centered .job-centered-org {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.job-page--centered .job-centered-org a {
  color: var(--text-secondary);
  text-decoration: none;
}

.job-page--centered .job-centered-org a:hover {
  color: var(--accent);
}

.job-page--centered .job-detail-title--centered {
  max-width: none;
  margin: 0;
  text-align: center;
}

.job-page--centered .job-detail-visual--centered {
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 16 / 9;
}

.job-page--centered .job-detail-lead {
  text-align: left;
  margin-bottom: 2rem;
}

.job-meta-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  padding: 1.5rem 0;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.job-meta-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.job-meta-bar-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.job-meta-bar-value {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.4;
}

.job-page--centered .job-detail-content {
  max-width: none;
}

.job-page--centered .job-content-section:last-child {
  margin-bottom: 0;
}

.job-page--centered .job-apply-card--banner {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.job-page--centered .job-apply-card--banner p {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
}

@media (min-width: 576px) {
  .job-page--centered .job-apply-card--banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .job-page--centered .job-apply-card--banner p {
    margin-bottom: 0;
    flex: 1;
  }

  .job-page--centered .job-apply-card--banner .btn-cw-primary {
    width: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 767.98px) {
  .job-page-breadcrumb-wrap {
    padding-top: 2rem;
  }

  .job-page--centered .job-centered-intro {
    padding-top: 2rem;
    margin-bottom: 2rem;
  }

  .job-meta-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.5rem;
  }
}

@media (max-width: 479.98px) {
  .job-meta-bar {
    grid-template-columns: 1fr;
  }
}

/* Responsive */

@media (max-width: 767.98px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .jobs-header {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar-cw .btn-cw-primary {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .job-card {
    padding: 1.5rem;
  }

  .logos-grid {
    gap: 1.5rem 2rem;
  }
}
