/* Responsive CSS for Workplace Ergonomics Assessment Template */

/* Base mobile styles (up to 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --section-padding: 60px 0;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 90vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.90rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.19rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .decorative-shape {
    display: none;
  }
  
  .navbar-brand {
    font-size: 1.34rem !important;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .service-card-body,
  .team-card-body {
    padding: 1rem;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .price-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .process-item,
  .timeline-item {
    padding: 1.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .team-card img {
    height: 200px;
  }
  
  .blog-card img,
  .service-card img {
    height: 180px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --font-size-h1: 2.25rem;
    --font-size-h2: 1.875rem;
    --section-padding: 70px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.37rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .shape-1 {
    width: 200px;
    height: 200px;
  }
  
  .shape-2 {
    width: 100px;
    height: 100px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    padding: 3rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.75rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .service-card,
  .team-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  .gallery-item {
    margin-bottom: 1.68rem;
  }
  
  .blog-card {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    padding: 4rem 0;
  }
  
  .section-title {
    margin-bottom: 4rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    padding: 5rem 0;
  }
  
  .section-title {
    margin-bottom: 5rem;
  }
  
  .contact-form {
    padding: 4rem;
  }
  
  .feature-card {
    padding: 2.5rem;
  }
  
  .service-card-body,
  .team-card-body {
    padding: 2.5rem;
  }
  
  .review-card {
    padding: 2.5rem;
  }
  
  .price-card {
    padding: 2.5rem;
  }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.56rem;
  }
  
  .hero-desc {
    font-size: 1.36rem;
  }
  
  .shape-1 {
    width: 400px;
    height: 400px;
  }
  
  .shape-2 {
    width: 200px;
    height: 200px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.62rem;
  }
  
  .hero-desc {
    margin-bottom: 1rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .decorative-shape,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  .section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
  
  .card,
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .price-card {
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #dadada;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #104fc5;
    --secondary-color: #5000ce;
    --accent-color: #189600;
    --warning-color: #f9630c;
    --info-color: #00a7bd;
    --dark-gray: #000000;
    --medium-gray: #363233;
  }
  
  .card,
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .price-card,
  .faq-card,
  .blog-card,
  .career-card,
  .casestudy-card,
  .coreinfo-card {
    border: 2px solid var(--dark-gray);
  }
  
  .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--dark-gray);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before,
  .decorative-shape,
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .price-card,
  .faq-card,
  .blog-card,
  .career-card,
  .casestudy-card,
  .coreinfo-card,
  .gallery-item img,
  .btn-primary {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .price-card:hover,
  .blog-card:hover,
  .career-card:hover,
  .casestudy-card:hover,
  .coreinfo-card:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* Dark mode support (for future use) */
@media (prefers-color-scheme: dark) {
  /* Note: Dark theme disabled for accessibility as per requirements */
  /* This media query is prepared for future use if needed */
}

/* Focus styles for accessibility */
@media (any-hover: hover) {
  .navbar-nav .nav-link:focus,
  .btn:focus,
  .form-control:focus,
  .card:focus,
  .feature-card:focus,
  .service-card:focus,
  .team-card:focus,
  .review-card:focus,
  .price-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Specific component responsive adjustments */

/* Navbar collapse improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(0,0,0,0.9);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Grid adjustments for smaller screens */
@media (max-width: 767.98px) {
  .row > [class*="col-"] {
    margin-bottom: 2rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Form improvements on mobile */
@media (max-width: 575.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}

/* Image optimization for different screen sizes */
@media (max-width: 575.98px) {
  .gallery-item img,
  .service-card img,
  .team-card img,
  .blog-card img {
    height: 180px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-item img,
  .service-card img,
  .team-card img,
  .blog-card img {
    height: 200px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-item img,
  .service-card img,
  .team-card img,
  .blog-card img {
    height: 220px;
  }
}

@media (min-width: 992px) {
  .gallery-item img {
    height: 250px;
  }
  
  .service-card img,
  .blog-card img {
    height: 200px;
  }
  
  .team-card img {
    height: 250px;
  }
} 