/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 100vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-decoration {
    display: none;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .service-card,
  .team-card,
  .price-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }
  
  /* No animations on mobile scroll */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .gallery-image:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  .service-card,
  .team-card {
    margin-bottom: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.05rem;
  }
  
  /* Reduced animations on mobile landscape */
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: translateY(-2px);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding: 4rem 0;
  }
  
  .section-padding {
    padding: 3.5rem 0;
  }
  
  .service-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  .hero-decoration {
    width: 150px;
    height: 150px;
  }
  
  .hero-decoration::before {
    width: 90px;
    height: 90px;
    top: -45px;
    left: -45px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-decoration {
    width: 175px;
    height: 175px;
  }
  
  .hero-decoration::before {
    width: 105px;
    height: 105px;
    top: -52px;
    left: -52px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section {
    padding: 5rem 0;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-decoration,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card {
    border: 1px solid #ccc !important;
    background: white !important;
    box-shadow: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .team-card,
  .contact-form,
  .review-card,
  .faq-card {
    border-width: 3px;
  }
  
  .btn-primary {
    border-width: 2px;
  }
}

/* Dark mode support */

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 3px solid var(--gold-dark);
    outline-offset: 2px;
  }
}

/* Specific adjustments for very small screens */
@media (max-width: 360px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-brand {
    font-size: 0.95rem;
  }
  
  .service-card,
  .contact-form {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 1rem 0.75rem;
  }
  
  .form-control {
    min-height: 44px;
  }
}

/* Grid adjustments for different screen sizes */
@media (max-width: 991.98px) {
  .col-lg-4,
  .col-lg-6 {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .col-md-6 {
    margin-bottom: 1.5rem;
  }
}

/* Footer responsive adjustments */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer .col-md-3,
  .footer .col-md-4 {
    margin-bottom: 1.5rem;
  }
} 

.hero-section h1 {
    padding-top: 200px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
