/* ============================================================
   HOME.CSS — Thirsk Squash Club
   Homepage-only styles: full-width bands, alternating feature
   strips, stats strip, heritage band, final CTA.
   Everything here is scoped to #page-home so it never leaks
   into Book / League / Membership / etc.
   ============================================================ */

/* ── ESCAPE THE 940PX CAGE ──────────────────────────────────
   .page has max-width:940px + padding; we override on home so
   bands can run edge-to-edge. Inner content is pulled back to
   1200px via .home-container. */
#page-home.page {
  max-width: none;
  padding: 0;
}
#page-home .home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Every band stacks vertically — full viewport width. */
.home-band {
  width: 100%;
  position: relative;
}

/* ── HERO BAND ──────────────────────────────────────────── */
.home-band-hero {
  position: relative;
  overflow: hidden;
  /* Fill the first fold: viewport height minus the 58px sticky header
     so the stats strip never peeks into view behind the hero. */
  min-height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-band-hero .hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-band-hero .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.home-band-hero .hero-slide.active {
  opacity: 1;
}
.home-band-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(10,14,11,0.85) 0%,
    rgba(10,14,11,0.55) 50%,
    rgba(10,14,11,0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Vertical position now handled by flex-center on the parent. Padding
     stays balanced so title / body / heritage all breathe. */
  padding: 3rem 1.2rem 3rem;
  padding-left: clamp(1.2rem, 6vw, 5rem); /* shift right on wider screens */
}
.hero-kicker {
  margin-top: 0.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 72px);
  color: #fff;
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 1.8rem;   /* space that used to host the divider line */
  font-weight: 400;
}
.hero-title span { color: var(--bm); }
.hero-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-copy { flex: 1; min-width: 260px; }
.hero-copy p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 620px;
}
.hero-cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.hero-cta-primary { font-size: 15px; padding: 11px 26px; }

/* Hero progress widget — deliberately big so new visitors can't miss the
   signup state. Full-card treatment: subtle border, generous padding,
   oversized orange count, wider bar. */
#home-league-progress {
  text-align: center;
  flex-shrink: 0;
  min-width: 240px;
  padding: 1.4rem 1.75rem 1.6rem;
  background: rgba(10, 5, 20, 0.38);
  /* soft lime border — adds green breath to a plum+orange card */
  border: 1px solid rgba(0, 208, 132, 0.45);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.home-league-urgency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #b8860b 0%, #e8c872 50%, #b8860b 100%);
  color: #2a1a00;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 3px 10px 3px 8px;
  border-radius: 3px;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  box-shadow: 0 3px 14px rgba(184,134,11,0.5);
  font-family: var(--font-body);
}
.home-league-urgency::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a1a00;
  animation: urgency-pulse 1.6s ease-in-out infinite;
}
@keyframes urgency-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}
.home-league-count-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 78px);
  color: var(--bm);
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 208, 132, 0.35);
}
.home-league-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 2.5px;
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.home-league-bar-wrap {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  height: 14px;
  overflow: hidden;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}
#home-league-bar {
  /* Emerald → mint — tip lightens as progress grows, kit-colour signal */
  background: linear-gradient(90deg, var(--bm) 0%, var(--bml) 100%);
  height: 100%;
  border-radius: 6px;
  width: 0%;
  transition: width 0.8s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
/* Hero team-status strip — compact card pulled live from team_standings,
   echoes the "follow Thirsk like a Premier League club" goal. */
.home-team-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 208, 132, 0.10);
  border: 1px solid rgba(0, 208, 132, 0.35);
  border-radius: 999px;
  padding: 8px 16px;
  margin-top: 1.2rem;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.15s;
  max-width: 100%;
  flex-wrap: wrap;
}
.home-team-strip:hover {
  background: rgba(0, 208, 132, 0.18);
  transform: translateY(-1px);
}
.home-team-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--bm);
}
.home-team-body {
  font-family: var(--font-body);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.3px;
}
.home-team-arrow {
  color: var(--bm);
  font-family: var(--font-display);
  font-size: 16px;
}

#home-league-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.9rem;
  line-height: 1.4;
  font-family: var(--font-editorial);
  font-style: italic;
}

