/* ===============================================
   Home Office Ergonomic Assessment Template
   Responsive CSS File - 2025
   Mobile-First Responsive Design
   =============================================== */

/* ===============================================
   MOBILE FIRST (Default styles above 320px)
   =============================================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  

}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 var(--spacing-sm);
  }
  
  .hero-content {
    padding: var(--spacing-xxl) 0;
  }
  
  .section {
    padding: var(--spacing-xxl) 0;
  }
  

  
  .contact-form {
    padding: var(--spacing-xl);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 2.75rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 var(--spacing-md);
  }
  
  .hero-content {
    padding: var(--spacing-xxl) 0;
  }
  

  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .container {
    max-width: 1200px;
  }
  

  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* ===============================================
   MOBILE SPECIFIC STYLES
   =============================================== */

/* Ultra small devices (very small phones, less than 400px) */
@media (max-width: 399.98px) {
  .hero-title {
    font-size: 1.25rem !important;
    line-height: 1.1;
  }
  
  .section-title {
    font-size: 1.2rem !important;
  }
  
  .hero-subtitle,
  .section-subtitle {
    font-size: 0.8rem !important;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .service-card,
  .team-member,
  .review-card,
  .card {
    padding: var(--spacing-sm) !important;
    margin-bottom: var(--spacing-sm) !important;
  }
  
  .card-title {
    font-size: 1rem !important;
  }
  
  .card-text {
    font-size: 0.85rem !important;
  }
  
  .btn {
    padding: var(--spacing-xs) var(--spacing-sm) !important;
    font-size: 0.9rem !important;
  }
  
  .section {
    padding: var(--spacing-md) 0 !important;
  }
  
  .container {
    padding-left: var(--spacing-xs) !important;
    padding-right: var(--spacing-xs) !important;
  }
  
  .row {
    margin-left: calc(var(--spacing-xs) * -0.5) !important;
    margin-right: calc(var(--spacing-xs) * -0.5) !important;
  }
  
  .row > * {
    padding-left: calc(var(--spacing-xs) * 0.5) !important;
    padding-right: calc(var(--spacing-xs) * 0.5) !important;
  }
  
  .hero-content {
    padding: var(--spacing-sm) 0 !important;
  }
  
  .navbar {
    padding: var(--spacing-xs) 0 !important;
  }
  
  .footer {
    padding: var(--spacing-md) 0 var(--spacing-sm) !important;
  }
  
  /* Remove any potential overflow issues */
  * {
    max-width: 100% !important;
  }
  
  /* Ensure text wraps properly */
  h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word !important;
    hyphens: auto !important;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-nav .nav-link {
    margin: var(--spacing-xs) 0;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .hero-content {
    padding: var(--spacing-lg) 0;
    text-align: center;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .service-card {
    padding: var(--spacing-md);
  }
  
  .team-member {
    padding: var(--spacing-md);
  }
  
  .review-card {
    padding: var(--spacing-md);
  }
  
  .gallery-image-wrapper img {
    height: 200px;
  }
  
  .contact-form {
    padding: var(--spacing-md);
    margin: 0 var(--spacing-sm);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }
  

}

/* ===============================================
   TABLET SPECIFIC STYLES
   =============================================== */

/* Small tablets (576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {

  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {

}

/* ===============================================
   PRINT STYLES
   =============================================== */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .footer,
  .btn {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .section {
    page-break-inside: avoid;
    padding: var(--spacing-md) 0;
  }
  
  .service-card,
  .team-member,
  .review-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .gallery-image-wrapper {
    display: none;
  }
  
  .contact-form {
    display: none;
  }
}

/* ===============================================
   HIGH CONTRAST MODE
   =============================================== */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #000080;
    --primary-green: #006400;
    --primary-orange: #FF8C00;
    --primary-purple: #4B0082;
    --primary-teal: #008080;
    --medium-gray: #000000;
    --light-gray: #F0F0F0;
  }
  
  .service-card,
  .team-member,
  .review-card {
    border: 2px solid var(--dark-gray);
  }
  
  .btn {
    border: 2px solid var(--dark-gray);
  }
  
  .form-control {
    border: 2px solid var(--dark-gray);
  }
}

/* ===============================================
   LANDSCAPE ORIENTATION
   =============================================== */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: var(--spacing-md) 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-content {
    padding: var(--spacing-lg) 0;
  }
}

/* ===============================================
   DARK MODE (for future implementation)
   =============================================== */

/* ===============================================
   UTILITIES FOR RESPONSIVE DESIGN
   =============================================== */

/* Hide elements on specific screen sizes */
.d-sm-none { display: none !important; }
.d-md-none { display: none !important; }
.d-lg-none { display: none !important; }
.d-xl-none { display: none !important; }

