/* ═══════════════════════════════════════════════
   HOME.CSS — The Midnight Alchemist
   Homepage-only styles for The Hive
   ═══════════════════════════════════════════════ */

/* ─── RESET BODY BG FOR HOMEPAGE ─── */
body { background: #000; }

/* ─── HERO ─── */
.h-hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 4rem 0 5rem;
  gap: 3rem;
  background: #000;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Subtle radial glow behind text */
.h-hero::before {
  content: '';
  position: absolute;
  left: -10%;
  top: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255,179,0,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.h-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #191919;
  color: #FFB300;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
}

.h-hero-left h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.h-hero-left h1 em {
  color: #FFB300;
  font-style: italic;
}

.h-hero-left p {
  font-size: 1rem;
  color: #ababab;
  max-width: 420px;
  line-height: 1.75;
  margin-bottom: 2.2rem;
}

.h-hero-btns {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.h-btn-primary {
  background: linear-gradient(135deg, #ffc563, #FFB300);
  color: #523700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.85rem 1.8rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}
.h-btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.h-btn-ghost {
  background: transparent;
  color: #ffc563;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.85rem 1.8rem;
  border-radius: 0.375rem;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(72,72,72,0.7);
  transition: box-shadow 0.2s, color 0.2s;
  display: inline-block;
}
.h-btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255,197,99,0.5); color: #FFB300; }

/* ─── HEX MOSAIC ─── */
.h-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-hex-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  width: min(420px, 100%);
}

.h-hex-img {
  aspect-ratio: 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  background: #191919;
  transition: transform 0.4s ease;
}
.h-hex-img:hover { transform: scale(1.04); }

.h-hex-img:nth-child(2),
.h-hex-img:nth-child(4) {
  margin-top: 2.5rem;
}

.h-hex-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(15%) contrast(1.05);
}

.h-hex-gold {
  background: #FFB300;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #1a0900;
}

.h-hex-dark {
  background: #191919;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #FFB300;
}

/* ─── SHARED CONTAINER ─── */
.h-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── PROGRAMS / BENTO ─── */
.h-programs {
  background: #0e0e0e;
  padding: 7rem 2rem;
  position: relative;
  z-index: 1;
}

.h-programs-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.h-programs-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h-programs-header p {
  color: #ababab;
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 360px;
  margin-top: 0.8rem;
}

.h-stat {
  text-align: right;
  padding-top: 0.3rem;
}
.h-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: #FFB300;
  line-height: 1;
  display: block;
  letter-spacing: -0.03em;
}
.h-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ababab;
  margin-top: 0.3rem;
  display: block;
}

