/* Responsive Styles for WeFit Gym */

/* Tablet (768px to 1024px) */
@media screen and (max-width: 1024px) {
  /* Typography adjustments for smaller screens */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  /* Hero Section */
  .hero h1 {
    font-size: 3rem;
  }
  
  /* About Section */
  .about-content {
    flex-direction: column;
  }
  
  .about-text {
    order: 2;
  }
  
  .about-image {
    order: 1;
    margin-bottom: var(--spacing-lg);
  }
  
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Trainers Section */
  .trainers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact Section */
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
}

/* Mobile (up to 767px) */
@media screen and (max-width: 767px) {
  /* Header & Navigation */
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Mobile menu open state */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Hero Section */
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 var(--spacing-xl);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  /* About Section */
  .features {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  /* Classes Section */
  .classes-grid {
    grid-template-columns: 1fr;
  }
  
  /* Trainers Section */
  .trainers-grid {
    grid-template-columns: 1fr;
  }
  
  /* Membership Section */
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
  
  /* Testimonial Section */
  .testimonial-content {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-image {
    margin-bottom: var(--spacing-md);
  }
  
  /* Contact Section */
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .contact-form form {
    grid-template-columns: 1fr;
  }
  
  .form-group:nth-child(5),
  .form-group:nth-child(6) {
    grid-column: span 1;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
}

/* Small Mobile (up to 480px) */
@media screen and (max-width: 480px) {
  /* Container padding adjustment */
  .container {
    padding: 0 var(--spacing-md);
  }
  
  /* Typography */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  /* Hero Section */
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Language Selector */
  .language-selector {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
  }
  
  /* Newsletter Form */
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-xs);
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius-sm);
    width: 100%;
  }
}

/* RTL Support for Arabic */
html[dir="rtl"] {
  /* Text alignment and direction */
  text-align: right;
  
  /* Navigation adjustments */
  .desktop-nav ul {
    flex-direction: row-reverse;
  }
  
  .mobile-nav {
    left: -300px;
    right: auto;
  }
  
  .mobile-nav.active {
    left: 0;
    right: auto;
  }
  
  /* Language selector position */
  .language-selector {
    left: var(--spacing-md);
    right: auto;
  }
  
  /* Icon positioning in lists */
  .pricing-features li i,
  .contact-item i {
    margin-right: 0;
    margin-left: var(--spacing-xs);
  }
  
  /* Footer headings underline */
  .footer-links h4::after,
  .footer-social h4::after,
  .footer-newsletter h4::after {
    left: auto;
    right: 0;
  }
}

/* Larger screens (above 1440px) */
@media screen and (min-width: 1441px) {
  /* Increase container width */
  .container {
    max-width: 1440px;
  }
  
  /* Typography scaling */
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  /* Hero Section */
  .hero h1 {
    font-size: 5rem;
  }
  
  .hero p {
    font-size: 1.5rem;
  }
  
  /* Grids for more content */
  .classes-grid,
  .trainers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}