/* ==========================================================================
   MTC Tennis — Hero Styles
   Default hero (Phase 2B) and featured hero variant (Phase 5).
   Both use the same design system tokens and visual language.
   ========================================================================== */

/* ── Hero Section ─────────────────────────────────────────────────────── */
.hero {
  min-height: 520px;
  padding: var(--space-20, 5rem) var(--space-4, 1rem);
  margin: 0;
  background: linear-gradient(160deg, var(--color-primary, #0f3057) 0%, #0a2240 40%, #00487c 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle texture overlay for depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 168, 204, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 72, 124, 0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* Hide default hero treatments when featured program takes over */
.hero.featured-program-active::before {
  display: none;
}

/* ── Hero Logo ────────────────────────────────────────────────────────── */
.hero-logo {
  width: 280px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto var(--space-6, 1.5rem) auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

/* ── Trust Line ───────────────────────────────────────────────────────── */
.hero-trust {
  color: var(--color-text-on-dark-muted, rgba(255, 255, 255, 0.7));
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-normal, 400);
  letter-spacing: 0.04em;
  margin: 0 auto;
  max-width: 600px;
  line-height: var(--leading-normal, 1.5);
}

/* ── Hero Buttons ─────────────────────────────────────────────────────── */
.hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-4, 1rem);
  margin-top: var(--space-8, 2rem);
}

.hero-buttons .hero-btn {
  margin-top: 0;
}

.hero-btn {
  font-family: var(--font-family, 'Inter', sans-serif);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  transition: all var(--transition-slow, 0.3s ease);
}

.hero-btn:hover {
  text-decoration: none;
}

/* Primary CTA — Register Now */
.hero-btn-primary {
  background: var(--color-accent, #00a8cc);
  color: var(--color-white, #ffffff) !important;
  padding: 0.875rem 2.25rem;
  border-radius: var(--radius-md, 8px);
  font-weight: var(--font-semibold, 600);
  font-size: var(--text-base, 1rem);
  box-shadow: 0 4px 14px rgba(0, 168, 204, 0.35);
  letter-spacing: 0.01em;
}

.hero-btn-primary:hover {
  background: var(--color-accent-hover, #0095b6);
  color: var(--color-white, #ffffff) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 204, 0.45);
}

.hero-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 168, 204, 0.3);
}

/* Secondary CTA — View Programs */
.hero-btn-secondary {
  background: transparent;
  color: var(--color-white, #ffffff) !important;
  padding: 0.625rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-md, 8px);
  font-weight: var(--font-medium, 500);
  font-size: var(--text-sm, 0.875rem);
  letter-spacing: 0.01em;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white, #ffffff) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   Featured Hero Variant — Template-driven (Phase 5)
   Same design system, different content. Uses .hero--featured on the section.
   ========================================================================== */

.hero-content--featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ── Featured Badge ──────────────────────────────────────────────────── */
.hero-featured-badge {
  display: inline-block;
  background: var(--color-accent, #00a8cc);
  color: var(--color-white, #ffffff);
  font-size: 0.7rem;
  font-weight: var(--font-semibold, 600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full, 9999px);
  margin-bottom: var(--space-3, 0.75rem);
}

/* ── Featured Title ──────────────────────────────────────────────────── */
.hero-featured-title {
  color: var(--color-white, #ffffff);
  font-size: var(--text-4xl, 2.5rem);
  font-weight: var(--font-bold, 700);
  margin: 0 0 var(--space-2, 0.5rem);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight, 1.2);
}

/* ── Featured Description ────────────────────────────────────────────── */
.hero-featured-desc {
  color: var(--color-text-on-dark-muted, rgba(255, 255, 255, 0.7));
  font-size: var(--text-sm, 0.875rem);
  max-width: 500px;
  margin: 0 auto var(--space-6, 1.5rem);
  line-height: var(--leading-relaxed, 1.7);
}

/* ── Featured Detail Items ───────────────────────────────────────────── */
.hero-featured-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3, 0.75rem);
  margin-bottom: var(--space-6, 1.5rem);
  max-width: 520px;
}

.hero-featured-detail {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 8px);
  padding: 0.5rem 1rem;
  text-align: center;
  flex: 1 1 140px;
}

.hero-featured-detail-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent, #00a8cc);
  font-weight: var(--font-semibold, 600);
  margin-bottom: 0.15rem;
}

.hero-featured-detail-value {
  display: block;
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-medium, 500);
  color: var(--color-white, #ffffff);
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    min-height: 420px;
    padding: var(--space-16, 4rem) var(--space-4, 1rem);
  }

  .hero-logo {
    width: 200px;
    max-width: 200px;
    margin-bottom: var(--space-4, 1rem);
  }

  .hero-trust {
    font-size: var(--text-xs, 0.75rem);
    letter-spacing: 0.03em;
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-3, 0.75rem);
    margin-top: var(--space-6, 1.5rem);
  }

  .hero-btn-primary {
    padding: 0.75rem 2rem;
    font-size: var(--text-sm, 0.875rem);
    width: auto;
  }

  .hero-btn-secondary {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-xs, 0.75rem);
  }

  /* ── Featured Hero Mobile ──────────────────────────────────────────── */
  .hero-featured-title {
    font-size: var(--text-2xl, 1.5rem);
  }

  .hero-featured-desc {
    font-size: var(--text-xs, 0.75rem);
  }

  .hero-featured-details {
    gap: var(--space-2, 0.5rem);
  }

  .hero-featured-detail {
    flex: 1 1 100%;
    padding: 0.4rem 0.75rem;
  }
}