/* Bento grid */
.h-bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.h-bento-card {
  background: #191919;
  border-radius: 0.75rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.h-bento-card:hover { background: #1f1f1f; }

.h-bento-large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.h-bento-gold {
  background: #FFB300 !important;
}
.h-bento-gold:hover { background: #ffc563 !important; }
.h-bento-gold h3 { color: #3a2000; }
.h-bento-gold .h-bento-icon { filter: none; }

.h-bento-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
  color: #FFB300;
}

.h-bento-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.h-bento-card p {
  font-size: 0.82rem;
  color: #ababab;
  line-height: 1.65;
}

.h-bento-card a {
  color: #FFB300;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: auto;
  display: inline-block;
  padding-top: 1.5rem;
  transition: color 0.2s;
}
.h-bento-card a:hover { color: #ffc563; }

/* Hex notch decoration on large card */
.h-bento-large::after {
  content: '⬡';
  position: absolute;
  bottom: -0.5rem;
  right: 1.5rem;
  font-size: 6rem;
  color: #FFB300;
  opacity: 0.06;
  pointer-events: none;
  line-height: 1;
}

/* ─── EVENTS ─── */
.h-events {
  background: #000;
  padding: 7rem 2rem;
  position: relative;
  z-index: 1;
}

.h-events-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.h-events-sub {
  color: #ababab;
  text-align: center;
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

.h-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.h-event-card {
  background: #0e0e0e;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.25s;
}
.h-event-card:hover { transform: translateY(-4px); }

.h-event-img-card {
  padding: 0;
  background: transparent;
  border-radius: 1rem;
  overflow: hidden;
}
.h-event-img-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
}

.h-event-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFB300;
  margin-bottom: 0.7rem;
  display: block;
}

.h-event-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.h-event-card p {
  font-size: 0.82rem;
  color: #ababab;
  line-height: 1.65;
}

/* ─── TEAM TEASER ─── */
.h-team-teaser {
  background: #0e0e0e;
  padding: 6rem 2rem;
  text-align: center;
}

.h-teaser-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #FFB300;
  margin-bottom: 0.8rem;
}

.h-team-teaser h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.h-team-teaser > .h-container > p {
  color: #ababab;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  font-size: 0.9rem;
}

/* ─── GOLD CTA ─── */
.h-cta-wrap {
  padding: 2rem 2rem 4rem;
  background: #000;
  position: relative;
  z-index: 1;
}

.h-cta {
  background: linear-gradient(135deg, #ffc563 0%, #FFB300 100%);
  border-radius: 1.5rem;
  padding: 6rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* decorative hex behind CTA text */
.h-cta::before {
  content: '⬡';
  position: absolute;
  font-size: 50vw;
  color: rgba(82,55,0,0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 1;
}

.h-cta h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #1a0900;
  margin-bottom: 0.8rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  position: relative;
}

.h-cta p {
  color: #5e4000;
  font-size: 1rem;
  max-width: 460px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
}

.h-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.h-btn-dark {
  background: #1a0900;
  color: #FFB300;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.9rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background 0.2s;
}
.h-btn-dark:hover { background: #2e1200; }

.h-btn-outline-dark {
  background: transparent;
  color: #5e4000;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.9rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgba(94,64,0,0.5);
  transition: box-shadow 0.2s, color 0.2s;
}
.h-btn-outline-dark:hover { box-shadow: inset 0 0 0 1.5px rgba(94,64,0,1); color: #3a2000; }

/* ─── FOOTER (homepage override — multi-column) ─── */
.h-footer {
  background: #0e0e0e;
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.h-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,179,0,0.08);
}

.h-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  height: 44px;
}
.footer-logo img {
  display: block;
}
.h-footer-left p {
  font-size: 0.8rem;
  color: #ababab;
  max-width: 300px;
  line-height: 1.7;
  margin: 0;
}

.h-footer-right {
  display: flex;
  gap: 3rem;
}

.h-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.h-footer-col h5 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFB300;
  margin-bottom: 0.3rem;
}

.h-footer-col a {
  font-size: 0.8rem;
  color: #ababab;
  text-decoration: none;
  transition: color 0.2s;
}
.h-footer-col a:hover { color: #FFB300; }

.h-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.h-footer-bottom p {
  font-size: 0.75rem;
  color: rgba(171,171,171,0.4);
}

/* ─── LIGHTBOX ─── */
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
#lb-overlay.lb-open { display: flex; }

#lb-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 0.5rem;
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0,0,0,0.7);
  transition: opacity 0.18s ease;
  user-select: none;
}
#lb-img.lb-loading { opacity: 0; }

#lb-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 0.2rem 0.5rem;
}
#lb-close:hover { opacity: 1; }

#lb-prev,
#lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  padding: 0;
}
#lb-prev { left: 1.2rem; }
#lb-next { right: 1.2rem; }
#lb-prev:hover,
#lb-next:hover { background: rgba(255,179,0,0.25); }

#lb-counter {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}

.h-event-img-card { cursor: zoom-in; }
.h-event-img-card.h-hidden {
  display: none;
}
.h-event-img-card.h-reveal {
  animation: h-fadein 0.35s ease both;
}
@keyframes h-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.h-events-more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
#btn-view-more {
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
}


/* ─── UPCOMING EVENT ─── */
.h-upcoming-event {
  background: #000;
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.h-upcoming-card {
  background: linear-gradient(135deg, #191919 0%, #0c0c0c 100%);
  border: 1px solid rgba(255, 179, 0, 0.25);
  border-radius: 1.25rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(255, 179, 0, 0.05);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.h-upcoming-card::after {
  content: '⬡';
  position: absolute;
  right: -5rem;
  top: -5rem;
  font-size: 15rem;
  color: rgba(255, 179, 0, 0.03);
  font-family: sans-serif;
  pointer-events: none;
  line-height: 1;
}

.h-upcoming-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFB300;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  background: rgba(255, 179, 0, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 179, 0, 0.15);
}

.h-upcoming-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.h-upcoming-details {
  display: grid;
  gap: 0.85rem;
  color: #ababab;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 650px;
}

.h-upcoming-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
}

.h-upcoming-row strong {
  color: #fff;
  min-width: 110px;
  flex-shrink: 0;
}

.h-upcoming-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0 0;
  color: #ffc563;
  font-weight: 600;
}

