/**
 * Below the 1280px Figma frame, the booking photo was stretched with
 * object-fit: fill inside a short box, which cropped the plumber away
 * and left a soft dark panel. Cover the same photograph instead.
 */
@media (max-width: 1279px) {
  .alex-landing .alex-final-cta,
  .alex-setup-site .alex-final-cta,
  .alex-final-cta__inner {
    min-height: 360px;
  }

  .alex-landing img.alex-final-cta__image,
  .alex-setup-site img.alex-final-cta__image {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: 70% center;
  }
}

/*
 * From 768px the call block is styled as a side-by-side row, but the
 * desktop row does not actually fit until 1280px. In between, the phone
 * stays centered and the headline is pinned to the bottom-right corner.
 * Stack them on purpose until the 1280px row has room.
 */
@media (min-width: 768px) and (max-width: 1279px) {
  .alex-call__inner {
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    gap: 8px;
  }

  .alex-call__phone-card {
    margin-bottom: 0;
  }

  .alex-call__challenge {
    align-self: center;
    width: 100%;
    max-width: none;
    margin: 12px 0 48px;
    text-align: center;
    white-space: normal;
  }

  .alex-call__challenge p {
    white-space: normal;
    text-align: center;
  }
}

/* Column flex stretches the hero button into a full-width bar. */
@media (min-width: 600px) and (max-width: 1279px) {
  .alex-hero__actions {
    align-items: flex-start;
  }

  .alex-hero .alex-btn--demo {
    width: auto;
    align-self: flex-start;
  }
}

/* 640px cards are the 1440 frame. Below that they widen the page. */
@media (min-width: 1280px) and (max-width: 1439px) {
  .alex-bcard {
    width: 100%;
    max-width: 100%;
  }
}
