/*
  Theme Name: Haysco
  Theme URI: http://pushcrankpress.com
  Description: Hayso Theme
  Version: 1.0
  Author: PushCrankPress (webmaster@pushcrankpress.com)
  Author URI: http://pushcrankpress.com
  Tags: Default, HTML5, CSS3, PHP, JS

  License: MIT
  License URI: http://opensource.org/licenses/mit-license.php
*/

/*--------------------------------------------------------------*\
***----------------- Import theme-options.css -----------------***
*** Includes default font, link, paragraph, span, etc. styling ***
\*--------------------------------------------------------------*/

@import "theme-options.css";

/*--------------------------*\
--------Global Styles---------
\*--------------------------*/

/*--- See theme-options.css to define global styles ---*/

/* ---------------------------------- */
/* ------ Site Specific Styles ------ */
/* ---------------------------------- */

:root {
  --lemon-lime: #CDE089;
  --blue: #0F5080;
  --trans-blue: rgba(15, 80, 128, 0.4);
  --trans-blue-too: rgba(15, 80, 128, 0.75);
  --text: #737373;
  --gray: #EDEDED;
  /* -- -- -- */
  --flow-space--xs: 1vw;
  --flow-space--sm: 2vw;
  --flow-space: 3vw;
  --flow-space--lg: 5vw;
  --flow-space--xl: 9vw;
  --flow-space--xxl: 15vw;
  /* -- -- -- */
  --min-element-width: calc(13rem + 10vw);
}

html * {
  box-sizing: border-box;
  font-family: "Apparat", sans-serif;
}

body {
  background: #f5f5f5;
}

main {
  background: white;
}

a, a:hover, a:visited, a:active {
  color: inherit;
}

a:hover {
  cursor: pointer;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

h1 {
  font-size: clamp(35px, 4.5vw, 60px);
}

h2 {
  font-size: clamp(35px, 4.5vw, 53px);
}

h3 {
  margin: 0;
  font-size: clamp(35px, 3.5vw, 42px);
  color: black;
}

h4 {
  margin-top: 0;
  font-size: 35px;
  text-align: left;
}

h5 {
  font-size: 24px;
  text-align: center;
  color: black;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.site-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
}

.block--wrapper {
  padding: clamp(2rem, var(--flow-space--lg), 5rem) clamp(2rem, var(--flow-space--lg), 5rem) 0 clamp(2rem, var(--flow-space--lg), 5rem);
}

.block--wrapper--full {
  padding: clamp(2rem, var(--flow-space--lg), 5rem);
}

.block--wrapper--vertical {
  padding: 0 clamp(2rem, var(--flow-space--lg), 5rem);
}

.bg-image {
  background-position: center;
  background-size: cover;
}

.button {
  display: grid;
  place-items: center;
  width: 144px;
  height: 48px;
}

.button-style-one {
  color: white !important;
  background-color: var(--blue);
}

.button-style-two {
  color: var(--blue) !important;
  font-weight: bold;
  background-color: var(--lemon-lime);
}

.button-style-three {
  border: 2px solid var(--lemon-lime);
  color: var(--blue) !important;
  font-weight: bold;
  background-color: transparent;
}

.button-style-four {
  border: 2px solid var(--lemon-lime);
  margin: 45px auto 0 auto;
  color: white !important;
  font-weight: bold;
  background-color: transparent;
}

.text-center {
  text-align: center;
}

.margin-zero {
  margin: 0;
}

.title-rule {
  margin: 25px auto;
  width: 85px;
  height: 2px;
  background: #CFCFCF;
}

.color-white {
  color: white !important;
}

.max-width-600 {
  max-width: 600px;
  margin: 0 auto;
}

header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 125px;
  background: white;
}

header > * {
  flex: 1 1 0;
  max-height: 100%;
}

header nav.large-screens {
  display: flex;
}

header nav.large-screens > .button {
  display: none;
  margin-left: 50px;
}

header nav.large-screens ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 50px;
  padding-left: 0;
}

header nav.large-screens li {
  list-style: none;
}

header nav.large-screens li.current-menu-item {
  border-bottom: 2px solid var(--lemon-lime);
  padding-bottom: 5px;
}

header nav.large-screens a {
  font-weight: bold;
  color: var(--blue) !important;
}

header nav.large-screens #menu-item-34 {
  display: none;
}

header #menu-main-menu-1 li a {
  color: white !important;
}

header .button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 30px;
}

header .small-screens {
  display: none;
}

header .burger-menu--wrapper {
  position: relative;
  width: 40px;
}

main.interior-page {
  background-color: #f3faff;
}

