/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
  :root {
    --container-padding: 16px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 22px;
  }

  .section-title {
    font-size: 24px;
    line-height: 30px;
  }

  .section-subtitle {
    font-size: 16px;
    line-height: 22px;
  }

  .app-gallery {
    height: auto;
    padding: 16px 0;
  }

  .features-grid {
    gap: 24px;
  }

  .feature-title {
    font-size: 18px;
    line-height: 24px;
  }

  .feature-description {
    font-size: 16px;
    line-height: 24px;
  }

  .membership-card {
    width: 100%;
  }

  .card-number {
    font-size: 36px;
  }

  .card-discount {
    font-size: 48px;
  }

  .level-card-header {
    height: 120px;
  }

  .level-name {
    font-size: 24px;
  }

  .level-title {
    font-size: 18px;
  }

  .level-rate,
  .level-benefit {
    font-size: 16px;
  }

  .faq-question {
    height: 60px;
    font-size: 18px;
    padding: 0 12px;
  }

  .faq-subquestion {
    font-size: 16px;
    padding: 0 12px;
  }

  .contact-content {
    padding: 32px 16px;
  }

  .contact-title {
    font-size: 24px;
  }

  .contact-subtitle {
    font-size: 16px;
  }

  .contact-method {
    height: 50px;
  }

  .contact-text {
    font-size: 16px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 577px) and (max-width: 768px) {

  .app-gallery {
    height: auto;
    padding: 24px 0;
  }

  .app-image {
    width: 140px !important;
    height: 180px !important;
  }

  .membership-cards {
    flex-direction: column;
    align-items: center;
  }

  .membership-levels-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .membership-levels-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .app-gallery {
    height: 350px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .membership-levels-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ultra wide screens */
@media (min-width: 1441px) {
  .main-container {
    max-width: 1680px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .contact-method {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .membership-card {
    border: 2px solid var(--color-black);
  }

  .membership-level-card {
    border: 2px solid var(--color-black);
  }

  .contact-method {
    border: 2px solid var(--color-black);
  }
}
