/*
Theme Name: EV2027
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: 7.0
Tested up to: 7.1
Requires PHP: 8.2
*/

/*-------------------------------*/
/*- Variables -------------------*/
/*-------------------------------*/

:root {
  --bodyfont: Roboto, sans-serif;
  --headingfont: Bebas Neue, sans-serif;
  --color-white: #FFFFFF;
  --color-black: #000;
  --brand-green: #83ba3b;
  --brand-tan: #D4A65E;
  --brand-yellow: #ffb422;
  --brand-darkgreen: #476a31;
  --header-menucolor: #162E09;
  --header-menuhover: #476a31;
  --button-greenhover: #8dd929;
  --button-tanhover: #d4b17a;
}

body {
  background-color: #fff;
  color: var(--color-black);
  font-family: var(--bodyfont);
  font-style: normal;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

strong {
  font-weight: 700;
}

:where(.wp-site-blocks *:focus),
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

/*-------------------------------*/
/*- Responsive Navigation -------*/
/*-------------------------------*/

.ev-desktop-only {
  display: none !important;
}

.ev-mobile-only {
  display: block !important;
}

@media (min-width: 1024px) {
  .ev-desktop-only {
    display: block !important;
  }

  .ev-mobile-only {
    display: none !important;
  }
}

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

:root :where(.wp-block-button .wp-block-button__link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  box-sizing: border-box;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-family: var(--bodyfont);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

:root :where(.wp-block-button.is-style-outline .wp-block-button__link),
:root :where(.wp-block-button.is-style-outline--2 .wp-block-button__link) {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 9999px;
  padding: 0 30px;
}

/*-------------------------------*/
/*- Button Hover ----------------*/
/*-------------------------------*/

:root :where(.wp-block-button .wp-block-button__link:hover) {
  opacity: 0.85;
}

/*-------------------------------*/
/*- Circle Icon -----------------*/
/*-------------------------------*/

.ev-circle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  border: 1px solid var(--brand-green);
  border-radius: 50%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.ev-circle-icon i {
  font-size: 32px;
  color: var(--brand-green);
  line-height: 1;
}

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

.ev-hero {
  position: relative;
  overflow: hidden;
}

.ev-hero .wp-block-cover__image-background {
  animation: ev-hero-zoom 20s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform;
}

@keyframes ev-hero-zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev-hero .wp-block-cover__image-background {
    animation: none;
  }
}

/*-------------------------------*/
/*- Action Cards ----------------*/
/*-------------------------------*/

.ev-action-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.ev-action-cards > .wp-block-column > .wp-block-buttons {
  margin-top: auto;
}

/*-------------------------------*/
/*- Button Spacing --------------*/
/*-------------------------------*/

.ev-action-cards > .wp-block-column > .wp-block-buttons {
  padding-top: 40px;
}


/*-------------------------------*/
/*- Socials ---------------------*/
/*-------------------------------*/

.ev-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ev-socials p {
  margin: 0;
}

.ev-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.6);
  color: var(--banner-bgcolor, #476A31);
  text-decoration: none;
  transition: background-color .3s ease;
}

.ev-social-icon:hover,
.ev-social-icon:focus-visible {
  background-color: #fff;
  color: var(--banner-bgcolor, #476A31);
}

.ev-social-icon i {
  font-size: 14px;
  line-height: 1;
}


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

.header-menu-wrapper,
.header-nav {
  width: 100%;
}

.header-menu,
.header-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

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

.header-menu > li {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
}

/*-------------------------------*/
/*- Top Level Links -------------*/
/*-------------------------------*/

.header-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  height: 110px;
  padding: 0;
  margin: 0 15px;
  color: var(--header-menucolor);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .3s ease;
}

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

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

.header-menu > li.current-menu-item > a,
.header-menu > li.current-menu-ancestor > a,
.header-menu > li.is-open > a {
  color: var(--header-menuhover);
}

/*-------------------------------*/
/*- Dropdown Arrows -------------*/
/*-------------------------------*/

.header-menu > .menu-item-has-children > a {
  cursor: pointer;
}

.header-menu > .menu-item-has-children > a::after {
  content: '\f078';
  font: var(--fa-font-sharp-solid);
  font-size: 12px;
  margin-left: 10px;
  transition: transform .3s ease;
}

.header-menu > .menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
}

/*-------------------------------*/
/*- Dropdown Menu ---------------*/
/*-------------------------------*/

.header-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 99999;
  min-width: 220px;
  width: max-content;
  max-width: min(400px, 90vw);
  height: auto;
  padding: 0;
  border: 0;
  border-top: 3px solid var(--brand-darkgreen);
  background-color: #fff;
  box-shadow: 0 36px 35px rgba(0,0,0,.08);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.header-menu > .menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/*-------------------------------*/
/*- Dropdown Triangle -----------*/
/*-------------------------------*/

.header-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 8px solid var(--brand-darkgreen);
  pointer-events: none;
}

/*-------------------------------*/
/*- Dropdown Links --------------*/
/*-------------------------------*/

