/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* NO ANIMATIONS ON MOBILE - Strict Rule */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Conservative Typography for Mobile */
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-h4: 1.125rem;
    --font-size-h5: 1rem;
    --font-size-h6: 0.875rem;
    --section-padding: 2.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero-section {
    min-height: auto;
    padding: 3rem 0;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .section-desc {
    max-width: 100%;
  }
  
  p {
    max-width: 100%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
    text-align: center;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* NO ANIMATIONS ON MOBILE - Strict Rule */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.625rem;
    --font-size-h3: 1.375rem;
    --section-padding: 3rem 0;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: 4rem 0;
  }
  
  .hero-section::before,
  .hero-section::after {
    opacity: 0.3;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    padding: 1.75rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    padding: 1.875rem;
  }
  
  .feature-card {
    padding: 1.75rem;
  }
}

/* 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) {
  .container {
    max-width: var(--container-max-width);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Custom Bootstrap Grid Adjustments - NO OVERRIDES */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Navbar Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: var(--box-shadow-sm);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Hero Section Responsive */
@media (max-width: 767.98px) {
  .hero-section .row {
    flex-direction: column-reverse;
  }
  
  .hero-image {
    margin-bottom: 2rem;
  }
}

/* Services Grid Responsive */
@media (max-width: 575.98px) {
  .services-section .row > .col-md-4 {
    margin-bottom: 1.5rem;
  }
  
  .services-section .row > .col-md-4:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .services-section .row > .col-md-4:nth-child(3n) {
    margin-bottom: 1.5rem;
  }
}

/* Team Section Responsive */
@media (max-width: 575.98px) {
  .team-section .row > .col-md-3 {
    margin-bottom: 1.5rem;
  }
  
  .team-section .row > .col-md-3:last-child {
    margin-bottom: 0;
  }
}

/* Reviews Section Responsive */
@media (max-width: 575.98px) {
  .reviews-section .row > .col-md-4 {
    margin-bottom: 1.5rem;
  }
  
  .reviews-section .row > .col-md-4:last-child {
    margin-bottom: 0;
  }
}

/* FAQ Section Responsive */
@media (max-width: 767.98px) {
  .faq-section .row > .col-md-6 {
    margin-bottom: 0;
  }
  
  .faq-card {
    margin-bottom: 1rem;
  }
}

/* Contact Section Responsive */
@media (max-width: 767.98px) {
  .contact-section .row {
    flex-direction: column-reverse;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
  .footer .row > div {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .footer .row > div:last-child {
    margin-bottom: 0;
  }
}

/* Form Elements Responsive */
@media (max-width: 575.98px) {
  .form-control {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
  }
  
  .btn-primary {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Price Cards Responsive */
@media (max-width: 991.98px) {
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .price-card.featured::before {
    top: -8px;
    font-size: 0.75rem;
    padding: 0.375rem 1.5rem;
  }
}

/* Utility Classes for Responsive */
@media (max-width: 575.98px) {
  .d-mobile-none {
    display: none !important;
  }
  
  .text-center-mobile {
    text-align: center !important;
  }
  
  .mb-mobile-3 {
    margin-bottom: 1rem !important;
  }
}

@media (min-width: 576px) {
  .d-mobile-block {
    display: none !important;
  }
}

/* Specific Mobile Optimizations */
@media (max-width: 575.98px) {
  /* Ensure touch targets are large enough */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improve readability on small screens */
  .card-body {
    padding: 1rem;
    overflow-x: hidden;
}
  
  /* Optimize spacing for mobile */
  .section {
    padding: 2.5rem 0;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  /* Mobile-specific layouts */
  .service-card .service-image {
    height: 150px;
  }
  
  .service-features {
    font-size: 0.85rem;
    padding: 0.75rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
}

/* Tablet Portrait Optimizations */
@media (min-width: 576px) and (max-width: 767.98px) {
  .service-card .service-image {
    height: 180px;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Tablet Landscape and Small Desktop */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .service-card .service-image {
    height: 200px;
  }
}

/* Print Styles */
@media print {
  * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .hero-section::before,
  .hero-section::after,
  .navbar,
  .footer {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .service-card,
  .price-card,
  .team-card {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
} 

.hero-content {
    padding-top: 125px;
}