/* --------------------------------- */
/* ------ Burger Icon Styles ------- */
/* --------------------------------- */

header .burger-menu--wrapper:hover {
  cursor: pointer;
}

header .burger-patty {
  margin-bottom: 13px;
  width: 38px;
  height: 2px;
  background: var(--blue);
  opacity: 1;
}

header .burger-patty:last-of-type {
  margin-bottom: 0px;
}

header .burger-patty:nth-of-type(3) {
  position: absolute;
  bottom: 2px;
}

header .burger-menu--wrapper.open :where(.burger-patty:first-of-type, .burger-patty:last-of-type) {
  opacity: 0;
}

header .burger-menu--wrapper.open .burger-patty:nth-of-type(2) {
  transform: rotate(45deg);
}

header .burger-menu--wrapper.open .burger-patty:nth-of-type(3) {
  transform: rotate(-45deg);
}

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

header nav.small-screens {
  position: absolute;
  z-index: 10;
  top: 100%;
  right: 0;
  display: none;
  background: var(--blue);
  width: 100%;
  height: 100%;
  min-height: 350px;
  color: white;
}

header nav.small-screens.open {
  display: block;
}

header nav.small-screens ul {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin: 0;
  padding-left: 0;
  height: 100%;
  text-align: center;
}

header nav.small-screens li {
  list-style: none;
}

header nav.small-screens li a {
  font-weight: bold;
  text-transform: uppercase;
}

/* ---------------------------------- */
/* ------ General Hero Styles ------- */
/* ---------------------------------- */

hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(400px, 50vw, 650px);
}

hero.small {
  height: 400px;
}

hero.large {
  height: 625px;
}

hero .title {
  display: grid;
  place-items: center;
  border: 3px solid var(--lemon-lime);
  padding-top: 3px;
  padding-left: 30px;
  padding-right: 30px;
  height: clamp(75px, 10vw, 100px);
  background: transparent;
  font-weight: bold;
  text-align: center;
  color: white;
}

hero .title.blue {
  border-color: var(--blue);
  color: var(--blue);
}

hero .interior-hero {

}

/* ------------------------------- */
/* ------ Home Page Styles ------- */
/* ------------------------------- */

hero.home h2 {
  margin-top: 0px;
  margin-bottom: 30px;
}

/* -------------------------------- */
/* ------ About Page Styles ------- */
/* -------------------------------- */

.flex--wrapper.three-item-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5%;
}

.flex--wrapper.three-item-grid :where(.stack, .flex-item) {
  flex: 1 1 23rem;
  min-width: 200px;
  max-width: -webkit-fit-content;
  max-width: -moz-fit-content;
  max-width: calc(35vw + 100px);
  margin-bottom: clamp(25px, var(--flow-space--xl), 75px);
}

.flex--wrapper.three-item-grid .image {
  height: 235px;
}

.flex--wrapper.three-item-grid .description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  max-height: 78px;
  transition: all 1s ease;
}

.flex--wrapper.three-item-grid .description.open {
  max-height: 415px;
  transition: all 1s ease;
}

.flex--wrapper.three-item-grid .stack .down-caret {
  display: block;
  margin: 0 auto;
  cursor: pointer !important;
  transition: all 1s ease;
}

.flex--wrapper.three-item-grid .stack .down-caret.open {
  transform: rotate(180deg);
  transition: all 1s ease;
}

section#about-section {
  background: #F9F9F9;
}

section#about-section .group--wrapper .stack-large {
  display: flex;
  flex-wrap: wrap;
  gap: 5%;
}

section#about-section .group--wrapper .stack-large:nth-of-type(2) {
  flex-wrap: wrap-reverse;
}

section#about-section .group--wrapper .stack-inner {
  min-width: calc(198px + 16vw);
}

section#about-section .group--wrapper .stack-large .stack-inner:first-of-type {
  flex: 1;
  padding-top: 3rem;
}

section#about-section .group--wrapper .stack-large .stack-inner:last-of-type {
  flex: 1.2;
  padding-top: 3rem;
}

section#about-section .group--wrapper .stack-large:nth-of-type(2) .stack-inner:last-of-type {
  order: -1;
}

section#about-section .group--wrapper .stack-large:last-of-type {
  margin-bottom: 0px;
}

section#about-section .group--wrapper .stack-image {
  height: 100%;
  min-height: 300px;
}

section#about-section h2 {
  position: relative;
  top: -10px;
  margin: 0;
  text-transform: uppercase;
}

section#about-section .content {
  margin-bottom: 25px;
}

