/* ========================================
   Responsive Styles
   Mobile-first: base styles for 320px+
   Enhanced at min-width breakpoints
   ======================================== */

/* ----------------------------------------
   SMALL PHONES (480px+)
   ---------------------------------------- */
@media (min-width: 480px) {
  :root {
    --text-hero: clamp(3rem, 11vw, 4rem);
  }

  .hero__ctas {
    flex-wrap: nowrap;
  }

  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

/* ----------------------------------------
   TABLET (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
  :root {
    --text-hero: clamp(3rem, 10vw, 6rem);
  }

  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }

  /* Navigation */
  .nav__toggle {
    display: none;
  }

  .nav__links {
    display: flex;
  }

  .nav__actions {
    display: flex;
  }

  .nav__badge {
    display: inline-flex;
  }

  .mobile-menu {
    display: none !important;
  }

  /* Hero */
  .hero {
    padding: var(--space-16) 0;
  }

  .hero__content {
    padding: 0 var(--space-8);
  }

  /* Stats */
  .stats {
    padding: var(--space-16) 0;
  }

  /* About */
  .about__grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-8);
  }

  .about__text {
    padding-right: var(--space-12);
  }

  .about__image {
    aspect-ratio: 3/4;
  }

  /* Services */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Carousel */
  .review-card {
    width: calc(50% - var(--space-3));
  }

  /* Trainers */
  .trainers__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
  }

  .trainer-card__photo-wrapper {
    aspect-ratio: 4/3;
  }

  /* Process */
  .process__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  .process-step {
    padding: var(--space-6);
  }

  .process__connector {
    display: block;
    position: absolute;
    top: 60px;
    left: 16.66%;
    right: 16.66%;
    border-top: 2px dashed var(--color-border);
    z-index: 0;
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .contact__form-wrapper {
    order: 1;
  }

  .contact__info {
    order: 2;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: var(--space-8);
  }

  /* Floating NOW OPEN badge */
  .now-open {
    bottom: 32px;
    right: 32px;
  }
}

/* ----------------------------------------
   DESKTOP (1024px+)
   ---------------------------------------- */
@media (min-width: 1024px) {
  :root {
    --text-hero: clamp(4rem, 12vw, 7.5rem);
  }

  /* Hero */
  .hero {
    padding: var(--space-24) 0;
  }

  /* Stats */
  .stats {
    padding: var(--space-16) 0;
  }

  /* About */
  .about__grid {
    gap: var(--space-12);
  }

  .about__text {
    padding-right: var(--space-12);
  }

  /* Services */
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Carousel */
  .review-card {
    width: calc(33.333% - var(--space-4));
  }

  /* Contact */
  .contact__grid {
    gap: var(--space-24);
  }
}

/* ----------------------------------------
   LARGE DESKTOP (1280px+)
   ---------------------------------------- */
@media (min-width: 1280px) {
  .nav__container {
    padding: 0 var(--space-12);
  }

  .hero__content,
  .container {
    padding-left: var(--space-12);
    padding-right: var(--space-12);
  }
}

/* ----------------------------------------
   HERO RESPONSIVE OVERRIDES
   ---------------------------------------- */
@media (max-width: 767px) {
  .hero__h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
    max-width: 100%;
  }

  .hero__sub {
    font-size: var(--text-lg);
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .hero__diagonal {
    display: none;
  }

  /* NOW OPEN on mobile */
  .now-open {
    bottom: 24px;
    right: 20px;
    padding: var(--space-2) var(--space-3);
    font-size: 12px;
  }

  /* Stats 2x2 on mobile */
  .stats__grid {
    gap: var(--space-6);
  }

  .stat-item__number {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Process vertical on mobile */
  .process__steps {
    gap: var(--space-8);
  }

  .process-step__number {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  /* Contact stacked */
  .contact__grid {
    gap: var(--space-8);
  }

  .contact__h2 {
    font-size: var(--text-4xl);
  }

  /* Footer stacked */
  .footer__grid {
    text-align: center;
  }

  .footer__socials {
    justify-content: center;
  }

  .footer__contact-item {
    justify-content: center;
  }

  /* Carousel single card on mobile */
  .review-card {
    width: 100%;
  }
}

/* ----------------------------------------
   HORIZONTAL OVERFLOW PROTECTION
   ---------------------------------------- */
html, body {
  overflow-x: hidden;
}

/* ----------------------------------------
   TOUCH DEVICE OPTIMIZATIONS
   ---------------------------------------- */
@media (hover: none) {
  .card:hover,
  .service-card:hover,
  .trainer-card:hover {
    transform: none;
    box-shadow: none;
  }

  .btn:hover {
    transform: none;
  }
}
