/* ─────────────────────────────────────────
   RICKY'S ROCK PARTY — Shared Stylesheet
   Tokens + canvas: parallel geladen via head.php (geen @import-keten)
   ───────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--magenta);
  font-family: var(--font-family);
  font-weight: var(--fw-regular);
  font-size: var(--text-body);
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY (tokens in actie) ─── */

.hero-headline {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--magenta);
}

/* Tekst over illustratie — hero (sterker) + display (kleinere tekst) */
.hero-headline,
.hero-headline .line-heavy,
.hero-headline .line-light,
.hero-countdown,
.hero-countdown strong,
.hero-countdown #countdown,
.page-illustrated .page-header :is(h1, .sub, .section-title, .section-subhead, h3.section-subhead) {
  text-shadow: var(--text-shadow-hero);
}

.page-illustrated .contact-info-block :is(.info-item-value, .info-item-value a),
.page-illustrated .page-intro {
  text-shadow: var(--text-shadow-display);
}

.hero-headline .line-heavy,
.section-title .line-heavy {
  font-weight: var(--fw-bold);
  color: var(--magenta);
}

.hero-headline .line-light,
.section-title .line-light {
  font-weight: var(--fw-light);
  color: var(--magenta);
}

/* ─── Tekstlinks (content) — magenta, stippellijn, agenda-hover ─── */
.section-body a,
.intro-text a,
.intro-section a,
.contact-info-block a,
.contact-result a,
.page-content a,
.legal-content a,
.rockstars-cta a,
.member-back,
.member-detail-story-section a {
  color: var(--magenta);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.15em;
  text-decoration-color: color-mix(in srgb, var(--magenta) 70%, transparent);
}

.section-body a:hover,
.intro-text a:hover,
.intro-section a:hover,
.contact-info-block a:hover,
.contact-result a:hover,
.page-content a:hover,
.legal-content a:hover,
.rockstars-cta a:hover,
.member-back:hover,
.member-detail-story-section a:hover {
  color: var(--magenta-light);
  text-decoration-color: var(--magenta-light);
}

/* ─── LAYOUT SHELL (nav + footer-inhoud — zelfde kolom als artboard) ─── */
.layout-shell {
  width: 100%;
  max-width: var(--layout-artboard-ceiling);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
}

/* ─── NAVBAR (volle schermbreedte) ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-padding-top) 0 var(--nav-padding-bottom);
  pointer-events: none;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  pointer-events: auto;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

.hamburger-btn svg,
.hamburger-btn img {
  height: var(--nav-pick-height);
  width: auto;
  display: block;
  filter: var(--drop-shadow-hero);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
  transition: opacity 0.15s linear;
}

.nav-links a {
  color: var(--magenta);
  text-decoration: none;
  font-size: var(--text-nav);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-shadow: var(--text-shadow-hero);
  transition: opacity 0.2s;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-bottom: 3px dotted var(--magenta);
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-links a:hover::after { opacity: 1; }

/* ─── MENU OVERLAY ─── */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--magenta);
  color: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--section-padding-x);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
}

.menu-overlay.open { transform: translateX(0); }

.menu-logo {
  position: absolute;
  left: 50%;
  top: var(--menu-logo-inset-top);
  transform: translateX(-50%);
  z-index: 0;
  overflow: hidden;
  width: var(--menu-logo-size);
  height: calc(var(--menu-logo-size) * var(--logo-crop-height-ratio));
  text-decoration: none;
  pointer-events: auto;
}

.menu-logo svg,
.menu-logo img {
  width: var(--menu-logo-size);
  height: auto;
  display: block;
  transform: translateY(calc(-1 * var(--logo-crop-shift)));
}

.menu-logo img {
  filter: brightness(0);
}

.menu-logo path {
  fill: var(--bg);
}

.menu-overlay > :not(.menu-logo) {
  position: relative;
  z-index: 1;
}

.menu-top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.menu-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.menu-close-btn img {
  height: var(--nav-pick-height);
  width: auto;
  display: block;
}

.menu-search {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  margin-top: calc(
    var(--menu-logo-inset-top)
    + (var(--menu-logo-size) * var(--logo-crop-height-ratio))
    + var(--menu-logo-gap)
    - var(--menu-top-block)
  );
  margin-bottom: var(--space-lg);
}

.menu-search span {
  position: relative;
  display: inline-block;
  padding-bottom: calc(var(--rule-dot-height-agenda) + var(--space-xs));
  font-size: var(--text-menu-support);
  font-weight: var(--fw-light);
  color: inherit;
  text-transform: uppercase;
  letter-spacing: normal;
}

.menu-search span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--rule-dot-height-agenda);
  background-image: radial-gradient(
    circle,
    var(--bg) var(--rule-dot-size-agenda),
    transparent calc(var(--rule-dot-size-agenda) + 0.5px)
  );
  background-size: var(--rule-dot-gap-agenda) var(--rule-dot-height-agenda);
  background-repeat: repeat-x;
  background-position: center;
}

