@font-face {
  font-family: "Georgia";
  src: 
  local("Georgia"),
  url(/assets/fonts/georgia-webfont.woff2) format("woff2"),
  url(/assets/fonts/georgia-webfont.woff) format("woff");
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

li{
  list-style-type: none;
}

:root{
  --mainColor: #222;
  --fontColor: #444;
  --bodyBackgroundColor: #fbfbf6;
}

body{
  background-color: var(--bodyBackgroundColor);
  font-family: helvetica, sans-serif;
}

.mb-2{
  margin-bottom: 2rem;
}


/* ==========  HEADER  ========== */


header{
  position: absolute;
  background-color: var(--mainColor);
  top: -20px;
  z-index: 10;
  width: 100%;
  box-shadow: 0px -10px 20px 5px black;
  background-image: url(/assets/img/background-image.png),
    linear-gradient(
    180deg,
    #222222 10%,
    #333333 40%,
    #333333 60%,
    #222222 90%
  );
}

.header__container{
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  justify-content: center;
}

.header__logo img{
  display: block;
  /* filter: contrast(123%) drop-shadow(0px -6px 6px rgba(235, 235, 235, 0.3)); */
  filter: contrast(105%);
}

.header__div{
  text-align: right;
}

.header__div a{
  display: none;
  font-weight: bold;
  text-decoration: none;
  padding-top: .5rem;
  color: #fbfbf6;
  font-size: 1.5rem;
}

.header__div div{
  line-height: 1.2rem;
  text-align: right;
  padding: .2rem 0;
  color: #fbfbf6;
  opacity: .95;
  width: 100%;
  display: none;
}

.header__container--hours{
    text-align: left;
    margin: 0;
    padding: 0;
    margin-top: .5rem;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
  }
  .header__container--hours p{
    margin: 0;
    padding: 0;
    font-size: .95rem;
    display: flex;
    justify-content: space-between;
    margin-left: 40px;
}

.header__div h2{
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  font-weight: bold;
  padding: 0;
  padding-top: .2rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
}


/* ==========  MAIN  ==========*/


main{
  max-width: 1100px;
  margin: auto;
  font-size: clamp(1.1em, 2.3vw, 1.2em);
  line-height: clamp(1.4em, 7vw, 1.6em);
  color: var(--fontColor);
  top: 50px;
}

#div-banner-content{
  position: relative;
  margin: auto;
  top: 0;
}

.banner-content__div__image{
  width: 100%;
  height: 60vw;  
  margin-top: 20px;
  background-image: url(/assets/img/legacy-fuels-oil-truck.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}

.tagline p{
  text-align: center;
  margin: 2rem 0;
  color: #d52d35;
  color: #d0030d;
  font-size: 1.5rem;
  text-shadow: 0px 0px 1px #C3040D;
  text-shadow: 0px 0px 0.5px #d0030d;
  padding: 0 2rem;
  line-height: clamp(2rem, 6vw, 2.4rem);
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-wrap: balance;
  font-size: clamp(1.2rem, 4.5vw, 1.9rem);
}

.phone-NOTmobile{
  padding-top: 1.2rem;
  padding-bottom: 1rem;
}

.banner-content__div-products{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: auto;
  width: 100%;
  text-align: center;
}

.banner-content__div-products h2{
  font-size: clamp(1.1rem, 40vw, 1.3rem);
  padding: 0;
  margin: 1rem 0;
  font-family: griffin, Verdana, Geneva, Tahoma, sans-serif;
  font-weight: normal;
  text-shadow: 0px 0px 0.5px black;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

h3{
  font-family: Georgia, 'Times New Roman', Times, serif;
}


/* ========== ABOUT  ==========*/


#about,
#services{
  margin-bottom: 5rem;
  margin: 8rem 0;
}

#about{
  margin-top: 6rem;
}


/* =========  SERVICES  ========== */


.services{
  width: 100%;
  padding: 0 5px;
}

.servicesBoxes{
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.serviceBox{
  flex-direction: column;
  min-height: 200px;
  width: clamp(200px, 65vw, 280px);
  margin: 40px 20px;
  border-radius: 5px;
  background-color: rgb(253,253,253);
  background-color: white;
  position: relative;
  transition-duration: 350ms;
  border: 2px solid var(--mainColor);
  box-shadow: 0px 12px 12px -10px rgba(128, 128, 128, 0.863);
  margin-bottom: 0;
  text-align: center;
}

.serviceBox h3{
  background: var(--mainColor);
    background-image: url(/assets/img/background-image.png),
    linear-gradient(
    180deg,
    #222222 3%,
    #555555 40%,
    #555555 60%,
    #222222 97%
  );
  color: white;
  text-align: center;
  padding: 6px;
  font-weight: normal;
  letter-spacing: 1px; 
  margin: -1px; 
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-shadow: 0px 0px 0.7px white;
}

.serviceBox li{
  margin: 1.5rem .5rem;
}

.div__delivery{
  display: flex;
}

.div__delivery-image{
  display: none;
  height: 30vw;
  max-height: 450px;
  min-height: 300px;
  max-width: 550px; 
  min-width: 300px;
}

.div__delivery-image img{
  display: block;
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0px 10px 12px -7px rgba(90, 90, 90, 0.863);
}

.div__delivery-towns {
  flex: 1;
 }
 
.div__delivery-towns ul{
  -moz-columns: 120px 5;
       columns: 120px 5;
  margin-top: 2rem;
  list-style-type: none;
}


/* ==========  FOOTER  ========== */


footer{
  font-size: 1em;
  text-align: center;
  color: rgba(250, 250, 250, 1);
  padding-top: 2rem;
  margin-top: 8rem;
  background-image: url(/assets/img/background-image.png),
    linear-gradient(
    180deg,
    #222222 20%,
    #333333 40%,
    #333333 60%,
    #222222 80%
  );
}

footer ul{
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 150px;
  margin: 0 auto;
}

footer li{
  display: flex;
  justify-content: space-between;
  font-size: .9em;
}

.p__erm-phone,
.p__erm-phone a{
  color: white;
  text-decoration: none;
  padding-top: .7rem;
  padding-bottom: 1.5rem;
}

#phoneNumber{
  position: -webkit-sticky;
  position: sticky;
  bottom: -3px;
  left: 0;
  height: 180px;
  width: 100%;
  text-align: center;
  padding-bottom: 2rem;
  transition-duration: 150ms;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  background-image: 
  url(/assets/img/background-image.png), 
  linear-gradient(
    180deg, 
    #222 10%, 
    #444 40%, 
    #444 60%, 
    #222 90%
  );
  margin-top: 4rem;
}

