/* ==========================================================================
   Noisy Neighbours — public site styles
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f2fb;
  --color-bg-card: #f8f7fc;
  --color-text: #201b30;
  --color-text-muted: #635d78;
  --color-accent: #6f5ef0;
  --color-accent-strong: #5a45e0;
  --color-accent-warm: #f2b632;
  --color-border: #e1def0;

  --font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --header-height: 88px; /* fixed bar height; the logo fills it exactly (see .brand__logo) */
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); text-align: center; }

p { margin: 0 0 1em; }

a { color: var(--color-accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -50px;
  background: var(--color-accent-strong); color: #fff;
  padding: .6em 1em; border-radius: 6px; z-index: 1000;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

/* Buttons ------------------------------------------------------------- */

.button {
  display: inline-block;
  padding: .75em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.button:hover { transform: translateY(-2px); }

.button--primary {
  background: var(--color-accent-warm);
  color: #1d1508;
}
.button--primary:hover { background: #ffc95c; }

.button--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.button--outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Header ---------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  color: var(--color-text);
  background: #ffffff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 18px rgba(32, 27, 48, .12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.site-header__inner, .site-footer__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}
.brand__logo {
  height: var(--header-height);
  width: auto;
  padding: 0;
  display: block;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav__links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { border-color: var(--color-accent); }

.social-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: inherit;
  transition: background-color .2s ease, color .2s ease;
}
.social-links a:hover { background: var(--color-accent); color: #fff; }
.social-links svg {
  width: 17px; height: 17px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #2a2440, #16121f);
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.2s ease;
}
.hero__slide.is-active { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,16,.12) 0%, rgba(10,8,16,.24) 45%, rgba(10,8,16,.68) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 28px clamp(56px, 10vw, 120px) clamp(20px, 6vw, 64px);
}
.hero__content h1 {
  font-size: clamp(2.6rem, 2rem + 4vw, 4.6rem);
  letter-spacing: -.01em;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.hero__tagline {
  font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem);
  color: rgba(255,255,255,.9);
  max-width: 560px;
  margin: 0 0 1.75em;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background-color .2s ease, transform .2s ease;
}
.hero__nav:hover { background: rgba(255,255,255,.3); }
.hero__nav:active { transform: translateY(-50%) scale(.92); }
.hero__nav--prev { left: 18px; }
.hero__nav--next { right: 18px; }
.hero__nav svg { width: 22px; height: 22px; }
.hero__nav[hidden] { display: none; }

/* Sections ------------------------------------------------------------ */

.section { padding: 100px 20px; background: var(--color-bg); }
.section--instagram { background: var(--color-bg-alt); }
.section__inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.section__cta { margin-top: 2em; }

/* Instagram ------------------------------------------------------------ */

.instagram-feed {
  margin: 2.5em 0;
}
.agenda-list .agenda-loading,
.agenda-list .agenda-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
}

/* SoundCloud ------------------------------------------------------------ */

.soundcloud-embed {
  max-width: 760px;
  margin: 2em auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(32, 27, 48, .15);
}
.soundcloud-embed iframe { display: block; border: 0; }
.soundcloud-embed__attribution {
  padding: 8px 14px;
  font-size: .78rem;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  text-align: left;
}
.soundcloud-embed__attribution a { color: var(--color-text-muted); text-decoration: underline; }

/* Agenda ----------------------------------------------------------------- */

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 2.5em;
  text-align: left;
}

.agenda-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
}
.agenda-card__image {
  aspect-ratio: 1;
  object-fit: cover;
  flex-shrink: 0;
  max-width: 40%;
  display: block; 
}
.agenda-card__body { padding: 18px 24px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.agenda-card__date {
  display: inline-block;
  color: var(--color-accent-strong);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .5em;
}
.agenda-card__title { font-size: 1.3rem; margin-bottom: .3em; }
.agenda-card__location { color: var(--color-text-muted); font-weight: 600; font-size: .92rem; margin-bottom: .6em; }
.agenda-card__description { color: var(--color-text-muted); white-space: pre-line; }
.agenda-card__actions { margin-top: auto; padding-top: 1.2em; display: flex; flex-wrap: wrap; gap: .8em; }
.agenda-card .button--primary { box-shadow: 0 4px 14px rgba(242, 182, 50, .35); }

@media (max-width: 520px) {
  .agenda-card__body { padding: 12px 14px; }
  .agenda-card__title { font-size: 1.1rem; }
  .agenda-card .button { padding: .55em 1.2em; font-size: .9rem; }
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 56px 20px 32px;
}
.site-footer__inner {
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.site-footer .brand__logo { height: clamp(160px, 45vw, 220px); }

.site-footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.site-footer__content .social-links { justify-content: center; }
.site-footer .social-links a { background: var(--color-bg-card); color: var(--color-text); }
.site-footer .social-links a:hover { background: var(--color-accent); color: #fff; }

.site-footer__tagline {
  max-width: 560px;
  color: var(--color-text-muted);
  margin: 0;
}
.site-footer__copyright {
  color: var(--color-text-muted);
  font-size: .85rem;
  margin: 0;
}
.site-footer__credit {
  width: 100%;
  margin: 24px 0 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: .95rem;
}
.site-footer__credit a {
  color: inherit;
  text-decoration: underline;
}
.site-footer__credit a:hover { color: var(--color-accent); }

@media (min-width: 861px) {
  .hero__content { padding-left: clamp(80px, 10vw, 160px); }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 56px;
  }
  .site-footer .brand__logo { height: 240px; }
  .site-footer__content { align-items: flex-start; text-align: left; }
  .site-footer__content .social-links { justify-content: flex-start; }
}

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

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, background-color .25s ease;
    margin-left: 0;
  }
  .primary-nav.is-open { max-height: 420px; }

  /* Same rule as the header itself: solid white at the top of the page,
     the translucent/blurred/shadowed look once scrolled. */
  .site-header.is-scrolled .primary-nav {
    background: rgba(255, 255, 255, .98);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .site-header.is-scrolled .primary-nav.is-open {
    box-shadow: 0 2px 18px rgba(32, 27, 48, .1);
  }

  .primary-nav__links {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 4px;
  }
  .primary-nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--color-border); }

  .primary-nav .social-links {
    justify-content: center;
    gap: 20px;
    padding: 18px 20px 22px;
  }

  .hero__nav {
    top: calc(var(--header-height) + 16px);
    transform: none;
  }
  .hero__nav:active { transform: scale(.92); }

  /* Photo on top, full width — a side-by-side row doesn't leave enough
     room for the text next to the image once a description is long. */
  .agenda-card { flex-direction: column; }
  .agenda-card__image { width: 100%; aspect-ratio: 1; max-width: 100%; }
  .agenda-card__body { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .section { padding: 72px 16px; }
  .hero__nav { width: 40px; height: 40px; }
  .hero__nav svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide { transition: none; }
}
