/* ===========================
   SCRUBS LANE — SITE STYLES
   Header + Poster Home + Gallery Video
   =========================== */

/* ---------- FONT FACES ---------- */
@font-face {
  font-family: 'Lincoln 5x7';
  src: url('../fonts/lincolnmitre-lm5x7-webfont.woff2') format('woff2'),
       url('../fonts/lincolnmitre-lm5x7-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lincoln 7x9';
  src: url('../fonts/lincolnmitre-lm7x9-webfont.woff2') format('woff2'),
       url('../fonts/lincolnmitre-lm7x9-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lincoln lm';
  src: url('../fonts/lincolnmitre-lm-webfont.woff2') format('woff2'),
       url('../fonts/lincolnmitre-lm-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- VARIABLES ---------- */
:root {
  --bg: #000;
  --fg: #fff;
  --acc: #f0f;

  --header-h: 64px;
  --nav-gap: 1.25rem;
  --container-max: 1400px;

  --muted: #cfcfcf;
  --line: #222;
  --ring: 0 0 0 2px rgba(240, 0, 255, .6);
}

/* ---------- RESET + BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Lincoln 7x9', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page--home { overflow-x: hidden; overflow-y: auto; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ===========================
   HEADER — Cabrio layout
   =========================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center; /* centers nav by default */
  height: var(--header-h);
  padding: 0 1.25rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* === LOGO LEFT === */
.logo {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Lincoln lm', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  z-index: 1100;
}

.logo a {
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.2s ease;
}
.logo a:hover {
  opacity: 0.8;
}

/* === NAV CENTERED === */
.nav-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-overlay ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-overlay a {
  font-family: 'Lincoln 7x9', monospace;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.nav-overlay a:hover {
  opacity: 0.8;
  border-color: var(--acc);
}

/* === HAMBURGER FOR MOBILE === */
.hamburger {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  z-index: 1200;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 20px;
  background: #fff;
  transition: all 0.25s ease;
}

/* === HAMBURGER ANIMATION === */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px);
}

/* === MOBILE OVERLAY MENU === */
@media (max-width: 768px) {
  .header {
    justify-content: center;
  }

  .logo {
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
  }

  .hamburger {
    display: flex;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-overlay ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav-overlay a {
    font-size: 1.4rem;
  }
}

/* ===========================
   POSTER (HOME)
   =========================== */

.poster {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - var(--header-h)); /* ensures full viewport height */
  width: 100%;
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 3rem; /* breathing room */
  box-sizing: border-box;
  overflow-y: auto; /* allows scroll on smaller screens */
}

/* For tablets and laptops — perfectly centered poster */
@media (min-width: 768px) and (max-height: 1100px) {
  .poster {
    align-items: center;   /* center vertically */
    justify-content: center; /* center horizontally */
    padding: 0 1.5rem;     /* remove top offset */
    overflow: hidden;      /* remove scrollbars */
  }
}

.poster-card {
  display: grid;
  gap: 1rem;
  text-align: center;
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
  width: min(720px, 92vw);
  background: rgba(0,0,0,.35);
  box-shadow: 0 0 40px rgba(255,0,255,.07);
  margin: 0 auto;
}

.pill {
  justify-self: center;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--acc);
  border-radius: 999px;
  padding: .25rem .6rem;
  color: var(--fg);
  opacity: .9;
}

.collab {
  font-family: 'Lincoln lm', sans-serif;
  font-weight: normal;
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: .04em;
  line-height: 1.1;
}
.collab .x { color: var(--acc); padding: 0 .25ch; }

.spiritus-link {
  display: inline-block;
  font-size: inherit;
  letter-spacing: .02em;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, opacity .2s ease;
  opacity: 0.95;
  color: inherit;
}
.spiritus-link:hover { border-color: var(--acc); opacity: 1; }

.when, .where, .time {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: .04em;
  opacity: .95;
}

.soundnote {
  font-size: .9rem;
  color: var(--muted);
  opacity: .9;
  margin-top: 0.2rem;    /* reduced from default 0.9rem */
  margin-bottom: 0.2rem; /* brings RSVP button closer */
}

.cta-row {
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin-top: 0;
}

/* Single RSVP button version */
.cta-row.single {
  justify-content: center;
}

.cta-row.single .btn-cta {
  width: auto;
  padding: 0.7rem 2rem;
}

/* Reset native button styling */
button {
  all: unset;
  display: inline-block;
  box-sizing: border-box;
  cursor: pointer;
}

/* Pink accent RSVP button */
.btn-pink {
  border: 2px solid var(--acc);
  background: var(--acc);
  color: #000;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 2.25rem;
  font-size: 0.95rem;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.3);
  transition: all 0.2s ease-in-out;
  width: min(240px, 80%); /* <–– keeps it proportionate */
  display: block;
  margin: 1.25rem auto 0;
  text-align: center;
}

.btn-pink:hover {
  transform: translateY(-2px);
  background: #ff33ff;
  box-shadow: 0 0 18px rgba(255, 0, 255, 0.5);
}

.event-note {
  display: block;
  text-align: center;
  text-transform: uppercase;
  font-family: 'Lincoln 7x9', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  color: #d4b3ff;
  opacity: 0.8;
  margin-top: .5rem;
  margin-bottom: 0.5rem;
}

.btn-cta, .btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex: 1 1 0;
  letter-spacing: .04em;
  line-height: 1;
  height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}

