/* Kunst aan de Vaart — Main Stylesheet */

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

html {
  scrollbar-gutter: stable;
}

:root {
  /* Vaste kleuren */
  --zwart: #1A1A1A;
  --tekst: #3D3D3D;
  --subtiel: #767676;
  --wit: #FFFFFF;
  --sans: 'Inter', -apple-system, Helvetica Neue, sans-serif;
}

body {
  font-family: var(--sans);
  color: var(--zwart);
  background: var(--achtergrond);
  overflow-x: hidden;
}

/* =========================================
   SITE HEADER — universal navigation
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wit);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.site-header--hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
}
.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header__logo .site-logo {
  height: var(--logo-hoogte);
  width: auto;
}
.site-header__logo .site-logo-text {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--zwart);
}

/* Desktop nav */
.site-header__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 32px;
}
.site-header__nav li {
  margin: 0;
}
.site-header__nav a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--zwart);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.site-header__nav a:hover {
  color: var(--primair);
}
/* On hero page, nav text is dark (readable on light bg) */
.site-header--hero .site-header__nav a {
  color: var(--zwart);
}
.site-header--hero .site-header__nav a:hover {
  color: var(--primair);
}

/* Hamburger button (hidden on desktop) */
.site-header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  flex-shrink: 0;
}
.site-header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--zwart);
  position: absolute;
  left: 8px;
  transition: all 0.3s ease;
}
.site-header__hamburger span:nth-child(1) { top: 11px; }
.site-header__hamburger span:nth-child(2) { top: 19px; }
.site-header__hamburger span:nth-child(3) { top: 27px; }
.site-header__hamburger.is-active span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.site-header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.site-header__hamburger.is-active span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* Mobile nav (hidden by default) */
.site-header__mobile-nav {
  background: var(--wit);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.site-header--hero .site-header__mobile-nav {
  background: rgba(255,255,255,0.97);
}
.site-header__mobile-nav ul {
  list-style: none;
  padding: 8px 48px 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.site-header__mobile-nav li {
  margin: 0;
}
.site-header__mobile-nav a {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--zwart);
  text-decoration: none;
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.2s;
}
.site-header__mobile-nav a:hover {
  color: var(--primair);
}

/* =========================================
   HERO SECTION — full viewport
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  padding: 100px 48px 40px;
  overflow: hidden;
}

/* Right column: date + title stacked */
.hero-right {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 32px;
  padding-top: 0;
}

/* Date block */
.date-block {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1;
  color: var(--datum-kleur);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: var(--datum-breedte);
  text-align: center;
}
.date-block .day {
  font-size: var(--datum-dag-grootte);
  letter-spacing: var(--datum-dag-spacing);
}
.date-block .month {
  font-size: var(--datum-maand-grootte);
  text-transform: uppercase;
  letter-spacing: var(--datum-maand-spacing);
  padding-left: var(--datum-maand-spacing);
}
.date-block .year {
  font-size: var(--datum-jaar-grootte);
  letter-spacing: var(--datum-jaar-spacing);
  padding-left: var(--datum-jaar-spacing);
}

/* Titel */
.hero-title {
  text-align: right;
}

.hero-title h1 {
  font-family: var(--titel-font);
  font-size: var(--titel-grootte);
  line-height: 0.95;
  color: var(--titel-kleur);
  font-weight: var(--titel-gewicht);
  font-style: var(--titel-stijl);
}

.hero-title .subtitle {
  font-family: var(--sans);
  font-size: clamp(12px, 1.2vw, 16px);
  color: var(--accent);
  margin-top: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Artwork: absoluut gecentreerd, zo groot mogelijk, achter tekst */
.hero-artwork {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  pointer-events: none;
}

.artwork {
  height: 100%;
  width: auto;
  max-width: 50vw;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.1));
  pointer-events: auto;
}

.artwork-placeholder {
  height: 100%;
  aspect-ratio: 3/4;
  max-width: 50vw;
  background: linear-gradient(145deg, var(--primair) 0%, var(--accent) 35%, var(--accent2) 60%, var(--achtergrond2) 80%, var(--primair) 100%);
  border-radius: 2px;
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: auto;
}

/* Zorg dat tekst boven het artwork ligt */
.hero-right, .hero-bottom {
  position: relative;
  z-index: 1;
}

/* Bottom of hero */
.hero-bottom {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 24px;
}

.scroll-hint {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--subtiel);
}
.scroll-hint span {
  display: inline-block;
  animation: bounce 2s infinite;
  margin-left: 8px;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.social-links {
  display: flex;
  gap: 20px;
}
.social-links a {
  font-size: 13px;
  color: var(--subtiel);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.social-links a:hover {
  color: var(--primair);
}

/* =========================================
   CONTENT SECTIONS
   ========================================= */
section {
  padding: 100px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primair);
  font-weight: 600;
  margin-bottom: 16px;
}

h2 {
  font-family: var(--titel-font);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--zwart);
  margin-bottom: 32px;
}

