/* ============================================= 
   JS Sports Arena - Optimized & Clean CSS
   Version: 2.0
   ============================================= */

/* ============================================= 
   1. RESET & BASE STYLES
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Global Link Styling */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover,
a:focus,
a:active {
  color: #9cff7f;
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================= 
   2. HEADER & NAVIGATION
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #001b3d;
  display: block;
  visibility: visible;
  opacity: 1;
}

.navbar {
  padding: 15px 0;
  display: block;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Styling */
.logo {
  flex: 0 0 auto;
}

.logo-image {
  width: auto;
  height: auto;
  max-width: min(35vw, 320px);
  max-height: 140px;
  display: block;
  transition: all 0.3s ease;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: #9cff7f;
}

/* Book Court Button */
.book-court-btn {
  background: #9cff7f;
  color: #001b3d;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.book-court-btn:hover {
  transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

/* ============================================= 
   3. PROMOTIONAL BANNER
   ============================================= */
.promo-banner {
  background: linear-gradient(135deg, #0b1320, #0b1320);
  color: #9cff7f;
  padding: 12px 0;
  text-align: center;
  font-weight: 600;
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  z-index: 1001;
  display: block;
  width: 100%;
}

.promo-banner .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

.ticker span {
  display: inline-block;
  padding-right: 50px;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.close-banner {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #9cff7f;
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
  line-height: 1;
}

/* ============================================= 
   4. HERO SECTIONS
   ============================================= */
.hero,
.page-hero {
  color: #fff;
  padding: 180px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #001b3d 0%, #001b3d 100%);
}

.hero {
  background: linear-gradient(135deg, #9cff7f 0%, #001b3d 100%);
}

.hero-content h1,
.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-hero h1 {
  font-size: 3rem;
}

.highlight {
  color: #9cff7f;
}

.hero-content p,
.page-hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* Hero Background Images */
section.hero[data-hero='home'] {
  background-image: url('public/hero-home.png');
  background-blend-mode: normal;
}

section.page-hero[data-hero='rates'] {
  background-image: url('public/hero-rates.png');
  background-blend-mode: normal;
}

section.page-hero[data-hero='about'] {
  background-image: url('public/hero-about.png');
  background-blend-mode: normal;
}

section.page-hero[data-hero='book'] {
  background-image: url('public/hero-book.png');
  background-blend-mode: normal;
}

section.page-hero[data-hero='contact'] {
  background-image: url('public/hero-contact.png');
  background-blend-mode: normal;
}

.hero .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}

/* ============================================= 
   5. BUTTONS
   ============================================= */
.hero-buttons,
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 16px;
}

.btn-primary {
  background: #9cff7f;
  color: #001b3d;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #9cff7f;
}

.btn-secondary:hover {
  background: #9cff7f;
  color: #001b3d;
}

.btn-outline {
  background: transparent;
  color: #001b3d;
  border: 2px solid #001b3d;
}

.btn-outline:hover {
  background: #001b3d;
  color: #fff;
}

/* ============================================= 
   6. SECTIONS - GENERAL
   ============================================= */
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Backgrounds */
.why-choose,
.testimonials,
.rates-section,
.additional-services,
.mission-vision,
.booking-info,
.booking-policies,
.contact-info {
  padding: 80px 0;
  background: #f8fafc;
}

.stats,
.membership-section,
.facilities,
.coach-profile,
.court-availability {
  padding: 80px 0;
  background: #fff;
}

.stats {
  padding: 60px 0;
  background: #001b3d;
  color: #fff;
}

.cta {
  background: #9cff7f;
  color: #001b3d;
  padding: 80px 0;
  text-align: center;
}

/* Section Headers */
.why-choose h2,
.testimonials h2,
.rates-section h2,
.membership-section h2,
.additional-services h2,
.facilities h2,
.coach-profile h2,
.booking-info h2,
.booking-policies h2,
.court-availability h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #001b3d;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.8;
}

/* ============================================= 
   7. CARD COMPONENTS
   ============================================= */
/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.feature-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon,
.mission-icon,
.vision-icon,
.facility-icon,
.contact-icon {
  width: 80px;
  height: 80px;
  background: #9cff7f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.feature-icon i,
.mission-icon i,
.vision-icon i,
.facility-icon i,
.contact-icon i {
  font-size: 30px;
  color: #001b3d;
}

.feature-card h3,
.facility-card h3,
.contact-card h3,
.policy-card h3,
.step-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #001b3d;
}

.feature-card p,
.facility-card p,
.contact-card p,
.policy-card p,
.step-card p {
  color: #64748b;
  line-height: 1.6;
}

/* ============================================= 
   8. STATS SECTION
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 700;
  color: #9cff7f;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ============================================= 
   9. PRICING CARDS
   ============================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.pricing-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.pricing-card.popular {
  transform: scale(1.05);
  border: 3px solid #9cff7f;
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #9cff7f;
  color: #001b3d;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-header {
  padding: 30px;
  text-align: center;
  color: #fff;
}

.pricing-header.blue,
.pricing-header.green {
  background: linear-gradient(135deg, #001b3d, #9cff7f);
}

.pricing-header.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.pricing-header i {
  font-size: 40px;
  margin-bottom: 20px;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.pricing-header p {
  opacity: 0.9;
}

.pricing-body {
  padding: 30px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e2e8f0;
  min-height: 70px;
}

.price-item:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
}

.price-item .time {
  flex: 1;
  line-height: 1.4;
  font-weight: 500;
  color: #001b3d;
}

.price-item .price {
  text-align: right;
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #001b3d;
}

.price small,
.service-price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: #64748b;
}

.features {
  list-style: none;
}

.features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.features i {
  color: #10b981;
  font-size: 14px;
}

/* ============================================= 
   10. ADDITIONAL SERVICES
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.service-item {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-name {
  font-weight: 600;
  color: #001b3d;
}

.service-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #001b3d;
}

/* ============================================= 
   11. MISSION & VISION
   ============================================= */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.mission-card,
.vision-card {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mission-card h3,
.vision-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #001b3d;
}

.mission-card p,
.vision-card p {
  color: #64748b;
  line-height: 1.6;
}

/* ============================================= 
   12. COACH PROFILE
   ============================================= */
.coach-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coach-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.coach-image {
  margin: 0 0 30px 0;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coach-image:hover {
  transform: scale(1.05);
}

.coach-image img {
  width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
  margin: 0 auto;
  display: block;
  max-width: 100%;
}

.coach-image:hover img {
  transform: scale(1.1);
}

.coach-info {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.coach-info h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #001b3d;
  transition: color 0.3s ease;
}

.coach-card:hover .coach-info h3 {
  color: #9cff7f;
}

.coach-info h4 {
  font-size: 1.2rem;
  color: #9cff7f;
  margin-bottom: 10px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.coach-card:hover .coach-info h4 {
  transform: translateY(-2px);
}

.experience {
  color: #64748b;
  font-style: italic;
  margin-bottom: 25px;
  transition: color 0.3s ease;
}

.coach-card:hover .experience {
  color: #001b3d;
}

.coach-credentials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  max-width: 400px;
  margin-top: 18px;
  justify-items: center;
}

.credential-item {
  padding: 15px;
  background: #f8fafc;
  border-radius: 10px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.credential-item:hover {
  background: #9cff7f;
  transform: translateX(10px);
  border-left-color: #001b3d;
  box-shadow: 0 5px 15px rgba(156, 255, 128, 0.3);
}

.credential-item i {
  color: #9cff7f;
  font-size: 18px;
  margin-top: 2px;
  transition: all 0.3s ease;
}

.credential-item:hover i {
  color: #001b3d;
  transform: scale(1.2);
}

.credential-item span {
  transition: color 0.3s ease;
}

.credential-item:hover span {
  color: #001b3d;
  font-weight: 600;
}

/* ============================================= 
   13. BOOKING SECTIONS
   ============================================= */
.booking-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.step-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-number {
  width: 60px;
  height: 60px;
  background: #9cff7f;
  color: #001b3d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 25px;
}

.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.policy-card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================= 
   14. CONTACT SECTION
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.contact-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================= 
   15. FOOTER
   ============================================= */
.footer {
  background: #001b3d;
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  margin-bottom: 20px;
  color: #9cff7f;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.footer-section ul li a:hover {
  color: #9cff7f;
}

.footer-section p {
  color: #cbd5e1;
  line-height: 1.6;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.contact-item i {
  color: #9cff7f;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 30px;
  margin-top: 40px;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  margin: 0;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #9cff7f;
  color: #001b3d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #001b3d;
  color: #9cff7f;
  transform: translateY(-2px);
}

/* ============================================= 
   16. TERMS & PRIVACY PAGES
   ============================================= */
.terms,
.privacy {
  padding: 140px 0 80px;
  background: #f8fafc;
  display: block;
  min-height: 100vh;
}

.terms .container,
.privacy .container {
  max-width: 900px;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.terms__header,
.privacy__header {
  margin-bottom: 2rem;
  text-align: center;
}

.terms__header h1,
.privacy__header h1 {
  font-size: 2.5rem;
  color: #001b3d;
  margin-bottom: 1rem;
  font-weight: 700;
}

.terms__header .muted,
.privacy__header .muted {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  display: block;
}

.terms h2,
.privacy h2 {
  font-size: 1.8rem;
  color: #001b3d;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #e2e8f0;
  font-weight: 600;
}

.terms h2:first-of-type,
.privacy h2:first-of-type {
  margin-top: 1.5rem;
  border-top: none;
}

.terms ul,
.privacy ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

.terms ul li,
.privacy ul li {
  margin-bottom: 0.75rem;
  color: #475569;
  line-height: 1.7;
}

.terms p,
.privacy p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.terms strong,
.privacy strong {
  color: #001b3d;
  font-weight: 600;
}

.terms a,
.privacy a {
  color: #001b3d;
  text-decoration: underline;
}

.terms a:hover,
.privacy a:hover {
  color: #9cff7f;
}

.terms hr,
.privacy hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 2rem 0;
}

/* Ensure all pages are visible */
.page,
.terms.page,
.privacy.page {
  display: block;
}

#main-content {
  display: block;
  opacity: 1;
}

/* ============================================= 
   17. RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
  .logo-image {
    max-width: min(30vw, 160px);
    max-height: 70px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 100px;
    flex-direction: column;
    background-color: #1a2332;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 20px 0;
    z-index: 1100;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 10px 0;
  }

  .book-court-btn {
    display: none;
  }

  /* Typography */
  .hero-content h1,
  .page-hero h1 {
    font-size: 2.5rem;
  }

  .terms__header h1,
  .privacy__header h1 {
    font-size: 2rem;
  }

  .terms h2,
  .privacy h2 {
    font-size: 1.5rem;
  }

  /* Layout */
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .promo-banner {
    top: 80px;
    font-size: 14px;
  }

  .promo-banner .container span {
    font-size: 12px;
    padding: 0 10px;
  }

  .hero {
    padding-top: 160px;
  }

  /* Cards */
  .pricing-card.popular,
  .membership-card.popular {
    transform: none;
  }

  /* Grids */
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .mission-card,
  .vision-card {
    padding: 30px 20px;
  }

  /* Coach */
  .coach-image img {
    width: 260px;
  }

  /* Logo */
  .logo-image {
    max-width: 35vw;
    max-height: 60px;
  }

  /* Terms & Privacy */
  .terms,
  .privacy {
    padding-top: 120px;
  }

  .terms .container,
  .privacy .container {
    padding: 30px 20px;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  /* Typography */
  .hero-content h1,
  .page-hero h1 {
    font-size: 2rem;
  }

  .terms__header h1,
  .privacy__header h1 {
    font-size: 1.75rem;
  }

  .terms h2,
  .privacy h2 {
    font-size: 1.3rem;
  }

  /* Grids */
  .features-grid,
  .testimonials-grid,
  .pricing-grid,
  .membership-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Container */
  .container {
    padding: 0 15px;
  }

  /* Coach */
  .coach-image img {
    width: 250px;
    height: auto;
  }

  .coach-info h3 {
    font-size: 1.8rem;
  }

  .coach-info h4 {
    font-size: 1.1rem;
  }

  /* Logo - Mobile specific */
  .logo-image {
    display: block;
    margin: 15px auto;
    width: 80%;
    max-width: 400px;
    height: auto;
    padding: 10px;
    border-radius: 25px;
    position: relative;
    z-index: 1110;
  }

  /* Terms & Privacy */
  .terms,
  .privacy {
    padding-top: 100px;
  }

  .terms .container,
  .privacy .container {
    padding: 20px 15px;
  }
}

/* ============================================= 
   18. HOVER EFFECTS (Desktop Only)
   ============================================= */
@media (hover: hover) {
  section.hero:hover,
  section.page-hero:hover {
    filter: none;
  }
}

/* ============================================= 
   END OF STYLES
   ============================================= */