/* ===== RESPONSIVE STYLES - MOBILE FIRST ===== */

/* ===== MOBILE FIRST BASE (up to 576px) ===== */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1, .h1 { font-size: 1.75rem; }
  h2, .h2 { font-size: 1.5rem; }
  h3, .h3 { font-size: 1.25rem; }
  
  /* Section padding reduction */
  .section {
    padding: 3rem 0;
  }
  
  /* Hero section mobile */
  .hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    width: 100px;
    height: 100px;
    top: -25px;
    right: -25px;
  }
  
  /* Navigation mobile */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Cards mobile */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem 1rem;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Form spacing mobile */
  .form-control {
    padding: 0.6rem 0.8rem;
    margin-bottom: 1rem;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* No animations on mobile per rules */
  .card:hover {
    transform: none;
    box-shadow: var(--box-shadow);
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* ===== SMALL DEVICES (576px and up) ===== */
@media (min-width: 576px) {
  .hero-decorative {
    width: 150px;
    height: 150px;
  }
}

/* ===== MEDIUM DEVICES (768px and up) ===== */
@media (min-width: 768px) {
  /* Typography improvements */
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.75rem; }
}

/* ===== LARGE DEVICES (992px and up) ===== */
@media (min-width: 992px) {
  /* Full typography */
  h1, .h1 { font-size: 2.25rem; }
  h2, .h2 { font-size: 1.875rem; }
  
  /* Full decorative element */
  .hero-decorative {
    width: 200px;
    height: 200px;
  }
}

/* ===== EXTRA LARGE DEVICES (1200px and up) ===== */
@media (min-width: 1200px) {
  /* Larger service cards */
  .service-card {
    padding: 2.5rem 2rem;
  }
  
  /* Hero content spacing */
  .hero-content {
    padding-right: 2rem;
    padding-top: 150px;
  }
}

/* ===== EXTRA EXTRA LARGE DEVICES (1400px and up) ===== */
@media (min-width: 1400px) {
  /* Additional spacing for very large screens */
  .section {
    padding: 6rem 0;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-sage: #4f5a40;
    --color-seafoam: #678689;
    --color-navy: #0a131e;
    --color-coral: #b52237;
  }
  
  .card {
    border: 2px solid var(--color-navy);
  }
  
  .form-control {
    border-width: 3px;
  }
}

/* Focus improvements */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--color-coral);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* ===== LANDSCAPE ORIENTATION ADJUSTMENTS ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* ===== REDUCED MOTION ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .card,
  .gallery-item img,
  .btn-primary,
  .nav-link,
  .form-control {
    transition: none;
  }
  
  .hero {
    background: var(--color-cream);
  }
}