/* ==========================================================================
   THE REP FACTORY — COMPREHENSIVE RESPONSIVE ENGINE
   Flawless proportions on Mobile, Tablet & Desktop.
   ========================================================================== */

/* Base helper for mobile pass button */
.nav-mobile-pass-btn {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   1. TABLETS & SMALL LAPTOPS (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }

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

  .gym-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   2. TABLETS & SMARTPHONES (<= 768px) — Clean, sleek mobile interface
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section {
    padding: 3.75rem 0;
  }

  .section-title {
    font-size: 1.95rem;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  /* --- Fixed Mobile Header --- */
  .site-header {
    padding: 0.65rem 0;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .header-pass-btn {
    display: none; /* Hide in top bar on mobile to eliminate overlap */
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-silver);
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  /* Slide-Down Navigation Menu */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(246, 244, 240, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1.5px solid var(--border-silver);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.75rem 1.5rem;
    gap: 0.85rem;
    align-items: stretch;
    z-index: 1000;
  }

  .nav-menu.is-open {
    display: flex;
    animation: fadeInMenu 0.22s ease-out;
  }

  @keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-link {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.45rem 0;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(204, 211, 220, 0.4);
  }

  .nav-mobile-pass-btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
  }

  /* --- Hero Section Mobile Tuning --- */
  .hero {
    padding-top: calc(60px + 1.75rem);
    padding-bottom: 2.75rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-rating-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
  }

  .hero-tagline-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.85rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.35rem;
  }

  .hero-cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group .btn {
    padding: 0.7rem 0.5rem;
    font-size: 0.82rem;
    white-space: nowrap;
    text-align: center;
  }

  .hero-meta-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    padding-top: 1rem;
    text-align: center;
  }

  .meta-stat-value {
    font-size: 1.1rem;
  }

  .meta-stat-label {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  /* Static Hero Emblem Card */
  .hero-emblem-wrap {
    max-width: 320px;
    width: 100%;
    margin: 1rem auto 0 auto;
  }

  .hero-emblem-card {
    padding: 1.75rem 1.25rem 1.6rem 1.25rem;
    border-radius: 20px;
  }

  .hero-emblem-img-wrap {
    width: 150px;
    height: 150px;
  }

  .hero-emblem-open-bar {
    margin-top: 1rem;
    padding: 0.45rem 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .open-text {
    font-size: 0.74rem;
    white-space: nowrap;
  }

  /* --- Formats Section & Carousel --- */
  .section-photo-parallax {
    padding: 3.75rem 0;
  }

  .rollover-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .rollover-track {
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .rollover-card {
    flex: 0 0 82vw;
    max-width: 310px;
    padding: 1.6rem 1.35rem;
    border-radius: 16px;
  }

  .rollover-title {
    font-size: 1.2rem;
  }

  .rollover-desc {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  /* --- 10-Photo Gallery Grid --- */
  .gym-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .gallery-card {
    border-radius: 10px;
  }

  .gallery-caption {
    font-size: 0.75rem;
  }

  /* --- Pricing & Memberships --- */
  .admission-banner {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    border-radius: 12px;
    gap: 0.35rem;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }

  .admission-banner span.amount {
    font-size: 1.1rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pricing-card {
    padding: 1.6rem 1.35rem;
    border-radius: 16px;
  }

  .pricing-title {
    font-size: 1.35rem;
  }

  .pricing-row {
    padding: 0.6rem 0;
    font-size: 0.88rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 1.5rem;
  }

  .pillar-card {
    padding: 0.85rem 0.6rem;
    border-radius: 10px;
  }

  .pillar-title {
    font-size: 0.76rem;
  }

  /* --- Join Us & Lifter Card --- */
  .join-gym-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .lifter-static-card {
    max-width: 320px;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 16px;
  }

  .lifter-img-wrapper {
    min-height: 300px;
  }

  .lifter-card-title {
    font-size: 1.05rem;
  }

  /* --- Amenities & Verified Bar --- */
  .amenities-glass-section {
    padding: 3.75rem 0;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .amenity-card {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
  }

  .verified-bar {
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    font-size: 0.82rem;
    text-align: left;
  }

  /* --- Reviews Carousel --- */
  .review-card {
    flex: 0 0 80vw;
    max-width: 290px;
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
  }

  /* --- Contact & Free Pass Form --- */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-card {
    padding: 1.75rem 1.35rem;
    border-radius: 16px;
  }

  /* --- Footer --- */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   3. SMALL MOBILE PHONES (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .hero-cta-group {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .hero-cta-group .btn {
    padding: 0.65rem 0.4rem;
    font-size: 0.78rem;
  }

  .verified-bar {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .floating-wa-btn {
    bottom: 16px;
    right: 16px;
    padding: 0.55rem 0.95rem;
    font-size: 0.78rem;
  }

  .floating-wa-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* --------------------------------------------------------------------------
   4. ULTRA COMPACT DEVICES (<= 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-cta-group {
    grid-template-columns: 1fr;
  }

  .hero-emblem-img-wrap {
    width: 120px;
    height: 120px;
  }
}
