/* Bug Sweep Investigators — Cleanu index-6 rebrand
   Navy / steel over the electrician homepage. Loaded after cleanu.css. */

:root {
  --color-primary: #0c2340;
  --color-secondary: #8eb4c8;
  --color-heading: #0c2340;
  --color-paragraph: #3e4c59;
  /* The theme's "dark" tokens default to a royal blue. Map them to the brand navy
     so every hover fill, overlay and footer strip stays on palette. */
  --dark: #071422;
  --dark-secondary: #0c2340;
  --bsi-navy: #0c2340;
  --bsi-navy-deep: #071422;
  --bsi-steel: #1e4d6b;
  --bsi-mist: #e7eef3;
  --bsi-paper: #f7f5f1;
  --container-max: 1200px;
}

body {
  color: var(--color-paragraph);
  overflow-x: clip;
}

/* Keyboard focus is always visible: the theme removes every outline. Tab adds
   .using-keyboard to <html> (site.js) so the ring does not depend on the browser's
   own keyboard detection; a click or tap takes it off again. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
html.using-keyboard :is(a, button, summary):focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.brand-wordmark {
  display: inline-block;
  color: var(--bsi-navy);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  font-size: 15px;
  text-decoration: none;
}

.brand-wordmark span {
  display: block;
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--bsi-steel);
}

/* Official lockup: the wordmark and the spectrum mark, cropped to the artwork.
   Desktop shows it in the top bar. From 1024px down that bar is hidden, so the
   same file sits in the nav, between the menu button and the call button. */
.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: auto;
  height: 58px;
}

.top-bar-area .logo .site-logo img {
  height: 58px;
}

@media (min-width: 1200px) {
  .top-bar-area .logo .site-logo img {
    height: 62px;
  }
}

footer .f-item.about .site-logo {
  margin: 0 0 18px;
  padding: 8px 12px 7px;
  background: #fff;
  border-radius: 8px;
}

footer .f-item.about .site-logo img {
  height: 52px;
  max-width: 100%;
  margin: 0;
}

.top-bar-area .info a,
.top-bar-area .info span {
  color: var(--bsi-navy);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--bsi-navy);
  padding: 0.5rem 0.75rem;
  z-index: 10000;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ============================================================
   Navigation
   ============================================================ */

/* The menu is uppercase; the call-to-action in the same bar reads the same way.
   Sized so menu and button stay on one row in the nav box at every desktop width. */
nav.navbar .attr-right .btn {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 15px;
  padding: 16px 24px;
}

/* The nav box must never wrap to a second row (it would cover the page header).
   Up to 1199px the menu needs the whole row and the top bar above already shows
   the phone number; from 1200 to 1399px a slightly tighter link size leaves room. */
