@media (min-width: 768px) { .er-phone-only, .er-m-photo { display: none !important; } }
/* Phone layout from the pen.dev redesign (design/er-site.pen, page "Phone redesign"; 2026-12-03).
   Only under 768px. Tokens: red #CC0000, ink #1C1C1C, body #3D3D3D, grey #F4F4F2, dark #141414;
   Manrope headings, Nunito Sans text; H1 31, H2 28, H3 22, H4 19, text 16; 20px sides; buttons 52px full width. */
@media (max-width: 767px) {
  :root { --er-red: #cc0000; --er-ink: #1c1c1c; --er-body: #3d3d3d; --er-grey: #f4f4f2; --er-dark: #141414; }

  /* header: 72px black bar, logo left, call button + menu right */
  .header .header-announcement-bar-wrapper { padding-top: 0 !important; padding-bottom: 0 !important; background: #000 !important; }
  .header .header-inner { padding: 0 !important; }
  .header-display-mobile { box-sizing: border-box; width: 100%; height: 72px; padding: 0 12px 0 20px; align-items: center; }
  .header-display-mobile { display: flex !important; justify-content: space-between; }
  .header-display-mobile .header-title-nav-wrapper { flex: 1 1 auto; min-width: 0; }
  .header-display-mobile .header-actions { flex: 0 0 auto; padding: 0 !important; margin: 0 !important; width: auto !important; }
  .header-display-mobile .header-burger { margin: 0 !important; }
  .header-display-mobile .header-title-logo img { max-height: 60px !important; width: auto; }
  .header-display-mobile .header-actions-action--cta { display: none !important; }
  .header-display-mobile .header-actions--right { display: flex !important; align-items: center; gap: 4px; }
  .er-call { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--er-red); color: #fff !important; }
  .header-display-mobile .header-burger { display: flex !important; width: 44px; height: 44px; align-items: center; justify-content: center; }

  /* every section: blocks stacked in reading order, even spacing, no grid */
  .page-section .content-wrapper { padding: 44px 20px !important; min-height: 0 !important; }
  .page-section:first-of-type .content-wrapper { padding-top: 28px !important; }
  .page-section { min-height: 0 !important; }
  .page-section .content { width: 100% !important; }
  .fluid-engine { display: flex !important; flex-direction: column; gap: 16px !important; grid-template-rows: none !important; }
  .fluid-engine > .fe-block { order: var(--mo, 0); grid-area: auto !important; width: 100% !important; height: auto !important; min-height: 0 !important; margin: 0 !important; position: relative !important; }
  .fe-block .sqs-block { height: auto !important; min-height: 0 !important; padding: 0 !important; }
  .fe-block .sqs-block-content, .fe-block .sqs-block-alignment-wrapper { height: auto !important; }
  .fe-block:empty, .fe-block .sqs-block-spacer, .fe-block .sqs-block-shape:not(:has(*)) { display: none !important; }
  .fe-block .sqs-block-shape { display: none !important; }

  /* photos: full width, natural height, small radius; small icons (under 200px wide) hidden */
  .fe-block :is(.fluid-image-container, .js-content-mode-element-wrapper, .js-content-mode-element, .content-fill, .image-block-wrapper, .fluid-image-animation-wrapper) { position: static !important; height: auto !important; padding: 0 !important; aspect-ratio: auto !important; transform: none !important; }
  html body .fe-block .sqs-block .sqs-block-content .fluid-image-container .content-fill img, .fe-block :is(.image-block, .sqs-block-image, .fluid-image-container) img { position: static !important; display: block; width: 100% !important; height: auto !important; max-height: 440px; object-fit: cover !important; border-radius: 4px; }
  .fe-block.er-small { display: none !important; }
  .er-m-photo img { display: block; width: 100%; height: 240px; object-fit: cover; border-radius: 4px; }

  /* sections with a photo behind the text: plain white on phones, photo shown under the heading */
  .er-has-bg .section-background { display: none !important; }
  .er-has-bg { background: #fff !important; }
  .er-has-bg :is(h1, h2, h3, h4, p, li) { color: var(--er-ink) !important; }
  .er-has-bg :is([class*="sqsrte-text-color--light"], [class*="sqsrte-text-color--white"]) { color: var(--er-ink) !important; }
  .page-section:not(.er-has-bg) .er-m-photo { display: none; }

  /* type */
  .page-section h1 { font: 700 31px/1.15 Manrope, sans-serif !important; letter-spacing: -0.4px !important; text-wrap: balance; margin: 0; }
  .page-section h2 { font: 700 28px/1.15 Manrope, sans-serif !important; letter-spacing: -0.4px !important; text-wrap: balance; margin: 0; }
  .page-section h3 { font: 700 22px/1.2 Manrope, sans-serif !important; text-wrap: balance; margin: 0; }
  .page-section h4 { font: 700 19px/1.25 Manrope, sans-serif !important; margin: 0; }
  .page-section :is(p, li) { font-family: "Nunito Sans", sans-serif !important; font-size: 16px !important; line-height: 1.55 !important; text-wrap: pretty; }
  .page-section .sqs-html-content > * + * { margin-top: 12px; }
  .page-section .sqs-html-content > :first-child { margin-top: 0; }
  .page-section .sqs-html-content > * + :is(h2, h3, h4) { margin-top: 24px; }

  /* everything reads left-aligned on phones, as in the design */
  .page-section .sqs-html-content :is(h1, h2, h3, h4, p, li) { text-align: left !important; }

  /* buttons: full width, 52px */
  .fe-block .sqs-block-button-container { text-align: center !important; }
  .fe-block .sqs-block-button-element, .fe-block a.sqs-button-element--primary, .fe-block a.sqs-button-element--secondary, .fe-block a.sqs-button-element--tertiary, .er-form-submit {
    display: flex !important; width: 100% !important; box-sizing: border-box; min-height: 52px; align-items: center; justify-content: center;
    padding: 12px 16px !important; border-radius: 4px !important; font: 700 17px/1.2 "Nunito Sans", sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }

  /* footer */
  footer .content-wrapper { padding: 40px 20px 32px !important; }

  /* Google map embed: a sensible phone height */
  .fe-block .embed-block iframe { width: 100% !important; height: 300px !important; border-radius: 4px; }

  /* review slider: as tall as the longest review, not a fixed tall box */
  .user-items-list-section .content-wrapper { padding: 52px 24px !important; }
  .user-items-list-section :is(.slideshow-wrapper, .slideshow-gutter, .slideshow-holder) { height: auto !important; min-height: 0 !important; }
  .user-items-list-section ul.slides { display: grid !important; height: auto !important; min-height: 0 !important; }
  .user-items-list-section li.slide { display: flex !important; align-items: flex-start !important; padding-top: 0 !important; grid-area: 1 / 1; position: relative !important; height: auto !important; min-height: 0 !important; }
  .user-items-list-section li.slide[aria-hidden="true"] { visibility: hidden; }
  .user-items-list-section .slide-content, .user-items-list-section .list-item-content { padding: 0 !important; justify-content: flex-start !important; }
  .user-items-list-section .list-item-content__title { font: 700 22px/1.25 Manrope, sans-serif !important; text-align: left !important; }
  .user-items-list-section .list-item-content__description p { text-align: left !important; }

  /* "3 easy steps" (a code block): number on the left, words on the right */
  .steps-container { flex-direction: column !important; padding: 8px 20px !important; border-radius: 4px !important; }
  .steps-container .step { display: grid !important; grid-template-columns: 34px minmax(0, 1fr); gap: 0 14px; padding: 22px 0 !important; border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.12); overflow: visible !important; }
  .steps-container .step:last-child { border-bottom: 0; }
  .steps-container .step-number { position: static !important; font: 800 44px/1 Manrope, sans-serif !important; opacity: 1 !important; margin: 0 !important; color: var(--er-red) !important; }
  .steps-container .step-content { padding-top: 0 !important; }
  .steps-container .step-title { font: 700 20px/1.2 Manrope, sans-serif !important; margin: 0 0 6px !important; }
  .steps-container .step-desc { font-size: 15px !important; line-height: 1.55 !important; }

  .er-desk-only { display: none !important; }
  .er-phone-only a.er-btn-outline { background: transparent !important; color: var(--er-ink) !important; border: 1.5px solid var(--er-ink) !important; }
  .page-section:is([data-section-theme="black"], [data-section-theme="dark"], [data-section-theme="black-bold"]) .er-phone-only a.er-btn-outline { color: #fff !important; border-color: #fff !important; }
  .er-hero-text p { font-size: 17px !important; color: var(--er-body); }
  .user-items-list-section .slide-content { margin: 0 !important; }
  .user-items-list-section :is(.slideshow-wrapper, .slideshow-holder, .slides) { padding-top: 0 !important; margin-top: 0 !important; }

  /* blog posts: same 20px sides as every other page; next/previous post titles at link size */
  .blog-item-wrapper, .blog-item-wrapper article.entry, .blog-item-inner-wrapper { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; max-width: none !important; }
  .item-pagination .item-pagination-title, .item-pagination :is(h1, h2, h3, h4) { font: 700 17px/1.3 Manrope, sans-serif !important; }
  .item-pagination { padding: 24px 0 !important; gap: 16px; }
  /* project posts: same 20px sides, call buttons full width */
  .er-post, .er-added { padding: 0 !important; }
  .er-post h2 { margin-top: 1.4em !important; }
  .er-post h3 { margin-top: 1.2em !important; }
  .er-post h2 + h3, .er-post h1 + p { margin-top: .8em !important; }
  .er-project-card h2 { margin-top: .6em !important; }
  .er-post a.er-btn, .er-added a.er-btn { display: flex; width: 100%; box-sizing: border-box; min-height: 52px; align-items: center; justify-content: center; text-align: center; padding: 12px 16px; border-radius: 4px; font: 700 17px/1.25 "Nunito Sans", sans-serif; }
}
