/* Market-page overrides, loaded only on market pages (includes/MarketPages.php).
   Scoped by the body classes softopia-market-<code>. */

/* Saudi pages have no Typeform in the phone hero, so show the hero's booking
   button and trust line on phones and tablets too (the theme shows it from 1024px). */
@media (max-width: 1023px) {
  body.softopia-market-sa .wp-block-softopia-hero .hero__cta-wrapper {
    display: flex;
    margin-top: 32px;
    padding-inline: 16px;
    text-align: center;
  }

  body.softopia-market-sa .wp-block-softopia-hero .hero__cta-button {
    width: 100%;
    max-width: 360px;
  }
}

/* Links inside the hero trust line stay recognisable as links. */
body.softopia-market-sa .wp-block-softopia-hero .hero__cta-subtext a {
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

/* The theme's phone hero content is 350px wide; on 320–359px screens it spilled
   past both edges. Saudi pages fit it to the screen and step the headline down. */
@media (max-width: 359px) {
  body.softopia-market-sa .wp-block-softopia-hero .hero__content {
    width: 100%;
    max-width: 100%;
    padding-inline: 12px;
    box-sizing: border-box;
  }

  body.softopia-market-sa .wp-block-softopia-hero .hero__heading-line1,
  body.softopia-market-sa .wp-block-softopia-hero .hero__heading-line2 {
    font-size: 36px;
    line-height: 1.25;
  }

  body.softopia-market-sa .wp-block-softopia-hero .hero__subtitle {
    font-size: 16px;
  }
}
