/* Original homepage, refined for phones. No desktop layout overrides.
 * Keep every section, proof record, fee, image and enquiry field in place.
 * Short labels are real translated text; display:none removes the alternate
 * label/action from both visual layout and the accessibility tree. */
.sf-page--home .sf-hm-phone-label,
.sf-page--home.sf-hm-root a.sf-hm-phone-action { display: none !important; }

@media (max-width: 820px) {
  .sf-page--home { --hm-space: 44px; --hm-ink: #1f2328; --hm-muted: #5f6368; --hm-line: #e4e4e4; }
  .sf-page--home .sf-hm-desktop-label,
  .sf-page--home.sf-hm-root a.sf-hm-desktop-action { display: none !important; }
  .sf-page--home .sf-hm-phone-label { display: inline !important; }
  .sf-page--home.sf-hm-root a.sf-hm-phone-action { display: inline-flex !important; }
  .sf-page--home :is(a, button):focus-visible { outline: 3px solid #c8102e; outline-offset: 4px; }
  .sf-page--home.sf-hm-root [data-screen-label="Home"] > :is(div,section) h2 {
    font-size: clamp(27px, 7.1vw, 34px) !important;
    line-height: 1.16 !important; letter-spacing: -.025em !important;
    text-wrap: pretty;
  }
  .sf-page--home.sf-hm-root [data-screen-label="Home"] > :is(div,section) { min-width: 0; }
  .sf-page--home .sf-hm-hero {
    padding: 30px 20px 40px !important; gap: 24px !important;
  }
  .sf-page--home .sf-hm-eyebrow {
    font-size: 11px !important; line-height: 1.6 !important;
    letter-spacing: .1em !important; gap: 8px !important; margin-bottom: 18px !important;
  }
  .sf-page--home .sf-hm-eyebrow svg { flex-shrink: 0; width: 20px; }
  .sf-page--home .sf-hm-hero h1 {
    font-size: clamp(30px, 8.2vw, 39px) !important;
    line-height: 1.13 !important; letter-spacing: -.035em !important;
    margin-bottom: 16px !important; text-wrap: pretty;
  }
  .sf-page--home .sf-hm-copy { font-size: 15px !important; line-height: 1.6 !important; margin-bottom: 22px !important; }
  .sf-page--home .sf-hm-actions {
    display: grid !important; grid-template-columns: 1fr 1fr !important;
    gap: 10px !important; margin-bottom: 16px !important; align-items: stretch !important;
  }
  .sf-page--home .sf-hm-actions a {
    display: flex; align-items: center; justify-content: center;
    width: auto !important; min-width: 0; min-height: 48px;
    margin: 0 !important; padding: 12px 10px !important;
    border-radius: 8px !important; font-size: 14px !important;
    font-weight: 650 !important; line-height: 1.4 !important; text-align: center;
    white-space: normal !important; overflow-wrap: anywhere;
  }
  .sf-page--home .sf-hm-actions .sf-hm-phone-action { background: var(--hm-ink); color: #fff; }
  .sf-page--home .sf-hm-actions .scp2 { border-color: #d4d7da !important; background: #fff; }
  .sf-page--home .sf-hero-assurance {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 12px !important;
    margin: 0 0 16px !important; padding: 0 !important;
  }
  .sf-page--home .sf-hero-assurance li {
    min-width: 0; font-size: 12px !important; line-height: 1.45 !important;
    padding: 5px 0 !important; display: flex !important; gap: 6px !important; align-items: center;
  }
  .sf-page--home .sf-hero-assurance li::before { flex-shrink: 0; }
  .sf-page--home .sf-hero-assurance li > a { min-height: 44px; }
  .sf-page--home .sf-hm-stats {
    display: grid !important; grid-template-columns: 1fr 1fr;
    gap: 0 !important; margin-top: 0 !important; padding-top: 12px !important;
    font-variant-numeric: tabular-nums;
  }
  .sf-page--home .sf-hm-stats > div { padding: 10px 12px !important; border: 0 !important; }
  .sf-page--home .sf-hm-stats > div:nth-child(even) { border-inline-start: 1px solid var(--hm-line) !important; }
  .sf-page--home .sf-hm-stats > div:nth-child(n+3) { border-top: 1px solid var(--hm-line) !important; }
  .sf-page--home .sf-hm-stats > div > div:first-child { font-size: 22px !important; line-height: 1.2 !important; }
  .sf-page--home .sf-hm-stats > div > div:last-child { font-size: 12px !important; line-height: 1.45 !important; }
  .sf-page--home .sf-hm-media-frame { height: 280px !important; border-radius: 12px !important; box-shadow: none !important; }
  /* A stable phone hero: the picture sources skip four unused photo downloads. */
  .sf-page--home .sf-hm-media-secondary { display: none; }
  .sf-page--home .sf-hm-media-primary { animation: none !important; opacity: 1; }
  .sf-page--home .sf-hm-media > div:first-child:not(.sf-hm-media-frame) { display: none; }
  .sf-page--home .sf-hm-badge {
    position: relative !important; inset: auto !important; margin: -32px 12px 0 !important;
    padding: 12px 14px !important; gap: 10px !important; border-radius: 8px !important;
    box-shadow: 0 5px 18px -12px rgba(31,35,40,.3) !important;
  }
  .sf-page--home .sf-hm-badge > svg { flex: 0 0 30px; width: 30px; height: 30px; }

  /* The legacy inline padding-block declarations missed the shared mobile rules. */
  .sf-page--home .v2-wrap { padding: var(--hm-space) 20px !important; }
  .sf-page--home :is(.sf-hm-proof,.sf-hm-services,.sf-hm-case) { padding: var(--hm-space) 20px !important; }
  .sf-page--home .sf-hm-proof { padding-top: 8px !important; }
  .sf-page--home .sf-hm-model,
  .sf-page--home :is(.sf-hm-team,.sf-hm-start) > div { padding: var(--hm-space) 20px !important; }
  .sf-page--home :is(.sf-territory,.sf-testimonials) { padding-top: var(--hm-space) !important; padding-bottom: var(--hm-space) !important; }
  .sf-page--home :is(.v2-head,.sf-pw__head,.sf-hs__head,.sf-hm-case-heading,.sf-hm-team-heading) {
    gap: 14px !important; margin-bottom: 24px !important; align-items: flex-start !important;
  }
  .sf-page--home :is(.v2-eyebrow,.sf-pw__kicker,.sf-hs__kicker) { margin-bottom: 10px !important; letter-spacing: .11em !important; line-height: 1.55 !important; }
  .sf-page--home :is(.v2-lede,.sf-pw__lede,.sf-hs__lede) { font-size: 15px !important; line-height: 1.65 !important; }
  .sf-page--home .sf-hs { padding-bottom: 0; }

  /* Delivery evidence: a visible next-card edge makes the native swipe rail discoverable. */
  .sf-page--home .sf-pw { margin: 0; padding: 24px 18px; border-radius: 14px; }
  .sf-page--home .sf-pw__stats { margin: 20px 0 !important; }
  .sf-page--home .sf-pw__stats li { padding: 12px !important; }
  .sf-page--home .sf-pw__stats b { font-size: 22px !important; }
  .sf-page--home .sf-pw__wall.v2-pw-three {
    display: flex !important; flex-direction: row !important;
    gap: 12px; overflow-x: auto; padding-bottom: 12px;
    scroll-snap-type: x proximity; overscroll-behavior-inline: contain; scrollbar-width: thin;
    scrollbar-color: #c8102e #ececee; align-items: stretch;
  }
  .sf-page--home .sf-pw__card { flex: 0 0 88%; scroll-snap-align: start; min-width: 0; border-radius: 12px; }
  .sf-page--home .sf-pw__shot { aspect-ratio: 4/3; }
  .sf-page--home .sf-pw__shot img { object-fit: contain; background: #ece9e4; }
  .sf-page--home .sf-pw__meta { padding: 18px !important; }
  .sf-page--home .sf-pw__where b { font-size: 21px !important; }
  .sf-page--home .sf-pw__line { font-size: 14px !important; line-height: 1.6 !important; }
  .sf-page--home .sf-pw__foot { margin-top: 20px !important; padding-top: 20px !important; gap: 12px !important; }
  .sf-page--home .sf-pw__foot p { font-size: 14px !important; line-height: 1.6 !important; }
  .sf-page--home :is(.sf-pw__btn,.sf-hs__cta-btn,.v2-path__cta,.v2-btn,.sf-hm-start .scp9) {
    width: fit-content !important; max-width: 100%; min-height: 46px; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 16px !important; border-radius: 8px !important;
    font-size: 14px !important; line-height: 1.5 !important; white-space: normal !important;
  }

  /* Quiet, consistent process cards. Keep all six steps and payment facts readable. */
  .sf-page--home .v2-mf { padding: 22px 14px; border-radius: 14px; }
  .sf-page--home .v2-mf__steps { gap: 24px 12px; }
  .sf-page--home .v2-mf__icon { animation: none; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 12px; }
  .sf-page--home .v2-mf__icon svg { width: 28px; height: 28px; }
  .sf-page--home .v2-mf__chip { width: 100%; box-sizing: border-box; min-width: 0; min-height: 58px; justify-content: center; font-size: 12px; }
  .sf-page--home .v2-mf__step b { font-size: 15px; min-height: 38px; }
  .sf-page--home .v2-earn { padding: 22px 18px; border-radius: 14px; gap: 18px; }
  .sf-page--home .v2-earn__lead { gap: 14px; }
  .sf-page--home .v2-earn__stamp { width: 70px; height: 70px; font-size: 10px; }
  .sf-page--home .v2-earn__stamp::before { animation: none; }
  .sf-page--home .v2-earn h3 { font-size: 19px; }
  .sf-page--home .v2-earn__items { gap: 8px; }
  .sf-page--home .v2-earn__items li { padding: 12px; border-radius: 8px; }
  .sf-page--home .v2-proofline { font-size: 14px; gap: 14px; }
  .sf-page--home .v2-proofline strong { font-size: 18px; }
  .sf-page--home .v2-snap { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; animation: none; box-shadow: none; }
  .sf-page--home .v2-snap svg { width: 26px; height: 26px; }
  .sf-page--home :is(.v2-snap__btn,.v2-snap__lens,.v2-snap__flash,.v2-snap__ring,.v2-snap__sfx,.v2-pf__proof .v2-cam) { animation: none; }
  .sf-page--home .v2-pf__proof::after { animation: none; }
  .sf-page--home .v2-pf__steps { gap: 24px 14px; }
  .sf-page--home .v2-pf__icon { width: 54px; height: 54px; border-radius: 14px; margin-bottom: 12px; box-shadow: none; }
  .sf-page--home .v2-pf__icon svg { width: 30px; height: 30px; }
  .sf-page--home .v2-pf__icon em { width: 22px; height: 22px; font-size: 10px; line-height: 22px; }
  .sf-page--home .v2-pf__step b { font-size: 15px; line-height: 1.35; }
  .sf-page--home .v2-pf__step p { font-size: 13px; }
  .sf-page--home .v2-pf__proof { font-size: 12px; }
  .sf-page--home .v2-pf__note { margin-top: 26px; padding-top: 18px; font-size: 14px; gap: 12px; }

  /* Service and buying-path cards retain their images and complete descriptions. */
  .sf-page--home .sf-hs__grid { gap: 16px; }
  .sf-page--home .sf-path { border-radius: 12px; }
  .sf-page--home .sf-path__media { aspect-ratio: 16/9 !important; min-height: 0 !important; height: auto !important; }
  .sf-page--home .sf-path__body { padding: 18px !important; gap: 12px !important; }
  .sf-page--home .sf-path__icon { display: none; }
  .sf-page--home .sf-path__title { font-size: 21px !important; line-height: 1.25 !important; }
  .sf-page--home .sf-path__desc { font-size: 14px !important; line-height: 1.6 !important; }
  .sf-page--home .sf-path__arrow { width: 32px; height: 32px; flex-basis: 32px; }
  .sf-page--home .sf-hs__cta { padding: 22px; border-radius: 12px; gap: 12px; }
  .sf-page--home .sf-hs__cta strong { font-size: 24px; }
  .sf-page--home .sf-hs__cta-actions { margin-top: 4px; gap: 12px; }
  .sf-page--home .sf-hs__cta-btn { justify-self: start; }
  .sf-page--home .sf-hs__cta-visit { padding: 12px; gap: 10px; }
  .sf-page--home .sf-hs__cta-visit small { line-height: 1.5; }
  .sf-page--home .v2-paths__grid { gap: 16px; }
  .sf-page--home .v2-path { border-radius: 12px; }
  .sf-page--home .v2-path__img { height: 180px; }
  .sf-page--home .v2-path__body { padding: 22px 20px; gap: 12px; }
  .sf-page--home .v2-path__title { font-size: 25px; }
  .sf-page--home .v2-path__text { font-size: 14px; }
  .sf-page--home .v2-path__list { font-size: 13.5px; }
  .sf-page--home .v2-path__list svg { flex-shrink: 0; }

  /* Repair the legacy case layout; it never had the ID targeted by its old mobile fix. */
  .sf-page--home .sf-hm-case-heading { flex-direction: column; }
  .sf-page--home .sf-hm-case-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .sf-page--home .sf-hm-case-grid > a { min-height: 280px !important; }
  .sf-page--home .sf-hm-case-grid > a > div { inset-inline: 12px !important; bottom: 12px !important; }
  .sf-page--home .sf-hm-case-grid > div { grid-template-rows: none !important; }
  .sf-page--home .sf-hm-case-grid > div > div { grid-template-columns: 76px minmax(0,1fr) !important; gap: 12px !important; }
  .sf-page--home .sf-hm-case-grid > div > div > div:first-child { height: 76px !important; }
  .sf-page--home .sf-hm-case-grid img { width: 100%; height: 100%; object-fit: cover; }
  .sf-page--home .sf-hm-team-heading { flex-direction: column; }
  .sf-page--home .sf-hm-team .hero-rail > div { flex-basis: 236px !important; height: 306px !important; min-height: 0 !important; }
  .sf-page--home .v2-who__list { gap: 10px; }
  .sf-page--home .v2-who__list a { padding: 18px; gap: 6px; }
  .sf-page--home .v2-who__list b { font-size: 17px; }
  .sf-page--home .v2-who__list span { font-size: 14px; line-height: 1.55; }
  .sf-page--home .sf-hm-start-copy > p { margin-bottom: 22px !important; font-size: 15px !important; }
  .sf-page--home .sf-hm-start-points { gap: 12px !important; margin-bottom: 24px !important; }
  .sf-page--home .sf-hm-start-points > div { font-size: 14px !important; align-items: flex-start !important; }
  .sf-page--home .sf-hm-start-points svg { flex-shrink: 0; }
  .sf-page--home .sf-hm-start .v2-cta-row { gap: 10px; margin-bottom: 14px; }
  .sf-page--home #start.sf-hm-start .sf-home-brief { display: none !important; }
  .sf-page--home .sf-hm-start .sf-home-mobile-start__button { display: none !important; }
}

@media (max-width: 820px) {
  .sf-page--home .sf-pw__card { height: auto; }
  .sf-page--home .sf-pw__card > a { height: auto; flex: 1; }
  .sf-page--home .sf-pw__card > a:focus-visible { outline-offset: -4px; }
}

/* Keep the brand in the header row on the narrowest phones. */
@media (max-width: 360px) {
  .sf-page--home .sf-header > div:first-child { padding-inline: 16px !important; gap: 8px !important; }
  .sf-page--home .sf-header > div:first-child > a:first-child {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    flex: 1 1 auto; min-width: 0; min-height: 44px; gap: 8px !important;
  }
  .sf-page--home .sf-header > div:first-child > a:first-child > svg { width: 30px !important; height: 30px !important; flex: 0 0 30px; }
  .sf-page--home .sf-header > div:first-child > a:first-child > span > span:first-child { font-size: 12px !important; white-space: nowrap; }
  .sf-page--home .sf-header > div:first-child > a:first-child > span > span:last-child { display: none !important; }
}
