/* ============================================
   IRON BEAST GYM — media.css
   Responsive Breakpoints
   Tablet: ≤ 1024px | Mobile: ≤ 768px | Small: ≤ 480px
============================================ */

/* ===== TABLET (≤ 1024px) ===== */
@media (max-width: 1024px) {
  .hero-image-block {
    opacity: 0.15;
    width: 55%;
  }

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

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

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

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

  .plan-card.featured {
    transform: scale(1.02);
  }

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

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

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

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

  .footer-brand {
    grid-column: span 2;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }

  .gallery-item.g-tall {
    grid-row: span 1;
  }

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

/* ===== MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {
  /* Cursor hidden on mobile/touch */
  .cursor,
  .cursor-follower {
    display: none;
  }

  body { cursor: auto; }
  button, a { cursor: pointer; }

  /* Navbar */
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 80vw);
    height: 100svh;
    background: var(--black-2);
    border-left: 1px solid var(--white-10);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 0.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
    box-shadow: -20px 0 60px rgba(0,0,0,0.6);
  }

  .nav-links li a {
    font-size: 1.2rem;
    padding: 10px 14px;
    display: block;
  }

  .hamburger {
    display: flex;
    margin-right: auto;
    order: -1;
  }

  .nav-cta { display: none; }

  .nav-container {
    flex-direction: row-reverse;
  }

  /* Hero */
  .hero {
    padding-top: 80px;
    min-height: 100svh;
  }

  .hero-container {
    max-width: 100%;
    padding: 2rem;
  }

  .hero-title {
    font-size: clamp(3.5rem, 15vw, 5.5rem);
  }

  .hero-image-block {
    display: none;
  }

  .hero-stats {
    gap: 1.2rem;
    flex-wrap: wrap;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Sections */
  .about,
  .services,
  .plans,
  .testimonials,
  .gallery,
  .contact {
    padding: 70px 0;
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Plans */
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .plan-card.featured {
    transform: scale(1);
    order: -1;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 180px);
  }

  .gallery-item.g-tall {
    grid-row: span 1;
  }

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

  /* Contact form */
  .contact-form-wrapper {
    padding: 1.5rem;
  }

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

  .footer-brand {
    grid-column: span 2;
  }

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

  /* Floating card */
  .about-float-card {
    bottom: -10px;
    right: -5px;
  }

  /* About visual */
  .about-img-placeholder {
    min-height: 300px;
  }
}

/* ===== SMALL MOBILE (≤ 480px) ===== */
@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }

  .hero-title {
    font-size: clamp(3rem, 16vw, 4rem);
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 5px 12px;
  }

  .hero-stats {
    gap: 0.8rem;
  }

  .stat-number { font-size: 1.8rem; }
  .stat-divider { display: none; }

  .hero-stats { flex-wrap: wrap; }

  .section-tag {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

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

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 160px);
  }

  .gallery-item.g-tall,
  .gallery-item.g-wide {
    grid-row: span 1;
    grid-column: span 1;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .contact-form-wrapper {
    padding: 1.2rem;
  }

  .plan-card {
    padding: 2rem 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .marquee-inner span {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-ghost {
    padding: 13px 20px;
    font-size: 0.95rem;
  }
}

/* ===== VERY SMALL (≤ 360px) ===== */
@media (max-width: 360px) {
  .hero-title {
    font-size: 3rem;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .price-amount {
    font-size: 2.8rem;
  }

  .contact-form-wrapper {
    padding: 1rem;
  }
}

/* ===== HOVER EFFECTS — only on non-touch devices ===== */
@media (hover: hover) {
  .service-card:hover { transform: translateY(-4px); }
  .plan-card:not(.featured):hover { transform: translateY(-4px); }
  .testimonial-card:hover { transform: translateY(-4px); }
  .gallery-item:hover .gallery-placeholder { transform: scale(1.03); }
  .social-btn:hover { transform: translateY(-2px); }
  .about-float-card:hover { transform: translateY(-4px) !important; }
  .footer-links-col ul li a:hover { padding-right: 6px; }
}

/* ===== PRINT ===== */
@media print {
  .navbar,
  .hero-scroll-hint,
  .marquee-section,
  .cursor,
  .cursor-follower { display: none; }

  .hero { min-height: auto; padding: 2rem 0; }
  body { background: white; color: black; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-inner {
    animation: none;
  }

  .about-float-card {
    animation: none;
  }

  .scroll-line {
    animation: none;
    opacity: 0.4;
  }
}