/* Survivor Benefit Advocacy Center - Responsive Styles */

/* ===== EXTRA LARGE DEVICES (1400px and up) ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== LARGE DEVICES (992px and up) ===== */
@media (min-width: 992px) and (max-width: 1399px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-section {
    min-height: 100vh;
  }
}

/* ===== MEDIUM DEVICES (768px and up) ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-card {
    margin-bottom: var(--spacing-md);
  }
  
  .pricing-card {
    margin-bottom: var(--spacing-md);
  }
}

/* ===== SMALL DEVICES (576px and up) ===== */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
  
  .card-body {
    padding: var(--spacing-sm);
  }
  
  .testimonial-card {
    margin: var(--spacing-sm);
  }
  
  .contact-form {
    padding: var(--spacing-md);
  }
  
  .navbar-nav {
    text-align: center;
    padding-top: var(--spacing-sm);
  }
}

/* ===== EXTRA SMALL DEVICES (less than 576px) ===== */
@media (max-width: 575px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .card-body {
    padding: var(--spacing-sm);
  }
  
  .pricing-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
  }
  
  .price {
    font-size: 2.5rem;
  }
  
  .team-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
  }
  
  .team-img {
    width: 120px;
    height: 120px;
  }
  
  .testimonial-card {
    margin: var(--spacing-sm) 0;
    padding: var(--spacing-md);
  }
  
  .contact-form {
    padding: var(--spacing-md);
    margin: 0 var(--spacing-sm);
  }
  
  .accordion {
    margin: 0 var(--spacing-sm);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding-top: var(--spacing-sm);
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-xs) var(--spacing-sm) !important;
    margin: var(--spacing-xs) 0;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: var(--spacing-md) 0;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  /* Hide decorative shapes on mobile for performance */
  .shape-1, .shape-2 {
    display: none;
  }
}

/* ===== LANDSCAPE ORIENTATION ADJUSTMENTS ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../EXC_images/hero-bg-2x.webp');
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .card:hover,
  .team-card:hover,
  .gallery-item:hover,
  .pricing-card:hover {
    transform: none;
  }
  
  .card:hover .card-img-top {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: transparent;
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Increase touch targets */
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn {
    min-height: 44px;
    padding: var(--spacing-sm) var(--spacing-lg);
  }
  
  .form-control {
    min-height: 44px;
  }
  
  .accordion-button {
    min-height: 60px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .shape-1,
  .shape-2,
  .btn,
  .contact-form {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
    margin-bottom: var(--spacing-lg);
  }
  
  .card {
    border: 1px solid #ccc;
    margin-bottom: var(--spacing-md);
  }
  
  a:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
  
  .hero-section {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }
}

/* ===== REDUCED MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    background-attachment: scroll;
  }
  
  .swiper-wrapper {
    animation: none !important;
  }
  
  .swiper-slide {
    transition: none !important;
  }
} 