/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero h1 {
  padding-top: 50px !important;
    font-size: var(--font-size-3xl);
  }
  
  .hero p {
    font-size: var(--font-size-base);
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .service-card {
    padding: var(--spacing-md);
  }
  
  .price-card {
    padding: var(--spacing-md);
  }
  
  .contact-form {
    padding: var(--spacing-md);
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar-brand {
    font-size: var(--font-size-lg) !important;
  }
  
  .shape-blob {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero h1 {
  padding-top: 50px !important;
    font-size: var(--font-size-3xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    padding: var(--spacing-lg);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero h1 {
  padding-top: 50px !important;
    font-size: var(--font-size-4xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-member img {
    width: 180px;
    height: 180px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero h1 {
  padding-top: 50px !important;
    font-size: var(--font-size-4xl);
  }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
  }
  
  .hero h1 {
  padding-top: 50px !important;
    font-size: var(--font-size-2xl);
  }
  
  .hero p {
    font-size: var(--font-size-sm);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .team-member img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .shape-blob {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    background: none !important;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .service-card,
  .price-card,
  .blog-card,
  .gallery-item img {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  
  .shape-blob {
    animation: none !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* This template doesn't implement dark mode as per requirements */
  /* But we can prepare variables for future implementation */
}

/* Container adjustments for different screen sizes */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Navigation adjustments for mobile */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    background: var(--primary-blue-dark);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
  }
}

/* Form adjustments for smaller screens */
@media (max-width: 767.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn {
    width: 100%;
    padding: var(--spacing-md);
  }
}

/* Service cards responsive grid */
@media (max-width: 575.98px) {
  .service-card {
    margin-bottom: var(--spacing-md);
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .service-card {
    margin-bottom: var(--spacing-lg);
  }
}

/* Price cards responsive adjustments */
@media (max-width: 767.98px) {
  .price-card.featured {
    transform: none;
    border: 2px solid var(--primary-blue);
  }
}

/* Team section responsive */
@media (max-width: 575.98px) {
  .team-member {
    margin-bottom: var(--spacing-md);
  }
}

/* Reviews section responsive */
@media (max-width: 767.98px) {
  .review-card {
    margin-bottom: var(--spacing-md);
  }
}

/* FAQ section responsive */
@media (max-width: 575.98px) {
  .faq-question {
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
  }
  
  .faq-answer {
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: var(--spacing-lg);
  }
} 