.header-menu .sub-menu > li {
  display: block;
  width: 100%;
  padding: 0 13px;
  box-sizing: border-box;
  border-bottom: 1px solid #C4C4C426;
}

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

.header-menu .sub-menu > li > a {
  display: block;
  width: 100%;
  height: auto;
  padding: 12px 10px;
  margin: 0;
  box-sizing: border-box;
  color: var(--brand-tan);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  transition: color .3s ease;
}

.header-menu .sub-menu > li:hover > a,
.header-menu .sub-menu > li.current-menu-item > a {
  color: var(--brand-darkgreen);
}

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

.header-menu > .header-button > a {
  height: auto;
  padding: 12px 20px;
  color: #fff;
  text-align: center;
  border-radius: 9999px;
  font-size: 12.5px;
  line-height: 1.4;
  transition: background-color .3s ease, color .3s ease;
}

.header-menu > .header-button.button-green > a {
  background-color: var(--brand-green);
  color: #fff;
}

.header-menu > .header-button.button-green:hover > a,
.header-menu > .header-button.button-green:focus-within > a {
  background-color: var(--button-greenhover);
  color: var(--brand-darkgreen);
}

.header-menu > .header-button.button-tan > a {
  background-color: var(--brand-tan);
  color: #fff;
}

.header-menu > .header-button.button-tan:hover > a,
.header-menu > .header-button.button-tan:focus-within > a {
  background-color: var(--button-tanhover);
  color: var(--brand-darkgreen);
}

.header-menu > .header-button > a i {
  margin-right: 8px;
}

/*-------------------------------*/
/*- Accessibility ---------------*/
/*-------------------------------*/

.header-menu a:focus-visible {
  outline: 2px solid var(--evgreen);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .header-menu a,
  .header-menu .sub-menu,
  .header-menu > .menu-item-has-children > a::after {
    transition: none;
  }
}

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

.footer-menu .wp-block-navigation__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu .wp-block-navigation-item {
  margin: 0;
  padding: 0;
}

.footer-menu .wp-block-navigation-item__content {
  display: flex;
  align-items: center;
  gap: 20px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  transition: color .3s ease;
}

.footer-menu .wp-block-navigation-item__content::before {
  content: '\f061';
  font: var(--fa-font-sharp-regular);
  flex: 0 0 auto;
  transition: color .3s ease, transform .3s ease;
}

.footer-menu .wp-block-navigation-item__content:hover::before {
  color: var(--ebdblue);
  transform: translateX(4px);
}

.footer-menu .wp-block-navigation-item__content:hover {
  text-decoration: none;
}

/*-------------------------------*/
/*- Resource Cards --------------*/
/*-------------------------------*/

.resource-row > .resource-card {
  flex: 0 1 100%;
  min-width: 0;
  box-sizing: border-box;
}

/*-------------------------------*/
/*- Tablet ----------------------*/
/*-------------------------------*/

@media (min-width: 750px) {

  .resource-row > .resource-card {
    flex-basis: calc((100% - 25px) / 2);
  }

}

/*-------------------------------*/
/*- Desktop ---------------------*/
/*-------------------------------*/

@media (min-width: 1100px) {

  .resource-row > .resource-card {
    flex-basis: calc((100% - 50px) / 3);
  }

}

/*-------------------------------*/
/*- Media Image -----------------*/
/*-------------------------------*/

.ev-media-image {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 20px 40px 60px 0;
  box-sizing: border-box;
  isolation: isolate;
}

/*-------------------------------*/
/*- Background ------------------*/
/*-------------------------------*/

.ev-media-image__background {
  position: absolute;
  top: 0;
  right: 20px;
  bottom: 90px;
  left: 20px;
  border-radius: 20px;
  z-index: 0;
  pointer-events: none;
}

/*-------------------------------*/
/*- Primary Image ---------------*/
/*-------------------------------*/

.ev-media-image__primary {
  position: relative;
  width: 100%;
  margin: 0;
  z-index: 1;
}

.ev-media-image__primary img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/*-------------------------------*/
/*- Secondary Image -------------*/
/*-------------------------------*/

.ev-media-image__secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%;
  margin: 0;
  border: 5px solid #fff;
  border-radius: 40px;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 2;
}

.ev-media-image__secondary img {
  display: block;
  width: 100%;
  height: auto;
}

/*-------------------------------*/
/*- Image Right -----------------*/
/*-------------------------------*/

.ev-media-image.is-image-right {
  padding: 20px 0 60px 40px;
}

.ev-media-image.is-image-right .ev-media-image__background {
  right: 20px;
  left: 20px;
}

.ev-media-image.is-image-right .ev-media-image__secondary {
  right: auto;
  left: 0;
}

/*-------------------------------*/
/*- Desktop ---------------------*/
/*-------------------------------*/

@media (min-width: 750px) {

  .ev-media-image {
    padding: 40px 80px 90px 0;
  }

  .ev-media-image__background {
    right: 40px;
    bottom: 130px;
    left: 40px;
  }

  .ev-media-image.is-image-right {
    padding: 40px 0 90px 80px;
  }

  .ev-media-image.is-image-right .ev-media-image__background {
    right: 40px;
    left: 40px;
  }

}