/*!
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-light-blue: #31a7e0;
  --dbd-dark-blue: #1c3e7f;
}

/* General Styles */

body.admin-bar .main-header-bar {
  top: 32px; /* standard admin bar height on desktop */
}

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

.dbd-site-header .dbd-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Headers */

.dbd-site-header {
  width: 100%;
  z-index: 1000;
}

.main-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 0;
  border-top: solid 3px var(--dbd-light-blue);
  background-color: var(--dbd-dark-blue);
  border-bottom: solid 2px #fff;
  transition:
    background-color 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

.sub-header {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6px 0;
  margin-top: 90px; /* height of the main header bar */
}

.sub-header img {
  display: inline-block;
  margin: 0 0.3rem;
}
.sub-header p {
  margin: 0;
  padding: 0;
}
/* Logo */
.logo-wrap {
  padding: 0.4rem 0 0.6rem 0;
}

.site-logo {
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
  height: auto;
  max-width: 100%;
}

/* Header Scroll State */
.dbd-site-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dbd-site-header.scrolled .site-logo {
  filter: none;
}

/* Smooth Transition for Logo Visibility */
.site-logo[data-white] {
  filter: brightness(0) invert(1); /* Ensure proper visibility for the white version */
}

.scrolled .site-logo {
  filter: none; /* Default for the coloured version */
}

.header-right {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 70%;
}

.header-contact {
  display: flex;
}

.header-contact p {
  color: #fff;
  padding: 0;
  margin: 0;
}

.header-contact-method {
  padding: 0.5rem 0.7rem;
  background-color: var(--dbd-light-blue);
  border-radius: 3px;
}

.header-contact-method .header-tel,
.header-contact-method .header-tel:visited {
  color: #fff;
  text-decoration: none;
}

.header-contact-method-icon {
  display: none;
}

/* Nav
------------------------------------------*/

/* Mobile Navigation Base Styles */
.mobile-nav-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
  background-image: linear-gradient(
    130deg,
    var(--dbd-light-blue),
    var(--dbd-dark-blue)
  );
  z-index: 999999;
  transform: translateX(100%); /* Start fully off-screen */
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.4rem 2rem;
}

.mobile-nav-container.is-active {
  transform: translateX(0);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.mobile-nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Mobile Logo */
.mobile-logo {
  max-width: 150px;
  height: auto;
}

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

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

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease;
}

/* Change to Black When Header is Scrolled */
.dbd-site-header.scrolled .mobile-nav-toggle {
  color: var(--dbd-teal);
}

/* Close Button (X) */
.mobile-nav-close {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
  padding: 0;
}

.mobile-nav-close span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  top: 50%;
  left: 0;
}

.mobile-nav-close span:first-child {
  transform: rotate(45deg);
}

.mobile-nav-close span:last-child {
  transform: rotate(-45deg);
}

/* Mobile Navigation Menu Base Styles */
.mobile-nav {
  margin-top: 30px;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 15px 0;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.1em;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a:visited {
  color: #fff;
}

/* Mobile Navigation Submenu Styles */
.mobile-nav .menu-item-has-children {
  position: relative;
}

.mobile-nav .menu-item-has-children > a {
  padding-right: 50px;
}

.mobile-nav .sub-menu {
  display: none;
  padding-left: 20px;
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav .sub-menu.is-active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.mobile-nav .sub-menu li:last-child {
  border-bottom: none;
}

/* Submenu Toggle Button */
.submenu-toggle {
  position: absolute;
  right: 0;
  top: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.submenu-toggle::before,
.submenu-toggle::after {
  content: "";
  position: absolute;
  background-color: currentColor;
  transition: transform 0.3s ease;
}

.submenu-toggle::before {
  width: 2px;
  height: 12px;
  top: 14px;
  right: 19px;
}

.submenu-toggle::after {
  width: 12px;
  height: 2px;
  top: 19px;
  right: 14px;
}

.submenu-open > .submenu-toggle::before {
  transform: scaleY(0);
}

/* Animation for submenu opening */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Better tap targets for mobile */
.mobile-nav a,
.mobile-nav .submenu-toggle {
  min-height: 44px;
}

/* Indent levels */
.mobile-nav .sub-menu .sub-menu {
  padding-left: 15px;
}

/* Visual hierarchy for levels */
.mobile-nav .sub-menu a {
  font-size: 0.95em;
}

.mobile-nav .sub-menu .sub-menu a {
  font-size: 0.9em;
}

/* Prevent body scroll when mobile nav is open */
body.mobile-nav-active {
  overflow: hidden;
}

/* Reset list styles and make the menu a flex container */
.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  text-decoration: none;
  padding: 10px 15px;
  transition: color 0.3s ease;
  display: inline-block;
}

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

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

/* Dropdown Arrow (Triangle) */
.main-nav > ul > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor; /* Matches the text color */
  vertical-align: middle;
  transition: border-top-color 0.3s ease;
}

/* Submenu Styling */

.main-nav ul ul::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--dbd-light-blue);
  z-index: 1;
}

