/* ============================================================
   JOIN COLLECTIVE PAGE CUSTOM STYLES
   ============================================================ */

/* ============================================================
   AWWWARDS-STYLE TYPOGRAPHIC PRELOADER
   ============================================================ */
#lp-page-loader {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loader-line {
  overflow: hidden;
  height: clamp(32px, 8vw, 72px);
}

.loader-text-item {
  display: block;
  font-family: 'Akira Expanded', sans-serif;
  font-size: clamp(26px, 6vw, 64px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  transform: translateY(100%);
}

.loader-progress {
  position: absolute;
  bottom: 40px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2em;
}

/* ============================================================
   HEADER BANNER (PREVENT INITIAL JUMP)
   ============================================================ */
.lp-artisans-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #0c0c0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 9980;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-60px);
}

.lp-header-title {
  font-family: 'ThccHandwritten', sans-serif;
  font-size: clamp(16px, 4vw, 24px);
  color: #ffffff;
  letter-spacing: 0.05em;
  margin: 0;
  text-align: center;
}

/* ============================================================
   SIDEBAR & CONTENT OVERRIDES (BREATHING ROOM)
   ============================================================ */
#lp-content {
  margin-top: 60px !important;
  padding-top: 40px;
  padding-left: var(--card-gap);
  padding-right: var(--card-gap);
  padding-bottom: calc(var(--card-gap) + 80px);
}

.lp-sidebar {
  pointer-events: all !important;
}

@media (min-width: 769px) {
  .lp-sidebar {
    top: 60px !important;
    height: calc(100vh - 60px) !important;
    transform: none !important;
    opacity: 0; /* Fade in on load */
  }
}


/* ─── HERO JOIN BANNER CARD ──────────────────────────────── */
.lp-join-hero {
  position: relative;
  width: 100%;
  height: 720px; /* Double height on desktop */
  background-image: url('../images/thumbnails/join_collective.png');
  background-size: cover;
  background-position: center;
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.4); /* White border style */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--card-gap);
  opacity: 0; /* GSAP slide reveal */
}

.lp-join-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
}

.lp-join-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 900px;
}

.lp-join-hero-title {
  font-family: 'Akira Expanded', sans-serif;
  font-size: clamp(1.8rem, 6vw, 4.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.lp-join-hero-sub {
  font-family: 'ThccHandwritten', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
}

.lp-join-hero-sub p {
  margin: 12px 0;
}

.lp-join-hero-sub span.accent-text {
  color: var(--accent); /* Brand yellow #fff200 */
}

@media (max-width: 768px) {
  .lp-join-hero {
    height: 420px; /* More height in mobile view */
    margin-top: 16px;
  }
  .lp-join-hero-content {
    padding: 0 20px;
  }
}

/* ─── FORM & ARCHIVE SECTION ─────────────────────────────── */
.lp-join-form-section {
  max-width: 1200px;
  margin: 120px auto;
  padding: 0 24px;
  opacity: 0; /* GSAP reveal */
}

@media (max-width: 768px) {
  .lp-join-form-section {
    margin: 80px auto;
    padding: 0 16px;
  }
}

.lp-join-section-title {
  font-family: 'Akira Expanded', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--accent); /* Brand yellow */
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lp-join-section-desc {
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px auto;
}

/* Yellow Border Card */
.lp-join-form-card {
  border: 2px solid var(--accent);
  border-radius: var(--card-radius);
  background: #000000;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (max-width: 768px) {
  .lp-join-form-card {
    padding: 40px 24px;
  }
}

.lp-join-card-title {
  font-family: 'Akira Expanded', sans-serif;
  font-size: clamp(1.2rem, 3.2vw, 2.2rem);
  font-weight: 900;
  color: var(--accent);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.lp-join-card-subtitle {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 760px;
  margin-bottom: 40px;
}

/* Stagger benefit details grid */
.lp-join-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 56px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .lp-join-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .lp-join-benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.lp-benefit-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--card-radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  transition: border-color 0.3s, transform 0.3s;
}

.lp-benefit-card:hover {
  border-color: rgba(255, 242, 0, 0.4);
  transform: translateY(-2px);
}

.lp-benefit-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.lp-benefit-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.lp-join-card-footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* ─── INVITATION FORM INLINES ────────────────────────────── */
.lp-invite-form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.lp-invite-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

@media (max-width: 640px) {
  .lp-invite-row {
    flex-direction: column;
    gap: 12px;
  }
}

.lp-invite-input-wrap {
  flex: 1;
  position: relative;
  width: 100%;
}

.lp-invite-input {
  width: 100%;
  background: #222222;
  border: 2px solid transparent;
  border-radius: 9999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  outline: none;
  transition: background 0.3s, border-color 0.3s;
}

.lp-invite-input:focus {
  border-color: var(--accent);
  background: #111111;
}

.lp-invite-input.error {
  border-color: #ff3333;
  background: #331111;
}

.lp-invite-error {
  color: #ff3333;
  font-size: 11px;
  margin-top: 6px;
  font-weight: 700;
  display: none;
  margin-left: 24px;
}

.lp-invite-input.error + .lp-invite-error {
  display: block;
}

.lp-btn-invite {
  background: var(--accent);
  color: #000000;
  border: 2px solid var(--accent);
  height: 52px;
  padding: 0 36px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.lp-btn-invite:hover {
  background: #000000;
  color: var(--accent);
}

@media (max-width: 640px) {
  .lp-btn-invite {
    width: 100%;
  }
}

/* ─── MOBILE VIEWPORT OVERRIDES ────────────────────────── */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
  }
  .lp-mobile-nav {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
}
