 /**
 * @file
 * shortcodes.css
 * 
 * Shorthand codes to speed up development
 * 
 * -------------------------------------------------
 * Attached thru `.info.yml`
 *
 ============================================================================ */

/**
 * Image Overlay: Overlay text on a img
-*=======================================*/
.hover-over {
  position: relative;
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
}

.hover-over__img {  line-height: 0;  }

.hover-over__overlay,
.hover-over__absolute {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
}

.hover-over__overlay {
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .35;
  z-index: 10;
}

/**
  * Buttons
  =======================================*/
.buttons a,
.wp-block-button__link,
.wp-block-button__link:visited,
#page .header__cta-link {
  padding: 0.625rem 0.625rem 0.625rem 0.75rem;
  vertical-align: bottom;
  font: 500 0.875rem/1.4 var(--header-font);
  border: 0;
  outline: 0;
  border-radius: 2.5rem;
  background: var(--Secondary-Green, #8BD85C);
  color: var(--Neutral-Black, #1E1E1E);
  display: inline-flex;
  gap: 0.5rem;
  transition: all 0.4s ease-in-out;
  position: relative;
}

.buttons a:after,
.wp-block-button__link:after,
#page .header__cta-link:after {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  line-height: 0;
  background: url("../images/arrow--longer.svg") no-repeat;
  background-position-x: -0.2rem;
  transition: all 0.35s cubic-bezier(.45,.05,.55,.95);
}

.buttons a:hover,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: #AEE48D; 
  color: var(--Neutral-Black, #1E1E1E);
  opacity: 1;
}

.buttons a:hover:after,
.wp-block-button__link:hover:after {
  animation: bounceSlide 0.5s ease-in;
  background-position-x: 0;
}

@keyframes bounceSlide {
  0% {
    background-position-x: -0.2rem;
  }

  /* 50% {
    background-position-x: 0;
  }

  75% {
    background-position-x: -0.05rem;
  } */

  100% {
    background-position-x: 0;
  }
}

.is-style-outline > a.wp-block-button__link {
  border: none;
  border-radius: unset;
  padding: 0.25rem 0.1rem;
  padding-right: 0.1rem;
}

.is-style-outline > a.wp-block-button__link:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.1rem;
  background-color: var(--Tertiary-Orange);
}

/* .buttons a:focus,
.wp-block-button__link:focus {
  color: #ccc;
  -webkit-box-shadow: inset .05em .05em .1em rgba(0,0,0,.5);
  box-shadow: inset .05em .05em .1em rgba(0,0,0,.5);
} */

.buttons--small a,
.wp-block-button__link--small {
  font-size: .9em;
  padding: .6em .9em;
}

/**
  * Menus
  =======================================*/

/* Inline
----------------*/
ul.inline,
.menu {
  list-style: none;
  margin: 0;
}

ul.inline li,
.menu li {
  display: inline-block;
  vertical-align: middle;
}

ul.inline a,
.menu a {
  color: inherit;
  text-decoration: none;
}
