/*
Theme Name:   Ekko Child (Forte Estimating)
Template:     ekko
Description:  Child theme for forteestimating.com. Site-specific CSS, global footer and Services templates live here so the parent theme can be replaced safely.
Version:      1.0.0
Text Domain:  ekko-child
*/

/* ==========================================================================
   1. Site customisations (moved from the end of the parent style.css)
   ========================================================================== */

/* Service sidebar list (Services / Trades / Industries) */
.service_list-v2 .wpb_wrapper {
  padding: 0
}

.service_list-v2 .widget_nav_menu {
  margin: 0
}

.service_list-v2 [class*="-list-container"] ul.menu {
  list-style: none;
  margin: 0;
  padding: 0
}

.service_list-v2 [class*="-list-container"] ul.menu li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgb(255 255 255 / .15)
}

.service_list-v2 [class*="-list-container"] ul.menu li:last-child {
  border-bottom: none
}

.service_list-v2 [class*="-list-container"] ul.menu li a {
  display: block;
  background: #dd8721 !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 500;
  padding: 16px 20px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease
}

.service_list-v2 [class*="-list-container"] ul.menu li:first-child a {
  background: #dd8721;
  color: #fff !important;
  font-weight: 700
}

.service_list-v2 [class*="-list-container"] ul.menu li a:hover {
  background: #0a2f5c !important;
  color: #fff !important
}

.service_list-v2 [class*="-list-container"] ul.menu li.current-menu-item a,
.service_list-v2 [class*="-list-container"] ul.menu li.current_page_item a {
  background: #0a2f5c !important;
  color: #fff !important;
  font-weight: 700
}

.kd-icon-list .kd-icon-list-item {
  margin-bottom: 20px !important
}

.services_fAqs h4 {
  padding: 20px !important;
  font-size: 16px !important;
  display: block !important
}

/* Page title bar with featured image */
.entry-header .header-overlay {
  position: absolute;
  width: 100%;
  height: 105%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center
}

.entry-header .header-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / .5);
  z-index: 1
}

.entry-header .container {
  position: relative;
  z-index: 2
}

.entry-header .section-heading {
  font-size: 30px !important;
  color: #fff !important
}

.breadcrumbs {
  color: #fff !important
}

.service_right-separator {
  border-right: 1px solid rgb(0 0 0 / .2)
}

/* Owl carousels: let slides size to their content */
.owl-wrapper-outer {
  height: auto !important
}

.owl-wrapper {
  height: auto !important;
  display: flex;
  align-items: flex-start
}

.owl-item {
  height: auto !important
}

.kd-photobox {
  height: auto !important
}

/* ==========================================================================
   2. Global footer (rendered from Global Blocks > Site Footer)
   Same spacing rules the footer had when it lived inside each page.
   ========================================================================== */

.forte-global-footer {
  position: relative;
  clear: both
}

.forte-global-footer .single-page-content {
  padding: 0 15px
}

.wpb-js-composer .forte-global-footer .single-page-content {
  padding: 0
}

.forte-global-footer p {
  margin-bottom: 20px
}

.forte-global-footer iframe {
  max-width: 100%
}

/* Same framed layout as the content area (Theme Options > Custom CSS gives #primary these values),
   so the full-width footer is inset 30px on desktop exactly like before. */
@media (min-width: 960px) {
  .forte-global-footer {
    margin: 0 30px;
    overflow-x: hidden
  }
}

/* ==========================================================================
   3. Responsive fixes (desktop >= 1280px is unchanged)
   ========================================================================== */

/* Buttons: the theme sizes them to "max-content", so long labels
   ("Explore More About Our Services") ran off the screen on phones. */
@media (max-width: 767px) {
  .tt_button {
    max-width: 100%;
    height: auto;
    min-height: 48px;
    padding-top: 10px;   /* 10 + 24px line + 10 + 2x2px border = the original 48px for one-line labels */
    padding-bottom: 10px
  }

  .tt_button .prim_text {
    white-space: normal;
    min-width: 0;
    text-align: center
  }
}

/* Icon cards (Residential, Commercial, Airports ...): the cards are 12rem wide but sit in
   six 1/6 columns, which are narrower than 12rem below 1280px, so the cards overlapped.
   Show 3 per row on tablets / small laptops and 2 per row on large phones. */
@media (min-width: 768px) and (max-width: 1279px) {
  .vc_row.vc_inner > .vc_col-sm-2:has(> .vc_column-inner .key-icon-box.boxshadow) {
    width: 33.3333%
  }

  .vc_row.vc_inner > .vc_col-sm-2:has(> .vc_column-inner .key-icon-box.boxshadow):nth-child(3n+1) {
    clear: left
  }
}

@media (min-width: 601px) and (max-width: 767px) {
  .vc_row.vc_inner > .vc_col-sm-2:has(> .vc_column-inner .key-icon-box.boxshadow) {
    float: left;
    width: 50%
  }

  .vc_row.vc_inner > .vc_col-sm-2:has(> .vc_column-inner .key-icon-box.boxshadow):nth-child(2n+1) {
    clear: left
  }
}

@media (min-width: 601px) and (max-width: 1279px) {
  /* some of these columns carry a desktop-only 80px right padding from the page builder */
  .vc_row.vc_inner > .vc_col-sm-2:has(> .vc_column-inner .key-icon-box.boxshadow) > .vc_column-inner {
    padding-left: 15px !important;
    padding-right: 15px !important
  }

  .vc_col-sm-2 .key-icon-box.boxshadow {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px
  }
}