@media (max-width: 1199px) {
  nav.navbar .attr-right {
    display: none;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  nav.navbar ul.nav > li > a {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 14px;
  }

  nav.navbar .attr-right .btn {
    font-size: 14px;
    padding: 15px 20px;
  }
}

/* Breadcrumbs flow like a sentence and wrap inside the line. On touch screens
   every crumb gets a 41px-tall tap area that reaches at least 44px wide even for
   short names ("Ohio", "Iowa"), extending into the gaps so the text stays put. */
.breadcrumb ol {
  display: block;
}

.breadcrumb li {
  display: inline;
}

@media (max-width: 1023px) {
  .breadcrumb a {
    display: inline-block;
    min-width: 2.75rem;
    padding: 0.5rem 0;
  }
}

/* Phone and tablet: the top bar with the phone number is hidden, so the bar
   carries a one-tap call button and the drawer offers the number at the end. */
.nav-call,
.menu-call {
  display: none;
}

@media (max-width: 1023px) {
  /* Keep the lockup clear of the menu button on the left and the call button
     on the right, and let it shrink on a 320px screen. */
  a.navbar-brand.site-logo {
    left: 56px;
    right: 68px;
    width: auto;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  a.navbar-brand.site-logo img {
    height: auto;
    width: auto;
    max-height: 60px;
    max-width: 100%;
  }

  nav.navbar.validnavs .navbar-header .navbar-toggle {
    padding: 20px 14px;
    margin-left: -14px;
  }

  nav.navbar.validnavs .navbar-collapse.collapse button {
    width: 44px;
    height: 44px;
    line-height: 41px;
  }

  nav.navbar .nav-call {
    display: inline-flex;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bsi-navy);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
  }

  nav.navbar .nav-call:hover,
  nav.navbar .nav-call:focus {
    color: #fff;
    background: var(--bsi-steel);
  }

  #navbar-menu .menu-call {
    display: block;
    margin: 1.75rem 0 0;
    text-align: center;
    text-transform: uppercase;
  }

  /* The backdrop dims the page (sections carry z-index 1) but stays under the nav. */
  .overlay-screen.opened {
    z-index: 99;
  }

  /* The page behind the open drawer does not scroll. */
  body.menu-open {
    overflow: hidden;
  }

  /* Once the page has scrolled, the bar tightens from 105px to 77px to leave more room
     for content (site.js adds .scrolled). */
  nav.navbar.validnavs {
    transition: padding 0.25s ease;
  }

  nav.navbar.validnavs .navbar-header .navbar-toggle {
    transition: padding 0.25s ease;
  }

  nav.navbar.validnavs.scrolled:not(.navbar-responsive) {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  nav.navbar.validnavs.scrolled:not(.navbar-responsive) .navbar-header .navbar-toggle {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* ============================================================
   Homepage hero
   ============================================================ */

/* Banner headline matches the index-6 h2 scale, on a real h1. */
.banner-style-six h1 {
  font-size: 40px;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1.1;
  margin-bottom: 16px;
}

.banner-style-six h1 strong {
  display: block;
  max-width: 100%;
  font-size: clamp(34px, 7.2vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 700;
  /* Solid navy, never a photo fill: filled text vanishes whenever the image
     is missing (offline copy, sub-folder preview, failed request). */
  color: var(--bsi-navy);
  overflow-wrap: anywhere;
}

.banner-style-six .content p.lead,
.page-hero .lead {
  text-transform: none;
  font-size: 17px;
  line-height: 1.6;
  max-width: 38rem;
}

/* The theme pulls the banner content up with an 80px negative margin under the
   nav; the content starts in clear air instead. The quote card below rides up
   60px over the banner's bottom edge, so the banner keeps room under the button. */
@media (min-width: 768px) {
  .banner-area.bg-gray.banner-style-six {
    padding-top: 88px;
  }

  .banner-area.banner-style-six.auto-height .content {
    margin-top: 0;
    padding: 64px 0 140px;
  }
}

/* At tablet width the bar is already 190px deep, so the banner opens closer under it. */
@media (min-width: 768px) and (max-width: 1023px) {
  .banner-area.bg-gray.banner-style-six {
    padding-top: 32px;
  }

  .banner-area.banner-style-six.auto-height .content {
    padding-top: 40px;
  }
}

.banner-style-six .answer-box p {
  text-align: left;
}

/* ============================================================
   Inner-page header
   ============================================================ */

.answer-box {
  text-transform: none;
  background: #fff;
  border-left: 4px solid var(--bsi-steel);
  box-shadow: 0 10px 30px rgba(12, 35, 64, 0.08);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0 1rem;
  max-width: min(40rem, 100%);
}

.answer-box p {
  margin: 0;
  color: var(--bsi-navy);
  font-size: 16px;
  line-height: 1.55;
}

.page-hero {
  background: var(--bsi-mist);
  padding: 40px 0 32px;
}

/* Desktop: the nav bar is laid over the top of the page (its box ends at 195px)
   while main starts under the top bar at 124px, so the header opens with enough
   room for the breadcrumb to sit clear of the nav instead of behind it. */
@media (min-width: 1024px) {
  .page-hero {
    padding: 104px 0 40px;
  }
}

/* Grows with the viewport so it always outranks the section headings below it. */
.page-hero h1 {
  font-size: clamp(2rem, 3.2vw + 0.8rem, 3rem);
  color: var(--bsi-navy);
  text-transform: none;
  line-height: 1.15;
  margin: 0.75rem 0 0.5rem;
}

/* Section headings step down with the screen: 40 / 30 / 24px on desktop. */
@media (max-width: 767px) {
  main h2,
  main .site-heading h2 {
    font-size: 1.75rem;
  }

  main h3 {
    font-size: 1.4375rem;
  }

  main h4 {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  main h2,
  main .site-heading h2 {
    font-size: 2rem;
  }

  main h3 {
    font-size: 1.625rem;
  }

  main h4 {
    font-size: 1.375rem;
  }
}

.page-hero .btn {
  margin-top: 0.25rem;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb,
.breadcrumb ol,
.breadcrumb li {
  white-space: normal;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #7d8b96;
}

/* Header with an image: the copy on the left, the image on the right in one
   fixed 4:3 frame so every page header is the same height; on smaller screens
   the image follows the call button. */
.page-hero-media {
  margin-top: 1.5rem;
  /* under the copy there is room for the full width, but small source images
     must not be stretched past their own pixels */
  max-width: 34rem;
}

.page-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

@media (min-width: 992px) {
  .page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 3rem;
    align-items: center;
  }

  .page-hero-media {
    margin-top: 0;
    max-width: none;
  }

  .page-hero-media img {
    box-shadow: 0 18px 44px rgba(12, 35, 64, 0.18);
  }
}

/* ============================================================
   Layout and vertical rhythm
   Paragraph to paragraph        25px (theme)
   Text to h2 / h3 / h4          40 / 32 / 24px above
   h2 / h3 / h4 to text          20 / 16 / 12px below
   Section to section            56px, one padding instead of two stacked
   ============================================================ */

/* Bootstrap rows carry a 30px gutter, so the container needs 15px side padding;
   with the theme's 12px every row spilled 3px past its container. */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

main p {
  line-height: 1.7;
}

main :is(h1, h2, h3, h4) {
  text-wrap: balance;
}

main :is(p, li, dd, summary, td, th) {
  text-wrap: pretty;
}

.content-section {
  padding: 56px 0;
}

/* Consecutive sections share the page background, so one padding separates them.
   A section that sets its own background must restore padding-top itself. */
.content-section + .content-section {
  padding-top: 0;
}

main .page-hero + .content-section {
  padding-top: 48px;
}

/* Homepage: the theme's two-column section and the FAQ area sit on the same white background as the
   section after them, so they hand over with a single padding too. */
main .about-style-six-area + .content-section {
  padding-top: 0;
}

main .faq-area.default-padding {
  padding-bottom: 48px;
}

main :is(.content-section, .limit-band) h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

main :is(.content-section, .limit-band) h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

main :is(.content-section, .limit-band) h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

main :is(.content-section, .limit-band) :is(h2, h3, h4):first-child {
  margin-top: 0;
}

main :is(.content-section, .limit-band) :is(h2 + h3, h3 + h4, h2 + h4) {
  margin-top: 0.75rem;
}

.content-section h2 {
  color: var(--bsi-navy);
}

.content-section h2,
.faq-area h2,
.project-area h2,
.services-style-six-area h2,
.about-style-six h2,
.limit-band h2 {
  text-transform: none;
}

/* Lists keep a paragraph's gap after them. */
.content-section :is(ul, ol) {
  margin-bottom: 1.5rem;
}

.content-section :is(ul, ol):last-child {
  margin-bottom: 0;
}

.content-section :is(ul, ol):last-child > li:last-child {
  margin-bottom: 0;
}

/* Section copy uses the theme container (the same width as the nav and the wide
   tables). A narrower reading measure left 330–550px empty on the right of
   questions, card rows, steps and FAQs on a desktop screen. Text inside a
   column of a row is unaffected, because these blocks are direct children. */

/* An image on its own in a column fills the column and is cropped to a band. */
main :is(.col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7) > img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: 10px;
}

/* An image keeps its own proportions at any width: the width/height attributes
   are only an aspect-ratio hint, never a fixed pixel box. */
main img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   Content components
   ============================================================ */

.tbl-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--bsi-steel);
  background: #fff;
}

.tbl-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}

/* A two-column table always fits; on phones a three-column table wraps to the
   screen as well (judged by eye against sideways scrolling, which hid the last
   column). The markers are written by 32_layout_polish.py. */
.tbl-wrap table.cols-2 {
  min-width: 0;
}

/* From tablet up, a link never breaks inside a cell: it widens its column instead.
   On phones links wrap, otherwise long link texts push a three-column table wide. */
@media (min-width: 768px) {
  .tbl-wrap :is(td, th) a {
    white-space: nowrap;
  }
}

.tbl-wrap th,
.tbl-wrap td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--bsi-steel);
  border-bottom: 1px solid var(--bsi-steel);
}

