/* Mobile First Responsive Design */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 1.77rem;
  }
  
  .hero-decorative {
    display: none;
  }
  
  .services-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 1.96rem;
  }
  
  .services-card {
    margin-bottom: 1.65rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .services-card .card-img-top {
    height: 180px;
  }
  
  .gallery-item img {
    height: 230px;
  }
  
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  .testimonial-card {
    margin: 0.5rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    padding: 4rem 0;
  }
  
  .services-card .card-img-top {
    height: 200px;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .hero-decorative {
    width: 250px;
    height: 250px;
    right: -125px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    padding: 5rem 0;
  }
  
  .hero-decorative {
    width: 300px;
    height: 300px;
    right: -150px;
  }
  
  .services-card .card-img-top {
    height: 220px;
  }
  
  .gallery-item img {
    height: 280px;
  }
}

/* Height-based Media Queries */
@media (max-height: 600px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 80vh;
  }
}

@media (max-height: 500px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 70vh;
    padding: 1rem 0;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.60rem;
  }
  
  .hero-section p {
    font-size: 1.00rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .hero-decorative {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .services-card,
  .testimonial-card,
  .team-card,
  .contact-form {
    box-shadow: none;
    border: 1px solid #e6e6e6;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .services-card,
  .testimonial-card,
  .team-card,
  .contact-form {
    border: 2px solid var(--color-neutral-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--color-primary-dark);
  }
  
  .form-control {
    border-width: 2px;
  }
}


/* Flex Utilities for Responsive Layout */
.flex-responsive {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.flex-responsive > * {
  flex: 1;
  min-width: 250px;
}

@media (max-width: 767.98px) {
  .flex-responsive > * {
    min-width: 100%;
  }
}

/* Grid Utilities */
.grid-responsive {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 575.98px) {
  .grid-responsive {
    grid-template-columns: 1fr;
  }
}

/* Image Responsive Utilities */
.img-responsive {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.img-cover {
  object-fit: cover;
  width: 100%;
}

/* Text Responsive */
@media (max-width: 575.98px) {
  h1 { font-size: 1.86rem; }
  h2 { font-size: 1.51rem; }
  h3 { font-size: 1.32rem; }
  
  .section-title {
    font-size: 1.51rem;
  }
  
  .services-price {
    font-size: 1.34rem;
  }
}

/* Container Adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(27, 100, 227, 0.95);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.73rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 