/* ==========================================================================
   home.css — paginaspecifieke stijlen voor index.html
   Vereist common.css voor de basisstijlen (header, footer, knoppen, grid...).
   ========================================================================== */

/* -------------------------------------------------------------------------
   Aftelklok-sectie: duidelijke ruimte t.o.v. de statistieken erboven (zodat
   niet lijkt te horen bij de rommelmarkt-kerncijfers), maar weinig t.o.v. de
   evenement-detailsectie eronder (feature-banner van de Aarthurquiz) — de
   aftelklok en die kaart horen net wél samen.
   ------------------------------------------------------------------------- */

.rommelmarkt-banner-section {
  padding: 40px 0 0;
}

.rommelmarkt-banner-section + .countdown-section {
  padding-top: 64px;
}

.countdown-section {
  padding: 56px 0 24px;
}

.countdown-section + .section {
  padding-top: 24px;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: radial-gradient(120% 160% at 15% 0%, #fff1de 0%, var(--color-cream) 45%, var(--color-cream) 100%);
  padding: 40px 0 56px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__figure {
  position: relative;
}

.hero__photo {
  border-radius: 8px 120px 8px 8px / 8px 60px 8px 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: rotate(2deg);
  border: 8px solid var(--color-white);
}

/* Liggend en begrensd in hoogte, zodat de rommelmarkt-banner eronder zonder scrollen in beeld komt. */
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 44vh;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  left: -28px;
  bottom: -22px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--color-marigold);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.15;
  box-shadow: var(--shadow-md);
}

/* De gestippelde rand draait apart en traag, als een postzegelstempel —
   de tekst zelf blijft stilstaan zodat ze altijd leesbaar is (in
   tegenstelling tot de hele badge laten ronddraaien). */
.hero__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px dashed rgba(36, 26, 18, 0.35);
  animation: hero-badge-spin 26s linear infinite;
}

.hero__badge strong {
  font-size: 1.55rem;
  display: block;
}

@keyframes hero-badge-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__badge::before { animation: none; }
}

/* -------------------------------------------------------------------------
   Feature banner (Aarthurquiz-highlight & rommelmarkt-teaser)
   ------------------------------------------------------------------------- */

.feature-banner-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.feature-banner__art {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  position: relative;
}
.feature-banner__art svg {
  width: 55%;
  height: 55%;
  opacity: 0.9;
}

.feature-banner__art--photo {
  background: none;
}
.feature-banner__art--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------------
   Aarthurfeesten-weekend-kaart: de rommelmarkt is het belangrijkste event
   van het driedaagse weekend en wordt in de dagenlijst uitgelicht.
   ------------------------------------------------------------------------- */

.event-days__highlight {
  color: var(--color-orange-dark);
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   Rommelmarkt-kerncijfers — meteen onder de rommelmarkt-pancarte, in
   dezelfde lichte sfeer (niet meer de losse donkere band verderop).
   ------------------------------------------------------------------------- */

.rommelmarkt-stats {
  margin-top: 20px;
  padding: 28px 32px;
  background: var(--color-pine-dark);
  border-radius: var(--radius-lg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}

.stats__item {
  border-right: 1px solid rgba(251, 243, 231, 0.18);
}
.stats__item:last-child {
  border-right: none;
}

.stats__item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-marigold);
}

.stats__item span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--color-pine-light);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .feature-banner { grid-template-columns: 1fr; }
  .feature-banner__art { order: -1; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__figure { order: -1; max-width: 380px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .hero { padding: 24px 0 32px; }
  .hero__grid { gap: 28px; }
  .hero__photo img { max-height: 28vh; }
  .hero p.lead { margin-bottom: 20px; }
  .rommelmarkt-banner-section { padding-top: 24px; }
  .rommelmarkt-stats { padding: 20px; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stats__item {
    border-right: none;
    border-bottom: 1px solid rgba(251, 243, 231, 0.18);
    padding-bottom: 18px;
  }
  .stats__item:last-child { border-bottom: none; padding-bottom: 0; }
  .hero__badge { width: 104px; height: 104px; font-size: 0.8rem; left: -14px; bottom: -14px; }
  .hero__badge strong { font-size: 1.25rem; }
}
