/* ==========================================================================
   HOURLYJOBS — PRODUCTION RESPONSIVE STYLESHEET (responsive.css)
   Powered by ORODANA | hourlyjobs.orodana.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MOBILE BOTTOM ACTION BAR (STICKY DUAL CTAS)
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(7, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-highlight);
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  z-index: 100;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-bottom-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.mobile-bottom-actions .btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.4rem;
  font-size: clamp(0.72rem, 3.15vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. MOBILE SLIDE-OUT DRAWER NAVIGATION
   -------------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #090d18;
  border-left: 1px solid var(--border-highlight);
  padding: 1.75rem 1.5rem;
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.mobile-drawer.active {
  display: flex;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-nav-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  padding: 0.4rem 0;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
}

.drawer-backdrop.active {
  display: block;
}

/* --------------------------------------------------------------------------
   3. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Laptop & Tablet Landscape (max-width: 1200px) */
@media (max-width: 1200px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-controls-grid {
    grid-template-columns: 1fr 1fr;
  }

  .employer-conversion-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablet Portrait (max-width: 992px) */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .how-dual-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .final-cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --section-pad-y: 3.5rem;
    --card-pad: 1.35rem;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-bar {
    display: block;
  }

  .top-bar-right {
    display: none;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-split-grid {
    grid-template-columns: 1fr;
  }

  .switchboard-card {
    padding: 1.5rem 1.15rem;
  }

  .search-controls-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .time-availability-picker {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .radar-grid {
    grid-template-columns: 1fr;
  }

  .personas-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .final-cta-grid {
    grid-template-columns: 1fr;
  }

  .employer-conversion-card {
    padding: 1.75rem 1.25rem;
  }

  .employer-spec-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hero-title {
    font-size: 1.95rem;
  }

  .segmented-switch {
    width: 100%;
    flex-direction: column;
  }

  .switch-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
  }

  .hero-panel {
    padding: 1.75rem 1.15rem;
    min-height: auto;
  }

  .modal-container {
    max-width: 95vw;
  }

  .modal-body {
    padding: 1.25rem 1rem;
  }

  .modal-header {
    padding: 1.25rem 1rem 0.85rem 1rem;
  }
}


/* Mobile overflow prevention */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: border-box;
}

/* Lifecycle row responsive scroll container */
.lifecycle-steps-row {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Modals mobile full-fit */
.modal-overlay {
  padding: 12px !important;
}

.modal-container {
  width: min(94vw, 560px) !important;
  max-width: 94vw !important;
  margin: auto !important;
  max-height: 90vh !important;
}

@media (max-width: 480px) {
  .site-header .container {
    padding: 0 0.75rem !important;
  }
  .btn-universal-lang {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.75rem !important;
  }
  .header-actions {
    gap: 0.35rem !important;
  }
  .card-grid, .radar-grid, .search-controls-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --------------------------------------------------------------------------
   4. MOBILE VIEWPORT LOCK
   Keeps the pre-launch popup and the bottom actions inside every phone width
   (320, 360, 390) without clipping the second action off-screen.
   -------------------------------------------------------------------------- */
html {
  background: #070a12;
  max-width: 100%;
  overflow-x: clip;
}

/* Glow orbs bleed 100px past the viewport and were widening the page,
   which pushed the fixed popup off-center and the second bottom action off-screen. */
body::before,
body::after {
  position: fixed;
}

body::before {
  left: 0;
  transform: translate3d(-100px, 0, 0);
}

body::after {
  right: 0;
  transform: translate3d(100px, 0, 0);
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.site-header,
.site-header .container,
main,
.site-footer,
.container,
.hero-section,
.hero-split-grid,
.hero-panel,
.footer-top-strip,
.lifecycle-steps-row {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.lifecycle-steps-row {
  contain: inline-size;
  overscroll-behavior-x: contain;
}

#orodana-prelaunch-modal-container {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transform: none !important;
}

#orodana-prelaunch-modal-card {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  margin: 0 auto !important;
  transform: none !important;
  width: min(92vw, 335px) !important;
  max-width: min(92vw, 335px) !important;
  flex: 0 1 auto;
}

@media (max-width: 768px) {
  .site-header .container {
    gap: 0.45rem;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.45rem;
  }

  .logo-title {
    min-width: 0;
  }

  .header-actions {
    flex: 0 1 auto;
    min-width: 0;
    gap: 0.3rem;
    max-width: 62%;
  }

  .btn-universal-lang,
  .btn-header-signin,
  .mobile-menu-btn {
    flex-shrink: 0;
  }

  .mobile-menu-btn {
    width: 44px;
    height: 44px;
  }

  .btn-header-signin {
    min-height: 44px;
    padding: 0.4rem 0.65rem;
  }

  .hero-header,
  .hero-title,
  .hero-description {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-title {
    font-size: clamp(1.65rem, 8.2vw, 2.35rem);
    line-height: 1.12;
    text-wrap: balance;
  }

  .hero-panel-actions .btn,
  .final-cta-card .btn,
  .drawer-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    white-space: normal;
  }

  .footer-top-strip {
    align-items: stretch;
  }

  .footer-strip-left {
    min-width: 0;
    flex: 1 1 100%;
  }

  .footer-strip-right {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
  }

  .footer-strip-right .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 0.45rem;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .trust-strip,
  .trust-item,
  .search-controls-grid,
  .personas-grid,
  .categories-grid,
  .pillars-grid,
  .final-cta-grid,
  .footer-grid {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .lang-name-text,
  .lang-dropdown-arrow {
    display: none;
  }

  .btn-universal-lang {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .header-actions {
    max-width: none;
  }

  .btn-header-signin {
    padding-inline: 0.55rem;
    font-size: 0.75rem;
  }
}
