/* ==========================================================================
   Tegenstroom — main.css
   Design system, layout utilities, component styles.
   Mobile-first.
   ========================================================================== */

/* Tokens
   ========================================================================== */
:root {
  --color-primary:    #2d6b9e;
  --color-secondary:  #1c4f75;
  --color-dark:       #1c4f75;
  --color-accent:     #f0e51c;
  --color-bg:         #f5f5f0;
  --color-text:       #1c4f75;
  --color-white:      #ffffff;

  --color-text-on-dark: #ffffff;
  --color-muted:      rgba(255, 255, 255, 0.85);
  --color-border:     rgba(45, 107, 158, 0.12);

  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --fs-h1: clamp(2rem, 3.5vw + 1rem, 3.5rem);
  --fs-h2: clamp(1.75rem, 3vw + 0.75rem, 3rem);
  --fs-h3: clamp(1.375rem, 1.5vw + 0.75rem, 1.875rem);
  --fs-h4: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.10), 0 20px 40px rgba(0,0,0,0.12);

  --header-height: 72px;
  --container: 1320px;

  --transition: 200ms ease;
}

/* Reset / normalize
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

strong, b { font-weight: 700; }

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--color-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }

/* Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 var(--space-4);
  color: var(--color-primary);
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; text-transform: uppercase; }
h2 { font-size: var(--fs-h2); letter-spacing: 0; text-transform: uppercase; }
h3 { font-size: var(--fs-h3); font-weight: 700; text-transform: uppercase; }
h4 { font-size: var(--fs-h4); font-weight: 700; }

p { margin: 0 0 var(--space-4); }
small, .small { font-size: var(--fs-small); }
.label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

/* On dark backgrounds */
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--color-accent); }
.on-dark, .on-dark p { color: var(--color-text-on-dark); }
.on-dark a { color: var(--color-accent); }

/* Layout utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: var(--space-20);
  position: relative;
}
@media (min-width: 768px) {
  .section { padding-block: var(--space-32); }
}
@media (min-width: 1024px) {
  .section { padding-block: var(--space-40); }
}
@media (min-width: 1440px) {
  .section { padding-block: var(--space-48); }
}

.section--zigzag { padding-bottom: calc(var(--space-20) + 80px); }
@media (min-width: 768px) {
  .section--zigzag { padding-bottom: calc(var(--space-32) + 80px); }
}
@media (min-width: 1024px) {
  .section--zigzag { padding-bottom: calc(var(--space-40) + 80px); }
}
@media (min-width: 1440px) {
  .section--zigzag { padding-bottom: calc(var(--space-48) + 80px); }
}

.section--dark { background-color: var(--color-primary); color: var(--color-text-on-dark); }
.section--accent { background-color: var(--color-accent); color: var(--color-primary); }
.section--light { background-color: var(--color-bg); }
.section--white { background-color: var(--color-white); }

.flex { display: flex; gap: var(--space-4); }
.flex--center { align-items: center; justify-content: center; }
.flex--between { justify-content: space-between; align-items: center; }
.flex--wrap { flex-wrap: wrap; }
.flex--col { flex-direction: column; }

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  margin: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
}
button.btn { font: inherit; }
.btn:hover { text-decoration: none; }

.btn--primary { background-color: var(--color-accent); color: var(--color-dark); border-color: var(--color-accent); }
.btn--accent  { background-color: var(--color-accent); color: var(--color-dark); border-color: var(--color-accent); }

.btn--outline { background-color: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background-color: var(--color-primary); color: var(--color-bg); }

.btn--ghost-light { background-color: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn--ghost-light:hover { background-color: var(--color-accent); color: var(--color-primary); border-color: var(--color-accent); }

/* Spike-flow wrapper for filled buttons. Wrapper is added by JS so the
   button stays usable without it. SVG sits behind the button and reveals on hover. */
.btn-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-wrap > .btn { position: relative; z-index: 2; }
.spikes {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  max-width: none;
  width: auto;
  height: auto;
}

/* Tags / badges
   ========================================================================== */
.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  background-color: var(--color-secondary);
  color: var(--color-white);
}
.tag--accent { background-color: var(--color-accent); color: var(--color-primary); }
.tag--outline { background-color: transparent; border: 1px solid var(--color-secondary); color: var(--color-secondary); }

/* Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-dark);
  color: var(--color-white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-logo:hover { color: var(--color-white); text-decoration: none; }
.site-logo {
  align-self: flex-start;
  position: relative;
  z-index: 2;
  transition: transform var(--transition);
}
.site-header.is-scrolled .site-logo {
  transform: translateY(-50px);
}
.site-logo img {
  height: 112px;
  width: auto;
  max-height: 112px;
  max-width: none;
  display: block;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform var(--transition);
}
.site-logo:hover img { transform: translateY(2px); }
@media (max-width: 600px) {
  .site-logo img { height: 88px; max-height: 88px; }
  .site-header.is-scrolled .site-logo { transform: translateY(-38px); }

  .site-header {
    transition: transform var(--transition), box-shadow var(--transition);
    will-change: transform;
  }
  .site-header.is-hidden {
    transform: translateY(calc(-1 * var(--header-height)));
  }
  /* Keep the logo at its scrolled position (halfway tucked) even when the
     header bar has slid up — translate it back down by the header's height. */
  .site-header.is-hidden .site-logo {
    transform: translateY(calc(var(--header-height) - 38px));
  }
}

.site-nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-6);
  align-items: center;
}
.site-nav__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  align-items: center;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav__overlay {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background-color: var(--color-dark);
  display: none;
  flex-direction: column;
  padding: var(--space-8) var(--space-4);
  z-index: 40;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.site-nav__overlay.is-open { display: flex; }
.site-nav__overlay .site-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
}
.site-nav__overlay .site-nav__link {
  font-size: 1.5rem;
}

@media (min-width: 1024px) {
  .site-nav__list { display: flex; }
  .nav-toggle { display: none; }
  .site-nav__overlay { display: none !important; }
}

/* Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 70vh;
  min-height: 70dvh;
  display: flex;
  align-items: center;
  padding-block: var(--space-8);
  background-color: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding-block: var(--space-16); }
}
@media (min-width: 1024px) {
  .hero { padding-block: var(--space-16) var(--space-24); }
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 79, 117, 0.30) 0%, rgba(28, 79, 117, 0.75) 100%);
  z-index: 2;
}

/* Four drifting zigzag bands, stacked vertically with different colors,
   sizes and speeds for a layered counter-current effect. */
