@font-face {
  font-family: 'Grobold';
  src: url('fonts/grobold.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

:root {
  /* Officieel kleurenpalet Kermis Festival Abbekerk */
  --cyan:   #5BC7E1;
  --orange: #F39222;
  --pink:   #FF006E;
  --purple: #710B79;
  --black:  #0A0B09;
}

body {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: #fff;
  background: var(--black);
  line-height: 1.5;
}

/* Koppen in het festival-lettertype */
h1, h2,
.slide-day, .tt-dow {
  font-family: 'Grobold', 'Trebuchet MS', sans-serif;
  font-weight: normal;
}

/* Hero confetti canvas */
.hero-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Gefaseerd in beeld komen: plaatje -> titel -> knoppen */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(.95);
  animation: revealIn .8s cubic-bezier(.2,.8,.3,1.3) forwards;
}
.hero .logo.reveal { animation-delay: .3s; }   /* 1. plaatje */
.hero h1.reveal    { animation-delay: 1.1s; }  /* 2. titel */
.hero .dates.reveal { animation-delay: 1.5s; }
.hero .hero-buttons.reveal { animation-delay: 1.9s; } /* 3. knoppen */

@keyframes revealIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(125deg, #2a0c4e, #6a1550, #c0237a, #f06a2a, #8a1d5c, #4a0f6e);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 30%; }
  50%  { background-position: 70% 100%; }
  75%  { background-position: 30% 70%; }
  100% { background-position: 0% 50%; }
}

.logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}

.hero-content { margin-top: 2rem; }

h1 {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dates {
  font-size: 1.2rem;
  margin: .5rem 0 1.5rem;
  color: #ffd9a8;
}

/* Buttons */
.ticket-btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  padding: .9rem 2.2rem;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(240,106,42,.5);
  transition: transform .15s ease;
}
.ticket-btn:hover { transform: scale(1.05); }
.ticket-btn.small { font-size: 1rem; padding: .6rem 1.5rem; }

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ticket-btn.ghost {
  background: transparent;
  border: 2px solid #fff;
  box-shadow: none;
}
.ticket-btn.ghost:hover { background: rgba(255,255,255,.15); }

