/**
 * Responsive styles for exaBase recruitment assistant
 * Contains media queries and responsive behavior
 */

/* ===== MOBILE FIRST APPROACH ===== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  /* Navbar responsive */
  .navbar {
    background-color: var(--color-bg-gray-light); /* Use darker gray #EAEBEF */
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .navbar-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }

  .navbar-logo-container {
    flex: none;
  }

  .navbar-logo-text {
    font-size: 1rem;
  }

  .navbar-buttons-container {
    display: flex;
  }

  /* Hero Section responsive */
  .hero-mobile {
    display: none;
  }

  .hero-desktop {
    display: flex;
  }

  /* Features Section responsive */
  .features-section {
    margin-top: 4rem;
  }

  .features-heading {
    font-size: 2rem;
    margin-bottom: 0;
  }

  /* Feature Cards responsive */
  .feature-card {
    flex-direction: row;
    margin-bottom: 40px;
  }

  .feature-text-container {
    width: 450px;
    order: unset;
  }

  .feature-card-reversed .feature-text-container {
    order: 2;
  }

  .feature-card-reversed .feature-image-container {
    order: 1;
  }

  .feature-title {
    font-size: 30px;
  }

  .feature-image-container {
    width: 640px;
    order: unset;
  }

  .feature-image-background {
    width: 100%;
    position: relative;
    left: auto;
    right: auto;
    margin-left: auto;
    margin-right: auto;
    height: 450px;
    border-radius: 20px;
  }

  .feature-image-wrapper {
    width: 485px;
    height: 290px;
  }

  /* Service Flow Section responsive */
  .service-flow-section {
    margin-top: 3.75rem;
    margin-bottom: 4rem;
  }

  .service-flow-text-desktop {
    display: block;
  }

  .service-flow-text-mobile {
    display: none;
  }

  /* Quote Section responsive */
  .quote-section {
    height: var(--quote-height-desktop);
  }

  .quote-mobile {
    display: none;
  }

  .quote-desktop {
    display: flex;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    padding: 0 2rem;
  }

  /* Hero heading responsive scaling */
  .hero-heading-quote-desktop {
    font-size: clamp(26px, 3vw, 30px);
    line-height: 1.5;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: var(--max-width-container);
    padding: 0 1rem;
  }

  /* Hero heading full size */
  .hero-heading-quote-desktop {
    font-size: 36px;
    line-height: 1.67;
  }
}

/* ===== BREAKPOINT-SPECIFIC UTILITIES ===== */

/* Hide on mobile, show on desktop */
@media (max-width: 767px) {
  .hidden-mobile {
    display: none !important;
  }
  
  .desktop-only {
    display: none !important;
  }
}

/* Hide on desktop, show on mobile */
@media (min-width: 768px) {
  .hidden-desktop {
    display: none !important;
  }
  
  .mobile-only {
    display: none !important;
  }
}

/* Responsive text sizes */
@media (max-width: 767px) {
  .text-responsive-lg {
    font-size: 1.5rem;
  }
  
  .text-responsive-xl {
    font-size: 1.75rem;
  }
  
  .text-responsive-2xl {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .text-responsive-lg {
    font-size: 1.75rem;
  }
  
  .text-responsive-xl {
    font-size: 2.25rem;
  }
  
  .text-responsive-2xl {
    font-size: 3rem;
  }
}

/* ===== COMPONENT-SPECIFIC RESPONSIVE STYLES ===== */

/* Service Flow Section */
@media (max-width: 767px) {
  .service-flow-grid {
    gap: 1rem;
  }
  
  .service-flow-box {
    height: 5rem;
    padding: 0.5rem 1rem;
  }
  
  .service-flow-text {
    font-size: 0.75rem;
  }
  
  .service-flow-loop {
    width: 10rem;
    height: 10rem;
  }
}

@media (min-width: 576px) {
  .service-flow-grid {
    gap: 1.5rem;
  }
  
  .service-flow-box {
    height: 6rem;
    padding: 1rem;
  }
  
  .service-flow-text {
    font-size: 0.875rem;
  }
  
  .service-flow-loop {
    width: 16rem;
    height: 16rem;
  }
}

@media (min-width: 768px) {
  .service-flow-grid {
    gap: 2rem;
  }
  
  .service-flow-box {
    height: 8rem;
    padding: 1rem 2.5rem;
  }
  
  .service-flow-text {
    font-size: 1rem;
  }
  
  .service-flow-loop {
    width: 21rem;
    height: 21rem;
  }
}

@media (min-width: 1024px) {
  .service-flow-grid {
    gap: 3rem;
  }
  
  .service-flow-box {
    height: 10rem;
    padding: 1rem 3rem;
  }
  
  .service-flow-text {
    font-size: 1.125rem;
  }
  
  .service-flow-loop {
    width: 27rem;
    height: 27rem;
  }
}

@media (min-width: 1200px) {
  .service-flow-box {
    height: 158px;
    padding: 1rem 4rem;
  }
  
  .service-flow-text {
    font-size: 22px;
  }
}

/* Quote Section */
@media (max-width: 767px) {
  .quote-section {
    height: var(--quote-height-mobile);
  }
}

@media (min-width: 768px) {
  .quote-section {
    height: var(--quote-height-desktop);
  }
}

/* Forms */
@media (max-width: 767px) {
  .form-container {
    padding: 1rem;
  }
  
  .form-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .form-title {
    font-size: 2rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .video-background,
  .action-buttons,
  .quote-mobile-buttons {
    display: none !important;
  }
  
  .hero-section,
  .feature-card,
  .service-flow-section {
    break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

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

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .video-element {
    animation: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .primary-button {
    border: 2px solid var(--color-text-white);
  }
  
  .secondary-button {
    border: 2px solid var(--color-text-black);
  }
  
  .feature-dot {
    border: 1px solid var(--color-text-black);
  }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles would go here */
  /* Currently not implemented as the design is light-themed */
}
