/*
Theme Name: Recycling Works Custom Theme
Author: DM (Development August/September 2024)
Description: Responsive theme based on website design by Whirlwind Creative for Recycling Works / Pennsylvania Recycling Markets Center.
Website developed for the RMC by DMarceau. 
Version: 1 
Requires at least: 5.0
Tested up to: 6.6.1 WordPress Version
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Custom colors, font weights, font sizes for Recyling Works */
:root {
        --clr-white: hsl(0, 0%, 100%);
        --clr-light-grey: hsl(0, 0%, 96%);  
        --clr-medium-grey: hsl(270, 7%, 76%);
        --clr-dark-grey:hsl(180, 0%, 50%);
        --clr-black:hsl(0, 0%, 0%);
        --clr-accent: hsl(6, 93%, 71%);   
        
        /*font sizes*/
        --fs-xxsmall: .8125rem;  
        --fs-xsmall: .8rem;
        --fs-small: .9375rem; /*16px*/
        --fs-default: 1rem;
        --fs-large: 1.5rem;
        --fs-xlarge: 2.1rem;
        --fs-xxlarge: 3rem;

        /*font weights*/
        --fw-light: 300;
        --fw-medium: 400;
        --fw-semi-bold: 500;
        --fw-bold: 600;
        --fw-x-bold:700;
        --fw-xxbold:800;
        --fw-xxx-bold:900;
    }
 
 /* BEGIN CSS Resets */
*,
::before,
::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}
html,
body {
    margin-inline: auto;
    background-color: var(--clr-light-grey);
}
html {
  scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;    
    padding: .5rem;
    margin-inline: auto;
}
/* END  CSS Resets */ 

/* BEGINS Custom CSS */ 
p { 
    line-height: 1.8rem;
    font-family: "Poppins", sans-serif;
    font-weight: var(--fw-medium);
    color: var(--clr-dark-grey);      
}

a {
text-decoration: none;
color: var(--clr-medium-grey)
}

/*BEGIN Custom Fonts*/ 
@font-face {
    font-family: "KingthingsPrintingkit";
    src: url("assets/fonts/kingthings_printingkit-webfont.woff2") format("woff2");       
   }
  
   .custom-font-1 {
    font-family: "KingthingsPrintingkit", serif; 
    color: var(--clr-dark-grey);     
    text-transform: uppercase;
    letter-spacing: 0..05em;
    padding: 0;   
   } 
 
  h5 {
    font-size: 1rem; 
    font-weight:600;
    padding-top: .5rem;
  }

   h4 {
    font-family: "KingthingsPrintingkit", serif; 
    color: var(--clr-dark-grey);  
    font-size: 1.2rem;   
    text-transform: uppercase;
    text-align: start;
    letter-spacing: .05em;
    padding: .5rem 0rem 4rem 0rem;
   }

   @font-face {
    font-family: "DrunkTank_StressedOut, sans-serif";
    src: url("assets/fonts/DrunkTank_StressedOut.ttf") format('truetype');
  }
   .custom-font-2 {
    font-family: "DrunkTank_StressedOut, sans-serif";     
    color: var(--clr-medium-grey);     
    text-transform: none;

   }
 
   h1 {
    font-family: "DrunkTank_StressedOut, sans-serif";  
    font-size: 3rem;
    color: var(--clr-dark-grey);
    justify-content: center;
    font-weight: 200;
    padding-top: 1rem;
   }

   h3 {
    font-family: "DrunkTank_StressedOut, sans-serif";   
    font-size: 2.3rem;
    color: var(--clr-dark-grey);
    justify-content: center;
    font-weight: 200;
    /* text-transform: uppercase; */
    text-align: left;
   }

    @font-face {
      font-family: "Norwester";
      src: url("/assets/fonts/Norwester.ttf") format('truetype');
    }
     .custom-font-3 {
      font-family: "Norwester", sans-serif;     
      color: var(--clr-medium-grey);     
      text-transform: uppercase;
      padding: 0; 
     }
     h1 {
      font-family: "DrunkTank_StressedOut, sans-serif";  
      font-size: 3rem;
      color: var(--clr-dark-grey);
      justify-content: center;
      font-weight: 200;
     }