/* ── STATS STRIP ────────────────────────────────────────── */
.home-band-stats {
  padding: 2.2rem 0;
  background: var(--wh);
  border-top: 0.5px solid var(--br);
  border-bottom: 0.5px solid var(--br);
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-item { padding: 0.2rem 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--bd);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 0.35rem;
}
/* Emerald / black / emerald / gold — gold on the price to signal value */
.stat-item:nth-child(2) .stat-num { color: var(--bm); }
.stat-item:nth-child(3) .stat-num { color: var(--bd); }
.stat-item:nth-child(4) .stat-num {
  background: linear-gradient(135deg, #b8860b 0%, #e8c872 50%, #9a7a1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-lbl {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 13px;
  color: var(--mu);
}

/* ── FEATURE STRIPS (alternating image + copy) ─────────── */
.home-band-feature {
  padding: 4.5rem 0;
}
.home-band-feature-alt {
  background: var(--bg);
}
.feature-strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature-image {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  min-height: 380px;
  box-shadow: 0 10px 32px rgba(15,21,17,0.18);
}
.feature-strip-reverse .feature-image { order: 2; }

/* ── Placeholder image blocks ─────────────────────────────
   Used while real squash photography is being sourced. Each is
   intentionally on-brand — plum gradient + iconography — so it
   reads as editorial, not broken. Swap for real photos later by
   removing .feature-image-ph* classes and restoring
   background-image. */
.feature-image-ph {
  background: linear-gradient(135deg, var(--bd) 0%, #1a221d 55%, #080a09 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-image-ph::after {
  /* diagonal court-line texture */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(125deg, transparent 48%, rgba(255,255,255,0.04) 48%, rgba(255,255,255,0.04) 52%, transparent 52%),
    linear-gradient(35deg,  transparent 48%, rgba(255,255,255,0.03) 48%, rgba(255,255,255,0.03) 52%, transparent 52%);
  background-size: 120px 120px;
  pointer-events: none;
}

/* Courts — front wall with service line */
.feature-image-ph-courts::before {
  content: '';
  position: relative;
  z-index: 1;
  width: 70%;
  max-width: 320px;
  height: 220px;
  border: 2px solid rgba(255,140,66,0.55);
  border-top: none;
  border-radius: 0 0 6px 6px;
  background:
    linear-gradient(to bottom, transparent 49%, rgba(255,140,66,0.5) 49%, rgba(255,140,66,0.5) 51%, transparent 51%);
  box-shadow: inset 0 30px 60px rgba(255,140,66,0.06);
}

/* League — glowing squash ball */
.feature-image-ph-league::before {
  content: '';
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #ff9e58 0%, var(--ac) 35%, #c55b1a 85%);
  box-shadow:
    0 0 120px rgba(255, 140, 66, 0.35),
    inset -10px -14px 40px rgba(0, 0, 0, 0.35),
    inset 8px 10px 28px rgba(255, 255, 255, 0.18);
}

/* Club nights — three overlapping orange circles */
.feature-image-ph-club::before {
  content: '';
  position: relative;
  z-index: 1;
  width: 60%;
  max-width: 280px;
  height: 180px;
  background:
    radial-gradient(circle 34px at 25% 30%, var(--ac) 98%, transparent 100%),
    radial-gradient(circle 34px at 65% 55%, rgba(255,140,66,0.65) 98%, transparent 100%),
    radial-gradient(circle 34px at 38% 80%, rgba(255,140,66,0.4) 98%, transparent 100%);
  filter: drop-shadow(0 6px 30px rgba(255, 140, 66, 0.25));
}

/* Hero slideshow placeholder — typographic plum gradient with subtle
   diagonal court-line pattern. Replaces the .hero-slide <img> stack
   until real squash photography is wired in. */
.hero-slides-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, #080a09 0%, var(--bd) 45%, #1a221d 100%);
}
.hero-slides-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(125deg, transparent 48%, rgba(52, 211, 153,0.05) 48%, rgba(52, 211, 153,0.05) 52%, transparent 52%),
    linear-gradient(35deg,  transparent 48%, rgba(0, 208, 132,0.04) 48%, rgba(0, 208, 132,0.04) 52%, transparent 52%);
  background-size: 180px 180px;
}
.feature-kicker {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 13px;
  color: var(--bm);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.55rem;
}
/* Middle feature strip gets a gold kicker — breaks the run of emerald
   kickers across the feature bands for rhythm. */
