html, body {
    margin: 0;
    height: auto;
    min-height: 100%;
    background-color: #FAFAFA;
}

.row {
    display: flex;
    flex-direction: row;
    flex: 1;
    flex-wrap: wrap;
}

.column {
    display: flex;
    flex-direction: column;
    flex: 1;
}

h1, h2, p, a, li {
    font-family: 'Montserrat', sans-serif;
}

.underline {
    position: relative;
    color: #4A5879;
}

.underline:after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 100px;
    height: 6px;
    background-color: #FFC653;
}

.container {
    align-items: center;
    text-align: center;
}

/* Header */
.header a {
    color: #4A5879;
    font-weight: 500;
}

.header {
    background: white;
    box-shadow: 1px 1px 4px 0 rgba(0,0,0,.1);
    position: fixed;
    width: 100%;
    z-index: 3;
    height: 60px; 
}

.header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    background: white;
}
  
.header li a {
    display: block;
    padding: 20px 20px;
    text-decoration: none;
}
  
.header li a:hover,
.header .menu-btn:hover {
    color: #000;
}
  
.header .phone {
    float: left;
    padding: 0px 20px;
    text-decoration: none;
    padding-top: 12px;
}

#phone-icon {
    height: 30px;
    width: auto;
    float: left;
    padding: 7px;
}

.phone p {
    margin: 0;
}

.phone .freeQuote {
    font-size: 1em;
    padding-top: 7px;
    padding-right: 10px;
}

#free {
    font-size: 1.3em;
    font-weight: 600;
}

#pave {
    font-size: 0.7em;
    padding-left: 70px;
    font-weight: 600;
    color: #4A5879;
}

.header li {
    border-top: 0.5px solid #e6e3e3;
}

.call-btn {
    background: #FFC653;
    padding: 5px;
    border-radius: 5px;
    display: inline-block;
    overflow: hidden;
    position: relative;
    width: 145px;
}

.call-btn .column {
    float: right;
}

.call-btn img {
    position:absolute;top:0;left:0;height:100%;width:100%;
}

.call-btn:before{
    content:"";z-index:10;
    position:absolute;height:200%;width:300%;top:-120%;left:-120%;
    background:linear-gradient(transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%);
    transition:all 20s;
    transform:rotate(-45deg);
    animation: shine 5s infinite forwards;
}
@keyframes shine{
    0%{top:-120%;left:-120%;}
    10%{left:100%;top:100%;}
    20%{left:100%;top:100%;}
    100%{left:100%;top:100%;}
}

#logo {
    height: 55px;
    margin-left: 20px;
}

/* menu */
  
.header .menu {
    clear: both;
    max-height: 0;
    transition: max-height .5s ease-out;
}
  
/* menu icon */
  
.header .menu-icon {
    cursor: pointer;
    display: inline-block;
    float: right;
    padding: 28px 20px;
    position: relative;
    user-select: none;
}
  
.header .menu-icon .navicon {
    background: #4A5879;
    display: block;
    height: 2px;
    position: relative;
    transition: background .2s ease-out;
    width: 18px;
}
  
.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
    background: #4A5879;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
  
.header .menu-icon .navicon:before {
    top: 5px;
}
  
.header .menu-icon .navicon:after {
    top: -5px;
}
  
/* menu btn */
  
.header .menu-btn {
    display: none;
  }
  
.header .menu-btn:checked ~ .menu {
    max-height: 240px;
}
  
.header .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
}
  
.header .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
}
  
.header .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
}
  
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
    top: 0;
}
  
/* Hero */

.hero {
    height: calc(100vh);
    height: -moz-calc(100vh); /* Firefox */
    height: -webkit-calc(100vh); /* Chrome, Safari */
    justify-content: center;
    align-items: center;
    color: white;
    background: linear-gradient(
    rgba(0, 0, 0, 0.4), 
    rgba(0, 0, 0, 0.4)
    ), url("img/image.jpg") no-repeat center fixed;
    background-size: cover;
    font-size: 1.5em;
    color:white;
    text-shadow: 0 2px 7px rgba(0,0,0,0.4);
    padding-top: 30px;
    text-align: center;
}

.hero h1 {
    text-shadow: 0 2px 7px rgba(0,0,0,1);
}

.hero img {
    height: 300px;
    width: 500px;
}

.quote-btn {
    background-color: white;
    border: 2px solid #4A5879;
    color: #4A5879;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    width: 130px;
    text-shadow: none;
}

.quote-btn:hover {
    background-color: #4A5879;
    color: #FFC653;
}

.numberOne, .platinumPaving {
    color: #FFC653;
}

/* Services Home Page */
.services {
    text-align: center;
    align-items: center;
    color: #4A5879;
}

.services h1 {
    font-size: 2.5em;
    margin-top: 50px;
}

.services p {
    width: 75%;
}

.serviceBoxRow {
    width: 90%;
    margin-top: 70px;
    justify-content: center;
}

