/* ===== RESPONSIVE.CSS - Mobile-First Responsive Design ===== */

/* ===== EXTRA SMALL DEVICES (< 576px) ===== */
@media (max-width: 575.98px) {
  /* Typography */
  h1, .h1 {
    font-size: var(--font-size-2xl);
    line-height: 1.4;
  }
  
  h2, .h2 {
    font-size: var(--font-size-xl);
    line-height: 1.4;
  }
  
  h3, .h3 {
    font-size: var(--font-size-lg);
  }
  
  /* Navbar */
  .navbar-brand {
    font-size: var(--font-size-lg);
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    padding: var(--spacing-xl) 0;
  }
  
  .hero-section h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    padding-top: 125px;
}
  
  .hero-section h2 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
  }
  
  .hero-section p {
    font-size: var(--font-size-sm);
  }
  
  /* Cards */
  .card {
    margin-bottom: var(--spacing-lg);
  }
  
  .card-body {
    padding: var(--spacing-md);
  }
  
  .service-card .card-body {
    padding: var(--spacing-lg);
  }
  
  /* Pricing Cards */
  .pricing-card .card-header {
    padding: var(--spacing-lg);
  }
  
  .pricing-card .price {
    font-size: var(--font-size-2xl);
  }
  
  /* Team Photos */
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  /* Process Steps */
  .step-number {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-base);
  }
  
  /* Contact Form */
  .contact-form .form-control {
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
  }
  
  .contact-form .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
  }
  
  /* Sections */
  section {
    padding: var(--spacing-xl) 0;
  }
  
  .py-5 {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }
  
  /* Grid Adjustments */
  .row > * {
    margin-bottom: var(--spacing-md);
  }
  
  /* Footer */
  footer {
    text-align: center;
  }
  
  footer .row > div {
    margin-bottom: var(--spacing-lg);
  }
}

/* ===== SMALL DEVICES (576px - 767.98px) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero Section */
  .hero-section {
    min-height: 75vh;
  }
  
  /* Cards Grid */
  .row.g-4 > * {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Team Section - 2 columns */
  .team-member {
    margin-bottom: var(--spacing-lg);
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process Steps - 2 columns */
  .process-step {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Timeline - Stack vertically */
  .timeline-item {
    margin-bottom: var(--spacing-lg);
    padding-left: 0;
  }
}

/* ===== MEDIUM DEVICES (768px - 991.98px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero-section {
    min-height: 85vh;
  }
  
  /* Navbar */
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
  }
  
  /* Cards */
  .service-card img {
    height: 180px;
  }
  
  /* Team Photos */
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  /* Process Steps */
  .step-number {
    width: 55px;
    height: 55px;
    font-size: var(--font-size-lg);
  }
  
  /* Timeline - 3 columns */
  .timeline-item {
    padding-left: var(--spacing-md);
  }
  
  /* Contact Info - Stack vertically */
  .contact-info {
    text-align: center;
    margin-bottom: var(--spacing-md);
  }
}

/* ===== LARGE DEVICES (992px - 1199.98px) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Container adjustments */
  .container {
    max-width: 960px;
  }
  
  /* Hero Section */
  .hero-section h1 {
    font-size: var(--font-size-3xl);
    padding-top: 125px;
}
  
  /* Services Grid - 3 columns */
  .service-card img {
    height: 200px;
  }
  
  /* Team - 5 columns but responsive */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process - 5 columns */
  .process-step {
    margin-bottom: var(--spacing-md);
  }
  
  /* Timeline - 5 columns */
  .timeline-item {
    padding-left: var(--spacing-lg);
  }
}

/* ===== EXTRA LARGE DEVICES (â‰¥ 1200px) ===== */
@media (min-width: 1200px) {
  /* Container */
  .container {
    max-width: 1140px;
  }
  
  /* Typography - Larger screens can handle slightly bigger text */
  h1, .h1 {
    font-size: var(--font-size-4xl);
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Cards hover effects enhanced */
  .card:hover {
    transform: translateY(-8px);
  }
  
  /* Enhanced spacing */
  section {
    padding: 5rem 0;
  }
  
  .py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ===== LANDSCAPE ORIENTATION (Mobile/Tablet) ===== */
@media (orientation: landscape) and (max-width: 991.98px) {
  .hero-section {
    min-height: 60vh;
    padding: var(--spacing-lg) 0;
  }
  
  .hero-section h1 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    padding-top: 125px;
}
  
  .hero-section h2 {
    font-size: var(--font-size-base);
  }
  
  /* Reduce section padding */
  section {
    padding: var(--spacing-lg) 0;
  }
  
  .py-5 {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
  }
}

/* ===== HIGH DPI / RETINA DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for sharp text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Sharper borders */
  .card, .btn, .form-control {
    border-width: 0.5px;
  }
}

/* ===== TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  .navbar-nav .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .form-control {
    min-height: 44px;
  }
  
  /* Remove hover effects */
  .card:hover,
  .btn:hover,
  .nav-link:hover {
    transform: none;
  }
  
  /* Enhanced focus states */
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* ===== REDUCED MOTION DEVICES ===== */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Keep essential transitions for usability */
  .form-control:focus {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
}

/* ===== DARK MODE SUPPORT ===== */

/* ===== PRINT STYLES ===== */
@media print {
  /* Optimize for printing */
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .breadcrumb-section,
  footer,
  .btn {
    display: none !important;
  }
  
  .container {
    width: 100% !important;
    max-width: none !important;
  }
  
  section {
    padding: 1rem 0 !important;
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .card {
    border: 1px solid #000 !important;
    page-break-inside: avoid;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Focus indicators */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Ensure sufficient color contrast */
.text-muted {
  color: var(--gray-600) !important;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== GRID SYSTEM ENHANCEMENTS ===== */

/* Custom responsive utilities */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-mobile {
    text-align: left;
  }
}

/* Spacing utilities for mobile */
@media (max-width: 575.98px) {
  .mb-mobile-lg {
    margin-bottom: var(--spacing-lg) !important;
  }
  
  .mt-mobile-lg {
    margin-top: var(--spacing-lg) !important;
  }
  
  .px-mobile-sm {
    padding-left: var(--spacing-sm) !important;
    padding-right: var(--spacing-sm) !important;
  }
} 

/* Disable scroll animations on mobile */
@media (max-width: 768px) {
  html {
    scroll-behavior: auto !important;
  }
  
  /* Disable all scroll-triggered animations */
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
} 