.hero__currents {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero__current {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  -webkit-mask-image: url('/assets/img/zigzag.svg');
          mask-image: url('/assets/img/zigzag.svg');
  -webkit-mask-repeat: repeat-x;
          mask-repeat: repeat-x;
  -webkit-mask-position: 0 100%;
          mask-position: 0 100%;
  will-change: mask-position, -webkit-mask-position;
}
/* Layer 1 — bottom, mid-cyan, medium tile, drifts right */
.hero__current--1 {
  top: 480px;
  height: 220px;
  background: linear-gradient(180deg, rgba(126, 197, 224, 0) 0%, rgba(126, 197, 224, 0.13) 80%);
  -webkit-mask-size: 1500px 100%;
          mask-size: 1500px 100%;
  animation: hero-current-1 16s linear infinite;
}
@keyframes hero-current-1 {
  from { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  to   { -webkit-mask-position: 1500px 100%; mask-position: 1500px 100%; }
}
/* Layer 2 — higher and larger, pale sky-blue, drifts left */
.hero__current--2 {
  top: 225px;
  height: 265px;
  background: linear-gradient(180deg, rgba(190, 225, 240, 0) 0%, rgba(190, 225, 240, 0.06) 80%);
  -webkit-mask-size: 2200px 100%;
          mask-size: 2200px 100%;
  animation: hero-current-2 24s linear infinite reverse;
}
@keyframes hero-current-2 {
  from { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  to   { -webkit-mask-position: 2200px 100%; mask-position: 2200px 100%; }
}
/* Layer 3 — above 2, smaller than 1, deeper navy, drifts right */
.hero__current--3 {
  top: 90px;
  height: 170px;
  background: linear-gradient(180deg, rgba(36, 95, 135, 0) 0%, rgba(36, 95, 135, 0.07) 80%);
  -webkit-mask-size: 1100px 100%;
          mask-size: 1100px 100%;
  animation: hero-current-3 12s linear infinite;
}
@keyframes hero-current-3 {
  from { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  to   { -webkit-mask-position: 1100px 100%; mask-position: 1100px 100%; }
}
/* Layer 4 — topmost, smallest, near-white, drifts left */
.hero__current--4 {
  top: 10px;
  height: 95px;
  background: linear-gradient(180deg, rgba(230, 240, 250, 0) 0%, rgba(230, 240, 250, 0.05) 80%);
  -webkit-mask-size: 800px 100%;
          mask-size: 800px 100%;
  animation: hero-current-4 30s linear infinite reverse;
}
@keyframes hero-current-4 {
  from { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  to   { -webkit-mask-position: 800px 100%; mask-position: 800px 100%; }
}
/* Layer 5 — very bottom, large tile, slow, drifts left */
.hero__current--5 {
  top: 650px;
  height: 320px;
  background: linear-gradient(180deg, rgba(126, 197, 224, 0) 0%, rgba(126, 197, 224, 0.10) 80%);
  -webkit-mask-size: 2800px 100%;
          mask-size: 2800px 100%;
  animation: hero-current-5 36s linear infinite reverse;
}
@keyframes hero-current-5 {
  from { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  to   { -webkit-mask-position: 2800px 100%; mask-position: 2800px 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__current { animation: none; }
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-8);
  max-width: 880px;
}
@media (min-width: 768px) {
  .hero__content { padding-block: var(--space-16); }
}
.hero__panel {
  position: relative;
  background-color: var(--color-dark);
  padding: var(--space-8) var(--space-6) calc(var(--space-8) + 64px);
  border-radius: var(--radius-md);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero__panel { padding: var(--space-16) var(--space-24) calc(var(--space-16) + 80px); }
}
.hero__title {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
  line-height: 1.05;
}
.hero__subtitle {
  color: var(--color-text-on-dark);
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem);
  font-weight: 300;
  margin: 0 0 var(--space-8);
  max-width: 65ch;
  text-wrap: balance;
}

/* Section: text
   ========================================================================== */
.section-text__inner {
  max-width: 760px;
  margin-inline: auto;
}
.section-text--bordered {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-6);
}
.section-text .rich-text > *:first-child { margin-top: 0; }
.section-text .rich-text > *:last-child { margin-bottom: 0; }
.section-text .rich-text h2,
.section-text .rich-text h3 { margin-top: var(--space-8); }
.section-text .rich-text img { border-radius: var(--radius-md); margin-block: var(--space-6); }

/* Section: cards
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--color-bg);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.card:hover .card__media img { transform: scale(1.04); }
.card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.card__title { font-size: 1.25rem; margin: 0; }
.card__meta { font-size: var(--fs-small); color: var(--color-secondary); }
.card__excerpt { color: var(--color-text); margin: 0; flex: 1; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-secondary);
}
.card__link::after { content: '\2192'; transition: transform var(--transition); }
.card:hover .card__link::after { transform: translateX(4px); }

/* Section: banner
   ========================================================================== */
.section-banner {
  padding-block: var(--space-16);
  text-align: center;
}
.section-banner--primary { background-color: var(--color-primary); color: var(--color-white); }
.section-banner--primary h2 { color: var(--color-accent); }
.section-banner--accent { background-color: var(--color-accent); color: var(--color-primary); }
.section-banner--accent h2 { color: var(--color-primary); }
.section-banner h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, 3rem);
  margin: 0 0 var(--space-4);
}
.section-banner p { font-size: 1.125rem; max-width: 60ch; margin-inline: auto; margin-bottom: var(--space-8); }

/* Section: gallery
   ========================================================================== */
.gallery {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.gallery__item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(45, 107, 158, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-4);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: 0;
  color: var(--color-white);
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color var(--transition);
}
.lightbox__close:hover,
.lightbox__nav:hover { background-color: rgba(255,255,255,0.12); }
.lightbox__close { top: var(--space-4); right: var(--space-4); }
.lightbox__nav--prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--space-4); top: 50%; transform: translateY(-50%); }

/* Section: agenda
   ========================================================================== */
.agenda { display: flex; flex-direction: column; gap: var(--space-12); }
.agenda__day { }
.agenda__day-title {
  font-size: 1.5rem;
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent);
}
.agenda__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.agenda__item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  align-items: start;
}
@media (min-width: 480px) {
  .agenda__item { grid-template-columns: 80px 1fr; gap: var(--space-4); }
}
@media (min-width: 768px) {
  .agenda__item { grid-template-columns: 100px 1fr auto; align-items: center; }
}
.agenda__time {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 1rem;
}
.agenda__body h4 { margin: 0 0 var(--space-1); font-size: 1.125rem; }
.agenda__location { color: var(--color-secondary); font-size: var(--fs-small); }
.agenda__badge { justify-self: start; }
@media (min-width: 768px) { .agenda__badge { justify-self: end; } }

/* Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
  padding-block: var(--space-16) var(--space-8);
}
.site-footer a { color: var(--color-white); }
.site-footer a:hover { color: var(--color-accent); text-decoration: none; }

.site-footer__cols {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}

.site-footer__col h4 {
  color: var(--color-accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-4);
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__col p { color: var(--color-muted); margin: 0 0 var(--space-2); }

.social-links { display: flex; flex-direction: column; gap: var(--space-2); }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.social-links__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.sponsors-marquee {
  background-color: transparent;
  overflow: hidden;
  position: relative;
  margin-top: var(--space-12);
}
.sponsors-marquee::before,
.sponsors-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  aspect-ratio: 1750.88 / 5093;            /* preserves the shape of the source */
  background: url('/assets/img/zagzig.webp') no-repeat center / 100% 100%;
  z-index: 2;
  pointer-events: none;
}
.sponsors-marquee::before { left: 0; }
.sponsors-marquee::after  { right: 0; transform: scaleX(-1); }
.sponsors-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.sponsors-marquee__list {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  list-style: none;
  margin: 0;
  padding: 0 var(--space-6);
  flex-shrink: 0;
}
.sponsors-marquee__item { flex-shrink: 0; }
.sponsors-marquee__item img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition);
}
@media (min-width: 768px) {
  .sponsors-marquee__item img { width: 192px; height: 192px; }
}
.sponsors-marquee__item img:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .sponsors-marquee { overflow-x: auto; }
}

.site-footer__copy {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-muted);
}
/* Contact form
   ========================================================================== */
.contact-form-wrap {
  max-width: 720px;
  margin-inline: auto;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .contact-form__row { grid-template-columns: 1fr; }
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.contact-form__field--captcha { max-width: 220px; }
.contact-form label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
}
.contact-form input,
.contact-form textarea {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.contact-form textarea { resize: vertical; }
.contact-form__err {
  color: #c43d3d;
  font-size: 0.85rem;
}
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-success {
  background: rgba(45, 107, 158, 0.05);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
}
.form-error {
  background: rgba(196, 61, 61, 0.08);
  border-left: 4px solid #c43d3d;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.site-footer__credit {
  margin-top: var(--space-2);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-muted);
}
.site-footer__credit-makers { display: block; }
@media (min-width: 768px) {
  .site-footer__credit-makers { display: inline; }
}

/* Film page
   ========================================================================== */
.film-detail {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .film-detail { grid-template-columns: minmax(0, 1fr) 1.5fr; }
}
.film-detail__poster img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); width: 100%; }
.film-detail__meta { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-6); margin-block: var(--space-6); }
.film-detail__meta dt { font-family: var(--font-heading); font-weight: 600; color: var(--color-secondary); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.06em; }
.film-detail__meta dd { margin: 0; color: var(--color-text); }

/* Form basics (contact)
   ========================================================================== */
.form-row { margin-bottom: var(--space-4); }
.form-row label { display: block; font-family: var(--font-heading); font-weight: 600; margin-bottom: var(--space-2); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font: inherit;
  background-color: var(--color-white);
}

/* Utilities (responsive helpers)
   ========================================================================== */
@media (max-width: 479px) {
  .hide-xs { display: none; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .hide-sm { display: none; }
}

/* Skip link for a11y
   ========================================================================== */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: var(--space-2) var(--space-4);
  z-index: 100;
  font-weight: 700;
  transform: translateY(-100%);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }

/* Branding decoratives
   ========================================================================== */
.zigzag-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 64px;
  background: url('/assets/img/zigzag.webp') no-repeat center bottom / contain;
  border: 0;
  margin: 0;
  pointer-events: none;
}
.zigzag-divider--flip { transform: scaleY(-1); }

.section-festival-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  justify-content: center;
  margin-block: var(--space-6);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-festival-meta__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.section-festival-meta__item::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url('/assets/img/diamond-yellow.webp') no-repeat center / contain;
  display: inline-block;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  margin-top: var(--space-6);
}

.row-2col {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .row-2col { grid-template-columns: 1fr 1fr; } }