.serviceBox {
    height: 200px;
    max-width: 25%;
    min-width: 25%;
    border-radius: 2px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
    transition: transform .5s;
    color: white;
    text-shadow: 0 2px 7px rgba(0,0,0,1);
    font-weight: 700;
    font-size: 1.7em;
    padding: 1%;
    margin: 15px;
    align-items: center;
    text-decoration: none;
}

.serviceBox p {
    position: relative;
}

.serviceBox p:after {
    content: '';
    position: absolute;
    bottom: -10px; left: 33%;
    width: 60px;
    height: 4px;
    background-color: #FFC653;
}

.serviceBox:hover {
    transform: scale(1.05);
}

.serviceBox img {
    height: 90px;
    width: 90px;
}

#service-box-driveway {
    background: linear-gradient(
    rgba(0, 0, 0, 0.1), 
    rgba(0, 0, 0, 0.1)
    ), url("img/service_driveway_2.jpg") no-repeat center;
}

#service-box-parking-lot {
    background: linear-gradient(
        rgba(0, 0, 0, 0.1), 
        rgba(0, 0, 0, 0.1)
        ), url("img/service_parking_lot.jpg") no-repeat center;
}

#service-box-patching {
    background: linear-gradient(
        rgba(0, 0, 0, 0.1), 
        rgba(0, 0, 0, 0.1)
        ), url("img/service_patching.jpg") no-repeat center;
}

#service-box-bobcat {
    background: linear-gradient(
        rgba(0, 0, 0, 0.1), 
        rgba(0, 0, 0, 0.1)
        ), url("img/service_bobcat.jpg") no-repeat center;
}

#service-box-snow-clearing {
    background: linear-gradient(
        rgba(0, 0, 0, 0.1), 
        rgba(0, 0, 0, 0.1)
        ), url("img/service_snow_clearing.jpg") no-repeat center;
}

#service-box-dump-truck {
    background: linear-gradient(
        rgba(0, 0, 0, 0.1), 
        rgba(0, 0, 0, 0.1)
        ), url("img/service_dump_truck.jpg") no-repeat center;
}

#learnMoreBox {
    background-color: #4A5879;
    color: #FFC653;
}

/* Service Area Section */
.serviceArea {
    text-align: center;
    align-items: center;
    color: #4A5879;
    margin-bottom: 100px;
}

.serviceArea h1 {
    font-size: 2.5em;
    margin-top: 100px;
}

.locations {
    list-style: none;
    text-align: left;
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
}

.locations li {
    margin: 10px;
    font-size: 1.5em;
}

.locations li:before {
    content: '';
    display: inline-block;
    height: 1em;
    width: 1em;
    background-image: url("img/pin.svg");
    background-size: contain;
    background-repeat: no-repeat;
    padding-left: 1.5em;
}

/* Gallery Section */
.gallery {
    position: relative;
    text-align: center;
    width: 100%;
    min-height: 350px;
}

.gallery-header {
    margin: 40px 0px 20px 0px;
}

.gallery-btn {
    position: absolute;
    left: 35%;
    top: 40%;
    background-color: #FFC653;
    color: #4A5879;
    border-radius: 5px;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    width: 20%;
    text-shadow: none;
    
}

.gallery-btn:hover {
    color: #4A5879;
    background-color: white;
    border: 2px solid #4A5879;
}

.collage {
    width: 100%;
    height: 350px;
    background:         
    linear-gradient(
        rgba(0, 0, 0, 0.1), 
        rgba(0, 0, 0, 0.1)
      ), url("img/collage_large.jpg");
}

.heading {
    height: 10%;
}

/* Contact Section */
.contact {
    background-color: #4A5879;
    color: #FFC653;
    text-align: center;
    align-items: center;
    width: 100%;
    padding-bottom: 50px;
    padding-top: 50px;
}

.contact h1 {
    color: #FFC653;
}

.contact p {
    width: 75%;
}

form, textarea {
    width: 100%;
}

input, textarea, .submit-btn {
    margin: 5px 0px;
    padding: 15px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    outline: none;
}

textarea {
    height: 125px;
}

.submit-btn {
    background-color: white;
    border: 2px solid #4A5879;
    color: #4A5879;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    width: 100%;
}

.submit-btn:hover {
    color: #4A5879;
    background-color: #FFC653;
}

.contactDetails {
    margin-top: 30px;
    width: 90%;
}

.formColumn {
    width: 85%;
}

.contactDetailsColumn {
    width: 15%;
    text-align: left;
    padding-left: 10%;
}

.contactDetailsColumn p {
    margin: 0;
}

#paveContact {
    padding-left: 60px;
}

#formSuccess {
    display: none;
}

/* Services Page */
.serviceContainer {
    padding-top: 100px;
    color: #4A5879;
    align-items: center;
    text-align: center;
}

.serviceContainer > h1:first-of-type {
    margin-bottom: 100px;
}