.bold { font-weight: var(--fw-bold); }

.bold-underline {
    font-weight: var(--fw-semi-bold); 
    text-decoration: underline;
    padding-top: .4rem;
}

.title { 
  font-size: var(--fs-large);
  padding-block: 1.3rem; 
  line-height: 1.8rem; 
}
.xx-sm  { font-size: var(--fs-xxsmall); }

.x-sm  { font-size: var(--fs-xsmall); }

.sm { font-size: var(--fs-small); }

.md {
  font-size: 1.1rem;
  padding-block: 1.2rem; 
  padding-inline: 2rem; 
  line-height: 1.2rem; 
}

.lg { 
    font-size: var(--fs-large);
    padding-block: 1.3rem; 
    line-height: .5rem; 
}

.x-lg { 
    font-size: var(--fs-xlarge);
    padding-block: 1.2rem;
    line-height: 1rem;
}

.xx-lg {
    font-size: var(--fs-xxlarge);
    padding-block: 1rem;
    line-height: 1rem;    
}

 
hr { 
    border: 0;
    height: 1px;
    background: #333;
    background-image: linear-gradient(to right, #ccc, #333, #ccc);     
    
}  
.spacer{
  padding: 1.6rem;
}
 
.page-wrapper{
    max-width: 80rem;
    max-height: 100%;
    margin-inline: auto;
   padding-inline: 1rem; 
    background-color: var(--clr-white);    
}

.center{
    text-align: center;
    justify-content: center;
    justify-items: center;
    align-items: center;
    display: block;
    margin-left: auto;
    margin-right: auto; 
}

header {
    margin: 0;
    padding: 0;
    z-index: 1;
    width: 100%;
    background-color: hsl(0, 0%, 100%);
    box-shadow: 0 8px 6px -6px hsl(0, 0%, 61%);
    background-color: var(--clr-white);
    /* border: 1px solid red; */
    }

    .sticky-header {
      position: sticky;
      top: 0; 
      background-color: var(--clr-white);
    }
    
/* nav shadow */
.edge-shadow {
    box-shadow: 0 8px 6px -6px hsl(0, 0%, 61%);
    background-color: var(--clr-white);
    }

/*One-page scroll - adds margin to scroll to proper posision on the page*/
    *[id] {
      scroll-margin-top: 10.6rem; /* Adjust this value as needed */   }



/* BEGIN nav menu */

/* .container{
    width: 1000px;
    margin: auto;
} */


.nav_checkbox{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 10px 10px;
}

 /* Space between menu items */
ul li {    
    font-family: "KingthingsPrintingkit", serif;     
    font-size: 1.2rem; 
    letter-spacing: .1rem;   
    text-transform: uppercase;
}  
/*Display pipe pipe after each menu item except last*/
ul:before {
  content:" "; 
  height: 100%; 
  position:absolute; 
  background-color: #fff; 
  z-index:2;
}


ul > li{
  display:inline; 
  padding-left: 0.5rem; 
  padding-right: 0.9rem; 
  position:relative;
}

ul > li:before {
  position:absolute; 
  right:0; transform:translateX(50%);  
  content: "|"; 
  color: #c5c1c9;
}

ul > li:last-child:before{
  display:none;
}

/* .logo{
    text-decoration: none;
    color: white;
    padding-left: 10px;    
} */

.logo img {
   width:  10rem; 
   padding: 0rem;
}

.tab-nav{
    outline: none;
    display: none;
}

.label{
    display: none;
    color: white;
}

.burger{
    width: 35px;
    height: 5px;
    background-color: rgb(52, 50, 50);
    margin-top: 5px;
}

.content_nav{
    grid-column: 3;
    list-style: none;
    margin: 0;
    padding: 0;
}

.content_nav li{
    display: inline-block;
    padding-right: 10px;
}

.content_nav li a{
    text-decoration: none;
    color: var(--clr-dark-grey);
    position: relative;
}

.content_nav li a::after{
    content: '';
    display: block;
    height: 2px;
    background-color: var(--clr-medium-grey); /*link hover underline color*/
    position: absolute;
    left: 0;
    right: 0;
    transform-origin: right;
    transform: scale(0, 1);
    transition: transform ease-in-out 0.5s;
}

.content_nav li a:hover::after{
    transform: scale(1, 1);
    margin-top: 7px;    
}

.content_section{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    height: 50vh;
    margin-top: 0rem;
    padding-inline: 1rem; /*check this!!!!!!*/
    background-image: url(back.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;   
    justify-items: center;
    align-items: center;
}

@media screen and (max-width: 1280px){
    /* .container{
        width: 100%;
    } */

    .logo img {
        width:  7rem; 
     }
     .lg { 
      font-size: 1rem;
      padding-block: 2rem; 
      line-height: 2rem; 
  }
    }

@media screen and (max-width: 770px){
    .logo img {
        width:  5rem; 
     }
     .footer-wrapper {
        padding-inline: 2rem;
     }
    .label{

        display: grid;
        cursor: pointer;
        grid-column: 3;
        padding-right: 20px;
    }

    .content_nav{
        display: grid;
        grid-template-columns: 1fr;
        grid-column: 1/4;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: all ease-in-out 0.6s;
    }

     .nav_checkbox input:checked ~ .content_nav{
        max-height: 500px;
    }

    .content_nav li{
        padding: .6rem .6rem; /*was 10 px -padding between mobile menu dropdown items*/
        color: var(--clr-medium-grey);  
    } 

    .lg { 
      font-size: 1.2rem;
      padding-block: 2rem; 
      line-height: 2rem; 
  }
  
  .x-lg { 
      font-size: 1.8rem;
      padding-block: 1.5rem;
      line-height: 2rem;
  }
  
  .xx-lg {
      font-size: var(--fs-xxlarge);
      padding-block: 3rem;
      line-height: 3rem;
      
  }
}
/* END header with nav menu */
 

/* BEGIN Slider with auto fade https://medium.com/@michael.warneke/responsive-plain-css-slide-fade-show-332a8febdb81*/
 
/* Slideshow container */
#slide-container {
	position: relative;
	max-width: 1100px; /* responsiveness */
    }

/* First element to be in block mode for responsiveness */
#slide-first-element {
	display: block; /* to get the dimensions set */
	width: 100%;
	height: auto;
}