section#about-section .stack-image {
  margin-bottom: 25px;
  height: clamp(235, 30vw, 400px);
}

section#about-section .button {
  display: inline-grid;
  padding: 0 2rem;
  width: auto;
  font-weight: 400;
}

/* ---------------------------------------- */
/* --------- Services Page Styles --------- */
/* ---------------------------------------- */

section#services-grid {
  background-color: white;
}

section#services-grid .grid--wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%/2, max(280px, 100%/5)), 1fr));
  grid-gap: calc(var(--flow-space--xs) + 1rem);
}

section#services-grid .grid-item {
  aspect-ratio: 4 / 3;
  background-color: rgba(0,0,0,0.5);
  background-blend-mode: multiply;
  display: grid;
  place-items: center;
  font-size: 1.25em;
  font-weight: 900;
  color: white;
}

section#services-grid .grid-item:hover {
  background-color: rgba(0,0,0,0);
  background-blend-mode: multiply;
}

/* ---------------------------------- */
/* --------- Service Styles --------- */
/* ---------------------------------- */

section#service-bottom-image .bottom-image {
  aspect-ratio: 2 / 1;
}

/* ----------------------------------- */
/* ------- Contact Page Styles ------- */
/* ----------------------------------- */

hero.contact-page {
  position: relative;
}

.contact-page.overlay--wrapper {
  width: 100%;
  background-color: var(--trans-blue);
}

.contact--container.desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12.5%;
}

.contact--container.desktop > * {
  display: inline-flex;
}

.contact-page section#contact-information {
  display: none;
}

.contact--container.mobile {
  width: fit-content;
  margin: 0 auto;
}

.contact--container.mobile > * {
  display: flex;
}

.contact--container img {
  margin-right: 15px;
}

.contact--container p {
  color: black;
  font-weight: bold;
}

/* --------------------------------------- */
/* --------- Gravity Form Styles --------- */
/* --------------------------------------- */

.gravity-form--wrapper {
  display: block;
  margin: 0 auto;
  max-width: 700px;
}

.gform_required_legend {
  display: none;
}

.gravity-form--wrapper input {
  height: 50px;
}

.gravity-form--wrapper input::placeholder {
  color: #222;
  font-weight: 600;
}

.gravity-form--wrapper textarea {
  height: 235px !important;
}

.gravity-form--wrapper :where(input, textarea) {
  border: none;
  padding-left: 15px !important;
  background-color: var(--gray);
  font-size: 16px;
}

.gravity-form--wrapper input[type="submit"] {
  background-color: var(--blue);
  font-weight: 600;
  color: white;
}

.gravity-form--wrapper .gform_footer.top_label {
  margin: 10px 0 0 !important;
  padding: 0px 0 !important;
}

/* ---------------------------------------- */
/* --------- Certification Styles --------- */
/* ---------------------------------------- */

section#certifications {
  background: white;
}

section#certifications .flex--wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

section#certifications .flex-item {
  flex: 0 0 calc(20% - 20px);
  color: white;
  padding: 20px;
  margin: 10px;
  min-width: 230px;
}

section#certifications .flex--wrapper img {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* ------------------------------------ */
/* --------- Emergency Styles --------- */
/* ------------------------------------ */

section#emergency {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5%;
  background: #778b26;
  background-blend-mode: multiply;
}

section#emergency h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: white;
}

section#emergency a {
  margin: 1.5em 0;
}

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


footer {
  background: var(--blue);
}

/* footer .flex--wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15%;
} */

footer h4 {
  margin-top: 0;
}

footer .flex--wrapper {
  justify-content: space-between !important;
}

footer .flex-item {
  flex: 0 1 auto !important;
}

footer :where(h5, p) {
  margin: 0;
  color: white;
  text-align: left;
}

footer .brand {
  margin-bottom: 2rem;
}

footer .social {
  display: flex;
  justify-content: right;
  flex-wrap: wrap;
  align-content: flex-start;
}

footer .social img:not(:last-of-type) {
  /* margin-right: 1rem; */
}

@media only screen and (max-width: 1150px) {
  header {
    flex-direction: row-reverse;
  }
  header > * {
    flex: unset;
  }
  header .button-row {
    display: none;
  }
  header nav.large-screens > .button {
    display: grid;
  }
}

@media only screen and (max-width: 850px) {
  header nav.large-screens {
    display: none;
  }
  header .small-screens {
    display: block;
  }
  .contact-page.overlay--wrapper {
    display: none;
  }
  .contact-page section#contact-information {
    display: block;
  }
}

@media only screen and (max-width: 785px) {
  footer .social {
    justify-content: left;
  }
}
