/* ==========================================================================
   Sinterklaas Intocht Odijk - basisstijlen (kleuren, typografie, helpers)
   ========================================================================== */

:root {
  --font-size: 16px;

  /* Sint kleurenpalet */
  --navy-900: #0b1531;
  --navy-800: #122046;
  --navy-700: #1b2e61;
  --navy-glow: #2a3f7e;
  --red: #c1212f;
  --red-700: #9a1622;
  --red-300: #e06672;
  --cream: #fbf2dd;
  --cream-200: #f6e7c6;
  --cream-300: #efd9ad;
  --gold: #d6a23a;
  --gold-300: #ecca7b;
  --gold-100: #f6e7bc;
  --ink: #2a2014;
  --ink-soft: #5e5240;
  --ink-faint: #8a7c66;
  --paper: #fbf3e0;            /* lichte tekst op donkere vlakken */
  --paper-soft: rgba(251, 243, 224, 0.82);
  --paper-faint: rgba(251, 243, 224, 0.6);

  --border-gold: rgba(214, 162, 58, 0.28);
  --border-gold-soft: rgba(214, 162, 58, 0.22);
  --shadow-card: 0 18px 44px -22px rgba(28, 18, 6, 0.42);
  --shadow-soft: 0 10px 30px -18px rgba(28, 18, 6, 0.35);
  --radius: 18px;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(64px, 9vw, 120px);
  --nav-height: 76px;
}

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

html { font-size: var(--font-size); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
iframe { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(2.9rem, 8.5vw, 6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.06rem; }
p { margin: 0; }

a { color: inherit; }
button { font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.5; cursor: pointer; }
input, textarea, select { font-family: var(--sans); font-size: 1rem; font-weight: 400; line-height: 1.5; }
label { font-weight: 600; }

/* --- Layout helpers ------------------------------------------------------ */
.so-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.so-section { padding: var(--section-pad) 0; position: relative; }
.so-section--dark { color: var(--paper); }
.so-section.so-section--dark h2 { color: var(--paper); }
.so-section.so-section--dark .so-accent { color: var(--gold-300); }
.so-section.so-section--dark .so-eyebrow { color: var(--gold-300); }

/* Sectie-inleiding: "✦ Hoofdstuk x ✦" + kop + intro */
.so-eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.so-section h2 { color: var(--ink); margin: 16px 0 0; }
.so-accent { font-style: italic; color: var(--red); }
.so-intro { color: var(--ink-soft); margin-top: 18px; font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.6; }
.so-section--dark .so-intro { color: var(--paper-soft); }
.so-section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }

/* Kaart */
.so-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-gold-soft);
}

/* Knoppen */
.so-btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.16s ease, background 0.2s ease, color 0.2s ease;
}
.so-btn:hover { transform: translateY(-2px); }
.so-btn--red { background: var(--red); color: #fff; box-shadow: 0 12px 26px -12px rgba(193, 33, 47, 0.7); }
.so-btn--gold { background: linear-gradient(160deg, var(--gold-300), var(--gold)); color: #4a3408; box-shadow: 0 12px 26px -14px rgba(214, 162, 58, 0.85); }
.so-btn--ghost { background: transparent; color: var(--paper); border: 1.5px solid rgba(236, 202, 123, 0.5); }
.so-btn--ghost:hover { background: rgba(236, 202, 123, 0.12); }
.so-btn--outline { background: transparent; color: var(--red); border: 1.5px solid rgba(193, 33, 47, 0.45); }
.so-btn--outline:hover { background: rgba(193, 33, 47, 0.06); }
.so-btn--small { padding: 10px 20px; font-size: 0.92rem; }

/* Formuliervelden */
.so-field { display: block; }
.so-field__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.so-input {
  width: 100%;
  background: var(--cream);
  border: 1px solid rgba(214, 162, 58, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 1rem;
  outline: none;
}
.so-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
textarea.so-input { resize: vertical; line-height: 1.55; }
.so-section--dark .so-field__label { color: var(--gold-300); }
.so-section--dark .so-input { background: rgba(11, 21, 49, 0.55); border-color: rgba(236, 202, 123, 0.32); color: var(--paper); }

/* Sterrenhemel (zie sinterklaas_odijk_starfield()) */
.so-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.so-stars span {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-100);
  box-shadow: 0 0 8px 1px rgba(246, 231, 188, 0.7);
  animation: twinkle var(--dur, 3s) var(--delay, 0s) ease-in-out infinite alternate;
}

/* Vlaggenlijn (zie sinterklaas_odijk_bunting()) */
.so-bunting { position: absolute; top: 0; left: 0; width: 100%; height: 50px; pointer-events: none; }
.so-bunting--flipped { transform: scaleY(-1); }

/* Toegankelijkheid */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 8px; }

/* Standaard WordPress-pagina's (page.php / index.php) */
.so-page { padding: calc(var(--nav-height) + 48px) 0 var(--section-pad); }
.so-page .so-container { max-width: 760px; }
.so-page h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 24px; }
.so-page .entry-content > * + * { margin-top: 1em; }

/* --- Animaties ------------------------------------------------------------ */
@keyframes twinkle { from { opacity: 0.25; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes bob { from { transform: translateX(-50%) translateY(0) rotate(-1.2deg); } to { transform: translateX(-50%) translateY(-10px) rotate(1.2deg); } }
@keyframes drift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes pop { 0% { transform: scale(0.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes heliRotor { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes heliHover { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
@keyframes heliFly { 0% { transform: translateX(0) translateY(0); } 50% { transform: translateX(60vw) translateY(-8px); } 100% { transform: translateX(120vw) translateY(0); } }

.so-heli-rotor { transform-origin: 30px 8px; animation: heliRotor 0.35s linear infinite; }
.so-heli-tailrotor { transform-origin: 61px 24px; animation: heliRotor 0.25s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* Sluitknop: overal op de site hetzelfde (rood rondje, gouden rand, wit kruis, rechtsboven) */
.so-close {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  border: 3px solid var(--gold-300);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.so-close:hover { background: var(--red-700); }
.so-close:active { transform: scale(0.94); }
.so-close:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; }
.so-close svg { width: 46%; height: 46%; }
