/* =========================================================================
   California Landing Page — dedicated responsive stylesheet
   Independent from css/landing/mobile.css (Australia/city pages) and from
   the USA page's own usa-responsive.css — neither is linked or copied
   here. Every rule below is scoped to markup that only exists on this
   page (.ca-landing / ca-* classes), so nothing here can affect the USA,
   Australia, or city pages even though a few selectors target class names
   those pages also use (e.g. .landing-services-grid).

   Breakpoints mirror the USA page's own responsive file so the two 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) {
  .ca-landing .landing-services-inner {
    padding: 26px 32px;
  }

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

/* ===== ≤1280px — covers 1280/1200/1024 laptop widths, plus the
   Trusted-By logo row (same overflow risk as the USA page: gap:60px
   across 6 logos stops fitting once the container drops below
   ~1050px, e.g. iPad Pro portrait/iPad Air/iPad Mini).

   The services/industries 6-card rows are NOT collapsed here (removed
   a previous repeat(3, ...) override): six 170px cards + gap need only
   ~1120-1230px, which the 24-32px page padding at this width still
   leaves ~100px+ of headroom for down to 1280px — the shared grid's
   minmax(0, 170px) columns (style.css) let it compress those few
   remaining px on its own instead of needing an explicit column-count
   drop, so the row stays intact through the whole desktop range and
   only genuinely wraps at the ≤900px tablet breakpoint below. ===== */
@media (max-width: 1280px) {
  .ca-landing .landing-services-inner {
    padding: 26px 24px;
  }

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

  .ca-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) {
  .ca-process-grid {
    flex-wrap: wrap;
    row-gap: 32px;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  /* left:0 cancels the desktop-only overlap offset (see style.css) — once
     stacked, the cards sit centered below the image, not shifted left. */
  .ca-why-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 0;
    left: 0;
  }

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

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

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

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

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

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

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

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

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

  /* min-height:44px keeps the CTA buttons at a real touch target size */
  .ca-hero-ctas a {
    min-height: 44px;
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    font-size: 13px;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .landing-page.ca-landing .ca-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) {
  .ca-why-label {
    font-size: 16px;
  }

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

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

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