/* Friends-section: title + intro left, list right */
.friends-section__row { align-items: start; }
.friends-section__title-col h2 { margin: 0 0 var(--space-4); }
.friends-section__intro {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-text);
  max-width: 38ch;
}
.friends-section__content-col > *:first-child { margin-top: 0; }
.friends-section__content-col > *:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .friends-section__row { gap: var(--space-12); }
}

/* Winnaars edition cards — one card per prize, sorted alphabetically.
   Matches the look of the programma section-list cards: white bg,
   subtle shadow, yellow left border. */
.winnaars-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.winnaars-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.winnaars-card__prize {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
}
.winnaars-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: none;
  color: var(--color-primary);
}
.winnaars-card__title::after {
  display: none;
}

/* Section: list
   ========================================================================== */
.section-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 880px;
  margin-inline: auto;
}
.section-list__item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  border-left: 4px solid var(--color-accent);
}
.section-list__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}
@media (min-width: 768px) {
  .section-list__head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
  }
}
.section-list__title {
  font-size: 1.25rem;
  margin: 0;
  text-transform: none;
}
.section-list__meta {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  flex-shrink: 0;
}
.section-list__desc {
  margin: 0;
  color: var(--color-text);
}

/* Section: image + text
   ========================================================================== */
.section-image-text__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .section-image-text__grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
  .section-image-text--right .section-image-text__grid > .section-image-text__image { order: 2; }
}
.section-image-text__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.section-image-text__image--full {
  margin-bottom: var(--space-8);
}
.section-image-text__image--full img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.section-image-text__content > *:first-child { margin-top: 0; }
.section-image-text__content > *:last-child { margin-bottom: 0; }
.section-image-text__content .rich-text > *:first-child { margin-top: 0; }
.section-image-text__content .rich-text > *:last-child { margin-bottom: 0; }

.section--accent a { color: var(--color-primary); }
.section--accent .btn--primary { background-color: var(--color-primary); color: var(--color-accent); border-color: var(--color-primary); }
.section--accent .btn--primary:hover { background-color: var(--color-dark); color: var(--color-accent); border-color: var(--color-dark); }

.on-dark .btn--outline { color: var(--color-accent); border-color: var(--color-accent); }
.on-dark .btn--outline:hover { background-color: var(--color-accent); color: var(--color-primary); }

.on-dark .btn--primary,
.on-dark .btn--accent { color: var(--color-dark); }

/* Two-column section layout: 2/3 text + 1/3 aside (e.g. decorative diamond).
   Capped at the same 760px footprint as .section-text__inner so the section
   doesn't visually widen when an aside column is added. */
.section-aside {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  align-items: center;
  max-width: 760px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .section-aside { grid-template-columns: 2fr 1fr; }
}
.section-aside__title { grid-column: 1 / -1; }
.section-aside__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section__diamond {
  display: block;
  width: 100%;
  aspect-ratio: 2487 / 1887;
  pointer-events: none;
}
.section__diamond--yellow {
  background: url('/assets/img/diamond-yellow.webp') no-repeat center / contain;
}
.section__diamond--blue {
  background: url('/assets/img/diamond-blue.webp') no-repeat center / contain;
}
@media (max-width: 900px) {
  .section-aside__media { display: none; }
}

/* ==========================================================================
   Color balance — site-wide
   White-dominant page, dark blue reserved for header/footer/hero, yellow
   only used as small accents (buttons, h2 zigzag, end-of-section dividers).
   ========================================================================== */

html,
body {
  background-color: var(--color-primary);
}

/* Sections default to white */
.section,
.section--light {
  background-color: #ffffff;
  color: var(--color-text);
}

/* Subtle alternating sections — offwhite */
.section--subtle {
  background-color: #f5f5f0;
  color: var(--color-text);
}

