/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

:root {
  --dbd-primary: #223d76;
  --dbd-secondary: #999999;
}

body.admin-bar .site-header {
  top: 32px;
}

.dbd-container {
  width: 95%;
  max-width: 1500px;
  margin: 0 auto;
}

.dbd-site-header {
  background-color: var(--dbd-primary);
  position: fixed;
  z-index: 9999;
  width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.dbd-site-header .dbd-container {
  display: flex;
  align-items: flex-start;
}

.dbd-header-left {
  display: flex;
  align-items: center;
}

.dbd-site-header .dbd-container .logo-wrap {
  width: 180px;
  padding: 1rem 0;
}

.dbd-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

.header-social {
  display: flex;
  gap: 0.6rem;
}

.header-contact {
  display: flex;
  align-items: center;
}

.header-contact-method {
  color: white;
  background-color: transparent;
  margin: 0 0 0 0.7rem;
  padding: 0.5rem;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.header-contact-method p {
  padding: 0;
  margin: 0;
  font-weight: 500;
}

.header-contact-method a,
.header-contact-method a:visited {
  text-decoration: none;
  color: white !important;
}

.dbd-mobile-tel-icon {
  display: none;
}

/* NAVIGATION
  ------------------------------------------------*/

/* Mobile Menus */

/* Toggle Button (Hamburger) */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 25px;
  background: transparent;
  border: none;
  padding: 0;
  margin-left: 1.5rem;
  cursor: pointer;
}

.mobile-nav-toggle:hover {
  background-color: transparent;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 4px;
  background-color: #fff;
  transition: transform 0.3s ease;
}
/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background: var(--dbd-primary);
  color: #fff;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  touch-action: pan-y;
  box-shadow: -5px 0 5px rgba(0, 0, 0, 0.3); /* Left-side shadow */
}

.mobile-nav-overlay.open {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 2rem;
}

.mobile-nav-close .icon-close {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  display: block;
}

.mobile-menu {
  padding: 4rem 1.5rem 2rem;
}

.mobile-menu li {
  list-style: none;
}

.mobile-menu li a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 1rem 0;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .menu-item-has-children > a {
  position: relative;
  padding-right: 2rem;
}

.mobile-menu .menu-item-has-children > a::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.9rem;
  transition: transform 0.3s ease;
}

.mobile-menu .menu-item.submenu-open > a::after {
  content: "-";
}

.mobile-menu .header-qt-btn {
  text-align: center !important;
  margin: 2rem auto 0 !important;
  background-color: #111111;
}

/* Mobile Menu - Sub Menus */

.mobile-menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-left: 1rem;
}

.mobile-menu .menu-item.submenu-open > .sub-menu {
  max-height: 500px; /* enough to show any list */
}

/*Main Nav - Large Screens*/

.main-nav {
  display: none;
  margin-bottom: 0.2rem;
}

.main-nav > ul {
  list-style-type: none;
  margin: 0;
  display: flex;
  align-items: center;
}

.main-nav > ul > li {
  padding: 0.4rem 0.7rem;
  position: relative;
}

.main-nav > ul > li > a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  font-weight: 400;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
}

.main-nav > ul > li.header-qt-btn > a {
  font-weight: 700;
}

.main-nav ul > li::after {
  display: block;
  content: "";
  border-bottom: solid 2px white;
  transform: scaleX(0);
  transition: transform 250ms ease-in-out;
}

.main-nav > ul > li:hover::after {
  transform: scaleX(1);
}

.header-qt-btn {
  border: solid 1px #fff;
  color: #fff;
  border-radius: 4px;
  margin-left: 1rem;
  text-decoration: none;
}

/*Main Nav - Large Screens - dropdown menus*/

.main-nav ul li a:not(:only-child):after {
  content: "\25bc";
  font-size: 0.6em;
  position: relative;
  top: -2px;
  left: 2px;
  color: white;
}

/* Add arrow to sub-menu */
.main-nav .menu-item-has-children .sub-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
}

.main-nav .sub-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out,
    visibility 0.3s;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: var(--dbd-primary);
  margin-top: 10px;
  padding: 0.3rem 0.8rem;
  border: solid 1px var(--dbd-secondary);
  border-radius: 4px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
  list-style-type: none;
  width: 300px;
}