.intro-text {
  font-size: 20px;
  line-height: 1.7;
  color: var(--tekst);
  max-width: 680px;
}

/* ---- Kunstenaars section ---- */
.kunstenaars-section {
  background: var(--wit);
  padding: 100px 48px;
}

.kunstenaars-section > div {
  max-width: 1400px;
  margin: 0 auto;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.artist-card {
  background: var(--achtergrond);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.artist-card:hover {
  transform: translateY(-4px);
}

.artist-card .discipline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primair);
  font-weight: 600;
  margin-bottom: 8px;
}
.artist-card .name {
  font-family: var(--titel-font);
  font-size: 22px;
  color: var(--zwart);
}
.artist-card .location {
  font-size: 13px;
  color: var(--subtiel);
  margin-top: 4px;
}

/* ---- Concerten section ---- */
.concerten-section {
  background: var(--zwart);
  color: var(--wit);
  padding: 100px 48px;
}

.concerten-section > div {
  max-width: 1400px;
  margin: 0 auto;
}

.concerten-section .section-label {
  color: var(--primair);
}
.concerten-section h2 {
  color: var(--wit);
}

.schedule-grid {
  display: grid;
  /* grid-template-columns set inline via PHP (auto repeat(n, 1fr)) */
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 48px;
  font-size: 14px;
}

.schedule-grid .cell {
  background: var(--zwart);
  padding: 16px 12px;
  display: flex;
  align-items: center;
}
.schedule-grid .cell.header {
  font-weight: 600;
  color: var(--primair);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.schedule-grid .cell.time {
  color: var(--subtiel);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 500;
}
.schedule-grid .cell.act {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}
.schedule-grid .cell.act a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.schedule-grid .cell.act:hover {
  background: rgba(255, 255, 255, 0.05);
}
.schedule-grid .cell.act:hover a {
  color: var(--primair);
  cursor: pointer;
}
.schedule-grid .cell.empty {
  color: rgba(255, 255, 255, 0.15);
  font-size: 20px;
}

.day-tabs {
  display: flex;
  gap: 4px;
  margin-top: 48px;
  margin-bottom: -1px;
}
.day-tab {
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
}
.day-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primair);
}

/* ---- Projecten section ---- */
.projecten-section {
  padding: 100px 48px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.project-card {
  border-top: 2px solid var(--primair);
  padding-top: 24px;
}
.project-card .type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primair);
  font-weight: 600;
  margin-bottom: 12px;
}
.project-card h3 {
  font-family: var(--titel-font);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 12px;
}
.project-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--tekst);
}

/* ---- Praktisch section ---- */
.praktisch-section {
  background: var(--achtergrond2);
  padding: 100px 48px;
}

.praktisch-section > div {
  max-width: 1400px;
  margin: 0 auto;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}

.info-block h3 {
  font-family: var(--titel-font);
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 400;
}
.info-block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--tekst);
}

/* ---- Stichting section ---- */
.stichting-section {
  padding: 100px 48px;
}

.anbi-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 24px;
  text-transform: uppercase;
}

/* ---- CTA section ---- */
.cta-section {
  background: var(--accent);
  color: var(--wit);
  padding: 80px 48px;
  text-align: center;
}
.cta-section h2 {
  color: var(--wit);
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}
.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: var(--primair);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.cta-button:hover {
  background: var(--zwart);
}

/* ---- Footer ---- */
footer {
  background: var(--zwart);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  font-size: 14px;
  line-height: 1.8;
}
footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--primair);
}
footer .footer-title {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

/* =========================================
   PAGE TEMPLATE STYLING
   ========================================= */
.page-header {
  padding: 40px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--titel-font);
  font-size: clamp(32px, 5vw, 56px);
  color: var(--zwart);
  font-weight: 400;
}

.page-content {
  padding: 24px 48px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.page-content h2 {
  margin-top: 48px;
  margin-bottom: 24px;
}

.page-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--tekst);
  margin-bottom: 24px;
}

/* =========================================
   SINGLE TEMPLATES (ARTISTS, MUSICIANS, PROJECTS)
   ========================================= */
.single-header {
  padding: 40px 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.single-header h1 {
  font-family: var(--titel-font);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--zwart);
  font-weight: 400;
  margin-bottom: 32px;
}

.single-featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  margin: 48px 0;
}

.single-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  background: var(--wit);
  padding: 32px;
  margin: 32px 0;
  border-radius: 2px;
}

.single-meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.single-meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primair);
  font-weight: 600;
}

.single-meta-value {
  font-size: 16px;
  color: var(--tekst);
}

.single-meta-value a {
  color: var(--primair);
  text-decoration: none;
}
.single-meta-value a:hover {
  text-decoration: underline;
}

.single-content {
  padding: 80px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.single-content h2 {
  margin-top: 48px;
  margin-bottom: 24px;
}

.single-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--tekst);
  margin-bottom: 24px;
}

/* =========================================
   ARCHIVE TEMPLATES
   ========================================= */
