/*!
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-teal: #1F4A59;
    --dbd-blue: #3395B7;
}



/* General Styles */

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


.dbd-container {
    align-items: center;
    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 {
    border-top: solid 3px var(--dbd-blue);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}


/* Logo */
.logo-wrap {
    padding: 1.2rem 0;
    display: flex;
    align-items: center;
}

.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: column;
    align-items: flex-end;
}

.header-contact {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    margin-right: 0.8rem;
}

.header-contact-method  {
    background-color: var(--dbd-blue);
    padding: 0.3rem 0.6rem;
    color: #fff;
    margin-left: 0.7rem;
}



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


/* Mobile Navigation Base Styles */
.mobile-nav-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;  
    height: 100%;
    background-image: linear-gradient(130deg, var(--dbd-blue), var(--dbd-teal));
    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: 200px;
    height: auto;
}

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

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

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    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 3px var(--dbd-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-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-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-teal);
}

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

/* Content
------------------------------------------*/

.dbd-category-list  {
    margin: 0 auto;
}


  .dbd-category-list ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0 0.3rem 3rem 0.3rem;
  }
  
  .dbd-category-list ul li {
    margin: 0.2rem;
  }
  
  .dbd-category-list ul li a {
    background-color: var(--dbd-blue);
    display: block;
    padding: 0.5rem 0.8rem;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
    border-radius: 4px;
  }
  
  .dbd-category-list ul li a:hover {
    background-color: var(--dbd-teal);
  }

  .wp-block-query-pagination,
.navigation.pagination {
    text-align: center;
    display: flex;
    justify-content: center;
}

.forminator-ui#forminator-module-284.forminator-design--default .forminator-checkbox__label p   {
    margin-top: 0;
}

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

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

.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  {
    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::before {
    content: '\003E';
    color: var(--dbd-blue);
    font-weight: 900;
    font-size: 1.1em;
    margin-right: 0.4rem;
  }

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

.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
=====================*/



/* Desktop */
@media (min-width: 1251px) {
    /* 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 */
  @media (min-width: 768px) and (max-width: 1250px) {

    .header-right {
        flex-direction: row;
        align-items: center;
    }

    .header-contact {
        margin-bottom: 0;
    }

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

    .main-nav {
        display: none;
    }
  
  }

  @media (min-width: 768px) and (max-width: 1000px) {
    .header-contact-method span {
        display: none;
    }
  }
  
  /* Mobiles*/

  @media (max-width: 860px) {
    .header-contact {
        display: none;
    }
  }

  @media (max-width: 767px) {

    .logo-wrap  {
        max-width: 75%;
    }

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

    .main-nav {
        display: none;
    }

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


