/* Responsive CSS - Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.375rem; }
  h4 { font-size: 1.25rem; }
  
  /* Navbar Brand - Even Smaller on Mobile */
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-content {
    padding: 2rem 0;
    padding-top: 125px;
}
  
  /* Hide decorative shapes on small screens */
  .hero-shape {
    display: none;
  }
  
  /* Disable scroll animations on mobile */
  .sal-animate,
  [data-sal] {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  
  /* Section Padding Reduction */
  .section {
    padding: 40px 0;
  }
  
  /* Card Adjustments */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .service-card,
  .pricing-card {
    padding: 1.5rem;
  }
  
  /* Team Photos */
  .team-photo {
    height: 200px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Process Steps */
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Pricing Cards - Remove Scale on Mobile */
  .pricing-card.featured {
    transform: none;
  }
  
  /* Button Adjustments */
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
  
  /* FAQ Cards */
  .faq-card {
    padding: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem 0;
    text-align: center;
  }
  
  /* Spacing Reductions */
  :root {
    --section-padding: 40px 0;
    --element-spacing: 1.5rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Show some decorative shapes */
  .shape-2 {
    display: block;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: var(--section-padding);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Enable hover effects on larger screens */
  .card:hover {
    transform: translateY(-5px);
  }
  
  .btn:hover {
    transform: translateY(-2px);
  }
  
  /* Show all decorative shapes */
  .hero-shape {
    display: block;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Enhanced spacing on large screens */
  .contact-form {
    padding: 4rem;
  }
  
  .service-card,
  .pricing-card {
    padding: 3rem 2rem;
  }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-shape {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .card {
    border: 1px solid #000;
    box-shadow: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #008000;
    --accent-color: #ff0000;
    --dark-color: #000000;
    --light-color: #ffffff;
  }
  
  .card {
    border: 2px solid var(--dark-color);
  }
}

/* Focus Styles for Keyboard Navigation */
@media (any-hover: none) {
  .btn:hover,
  .card:hover {
    transform: none;
  }
}

/* Landscape Phone Specific */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 812px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: landscape) {
  
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 30px 0;
  }
}

/* Dark Mode Support (if system preference) */