/* Responsive CSS for Veteran Benefits Concierge */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  /* Timeline adjustments for larger screens */
  .timeline-item {
    width: 45%;
  }
  
  /* Process steps in row */
  .process-step {
    position: relative;
  }
  
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--primary-1);
    z-index: -1;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-content {
    max-width: 80%;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  :root {
    --fs-h1: 1.5rem;
    --fs-h2: 1.25rem;
    --fs-h3: 1.125rem;
    --fs-h4: 1rem;
  }
  
  /* Hero section mobile */
  #hero {
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
  }
  
  /* Section spacing */
  .section {
    padding: 3rem 0;
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Timeline mobile view */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px !important;
    padding-right: 15px !important;
    text-align: left !important;
  }
  
  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }
  
  /* Process steps vertical on mobile */
  .process-step:not(:last-child)::after {
    display: none;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  /* Footer mobile */
  .footer .col-md-4,
  .footer .col-md-3 {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Blog cards mobile */
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  /* Shape blobs smaller on mobile */
  .shape-blob-1 {
    width: 200px;
    height: 200px;
  }
  
  .shape-blob-2 {
    width: 250px;
    height: 250px;
  }
}

/* Tablet specific (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Service grid 2 columns on tablet */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Feature items 2 columns */
  .feature-item {
    margin-bottom: 2rem;
  }
  
  /* Team grid adjustments */
  .team-member {
    margin-bottom: 2rem;
  }
}

/* Mobile landscape adjustments */
@media (max-width: 767px) and (orientation: landscape) {
  #hero {
    min-height: auto;
    padding: 3rem 0;
  }
}

/* Swiper mobile controls - IMPORTANT: Disable autoplay and effects on mobile */
@media (max-width: 767px) {
  /* Disable Swiper autoplay on mobile */
  .swiper[data-mobile-disabled] {
    --swiper-autoplay: 0 !important;
  }
  
  /* Simplify Swiper effects on mobile */
  .swiper {
    --swiper-effect: slide !important;
  }
  
  /* Larger touch areas for mobile */
  .swiper-button-next,
  .swiper-button-prev {
    width: 44px;
    height: 44px;
  }
  
  .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
  }
  
  /* Single slide view on mobile */
  .swiper-slide {
    width: 100% !important;
  }
}

/* Very small devices adjustments */
@media (max-width: 375px) {
  /* Further reduce font sizes */
  :root {
    --fs-base: 14px;
    --fs-h1: 1.375rem;
    --fs-h2: 1.125rem;
  }
  
  /* Padding adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Button size adjustment */
  .btn-primary {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper borders and shadows */
  .service-card,
  .blog-card,
  .contact-form {
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
  }
}

/* Print styles */
@media print {
  /* Hide navigation and footer */
  .navbar,
  .footer,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }
  
  /* Adjust colors for print */
  body {
    overflow-x: hidden;
    color: #000;
    background: #fff;
  }
  
  /* Remove backgrounds */
  .section-alt {
    background: none;
  }
  
  /* Page breaks */
  .section {
    page-break-inside: avoid;
  }
}

/* Accessibility - Focus styles */
@media (prefers-reduced-motion: reduce) {
  /* Already handled in main.css */
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Could add dark mode styles here if needed */
}

/* Navbar mobile toggle */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--primary-1-dark);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
  }
  
  .navbar-toggler {
    border: 2px solid var(--primary-2);
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Form responsive adjustments */
@media (max-width: 575.98px) {
  .form-control,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Gallery lightbox mobile */
@media (max-width: 767px) {
  .lb-nav a.lb-prev,
  .lb-nav a.lb-next {
    opacity: 1; /* Always visible on mobile */
  }
}

/* Utility classes for responsive display */
@media (max-width: 575.98px) {
  .mobile-hide {
    display: none !important;
  }
  
  .mobile-center {
    text-align: center !important;
  }
}

@media (min-width: 576px) {
  .desktop-hide {
    display: none !important;
  }
} 