/*
Theme Name: AskMike2026
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: Inter, sans-serif;
  --headingfont: Inter, sans-serif;
  --body-text-primary: #212529;
  --body-text-light: #B8BDC1;
  --body-text-description: #868E96;
  --body-color-primary: #cb2026;
  --button-color-hover: #2f3236;
}

.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 {
  height: 70px;
  padding: 10px 0;
}

.header-logo img {
  display: block;
  height: 70px;
  width: 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;
} 

.header-menu > li > a {
  position: relative;
  display: block;
  font-family: var(--bodyfont);
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  line-height: 120px;
  height: 120px;
  margin: 0 20px;
  color: #fff;
  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-textcolor);
}

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

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

.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: var(--body-accentcolor-blue);
  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: #fff;
}

.menu-mobile li.menu-toggle > a:after {
  position: absolute;
  content: '';
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  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 */
  }
}

/*-------------------------------*/
/*- Product Gallery -------------*/
/*-------------------------------*/ 

/* ============================= */
/* MODAL BASE */
/* ============================= */

.atm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.atm-modal.is-open {
    display: flex;
}

.atm-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

/* ============================= */
/* MODAL CONTAINER */
/* ============================= */

.atm-modal__inner {
    position: relative;
    width: 95vw;
    max-width: 1400px;
    height: 90vh;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* ============================= */
/* LAYOUT */
/* ============================= */

.atm-modal__top {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ============================= */
/* MAIN MEDIA */
/* ============================= */

.atm-modal__main {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.atm-modal__image,
.atm-modal__video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ============================= */
/* THUMB COLUMN */
/* ============================= */

.atm-modal__thumbs {
    width: 110px; /* key difference */
    background: #fff;
    padding: 10px 5px;
    overflow-y: auto;
    border-left: 1px solid #e5e5e5;
}

/* ============================= */
/* THUMBS */
/* ============================= */

.atm-thumb {
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.atm-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

/* hover (subtle) */
.atm-thumb:hover img {
    border-color: #999;
}

/* active */
.atm-thumb.active img {
    border: 2px solid #111;
}

/* ============================= */
/* VIDEO ICON */
/* ============================= */

.atm-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #fff;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    padding: 6px 9px;
}

/* ============================= */
/* CLOSE BUTTON */
/* ============================= */

.atm-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    color: #333;
    border: none;
    font-size: 26px;
    cursor: pointer;
    z-index: 10;
}

/* ============================= */
/* BODY LOCK */
/* ============================= */

body.modal-open {
    overflow: hidden;
}

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

.footer-logos .wp-block-image {
  width: calc(100% / 10);
}

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

@media (min-width: 750px) {
  .header-logo { height: 100px; padding: 0; }

  .header-logo img { height: 100px; }

  .members li {
    width: calc((100% - (20px * 3)) / 4); /* 3 gaps */
  }

  .members.gold li {
    width: calc((100% - (20px * 2)) / 3);
  }

  .members.platinum li {
    width: calc((100% - 20px) / 2);
  }

  .memberlist li {
    width: calc((100% - 20px) / 2);
  }

  .team-card li {
    width: calc((100% - 20px) / 2);
  }

  .facility-card li {
    width: calc((100% - 20px) / 2);
  }

  .footer-logos .wp-block-image {
    width: calc(100% / 20);
  }

  .tribe-events-event-meta.primary {
    gap: 40px;
  }

  .tribe-events-meta-group {
    width: auto;
  }

  .winner-block {
    width: 50%;
  }

}

/*-------------------------------*/
/*- 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;
  }

  .members li {
    width: calc((100% - (20px * 5)) / 6); /* 5 gaps */
  }

  .members.gold li {
    width: calc((100% - (20px * 3)) / 4);
  }

  .members.platinum li {
    width: calc((100% - (20px * 2)) / 3);
  }

  .memberlist li {
    width: calc((100% - (20px * 2)) / 3);
  }

  .facility-card li,
  .visitor-card li {
    width: calc((100% - (20px * 2)) / 3);
  }

  .sponsor-logos li {
    width: calc((100% - 100px) / 6);
  }

  #copyright { justify-content:space-between !important; }

  .winner-block {
    width: 33.333%;
  }

}

/*-------------------------------*/
/*- 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;
  }

  .members li {
    width: calc((100% - (20px * 7)) / 8); /* 7 gaps */
  }

  .members.gold li {
    width: calc((100% - (20px * 5)) / 6);
  }

  .members.platinum li {
    width: calc((100% - (20px * 3)) / 4);
  }

}