/*!
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 {
  --oss-green: #36727c;
  --oss-blue: #24bfcc;
  --black: #000000;
}

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

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

/*=====================
  Header
=====================*/

.site-header {
  border-top: solid 3px var(--oss-blue);
  transition: background-color 0.3s ease-in-out;
}

.site-header.active {
  background-color: #fff;
  -webkit-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.57);
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.27);
}

.fixed-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 99;
}

.white-header {
  background-color: #fff;
  -webkit-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.57);
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.27);
}

.transparent-header {
  background-color: transparent;
}

.transparent-header .main-nav a {
  color: #fff;
}

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

.site-header .logo-wrap {
  width: 320px;
  margin: 2rem 0;
}

.site-header .logo-wrap img {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.site-header .header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

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

.header-social {
  display: flex;
}

.header-social a {
  margin: 0 0.2rem;
}

.header-contact-method {
  margin-left: 1rem;
}

.header-contact-method {
  background-color: var(--oss-green);
  padding: 0.5rem 1rem;
}

.header-contact-method a,
.header-contact-method a:visited,
.header-contact-method p {
  color: #fff;
  letter-spacing: 0.05rem;
  margin: 0;
  padding: 0;
}

.header-contact-method a,
.header-contact-method a:visited {
  text-decoration: none;
}

/*=====================
Navigation
=====================*/

.mobile-nav-overlay {
  right: 0;
  background-color: var(--oss-green);
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 999999;
  transition: width 0.15s ease-in-out;
  padding-top: 6rem;
  padding-bottom: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -10px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-overlay.open {
  width: 95%;
}

.overlay-contact-details {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: 1rem auto 2.5rem auto;
}

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

.overlay-contact-method img {
  width: 20px;
  height: auto;
  display: inline-block;
  margin-right: 0.5rem;
}

.overlay-contact-method span,
.overlay-contact-method a,
.overlay-contact-method a:visited {
  color: #fff;
  font-size: 1.1em;
}

.mobile-nav-wrap {
  margin: 0 auto;
  width: 80%;
}

.mobile-nav > ul > li {
  border-bottom: solid 1px #fff;
  padding: 20px 10px;
  white-space: nowrap;
}

.mobile-nav ul > li:last-of-type {
  border-bottom: none;
}

.mobile-nav ul li a {
  display: block;
  color: #fff;
  font-size: 1.75em;
  text-decoration: none;
}

/* Mobile Nav - Sub Menus*/

.mobile-nav .sub-menu,
.mobile-nav .sub-menu a {
  white-space: normal;
}

.mobile-nav .menu-item-has-children > a::after {
  content: "\25bc";
  font-size: 0.6em;
  position: relative;
  top: -2px;
  left: 5px;
}

.mobile-nav .sub-menu {
  max-height: 0;
  padding-left: 1.5rem;
  overflow: hidden;
  transition: max-height 0.5s linear;
  font-size: 0.8em;
}

.mobile-nav .sub-menu li {
  margin: 1rem 0;
  padding: 0.6rem 0;
  color: #fff !important;
}

.mobile-nav.sub-menu li a {
  transition: all 0.2s linear;
  color: #fff;
  display: block;
}

.mobile-nav .sub-menu.mobile-sub-menu-open {
  max-height: 900px;
}

/* Mobile nav controls*/

/* Mobile nav controls */

.close-mobile-nav {
  position: absolute;
  top: 50px;
  right: 25px;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Container spacing */
.mobile-nav-toggle-container {
  margin-left: 2rem;
}

/* Hard reset just for the toggle button (beats theme button styles) */
.mobile-nav-toggle {
  all: unset; /* resets theme + browser button styles */
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Accessible focus with no layout shift */
.mobile-nav-toggle:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 4px;
}

.transparent-header .mobile-nav-toggle:focus-visible {
  outline-color: rgba(255, 255, 255, 0.6);
}

/* Hamburger lines */
.mobile-nav-toggle .nav-toggle-hamburger {
  display: block;
  width: 40px;
  height: 5px;
  margin: 0;
  background-color: var(--oss-green);
}

/* Transparent header top state */
.transparent-header .mobile-nav-toggle .nav-toggle-hamburger {
  background-color: #fff;
}

/* Scrolled/active state */
.site-header.active .mobile-nav-toggle .nav-toggle-hamburger {
  background-color: var(--oss-green);
}

/* Stop theme hover background on the toggle button */
.site-header .mobile-nav-toggle,
.site-header .mobile-nav-toggle:hover,
.site-header .mobile-nav-toggle:focus,
.site-header .mobile-nav-toggle:active {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Mobile nav controls end */

/* mobile nav controls end*/

/* Large Screen Navigation*/

nav ul {
  list-style-type: none;
  margin: 0 !important;
}

.main-nav {
  display: none;
}

.main-nav > ul {
  display: flex;
}

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

.main-nav ul li a {
  text-decoration: none;
  color: var(--oss-green);
  border-radius: 4px;
  padding: 10px;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.3em;
  transition: background-color 0.2s ease;
  display: block;
}

.main-nav ul li > a:hover {
}

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

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

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

.site-header.active .main-nav ul li a {
  color: var(--oss-green);
}

/* Second level of navigation*/

.main-nav ul li ul,
.main-nav ul li ul a {
  white-space: normal;
}

.main-nav ul li ul {
  width: 290px;
  position: absolute;
  z-index: 9999999999;
  top: 48px;
  left: 0;
  background-color: var(--oss-blue);
  padding: 10px;
}

.main-nav ul li.oss-mega ul {
  width: auto;
  display: grid;
  grid-template-columns: repeat(
    2,
    minmax(300px, 1fr)
  ); /* Two columns, evenly spaced */
  gap: 10px;
}

.main-nav ul li ul > li a {
  color: #fff;
  font-weight: 400;
  font-size: 0.9em;
}

.main-nav ul li ul > li a:hover {
  background: #fff;
  color: var(--black) !important;
}

.sub-menu {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.sub-menu.nav-open {
  visibility: visible;
  opacity: 1;
}

.main-nav .highlight-btn {
  background: var(--oss-blue);
}

.main-nav .highlight-btn a {
  color: #fff !important;
}

/* Navigation Portal Button */

/* =====================
   Portal Login button
===================== */

.main-nav .oss-portal-btn-nav {
  margin-left: 12px;
  display: flex;
  align-items: center;
}

/* Remove the hover underline used on normal nav items */
.main-nav ul > li.oss-portal-btn-nav::after {
  display: none;
}

/* Transparent header (over the hero): solid white button */
.site-header .main-nav ul li.oss-portal-btn-nav > a {
  background-color: var(--oss-blue);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  border: solid 1px #fff;
  padding: 8px 18px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.site-header .main-nav ul li.oss-portal-btn-nav > a:hover,
.site-header .main-nav ul li.oss-portal-btn-nav > a:focus-visible {
  background-color: black;
  border-color: #fff;
  color: #ffffff;
}

/* White header (scrolled): solid green button */
.site-header.active .main-nav ul li.oss-portal-btn-nav > a {
  background-color: var(--oss-green);
  border-color: var(--oss-green);
  color: #fff;
}

.site-header.active .main-nav ul li.oss-portal-btn-nav > a:hover,
.site-header.active .main-nav ul li.oss-portal-btn-nav > a:focus-visible {
  background-color: var(--oss-blue);
  border-color: var(--oss-blue);
  color: #ffffff;
}

.site-header .main-nav ul li.oss-portal-btn-nav > a:focus-visible {
  outline: 2px solid var(--oss-blue);
  outline-offset: 3px;
}

/* Mobile overlay menu */
.mobile-nav > ul > li.oss-portal-btn-nav {
  border-bottom: none;
  padding-top: 30px;
}

.mobile-nav ul li.oss-portal-btn-nav a {
  display: inline-block;
  background-color: #fff;
  color: var(--oss-green);
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
}

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

.site-footer {
  background-color: #041613;
  padding: 3rem 0 0 0;
}

.site-footer .footer-top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 2rem;
}

.site-footer .footer-top-row > div {
  margin-bottom: 3rem;
}

.site-footer .footer-top-row h3 {
  color: #fff;
  font-size: 1.4em;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.site-footer .footer-top-row h3::after {
  content: "";
  height: 4px;
  width: 40%;
  display: block;
  margin: 0.3rem auto 0 auto;
  background-color: var(--oss-blue);
}

/* Footer Contact Info */

.footer-contact-method {
  margin-bottom: 2rem;
}

.footer-contact-method-info {
  color: #fff;
  font-size: 1.1em;
  text-decoration: none;
}

.office-location {
  margin-bottom: 1rem;
}

.office-location address,
.office-location p {
  color: #fff;
  line-height: 1.3;
  font-style: normal;
}

.office-location address {
  margin: 0 0 0.3rem 0;
}

.office-location p {
  margin: 0;
  padding: 0;
}

.office-location p a,
.office-location p a:visited {
  color: #fff !important;
}

/* Footer Links */

.footer-links-flex-wrap {
  display: flex;
  flex-direction: column;
}

.footer-links-container:first-of-type {
  margin: 0 0 2rem 0;
}

.footer-links-container ul li a,
.footer-links-container ul li a:visited {
  color: #fff;
  font-size: 0.9em;
  display: block;
  padding: 0.2rem 0 0.2rem 0;
  text-decoration: none;
}

.footer-links-container ul li a:hover {
  text-decoration: underline;
}

/* Footer Right Col / Social */

.footer-social {
  margin-bottom: 1rem;
}

.footer-social a {
  display: inline-block;
  margin-right: 0.2rem;
}

/*Footer Middle*/

.footer-middle-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 2rem 0;
  flex-wrap: wrap;
  background-color: #fff;
}

.footer-middle-row img {
  height: auto;
}

/*Footer Bottom*/

.footer-bottom-row {
  background-color: #ccc;
  padding: 0.3rem 0;
}

.footer-bottom-row .legal {
  color: #333;
  font-size: 0.8em;
  line-height: 1.5;
  text-align: center;
}

.sub-footer {
  background-color: var(--oss-green);
}

.sub-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-footer p {
  font-size: 0.9em;
  line-height: 2.2em;
  color: #fff;
}

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

.dbd {
  color: #fff;
  float: right;
  font-size: 0.75em;
  line-height: 2.2em;
  text-decoration: none;
}

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

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

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

  .main-nav {
    display: block;
  }

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

  .header-contact {
    display: flex;
  }

  .standard-title-banner {
    min-height: 600px;
  }

  .standard-title-banner .page-title {
    max-width: 50%;
  }

  /* Blog Styles */

  .articles-container {
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .article-block-btn {
    width: 49%;
  }

  .site-footer .footer-top-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }

  .site-footer .footer-top-row > div {
    margin-bottom: 0;
  }

  .site-footer .footer-top-row h3::after {
    margin: 0.3rem 0 0 0;
  }

  .footer-links-flex-wrap {
    flex-direction: row;
  }

  .footer-links-container:first-of-type {
    margin: 0 7rem 0 0;
  }

  .footer-links-container ul li a,
  .footer-links-container ul li a:visited {
    padding: 0.2rem 0 0.2rem 1.2rem;
    position: relative;
  }

  .footer-links-container ul li a::before {
    content: url(./images/triangle_icon.svg);
    width: 10px;
    height: 10px;
    display: block;
    position: absolute;
    left: 0;
  }

  .footer-bottom-row .legal br {
    display: none;
  }
}

@media (max-width: 1300px) and (min-width: 1251px) {
  .footer-top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px; /* Adjust as needed */
  }

  .footer-top-row > div {
    flex: 1 1 calc(50% - 20px); /* 2 items per row */
  }

  .footer-top-row > div:nth-child(5) {
    flex-basis: 100%; /* Make the 5th item full width */
  }
}

/* Tablets Portrait */
@media (min-width: 601px) and (max-width: 900px) {
  /* Blog 
  
    .article-block-btn {
      min-height: 350px;
    }*/
}

/* Mobiles*/
@media (max-width: 600px) {
  .site-header .logo-wrap {
    margin: 1rem 0;
    width: 65%;
  }

  .site-header .header-right {
    width: 25%;
  }
  .mobile-nav-wrap {
    font-size: 0.6em;
  }
  .overlay-contact-details {
    flex-direction: column;
  }

  .overlay-contact-method {
    font-size: 0.9em;
    padding: 0.8rem 0.2rem;
  }

  .overlay-contact-method img {
    width: 20px;
    height: auto;
    display: inline-block;
    margin-right: 0.75rem;
  }

  .overlay-contact-method:not(:last-child) {
    border-bottom: solid 1px #fff;
  }

  .standard-title-banner .page-title {
    font-size: 1.8em;
    line-height: 1.4;
    max-width: 90%;
  }

  /* Blog 
  
    .article-block-btn {
      min-height: 350px;
      font-size: 0.8em;
    }*/

  .sub-footer .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .sub-footer p {
    padding: 0 0.5em;
  }
  .privacy {
    display: block;
    text-align: center;
    margin-left: 0;
  }
}