@media (min-width: 576px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-inline { display: inline !important; }
  .d-sm-inline-block { display: inline-block !important; }
  .d-sm-flex { display: flex !important; }
}

@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-inline { display: inline !important; }
  .d-md-inline-block { display: inline-block !important; }
  .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-inline { display: inline !important; }
  .d-lg-inline-block { display: inline-block !important; }
  .d-lg-flex { display: flex !important; }
}

@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .d-xl-block { display: block !important; }
  .d-xl-inline { display: inline !important; }
  .d-xl-inline-block { display: inline-block !important; }
  .d-xl-flex { display: flex !important; }
}

/* Text alignment responsive utilities */
@media (max-width: 575.98px) {
  .text-sm-center { text-align: center !important; }
  .text-sm-left { text-align: left !important; }
  .text-sm-right { text-align: right !important; }
}

@media (min-width: 576px) {
  .text-sm-center { text-align: center !important; }
  .text-sm-left { text-align: left !important; }
  .text-sm-right { text-align: right !important; }
}

@media (min-width: 768px) {
  .text-md-center { text-align: center !important; }
  .text-md-left { text-align: left !important; }
  .text-md-right { text-align: right !important; }
}

@media (min-width: 992px) {
  .text-lg-center { text-align: center !important; }
  .text-lg-left { text-align: left !important; }
  .text-lg-right { text-align: right !important; }
}

/* Spacing responsive utilities */
@media (max-width: 575.98px) {
  .p-sm-1 { padding: var(--spacing-xs) !important; }
  .p-sm-2 { padding: var(--spacing-sm) !important; }
  .p-sm-3 { padding: var(--spacing-md) !important; }
  .m-sm-1 { margin: var(--spacing-xs) !important; }
  .m-sm-2 { margin: var(--spacing-sm) !important; }
  .m-sm-3 { margin: var(--spacing-md) !important; }
}

/* ===============================================
   ACCESSIBILITY IMPROVEMENTS
   =============================================== */

/* Focus improvements */
@media (min-width: 768px) {
  .navbar-nav .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* Reduced motion for animations */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .team-member,
  .review-card,
  .gallery-item {
    transition: none !important;
  }
  
  .service-card:hover,
  .team-member:hover,
  .gallery-item:hover {
    transform: none !important;
  }
}

/* ===============================================
   CONTAINER RESPONSIVE BEHAVIOR
   =============================================== */
.container {
  width: 100%;
  padding-right: var(--spacing-sm);
  padding-left: var(--spacing-sm);
  margin-right: auto;
  margin-left: auto;
}

@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;
  }
}

/* ===============================================
   SCROLLBAR CUSTOMIZATION
   =============================================== */
@media (min-width: 768px) {
  /* Webkit browsers */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--light-gray);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
  }
}

/* ===============================================
   RESPONSIVE IMAGES
   =============================================== */
img {
  max-width: 100%;
  height: auto;
}

.img-responsive {
  max-width: 100%;
  height: auto;
}

/* ===============================================
   MOBILE NAVIGATION IMPROVEMENTS
   =============================================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* ===============================================
   MOBILE RESPONSIVE STYLES FOR NEW COMPONENTS
   =============================================== */

/* Timeline responsive styles */
@media (max-width: 767.98px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: calc(100% - 80px);
    margin-left: 60px;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
  }
  
  .timeline-item::before {
    left: -40px;
  }
  
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: -40px;
    right: auto;
  }
}

/* Price cards responsive */
@media (max-width: 991.98px) {
  .price-card.featured {
    transform: none;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
  
  .price-card.featured:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 575.98px) {
  .price-amount {
    font-size: 2.5rem;
  }
  
  .price-card {
    padding: var(--spacing-md);
  }
}

/* Process steps responsive */
@media (max-width: 991.98px) {
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .process-step {
    padding: var(--spacing-md);
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Card grids responsive */
@media (max-width: 575.98px) {
  .optimization-card,
  .equipment-card,
  .benefit-card,
  .metric-card,
  .consulting-card,
  .method-card,
  .technology-card,
  .training-card,
  .industry-card,
  .career-card,
  .case-study-card,
  .info-card,
  .blog-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
}

/* Timeline mobile optimization */
@media (max-width: 575.98px) {
  .timeline {
    padding: var(--spacing-md) 0;
  }
  
  .timeline-item {
    width: calc(100% - 60px);
    margin-left: 40px;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item::before {
    left: -30px;
    width: 15px;
    height: 15px;
  }
  
  .timeline-year {
    font-size: 0.75rem;
    padding: 2px 6px;
  }
} 