/* Dark sections — used only for hero/footer; .section--dark is rare */
.section--dark {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

/* Auto-alternate section backgrounds within <main>: even = white,
   odd = subtle offwhite. The hero is at position 1 and keeps its
   own dark background via .hero. Explicit .section--dark sections
   stay dark. This makes every section visually distinct from its
   neighbour, regardless of which class modifier the template used. */
main > section.section:nth-of-type(2n):not(.section--dark) {
  background-color: #ffffff;
}
main > section.section:nth-of-type(2n+1):not(.section--dark) {
  background-color: #f5f5f0;
}
main > section.section-banner:nth-of-type(2n) {
  background-color: #ffffff;
}
main > section.section-banner:nth-of-type(2n+1) {
  background-color: #f5f5f0;
}

/* Accent sections — no longer yellow background; subtle offwhite + yellow top border */
.section--accent {
  background-color: #ffffff;
  color: var(--color-text);
  border-top: 3px solid var(--color-accent);
}
.section--accent h1,
.section--accent h2,
.section--accent h3 {
  color: var(--color-primary);
}
.section--accent a:not(.btn) {
  color: var(--color-primary);
}

/* Headings on light backgrounds: dark blue */
.section h1,
.section h2,
.section h3,
.section--light h1,
.section--light h2,
.section--light h3,
.section--subtle h1,
.section--subtle h2,
.section--subtle h3 {
  color: var(--color-primary);
}

/* Yellow headings ONLY on dark backgrounds */
.section--dark h1,
.section--dark h2,
.section--dark h3,
.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: var(--color-accent);
}

/* Small zigzag accent under H2 in light sections (uses zigzag.webp,
   aspect ratio ~10.28:1, so 96px wide ≈ 9px tall) */
.section h2::after,
.section--light h2::after,
.section--subtle h2::after,
.section-banner h2::after {
  content: '';
  display: block;
  width: 96px;
  height: 10px;
  background: url('/assets/img/zigzag.webp') no-repeat left center / contain;
  margin-top: 14px;
}
.section--dark h2::after,
.on-dark h2::after,
.hero h1::after {
  display: none;
}

/* Center the zigzag when the heading sits in a centered block —
   this covers .text-center as a parent, .text-center directly on
   the h2, and any heading inside .section-banner (which is centered
   by default). */
.text-center h2::after,
h2.text-center::after,
.section-banner h2::after {
  margin-inline: auto;
  background-position: center center;
}

/* Buttons — refined pill, smaller, uppercase */
.btn,
.btn--primary,
.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
  padding: 10px 28px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  font-weight: 700;
}
.btn:hover,
.btn--primary:hover,
.btn--accent:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* Outline button — dark blue on light bg */
.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 10px 28px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  font-weight: 700;
}
.btn--outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* Outline button on dark sections */
.section--dark .btn--outline,
.on-dark .btn--outline,
.hero .btn--outline {
  color: #ffffff;
  border-color: #ffffff;
  background-color: transparent;
}
.section--dark .btn--outline:hover,
.on-dark .btn--outline:hover,
.hero .btn--outline:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

/* Body links: dark blue with subtle yellow underline (only inside content,
   not header/footer/nav/buttons). Buttons are excluded so they never get
   an underline. */
.rich-text a:not(.btn),
.section-text a:not(.btn),
.section-image-text__content a:not(.btn) {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}
.rich-text a:not(.btn):hover,
.section-text a:not(.btn):hover,
.section-image-text__content a:not(.btn):hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-primary);
}

/* Belt-and-braces: every .btn must never carry an underline. */
.btn,
.btn:hover,
.btn:focus,
.btn:visited {
  text-decoration: none;
}

/* Cards — white with subtle shadow & light border */
.card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}

/* Section end-marker zigzag — every .section and .section-banner gets a
   horizontal zigzag at its bottom edge to mark the end of the section.
   The hero panel's own zigzag (inside .hero__panel) is untouched.
   Hide inline <hr class="zigzag-divider"> elements so the section-end
   zigzag is uniform across snippet types. */
.section > .zigzag-divider {
  display: none;
}

.section,
.section-banner {
  position: relative;
  padding-bottom: calc(var(--space-20) + 80px);
}
@media (min-width: 768px) {
  .section,
  .section-banner {
    padding-bottom: calc(var(--space-32) + 80px);
  }
}
@media (min-width: 1024px) {
  .section,
  .section-banner {
    padding-bottom: calc(var(--space-40) + 80px);
  }
}
@media (min-width: 1440px) {
  .section,
  .section-banner {
    padding-bottom: calc(var(--space-48) + 80px);
  }
}

.section::after,
.section-banner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: url('/assets/img/zigzag.webp') no-repeat center bottom / contain;
  pointer-events: none;
}

/* Section banner — variants. No yellow background; matches the about
   section's subtle offwhite. */
.section-banner--accent {
  background-color: #f5f5f0;
  color: var(--color-text);
}
.section-banner--accent h2 {
  color: var(--color-primary);
}
.section-banner--accent .btn--outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.section-banner--accent .btn--outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Sponsor marquee — logos white with low opacity on dark footer */
.sponsors-marquee__item img {
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--transition);
}
.sponsors-marquee__item img:hover {
  opacity: 1;
}

