/* Mobile First Responsive Design */

/* Extra Large devices (large laptops and desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-max-width);
  }
  
  #hero h1 {
    font-size: 3rem;
  }
  
  .hero-image img {
    max-width: 80%;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .service-card .card-body {
    padding: 1.5rem;
    overflow-x: hidden;
}
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  #hero .row {
    flex-direction: column-reverse;
  }
  
  #hero .hero-image {
    margin-bottom: 2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .process-step {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  .container {
    max-width: 540px;
    padding: 0 15px;
  }
  
  /* Disable animations on mobile */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--primary-green);
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  /* Hero section */
  #hero {
    min-height: 70vh;
    padding: 40px 0;
  }
  
  #hero::before {
    display: none;
  }
  
  .hero-image img {
    max-width: 90%;
    margin-bottom: 1.5rem;
  }
  
  /* Sections */
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Cards and components */
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  .feature-card,
  .case-card,
  .info-card {
    padding: 1.5rem;
  }
  
  .service-card .card-body,
  .team-card .card-body,
  .blog-card .card-body {
    padding: 1.5rem;
    overflow-x: hidden;
}
  
  /* Price cards */
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Process steps */
  .process-step {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    top: -12px;
    font-size: 0.9rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer */
  #footer {
    padding: 40px 0 20px;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  /* Form elements */
  .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    margin-top: 1rem;
  }
  
  /* FAQ cards */
  .faq-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  /* Team cards */
  .team-card img {
    height: 200px;
  }
  
  /* Service and blog images */
  .service-card img,
  .blog-card img {
    height: 150px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    max-width: 100%;
    padding: 0 10px;
  }
  
  /* Even more conservative typography */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  /* Hero */
  #hero {
    min-height: 60vh;
    padding: 30px 0;
  }
  
  /* Sections */
  .section {
    padding: 30px 0;
  }
  
  /* Cards */
  .feature-card,
  .case-card,
  .info-card,
  .contact-form,
  .contact-info {
    padding: 1rem;
  }
  
  .service-card .card-body,
  .team-card .card-body,
  .blog-card .card-body {
    padding: 1rem;
  }
  
  .price-card {
    padding: 1.5rem 1rem;
  }
  
  .price-value {
    font-size: 2rem;
  }
  
  /* Process */
  .process-step {
    padding: 1rem;
  }
  
  .step-number {
    width: 30px;
    height: 30px;
    top: -10px;
    font-size: 0.8rem;
  }
  
  /* Images */
  .gallery-item img,
  .team-card img {
    height: 180px;
  }
  
  .service-card img,
  .blog-card img {
    height: 120px;
  }
  
  /* Footer */
  #footer {
    padding: 30px 0 15px;
  }
  
  #site-copyright {
    padding: 0.8rem 0;
    font-size: 0.9rem;
  }
  
  /* Feature icons */
  .feature-card .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .info-card i {
    font-size: 1.5rem;
  }
  
  .feature-item i {
    font-size: 2rem;
  }
}

/* Ultra small devices (very small phones, less than 375px) */
@media (max-width: 374.98px) {
  .container {
    padding: 0 8px;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .section {
    padding: 25px 0;
  }
  
  .feature-card,
  .case-card,
  .info-card,
  .contact-form,
  .contact-info,
  .process-step {
    padding: 0.8rem;
  }
  
  .price-card {
    padding: 1.2rem 0.8rem;
  }
  
  .service-card .card-body,
  .team-card .card-body,
  .blog-card .card-body {
    padding: 0.8rem;
  }
}

/* Print styles */
@media print {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    box-shadow: none !important;
  }
  
  #header,
  #footer {
    display: none;
  }
  
  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  .card {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .blog-card,
  .price-card,
  .faq-card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
} 