.main-nav ul ul {
  list-style: none;
  width: 300px;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  background-color: var(--dbd-light-blue);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.main-nav ul ul li > a {
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  color: #fff;
  transition: padding 0.2 ease-in-out;
}

.main-nav ul ul li > a:hover {
  padding-left: 18px;
}

/* Show Submenu on Hover */
.main-nav > ul > li:hover > ul {
  opacity: 1;
  transform: translateY(0); /* Slide into place */
  pointer-events: auto; /* Enable interaction */
}

/* Adjust for Hover State */
.main-nav > ul > li:hover > ul::before {
  opacity: 1; /* Ensure visibility when submenu appears */
  transform: translateY(0); /* Reset any transforms */
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* Header State for Transparent and Scrolled */
.dbd-site-header {
  /*   background: transparent;
    transition: background-color 0.3s ease; */
}

.dbd-site-header .main-nav > ul > li > a {
  color: white;
}

.dbd-site-header .main-nav > ul > li.menu-item-has-children > a::after {
  border-top-color: white;
}

.dbd-site-header.scrolled {
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dbd-site-header.scrolled .main-nav > ul > li > a {
  color: var(--dbd-dark-blue);
}

.dbd-site-header.scrolled
  .main-nav
  > ul
  > li.menu-item-has-children
  > a::after {
  border-top-color: var(--dbd-dark-blue);
}

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

.dbd-site-footer {
  background-color: var(--dbd-dark-blue);
  color: #fff;
  padding: 2rem 0;
  border-top: solid 3px var(--dbd-light-blue);
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-column {
  /*flex: 1 1 200px;
	min-width: 200px;*/
}

.footer-column h4 {
  margin-bottom: 0.3rem;
  font-size: 1.5rem;
  color: #fff;
}

.footer-column p,
.footer-column address,
.footer-column a {
  color: #fff;
  font-size: 1em;
  font-style: normal;
  line-height: 1.6;
  text-decoration: none;
  padding: 0;
  margin: 0;
}

.footer-contact-method a,
.footer-contact-method p {
  font-size: 1.1em;
}

.footer-contact-method:first-of-type {
  margin-bottom: 1rem;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.2rem;
  position: relative;
  padding-left: 1.4rem; /* space for the carat */
}

.footer-menu li::before {
  content: "►";
  position: absolute;
  left: 0;
  color: var(--dbd-light-blue);
  font-weight: bold;
}
.footer-menu a,
.footer-menu a:visited {
  color: #fff !important;
  text-decoration: none;
}

.footer-menu a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-misc-links {
  margin-top: 1.5rem;
}

p.legal {
  font-size: 0.9em;
}

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

.dbd-sub-footer p {
  font-size: 0.8em;
  line-height: 2.2em;
  color: #545454;
  padding: 0;
  margin: 0;
}

.sub-foot-link {
  font-size: 0.75em;
  line-height: 2.2em;
  text-decoration: none;
  margin-left: 2.5em;
  color: #fff;
}

.dbd {
  color: #e62751;
  line-height: 2.2em;
  text-decoration: none;
}

/*=====================
Media Queries
=====================*/

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

  .mobile-nav-container,
  .mobile-nav-overlay,
  .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-services-menu {
    margin-bottom: 1rem;
  }

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

  .sub-footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Tablets Landscape */
/* Tablets Landscape */
@media (min-width: 768px) and (max-width: 1390px) {
  .header-right {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: 50%;
  }

  .header-contact {
    margin-bottom: 0;
    margin-right: 2rem;
  }

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

  .main-nav {
    display: none;
  }

  .sub-header {
    flex-direction: column;
    margin-top: 95px; /* height of the main header bar */
  }

  .footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
  }

  .footer-column {
    width: 45%;
  }
}

/* Mobiles*/

@media (max-width: 767px) {
  /* .main-header-bar {
    height: 90px;
    padding: 0 0.5rem;
  }
*/
  .logo-wrap {
    max-width: 200px;
  }

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

  .main-nav {
    display: none;
  }

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

  .header-right {
    justify-content: flex-end;
    width: 50%;
  }

  .header-contact {
    align-items: center;
    justify-content: center;
  }

  .header-contact-method {
    display: none;
  }

  .header-contact-method-icon {
    display: block;
    margin-right: 2rem;
  }

  .header-contact-method-icon svg {
    width: 44px;
    height: 44px;
    fill: #ffffff;
    padding-top: 5px;
  }

  .sub-header {
    flex-direction: column;
    /* margin-top: 125px; /* height of the main header bar */
    max-width: 95%;
    margin: 92px auto 0;
  }

  .sub-header p {
    line-height: 1.3;
  }

  .footer-columns {
    text-align: center;
  }

  .footer-column {
    width: 95%;
  }
  .footer-menu li {
    padding-left: 0; /* space for the carat */
  }
  .footer-menu li::before {
    display: none;
  }

  .footer-column img {
    margin: 0 auto;
  }
}
