/* ========================================
   AZULA BADU — Base Styles
   ======================================== */

/* fonts zelf gehost (avg): elke <head> laadt css/fonts.css */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* FIX #14: Respecteer verminderde bewegingsvoorkeur van gebruikers */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* FIX #15: Skip-to-content link voor toetsenbordgebruikers en schermlezers */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: .75rem 1.5rem;
  background: var(--gold, #c9a96e);
  color: #000;
  font-family: var(--font-body, sans-serif);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg-deep);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cream);
  letter-spacing: 0.02em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--spacing-md); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--spacing-sm); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

p.lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
}

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

a:hover {
  color: var(--gold-light);
}

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

::selection {
  background: var(--teal);
  color: var(--gold-light);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* tekst die de api nog vervangt: ruimte houden, oude tekst niet tonen */
[data-pending]:not(body) {
  visibility: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gold-text { color: var(--gold); }
.teal-text { color: var(--teal-light); }
.text-center { text-align: center; }

/* Gold Decorative Line */
.gold-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--spacing-md) auto;
  border: none;
}

.gold-line--left {
  margin-left: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Section Divider with diamond */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) auto;
  max-width: 300px;
  opacity: 0.7;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark));
}

.section-divider::after {
  background: linear-gradient(90deg, var(--gold-dark), transparent);
}

.section-divider .diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-wood);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* ────────────────────────────────────────────────
   2026-05-11 — A11y: zichtbare focus voor toetsenbordgebruikers
   Vervangt eerder onzichtbaar gemaakte focus-rings (outline: none).
   WCAG 2.4.7 / 2.4.11 compliance.
   ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold, #c9a84c);
  outline-offset: 2px;
  border-radius: 2px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold, #c9a84c);
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
}
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--gold, #c9a84c);
  outline-offset: 3px;
}
/* Voor toetsenbordgebruikers binnen donkere panels (modal/age-gate) */
.age-gate :focus-visible,
.modal :focus-visible {
  outline-color: #fff;
}

/* 2026-05-11 — Footer legal links */
.footer__legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0;
  margin: 1rem 0 0.5rem 0;
  justify-content: center;
  font-size: 0.82rem;
}
.footer__legal a {
  color: var(--text-muted, #9a9084);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__legal a:hover { color: var(--gold, #c9a84c); }
