/*
Theme Name: DCD 2025
Description: Child theme of Twenty Twenty-Five
Author: Matt Harris
Author URI: https://riotactstudios.com
Template: twentytwentyfive
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.2
*/

*:focus {
  outline: none;
}

:root {
  --bodyfont: Source Sans 3, sans-serif;
  --headingfont: Oxygen, sans-serif;
  --menufont: Montserrat, sans-serif;
  --body-textcolor: #00143d;
  --body-accentcolor-teal: #1aaab8;
  --body-accentcolor-red: #d01520;
  --body-accentcolor-gray: #919191;
  --body-bordercolor: #eee;
}

.mobile-hidden,
.is-layout-flex.mobile-hidden {
  display: none;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/*-------------------------------*/
/*- Logo ------------------------*/
/*-------------------------------*/

.header-logo {
  width: 150px;
}

.header-logo img {
  display: block;
  width: 150px;
  height: auto;
}

/*-------------------------------*/
/*- Buttons ---------------------*/
/*-------------------------------*/

:root :where(.wp-block-button.is-style-outline--1 .wp-block-button__link) {
  padding: 10px 20px;
}

/*-------------------------------*/
/*- Header Menu -----------------*/
/*-------------------------------*/

.header-menu-wrapper {
  position: relative;
}

.header-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
}

.header-menu > li {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  position: relative;
  border-left: 1px solid #d1d1d1;
}

.header-menu > li:first-child {
  border: 0;
} 

.header-menu > li > a {
  position: relative;
  display: block;
  font-family: var(--menufont);
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  line-height: 23px;
  height: 23px;
  padding: 0 10px;
  color: var(--body-accentcolor-gray);
  text-decoration: none;
  transition: all 0.3s ease;
}

.header-menu > li:not(.menu-item-has-children) > a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: all 0.3s ease;
}

#header.is-stuck .header-menu > li > a {
  line-height: 85px;
  height: 85px;
}

#header.is-stuck .header-menu > li > a:after {
  /*background-color: var(--body-textcolor);*/
}

.header-menu > li:first-child > a {
  margin-left: 0;
}

.header-menu > li:last-child > a {
  margin-right: 0;
}

.header-menu > li.menu-item-has-children > a:after {
  position: absolute;
  top: 50%;
  right: -15px;
  transform: translateY(-50%) rotate(180deg);
  content: '\f2ec';
  font: var(--fa-font-sharp-solid);
  font-size: 8px;
}

.header-menu > li > .sub-menu {
  position: absolute;
  left: 20px;
  top: 100%;
  z-index: 999;
  min-width: 220px;
  background-color: rgba(255,255,255,1);
  text-align: left;
  margin: 0;
  padding: 10px 0;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  box-shadow: rgba(149, 157, 165, 0.25) 0 14px 24px -6px;

  transition: transform 0.25s ease, opacity 0.2s ease;
}

.header-menu > li:first-child > .sub-menu {
  left: 0;
}

.header-menu > li > .sub-menu > li {
  display: block;
  margin: 0;
  padding: 0 13px;
  border-bottom: 1px solid var(--body-bordercolor);
}

.header-menu > li > .sub-menu > li:last-child {
  border-bottom: 0;
}

.header-menu > li > .sub-menu > li > a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  padding: 10px;
  margin: 0;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: var(--body-textcolor);
}

.header-menu > li:hover > a {
  color: var(--body-accentcolor-teal);
}

.header-menu > li > .sub-menu > li a:hover {
  color: var(--body-accentcolor-red);
}

.header-menu > li.current-menu-item > a {
  color: var(--body-accentcolor-teal);
}

.header-menu > li > .sub-menu > li.current-menu-item > a {
  color: var(--body-accentcolor-red);
}

.header-menu > li:hover .sub-menu {
  transform: scaleX(1);
  opacity: 1;
  pointer-events: auto;
}

.header-menu > li:not(.menu-item-has-children) > a:hover::before {
  width: 100%;
}

/*-------------------------------*/
/*- Mobile Menu -----------------*/
/*-------------------------------*/

