/* SRB Painting – small UX/accessibility layer on top of the exported Elementor CSS. */

/* Visually hidden but available to screen readers (form labels that sit behind icon + placeholder fields) */
.srb-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Phone and email are real links now, but keep the existing look */
a.srb-tel, a.srb-mail { color: inherit; text-decoration: none; }
a.srb-tel:hover, a.srb-mail:hover { color: var(--e-global-color-primary, #D93C1E); }
a.srb-tel:focus-visible, a.srb-mail:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Placeholders were light grey on white; darken them to pass contrast */
.elementor-field::placeholder,
.elementor-field-textual::placeholder,
.elementor-field-group .elementor-field-textual::placeholder { color: #6b7170; opacity: 1; }

/* Typed text and the project dropdown were pale grey (about 2:1) */
.elementor-field-group input.elementor-field-textual,
.elementor-field-group select.elementor-field-textual,
.elementor-field-group textarea.elementor-field-textual,
.elementor-field-group .elementor-select-wrapper select { color: #2b2f2e !important; }

/* Sticky call / quote bar – phones only */
.srb-mobile-bar { display: none; }

@media (max-width: 1024px) {
  .srb-mobile-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -4px 18px rgba(16, 16, 16, 0.14);
  }
  .srb-mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px;
    border-radius: 999px;
    font: 600 16px/1 Inter, system-ui, sans-serif;
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease;
  }
  .srb-mobile-bar a:active { transform: scale(.98); }
  .srb-bar-call { flex: 0 0 34%; color: #101010; background: #fff; border: 1.5px solid #101010; }
  .srb-bar-quote { flex: 1; color: #fff; background: var(--e-global-color-primary, #D93C1E); border: 1.5px solid var(--e-global-color-primary, #D93C1E); }
  .srb-mobile-bar a:focus-visible { outline: 3px solid #FFBF00; outline-offset: 2px; }
  /* keep the footer and last section clear of the bar */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* Tablets: same bar, but not full-bleed */
@media (min-width: 768px) and (max-width: 1024px) {
  .srb-mobile-bar { left: 50%; right: auto; width: min(560px, 100%); transform: translateX(-50%); border-radius: 16px 16px 0 0; }
}

/* Phones: hero trim, text sizes, tap targets */
@media (max-width: 767px) {

  /* Home hero: one headline, one action – the quote form */
  .elementor-element-fe34299 { display: none; }      /* hero "Learn More" button */
  .elementor-1454 .elementor-element.elementor-element-aba7158 { --padding-top: 28px; --padding-bottom: 28px; --gap: 14px; --row-gap: 14px; }
  .elementor-element-511b384 { display: none; }       /* decorative underline under the hero headline */
  #quote { scroll-margin-top: 80px; }
}

/* ---------- Tier 3: readability, tap targets, top bar ---------- */

/* Top contact bar: keep phone / email / location on one line each */
@media (min-width: 768px) {
  .elementor-element-39439a83 .elementor-heading-title { white-space: nowrap; }
}

/* Phones: Elementor shrinks body copy and labels to 11–12.5px. Bring them to a readable size. */
@media (max-width: 767px) {
  /* paragraphs */
  .elementor-element[data-id="71ebe794"] .elementor-heading-title,
  .elementor-element[data-id="4352bb1"] .elementor-heading-title,
  .elementor-element[data-id="33d4fdbe"] .elementor-heading-title,
  .elementor-element[data-id="2bbff24"] .elementor-heading-title,
  .elementor-element[data-id="6aab4a4"] .elementor-heading-title { font-size: 15px !important; line-height: 1.6 !important; }

  /* eyebrow labels, stat labels, contact labels, copyright */
  .elementor-element[data-id="1b23bd29"] .elementor-heading-title,
  .elementor-element[data-id="17ea695a"] .elementor-heading-title,
  .elementor-element[data-id="636efdf9"] .elementor-heading-title,
  .elementor-element[data-id="eea2acd"] .elementor-heading-title,
  .elementor-element[data-id="6c8ef33"] .elementor-heading-title,
  .elementor-element[data-id="789c95d5"] .elementor-heading-title,
  .elementor-element[data-id="3cc7ccb4"] .elementor-heading-title,
  .elementor-element[data-id="f662ffc"] .elementor-heading-title,
  .elementor-element[data-id="354ca41c"] .elementor-heading-title,
  .elementor-element[data-id="59e3503f"] .elementor-heading-title,
  .elementor-element[data-id="57842de4"] .elementor-heading-title,
  .elementor-element[data-id="77b467cc"] .elementor-heading-title,
  .elementor-element[data-id="830f9fb"] .elementor-heading-title,
  .elementor-element[data-id="840a79e"] .elementor-heading-title,
  .elementor-element[data-id="73f0b87"] .elementor-heading-title,
  .elementor-element[data-id="77783ad"] .elementor-heading-title { font-size: 14px !important; }

  /* tap targets: at least 44 x 44 */
  /* extend the hit area without changing the layout */
  header a.elementor-icon,
  header a:has(> img),
  footer a:has(> img) { position: relative; }
  header a.elementor-icon::after { content: ''; position: absolute; inset: -10px; }
  header a:has(> img)::after,
  footer a:has(> img)::after { content: ''; position: absolute; inset: -6px 0; }
  footer .elementor-heading-title > a { display: inline-block; padding: 14px 8px !important; }
  a.srb-tel, a.srb-mail { display: inline-block; padding: 14px 0; }
  a.elementor-social-icon {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 44px !important; height: 44px !important;
  }
}
