/* EASTMERE MOBILE POLISH 2026-09-08
  Mobile-only. Desktop presentation unchanged.
  Revert: delete this whole block from Additional CSS, or restore
  /workspace/eastmere-paddocks/backup-2026-09-08/additional-css-before.txt
*/
@media (max-width: 782px) {
  /* Connected expertise: force stack (theme used is-not-stacked-on-mobile) */
  .connections .wp-block-columns.is-not-stacked-on-mobile {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 28px !important;
  }
  .connections .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-grow: 0 !important;
  }
  .connections .company-brand {
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
  .connections .company-brand small {
    display: inline !important;
    font-size: 0.72em !important;
  }
  .connections .company,
  .connections .company-grid {
    width: 100% !important;
    min-width: 0 !important;
  }
  .connections .company p,
  .connections .company-link {
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }
  /* Sticky header: keep in-page anchors below it */
  #approach,
  #routes,
  #connections,
  #contact,
  #top {
    scroll-margin-top: 96px;
  }
  /* Hero: keep impact but show scroll prompt sooner */
  .hero {
    min-height: calc(100svh - 90px) !important;
    max-height: none;
  }
  .hero-content {
    padding-bottom: 28px !important;
  }
  /* Footer back-to-top hit area (class is .back-top) */
  .back-top a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 4px;
  }
}
/* END EASTMERE MOBILE POLISH */


/* EASTMERE MOBILE HERO + LOGO 2026-09-08
  Mobile-only. Complements EASTMERE MOBILE POLISH block.
  Logo containment is better done in the header template; CSS below is a safety net.
*/
@media (max-width: 782px) {
  /* Keep logo fully inside the sticky header bar (brand was ~100px in a 90px bar) */
  .ep-header .site-header {
    height: 90px;
    overflow: hidden;
    align-items: center;
  }

  .ep-header .brand {
    height: 72px !important;
    width: auto !important;
    max-width: 160px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
  }

  .ep-header .brand img {
    width: auto !important;
    max-height: 72px !important;
    max-width: 160px !important;
    height: auto !important;
    object-fit: contain;
    object-position: left center;
  }

  /* Hero landscape: less awkward crop on phone */
  .hero {
    min-height: calc(100svh - 90px) !important;
    max-height: none;
  }

  .hero figure.hero-image,
  .hero figure.hero-image img {
    height: 100% !important;
    top: 0 !important;
    object-fit: cover !important;
    object-position: 62% center !important;
  }

  /* Oak overlay: stop the oversized, off-frame tree that crowds copy */
  .hero figure.hero-tree {
    right: -8% !important;
    bottom: 0 !important;
    width: 58% !important;
    height: 55% !important;
    opacity: 0.85 !important;
  }

  .hero figure.hero-tree img {
    object-fit: contain !important;
    object-position: bottom right !important;
  }

  .hero-content {
    padding-top: 56px !important;
    padding-bottom: 96px !important;
  }

  .hero-content h1 {
    max-width: 18ch !important;
  }
}

@media (max-width: 520px) {
  .hero figure.hero-tree {
    right: -12% !important;
    width: 68% !important;
    height: 48% !important;
    bottom: 0 !important;
  }
}
/* END EASTMERE MOBILE HERO + LOGO */