.menu-search input {
  background: none;
  border: none;
  outline: none;
  color: inherit;
  font-family: var(--font-family);
  font-size: var(--text-menu-support);
  font-weight: var(--fw-light);
  flex: 1;
  min-width: 0;
}

.menu-search input::placeholder {
  color: color-mix(in srgb, var(--bg) 45%, transparent);
}

.menu-nav-links {
  list-style: none;
  margin-top: calc(
    var(--menu-logo-inset-top)
    + (var(--menu-logo-size) * var(--logo-crop-height-ratio))
    + var(--menu-logo-gap)
    - var(--menu-top-block)
  );
  margin-bottom: var(--space-lg);
}

.menu-nav-links li { border-bottom: none; }

.menu-nav-links a {
  display: block;
  padding: 0;
  line-height: var(--leading-display);
  color: inherit;
  text-decoration: none;
  font-size: var(--text-menu-item);
  font-weight: var(--fw-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-nav-links a:hover {
  font-weight: var(--fw-bold);
}

.menu-social-label {
  font-size: var(--text-menu-support);
  font-weight: var(--fw-bold);
  line-height: var(--leading-display);
  letter-spacing: normal;
  color: inherit;
  text-transform: uppercase;
  margin-bottom: 0;
  padding-bottom: calc(var(--menu-social-line-gap) / 2);
}

.menu-social-links { list-style: none; margin-bottom: var(--space-lg); }

.menu-social-links a {
  display: block;
  padding: calc(var(--menu-social-line-gap) / 2) 0;
  line-height: var(--leading-display);
  color: inherit;
  text-decoration: none;
  font-size: var(--text-menu-support);
  font-weight: var(--fw-light);
  letter-spacing: normal;
  text-transform: uppercase;
}

.menu-social-links a:hover { opacity: 0.75; }

.menu-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--menu-social-line-gap);
  font-size: var(--text-menu-support);
  font-weight: var(--fw-light);
  color: inherit;
  text-transform: uppercase;
  letter-spacing: normal;
  margin-top: auto;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.lang-label {
  color: inherit;
  font-weight: var(--fw-light);
}

.lang-label-en {
  opacity: 0.5;
}

.lang-toggle.is-en .lang-label-nl {
  opacity: 0.5;
}

.lang-toggle.is-en .lang-label-en {
  opacity: 1;
}

.toggle-switch {
  width: 32px;
  height: 16px;
  background: color-mix(in srgb, var(--bg) 30%, transparent);
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
}

.lang-toggle.is-en .toggle-switch::after {
  left: 18px;
}

.lang-toggle.is-busy {
  pointer-events: none;
}

.menu-footer a {
  display: block;
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  letter-spacing: normal;
}

.menu-footer a:hover { opacity: 0.75; }

/* ─── LAYOUT — pagina-artboard (PDF-breedte, gecentreerd) ─── */

.page-artboard {
  width: 100%;
  max-width: var(--layout-artboard-ceiling);
  margin-inline: auto;
  position: relative;
}

/* ─── LAYOUT — sectie-wrapper (homepage, subpagina’s) ─── */
.section-inner {
  width: 100%;
  max-width: var(--layout-artboard-ceiling);
  margin-inline: auto;
  padding: var(--section-padding-y) var(--section-padding-x);
}

.section-inner:has(> .divider:last-child) {
  padding-bottom: var(--space-md);
}

.section-inner--wide {
  max-width: 100%;
}

.intro-text {
  max-width: 82%;
  margin-inline: auto;
  text-align: center;
}

.intro-text p {
  font-size: var(--text-intro-lg);
  font-weight: var(--fw-bold);
  line-height: var(--leading-normal);
  color: var(--magenta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.intro-text p.dim {
  font-size: var(--text-body);
  font-weight: var(--fw-light);
  color: var(--magenta);
}

@media (max-width: 768px) {
  .intro-text {
    max-width: 92%;
  }
}

/* ─── LAYOUT — twee-kolom secties (tekst + media) ─── */

.section-split {
  display: grid;
  grid-template-columns: var(--section-split-text) var(--section-split-media);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  width: 100%;
}

.section-split--reverse {
  grid-template-columns: var(--section-split-media) var(--section-split-text);
}

.section-split__content,
.section-split__media {
  min-width: 0;
}

.section-split__headings {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-split__headings .section-subhead {
  margin-bottom: 0;
}

.section-body {
  width: 100%;
  padding-left: var(--text-indent-column);
}

.section-body > p {
  font-size: var(--text-body);
  font-weight: var(--fw-light);
  line-height: var(--leading-normal);
  color: var(--magenta);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  text-align: left;
}

.section-body > p:first-child {
  font-size: var(--text-intro-lg);
  font-weight: var(--fw-bold);
}

.section-split__frame {
  width: var(--section-media-scale);
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}

/* Desktop: mediakolom plakt tijdens scroll door lange tekst */
@media (min-width: 769px) {
  .section-split--sticky-media .section-split__media {
    position: sticky;
    top: calc(var(--nav-bar-height) + var(--space-md));
    align-self: start;
  }
}

/* ─── LAYOUT — tekstblokken ─── */

.text-block--centered {
  width: 100%;
  max-width: var(--text-block-centered);
  margin-inline: auto;
}

.text-block--column {
  width: 100%;
  max-width: var(--text-block-column);
}

.text-block--column.text-block--indented {
  padding-left: var(--text-indent-column);
}

.text-block--hero {
  max-width: var(--text-block-hero);
}

.text-block--narrow {
  max-width: var(--text-block-narrow);
}

@media (max-width: 768px) {
  .section-split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    position: relative;
  }

  .section-split__media {
    order: -1;
    width: calc(100% + 2 * var(--section-padding-x));
    max-width: 100vw;
    margin-inline: calc(-1 * var(--section-padding-x));
  }

  .section-split--headings-over-media .section-split__headings {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    margin-bottom: 0;
    padding: var(--space-md) 0 0;
    pointer-events: none;
  }

  .section-split__frame {
    width: 100%;
    margin-inline: 0;
  }

  .section-body {
    padding-left: 0;
  }

  .text-block--column {
    max-width: none;
  }

  .text-block--column.text-block--indented {
    padding-left: 0;
  }

  .text-block--column > p {
    padding-left: 0;
  }
}

/* ─── SHARED SECTION ELEMENTS ─── */
.section-headings {
  margin-top: -0.75rem;
}

.section-headings .section-title {
  margin-bottom: var(--space-xs);
}

.section-headings .section-subhead {
  margin-bottom: var(--space-lg);
}

h3.section-subhead {
  font-size: var(--text-intro-lg);
  font-weight: var(--fw-regular);
  letter-spacing: -0.01em;
  line-height: var(--leading-normal);
  color: var(--magenta);
  text-transform: uppercase;
  margin: 0;
}

h3.section-subhead .subhead-heavy {
  font-weight: var(--fw-bold);
  color: var(--magenta);
}

h3.section-subhead .subhead-light {
  font-weight: var(--fw-light);
  color: var(--magenta);
}

.section-label {
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-wide);
  color: var(--magenta);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: var(--text-display);
  font-weight: var(--fw-bold);
  line-height: var(--leading-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: var(--space-lg);
}

.rule-dotted,
.divider {
  background-image: radial-gradient(
    circle,
    var(--magenta) var(--rule-dot-size),
    transparent calc(var(--rule-dot-size) + 0.5px)
  );
  background-size: var(--rule-dot-gap) var(--rule-dot-height);
  background-repeat: repeat-x;
  background-position: center;
}

.divider {
  height: var(--rule-dot-height);
  max-width: 88%;
  margin: var(--space-lg) auto var(--space-md) auto;
}

.divider::before,
.divider::after {
  content: none;
}

/* ─── FOOTER (volle schermbreedte) ─── */
footer {
  width: 100%;
  background: var(--magenta);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-icons a {
  display: block;
  line-height: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-icons a:hover {
  opacity: 1;
}

.footer-icons img {
  height: 2.125rem;
  width: auto;
  max-width: 1.875rem;
  display: block;
  object-fit: contain;
}

.footer-info {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.footer-info .footer-brand {
  font-size: var(--text-body-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-on-magenta);
  margin-bottom: 6px;
}

.footer-info p,
.footer-contact {
  font-size: var(--text-footer);
  font-weight: var(--fw-light);
  letter-spacing: 0.06em;
  color: var(--text-on-magenta);
  line-height: var(--leading-normal);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45em 0.6em;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--text-on-magenta);
}

.footer-contact-sep {
  display: inline-flex;
  line-height: 0;
  flex-shrink: 0;
}

.footer-contact-sep img {
  display: block;
  height: 0.75rem;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.footer-links a {
  color: var(--text-on-magenta);
  text-decoration: none;
  font-size: var(--text-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.footer-links a:hover { opacity: 1; }

.footer-copyright {
  text-align: center;
  font-size: var(--text-caption);
  font-weight: var(--fw-light);
  letter-spacing: 0.06em;
  color: var(--text-on-magenta);
  text-transform: uppercase;
  margin-top: var(--space-md);
}

/* ─── SCROLL REVEAL (per section block) ─── */
.scroll-reveal-sentinel {
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(clamp(64px, 12svh, 120px));
    transform-origin: center bottom;
    transition:
      opacity 1s ease-out,
      transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .scroll-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .divider.divider-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.45s ease-out;
  }

  .divider.divider-reveal.is-drawn {
    clip-path: inset(0 0 0 0);
  }
}

/* ─── RESPONSIVE ─── */

/* Tablet + mobile: hamburger-nav */
@media (max-width: 1200px) {
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  .section-headings .section-title {
    margin-bottom: 0;
  }

  h3.section-subhead {
    font-size: var(--text-intro-lg);
    line-height: var(--leading-display);
  }

  h3.section-subhead .subhead-light {
    display: block;
  }

  .section-split--headings-over-media .section-split__headings :is(.section-title, h3.section-subhead) {
    text-shadow: var(--text-shadow-hero);
  }

  .menu-overlay { padding: var(--space-md) var(--section-padding-x); }
  footer { padding: var(--space-lg) 0; }
}