/* Other element to be in absolute position *//* Step 1 of 3 - to add slide 4*/
#slide-element-2,
#slide-element-3,
#slide-element-4
  {     
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

/* Style images */
.slide-image {
	width: 100%;
	border-radius: 0;
    padding: 0rem;
}

/* Style text */
.slide-text {
	position: absolute;
	bottom: 40px;
	background-color: #b89430;
	opacity: 0.8;
	color: white;
	width: 100%;
	text-align: center;
	font-size: 2rem;
}

/* Animation settings for individual elements */
/* For more images the animations have to be adjusted */
#slide-first-element {
	animation: fade-1 10s infinite;
	-webkit-animation: fade-1 10s infinite;
}

#slide-element-2 {
	animation: fade-2 10s infinite;
	-webkit-animation: fade-2 10s infinite;
}

#slide-element-3 {
	animation: fade-3 10s infinite;
	-webkit-animation: fade-3 10s infinite;
}
#slide-element-4 {
	animation: fade-3 10s infinite;
	-webkit-animation: fade-4 10s infinite;
}

@keyframes fade-1 {
	0% { opacity: 1; }
	33% { opacity: 0; }
	66% { opacity: 0; }
	100% { opacity: 1; }
   }
   @keyframes fade-2 {
	0% { opacity: 0; }
	33% { opacity: 1; }
	66% { opacity: 0; }
	100% { opacity: 0; }
   }
   @keyframes fade-3 {
	0% { opacity: 0; }
	33% { opacity: 0; }
	66% { opacity: 1; }
	100% { opacity: 0; }
   }
/* example for a 4th slide */
@keyframes fade-4 {
	0% { opacity: 0; }
	25% { opacity: 0; }
	50% { opacity: 0; }
	75% { opacity: 1; }
	100% { opacity: 0; }
   }
 
/* END Slider with auto fade https://medium.com/@michael.warneke/responsive-plain-css-slide-fade-show-332a8febdb81*/

