/* =============================================================================
   CONSOMEDIX GROUP — responsive.css
   Mobile-first base lives in style.css. These media queries recompose
   layouts for tablet and mobile (not just scale down).
   Breakpoints: 1280 / 1024 / 768 / 480 / 375
   ============================================================================= */

/* ---- Large desktop tightening ---------------------------------------------- */
@media (max-width: 1280px) {
  :root {
    --container: 1120px;
  }
  .nav__dropdown {
    width: 420px;
  }
}

/* ---- Small desktop / large tablet ------------------------------------------ */
@media (max-width: 1024px) {
  .hero__grid-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero__visual {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }
  .hero__float--tl {
    left: 0;
  }
  .hero__float--br {
    right: 0;
  }
  .hero__map {
    width: 90%;
    opacity: 0.3;
  }

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

  .approach {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach__step:nth-child(2)::before {
    display: none;
  }

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

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

  .job-detail {
    grid-template-columns: 1fr;
  }
  .job-detail__aside {
    position: static;
    order: -1;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---- Tablet: switch nav to mobile drawer ----------------------------------- */
@media (max-width: 1024px) {
  .nav__menu,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
}

/* ---- Tablet portrait ------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-h: 66px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
  }
  .stat:not(:last-child)::after {
    display: none;
  }
  .stat:nth-child(1)::after,
  .stat:nth-child(3)::after {
    content: '';
    display: block;
    position: absolute;
    right: -0.5rem;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: var(--border);
  }

  .split,
  .service-row,
  .service-row--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split--reverse .split__media,
  .service-row--reverse .service-row__media {
    order: 0;
  }
  .split__badge {
    right: 1rem;
    bottom: -1rem;
  }

  .cols-2,
  .cols-3 {
    grid-template-columns: 1fr;
  }

  .service-row__caps {
    grid-template-columns: 1fr;
  }

  .careers-filters {
    grid-template-columns: 1fr 1fr;
  }
  .careers-toolbar {
    position: static;
  }

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

  .job-card {
    grid-template-columns: 1fr;
  }
  .job-card__action {
    align-items: stretch;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .cta-band h2 {
    max-width: none;
  }
}

/* ---- Mobile ---------------------------------------------------------------- */
@media (max-width: 560px) {
  .capability-grid,
  .cols-4 {
    grid-template-columns: 1fr;
  }
  .approach {
    grid-template-columns: 1fr;
  }
  .approach__step::before {
    display: none;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .stat:nth-child(1)::after,
  .stat:nth-child(3)::after {
    display: none;
  }
  .stat {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .careers-filters {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn,
  .cta-band__actions .btn {
    width: 100%;
  }

  .hero__trust {
    gap: 1.25rem;
  }

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .toast-wrap {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }

  .modal__dialog {
    padding: 1.5rem;
  }
}

/* ---- Very small (320–375) -------------------------------------------------- */
@media (max-width: 375px) {
  .nav__logo img {
    height: 34px;
  }
  .hero__float {
    padding: 0.6rem 0.8rem;
  }
  .hero__float-icon {
    width: 34px;
    height: 34px;
  }
}

/* ---- Print ----------------------------------------------------------------- */
@media print {
  .site-header,
  .mobile-nav,
  .back-to-top,
  .scroll-progress,
  .cta-band,
  .site-footer {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