.ticket-btn.donate {
  background: var(--pink);
  box-shadow: 0 6px 20px rgba(192,35,122,.5);
}
.ticket-btn.donate .heart { color: #ff8fc7; }
.heart { color: var(--pink); }

/* Act */
.act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3.5rem 1.5rem;
  background: linear-gradient(125deg, #2a0c4e, #6a1550, #c0237a, #f06a2a, #8a1d5c, #4a0f6e);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}
.act > * {
  position: relative;
  z-index: 1;
}
.act img {
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.act-text { text-align: center; }
.act-text h2 { font-size: 2rem; margin-bottom: .3rem; }
.act-text p { margin-bottom: 1rem; color: #ffd9a8; }

/* Timetable */
.timetable {
  width: 100%;
  padding: 3rem 0 3.5rem;
  background: #2a0c2e;
  text-align: center;
}
.timetable h2 {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tt-hint {
  color: #d9b8e0;
  font-size: .9rem;
  margin: .4rem 0 1.5rem;
}

.tt-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.25rem 1.25rem;
  /* laatste kaart krijgt ruimte rechts bij het scrollen */
  scroll-padding-left: 1.25rem;
}
/* zorgt voor padding na de laatste kaart in alle browsers */
.tt-scroll::after {
  content: "";
  flex: 0 0 0.25rem;
}
.tt-scroll::-webkit-scrollbar { height: 8px; }
.tt-scroll::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 8px;
}

.tt-day {
  scroll-snap-align: start;
  flex: 0 0 78%;
  max-width: 320px;
  background: linear-gradient(160deg, #4a0f4e, #8a1d5c);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.6rem;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.tt-day--highlight {
  background: linear-gradient(160deg, #8a1d5c, #f06a2a);
  box-shadow: 0 8px 28px rgba(240,106,42,.5);
}

.tt-day-head {
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid rgba(255,255,255,.25);
  padding-bottom: .6rem;
  margin-bottom: .8rem;
}
.tt-dow {
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
}
.tt-date { color: #ffd9a8; font-size: .95rem; }

.tt-day ul { list-style: none; }
.tt-day li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  column-gap: .9rem;
  align-items: baseline;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 1.02rem;
  line-height: 1.35;
}
.tt-day li:last-child { border-bottom: none; }
.tt-time {
  font-weight: bold;
  color: #ffd9a8;
  white-space: nowrap;
}
.tt-act { display: block; }
.tt-act strong { color: #fff; }
.tt-day--highlight .tt-time { color: #fff; }

.tt-ticket {
  display: block;
  margin: 1.2rem auto 0;
  width: fit-content;
}

@media (min-width: 700px) {
  .tt-scroll {
    justify-content: center;
    flex-wrap: nowrap;
  }
  .tt-day { flex: 0 0 240px; }
}

/* Sfeerfoto slideshow — fullwidth onder hero */
.gallery {
  width: 100%;
  margin: 0;
  padding: 0;
}

.slider {
  position: relative;
  overflow: hidden;
}
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
}
.slide img {
  width: 100%;
  height: 510px;
  object-fit: cover;
  display: block;
}
@media (min-width: 700px) {
  .slide img { height: 720px; }
}

/* Tekst-overlay per foto — volledig gecentreerd */
.slide-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(to top, rgba(10,11,9,.75), rgba(10,11,9,.3) 50%, rgba(10,11,9,.55));
}
.slide-caption .slide-day {
  display: block;
  font-size: 2.2rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.slide-caption p {
  margin: .6rem 0 1.1rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 540px;
  text-shadow: 0 2px 8px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.9);
}
@media (min-width: 700px) {
  .slide-caption { padding-bottom: 4rem; }
  .slide-caption .slide-day { font-size: 3rem; }
  .slide-caption p { font-size: 1.6rem; }
}

/* Tickets & Donatie secties */
.tickets,
.donate-section {
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}
.tickets h2,
.donate-section h2 {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .5rem;
}
.tickets p,
.donate-section p {
  color: #ddc4e4;
  margin-bottom: 1.5rem;
}

/* Tickets — paarse achtergrond zoals het programma */
.tickets { background: #2a0c2e; }
.tickets > * { max-width: 700px; margin-left: auto; margin-right: auto; }

/* Steun het festival — bewegende gradient */
.donate-section {
  background: linear-gradient(125deg, #2a0c4e, #6a1550, #c0237a, #f06a2a, #8a1d5c, #4a0f6e);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}
.donate-section p { color: #fff; }
.donate-section > * { max-width: 700px; margin-left: auto; margin-right: auto; }

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: #2a0c2e;
  font-size: .9rem;
  color: #d9b8e0;
}
.footer-col a { color: #ffd9a8; }
.footer-logo {
  width: 180px;
  max-width: 60%;
  height: auto;
  margin-bottom: 2rem;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.footer-col { flex: 1 1 220px; }
.footer-col h3 {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  margin-bottom: .6rem;
}
.footer-col p { line-height: 1.7; }

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--pink); transform: scale(1.08); }

.footer-tagline {
  margin: -1rem auto 2.5rem;
  color: #d9b8e0;
}

/* Credits — paars met gecentreerd Himbelton logo */
.credits {
  background: #2a0c2e;
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
}
.credits .credit-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  color: var(--orange);
  margin-bottom: 1rem;
}
/* Max Zijlstra + Himbelton.nl — zelfde stijl als 'Plantsoenstraat 6' */
.credits .credit-name,
.credits .credit-link {
  display: block;
  color: #d9b8e0;
  font-size: .9rem;
  line-height: 1.5;
}
.credits .credit-link {
  color: #ffd9a8;
  text-decoration: underline;
  margin-bottom: 1.5rem;
}
.credits img {
  display: block;
  width: 80%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .credits img { width: 55%; max-width: 430px; }
  .footer-logo { width: 240px; }
}

@media (min-width: 600px) {
  h1 { font-size: 2.2rem; }
}
