/* ==========================================================================
   base.css — shared design system for oestriadam.be
   Brand: bold royal-blue + cream, Work Sans throughout (Black 900 / Bold 700 / Regular 400)
   Used by index.html, faq.html and results.html.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Palette (from the 2026 draaiboek) */
  --c-blue: #2a49c9;
  --c-blue-dark: #1f37a0;
  --c-blue-deep: #16215c;
  --c-cream: #e8e7e2;
  --c-cream-2: #f1f0ec;
  --c-navy: #1a2350;
  --c-red: #d9352a;
  --c-white: #ffffff;

  /* Typography */
  --font-display: "Work Sans", "Arial Narrow", Arial, sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, Arial, sans-serif;
  /* Fluid sizes */
  --fs-wordmark: clamp(56px, 14vw, 140px);
  --fs-h1: clamp(32px, 6vw, 56px);
  --fs-h2: clamp(22px, 4vw, 34px);
  --fs-h3: clamp(18px, 3vw, 22px);
  --fs-body: clamp(15px, 2.2vw, 18px);
  --fs-label: clamp(12px, 2vw, 14px);

  /* Layout */
  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(22, 33, 92, 0.18);

  /* Mobile viewport height helper (set by common.js) */
  --vh: 1vh;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-navy);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---- Display / wordmark ------------------------------------------------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin: 0;
}

/* ---- Section / panel system -------------------------------------------- */
/* Full-viewport panel (used for the scroll-snap homepage) */
.panel {
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6vh 5vw;
}

/* Colour variants — usable on panels and on document sections */
.bg-blue {
  background: var(--c-blue);
  color: var(--c-white);
}

.bg-cream {
  background: var(--c-cream);
  color: var(--c-navy);
}

.bg-deep {
  background: var(--c-blue-deep);
  color: var(--c-white);
}

.bg-blue h1,
.bg-blue h2,
.bg-blue h3,
.bg-deep h1,
.bg-deep h2,
.bg-deep h3 {
  color: var(--c-white);
}

.bg-cream h1,
.bg-cream h2,
.bg-cream h3 {
  color: var(--c-blue);
}

/* Photo panel with a blue brand wash on top for legibility */
.bg-photo {
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  color: var(--c-white);
  position: relative;
}

.bg-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 33, 92, 0.55),
    rgba(42, 73, 201, 0.55)
  );
}

.bg-photo > * {
  position: relative;
  z-index: 1;
}

/* ---- Small bold all-caps label (CONTACTPERSOON, MATERIAAL, …) ----------- */
.label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--fs-label);
  color: var(--c-blue);
}

.bg-blue .label,
.bg-deep .label {
  color: var(--c-white);
}

/* ---- Pills / buttons ---------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 2.4vw, 18px);
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

/* Solid white pill — for use on blue backgrounds */
.pill--light {
  background: var(--c-white);
  color: var(--c-blue);
}
.pill--light:hover,
.pill--light:focus {
  transform: translateY(-2px);
  background: var(--c-cream-2);
}

/* Outline pill on blue */
.pill--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.5);
}
.pill--ghost:hover,
.pill--ghost:focus {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

/* Solid blue pill — for use on cream backgrounds */
.pill--blue {
  background: var(--c-blue);
  color: var(--c-white);
}
.pill--blue:hover,
.pill--blue:focus {
  transform: translateY(-2px);
  background: var(--c-blue-dark);
}

/* ---- Round icon button (mail, socials) --------------------------------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-blue);
  color: var(--c-white);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease;
}

.icon-btn:hover,
.icon-btn:focus {
  transform: translateY(-2px);
  background: var(--c-blue-dark);
  color: var(--c-white);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* White circle variant — for use on dark/photo backgrounds */
.icon-btn--light {
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.icon-btn--light:hover,
.icon-btn--light:focus {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.8);
}

/* ---- Cards -------------------------------------------------------------- */
.card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}

/* Left-accent info card, mirrors the draaiboek bullet blocks */
.card--accent {
  border-left: 6px solid var(--c-blue);
}

/* ---- Links -------------------------------------------------------------- */
a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover,
a:focus {
  color: var(--c-blue-dark);
}

.bg-blue a,
.bg-deep a,
.bg-photo a {
  color: var(--c-white);
}
.bg-blue a:hover,
.bg-deep a:hover,
.bg-photo a:hover {
  color: var(--c-cream-2);
}

/* ---- Sponsor section (shared by index + results) ----------------------- */
.sponsors {
  padding: 10vh 5vw 7vh;
  gap: 4vh;
  justify-content: flex-start;
}

.sponsors .wordmark {
  font-size: var(--fs-h1);
}

.sponsor-grid {
  width: min(1500px, 92vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vh, 56px) clamp(32px, 6vw, 80px);
  align-items: center;
  justify-items: center;
  margin: 2vh auto 0;
}

@media (min-width: 900px) {
  .sponsor-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.sponsor-grid a {
  display: contents;
}

.sponsor-grid img {
  width: min(34vw, 230px);
  max-height: 120px;
  object-fit: contain;
  transition: filter 0.25s ease;
}

/* On blue backgrounds, knock sponsor logos out to white */
.bg-blue .sponsor-grid img,
.bg-deep .sponsor-grid img {
  filter: brightness(0) invert(1);
}

.bg-blue .sponsor-grid a:hover img,
.bg-blue .sponsor-grid a:focus img,
.bg-deep .sponsor-grid a:hover img,
.bg-deep .sponsor-grid a:focus img {
  filter: none;
}

/* ---- Side navigation dots (homepage) ----------------------------------- */
.nav-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.nav-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(42, 73, 201, 0.3);
  border: 2px solid rgba(42, 73, 201, 0.55);
  transition: all 0.3s ease;
}

.nav-dots .dot.active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  transform: scale(1.25);
}

/* ---- Back-to-top button (faq) ------------------------------------------ */
.back-to-top {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 1000;
}

.back-to-top:hover {
  transform: scale(1.08);
  background: var(--c-blue-dark);
}

/* ---- Utilities ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.text-red {
  color: var(--c-red);
}