/* optional – fine-tune the RSVP button spacing */
.btn-cta {
  margin-top: 0.2rem;     /* small gap between soundnote and button */
}

.btn-ghost {
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
}
.btn-ghost:hover { transform: translateY(-1px); background: #111; }

.meta {
  margin-top: .25rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  list-style: none;
  font-size: .85rem;
  color: var(--muted);
  opacity: .95;
}

/* Lineup grid */
.lineup {
  margin: .5rem auto 0;
  width: min(640px, 92vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: .35rem;
  list-style: none;
  text-align: center;
}

.lineup a {
  font-size: clamp(.95rem, 2.2vw, 1.05rem);
  letter-spacing: .02em;
  transition: border-color .2s ease, opacity .2s ease, text-shadow .2s ease;
  opacity: .95;
  border-bottom: 1px solid transparent;
  text-shadow: 0 0 4px rgba(255, 0, 255, 0.1);
}

.lineup a {
  text-shadow: 0 0 2px rgba(255, 0, 255, 0.15);
}

.lineup a:hover {
  opacity: 1;
  border-color: var(--acc);
  text-shadow:
    0 0 6px rgba(255, 0, 255, 0.4),
    0 0 12px rgba(255, 0, 255, 0.3),
    0 0 18px rgba(255, 0, 255, 0.2);
  animation: neon-flicker 1.5s infinite alternate;
}

.special-guest {
  margin-top: .75rem;
  text-align: center;
  color: var(--acc);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: clamp(.9rem, 2vw, 1rem);
}

@media (max-width: 768px) {
  .poster {
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 3rem;
  }
}

/* --- Mobile Poster Layout --- */
@media (max-width: 520px) {
  .poster-card { gap: 1.25rem; padding: 1.5rem 1rem; width: 92vw; }
  .collab { display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: clamp(1.5rem, 8vw, 2.2rem); }
  .lineup { grid-template-columns: 1fr; row-gap: .45rem; width: 100%; }
  .cta-row { flex-direction: column; align-items: center; gap: .75rem; }
  .btn-ghost, .btn-cta { width: 85%; max-width: 280px; }
  .meta { flex-direction: column; gap: .4rem; }
}

/* ===========================
   GALLERY INDEX (FOLDER VIEW)
   =========================== */
.folder-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem 4rem;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 2rem;
  margin-top: var(--header-h);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.folder-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}

.folder-tile:hover {
  transform: scale(1.05);
  opacity: 1;
}

.folder-icon {
  width: 90px;
  height: auto;
  margin-bottom: 0.75rem;
  display: block;
}

.folder-tile span {
  font-family: 'Lincoln 7x9', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

@media (max-width: 768px) {
  .folder-grid { gap: 2rem; padding: 2.5rem 1rem; }
  .folder-tile { width: 110px; }
  .folder-icon { width: 72px; }
  .folder-tile span { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .folder-grid { flex-direction: column; align-items: center; gap: 1.5rem; }
  .folder-icon { width: 80px; }
}

/* ===========================
   GALLERY DETAIL (FOLDER PAGE)
   =========================== */
.folder-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.folder-detail .gallery-heading {
  text-align: center;
  margin: 2rem 1rem 3rem;
}

.folder-detail .media-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  margin: 0 auto 5rem;
}

.folder-detail .media-grid img,
.folder-detail .media-grid video {
  display: block;
  width: min(92vw, 900px);
  height: auto;
  border-radius: 6px;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.08);
}

.caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.75;
  letter-spacing: 0.03em;
}

