/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .service-card img,
  .team-card img,
  .gallery-item img {
    height: 180px;
  }
  
  .price-value {
    font-size: 2rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .shape-1,
  .shape-2 {
    display: none;
  }
  
  .contact-form {
    padding: var(--spacing-md);
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card img,
  .team-card img {
    height: 190px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .navbar-nav .nav-link {
    margin: 0 var(--spacing-sm);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Mobile-specific adjustments for reduced motion */
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .price-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Disable autoplay and effects on mobile for Swiper */
@media (max-width: 767.98px) {
  .swiper-wrapper {
    transform: none !important;
  }
  
  .swiper-slide {
    transition: none !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .shape-1,
  .shape-2 {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
    color: black !important;
  }
  
  .section {
    padding: var(--spacing-sm) 0;
  }
  
  * {
    box-shadow: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #000000;
    --secondary-teal: #000000;
    --accent-orange: #000000;
    --neutral-slate: #000000;
    --warm-gold: #000000;
  }
  
  .btn-primary {
    border: 2px solid black;
  }
  
  .form-control {
    border: 2px solid black;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    overflow-x: hidden;
    background-color: #1a1a1a;
    color: #ffffff;
  }
  
  .about-section,
  .gallery-section,
  .team-section,
  .contact-section {
    background: #2a2a2a;
  }
  
  .services-section,
  .reviews-section,
  .faq-section,
  .blog-section {
    background: #1a1a1a;
  }
  
  .feature-card,
  .service-card,
  .team-card,
  .blog-card,
  .contact-form {
    background: #333333;
    color: #ffffff;
  }
  
  .price-card {
    background: #333333;
    color: #ffffff;
  }
  
  .review-card,
  .faq-item {
    background: #2a2a2a;
  }
  
  .form-control {
    background: #333333;
    color: #ffffff;
    border-color: #555555;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
  }
}

/* Container responsive adjustments */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Grid system responsive adjustments */
@media (max-width: 767.98px) {
  .row > [class*="col-"] {
    margin-bottom: var(--spacing-md);
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Navigation responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(46, 139, 87, 0.95);
    padding: var(--spacing-sm);
    border-radius: 10px;
    margin-top: var(--spacing-sm);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-xs) 0;
    margin: var(--spacing-xs) 0;
  }
} 