/* ================================
   LOCALVOICE - RESPONSIVE STYLES
   Mobile-first responsive design
   ================================ */

/* Base Mobile Styles (320px and up) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-h4: 1.1rem;
    --section-padding: 3rem 0;
  }
  
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    padding-top: 150px;
}
  
  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  /* Services */
  .services-section .card-img-top {
    height: 180px;
  }
  
  /* Team */
  .team-card .card-img-top {
    height: 200px;
  }
  
  /* Process Steps */
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  /* Contact Form */
  .contact-form .form-control {
    padding: 0.625rem;
    font-size: 1rem;
  }
  
  .contact-info {
    padding: 1rem;
    margin-top: 1.5rem;
  }
  
  /* Gallery */
  .gallery-img {
    height: 150px;
    margin-bottom: 0.5rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0;
    text-align: center;
  }
  
  .footer .col-md-4 {
    margin-bottom: 1.5rem;
  }
  
  /* Breadcrumb */
  .breadcrumb-section {
    margin-top: 56px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .hero-section {
    min-height: 85vh;
  }
  
  .services-section .card-img-top {
    height: 200px;
  }
  
  .team-card .card-img-top {
    height: 220px;
  }
  
  .gallery-img {
    height: 180px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --font-size-h1: 1.875rem;
    --font-size-h2: 1.625rem;
    --section-padding: 4rem 0;
  }
  
  .navbar-brand {
    font-size: 1.375rem !important;
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: 1.875rem;
    padding-top: 150px;
}
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  .services-section .card-img-top {
    height: 220px;
  }
  
  .team-card .card-img-top {
    height: 240px;
  }
  
  .gallery-img {
    height: 200px;
  }
  
  .contact-form {
    padding: 0 1rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .services-section .card-img-top {
    height: 200px;
  }
  
  .team-card .card-img-top {
    height: 250px;
  }
  
  .gallery-img {
    height: 220px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .services-section .card-img-top {
    height: 220px;
  }
  
  .team-card .card-img-top {
    height: 280px;
  }
  
  .gallery-img {
    height: 240px;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .gallery-img {
    height: 260px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: 1.5rem;
    padding-top: 150px;
}
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-img,
  .card-img-top {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  * {
    color: black !important;
    background: white !important;
  }
  
  .navbar,
  .footer,
  .breadcrumb-section,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .card {
    border: 1px solid #e3e1e1;
    box-shadow: none;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .gallery-section {
    display: none;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Support */

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .card:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .gallery-img:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  /* Increase touch targets */
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .form-control {
    min-height: 44px;
  }
}

/* Specific Mobile Fixes */
@media (max-width: 767.98px) {
  /* Fix for mobile viewport issues */
  .hero-section {
    min-height: calc(100vh - 56px);
  }
  
  /* Better spacing for mobile cards */
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  /* Mobile-friendly buttons */
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
  
  /* Mobile contact layout */
  .contact-section .row {
    flex-direction: column-reverse;
  }
  
  /* Mobile gallery adjustments */
  .gallery-section .row {
    margin: 0 -0.25rem;
  }
  
  .gallery-section [class*="col-"] {
    padding: 0 0.25rem;
  }
}

/* Tablet Landscape Specific */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-section {
    min-height: 80vh;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
  }
}

/* Custom Breakpoint for 5-column layout */
@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (max-width: 991.98px) {
  .col-lg-2-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  .col-lg-2-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Container Fluid Responsive Behavior */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Form Responsive Improvements */
@media (max-width: 767.98px) {
  .contact-form .row .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .contact-form .row .col-md-6:last-child {
    margin-bottom: 0;
  }
}

/* Mobile Menu Improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .navbar-nav {
    padding: 0.5rem 0;
  }
}

/* Ensure proper mobile spacing */
@media (max-width: 575.98px) {
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
} 