/**
 * FitFam Active - Mobile & Multi-Device Responsive Stylesheet
 * Ensures hero image clarity, reduced clutter, and smooth layouts across all screens.
 */

/* ==================== TABLETS & LAPTOPS (<= 1120px) ==================== */
@media (max-width: 1120px) {
  nav.desktop-nav {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 125px 0 70px;
  }

  .page-hero,
  .subpage-hero,
  .sport-hero {
    padding: 120px 0 50px;
  }

  .sports-nav-strip + .sport-hero,
  .breadcrumb-bar ~ .sport-hero {
    padding-top: 40px;
  }

  .about-banner-grid {
    grid-template-columns: 1fr;
    padding: 36px 30px;
  }

  .faq-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* ==================== MOBILE & TABLETS (<= 768px) ==================== */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .wrap {
    padding: 0 16px;
  }

  /* Header adjustments */
  .nav-container {
    height: 64px;
  }

  .logo-link img {
    height: 40px;
  }

  .nav-cta-group .btn {
    display: none; /* Hide header CTA to keep header ultra-clean on mobile */
  }

  /* ==================== MOBILE HERO OVERHAUL ==================== */
  .hero {
    min-height: auto;
    padding: 95px 0 45px;
    align-items: flex-start;
  }

  /* Keep the sports action image clearly visible! */
  .hero-bg img.hero-bg-img {
    object-position: 70% 30%;
    filter: saturate(1.15) contrast(1.05);
  }

  /* Subtle vignette that lets the kids in the photo shine through */
  .hero-bg-overlay {
    background: 
      linear-gradient(180deg, 
        rgba(5, 13, 28, 0.75) 0%, 
        rgba(5, 13, 28, 0.45) 45%, 
        rgba(5, 13, 28, 0.94) 100%
      );
  }

  .hero-content {
    padding-top: 10px;
  }

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

  .hero .eyebrow-pill {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 12px;
    letter-spacing: 0.8px;
  }

  .hero h1 {
    font-size: clamp(27px, 7.2vw, 36px);
    line-height: 1.16;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.85);
  }

  /* Shortened concise text for mobile */
  .hero p.lead {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 22px;
    color: #e2e8f0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    max-width: 95%;
  }

  /* Compact touch-friendly CTAs */
  .hero-ctas {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 0;
    width: 100%;
  }

  .hero-ctas .btn {
    flex: 1;
    padding: 12px 12px;
    font-size: 13px;
    border-radius: 10px;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }

  /* HIDE the 4 bulky cards from inside the hero overlay on mobile */
  .hero .hero-features {
    display: none !important;
  }

  /* ==================== HIGHLIGHTS STRIP BELOW HERO ==================== */
  .society-highlights-strip {
    display: block;
    padding: 18px 0;
  }

  .highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .highlights-grid .hf-item {
    padding: 8px 10px;
    border-radius: 10px;
    gap: 8px;
    background: rgba(14, 28, 54, 0.8);
  }

  .highlights-grid .hf-item .ic {
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 7px;
  }

  .highlights-grid .hf-item span {
    font-size: 12px;
  }

  /* ==================== SECTION HEADINGS ==================== */
  .sec-head {
    margin-bottom: 30px;
  }

  .sec-head h2 {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .sec-head p {
    font-size: 14px;
  }

  /* ==================== PROGRAMS ==================== */
  .programs-grid,
  .programs-grid-featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .prog-card {
    height: 160px;
    padding: 12px;
    border-radius: 14px;
  }

  .prog-info .txt strong {
    font-size: 14px;
  }

  .prog-info .txt small {
    font-size: 10.5px;
  }

  .prog-arrow {
    width: 26px;
    height: 26px;
  }

  .prog-arrow svg {
    width: 12px;
    height: 12px;
  }

  /* ==================== ABOUT BANNER ==================== */
  .about-banner-grid {
    padding: 24px 18px;
    gap: 20px;
  }

  .about-stat-box b {
    font-size: 26px;
  }

  .about-stat-box span {
    font-size: 12px;
  }

  /* ==================== COACHES ==================== */
  .coach-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .coach-card .coach-img-box {
    height: 180px;
  }

  .coach-meta {
    padding: 12px;
  }

  .coach-meta strong {
    font-size: 15px;
  }

  .coach-meta small {
    font-size: 11.5px;
    margin-bottom: 4px;
  }

  .coach-exp {
    font-size: 11px;
  }

  /* ==================== CONTACT FORM ==================== */
  .contact-form-box {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-input-control {
    font-size: 16px !important; /* CRITICAL: Prevents iOS Safari from auto-zooming into inputs */
    padding: 12px 14px;
  }

  /* ==================== FOOTER ==================== */
  .footer-logo {
    height: 58px;
    max-width: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 30px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 14px;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* WhatsApp Floating Button safe positioning */
  .wa-float {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 18px;
    width: 50px;
    height: 50px;
  }

  .wa-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ==================== EXTRA SMALL DEVICES (<= 400px) ==================== */
@media (max-width: 400px) {
  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .programs-grid,
  .programs-grid-featured {
    grid-template-columns: 1fr;
  }

  .coach-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== SPORT PROGRAM PAGE RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .sport-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .curriculum-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .breadcrumb-bar {
    margin-top: 64px;
    padding: 10px 0;
    font-size: 12px;
  }
  .page-hero,
  .subpage-hero,
  .sport-hero {
    padding: 95px 0 35px;
  }
  .sports-nav-strip + .sport-hero,
  .breadcrumb-bar ~ .sport-hero {
    padding-top: 30px;
  }
  .sport-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sport-hero h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .sport-hero p.tagline {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .sport-hero-img-box {
    max-height: 250px;
    aspect-ratio: 16/9;
  }
  .curriculum-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .overview-features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .overview-features-grid {
    grid-template-columns: 1fr;
  }
}