.h-upcoming-date i {
  font-size: 1.1rem;
  color: #FFB300;
}

.h-upcoming-btn-wrapper {
  flex-shrink: 0;
}

.h-upcoming-btn {
  padding: 1rem 2rem;
  font-size: 0.85rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(255, 179, 0, 0.15);
}

/* media overrides */
@media (max-width: 960px) {
  .h-upcoming-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .h-upcoming-btn-wrapper {
    width: 100%;
  }
  .h-upcoming-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .h-upcoming-event {
    padding: 2rem 1rem 1rem;
  }
  .h-upcoming-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
  }
  .h-upcoming-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  .h-upcoming-row strong {
    min-width: auto;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .h-hero {
    grid-template-columns: 1fr;
    padding: 5rem 2rem 3rem;
    min-height: auto;
    text-align: center;
  }
  .h-hero::before { display: none; }
  .h-hero-left p { max-width: 100%; }
  .h-hero-btns { justify-content: center; gap: 1rem; }
  .h-hex-mosaic {
    width: min(380px, 100%);
    margin: 2rem auto 0;
  }
  .h-hex-img:nth-child(2),
  .h-hex-img:nth-child(4) { margin-top: 1.5rem; }
  .h-programs-header { grid-template-columns: 1fr; }
  .h-stat { text-align: left; }
  .h-bento { grid-template-columns: 1fr 1fr; }
  .h-bento-large { grid-row: span 1; min-height: auto; }
  .h-events-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .h-event-img-card img { height: 220px; }
  .h-event-featured { transform: none; }
  .h-event-featured:hover { transform: translateY(-4px); }
  .h-cta { padding: 4rem 2rem; }
  .h-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .h-footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .h-hero { padding: 3.5rem 1.5rem 2rem; }
  .h-hero h1 { font-size: clamp(2rem, 5vw, 4rem); }
  .h-hero-left p { font-size: 0.95rem; }
  .h-hex-mosaic { width: min(320px, 90%); }
  .h-programs, .h-events, .h-team-teaser { padding: 3rem 1.5rem; }
  .h-programs-header h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
  .h-events-title { font-size: clamp(1.5rem, 4vw, 2.5rem); }
  .h-bento { gap: 1.2rem; }
  .h-bento-card { padding: 1.5rem; }
  .h-bento-card h3 { font-size: 1rem; }
  .h-bento-card p { font-size: 0.85rem; }
}

@media (max-width: 600px) {
  .h-hero { padding: 2.5rem 1rem 1.5rem; }
  .h-hero h1 { font-size: clamp(1.8rem, 6vw, 3rem); line-height: 1.2; }
  .h-hero-left p { font-size: 0.9rem; line-height: 1.5; }
  .h-hero-btns { flex-direction: column; }
  .h-hero-btns a { width: 100%; text-align: center; padding: 0.75rem; }
  .h-programs, .h-events, .h-team-teaser { padding: 2.5rem 1rem; }
  .h-bento { grid-template-columns: 1fr; gap: 1rem; }
  .h-bento-icon { font-size: 1.5rem; }
  .h-bento-card h3 { font-size: 0.95rem; }
  .h-bento-card p { font-size: 0.8rem; }
  .h-events-grid { grid-template-columns: 1fr; }
  .h-event-img-card img { height: 200px; }
  .h-cta-wrap { padding: 1rem 1rem 2rem; }
  .h-cta { border-radius: 0.75rem; padding: 2rem 1rem; }
  .h-footer-inner { gap: 1.5rem; }
  .h-footer-right { flex-direction: column; gap: 1rem; }
  .h-footer-col h5 { font-size: 0.9rem; margin-bottom: 0.75rem; }
}

@media (max-width: 400px) {
  .h-hero { padding: 2rem 0.75rem 1rem; }
  .h-hero h1 { font-size: clamp(1.5rem, 7vw, 2.5rem); }
  .h-hero-left p { font-size: 0.85rem; }
  .h-programs, .h-events, .h-team-teaser { padding: 2rem 0.75rem; }
  .h-cta { padding: 1.5rem 0.75rem; }
  .h-bento-card { padding: 1.2rem; }
}
