/* Alan Winford Mechanical: this site's own fixes on top of the copied Divi pages (served as css/site-overrides.css) */

/* Contact: the quote form's row is held to half the screen on phones (Divi's 50% max-width, live fault too),
   leaving the form 128px wide. Give it the full content width below tablet size. */
@media (max-width: 767px) {
  body.page-id-22 .et_pb_section_1 .et_pb_row_1 { max-width: 90% !important; width: 90% !important; }
  body.page-id-22 .et_pb_section_1 .et_pb_row_1 > .et_pb_column { padding-left: 20px !important; padding-right: 20px !important; }
}

/* 404: WordPress's blog sidebar (a search box that cannot work on a static site, empty Recent Posts and
   Recent Comments) is left over from the theme; hide it and the divider line it leaves. */
body.error404 #sidebar { display: none !important; }
body.error404 #main-content .container:before { display: none !important; }
@media (min-width: 981px) { body.error404 #left-area { width: 100% !important; padding-right: 0 !important; } }

/* Shay's supplied workshop photo replaces the van photo (21 October 2026). */
body.home div.et_pb_section.et_pb_section_0 {
  background-image: linear-gradient(180deg,rgba(0,0,0,0.5),rgba(0,0,0,0.5)),url(/images/alan-winford-workshop-2026-10.webp) !important;
  background-position: center center;
}

/* U5/U13: keyboard menu focus and a dimmed page behind the open phone dropdown. */
#main-header .mobile_menu_bar:focus-visible {
  outline: 3px solid #3737e2;
  outline-offset: 5px;
}
@media (max-width: 980px) {
  body.awm-menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9980;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
  }
}