.serviceDescription {
    margin-top: 50px;
    margin-bottom: 50px;
    width: 100%;
    justify-content: center;
}

.serviceDescription .column {
    margin: 10px;
    max-width: 45%;
    padding-left: 2.5%;
    padding-right: 2.5%;
    align-items: center;
}

.serviceDescription img {
    width: 30%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
}

.serviceImagesMobile {
    display: none;
}

.serviceDescription ul {
    text-align: left;
}

.serviceDescription p, .serviceDescription li {
    font-size: 1.2em;
}

/* Porfolio Page */
.portfolio-section {
    margin: 2%;
    display: flex;
}

#portfolio {
    padding-top: 60px;
}

#portfolio h1 {
    margin-left: 10%;
    margin-top: 20%;
}

.img-column {
    float: left;
    max-width: 37%;
    padding: 5px 10px;
}

.img-column img {
    opacity: 0.8;
    cursor: pointer;
    width: 100%;
}

.img-column img:hover {
    opacity: 1;
}

.img-row {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-width: 40%;
    max-height: 420px;
}

.img-container {
    position: relative;
    display: block;
    min-width: 50%;
}

#img-text {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: white;
    color: #4A5879;
    font-size: 20px;
    padding: 5px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

#expanded-img {
    max-height: 400px;
    min-width: 100%;
    max-width: 100%;
    padding: 5px 0px;
}

/* Media Query for anything over 768px */
@media (min-width: 768px) {
    .header li {
      float: left;
    }
    .header li a {
      padding: 20px 30px;
    }
    .header .menu {
      clear: none;
      float: right;
      max-height: none;
    }
    .header .menu-icon {
      display: none;
    }

    .header li {
        border-top: none;
    }
}

/* Media Query for anthing under 1030px */
@media only screen and (max-width: 1030px) {
    /* Service Boxes*/
    .serviceBox {
        min-width: 150px;
        max-width: 150px;
    }
}

/* Media Query for anything under 920px */
@media only screen and (max-width: 920px) {

    /* Service Boxes */
    .serviceBoxRow {
        width: 100%;
    }

    .serviceBox {
        min-width: 125px;
        max-width: 125px;
        font-size: 1.2em;
        height: 175px;
    }

    .serviceBox p:after {
        left: 20%;
    }

    /* Service Areas */
    .locations {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
        padding-left: 0;
    }

    /* Contact section */
    .contactDetails {
        flex-direction: column;
        align-items: center;
    }

    .contactDetailsColumn {
        flex-direction: row;
        width: 100%;
        padding: 0;
    }

    .contactDetailsColumn .column {
        width: 40%;
        padding-left: 10%;
        margin-top: 5%;
    }
}
/* Media Query for anything under 700px */
@media only screen and (max-width: 700px){

    .serviceDescription {
        margin-bottom: 0;
        padding: 0;
    }

    .serviceContainer > h1:first-of-type {
        margin-bottom: 50px;
    }

    .serviceDescription .column {
        max-width: 90%;
        align-items: center;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .serviceDescription img {
        width: 90%;
    }

    .serviceImagesMobile {
        display: block;
    }

    .serviceImages {
        display: none;
    }
}

/* Media Query for anything under 540px */
@media only screen and (max-width: 570px) {

    /* Hero section */
    .hero img {
        height: 210px;
        width: auto;
    }

    .hero {
        background: linear-gradient(
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.4)
          ), url("img/mobile_hero.jpg");
    }

    /* Service Boxes */
    .serviceBoxRow {
        width: 100%;
    }
    
    /* Service Areas */
    .serviceArea .underline:after, .gallery-header .underline:after {
        left: 130px;
    }

    .locations li:before {
        width: 0;
    }

    .locations {
        font-size: 0.8em;
    }

    /* Portfolio */
    .portfolio-section {
        flex-direction: column;
    }

    .img-row {
        flex-direction: row;
        max-width: 100%;
    }

    .img-column {
        max-width: 15%;
        padding: 2px;
    }

}

/* Media Query for anything under 490px */
@media only screen and (max-width: 490px) {
    /* header */
    .phone .freeQuote {
        font-size: 0.8em;
    }

    #free {
        font-size: 1em;
    }

    .header .phone {
        float: left;
        padding-top: 10px;
        padding-left: 5px;
        padding-right: 0;
    }

    #phone-icon {
        height: 25px;
    }

    /* Service Boxes */
    .serviceBoxRow {
        margin-top: 35px;
    }

    .serviceBox {
        min-width: 150px;
        max-width: 150px;
        margin: 7px;
    }

    /* Contact Section */
    .contactDetailsColumn .column {
        padding-left: 0;
    }

    .contactDetailsColumn:first-child {
        margin-left: 20px;
    }

    #address {
        margin-left: 20px;
    }

    /* Gallery */
    .gallery-btn {
        width: 30%;
        left: 28%;
    }

}