/* QA round 1 fixes. Loaded after overrides.css. Colours: site blue #0353a0, dark navy #0b2a4f, accent #f7941d. */

/* Phone menu button: was 21px, #dadada on white (1.4:1). */
.fusion-mobile-menu-icons a.awb-icon-bars { display: inline-flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; font-size: 28px !important; line-height: 1; color: #0353a0 !important; }
/* The desktop menu wraps onto several lines between 800 and 1100px: use the phone menu there. */
@media (max-width: 1100px) {
  .fusion-header .fusion-main-menu { display: none !important; }
  .fusion-header .fusion-mobile-menu-icons { display: block !important; }
}

/* Page title bars: dark overlay so the white title and breadcrumbs read on the grey pattern or a photo. */
.fusion-page-title-bar { position: relative; background-color: #0b2a4f !important; }
.fusion-page-title-bar::before { content: ""; display: block !important; position: absolute; inset: 0; background: rgba(5, 30, 60, .72); pointer-events: none; }
.fusion-page-title-bar .fusion-page-title-row { position: relative; }
.fusion-page-title-bar h1, .fusion-page-title-bar .entry-title { color: #fff !important; }
.fusion-page-title-bar .fusion-breadcrumbs, .fusion-page-title-bar .fusion-breadcrumbs a, .fusion-page-title-bar .fusion-breadcrumbs span { color: #fff !important; }

/* Lead form: solid dark panel with white heading, so it reads on any background behind it. */
.overlapping_form { background: #0b2a4f; padding: 16px 18px; border-radius: 4px; }
.overlapping_form .form_title p { color: #fff !important; font-size: 26px; line-height: 1.2; font-weight: 700; margin: 0 0 4px; }
.overlapping_form .form_desc p { color: #fff !important; font-size: 16px; margin: 0 0 12px; }
.overlapping_form input[type="text"], .overlapping_form input[type="email"], .overlapping_form input[type="tel"], .overlapping_form textarea { font-size: 16px !important; }
/* The empty response box (with its stray x) only shows once the form has something to say. */
form[data-lead-form] .wpcf7-response-output { display: none; }
form[data-lead-form][data-status="sent"] .wpcf7-response-output, form[data-lead-form][data-status="invalid"] .wpcf7-response-output, form[data-lead-form][data-status="failed"] .wpcf7-response-output { display: block; }
.wpcf7-response-output .close { display: none; }

/* Home hero: the old slider's first slide, rebuilt (heading, four points, two buttons) over a darkening gradient. */
.static-hero { position: relative; }
.static-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .2)); }
.static-hero-inner { position: relative; font-family: Montserrat, Arial, Helvetica, sans-serif; color: #fff; }
.static-hero-inner p.hero-kicker { background: none; padding: 0; margin: 0 0 6px; max-width: none; font-size: 22px; line-height: 1.3; font-weight: 300; }
.static-hero-inner h1 { margin: 0 0 18px; padding-bottom: 14px; display: inline-block; color: #fff; font-size: 46px; line-height: 1.1; font-weight: 700; border-bottom: 4px solid #f7941d; }
.static-hero-inner ul { list-style: none; margin: 0 0 22px; padding: 0; font-size: 18px; line-height: 1.7; }
.static-hero-inner ul li::before { content: "\2022"; color: #f7941d; margin-right: 10px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-buttons a { display: inline-block; padding: 14px 26px; border: 2px solid #fff; border-radius: 3px; background: #0353a0; color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.hero-buttons a.alt { background: transparent; }
@media (max-width: 640px) { .static-hero-inner h1 { font-size: 32px; } .static-hero-inner ul { font-size: 16px; } }

/* Testimonials: the old LayerSlider shows its first slide only, as a plain blue panel. */
.ls-wp-container { display: block !important; position: relative !important; width: 100% !important; max-width: 780px; height: auto !important; margin: 0 auto !important; padding: 36px 24px; box-sizing: border-box; background: #0353a0; visibility: visible !important; overflow: visible !important; }
.ls-wp-container .ls-slide { display: none !important; position: static !important; width: auto !important; height: auto !important; }
.ls-wp-container .ls-slide:first-of-type { display: flex !important; flex-direction: column; align-items: center; text-align: center; }
.ls-wp-container .ls-slide .ls-l { position: static !important; top: auto !important; left: auto !important; width: auto !important; max-width: 100%; transform: none !important; opacity: 1 !important; visibility: visible !important; margin: 0 0 12px !important; }
.ls-wp-container .ls-slide .ls-bg, .ls-wp-container .ls-slide img[src*="quote-"], .ls-wp-container .ls-slide img[src*="reviews-"] { display: none !important; }
.ls-wp-container .ls-slide h4 { order: 1; color: #fff; font-size: 28px; }
.ls-wp-container .ls-slide p:nth-of-type(1) { order: 2; max-width: 630px; color: #fff; font-size: 16px; line-height: 1.6; }
.ls-wp-container .ls-slide p:nth-of-type(2) { order: 3; color: #fff; font-weight: 700; }
.ls-wp-container .ls-slide img[src*="stars"] { order: 4; }

/* Blog index: three columns of posts instead of one narrow column (Avada's isotope script did this). */
.fusion-blog-layout-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; height: auto !important; }
.fusion-blog-layout-grid .fusion-post-grid { position: static !important; float: none !important; width: auto !important; margin: 0 !important; transform: none !important; }
.fusion-blog-layout-grid .fusion-post-title { font-size: 20px; line-height: 1.3; }
@media (max-width: 1024px) { .fusion-blog-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fusion-blog-layout-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer text on the dark footer. */
.fusion-footer .fusion-footer-widget-area, .fusion-footer .fusion-footer-widget-area p { color: #e6e6e6 !important; }
