/* ==========================================================================
   Phoenix CrossFit — Mobile-First Responsive Styles
   ========================================================================== */

/* Tablet & Mobile Screens (<= 1024px) */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-visual {
    max-width: 600px;
    margin: 0 auto;
  }

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

  .gallery-item.span-2 {
    grid-column: span 1;
  }

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

  .enquiry-info-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

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

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

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Full Screen Slide-in Mobile Menu */
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(8, 8, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem var(--container-padding);
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    border-top: 1px solid var(--border-subtle);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-heading);
  }

  .nav-actions .nav-phone-btn {
    display: none;
  }

  .brand-logo {
    font-size: 1.4rem;
    gap: 0.65rem;
  }

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

  .hero-section {
    min-height: 90vh;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 3.5rem;
  }

  .hero-image {
    object-position: 65% center;
  }

  .hero-content {
    padding: 1.5rem;
    margin: 0 auto;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(2.4rem, 9.5vw, 3.6rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
  }

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

  .about-floating-card {
    right: 10px;
    bottom: -15px;
    padding: 1rem;
    max-width: 250px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .goal-selector-grid {
    grid-template-columns: 1fr;
  }

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

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

  .floating-actions {
    bottom: 18px;
    right: 18px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

/* Small SmartPhones (<= 480px) */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

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

  .map-footer-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
