/* Responsive Design - Mobile First Approach */

/* Mobile Devices (up to 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Header adjustments */
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 70vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  #hero h1 {
    font-size: 1.75rem !important;
    margin-bottom: 1rem;
  }
  
  #hero p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  /* Service cards mobile */
  .service-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .service-card img {
    width: 60px;
    height: 60px;
  }
  
  /* Price cards mobile */
  .price-card {
    margin-bottom: 1.5rem;
    padding: 2rem 1.5rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  /* Team members mobile */
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Process steps mobile */
  .process-step .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
  
  /* Timeline mobile */
  .timeline-item {
    margin-left: 1rem;
    padding: 1.5rem;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* FAQ mobile */
  .faq-card {
    padding: 1.5rem;
  }
  
  /* Footer mobile */
  #footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  #footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Small Tablets (576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  #hero h1 {
    font-size: 2rem !important;
  }
  
  /* Service grid */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Price grid */
  .price-card {
    margin-bottom: 2rem;
  }
  
  /* Team grid */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Process grid */
  .process-step {
    margin-bottom: 2rem;
  }
}

/* Medium Tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section tablet */
  #hero {
    min-height: 85vh;
  }
  
  #hero h1 {
    font-size: 2.25rem !important;
  }
  
  /* Service cards tablet */
  .service-card {
    height: auto;
    min-height: 300px;
  }
  
  /* Price cards tablet */
  .price-card {
    height: auto;
    min-height: 400px;
  }
  
  /* Team members tablet */
  .team-member img {
    width: 130px;
    height: 130px;
  }
  
  /* Gallery tablet */
  .gallery-item img {
    height: 220px;
  }
}

/* Large Tablets/Small Laptops (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Container adjustments */
  .container {
    max-width: 960px;
  }
  
  /* Hero section */
  #hero h1 {
    font-size: 2.5rem !important;
  }
  
  /* Service cards */
  .service-card {
    min-height: 320px;
  }
  
  /* Price cards */
  .price-card {
    min-height: 450px;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 240px;
  }
}

/* Desktop (1200px and up) */
@media (min-width: 1200px) {
  /* Container adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Hero section desktop */
  #hero h1 {
    font-size: 3rem !important;
  }
  
  /* Service cards desktop */
  .service-card {
    min-height: 350px;
  }
  
  /* Price cards desktop */
  .price-card {
    min-height: 480px;
  }
  
  /* Gallery desktop */
  .gallery-item img {
    height: 250px;
  }
}

/* Extra Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Larger spacing for XL screens */
  section {
    padding: 5rem 0;
  }
  
  /* Hero adjustments */
  #hero h1 {
    font-size: 3.5rem !important;
  }
  
  /* Card adjustments */
  .service-card,
  .price-card,
  .contact-form,
  .review-card,
  .case-card,
  .career-item,
  .info-card {
    padding: 3rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  #hero h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
  }
  
  #hero p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and footer for print */
  #header,
  #footer,
  .navbar {
    display: none !important;
  }
  
  /* Adjust colors for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  /* Adjust spacing for print */
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  /* Font adjustments for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1 { font-size: 18pt !important; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
  h4, h5, h6 { font-size: 12pt; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #2d5d32;
    --primary-orange: #d4550a;
    --primary-brown: #5c2e0a;
    --primary-navy: #1a1a2e;
    --primary-cream: #ffffff;
  }
  
  .service-card,
  .price-card,
  .contact-form,
  .review-card,
  .case-card,
  .career-item,
  .info-card,
  .faq-card,
  .blog-card {
    border: 2px solid var(--primary-navy);
  }
}

/* Focus management for accessibility */
@media (any-hover: none) {
  /* Touch device specific styles */
  .service-card:hover,
  .price-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Specific breakpoint adjustments */
/* Bootstrap 5 breakpoints alignment */
@media (min-width: 576px) {
  .container-sm {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container-md {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container-lg {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
} 