.mobile-menu-open {
  font-size: 20px;
  color: #fff;
}

#mobile-menu-container {
  height: 100%;
  width: 100vw; /* Fixed width to match viewport */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  background-color: #232020;
  overflow-x: hidden;
  transform: translateX(-100%); /* Initially offscreen */
  transition: transform 0.5s ease; /* Delay visibility on slide-out */
  box-sizing: border-box;
  max-width: 100vw; /* Prevent exceeding viewport */
}

#mobile-menu-container.open {
  transform: translateX(0); /* Slide in */
  transition: transform 0.5s ease; /* No delay on slide-in */
}

#mobile-menu-container .closebtn {
  position: absolute; /* Relative to #mobile-menu-container */
  top: 20px;
  right: 20px;
  font-size: 60px;
  color: #fff;
  z-index: 10000;
  padding: 0;
  margin: 0;
}

#mobile-menu-container * {
  max-width: 100%;
  box-sizing: border-box;
}

.mobile-menu-content {
  position: relative;
  top: 50px;
  width: 100%;
  margin-top: 30px;
  transform: translateX(0); /* Ensure content moves with container */
  transition: transform 0.5s ease; /* Sync with container */
}

#mobile-menu-container:not(.open) .mobile-menu-content {
  transform: translateX(-100%); /* Slide out with container */
}

.menu-mobile {
  padding: 0 0 30px 0;
}

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

.menu-mobile li:before {
  content: none;
}

.menu-mobile li a {
  position: relative;
  display: block;
  padding: 10px 20px;
  transition: all .3s ease;
  color: var(--body-accentcolor);
}

.menu-mobile li.menu-toggle > a:after {
  position: absolute;
  content: '';
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #aaa;
  border-right: 2px solid #aaa;
  transform: translateY(-50%) rotate(45deg);
}

.menu-mobile li.menu-toggle > a.active:after {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-135deg);
}

.menu-mobile li a.active {
  color: #fff;
  background: var(--body-accentcolor);
}

.menu-mobile .sub-menu {
  display: none;
  margin: 0;
  padding: 0;
}

.menu-mobile .sub-menu li a {
  padding: 10px 20px 10px 40px;
}

.menu-mobile .sub-menu li .sub-menu li a {
  padding: 10px 20px 10px 60px;
}

.menu-mobile .current-menu-item a {
  color: #fff;
}

@media (max-width: 400px) {
  #mobile-menu-container .closebtn {
    right: 10px; /* Adjust for smaller screens */
    font-size: 40px; /* Smaller font size */
  }
}

/*-------------------------------*/
/*- Top Button ------------------*/
/*-------------------------------*/ 

.top-button {
  width: calc(100% / 3);
}

.top-button .btn-1 .wp-block-button__link {
  background-color: #20919b !important;
}

.top-button .btn-2 .wp-block-button__link {
  background-color: #1aaab8 !important;
}

.top-button .btn-3 .wp-block-button__link {
  background-color: #31c1ce !important;
}

.top-button a:hover {
  background-color: #5fc5ca;
}

/*-------------------------------*/
/*- Larger Than Phone -----------*/
/*-------------------------------*/ 

@media (min-width: 750px) {

  .header-logo { width: 275px; }

  .header-logo img { width: 275px; }

}

/*-------------------------------*/
/*- Larger Than iPad ------------*/
/*-------------------------------*/ 

@media (min-width: 1000px) {

  .mobile-menu-open {
    display: none;
  }

  .header-menu, body .mobile-hidden-flex,
  .is-layout-flex.mobile-hidden {
    display: flex;
  }

  .mobile-hidden {
    display: block;
  }

}

/*-------------------------------*/
/*- Larger Than iPad ------------*/
/*-------------------------------*/ 

@media (min-width: 1300px) {

  .mobile-menu-open {
    display: none;
  }

  .header-menu, body .mobile-hidden-flex,
  .is-layout-flex.mobile-hidden {
    display: flex;
  }

  .mobile-hidden {
    display: block;
  }

}