/* Responsive CSS - Mobile First Approach */

/* Mobile Styles (default) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  :root {
    --font-size-h1: 1.8rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.2rem;
    --section-padding: 40px 0;
    --card-padding: 1.5rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Navigation mobile */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0;
  }
  
  /* Cards mobile */
  .card-body {
    padding: 1.5rem;
    overflow-x: hidden;
}
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process numbers mobile */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Timeline mobile */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Price value mobile */
  .price-value {
    font-size: 2rem;
  }
  
  /* Service price mobile */
  .service-price {
    font-size: 1.3rem;
  }
  
  /* Footer mobile */
  #footer {
    text-align: center;
  }
  
  #footer .col-md-3,
  #footer .col-md-6 {
    margin-bottom: 2rem;
  }
  
  /* Remove animations on mobile for better performance */
  @media (prefers-reduced-motion: no-preference) {
    .card:hover {
      transform: none;
    }
    
    .gallery-item:hover img {
      transform: none;
    }
    
    .btn-primary:hover {
      transform: none;
    }
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.6rem;
    --font-size-h3: 1.3rem;
    --section-padding: 60px 0;
  }
  
  .hero-decorative {
    width: 150px;
    height: 150px;
  }
  
  .hero-decorative:last-child {
    width: 120px;
    height: 120px;
  }
  
  .team-photo {
    width: 130px;
    height: 130px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --section-padding: 70px 0;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Full desktop styles are in main.css */
  
  /* Enhanced hover effects for desktop */
  @media (prefers-reduced-motion: no-preference) {
    .card:hover {
      transform: translateY(-8px);
    }
    
    .btn-primary:hover {
      transform: translateY(-3px);
    }
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  :root {
    --section-padding: 100px 0;
    --card-padding: 2.5rem;
  }
  
  .hero-decorative {
    width: 250px;
    height: 250px;
  }
  
  .hero-decorative:last-child {
    width: 180px;
    height: 180px;
  }
  
  .contact-form {
    padding: 4rem;
  }
}

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

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card {
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  }
  
  .card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  }
}

/* Print styles */
@media print {
  .hero-decorative,
  #header,
  #footer,
  .btn,
  .navbar {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  .card {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Dark mode support (if needed) */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative {
    animation: none;
  }
  
  .card,
  .gallery-item img,
  .btn-primary,
  .form-control {
    transition: none;
  }
}

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

/* Container adjustments for better spacing */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
} 