.tbl-wrap tr > :last-child {
  border-right: 0;
}

.tbl-wrap th {
  background: var(--bsi-navy);
  color: #fff;
  font-weight: 600;
}

.tbl-wrap tbody tr:nth-child(even) {
  background: #f4f8fb;
}

address.contact-facts {
  font-style: normal;
  margin: 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--bsi-steel);
  border-left: 1px solid var(--bsi-steel);
  background: #fff;
}

/* Five cards would leave one alone on a second row of a four-column grid: three columns pair them 3 and 2. */
@media (min-width: 992px) {

  .spec-grid:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* A heading and a short paragraph beside a photo: centred against the photo, so the space is shared
   above and below the text instead of collecting under it (nine pages use this two-column section). */
.content-section .row.align-items-start:has(> [class*="col-"] > img:only-child) {
  align-items: center;
}

.spec-grid .spec-item {
  background: #fff;
  border: 0;
  border-right: 1px solid var(--bsi-steel);
  border-bottom: 1px solid var(--bsi-steel);
  padding: 1rem 1.1rem;
}

.spec-grid dt {
  font-weight: 700;
  color: var(--bsi-navy);
  margin-bottom: 0.35rem;
}

.spec-grid dd {
  margin: 0;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  counter-reset: step;
}

.step-list li {
  position: relative;
  padding: 0.9rem 0.9rem 0.9rem 4rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid var(--bsi-steel);
}

.step-list li:last-child {
  margin-bottom: 0;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bsi-navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Directory lists were a single narrow column, which left the rest of the
   section empty. Three columns from desktop width up (auto-fit, so a two-item
   list fills the row instead of leaving a third of it empty); one column on a
   phone. Lists whose items are sentences (.prose, marked by 32_layout_polish.py)
   get two wide columns so a sentence is never squeezed into a narrow one. */
.content-section > .container > ul.check-list {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0;
  padding-left: 0;
  list-style: none;
  border-top: 1px solid var(--bsi-steel);
  border-left: 1px solid var(--bsi-steel);
  background: #fff;
}

.content-section > .container > ul.check-list > li {
  margin: 0;
  padding: 0.9rem 1rem;
  background: #fff;
  border-right: 1px solid var(--bsi-steel);
  border-bottom: 1px solid var(--bsi-steel);
}

/* The tick sits on the first line, and wrapped lines start under the words. */
.content-section > .container > ul.check-list > li:has(> .fa-check) {
  padding: 0.95rem 1rem 0.95rem 2.45rem;
}

.content-section > .container > ul.check-list > li > .fa-check {
  left: 0.95rem;
  top: 1.4rem;
  width: 1em;
  line-height: 1;
  text-align: center;
}

.content-section > .container > ul.check-list.prose {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

@media (max-width: 767px) {
  .content-section > .container > ul.check-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .content-section > .container > ul.check-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Wide tables (four columns or more; marked by 32_layout_polish.py) use the whole container on
   desktop instead of the reading measure. On a phone each row of a wide table or a three-column
   table becomes a card: the first cell is the card's title and every other cell shows its column
   name, so nothing is squeezed into narrow columns and nothing scrolls sideways. */
.content-section > .container > .tbl-wrap:has(table.wide) {
  max-width: none;
}

@media (max-width: 767px) {
  .tbl-wrap :is(table.wide, table.cols-3) {
    min-width: 0;
  }

  .tbl-wrap :is(table.wide, table.cols-3) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .tbl-wrap :is(table.wide, table.cols-3) tbody tr {
    display: block;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0.9rem;
    border: 1px solid #d5dee6;
    background: #fff;
  }

  /* The column name sits in a gutter on the left and the cell's content flows beside it as ordinary
     text. (A grid would make every inline link its own grid item and cut a sentence into pieces.) */
  .tbl-wrap :is(table.wide, table.cols-3) tbody td {
    position: relative;
    display: block;
    padding: 0.5rem 0 0.5rem 8.8rem;
    border: 0;
    background: transparent;
  }

  .tbl-wrap :is(table.wide, table.cols-3) tbody td::before {
    content: attr(data-label);
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 7.6rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--bsi-navy);
  }

  /* The first cell names the row, so it becomes the card's title; a cell that only says "—"
     (marked "none" by 32_layout_polish.py) is left out; a link fills its line's 40px tap height. */
  .tbl-wrap :is(table.wide, table.cols-3) tbody tr > td:first-child {
    display: block;
    padding: 0.6rem 0 0.3rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bsi-navy);
  }

  .tbl-wrap :is(table.wide, table.cols-3) tbody tr > td:first-child::before {
    display: none;
  }

  .tbl-wrap :is(table.wide, table.cols-3) tbody td.none {
    display: none;
  }

  /* Only a link that has its cell to itself: two padded links stacked in one cell would overlap. */
  .tbl-wrap :is(table.wide, table.cols-3) tbody td a:only-child {
    display: inline-block;
    padding: 8px 0;
    margin: -8px 0;
  }
}

/* Site map (22_site_files.py writes the markup): titles only, in newspaper columns, so a page with
   more than four hundred links stays short enough to scan. Each link keeps a 40px tap height. */
.link-columns {
  columns: 3;
  column-gap: 2.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.link-columns li {
  break-inside: avoid;
  padding: 6px 0;
}

.link-columns a {
  display: inline-block;
  min-width: 40px;
  padding: 8px 0;
  margin: -8px 0;
}

.link-lines {
  columns: 2;
  column-gap: 2.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.link-lines li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
  line-height: 1.9;
}

.link-lines strong {
  color: var(--bsi-navy);
}

@media (max-width: 991px) {

  .link-columns,
  .link-lines {
    columns: 2;
    column-gap: 1.5rem;
  }
}

@media (max-width: 575px) {

  .link-columns,
  .link-lines {
    columns: 1;
  }
}

.check-list {
  padding-left: 1.1rem;
}

.check-list li {
  margin-bottom: 0.45rem;
}

/* Ticked items hang from the tick, so a wrapped line starts under the words. */
.check-list li:has(> .fa-check) {
  position: relative;
  padding-left: 1.6rem;
}

.check-list .fa-check {
  position: absolute;
  left: 0;
  top: 0.42em;
  color: var(--bsi-steel);
  font-size: 0.9em;
}

.check-list:has(.fa-check) {
  padding-left: 0;
}

.faq-item {
  background: #fff;
  border: 1px solid #d5dee6;
  margin-bottom: 0.75rem;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 650;
  color: var(--bsi-navy);
}

.faq-item .faq-body {
  padding: 0 1.1rem 1rem;
}

.faq-item .faq-body > :last-child {
  margin-bottom: 0;
}

/* ============================================================
   Homepage sections
   ============================================================ */

.quote-request .title,
.quote-request p {
  color: var(--bsi-navy-deep);
}

/* The steel card needs the deep navy for body text to reach 4.5:1. */
.quote-request,
.quote-request li,
.quote-request strong {
  color: var(--bsi-navy-deep);
}

.quote-note {
  margin-top: 0.75rem;
  font-size: 16px;
}

.quote-request .btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.25rem;
  background: var(--bsi-navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  width: 100%;
}

.services-style-six-item .content p {
  margin: 0.35rem 0 0;
  font-size: 14px;
  text-transform: none;
}

main .default-padding {
  padding: 80px 0;
}

/* The coverage cards follow the FAQ on the same white background: one gap, not two. */
main .project-area.default-padding {
  padding-top: 24px;
}

.heading-left .row {
  align-items: center;
}

/* Coverage cards: the caption is always readable because the navy veil is
   always on (the theme only shows it on hover) and the label sits above it. */
.project-style-two::after {
  background: var(--bsi-navy-deep);
  opacity: 0.66;
  transform: perspective(400px) rotateY(0deg) scaleX(1);
}

.project-style-two:hover::after {
  opacity: 0.82;
}

.project-style-two .info {
  top: auto;
  bottom: 0;
  transform: none;
  padding: 22px 24px;
}

.project-style-two .info span,
.project-style-two .info h3,
.project-style-two .info h4 {
  opacity: 1;
  margin: 0;
}

.project-style-two .info span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #d5e3ec;
  margin-bottom: 2px;
}

.project-style-two .info h3,
.project-style-two .info h4 {
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
}

.limit-band {
  background: var(--bsi-navy-deep);
  color: #e7eef3;
  padding: 72px 0 64px;
}

.limit-band h2,
.limit-band h3 {
  color: #fff;
}

/* Paragraphs inherit the theme's dark grey unless told otherwise. */
.limit-band p {
  color: #c9d6e2;
}

.limit-band a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.limit-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem;
  height: 100%;
}

.limit-card h3 {
  font-size: 1.15rem;
}

/* The theme thumb is a two-photo grid with a 120px drop on the first image.
   These sections carry one photo, so it fills the column beside the copy. */
.about-style-six-area .row {
  align-items: stretch;
}

/* A plain text link that follows a call button (homepage: "Read more about Bug Sweep Investigators"). */
.btn-note {
  margin: 0.9rem 0 0;
  font-size: 1rem;
}

.btn-note a {
  color: var(--bsi-navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.about-style-six .thumb {
  display: block;
  height: 100%;
  min-height: 420px;
}

.about-style-six .thumb img,
.about-style-six .thumb img:first-child {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: none;
  margin-top: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

main :is(.col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7) > img {
  min-height: 320px;
  object-position: center;
}

.banner-style-six .thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================================================
   Footer
   ============================================================ */

footer .f-items.default-padding {
  padding: 64px 0 56px;
}

footer .widget-title {
  margin-bottom: 14px;
}

footer .f-items .f-item.link li {
  margin-bottom: 4px;
}

/* Full 40px tap height on each footer link; the negative margin keeps the row pitch. */
footer .f-items .f-item.link li a {
  display: inline-block;
  padding: 4px 0;
  margin-bottom: -4px;
  margin-top: -4px;
}

footer .f-item.about p {
  color: #d5e2ea;
}

/* The number is the one thing this footer is for: a small label over a large, white number. */
footer .f-items .f-item .address li strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .8;
}

footer.bg-theme .f-items .f-item .address li .content a {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

footer .f-items .f-item .address li i {
  top: 16px;
}

footer .widget-title {
  color: #fff;
  font-size: 18px;
}

footer .footer-bottom-box {
  padding: 20px 0;
}

footer .footer-bottom p {
  font-size: 15px;
  color: #c9d6e2;
}

/* The strip under the columns: the copyright line on the left, the two legal pages on the right. */
footer .footer-bottom-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 28px;
}

footer .footer-bottom ul.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer .footer-bottom li {
  margin: 0;
  padding: 0;
}

footer .footer-bottom li::before {
  display: none;
}

footer .footer-bottom a {
  display: inline-block;
  padding: 9px 0;
  font-size: 15px;
  color: #c9d6e2;
  text-decoration: none;
}

footer .footer-bottom a:hover,
footer .footer-bottom a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* Below the desktop grid the columns would stack five deep (a 1,900px footer):
   the about column takes the full width and the four link columns go two abreast. */
@media (max-width: 991px) {
  footer .f-items.default-padding {
    padding: 44px 0 36px;
  }

  footer .f-items .row > .item {
    flex: 0 0 50%;
    max-width: 50%;
  }

  footer .f-items .row > .col-lg-4.item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  footer .f-items .item + .item {
    margin-top: 28px;
  }

  footer .f-items .f-item.link li {
    margin-bottom: 0;
  }

  footer .f-items .f-item.link li a {
    font-size: 15px;
    line-height: 1.5;
    padding: 9px 0;
    margin-top: -9px;
    margin-bottom: -9px;
  }

  footer .footer-bottom-box {
    padding: 18px 0;
  }
}

/* ============================================================
   Mouse-over states
   The theme's own states stay where they are complete (the wipe on the call buttons, the
   fill on the cards, the slide on the footer links, the zoom on the photo cards). Where the
   theme assumed a different block, or gave a clickable thing no visible state at all, the
   state is completed here, in the site's own navy and steel. Effects that are only for
   show apply to mice and trackpads, so they do not stay stuck on a phone after a tap.
   ============================================================ */

/* Service cards (homepage, services page): the theme fills the card with the brand colour and
   turns its title white, but it only knows an h4 and an icon. These cards carry an h3 and a
   sentence, so both change with the panel, at the panel's speed; otherwise a navy panel came up
   behind navy text and the title disappeared. */
.services-style-six-item a :is(h3, h4, p) {
  transition: color 0.35s ease-in-out;
}

.services-style-six-item a:hover :is(h3, h4) {
  color: #fff;
}

.services-style-six-item a:hover p {
  color: #d5e2ea;
}

/* Service cards share one height, however many there are and however the row wraps.
   The row that holds the cards (not the heading row) becomes a grid. 1fr rows resolve
   to the tallest card, so a two-line title does not leave its neighbours short.
   Columns stay equal: three from the desktop breakpoint, two on a tablet, one on a phone. */
.services-style-six-area > .container > .row:has(> .services-style-six) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.services-style-six-area .services-style-six {
  display: flex;
  width: auto;
  max-width: none;
  flex: none;
}

.services-style-six-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.services-style-six-item > a {
  flex: 1 1 auto;
  height: 100%;
  align-items: flex-start;
}

.services-style-six-item .content {
  width: 100%;
}

@media (max-width: 991px) {
  .services-style-six-area > .container > .row:has(> .services-style-six) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .services-style-six-area > .container > .row:has(> .services-style-six) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Main menu. The theme gives its links no visible state, and its rule that colours them white
   carries six classes, so the colour rules here carry seven. The theme draws the drop-down arrow
   in the link's ::after and strips any background image from a hovered link, so the underline is
   the link's ::before, which the theme only uses for the phone menu. Navy bar at the top of the
   page (light steel line and text), white bar once it sticks (dark steel); the theme switches
   between them by removing "no-background". The line stays under the item whose menu is open and
   under the item for the part of the site the page is in (white, or navy on the stuck bar). */
@media (min-width: 1024px) {

  nav.navbar.validnavs {
    --menu-line: var(--bsi-steel);
    --menu-current: var(--bsi-navy);
  }

  nav.navbar.validnavs.no-background {
    --menu-line: var(--color-secondary);
    --menu-current: #fff;
  }

  nav.navbar.validnavs.navbar-fixed.nav-box ul.nav > li > a {
    transition: color 0.25s ease-in-out;
  }

  nav.navbar.validnavs.navbar-fixed.nav-box ul.nav > li > a::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 2px;
    background: var(--menu-line);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease-in-out;
  }

  nav.navbar.validnavs.navbar-fixed.nav-box.navbar-sticky ul.nav > li > a:hover::before,
  nav.navbar.validnavs.navbar-fixed.nav-box.navbar-sticky ul.nav > li.dropdown.on > a::before {
    transform: scaleX(1);
  }

  nav.navbar.validnavs.navbar-fixed.nav-box.navbar-sticky ul.nav > li > a:hover,
  nav.navbar.validnavs.navbar-fixed.nav-box.navbar-sticky ul.nav > li.dropdown.on > a {
    color: var(--menu-line);
  }

  nav.navbar.validnavs.navbar-fixed.nav-box ul.nav > li > a[aria-current]::before {
    background: var(--menu-current);
    transform: scaleX(1);
  }

  /* The arrow turns over while the menu under it is open (it has to be an inline block to turn). */
  nav.navbar.validnavs ul.nav > li.dropdown > a.dropdown-toggle::after {
    display: inline-block;
  }

  nav.navbar.validnavs ul.nav > li.dropdown.on > a.dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* Where the links sit closer together (9px of side padding from 1200 to 1399px, 13px from
   1400px; 12px below that), the line follows the text. */
@media (min-width: 1200px) and (max-width: 1399px) {

  nav.navbar.validnavs.navbar-fixed.nav-box ul.nav > li > a::before {
    left: 9px;
    right: 9px;
  }
}

@media (min-width: 1400px) {

  nav.navbar.validnavs.navbar-fixed.nav-box ul.nav > li > a::before {
    left: 13px;
    right: 13px;
  }
}

/* Drop-down entries (desktop). The theme forces the background of a hovered link back to clear,
   and its entry rule outranks the normal link hover, so an entry did not change at all. The row
   now takes the mist tint and the text goes navy; the keyboard focus does the same. */
@media (min-width: 1024px) {

  nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu > li {
    transition: background-color 0.2s ease;
  }

  nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu > li > a {
    transition: color 0.2s ease;
  }

  nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu > li:hover,
  nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu > li:focus-within {
    background-color: #eef4f9;
  }

  nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu > li > a:hover,
  nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu > li > a:focus-visible {
    color: var(--bsi-navy-deep);
  }
}

/* The phone number in the top bar: it darkens a shade and is underlined. */
.top-bar-area .info a {
  transition: color 0.2s ease;
}

.top-bar-area .info a:hover {
  color: var(--bsi-steel);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.14em;
}

/* Footer links slide 10px to the right under the mouse (the theme's own touch); they now
   glide instead of jumping. The theme colours them a periwinkle (#b1c2f5) that belongs to no
   other part of this site, so at rest they take the site's light steel; under the mouse they
   still turn white. */
footer.bg-theme .f-items .f-item.link li a {
  color: var(--color-secondary);
}

footer .f-items .f-item.link li a {
  transition: margin-left 0.25s ease-in-out, color 0.25s ease-in-out;
}

/* The phone number in the footer is the one link there without a state of its own. */
footer .f-items .f-item.about .address a {
  transition: color 0.2s ease;
}

footer .f-items .f-item.about .address a:hover,
footer .f-items .f-item.about .address a:focus-visible {
  color: var(--color-secondary);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.14em;
}

/* "Read more about Bug Sweep Investigators" under the homepage call button is underlined from
   the start, so the colour is what moves. */
.btn-note a {
  transition: color 0.2s ease;
}

.btn-note a:hover,
.btn-note a:focus-visible {
  color: var(--bsi-steel);
}

/* A link inside a sentence, a list item, a table cell or a heading is navy like the text around
   it; the underline is what says "this is a link" when the mouse is on it. A card, a picture or
   a tile that is one big link never gets it (the last rule covers a card that is a list item). */
main :is(p, li, dd, dt, td, th, summary, h1, h2, h3, h4, h5, h6) > a:not(.btn):not(.btn-call):hover,
main :is(p, li, dd, dt, td, th, summary) :is(span, strong, em, b, small) > a:not(.btn):not(.btn-call):hover {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.16em;
}

main :is(p, li, dd, dt, td, th, summary, h1, h2, h3, h4, h5, h6) > a:not(.btn):not(.btn-call):has(:is(h2, h3, h4, h5, p, div, ul, ol, img, figure)):hover {
  text-decoration: none;
}

/* The wide call button in the homepage quote panel: the same darkening as every other call button. */
.btn-call:hover,
.btn-call:focus-visible {
  background: var(--bsi-navy-deep);
  color: #fff;
}

/* For mice and trackpads only: a FAQ question is a button, so its row lightens; a table row
   lightens to keep the line of a wide table under the eye; the photo cards zoom. */
@media (hover: hover) {

  details.faq-item:hover {
    background: #f4f8fb;
    border-color: #c9d6e2;
  }

  .tbl-wrap tbody tr:hover {
    background: #eaf1f7;
  }
}

/* The theme also tilts the photo 1° while it zooms; the zoom alone reads cleaner. */
.project-style-two:hover img {
  transform: scale(1.05);
}

/* On a phone a tap would switch these on and leave them on until the next tap. */
@media (hover: none) {

  .project-style-two:hover img {
    transform: none;
  }

  .project-style-two:hover::after {
    opacity: 0.66;
  }

  footer .f-items .f-item.link li a:hover {
    margin-left: 0;
  }
}

/* ============================================================
   Small screens
   ============================================================ */

/* Below the desktop grid the footer keeps the logo, the number and the links; the description
   paragraph is the one thing it can spare there. */
@media (max-width: 991px) {
  footer .f-item.about p {
    display: none;
  }
}

@media (max-width: 575px) {
  footer .f-items .item + .item {
    margin-top: 22px;
  }
}

@media (max-width: 767px) {
  .banner-style-six h1 {
    font-size: 28px;
  }

  .banner-style-six h1 strong {
    font-size: 36px;
  }

  .banner-area,
  .banner-style-six .content,
  .page-hero,
  .page-hero .container {
    max-width: 100%;
    overflow-x: clip;
  }

  .banner-area.banner-style-six.auto-height .content {
    margin-top: 0;
  }

  .banner-style-six {
    padding-top: 32px;
  }

  main .default-padding {
    padding: 50px 0;
  }

  .content-section {
    padding: 44px 0;
  }

  main .page-hero + .content-section {
    padding-top: 36px;
  }

  /* Long call buttons get the whole width rather than breaking early. */
  .btn-md {
    padding: 14px 22px;
    font-size: 15px;
  }

  /* Tables on a phone: slightly smaller cells; three-column tables show every
     column, wider ones (four columns or more) still scroll inside their frame. */
  .tbl-wrap th,
  .tbl-wrap td {
    padding: 0.7rem;
    font-size: 16px;
    line-height: 1.5;
  }

  .tbl-wrap table {
    min-width: 30rem;
  }

  .tbl-wrap table.cols-3 {
    min-width: 0;
  }
}

/* The theme opens desktop dropdowns on hover only. Keyboard users reach the
   submenu links by Tab, so reveal the panel as soon as it holds focus. */
@media (min-width: 1023px) {
  nav.navbar.validnavs li.dropdown:focus-within > ul.dropdown-menu {
    display: block !important;
    opacity: 1 !important;
  }
}

/* Eyebrow above an h2. A heading tag here skipped from h2 to h5. */
.heading-left .heading-kicker {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 20px;
  margin-bottom: 0.35rem;
}
