/*
 * Upstream: mobile layout (loaded with media="(max-width: 767px)").
 * Goal: every page's content sits 20px from the screen edge, sections breathe evenly,
 * and nothing looks cramped or lopsided on a phone.
 */

/* ---- 1. One side gutter everywhere (20px) ------------------------------------------- */

/* Elementor pages: top-level columns were 10px from the edge. */
.elementor-top-section > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding-left: 20px !important;
  padding-right: 20px !important;
}
/* Home hero cards: the inner columns added another 15px; line the cards up with the text. */
.up-hero .elementor-inner-section .elementor-column > .elementor-widget-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Theme pages (listings, suburb pages, blog posts) and the header/footer: 15px -> 20px. */
.site-header .container,
.sydney-mobile-header .container,
.mobile-header .container,
body:not(.elementor-page) .page-wrap > .container,
.site-footer .container,
.footer-widgets .container {
  padding-left: 20px;
  padding-right: 20px;
}

/* ---- 2. Vertical rhythm ------------------------------------------------------------- */

/* Inner pages: large empty band under the header. */
body:not(.home) .page-wrap {
  padding-top: 24px !important;
}
body:not(.home) .elementor .elementor-top-section:first-child:not(.up-hero) {
  padding-top: 24px !important;
}
/* Home: 60px + 60px between sections reads as a hole on a phone. */
.home .elementor-element-8379181,
.home .elementor-element-43f7de6 {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
.home .elementor-element-95ba4bb,
.home .elementor-element-7b20b93 {
  padding-top: 40px !important;
}
/* Same treatment on the other Elementor pages' standard 60px sections. */
.elementor-element-2fa13c5,
.elementor-element-133d960,
.elementor-element-2185fe79 {
  padding-top: 40px !important;
}
.elementor-element-2fa13c5,
.elementor-element-133d960 {
  padding-bottom: 40px !important;
}

/* ---- 3. Home hero ------------------------------------------------------------------- */

/* "Learn more" and "Find a property" were different widths. */
.up-hero .elementor-widget-button .elementor-button {
  width: 240px;
  max-width: 100%;
  justify-content: center;
  text-align: center;
}

/* Hero text: headline lines were cramped (line-height 1.0) while the gaps between headline,
   paragraph and buttons were 50-60px. Even it out. */
.up-hero .elementor-element-d787a31,
.up-hero .elementor-element-8e33344 {
  margin-bottom: 0 !important;
}
.up-hero .elementor-element-d787a31 > .elementor-widget-container,
.up-hero .elementor-element-8e33344 > .elementor-widget-container {
  margin: 0 !important;
  padding: 0 !important;
}
.up-hero .elementor-element-d787a31 .elementor-heading-title {
  font-size: 32px !important;
  line-height: 1.18 !important;
  letter-spacing: -0.01em;
  margin: 0 0 16px !important;
}
.up-hero .elementor-element-8e33344 p {
  font-size: 17px !important;
  line-height: 1.55 !important;
  margin: 0 0 28px !important;
}
.up-hero .elementor-element-74ebee1 {
  margin-top: 0 !important;
}
.up-hero .elementor-element-74ebee1 .elementor-widget-wrap {
  padding-top: 0 !important;
}
.up-hero .elementor-element-ee7e7aa {
  margin-bottom: 12px !important;
}
.up-hero .elementor-element-ee7e7aa > .elementor-widget-container,
.up-hero .elementor-element-24e38aa > .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
}

/* ---- 4. Text ------------------------------------------------------------------------ */

/* Long centred paragraphs are hard to read on a phone (Services intro). */
.elementor-element-d9fe672,
.elementor-element-d9fe672 p {
  text-align: left !important;
}
/* Contact: the heading had a forced line break that split it oddly. */
.elementor-element-5c3d7d3 br {
  display: none;
}
/* Long words / emails / URLs never push past the edge. */
.elementor-widget-text-editor,
.entry-content,
.elementor-widget-heading .elementor-heading-title {
  overflow-wrap: anywhere;
}

/* ---- 5. Forms ----------------------------------------------------------------------- */

/* Name / Email side by side were squeezed to ~170px each: stack them. */
.up-form__fields {
  grid-template-columns: minmax(0, 1fr) !important;
}
