/*
Theme Name: Riot 2026
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.5
Requires PHP: 8.2
*/

*:focus {
  outline: none;
}

:root {
  --bodyfont: Inter, sans-serif;
  --headingfont: Anton, sans-serif;
  --body-textcolor: #020202;
  --body-accentcolor: #bf0000;
  --body-bordercolor: #0C0C0C;
  --body-linkcolor: #C40F0F;
  --body-menucolor: #ffffff;
}

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

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

.wp-element-button {
  transition: all 0.3s ease;
}

.wp-element-button:hover {
  background-color: var(--body-textcolor) !important;
  color: #fff !important;
}

a {
  text-decoration: none;
}

strong {
  font-weight: 500;
}

/* Adminbar Fix */
#wpadminbar {
  position: fixed;
}

/* Anchor Link Fix - Works with Sticky */
[id] {
  scroll-margin-top: 100px;
}

/*-------------------------------*/
/*- 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: 700;
  font-size: 14px;
  text-transform: uppercase;
  line-height: 40px;
  letter-spacing: 5px;
  height: 40px;
  margin: 0 20px;
  color: #000;
  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(0,0,0,.9);
  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: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  padding: 10px;
  margin: 0;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: #fff;
}

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

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

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

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

.mf-footer__image {
  width: 140px !important;
  max-width: 140px;
  flex: 0 0 140px; /* prevents flexbox from shrinking it */
}

.mf-footer__image img {
  width: 100%;
  height: auto;
  max-width: none; /* override WP */
}

.livestockx-logo img {
  height: 20px;
  width: auto;
}

.footer-links a {
  font-size: 12px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--body-accentcolor);
}

.footer-location a {
  font-size: 13px;
  font-weight: 900;
  transition: all 0.3s ease;
}

.footer-location a:hover {
  color: var(--body-accentcolor);
}

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

.wp-block-template-part {
  position: relative;
}

#header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background-color: rgba(255,255,255,0);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

#header.is-stuck {
  position: fixed;
  background-color: #000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

#header.is-stuck .header-menu > li > a {
  color: var(--body-menucolor);
}

#header .header-button .wp-block-button__link:hover {
  border-color: #fff !important;
  background-color: #fff !important;
  color: #000 !important;
}

#header.is-stuck .header-button .wp-block-button__link {
  border-color: #000;
  color: #000 !important;
}

#header.is-stuck .header-button .wp-block-button__link:hover {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

#header.is-stuck .mobile-menu-open {
  color: var(--body-textcolor);
}

/*-------------------------------*/
/*- Hero ------------------------*/
/*-------------------------------*/

.hero {
    position: relative;
    overflow: hidden;
    background-image: url('assets/img/paper-texture.webp');
    background-repeat: repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image: url("assets/img/hero-grid.svg");
    background-repeat: repeat;
    background-size: 64px 64px;

    mask-image: radial-gradient(
        ellipse at center,
        #000 25%,
        rgba(0, 0, 0, .75) 65%,
        transparent 100%
    );

    -webkit-mask-image: radial-gradient(
        ellipse at center,
        #000 25%,
        rgba(0, 0, 0, .75) 65%,
        transparent 100%
    );
    animation: ra-grid-drift 25s linear infinite;
}

@keyframes ra-grid-drift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 64px 64px;
    }
}

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

.button-red a {
  display: block;
  background-color: var(--body-accentcolor);
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  padding: 0 20px;
  height: 40px;
  line-height: 40px;
}

.button-underline a {
  position: relative;
  display: block;
  color: #000;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  height: 40px;
  line-height: 40px;
}

.button-underline a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 2px;
  background-color: var(--body-accentcolor);
}

.button-underline.white a {
  color: #fff;
}

/*-------------------------------*/
/*- Stats Columns ---------------*/
/*-------------------------------*/ 

.ra-stats > .wp-block-column:not(:first-child) {
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    padding-left: 2rem;
}

.ra-caution-tape {
  background:
        repeating-linear-gradient(
    45deg,
    #bf0000 0 20px,
    #111111 20px 40px
);
}

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

@media (min-width: 750px) {

}

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

}


/*-------------------------------*/
/*- Full Width ------------------*/
/*-------------------------------*/ 

@media (min-width: 1350px) {

}