/* Homepage (index.php). Bouwt verder op evenementen.css (header, foto bovenaan, evenementkaarten),
   formulier.css (contact) en style.css (Speel mee, inlogvenster). Klassen beginnen met "hm-". */

/* ---------- Bovenaan: het eerstvolgende evenement op de bannerfoto ---------- */
.hm-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hm-hero-tags .ev-tag.countdown { margin-left: 0; }
.hm-hero-sub { font-size: 20px; }
.hm-hero-desc { max-width: 620px; margin: 12px 0 0; color: #e4e4e4; font-size: 16px; line-height: 1.55; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Binnenkort: de eerstvolgende 3 eigen evenementen ---------- */
.hm-events { padding-top: 40px; }
.hm-events .ev-section-head { align-items: baseline; }
.hm-more { color: var(--ev-text); font-size: 15px; font-weight: bold; }
.hm-events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

/* ---------- Onze harmonie ---------- */
.hm-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 60px; align-items: center; scroll-margin-top: 20px; }
.hm-about-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.hm-about-text h2 { font-size: 32px; margin: 0 0 18px; }
.hm-about-text p { margin: 0 0 14px; color: var(--ev-muted); font-size: 17px; line-height: 1.65; }
.hm-about-text p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.hm-contact { scroll-margin-top: 10px; }

/* ---------- Sponsors van tier 1: een schuivende balk ---------- */
.hm-sponsors { padding: 46px 0 54px; background: #fcfcfc; color: #070707; overflow: hidden; }
.hm-sponsors-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 0 40px; margin-bottom: 26px; }
.hm-sponsors-head h2 { margin: 0; font-size: 24px; color: #070707; }
.hm-sponsors-head a { color: #070707; font-size: 15px; font-weight: bold; }
.hm-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.hm-track { display: flex; align-items: center; width: max-content; animation: hm-scroll var(--dur, 40s) linear infinite; }
.hm-marquee:hover .hm-track, .hm-marquee:focus-within .hm-track { animation-play-state: paused; }
@keyframes hm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hm-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 64px; padding: 0 34px; color: #070707; font-size: 18px; font-weight: bold; text-decoration: none; }
.hm-logo img { max-width: 170px; max-height: 56px; object-fit: contain; }
/* Weinig sponsors: gewoon naast elkaar, zonder schuiven */
.hm-marquee.is-static { -webkit-mask-image: none; mask-image: none; padding: 0 40px; }
.hm-marquee.is-static .hm-track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }

@media (max-width: 900px) {
  .hm-hero-sub { font-size: 17px; }
  .hm-events-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hm-about-text h2 { font-size: 28px; }
  .hm-sponsors { padding: 36px 0 40px; }
  .hm-sponsors-head { padding: 0 20px; }
  .hm-logo { height: 54px; padding: 0 24px; }
  .hm-logo img { max-width: 130px; max-height: 46px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .hm-events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Minder beweging: de balk staat stil, zonder de herhaalde logo's */
@media (prefers-reduced-motion: reduce) {
  .hm-marquee { -webkit-mask-image: none; mask-image: none; padding: 0 20px; }
  .hm-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .hm-track [aria-hidden="true"] { display: none; }
}