/* About section diamond — switch yellow disc to blue on light bg */
.section--subtle .section__diamond--yellow,
.section--light .section__diamond--yellow {
  background-image: url('/assets/img/diamond-blue.webp');
}

/* Contact form success block — keep accent border but on white */
.form-success {
  background: #ffffff;
  border-left: 4px solid var(--color-accent);
}

/* Tag accent — keep, but ensure it has enough contrast on white */
.tag--accent {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

/* ==========================================================================
   Page transitions
   - Modern browsers (Chrome/Edge/Safari): cross-document View Transitions
     animate between full pages on same-origin <a> clicks. Non-supporting
     browsers (Firefox today) ignore @view-transition and fall back to a
     plain page load.
   - Always: a subtle opacity fade-in on <main> at first paint, so even
     the View-Transitions case ends on a smooth state and non-supporting
     browsers still get some softness on each new page.
   - Respects prefers-reduced-motion.
   ========================================================================== */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

main#main {
  animation: pageFadeIn 200ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  main#main { animation: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 0s; }
}

/* Calls — status badges, carousel, detail
   ========================================================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.status-badge--open {
  background-color: var(--color-accent);
  color: var(--color-primary);
}
.status-badge--soon {
  background-color: rgba(45, 107, 158, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(45, 107, 158, 0.18);
}
.status-badge--closed {
  background-color: rgba(45, 107, 158, 0.06);
  color: var(--color-secondary);
  opacity: 0.75;
}

/* Carousel of open calls on the homepage */
.calls-carousel-section { position: relative; }
.calls-carousel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.calls-carousel__header h2 { margin: 0; }
.calls-carousel__nav {
  display: flex;
  gap: var(--space-2);
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), color var(--transition), opacity var(--transition);
}
.carousel-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-bg);
}
.carousel-btn[disabled],
.carousel-btn.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.calls-carousel {
  overflow: hidden;
}

.calls-carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: 10%;
  padding-right: 30%;
}
.calls-carousel__track::-webkit-scrollbar {
  display: none;
}

.calls-carousel__track .call-card {
  flex: 0 0 60%;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .calls-carousel__track {
    padding-left: 5%;
    padding-right: 15%;
  }
  .calls-carousel__track .call-card {
    flex: 0 0 80%;
  }
}
.calls-carousel__footer {
  text-align: center;
  margin-top: var(--space-8);
}

/* Call cards — used by the homepage carousel and the /calls overview grid.
   Badge + deadline sit on one line; price aligns to the bottom-left above the
   "Bekijk call" link. */
.call-card .card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.call-card .card__meta-deadline {
  font-size: var(--fs-small);
  color: var(--color-secondary);
}
.call-card .card__price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--space-2);
}
/* In the overview grid, make every card the same height so the link sits at
   the bottom regardless of how long the description is. */
.calls-grid {
  align-items: stretch;
}
.calls-grid .call-card {
  height: 100%;
}

/* Call detail layout */
.call-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-top: var(--space-6);
}
@media (min-width: 900px) {
  .call-detail {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}
.call-detail__main .status-badge { margin-bottom: var(--space-4); }
.call-detail__lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--color-secondary);
  margin-block: var(--space-2) var(--space-8);
}
.call-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}
.call-requirements {
  max-width: 760px;
}

.call-info-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
@media (min-width: 900px) {
  .call-info-card {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
  }
}
.call-info-card__meta {
  margin: 0 0 var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.call-info-card__meta dt {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin: 0;
}
.call-info-card__meta dd {
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.call-info-card__meta dd:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.call-info-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: var(--space-4);
}
.call-info-card__payment {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background-color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
}

/* Payment form
   ========================================================================== */
.payment-form {
  margin-top: var(--space-4);
}
.payment-form .form-group {
  margin-bottom: var(--space-4);
}
.payment-form label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.payment-form input[type="text"],
.payment-form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color 0.2s;
}
.payment-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.payment-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  margin: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-small);
}
.payment-summary strong {
  font-size: 1.1rem;
  color: var(--color-primary);
}
.call-info-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-small);
}
.call-info-row:last-child {
  border-bottom: none;
}
.call-closed-notice {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background-color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  text-align: center;
  color: var(--color-text);
}