/* Back arrow */
.back-arrow {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 2rem;
  text-decoration: none;
  color: var(--acc);
  transition: color 0.3s ease;
}
.back-arrow:hover { color: var(--fg); }

@media (max-width: 768px) {
  .folder-detail .media-grid img,
  .folder-detail .media-grid video {
    width: 100vw;
    border-radius: 0;
    box-shadow: none;
  }
  .folder-detail .gallery-heading { margin: 1.5rem 0 2rem; padding: 0 1rem; }
}

@media (max-width: 480px) {
  .folder-detail .media-grid img,
  .folder-detail .media-grid video {
    width: 100%;
    padding: 0 0.5rem;
    border-radius: 4px;
  }
}

/* Optional subtle glow hover */
.folder-tile:hover .folder-icon {
  filter: drop-shadow(0 0 6px rgba(255, 0, 255, 0.6));
}

/* ===========================
   RSVP PAGE
   =========================== */
.page--rsvp {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
}

.rsvp-wrapper {
  width: min(500px, 92vw);
  text-align: center;
  margin-top: var(--header-h);
  padding: 3rem 1.5rem;
}

.rsvp-title {
  font-family: 'Lincoln lm', sans-serif;
  font-size: clamp(2rem, 6vw, 2.5rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.rsvp-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.rsvp-form input,
.rsvp-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0a0a;
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.05em;
}

.rsvp-form textarea {
  min-height: 120px;
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: var(--ring);
}

/* ===========================
   CUSTOM "SEND RSVP" BUTTON
   =========================== */

.btn-send {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  margin: 0.75rem auto 2.25rem; /* tighter above, more space below */
  padding: 1rem 2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff44ff 0%, #d100d1 100%);
  color: #000;
  font-family: 'Lincoln 7x9', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 0, 255, 0.4);
  transition: all 0.15s ease-in-out;
}

/* Hover interaction */
.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.6);
  background: linear-gradient(180deg, #ff66ff 0%, #e600e6 100%);
}

/* Active (pressed) */
.btn-send:active {
  transform: translateY(1px);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
  background: linear-gradient(180deg, #d100d1 0%, #a800a8 100%);
}

/* Focus ring */
.btn-send:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 0, 255, 0.7);
}

/* Alternate RSVP link below button */
.rsvp-alt {
  text-align: center;
  font-family: 'Lincoln 7x9', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-top: -0.5rem;   /* tighten spacing to button */
  margin-bottom: 2rem;   /* maintain space before event note */
  opacity: 0.85;
}

.rsvp-alt a {
  color: var(--acc);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.rsvp-alt a:hover {
  opacity: 1;
  border-color: var(--acc);
}

.rsvp-alt a:hover {
  opacity: 1;
  border-color: var(--acc);
  animation: neon-flicker 1.5s infinite alternate;
}

/* ===========================
   ETHOS PAGE
   =========================== */

/* Main ethos section */
.ethos-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  text-align: left; /* keep internal text left-aligned */
  padding-top: 100px; /* pushes below navbar */
}

/* Title */
.ethos-title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Pink box */
.ethos-full {
  border: 1px solid magenta;
  background: transparent;
  width: min(800px, 90vw);
  max-height: 60vh;
  padding: 2rem;
  overflow-y: auto;
  box-sizing: border-box;
  margin: 0 auto; /* centers horizontally */
}

/* Scrollbar styling */
.ethos-full::-webkit-scrollbar {
  width: 6px;
}
.ethos-full::-webkit-scrollbar-thumb {
  border-radius: 1px;
}

/* Headings + text */
.ethos-lead {
  color: magenta;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.ethos-block p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
  margin: 0;
  margin-bottom: 1.25rem;
}

/* Neon flicker animation for Instagram link */
@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow:
      0 0 6px rgba(255, 0, 255, 0.4),
      0 0 12px rgba(255, 0, 255, 0.3),
      0 0 18px rgba(255, 0, 255, 0.2);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}