/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .lead {
    font-size: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  .navbar-brand {
    font-size: 1.2rem !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-max-width);
  }
}

/* Mobile-specific: Disable Swiper autoplay and effects */
@media (max-width: 767.98px) {
  .swiper-wrapper {
    transform: none !important;
  }
  
  .swiper-slide {
    transition: none !important;
  }
  
  /* Disable hover effects on mobile */
  .feature-item:hover,
  .service-card:hover,
  .gallery img:hover {
    transform: none;
  }
  
  /* Simplify animations for mobile */
  .btn-primary:hover {
    transform: none;
  }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-content {
    text-align: center;
  }
  
  .service-card img {
    height: 180px;
  }
}

/* Tablet Landscape */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .hero {
    min-height: 80vh;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-image: url('../SEM_images/shs_hero-bg@2x.webp');
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .contact-form {
    display: none;
  }
  
  .hero {
    min-height: auto;
    background: white;
    color: black;
  }
  
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-charcoal: #f0f0f0;
    --light-charcoal: #e0e0e0;
  }
  
  body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #f0f0f0;
  }
  
  .feature-item,
  .service-card,
  .contact-form {
    background: #2d2d2d;
    color: #f0f0f0;
  }
  
  .section-title h2 {
    color: var(--light-gold);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .swiper-wrapper,
  .swiper-slide {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus visible for keyboard navigation */
.navbar-nav .nav-link:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--primary-burgundy);
  outline-offset: 2px;
}

/* Container adjustments for different screen sizes */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Grid adjustments for mobile */
@media (max-width: 767.98px) {
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col,
  [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Hero section responsive adjustments */
@media (max-width: 767.98px) {
  .hero {
    min-height: 100vh;
    text-align: center;
  }
  
  .hero .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Service cards responsive grid */
@media (max-width: 575.98px) {
  .service-card {
    margin-bottom: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .service-card {
    margin-bottom: 1.5rem;
  }
}

/* Team section responsive */
@media (max-width: 767.98px) {
  .team-member {
    margin-bottom: 2rem;
  }
  
  .team-member:last-child {
    margin-bottom: 0;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer-links {
    margin-bottom: 1rem;
  }
}

/* Contact form responsive */
@media (max-width: 575.98px) {
  .contact-form .form-control {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.75rem;
  }
}

/* FAQ responsive */
@media (max-width: 767.98px) {
  .faq .card {
    margin-bottom: 0.5rem;
  }
  
  .faq .card-header {
    padding: 0.75rem;
  }
  
  .faq .card-body {
    padding: 0.75rem;
  }
} 