/* Open state for touch/click */
.main-nav .menu-item-has-children.nav-open > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.main-nav .sub-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.3rem;
  transition: padding 0.2s ease-in-out;
}

.main-nav .sub-menu a:hover {
  padding-left: 0.6rem;
}

/* Footer
------------------------------------------*/

.dbd-site-footer {
  background-color: var(--dbd-primary);
  padding: 2rem 0;
  border-top: solid 4px var(--dbd-secondary);
  border-bottom: solid 4px var(--dbd-secondary);
}

.dbd-site-footer .dbd-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 1rem;
}

.dbd-site-footer h3 {
  color: #fff;
  margin: 0;
  padding: 0;
}

.dbd-site-footer .footer-col:not(:last-child) {
  margin-bottom: 1.5rem;
}

.dbd-site-footer p,
.dbd-site-footer a,
.dbd-site-footer address {
  color: #ffff;
  margin: 0;
  padding: 0;
  text-decoration: none;
  font-style: normal;
  line-height: 1.4;
}

.dbd-site-footer address {
  font-size: 0.9em;
}

.dbd-site-footer p.footer-company-details {
  font-size: 0.9em;
  margin: 1rem 0;
}

.footer-contact-method:not(:last-child) {
  margin-bottom: 1rem;
}

.dbd-site-footer nav {
  margin-top: 0.5rem;
}

.dbd-site-footer nav ul {
  margin: 0;
  list-style: none;
}

.dbd-site-footer nav ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

.dbd-site-footer nav ul li::before {
  content: "\003E";
  color: var(--dbd-secondary);
  font-weight: 900;
  font-size: 1.1em;
  margin-right: 0.4rem;
}

.footer-col .social-links {
  display: flex;
  margin-top: 0.6rem;
  margin-bottom: 1.5rem;
}

.footer-col .social-links a {
  margin-right: 0.4rem;
}

.dbd-sub-footer p,
.dbd-sub-footer a {
  margin: 0;
  padding: 0;
  font-size: 0.9em;
}

.dbd-sub-footer .dbd-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 0.3rem 0;
}

/*
Media Queries
-------------------------------------------*/

@media (hover: hover) {
  .main-nav .menu-item-has-children:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop */
@media (min-width: 1251px) {
  /* Header and Navigation*/

  .dbd-site-header .dbd-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .header-contact {
    margin-bottom: 1rem;
  }

  .header-contact-method {
    border: solid 1px white;
    border-top: none;
  }

  .main-nav {
    display: flex;
    align-items: center;
  }

  .mobile-nav-toggle {
    display: none;
  }

  /* Footer */
  .dbd-site-footer .dbd-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .dbd-site-footer .dbd-container > div {
    margin-bottom: 0;
  }

  .footer-col-4 {
    max-width: 30%;
  }

  .footer-services-menu {
    margin-bottom: 1rem;
  }

  .footer-company-details {
    margin-bottom: 0.8rem;
  }

  .footer-company-details p {
    font-size: 0.85em;
  }

  .footer-legal {
    background-color: #ccc;
    padding: 0.3rem 1rem;
  }

  .footer-legal p {
    font-size: 0.8em;
    text-align: center;
  }

  .dbd-sub-footer .dbd-container {
    text-align: center;
    flex-direction: row;
    justify-content: center;
  }
}

/* Tablets Landscape */
@media (min-width: 768px) and (max-width: 1250px) {
  .dbd-site-header .dbd-container {
    justify-content: space-between;
    align-items: center;
  }

  .dbd-header-right {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }

  .header-contact-method {
    border-radius: 8px;
    border: solid 1px white;
  }
  .header-email {
    display: none;
  }
}

/* Mobiles*/
@media (max-width: 767px) {
  .dbd-site-header .dbd-container {
    align-items: center;
    justify-content: space-between;
  }

  .dbd-site-header .dbd-container .logo-wrap {
    width: 140px;
    padding: 0.6rem 0;
  }

  .dbd-header-right {
    width: 30%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .dbd-header-right .header-contact {
    display: none;
  }

  .dbd-mobile-tel-icon {
    display: block;
  }

  .mobile-nav-overlay {
    width: 90%;
  }
}
