/*
 * Responsive Design - Mobile First Approach
 * Conservative Breakpoints & Mobile Optimizations
 * No animations on mobile as per requirements
 */

/* ===== MOBILE BASE (DEFAULT) ===== */
@media (max-width: 767.98px) {
  /* Disable animations on mobile */
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 70vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Typography Mobile */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.375rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  /* Section Padding Mobile */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Cards Mobile */
  .service-card,
  .feature-card,
  .team-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  .price-card.featured {
    transform: none;
    margin-bottom: 1.5rem;
  }
  
  /* Contact Form Mobile */
  .contact-form {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }
  
  /* Button Mobile */
  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Footer Mobile */
  .footer-section {
    padding: 2rem 0 1rem 0;
    text-align: center;
  }
  
  /* Mobile Navigation */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ===== TABLET PORTRAIT ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* ===== TABLET LANDSCAPE & SMALL DESKTOP ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* ===== EXTRA LARGE SCREENS ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section-padding {
    padding: 7rem 0;
  }
}

/* ===== RESPONSIVE IMAGES ===== */
@media (max-width: 767.98px) {
  .team-photo {
    height: 200px;
  }
  
  .img-responsive {
    width: 100%;
    height: auto;
  }
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 575.98px) {
  .price-display {
    font-size: 2rem;
  }
  
  .feature-icon,
  .service-icon {
    font-size: 2rem;
  }
}

/* ===== NAVBAR RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .navbar-expand-lg .navbar-nav {
    margin-top: 1rem;
  }
  
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===== GRID RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767.98px) {
  .row > [class*="col-"] {
    margin-bottom: 1.5rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* ===== FORM RESPONSIVE ===== */
@media (max-width: 575.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* ===== HOVER EFFECTS DISABLED ON TOUCH ===== */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .gallery-item:hover,
  .btn-primary-custom:hover,
  .btn-outline-custom:hover {
    transform: none;
    box-shadow: inherit;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .hero-decorative,
  .navbar,
  .footer-section,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  * {
    box-shadow: none !important;
    color: black !important;
    background: white !important;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (max-width: 767.98px) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improved spacing for readability */
  p {
    line-height: 1.7;
  }
  
  .form-control {
    min-height: 44px;
  }
}

/* ===== ORIENTATION RESPONSIVE ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-photo,
  .img-responsive {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
} 

.hero-section h1 {
    padding-top: 125px;
}