/* KM71 Jukebox Radio — style */

:root {
  --bg: #14100c;
  --bg-alt: #1d1710;
  --panel: #241c13;
  --gold: #e8a33d;
  --gold-bright: #f6c569;
  --cream: #f3ebdd;
  --muted: #b7a996;
  --line: #382c1d;
  --radius: 14px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* SAM Cloud widgets render their own search input with a white
   background, but on this dark-themed page the text inside inherited a
   near-white color, making it unreadable. Per Spacial support, the
   widget's internal elements use the "spacial-widget" class (not the
   <sam-widget> tag itself), so target that — confirmed no Shadow DOM
   is involved. */
.spacial-widget input,
sam-widget input {
  color: #1a1a1a !important;
  background-color: #ffffff !important;
  color-scheme: light;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, var(--bg-alt), var(--bg) 60%);
  color: var(--cream);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, .brand {
  font-family: "Righteous", "Inter", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

a { color: var(--gold-bright); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 16, 12, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  flex-wrap: wrap;
  row-gap: 0.6rem;
}

.mini-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mini-player audio {
  height: 32px;
  max-width: 200px;
}

.mini-player-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .mini-player audio { max-width: 150px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  color: var(--gold-bright);
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold-bright); }

.nav-links a.nav-cta {
  background: var(--gold);
  color: #201607;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta[aria-current="page"] {
  background: var(--gold-bright);
  color: #201607;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cream);
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open { max-height: 320px; }

  .nav-links li { border-top: 1px solid var(--line); }

  .nav-links a { display: block; padding: 0.9rem 1.25rem; }
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 1rem;
  color: var(--cream);
}

.hero h1 span { color: var(--gold-bright); }

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Hero variant with a photo alongside the text (homepage) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
}

.hero-grid p.lead { margin-left: 0; margin-right: 0; }
.hero-grid .btn-row { justify-content: flex-start; }

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-grid .btn-row { justify-content: center; }
  .hero-photo { order: -1; max-width: 380px; margin: 0 auto; }
}

/* Feature image above body copy (e.g. Over ons) */
.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.feature-image img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* Section with a photo as ambient background */
.ambient-bg {
  position: relative;
  background-size: cover;
  background-position: center;
}

.ambient-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.55), rgba(20, 16, 12, 0.8));
}

.ambient-bg > .container {
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #201607;
  box-shadow: 0 8px 24px -8px rgba(232, 163, 61, 0.6);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--cream);
}

.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Player panel */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.player-panel {
  max-width: 460px;
  margin: 0 auto;
}

.player-embed {
  width: 100%;
  min-height: 150px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}

.player-fallback {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Pagina's (single-page app — geen volledige page-reload, dus de
   audiospeler in de header blijft doorspelen bij het wisselen) */

.page { display: none; padding: 0; }
.page.active { display: block; }

/* Sections */

section { padding: 3.5rem 0; }

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-heading .eyebrow {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-heading h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 0.75rem; }
.section-heading p { color: var(--muted); margin: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 { margin: 0 0 0.5rem; color: var(--gold-bright); font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}

.genre-tags span {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.callout {
  background: linear-gradient(135deg, rgba(232, 163, 61, 0.14), rgba(232, 163, 61, 0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.notice {
  background: rgba(232, 163, 61, 0.1);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.notice strong { color: var(--gold-bright); }

/* Contact */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.contact-list .label {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

/* Photo slider (Over ons) */

.photo-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  max-width: 640px;
  margin: 0 auto;
}

.photo-slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.photo-slider-track img {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--bg-alt);
  display: block;
}

.photo-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 16, 12, 0.7);
  border: 1px solid var(--line);
  color: var(--cream);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-slider-btn:hover { background: rgba(20, 16, 12, 0.9); }
.photo-slider-btn.prev { left: 12px; }
.photo-slider-btn.next { right: 12px; }

.photo-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0;
  background: var(--panel);
}

.photo-slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
}

.photo-slider-dots button.active { background: var(--gold); }

.photo-slider-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
  margin: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold-bright); }