/*BEGIN button CSS*/
.button{    
    background: var(--clr-medium-grey);
    border: var(--clr-dark-grey);
    border-style: solid; 
    border-width: 1px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: "KingthingsPrintingkit", serif; 
    text-transform: uppercase;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: .1em;
    line-height: 1.3;
    margin-block: 3rem;
    padding: .5rem 2rem;
    position: relative;  
    border-radius: .2rem;  
    text-align: center;
    text-decoration: none;  
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
}  
    .button:hover {
        box-shadow: 0 .3rem .5rem 0 rgba(0,0,0,0.15),0 17px 30px 0 rgba(0,0,0,0.15);
      }

      .button2{    
        background: var(--clr-medium-grey);
        border: var(--clr-dark-grey);
        border-style: solid; 
        border-width: 1px;
        color: #fff;
        cursor: pointer;
        display: inline-block;
        font-family: "KingthingsPrintingkit", serif; 
        text-transform: uppercase;
        font-size: 1.6rem;
        font-weight: 500;
        letter-spacing: .2em;
        line-height: 1.3;
        margin-block: 3rem;
        padding: .5rem 2rem;
        position: relative;  
        border-radius: .2rem;  
        text-align: center;
        text-decoration: none;  
        -webkit-transition-duration: 0.4s; /* Safari */
        transition-duration: 0.4s;
    }  
        .button2:hover {
            box-shadow: 0 .3rem .5rem 0 rgba(0,0,0,0.15),0 17px 30px 0 rgba(0,0,0,0.15);
          }

/*END button CSS*/


.button{    
    background: var(--clr-medium-grey);
    border: var(--clr-dark-grey);
    border-style: solid; 
    border-width: 1px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: "KingthingsPrintingkit", serif; 
    text-transform: uppercase;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: .1em;
    line-height: 1.3;
    margin-block: 3rem;
    padding: .5rem 2rem;
    position: relative;  
    border-radius: .2rem;  
    text-align: center;
    text-decoration: none;  
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
}  
    .button:hover {
        box-shadow: 0 .3rem .5rem 0 rgba(0,0,0,0.15),0 17px 30px 0 rgba(0,0,0,0.15);
      }
/*Contact form wpxf7 SUBMIT / SEND  button CSS*/
input.wpcf7-submit{    
        background: var(--clr-medium-grey);
        border: var(--clr-dark-grey);
        border-style: solid; 
        border-width: 1px;
        color: #fff;
        cursor: pointer;
        display: inline-block;
        font-family: "KingthingsPrintingkit", serif; 
        text-transform: uppercase;
        font-size: 1.6rem;
        font-weight: 500;
        letter-spacing: .2em;
        line-height: 1.3;
        margin-block: 3rem;
        padding: .5rem 2rem;
        position: relative;  
        border-radius: .2rem;  
        text-align: center;
        text-decoration: none;  
        -webkit-transition-duration: 0.4s; /* Safari */
        transition-duration: 0.4s;
    }  
input.wpcf7-submit:hover {
            box-shadow: 0 .3rem .5rem 0 rgba(0,0,0,0.15),0 17px 30px 0 rgba(0,0,0,0.15);
          }

/*END button CSS*/




/* PA Map page: people-places.html - image map responsive 'map-wrapper'*/
      
   #map-wrapper { 
    width: 100%;
    margin-left: auto;
    margin-right: auto;
   }

  #map-wrapper img {
    max-width: 100%; 
   }  

   /* NOTE - added position: relative; class to enable hover links to work with responsive map*/
  .map-position {
    position: relative;
  }
  
  #anchor-pittmoss {
    /* border: 1px solid red; */
    height: 12%;
    width: 14%;
    position: absolute;
    left: 4%;
    top: 51%;
  }
  #anchor-lycomingmrf{
    /* border: 1px solid blue; */
    height: 12%;
    width: 16%;
    position: absolute;
    left: 45%;
    top: 28%;
  }
  #anchor-graham{
    /* border: 1px solid greenyellow; */
    height: 11%;
    width: 17%;
    position: absolute;
    left: 67%;
    top: 68%;
  }
  #anchor-aero{
    /* border: 1px solid white;  */
    height: 10%;
    width: 17%;
    position: absolute;
    left: 74%;
    top: 82%;
  }
