/* Responsive Design */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    padding: 0 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
  .hero-content {
  padding-top: 50px !important;
    padding-right: 2rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    margin-bottom: 1.73rem;
  }
  
  .team-card {
    margin-bottom: 1.64rem;
  }
  
  .review-card {
    margin-bottom: 1.64rem;
  }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.29rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575px) {
  .hero-title {
    font-size: 2.59rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1.20rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 0.94rem;
  }
  
  .section-subtitle {
    font-size: 1.12rem;
  }
  
  .section-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1.58rem;
  }
  
  .service-card {
    margin-bottom: 1.64rem;
  }
  
  .service-content {
    padding: 1.5rem;
  }
  
  .service-name {
    font-size: 1.13rem;
  }
  
  .service-price {
    font-size: 1.78rem;
  }
  
  .team-card {
    padding: 1.5rem;
    margin-bottom: 1.56rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }
  
  .team-name {
    font-size: 1.20rem;
  }
  
  .team-role {
    font-size: 1.05rem;
  }
  
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1.64rem;
  }
  
  .review-text {
    font-size: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .faq-question {
    padding: 1.25rem;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.99rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 1.66rem;
  }
  
  .btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.14rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.25rem;
    font-size: 1.01rem;
  }
  
  /* Hide decorative shapes on mobile for better performance */
  .shape-blob {
    display: none;
  }
  
  /* Reduce hero section height on mobile */
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 90vh;
    padding: 2rem 0;
  }
  
  /* Stack hero content vertically on mobile */
  .hero-image {
    margin-top: 2rem;
  }
  
  /* Adjust form controls for touch devices */
  .form-control {
    padding: 1.25rem;
    font-size: 1.13rem;
  }
  
  /* Improve touch targets */
  .faq-question {
    min-height: 60px;
  }
  
  .btn {
    min-height: 50px;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: 2.37rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark mode support (if user prefers dark) */
@media (prefers-color-scheme: dark) {
  /* Keep the design light as specified in requirements */
  /* This media query is here for future extensibility */
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .shape-blob,
  .btn {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: auto;
    background: white !important;
    color: black !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .feature-card {
    box-shadow: none !important;
    border: 1px solid #d5d5d5;
    page-break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .shape-blob {
    animation: none;
  }
  
  .fade-in,
  .slide-in-left,
  .slide-in-right {
    transition: none;
    opacity: 1;
    transform: none;
  }
  
  .service-card,
  .team-card,
  .feature-card,
  .gallery-item {
    transition: none;
  }
  
  .btn-primary {
    transition: none;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.faq-question:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Ensure proper spacing on very small screens */
@media (max-width: 375px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title {
    font-size: 2.40rem;
  }
  
  .section-title {
    font-size: 1.81rem;
  }
  
  .contact-form {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .service-content,
  .team-card,
  .feature-card,
  .review-card {
    padding: 1.25rem;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-title {
    font-size: 3.39rem;
  }
  
  .section-title {
    font-size: 2.57rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .service-card {
    margin-bottom: 1.96rem;
  }
  
  .contact-form {
    padding: 2.25rem;
  }
}

/* Large tablet and small desktop */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-title {
    font-size: 3.53rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-form {
    padding: 2.75rem;
  }
} 