/* ========================================
   KOORTS-EVENTS — stijl
   Huisstijl: crème, zwart en thermometerrood.
   ======================================== */

:root {
  --bg: #f1ecdf;
  --bg-soft: #e8e1d3;
  --bg-card: #faf6ed;
  --text: #1c1b18;
  --text-muted: #635d54;
  --accent: #e94028;
  --accent-2: #b92f1d;
  --border: rgba(28, 27, 24, 0.18);
  --radius: 14px;
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .brand-link {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

main { flex: 1; }

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

a { color: inherit; }

[hidden] { display: none !important; }

button, input, select { font: inherit; }

button { cursor: pointer; }

button:disabled { opacity: 0.6; cursor: wait; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }

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

/* ---------- Header & hamburger menu ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 236, 223, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(0.9rem, 3.8vw, 1.2rem);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-icon { width: 44px; height: 44px; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.hamburger:hover { border-color: var(--accent); }

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(340px, 85vw);
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
  padding: 6rem 2.5rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-menu.open { transform: translateX(0); }

.nav-menu a {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color 0.2s, padding-left 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-2);
  padding-left: 0.5rem;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 80;
}

.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero (home) ---------- */

.hero {
  min-height: calc(100dvh - 78px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-logo { width: min(880px, 100%); }

.hero-logo-img { width: 100%; height: auto; margin: 0 auto; }

.hero-tagline {
  margin-top: 0.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  max-width: 560px;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Knoppen ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 4px 20px rgba(185, 47, 29, 0.16);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(185, 47, 29, 0.24);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--accent-2); transform: translateY(-2px); }

/* ---------- Secties ---------- */

.section { padding: 5rem 0; }
.container.section { padding-inline: 1.5rem; }
.section.section-no-top { padding-top: 0; }
.section.section-after-heading { padding-top: 1.5rem; }

.section-alt { background: var(--bg-soft); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-title .mark {
  color: var(--accent-2);
}

.section-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.page-head {
  padding: 4.5rem 0 0;
  text-align: left;
}

/* ---------- Kaarten / grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover { transform: translateY(-4px); border-color: var(--accent); }

.card h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }

.card p { color: var(--text-muted); font-size: 0.95rem; }

.card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.9rem;
  display: inline-block;
}

/* ---------- Evenementen ---------- */

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.event-card .event-date {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}

.event-card h3 { font-size: 1.5rem; }
.event-card .btn { align-self: flex-start; }
.event-past { opacity: 0.8; }

.event-card .event-meta { color: var(--text-muted); font-size: 0.95rem; }

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-soon {
  background: rgba(233, 64, 40, 0.08);
  color: var(--accent-2);
  border: 1px solid rgba(185, 47, 29, 0.35);
}

/* ---------- Fotogalerij ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.gallery-grid figure:hover img { transform: scale(1.05); }

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 0.85rem;
}

.gallery-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
}

/* ---------- Over ons / juridisch ---------- */

.legal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.legal-box h3 { margin-bottom: 1rem; }

.legal-box dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
}

.legal-box dt { font-weight: 600; color: var(--text-muted); }

.prose p { margin-bottom: 1rem; max-width: 70ch; }

.prose p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.05rem;
}

.contact-list .icon { font-size: 1.4rem; }

.contact-list a { color: var(--accent-2); text-decoration: none; }

.contact-list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a { text-decoration: none; }

.footer-nav a:hover { color: var(--accent-2); }

@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .legal-box dl { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .legal-box dd { margin-bottom: 0.6rem; }
}

.ticket-layout { width: 100%; max-width: 760px; }
.panel { min-width: 0; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.panel h2, .panel h3 { margin-bottom: 1rem; }
.form-stack { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.form-stack label { display: grid; gap: 0.4rem; font-weight: 600; }
.form-stack input, .form-stack select {
  width: 100%; min-width: 0; padding: 0.8rem; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); color: var(--text);
}
.btn { border: 1px solid transparent; text-align: center; }
.btn-outline { border-color: var(--border); background: transparent; }
.notice { margin: 1rem 0; padding: 1rem; border-left: 4px solid var(--accent); background: var(--bg-soft); overflow-wrap: anywhere; }
.error { color: #962513; }
.price { font-size: 1.4rem; font-weight: 700; }
.ticket-card { text-align: center; }
.ticket-card img { margin: 0 auto; background: #fff; }
.table-scroll { overflow-x: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { padding: 0.75rem; border-bottom: 1px solid var(--border); }
