/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.6rem; }
  h4 { font-size: 1.4rem; }
  h5 { font-size: 1.2rem; }
  h6 { font-size: 1rem; }
  
  .hero-section {
    min-height: 90vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-shape-1, .hero-shape-2 {
    display: none;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .service-card,
  .about-feature,
  .feature-item,
  .price-card,
  .team-member,
  .coreinfo-item {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  /* Disable animations on mobile for better performance */
  .service-card:hover,
  .about-feature:hover,
  .feature-item:hover,
  .team-member:hover,
  .coreinfo-item:hover {
    transform: none;
  }
  
  /* Stack items vertically on mobile */
  .row > [class*="col-"] {
    margin-bottom: 2rem;
  }
  
  /* Adjust swiper for mobile */
  .swiper-button-next, .swiper-button-prev {
    display: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .hero-shape-1 {
    width: 200px;
    height: 200px;
    top: 15%;
    right: 5%;
  }
  
  .hero-shape-2 {
    width: 150px;
    height: 150px;
    bottom: 25%;
    left: 5%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .hero-shape-2 {
    width: 180px;
    height: 180px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ultra wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .gallery-image,
  .blog-image,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  header,
  footer,
  .breadcrumb-section {
    display: none;
  }
  
  .section {
    break-inside: avoid;
    padding: 2rem 0;
  }
  
  h1, h2, h3 {
    break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-shape-1,
  .hero-shape-2 {
    animation: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* Optionally add dark mode styles */
  /* This can be implemented if needed */
}

/* Focus styles for keyboard navigation */
.navbar-nav .nav-link:focus,
.btn-submit:focus,
.form-control:focus {
  outline: 2px solid var(--primary-sage);
  outline-offset: 2px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .about-feature:hover,
  .feature-item:hover,
  .team-member:hover,
  .coreinfo-item:hover,
  .gallery-item:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
  
  .btn-submit:hover {
    transform: none;
  }
  
  /* Increase touch targets */
  .navbar-nav .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .faq-question {
    min-height: 60px;
    display: flex;
    align-items: center;
  }
}

/* Container adjustments for different screen sizes */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Team section responsive adjustments */
@media (max-width: 767.98px) {
  .team-photo {
    width: 120px;
    height: 120px;
  }
}

/* FAQ responsive adjustments */
@media (max-width: 575.98px) {
  .faq-question {
    font-size: 1rem;
    padding: 1rem;
  }
  
  .faq-answer {
    padding: 1rem;
  }
}

/* Blog section responsive */
@media (max-width: 767.98px) {
  .blog-content {
    padding: 1.5rem;
  }
}

/* Service cards responsive grid */
@media (max-width: 575.98px) {
  .services-container .row .col-lg-4 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .services-container .row .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
    text-align: center;
  }
}

/* Form responsive */
@media (max-width: 575.98px) {
  .form-control {
    padding: 0.75rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-submit {
    width: 100%;
    padding: 1rem;
  }
} 