.schedule-section {
  background: var(--zwart);
  color: var(--wit);
  padding: 40px 48px 60px;
}
.schedule-section > * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.archive-header {
  padding: 40px 48px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.archive-header h1 {
  font-family: var(--titel-font);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--zwart);
  font-weight: 400;
}

.archive-grid {
  padding: 40px 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.archive-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.archive-card:hover .card-image img {
  transform: scale(1.03);
}

.card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--achtergrond2, #e8e4df);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--achtergrond2, #e8e4df), var(--achtergrond, #f5f1ec));
}

.card-info {
  padding: 12px 0;
}
.card-info .name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--zwart);
  line-height: 1.3;
}
.card-info .discipline {
  font-size: 13px;
  color: var(--subtiel);
  margin-top: 2px;
}

.archive-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--subtiel);
  font-size: 16px;
  padding: 60px 0;
}

/* =========================================
   KAART (Leaflet)
   ========================================= */
.kaart-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 80px;
}
.kadv-kaart {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  border-radius: 4px;
  z-index: 0;
}
.kaart-legenda {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  font-size: 14px;
  color: var(--tekst);
}
.legenda-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legenda-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.legenda-kunstenaar { background: #E07A2F; }
.legenda-muzikant { background: #2B5FD9; }
.legenda-project { background: #1A6B3C; }

/* Popup styling */
.kadv-popup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  font-family: var(--sans);
}
.kadv-popup img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 4px;
}
.kadv-popup strong {
  font-size: 15px;
  color: var(--zwart);
}
.kadv-popup .popup-discipline {
  font-size: 12px;
  color: var(--subtiel);
}
.kadv-popup .popup-adres {
  font-size: 12px;
  color: var(--subtiel);
}
.kadv-popup .popup-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primair);
  text-decoration: none;
  margin-top: 4px;
}
.kadv-popup .popup-link:hover {
  text-decoration: underline;
}

/* Leaflet marker reset */
.kadv-marker {
  background: none !important;
  border: none !important;
}

/* Detail kaart op single pages */
.single-kaart-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 48px 80px;
}
.single-kaart-wrap h2 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--zwart);
  margin-bottom: 8px;
}
.single-kaart-adres {
  font-size: 14px;
  color: var(--subtiel);
  margin-bottom: 16px;
}
.kadv-detail-kaart {
  width: 100%;
  height: 300px;
  border-radius: 4px;
  z-index: 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  /* Header mobile */
  .site-header__nav {
    display: none;
  }
  .site-header__hamburger {
    display: block;
  }
  .site-header__inner {
    padding: 12px 24px;
  }
  .site-header__logo .site-logo {
    height: calc(var(--logo-hoogte) * 0.6);
  }
  .site-header__mobile-nav ul {
    padding: 8px 24px 24px;
  }

  /* Hero mobile */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 80px 24px 24px;
    min-height: auto;
  }
  .hero-right {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
    padding-top: 0;
    min-width: 0;
    width: 100%;
    max-width: calc(100vw - 48px);
    overflow: hidden;
    box-sizing: border-box;
  }
  .date-block {
    flex-shrink: 1;
    width: auto;
    min-width: 0;
    padding-left: 0;
  }
  .date-block .day {
    font-size: clamp(22px, 6.5vw, 44px);
    letter-spacing: 0;
  }
  .date-block .month {
    font-size: clamp(18px, 5.5vw, 36px);
    padding-left: 0;
    letter-spacing: 1px;
  }
  .date-block .year {
    font-size: clamp(22px, 6.5vw, 44px);
    padding-left: 0;
    letter-spacing: 0;
  }
  .hero-title {
    text-align: right;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .hero-title h1 {
    font-size: clamp(22px, 6vw, 40px);
    line-height: 0.95;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .hero-title .subtitle {
    font-size: 10px;
  }
  .hero-artwork {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    grid-column: 1;
    grid-row: 2;
    height: auto;
    display: flex;
    justify-content: center;
    padding: 24px 0;
  }
  .artwork, .artwork-placeholder {
    height: auto;
    width: 80vw;
    max-width: 400px;
  }
  .hero-bottom {
    grid-column: 1;
    grid-row: 3;
  }
  section {
    padding: 60px 24px;
  }
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 24px 60px;
    gap: 16px;
  }
  .card-info .name {
    font-size: 13px;
  }
  .card-info .discipline {
    font-size: 11px;
  }
  .kaart-container {
    padding: 0 24px 60px;
  }
  .kadv-kaart {
    height: 50vh;
    min-height: 300px;
  }
  .kaart-legenda {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
  }
  .single-kaart-wrap {
    padding: 24px 24px 60px;
  }
  .info-columns {
    grid-template-columns: 1fr;
  }
  .schedule-grid {
    font-size: 12px;
    overflow-x: auto;
  }
  .schedule-grid .cell {
    padding: 10px 6px;
  }
  footer {
    grid-template-columns: 1fr;
  }
}