/* END Responsive Image Map */


/*BEGIN Infinite Scroll of corporate logos*/

.scroll-wrapper {
    width: 96%;
    max-width: 1536px;
    margin-inline: auto;
    position: relative;
    height: 70px;
    padding-top: 0rem;
    overflow: hidden;
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0)
    );
  }
  
  @keyframes scrollLeft {
    to {
      left: -200px;
    }
  }
  
  .item {
    width: 150px;
    height: 75px;
    background-color: transparent;  
    /* border-radius: 6px; */
    position: absolute;
    left: max(calc(200px * 8), 100%);
    animation-name: scrollLeft;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
  
  .item1 {
    animation-delay: calc(30s / 8 * (8 - 1) * -1);
  }
  
  .item2 {
    animation-delay: calc(30s / 8 * (8 - 2) * -1);
  }
  
  .item3 {
    animation-delay: calc(30s / 8 * (8 - 3) * -1);
  }
  
  .item4 {
    animation-delay: calc(30s / 8 * (8 - 4) * -1);
  }
  
  .item5 {
    animation-delay: calc(30s / 8 * (8 - 5) * -1);
  }
  
  .item6 {
    animation-delay: calc(30s / 8 * (8 - 6) * -1);
  }
  
  .item7 {
    animation-delay: calc(30s / 8 * (8 - 7) * -1);
  }
  
  .item8 {
    animation-delay: calc(30s / 8 * (8 - 8) * -1);
  }
/*END Infinite Scroll of corporate logos*/

/* BEGIN grid / card CSS */
[class*="grid"] {
    display: grid;
    gap: 1rem;
  }
  .grid {
      display: grid;
      margin: .1rem;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));   /*300px is the determined ideal width; no media queries*/
  }
  
  .card {
      padding: 1em 1em;
      text-align: start;
      /* background-color: aqua;  */
       }
/* END grid / card CSS */

/*BEGIN Footer CSS*/ 
footer {
    text-align: center;
    padding: 0px;
    /* outline-color: DarkSalmon;
    outline-style: solid;      */
    min-height: 8rem;
}   

.footer-wrapper{
    max-width: 80rem;
    min-height: 5rem;
    margin-inline: auto;
    padding-block: 2rem;
    background-color: var(--clr-white);
}
/*BEGIN Footer CSS*/ 

/* BEGIN Email contact form (NO .js) https://codepen.io/tutsplus/pen/eWXyYY  */
.contain {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
  }
  @media (min-width: 600px) {
    .contain {
      padding: 1rem;
    }
  }
   
  h3 {
    margin-bottom: .5rem;
  }

  input:focus,
  textarea:focus {
    outline: 3px solid var(--clr-light-grey);
  }
  
  input,
  textarea
  {
    width: 100%;
    border: 1px solid #000;
  }
 
  .wrapper-map > * {
    padding: 1em;
  }
  @media (min-width: 700px) {
    .wrapper-map {
      display: grid;
      grid-template-columns: 1fr 2fr;
    }
    .wrapper-map > * {
      padding: 2em 2em;
    }
  }
  
  ul, li {
    display: inline-block;
    list-style: none;
    padding: 0;
  }
  
  ul {
    padding-top: 1rem;
  }
  
  .contacts {
    background: var(--clr-dark-grey);
    color: #fff;
  }
  
  .form {
    background: #fff;
  }
  
  form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    margin-top: 2rem;
  }
  form label {
    display: block;
  }
  form p {
    margin: 0;
  }
  
  .full-width {
    grid-column: 1 / 3;
     
  }  
  
/* button, */
input,
textarea {
padding: 1em;
}
 
/* button {
background: var(--clr-light-grey);
width: 100%;
border: 0;
border-radius: .5rem;
}
button:hover, button:focus {
background: var(--clr-medium-grey);
outline: 0;
color: var(--clr-white)
}   */
/* END Email contact form (NO .js) https://codepen.io/tutsplus/pen/eWXyYY  