/* Remote Corporate Training Hub - Responsive CSS */
/* Mobile-first responsive design */

/* Extra Small devices (portrait phones) */
@media (max-width: 575.98px) {
  body {
    font-size: 0.9rem;
    overflow-x: hidden;
}

  .navbar-brand {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  section {
    padding: 2rem 0;
  }

  #hero {
    min-height: 80vh;
    text-align: center;
  }

  .hero-shape-1,
  .hero-shape-2 {
    display: none;
  }

  .feature-card,
  .service-card,
  .pricing-card,
  .team-card,
  .review-card {
    margin-bottom: 1.5rem;
  }

  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }

  .process-step {
    margin-bottom: 2rem;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .timeline-item::before {
    width: 12px;
    height: 12px;
  }

  .timeline-item::after {
    left: 5px;
  }

  .gallery-image {
    height: 200px;
  }

  .blog-image {
    height: 180px;
  }

  .service-image {
    height: 180px;
  }

  /* No animations on mobile to respect performance */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .gallery-image:hover {
    transform: none;
  }

  /* Ensure proper spacing for mobile */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Small devices (landscape phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }

  #hero {
    min-height: 90vh;
  }

  .gallery-image {
    height: 220px;
  }

  .blog-image {
    height: 190px;
  }

  .service-image {
    height: 190px;
  }
}

/* Medium devices (tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
  section {
    padding: 3.5rem 0;
  }

  #hero {
    min-height: 95vh;
  }

  .hero-shape-1 {
    width: 150px;
    height: 150px;
  }

  .hero-shape-2 {
    width: 100px;
    height: 100px;
  }

  .contact-form {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  section {
    padding: 4rem 0;
  }

  .hero-shape-1 {
    width: 180px;
    height: 180px;
  }

  .hero-shape-2 {
    width: 130px;
    height: 130px;
  }
}

/* Extra large devices (large desktops) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  section {
    padding: 5rem 0;
  }

  .hero-shape-1 {
    width: 220px;
    height: 220px;
  }

  .hero-shape-2 {
    width: 170px;
    height: 170px;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  .feature-card,
  .service-card,
  .pricing-card,
  .team-card,
  .review-card,
  .case-study-card,
  .career-card,
  .info-card,
  .blog-card,
  .faq-card {
    border: 2px solid var(--color-neutral-dark);
  }

  .btn-primary {
    border: 2px solid var(--color-primary-dark);
  }
}

/* Print styles */
@media print {
  #header,
  #footer {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
  }

  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }

  .hero-shape-1,
  .hero-shape-2 {
    display: none;
  }

  a {
    text-decoration: underline;
  }

  .btn {
    display: none;
  }
}

/* Focus management for keyboard navigation */
@media (min-width: 768px) {
  .navbar-nav .nav-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }

  .btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }

  .form-control:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }

  .navbar {
    padding: 0.5rem 0;
  }
}

/* Dark mode support */

/* Specific mobile menu adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-neutral-light);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 