/* =========================================================================
   New York Landing Page — dedicated responsive stylesheet
   Cloned from the (already-fixed) california-responsive.css: every .ca-
   class renamed to .ny-. Deliberately does NOT reintroduce the old
   repeat(3, ...) column-collapse at =1280px that used to break the
   Our-Services/Industries 6-card rows into two rows well before it was
   actually necessary — six 170px cards + gap only need ~1120-1230px, which
   this width still has 100px+ of headroom for. The shared grid's
   minmax(0, 170px)/minmax(0, 1fr) columns (style.css / css/landing/style.css)
   let both grids compress the last few px on their own instead, so the row
   stays intact through the whole desktop range and only genuinely wraps at
   the =900px tablet breakpoint below.

   Breakpoints mirror California's own responsive file so all three pages
   behave identically at every width — tested at: 1920, 1600, 1440, 1366,
   1280, 1024, 992, 820, 768, 576, 480, 390, 375, 360, 320.
   ========================================================================= */

/* ===== ≤1400px — laptop: services grid needs to shrink before the
   6-card row runs out of room inside the shared 1400px-capped inner
   container. ===== */
@media (max-width: 1400px) {
  .ny-landing .landing-services-inner {
    padding: 26px 32px;
  }

  .ny-landing .landing-services-grid {
    gap: 20px;
  }
}

/* ===== ≤1280px — covers 1280/1200/1024 laptop widths, plus the
   Trusted-By logo row (gap:60px across 6 logos stops fitting once the
   container drops below ~1050px, e.g. iPad Pro portrait/iPad Air/iPad
   Mini). ===== */
@media (max-width: 1280px) {
  .ny-landing .landing-services-inner {
    padding: 26px 24px;
  }

  .ny-why-container {
    gap: 32px;
  }

  .ny-trusted .landing-trusted-logos {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 24px;
    column-gap: 40px;
  }
}

/* ===== ≤1100px — process steps wrap before they get too cramped ===== */
@media (max-width: 1100px) {
  .ny-process-grid {
    flex-wrap: wrap;
    row-gap: 32px;
  }
}

/* ===== ≤1024px — covers 1024/992 tablet widths. ===== */
@media (max-width: 1024px) {
  .landing-page.ny-landing .ny-why-section {
    padding: 72px 32px;
  }

  .ny-why-container {
    gap: 24px;
  }

  .ny-why-stats {
    flex: 0 0 110px;
  }

  .ny-why-stat {
    width: 110px;
  }
}

/* ===== ≤900px — tablet: stack the hero CTAs to static flow, stack the
   partner-intro icon, and the two-column Why-Us section. ===== */
@media (max-width: 900px) {
  .landing-page.ny-landing .ny-hero {
    padding-top: 110px;
  }

  .ny-hero-banner {
    display: flex;
    flex-direction: column;
  }

  .ny-hero-ctas {
    position: static;
    justify-content: center;
    margin-top: 20px;
  }

  .landing-page.ny-landing .ny-partner-intro {
    padding: 56px 24px;
  }

  .ny-partner-intro-body {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .ny-landing .landing-services-inner {
    padding: 26px 24px;
  }

  .ny-landing .landing-services-grid {
    grid-template-columns: repeat(2, minmax(0, 170px));
  }

  .landing-page.ny-landing .ny-why-section {
    padding: 56px 24px;
  }

  .ny-why-container {
    flex-direction: column;
  }

  .ny-why-left {
    flex-direction: column;
    width: 100%;
  }

  .ny-why-illustration {
    flex: none;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  .ny-why-illustration img {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  .ny-why-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 0;
    left: 0;
  }

  .ny-why-right {
    margin-top: 0;
    text-align: center;
  }

  .ny-why-feature {
    text-align: left;
  }

  .ny-industries-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .ny-outsource-grid {
    flex-direction: column;
  }

  .ny-outsource-list {
    max-width: 100%;
    text-align: left;
  }

  .ny-process-step {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== ≤768px — tablet portrait: a bit more breathing room. ===== */
@media (max-width: 768px) {
  .landing-page.ny-landing .ny-why-section {
    padding: 48px 20px;
  }

  .ny-outsource-visual {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ===== ≤640px — mobile ===== */
@media (max-width: 640px) {
  .ny-hero-ctas {
    width: 100%;
  }

  .ny-hero-ctas a {
    min-height: 44px;
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    font-size: 13px;
  }

  .ny-landing .landing-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .ny-industries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ny-outsource-grid {
    gap: 32px;
  }

  .ny-process-grid {
    gap: 24px;
  }
}

/* ===== ≤480px — small phones: single-column grids everywhere,
   tighter section padding, smaller display type. ===== */
@media (max-width: 480px) {
  .landing-page.ny-landing .ny-hero {
    padding-top: 90px;
  }

  .ny-hero-ctas {
    flex-direction: column;
  }

  .ny-landing .landing-services-inner {
    padding: 24px 16px;
  }

  .ny-landing .landing-services-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 220px;
  }

  .ny-trusted .landing-trusted-logos {
    gap: 24px;
  }

  .ny-trusted .landing-trusted-logos img {
    max-width: 110px;
  }

  .landing-page.ny-landing .ny-partner-intro {
    padding: 40px 16px;
  }

  .ny-partner-intro-icon {
    width: 72px;
  }

  .ny-partner-intro-icon img {
    width: 72px;
  }

  .landing-page.ny-landing .ny-why-section {
    padding: 40px 16px;
  }

  .ny-why-stats {
    gap: 12px;
  }

  .ny-why-stat {
    width: 100%;
    max-width: 140px;
  }

  .ny-industries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ny-industry-card {
    padding: 14px 8px;
  }

  .landing-page.ny-landing .ny-outsource {
    padding: 0 16px;
  }

  .ny-outsource-list li {
    font-size: 17px;
  }

  .landing-page.ny-landing .ny-process {
    padding: 0 16px;
  }
}

/* ===== ≤375px — covers 375/360/320: final tightening so nothing
   clips or forces horizontal scroll on the smallest phones. ===== */
@media (max-width: 375px) {
  .ny-why-label {
    font-size: 16px;
  }

  .ny-why-heading {
    font-size: 26px;
  }

  .ny-process-step {
    max-width: 100%;
  }

  .ny-process-step p {
    max-width: 100%;
  }
}