#phoneNumber p{
  color: rgb(250, 250, 250);
}

.phone__flex-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.phone__flex-container p{
  padding-top: 1rem;
  color: black;
}
 
#phoneNumber a{
  padding: .5rem 2rem;
  border-radius: .5rem;
  border: 2px solid var(--mainColor);
  border: 2px solid wheat;
  text-align: center;
  color: black;
  font-weight: bold;
  background: #ff3f00;
  top: 5px;
  max-width: 280px;
  align-self: center;
  font-size: 1.2em;
  color: white;
  text-shadow: 0px 2px 0px black;
}
@media (min-width: 418px){
  .phone-mobile{
    top: 20px;
  }
}


.contact-information{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  padding-bottom: 3rem;  
  font-size: 1em;
  line-height: 1.6;
  letter-spacing: 1px;
}

.contact-information h3{
  margin-bottom: 1rem;
  font-family: helvetica, sans-serif;
  font-weight: normal;
  letter-spacing: 1px;
  font-size: 1.3rem;

  font-family: Georgia, 'Times New Roman', Times, serif;

}

.creditCards-flex {
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
  padding-top: .2em;
}

.creditCards {
  width: 2.5rem;
}

.creditCards + .creditCards {
  margin-left: 1rem;
}

.creditCards img {
  display: block;
  width: 100%;
  height: auto;
}

.emergency{
  font-size: 1.3em;
  font-weight: bold;
  text-wrap: balance;
  color: #ff3f00;
}

.contact-hours{
  padding-bottom: 2rem;
  font-size: 1em;
}

.contact-hours span{
  display: inline-block;
  width: 3rem;
}

.emergency a{
  text-decoration: none;
  color: inherit;
}

.copy{
  font-family: helvetica, sans-serif;
  font-weight: normal;
  letter-spacing: 1px;
  font-size: .9em;
  font-weight: 400;
}

.copy span{
  font-size: .8em;
}

.goreckimedia{
  font-size: .8em;
  color: rgba(250, 250, 250, .5);
  text-decoration: none;
  padding: .6rem;
  margin-bottom: 1rem;
}

.goreckimedia:hover{
  color: rgba(250, 250, 250, .8);  
}

.footer-links{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}


/* =========  MEDIA QUERIES  =========  */

@media (min-width: 380px){
  
  .banner-content__div-products{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: auto;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
    flex-wrap: wrap;
  }
  .banner-content__div-products h2 {
    width: 50%;
  }
  
}

@media (max-width: 480.99px){
  .phone-NOTmobile{
    display: none
  }
  .header__container h1{
    letter-spacing: 1px;
    padding: .2rem;
  }
  header{
    position: absolute;
    top: -20px;
  }


  #div-banner-content{
    top: 0;
  }
  
}


@media (min-width: 481px){

  .header__container{
    justify-content: space-between;
  }

  .header__logo img{
    top: 0;
    padding-bottom: 0;
  }

  .banner-content__div__image{
    background-image: url(/assets/img/legacy-fuels-propane-truck.jpg);
  }

  #phoneNumber{
    display: none
  }

  .header__div a{
    display: inline-block;
    font-size: 1.6rem;
    padding-top: .4rem;
    letter-spacing: 2px;
  }

  .header__div div{
    display: block;
  }

  .banner-content__div-products h2{
    width: 50%;
  }

}

@media (max-width: 640px){
  
  /* ==== SERVICES ====*/

  .servicesBoxes{
    flex-direction: column;
    margin: auto;
  }

  .serviceBox{
    border-radius: 5px;
    align-self: center;
    margin: 40px 0;
  }

}   

@media (min-width: 700px){

  .banner-content__div-products{
    flex-direction: row;
  }
  .banner-content__div-products h2:first-of-type{
    margin-top: 1rem;
  }
  .banner-content__div-products h2{
    font-size: clamp(1.4rem, 3vw, 1.6rem);
  }

  .banner-content__div-products{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
    flex-wrap: nowrap;
  }

  .banner-content__div-products h2{
    width: auto;
  }

}

@media (min-width: 748px){

  .contact-information{
    flex-direction: row;
  }

  .contact-hours{
    text-align: left;
  }

  .contact-address{
    text-align: right;
  }

  .div__delivery-image{
    display: block;
  }

  .creditCards-flex {
    justify-content: flex-end;
  }

}

@media (min-width: 800px){

  .banner-content__div__image{
    background-image: url(/assets/img/legacy-fuels-delivery-trucks.jpg);
    background-size: cover;
    max-height: 560px;
    width: 100%;
  }

  main{
    top: 0;
  }

}

@media (max-width: 1150px){

  .contact-information,
  .phone-NOTmobile,
  .banner-content__div-products,
  #about,
  #phoneNumber,
  .div__delivery,
  .header__container{
    padding-left: 1rem;
    padding-right: 1rem;
  }

}