.home-band-feature-alt .feature-kicker {
  background: linear-gradient(90deg, #9a7a1f 0%, #d4af37 50%, #9a7a1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.feature-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 44px);
  color: var(--bd);
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  font-weight: 400;
}
.feature-copy p {
  font-size: 15px;
  color: var(--mu);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

/* ── DARK CONVERSION BAND ──────────────────────────────── */
.home-band-convert {
  padding: 4.5rem 0;
  background: var(--bd);
  color: #fff;
  text-align: center;
  position: relative;
}
.home-band-convert::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Lime glow stronger on the right side — adds more green breath */
  background:
    radial-gradient(circle at 18% 25%, rgba(52, 211, 153,0.10) 0%, transparent 55%),
    radial-gradient(circle at 82% 75%, rgba(0, 208, 132,0.16) 0%, transparent 55%);
  pointer-events: none;
}
.convert-band {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.convert-kicker {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 14px;
  color: var(--bm);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.9rem;
}
.convert-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 60px);
  color: #fff;
  letter-spacing: 3px;
  line-height: 1.1;
  margin-bottom: 1.1rem;
  font-weight: 400;
}
.convert-sub {
  font-size: 16px;
  color: var(--lav);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.convert-cta { font-size: 16px; padding: 13px 34px; }

/* ── PRICING BAND ──────────────────────────────────────── */
.home-band-pricing {
  padding: 3rem 0 4rem;
  background: var(--bg);
}
.pricing-tile-cta { margin-top: 0.75rem; }

/* ── HERITAGE BAND (dark, giant 50) ────────────────────── */
.home-band-heritage {
  padding: 5rem 0 5.5rem;
  background: var(--bd);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-band-heritage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.heritage-band {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.heritage-kicker {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 14px;
  color: var(--ac);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}
.heritage-years {
  font-family: var(--font-display);
  font-size: clamp(110px, 18vw, 220px);
  letter-spacing: 6px;
  line-height: 0.95;
  margin-bottom: 0.25rem;
  /* Metallic gold fill — light streak down the middle sells "polished". */
  background: linear-gradient(180deg, #b8860b 0%, #f9e08b 40%, #fff6c9 50%, #f9e08b 60%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Outer amber halo — the "glow" the user asked for. */
  filter:
    drop-shadow(0 0 22px rgba(251,191,36,0.55))
    drop-shadow(0 6px 40px rgba(184,134,11,0.45));
  animation: heritage-shimmer 6s ease-in-out infinite;
}
@keyframes heritage-shimmer {
  0%, 100% {
    filter:
      drop-shadow(0 0 22px rgba(251,191,36,0.55))
      drop-shadow(0 6px 40px rgba(184,134,11,0.45));
  }
  50% {
    filter:
      drop-shadow(0 0 32px rgba(251,191,36,0.75))
      drop-shadow(0 6px 50px rgba(184,134,11,0.55));
  }
}
.heritage-dates {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: 5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
}
.heritage-copy {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  margin: 0 auto;
}

/* ── NEWS + MINUTES + FACILITIES GRID ──────────────────── */
.home-band-news {
  padding: 4rem 0 3rem;
}
.home-news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.4rem;
}

/* ── SPONSORS ──────────────────────────────────────────── */
.home-band-sponsors {
  padding: 2rem 0 3rem;
  background: var(--bg);
}

/* ── FINAL CTA BAND ────────────────────────────────────── */
.home-band-final-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--bd) 0%, var(--bd) 55%, #1a221d 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-band-final-cta::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 40%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(52, 211, 153,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta-band {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  color: var(--bm);
  letter-spacing: 3px;
  margin-bottom: 0.9rem;
  font-weight: 400;
  line-height: 1.05;
  display: inline-block;
  position: relative;
}
/* Metallic gold underline stripe — soft anniversary warmth */
.final-cta-title::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -10px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #b8860b 10%, #f0d878 50%, #b8860b 90%, transparent 100%);
  border-radius: 2px;
}
.final-cta-sub {
  font-size: 16px;
  color: var(--lav);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 820px) {
  .feature-strip {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .feature-strip-reverse .feature-image { order: 0; }
  .feature-image { min-height: 240px; }
  .home-news-grid { grid-template-columns: 1fr; }
  .home-band-feature { padding: 3rem 0; }
  .home-band-convert,
  .home-band-final-cta { padding: 3.5rem 0; }
  .home-band-heritage { padding: 4rem 0; }
}
@media (max-width: 600px) {
  /* Flex-center already handles vertical position on mobile too.
     Mild extra top padding keeps the title clear of the ribbon. */
  .hero-content { padding: 2.5rem 1rem 2rem; padding-top: 3rem; }
  .hero-row { gap: 1.5rem; }
  #home-league-progress { margin: 0 auto; }
}
