/* ============================================================
   ORBIX LABS — Responsive Overrides
   Mobile-first breakpoints: 640 / 768 / 1024 / 1280
   ============================================================ */

/* ══════════════════════════════════════════════
   < 1024px — Tablet
   ══════════════════════════════════════════════ */
@media (max-width: 1023px) {

  /* Services grid → 1 column */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }

  /* Stats → 2x2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  /* Process steps → 2x2 */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }

  /* Diff section → single column */
  .diff-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Pricing grid → single column */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Service blocks → single column */
  .service-block__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .service-block__inner--reverse {
    direction: ltr;
  }

  /* Tech categories → single column */
  .tech-categories {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Featured case study → single column */
  .featured-case {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Case grid → single column */
  .case-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }

  /* Contact layout → single column */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Footer grid */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}


/* ══════════════════════════════════════════════
   < 768px — Mobile Landscape / Small Tablet
   ══════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Nav: hide desktop menu, show hamburger */
  .nav__menu {
    display: none;
  }

  /* Hero CTA → stack vertically */
  .hero__cta-group {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta-group .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Hero sub — smaller */
  .hero__sub {
    font-size: var(--text-base);
  }

  /* Steps → single column */
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }

  .step {
    text-align: left;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-4);
  }

  /* Stats → single column */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Form row → stack */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Contact form panel padding */
  .contact-form-panel {
    padding: var(--space-6);
  }

  /* Footer → single column */
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  /* CTA banner heading */
  .cta-banner__heading {
    font-size: var(--text-3xl);
  }

  /* Section header */
  .section-header {
    margin-bottom: var(--space-10);
  }
}


/* ══════════════════════════════════════════════
   < 640px — Small Mobile
   ══════════════════════════════════════════════ */
@media (max-width: 639px) {

  /* Reduce section padding */
  .section {
    padding: var(--space-12) 0;
  }

  /* Hero heading */
  .hero__heading {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  /* Compact hero heading */
  .hero--compact .hero__heading {
    font-size: var(--text-3xl);
  }

  /* Card padding */
  .card--service {
    padding: var(--space-6);
  }

  .card--pricing {
    padding: var(--space-8);
  }

  /* Stats 2 col */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .stat__number {
    font-size: var(--text-3xl);
  }

  /* Services grid → full single col, no max-width */
  .services-grid {
    max-width: none;
  }

  /* Diff section heading */
  .diff-content__heading {
    font-size: var(--text-3xl);
  }

  /* Service block title */
  .service-block__title {
    font-size: var(--text-2xl);
  }

  /* CTA banner */
  .cta-banner {
    padding: var(--space-12) 0;
  }

  .cta-banner__heading {
    font-size: var(--text-2xl);
  }

  .cta-banner__sub {
    font-size: var(--text-base);
  }

  /* Featured case study padding */
  .featured-case {
    padding: var(--space-8);
  }

  .featured-case__heading {
    font-size: var(--text-2xl);
  }

  /* Marquee section padding */
  .marquee-section {
    padding: var(--space-8) 0;
  }

  /* Footer brand tagline */
  .footer__tagline {
    max-width: none;
  }
}
