/* HOME PAGE — page-specific styles.
   Shared hero, stats-bar, about-block, scroll-snap steps, membership tiers
   and FAQ accordion styles live in base.css. */

.hero-section {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.background-video {
  position: absolute;
  inset: 0;
  z-index: -2;

  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.4);
}

.background-video-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 4rem 6%;
  color: white;
}

.hero-text {
  max-width: 700px;
}

.hero-headline {
  margin: 0 0 1rem;
}

.hero-tagline {
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 700px;
  }

  .background-video-content {
    padding: 3rem 1rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-tagline br {
    display: none;
  }
}

@media (max-width: 400px) {
  .background-video-content {
    padding: 2.5rem 0.75rem;
  }
}

/* On the home page the stats bar is pinned to the bottom of the hero image */
.hero-section .stats-bar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; }

/* ───────── SHARED SECTION HEADINGS ───────── */
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--plum); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-weight: 900; font-size: 56px; line-height: 0.95; text-transform: uppercase; color: var(--text); margin-bottom: 56px; }


/* ───────── EVENTS (home variant) ───────── */
/* EVENT CARDS */
/* EVENTS PAGE — page-specific styles.
   Shared .events-hero-summary / .event-flow-list / .page-label live in base.css. */

.events-hero {
  width: 100%;
  min-height: 85vh;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 120px 8%;
}

.events-hero-text { flex: 0 1 34%; }

.events-hero-text h1 {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--plum);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.events-hero-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

.button {
  display: inline-block;
  padding: 14px 30px;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.button-primary { background: var(--plum); color: var(--cream); }
.button-primary:hover { background: var(--plum-deep); }

.button-secondary { background: var(--lilac); color: var(--plum); }
.button-secondary:hover { background: var(--plum-deep); color: var(--cream); }

/* SHARED SECTION STYLING */
.events-section,
.practical-section,
.events-faq-section {
  width: 100%;
  padding: 120px 8%;
  background: var(--warm-white);
}

.first-time-section { width: 100%; padding: 120px 8%; background: var(--cream); }

.section-heading { text-align: center; margin: 0 auto 90px; }

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--plum);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-heading h3 {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--matcha);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-heading p { font-family: var(--font-body); font-size: 1rem; color: var(--text-dark); }

/* FILTER FORM */
.event-filter-form {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 50px;
  background: var(--matcha);
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px;
}

.filter-field { display: flex; flex-direction: column; gap: 10px; }

.filter-field label {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--plum);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-field select,
.filter-field input {
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--text-dark);
}

/* EVENT CARDS */
.event-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.event-card { background: var(--cream); border-radius: 20px; overflow: hidden; }

.event-card-header { background: var(--plum); padding: 30px; }

.event-date {
  display: inline-block;
  background: var(--matcha);
  color: var(--plum);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.event-card-header h3 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.event-card-header p { font-family: var(--font-body); color: var(--cream); }

.event-card-body { padding: 30px; }
.event-card-body p { font-family: var(--font-body); font-size: 1rem; color: var(--text-dark); margin-bottom: 14px; }

.event-card-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }


.events-hero-summary { flex: 1 1 62%; }

.luma-calendar-wrapper {
  width: 100%;
  max-width: 800px;
}

.luma-calendar-wrapper iframe {
  min-height: 450px;
  height: 70vh; /* scales with viewport */
  max-height: 800px;
  display: block;
  width: 100%;
}

/* ───────── CLUBHOUSE HOURS STRIP ───────── */
.hours-strip { background: var(--lilac); padding: 18px 48px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--text); flex-wrap: wrap; text-align: center; }
.hours-strip span { opacity: 0.4; }




/* ───────── THE COMMUNITY (floating flip-card story wall) ───────── */
.community-section { background: var(--cream); padding: 100px 6%; }
.community-inner { max-width: 1300px; margin: 0 auto; }

/* Home page only: story wall cards stay static on the front image, no flip.
   (community.css still gives the /community page the flipping version.) */
.floating-swap-section .floating-flip-card { perspective: none !important; }
.floating-swap-section .floating-flip-card:hover .floating-flip-inner,
.floating-swap-section .floating-flip-card.is-flipped .floating-flip-inner {
  transform: none !important;
}
.floating-swap-section .floating-card-front {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
}

.community-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--plum);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 16px;
}

.community-body { font-size: 14px; color: var(--text-mid); max-width: 560px; line-height: 1.7; margin-bottom: 48px; }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 900px) {
  .hero-headline { font-size: 3.2rem; }
  .hero-section .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { aspect-ratio: 16 / 9; }


  .events-hero { flex-direction: column; align-items: flex-start; gap: 40px; padding: 80px 6%; }
  .events-hero-text, .events-hero-summary { flex: 1 1 100%; width: 100%; }
  .events-hero-text h1 { font-size: 3.2rem; }
}


@media (max-width: 600px) {
  .hero-headline { font-size: 2.6rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .about-section, .community-section, .faq-section { padding: 72px 6%; }
}
