/* Responsive CSS for Indie Magazine Subscription Template */

/* Mobile First - Base styles (320px+) */
@media (max-width: 575.98px) {
  /* Disable all animations on mobile */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Typography adjustments */
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.375rem; }
  
  .navbar-brand { font-size: 1.125rem; }

  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }

  .hero-decoration {
    display: none;
  }

  /* Section spacing */
  .section {
    padding: 2.5rem 0;
  }

  /* Cards mobile */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .process-step,
  .career-card,
  .coreinfo-card {
    margin-bottom: 1.5rem;
  }

  /* Contact form mobile */
  .contact-form,
  .contact-info {
    padding: 2rem;
    margin-bottom: 2rem;
  }

  /* Gallery mobile */
  .gallery-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Team photo mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }

  /* Price value mobile */
  .price-value {
    font-size: 2rem;
  }

  /* Footer mobile */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }

  /* Button mobile */
  .btn-primary {
    padding: 0.625rem 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Small devices (576px and up) */
@media (min-width: 576px) {
  .hero-section {
    min-height: 85vh;
  }

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

/* Medium devices (768px and up) */
@media (min-width: 768px) {
  .hero-section {
    min-height: 90vh;
  }

  .section {
    padding: 4rem 0;
  }

  .contact-form,
  .contact-info {
    padding: 3rem;
  }

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

  /* Restore hover effects on larger screens */
  .feature-card:hover {
    transform: translateY(-5px);
  }

  .service-card:hover {
    transform: translateY(-8px);
  }

  .blog-card:hover {
    transform: translateY(-5px);
  }

  .gallery-item:hover .gallery-image {
    transform: scale(1.05);
  }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 95vh;
  }

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

  /* Enhanced hover effects */
  .price-card:hover {
    transform: translateY(-10px);
  }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }

  .hero-decoration {
    width: 250px;
    height: 250px;
  }

  .container {
    max-width: 1140px;
  }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

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

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }

  .hero-content {
    text-align: center;
    padding-top: 150px;
}
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-decoration {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .blog-card,
  .faq-card {
    border: 3px solid var(--navy-dark);
  }
}

/* Dark mode support */
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
