/* Divi's JS-injected back-to-top button: removed per Matt (also overlapped
   the mobile sticky bar). */
.et_pb_scroll_top {
  display: none !important;
}

/* ---- Dark header theme for the horizontal wordmark logo ---- */

#website-header {
  background-color: #0a0a0a !important;
}

/* wordmark replaces the oversized circle badge: inline, header-sized,
   vertically centered against the taller phone + nav column */
#website-header .et_pb_row_0_tb_header {
  display: flex;
  align-items: center;
}

#website-header .et_pb_image_0_tb_header {
  margin: 0 !important;
}

#website-header .et_pb_image_0_tb_header img {
  max-height: 64px;
  width: auto !important;
}

#website-header .et_pb_image_0_tb_header .et_pb_image_wrap {
  display: inline-block;
}

/* top-level nav links: white on dark; keep the cyan active pill */
#website-header .et-menu > li > a {
  color: #ffffff !important;
}

/* theme hover/active state paints a cyan pill behind top-level items —
   text must go white, not cyan (cyan-on-cyan = invisible) */
#website-header .et-menu > li > a:hover {
  color: #ffffff !important;
  opacity: 1;
}

#website-header .et-menu li.current-menu-item > a,
#website-header .et-menu li.current_page_item > a {
  color: #ffffff !important;
}

/* dropdown stays a light panel; keep its links dark */
#website-header .et-menu li li a {
  color: #333333 !important;
}

/* dropdown hover also gets a cyan row from the theme — white text there too */
#website-header .et-menu li li a:hover {
  color: #ffffff !important;
}

/* "Call or text today!" line */
#website-header .header-phone,
#website-header .header-phone a {
  color: #00cfff !important;
}

/* mobile hamburger: cyan icon on its white button */
#website-header .mobile_menu_bar:before {
  color: #00cfff !important;
}

/* footer wordmark: sized down and kept inside the black footer (the old
   circle badge intentionally overlapped the section above; wordmark shouldn't) */
.et_pb_image_0_tb_footer {
  margin-top: 0 !important;
}

.et_pb_image_0_tb_footer img {
  max-height: 80px;
  width: auto !important;
  margin-top: 30px;
}

/* mobile header: the theme pulled the menu module up -60px to sit beside
   the old oversized circle badge; with the short wordmark that pushed the
   hamburger above the viewport */
@media (max-width: 980px) {
  #website-header .et_pb_menu_0_tb_header {
    margin-top: 0 !important;
  }

  /* the theme pins the mobile header bar at 60px (height AND max-height)
     while the row inside was taller, so content hung below the visible
     bar — let the bar size itself to its content. max-height reset per
     Codex review: without it the fix only held while padding+logo == 60px */
  #website-header {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  /* hamburger optical centering: Divi nudges it down via transform + top */
  #website-header .mobile_menu_bar {
    transform: none;
  }

  #website-header .mobile_menu_bar::before {
    top: 0 !important;
  }

  #website-header .et_pb_row_0_tb_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0 !important;
  }

  /* both columns become centered flex boxes so logo and hamburger share
     one vertical centerline */
  #website-header .et_pb_row_0_tb_header > .et_pb_column {
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
  }

  #website-header .et_pb_row_0_tb_header > .et_pb_column:last-child {
    justify-content: flex-end;
  }

  #website-header .et_pb_image_0_tb_header,
  #website-header .et_pb_image_0_tb_header .et_pb_image_wrap {
    display: flex;
    align-items: center;
  }

  #website-header .et_pb_menu_0_tb_header,
  #website-header .et_pb_menu_0_tb_header .et_pb_menu_inner_container,
  #website-header .et_pb_menu_0_tb_header .et_pb_menu__wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 !important;
    margin: 0 !important;
  }

  #website-header .et_pb_image_0_tb_header img {
    height: 38px;
    max-width: none;
  }

  /* the open menu panel is absolutely positioned — its containing block
     must be the full-width row, not the flex-shrunk hamburger wrapper */
  #website-header .et_pb_row_0_tb_header {
    position: relative;
  }

  #website-header .et_pb_row_0_tb_header > .et_pb_column,
  #website-header .et_pb_menu_0_tb_header,
  #website-header .et_pb_menu_inner_container,
  #website-header .et_pb_menu__wrap,
  #website-header .et_mobile_nav_menu,
  #website-header .mobile_nav {
    position: static !important;
  }

  #website-header .et_mobile_menu {
    left: 0;
    right: 0;
    top: 100%;
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ---- Homepage service cards (4-up row): equal-height cards, buttons
   pinned to a shared baseline and behaving like buttons ---- */

.et_pb_row_3.et_pb_equal_columns > .et_pb_column {
  display: flex;
  flex-direction: column;
}

.et_pb_row_3 .et_pb_button_module_wrapper {
  margin-top: auto !important;
  padding-bottom: 24px;
}

.et_pb_row_3 a.et_pb_button {
  white-space: nowrap;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.et_pb_row_3 a.et_pb_button:hover {
  background-color: #00b8e6 !important;
  color: #ffffff !important;
}

@media (max-width: 980px) {
  .et_pb_row_3 a.et_pb_button {
    white-space: normal;
  }
}

/* ---- Service-area interlinking ---- */

.ssd-area-grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
}

@media (max-width: 767px) {
  .ssd-area-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ssd-area-city strong {
  font-size: 16px;
}

.ssd-area-city a {
  color: #00cfff;
  text-decoration: underline;
}

.ssd-nearby-section {
  padding-top: 0 !important;
}

.ssd-nearby-section a {
  color: #00cfff;
  text-decoration: underline;
}

.ssd-footer-cities {
  text-align: center;
  font-size: 13px;
  padding-top: 10px;
  line-height: 2;
}

.ssd-footer-cities .et_pb_text_inner {
  color: rgba(255, 255, 255, 0.6) !important;
}

.ssd-footer-cities a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
}

.ssd-footer-cities a:hover {
  color: #00cfff !important;
}

.ssd-footer-cities .ssd-footer-cities-label {
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ssd-footer-cities .ssd-sep {
  color: rgba(255, 255, 255, 0.3);
  padding: 0 9px;
}

/* Sticky mobile contact bar — shown only at Divi's mobile breakpoint. */
.ssd-sticky-bar {
  display: none;
}

@media (max-width: 980px) {
  .ssd-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
    /* safe-area lives on the BAR, not the buttons: buttons keep constant
       height while a dark strip absorbs the home-indicator inset when the
       browser toolbar collapses (was making buttons visibly grow on scroll) */
    background: #101010;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .ssd-sticky-bar a {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 48px;
    padding: 10px 8px;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }

  .ssd-sticky-call {
    background-color: #101010;
    color: #ffffff;
  }

  .ssd-sticky-estimate {
    background-color: #00cfff;
    color: #ffffff;
  }

  /* keep the bar from covering the footer's last content */
  body {
    padding-bottom: 52px;
  }
}
