/* ESG Compliance Training Platform - Responsive Styles */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 3.2rem;
  }
  
  .section-padding {
    padding: 100px 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #blog_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  #blog_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile specific adjustments */
@media (max-width: 767.98px) {
  /* Disable animations on mobile to respect performance */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .custom-card {
    margin-bottom: 1.5rem;
  }
  
  /* Conservative mobile typography */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  h4 {
    font-size: 1.2rem;
  }
  
  /* Mobile contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Mobile team images */
  .team-image {
    width: 120px;
    height: 120px;
  }
  
  /* Mobile gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Mobile blog grid */
  #blog_grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Mobile buttons */
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Mobile price cards - no scaling */
  .price-card.featured {
    transform: none;
  }
  
  /* Mobile process cards */
  .process-number {
    position: static;
    margin: 0 auto 1rem;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .price-card.featured {
    transform: scale(1.02);
  }
  
  .team-image {
    width: 140px;
    height: 140px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .custom-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Landscape phone adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 50vh;
  }
  
  .section-padding {
    padding: 40px 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .custom-card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .custom-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .hero-section::before {
    animation: none;
  }
}

.hero-content {
    padding-top: 125px;
}