/* Responsive CSS for Victim Advocacy Legal Desk */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .hero-desc {
    font-size: var(--font-size-sm);
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .navbar-brand {
    font-size: var(--font-size-base);
  }
  
  .service-card,
  .team-card,
  .feature-card {
    margin-bottom: var(--spacing-lg);
  }
  
  .contact-form {
    padding: var(--spacing-lg);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-shape {
    display: none;
  }
  
  .footer {
    padding: var(--spacing-lg) 0;
  }
  
  .footer .col-md-3 {
    margin-bottom: var(--spacing-lg);
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card,
  .team-card {
    margin-bottom: var(--spacing-md);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    margin-bottom: var(--spacing-md);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Disable animations and autoplay on mobile devices */
@media (max-width: 767.98px) {
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-slide {
    transition: none !important;
  }
  
  .hero-shape {
    animation: none !important;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../TEA_images/hero-bg@2x.webp');
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-shape,
  .btn-primary {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: var(--spacing-lg) 0;
    background: var(--white) !important;
    color: var(--gray-900) !important;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  a {
    color: var(--gray-900) !important;
    text-decoration: underline !important;
  }
  
  .service-card,
  .team-card,
  .feature-card,
  .review-card {
    box-shadow: none !important;
    border: 1px solid var(--gray-300) !important;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .hero-desc {
    font-size: var(--font-size-sm);
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn-primary:focus,
  .form-control:focus,
  .faq-question:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --gray-50: #2a2a2a;
    --gray-100: #3a3a3a;
    --gray-200: #4a4a4a;
    --gray-300: #5a5a5a;
    --gray-600: #cccccc;
    --gray-800: #e0e0e0;
    --gray-900: #f0f0f0;
  }
  
  body {
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--gray-800);
  }
  
  .service-card,
  .team-card,
  .feature-card,
  .contact-form,
  .faq-item {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
  }
}

/* Container max-widths for different breakpoints */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Navbar responsive behavior */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(26, 54, 93, 0.95);
    margin-top: var(--spacing-sm);
    border-radius: 8px;
    padding: var(--spacing-md);
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-sm) var(--spacing-md) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Form responsive adjustments */
@media (max-width: 767.98px) {
  .form-control {
    padding: var(--spacing-sm);
    font-size: var(--font-size-base);
  }
  
  .btn-primary {
    width: 100%;
    padding: var(--spacing-md);
  }
}

/* Team section responsive grid */
@media (max-width: 575.98px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Services section responsive grid */
@media (max-width: 575.98px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Features section responsive grid */
@media (max-width: 575.98px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
} 