/* =============================
   RESPONSIVE STYLES
   Mobile-First Approach
   ============================= */

/* Mobile First - Base Styles (320px+) */
@media (max-width: 576px) {
  /* No scroll animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Allow only hover effects on touch devices */
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Typography Adjustments */
  h1 {
    font-size: var(--font-size-2xl);
    line-height: 1.3;
  }
  
  h2 {
    font-size: var(--font-size-xl);
    line-height: 1.4;
  }
  
  h3 {
    font-size: var(--font-size-lg);
    line-height: 1.4;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .hero-title {
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: 1rem;
  }
  
  /* Section Padding */
  .section {
    padding: 2rem 0;
  }
  
  /* Card Adjustments */
  .card-body {
    padding: 1.5rem;
  }
  
  .card-header {
    padding: 1rem;
  }
  
  /* Service Cards Mobile */
  .service-price {
    font-size: var(--font-size-xl);
    margin-top: 1rem;
  }
  
  /* Team Photos Mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Gallery Grid Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Core Info Grid Mobile */
  .core-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .core-info-card {
    padding: 1.5rem;
  }
  
  /* Form Adjustments */
  .form-control {
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-base);
  }
  
  .btn-primary {
    padding: 0.5rem 1.5rem;
    font-size: var(--font-size-base);
    width: 100%;
    margin-top: 1rem;
  }
  
  /* Process Steps Mobile */
  .process-step {
    padding: 1.5rem 1rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }
  
  /* Timeline Mobile */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Navigation Mobile */
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Footer Mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* FAQ Mobile */
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  /* Blog Cards Mobile */
  .blog-card .card-img-top {
    height: 180px;
  }
  
  /* Contact Info Mobile */
  .contact-info {
    text-align: center;
    margin-bottom: 2rem;
  }
}

/* Small Tablets (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
  /* Gallery Grid Tablets */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  /* Core Info Grid Tablets */
  .core-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Process Steps Tablets */
  .process-step {
    padding: 1.75rem;
  }
  
  /* Hero Section Tablets */
  .hero-section {
    text-align: left;
  }
  
  /* Button Adjustments */
  .btn-primary {
    width: auto;
    margin-top: 0;
  }
}

/* Medium Tablets (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
  /* Gallery Grid Medium */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Core Info Grid Medium */
  .core-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Hero Section Medium */
  .hero-section::before {
    display: block;
    opacity: 0.2;
  }
}

/* Large Tablets & Small Desktops (993px - 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
  /* Gallery Grid Large */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Core Info Grid Large */
  .core-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Hero Section Large */
  .hero-section::before {
    display: block;
    opacity: 0.25;
  }
}

/* Extra Large Screens (1201px+) */
@media (min-width: 1201px) {
  /* Container Max Width */
  .container {
    max-width: 1200px;
  }
  
  /* Gallery Grid Extra Large */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Core Info Grid Extra Large */
  .core-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Hero Section Extra Large */
  .hero-section::before {
    display: block;
    opacity: 0.3;
  }
  
  /* Section Padding Large */
  .section {
    padding: 5rem 0;
  }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .card {
    box-shadow: var(--shadow-sm);
  }
  
  .card:hover {
    box-shadow: var(--shadow-md);
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 80vh;
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Print Styles */
@media print {
  /* Hide navigation and interactive elements */
  .navbar,
  .btn,
  .contact-form,
  .gallery-grid {
    display: none;
  }
  
  /* Optimize text for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  /* Ensure backgrounds are printed */
  * {
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  /* Remove 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;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --text-dark: #000000;
    --text-light: #333333;
    --gray-200: #000000;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }
  
  .card {
    border: 2px solid #000000;
  }
  
  .form-control {
    border: 2px solid #000000;
  }
  
  .btn-primary {
    border: 2px solid #000000;
  }
}

/* Dark Mode Preference */

/* Keyboard Navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

/* 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;
}

.hero-section h1 {
    padding-top: 175px;
}