/* Mobile-first responsive design */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  :root {
    --h1-size: 1.75rem;
    --h2-size: 1.5rem;
    --h3-size: 1.25rem;
    --h4-size: 1.125rem;
    --navbar-brand-size: 1rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  /* Remove animations on mobile */
  .about-feature:hover,
  .service-card:hover,
  .blog-card:hover,
  .gallery-item img:hover {
    transform: none;
  }
  
  .price-card:hover {
    transform: none;
    border-color: transparent;
  }
  
  .price-card.featured {
    transform: none;
  }
  
  /* Section padding adjustments */
  section {
    padding: 2rem 0;
  }
  
  /* Card padding adjustments */
  .about-feature,
  .service-card,
  .feature-item,
  .price-card,
  .team-member,
  .review-card,
  .case-study-card,
  .process-step,
  .timeline-item,
  .career-item,
  .coreinfo-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  /* Team member images */
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Price amount adjustment */
  .price-amount {
    font-size: 2rem;
  }
  
  /* Step number adjustment */
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Gallery images */
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer adjustments */
  #footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer-content {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Navbar brand size */
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Feature icons */
  .about-feature i,
  .coreinfo-item i {
    font-size: 2rem;
  }
  
  .feature-item i {
    font-size: 2.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments for small tablets */
  #hero {
    min-height: 85vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  /* Remove hover animations on small devices */
  .about-feature:hover,
  .service-card:hover,
  .blog-card:hover {
    transform: translateY(-2px);
  }
  
  .gallery-item img:hover {
    transform: scale(1.02);
  }
  
  /* Section padding */
  section {
    padding: 3rem 0;
  }
  
  /* Team member images */
  .team-member img {
    width: 130px;
    height: 130px;
  }
  
  /* Price amount */
  .price-amount {
    font-size: 2.5rem;
  }
  
  /* Gallery images */
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography for tablets */
  :root {
    --h1-size: 2.25rem;
    --h2-size: 1.875rem;
    --h3-size: 1.5rem;
    --h4-size: 1.25rem;
    --navbar-brand-size: 1.125rem;
  }
  
  /* Hero section for tablets */
  #hero {
    min-height: 90vh;
  }
  
  /* Card grid adjustments */
  .about-feature,
  .service-card,
  .feature-item,
  .coreinfo-item {
    margin-bottom: 2rem;
  }
  
  /* Team member images */
  .team-member img {
    width: 140px;
    height: 140px;
  }
  
  /* Gallery images */
  .gallery-item img {
    height: 230px;
  }
  
  /* Price card featured scaling */
  .price-card.featured {
    transform: scale(1.03);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full hover effects for desktop */
  .about-feature:hover,
  .service-card:hover,
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .price-card:hover {
    transform: translateY(-10px);
  }
  
  .gallery-item img:hover {
    transform: scale(1.05);
  }
  
  /* Gallery images */
  .gallery-item img {
    height: 240px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Full effects for large screens */
  .gallery-item img {
    height: 250px;
  }
  
  /* Enhanced hover effects */
  .service-card:hover,
  .blog-card:hover {
    transform: translateY(-8px);
  }
  
  /* Container max-width adjustments */
  .container {
    max-width: 1140px;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 100px;
}
  
  section {
    padding: 1.5rem 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .about-feature,
  .service-card,
  .feature-item,
  .price-card,
  .team-member,
  .review-card,
  .case-study-card,
  .process-step,
  .timeline-item,
  .career-item,
  .coreinfo-item,
  .contact-form,
  .blog-card,
  .faq-card {
    border: 2px solid var(--dark-sage);
  }
  
  .btn-primary {
    border: 2px solid var(--dark-sage);
  }
}

/* Print styles */
@media print {
  #header,
  #footer,
  .breadcrumb-nav {
    display: none;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .about-feature,
  .service-card,
  .feature-item,
  .price-card,
  .team-member,
  .review-card,
  .case-study-card,
  .process-step,
  .timeline-item,
  .career-item,
  .coreinfo-item,
  .blog-card,
  .faq-card {
    box-shadow: none;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
  }
  
  body {
    color: #000;
    background: #fff;
    overflow-x: hidden;
}
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-terra);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-terra);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
} 