html {
    scroll-behavior: smooth;
}

body {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    line-height: 1.2;
    color: #63666a;
}

h2 {
    margin: 0 0 30px;
    font-size: 2.5rem;
    line-height: 1.2;
    text-transform: lowercase;
}

h3 {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: bold;
}

h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: normal;
    margin: 0 0 5px;
}

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

a:hover {
    text-decoration: underline;
}

p {
    margin: 0 0 20px;
}

address {
    font-style: normal;
    margin: 0 0 20px;
}


.container {
    margin: 0 auto;
    padding: 0 30px;
}

.row {
    display: flex;
    margin: 0 -15px;
    flex-wrap: wrap;
}

.row .column {
    width: 25%;
    padding: 0 15px;
}

.icon {
    width: 42px;
    height: 42px;
}

.icon img {
    width: 100%;
    height: 100%;
}

.script .fade {
    opacity: 0;
}

.top {
    width: 42px;
    height: 42px;
    position: fixed;
    z-index: 9999;
    bottom: 30px;
    right: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    fill: #ffffff;
    background-color: #d2d2d2;
    border-radius: 22px;
    opacity: 0;
}

.top svg {
    width: 26px;
    height: 26px;
}

.top:hover {
    background-color: #63666a;
}

/**
 * Header
 */
header {
    background-color: rgba(41, 53, 87, 0.3);
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    z-index: 200;
    overflow: hidden;
}

header .container {
    display: flex;
    align-items: center;
    height: 100%;
    color: #ffffff;
    max-width: 100%;
}

header h1 {
    padding: 5px 40px 5px 0;
    width: 50%;
}

header h1 img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 238px;
    min-width: 180px;
}

header .close,
header .toggle {
    display: block;
    width: 30px;
    height: 30px;
    color: #ffffff;
    margin-left: auto;
    cursor: pointer;
}

header .close svg,
header .toggle svg {
    fill: #ffffff;
    height: 100%;
    width: 100%;
}

header nav {
    display: block;
    position: fixed;
    height: 100%;
    width: 200px;
    padding: 30px 30px;
    right: -260px;
    top: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 8888;
}

header nav ul {
    margin: 30px 0 0 auto;
    padding: 0;
    list-style: none;
    text-align: right;
}

header nav li {
    margin: 20px 0;
    font-size: 1.5rem;
}


header nav a {
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
}

/**
 * Article
 */
article {
    position: relative;
    z-index: 100;
}

/**
 * Banner
 */
#banner {
    background-image: url("../images/banner.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 100%;
    max-height: 800px;
    width: 100%;
    color: #fff;
    position: relative;
    text-align: center;
}

#banner .container {
    position: absolute;
    bottom: 50px;
    font-size: 2.5rem;
    left: 0;
    right: 0;
}

#banner p {
    text-shadow: 2px 2px 12px #000000;
}

.script #banner {
    opacity: 0;
}

.script #banner p {
    opacity: 0;
}

/**
 * Caption
 */
#caption {
    background-color: #ffffff;
    color: #a4a5a9;
    text-align: right;
    font-size: 0.75rem;
    padding: 5px 10px 5px 0;
}

#caption p {
    margin: 0;
}

/**
 * About
 */
#about {
    padding: 70px 0 45px;
    background-color: #f9f9f9;
}

#about h2 {
    color: #293557;
}

#about strong {
    color: #293557;
}

#about .image {
    background-image: url("../images/about.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 100%;
    border-radius: 40px;
    min-height: 270px;
}

#about .row .column-image,
#about .row .column-empty {
    display: none;
}

#about .row .column-content,
#about .row .column-title {
    width: 100%;
}

/**
 * Services
 */
#services {
    padding: 45px 0;
    background: #ffffff;
}

#services .column {
    width: 100%;
}

#services .column-image {
    display: none;
}

#services h2 {
    color: #f15d22;
}

#services ul {
    margin: 0;
    padding: 0 0 0 15px;
}

#services li {
    margin-bottom: 10px;
    padding: 0 0 0 10px;
}

#services ul ul {
    list-style-type: "-";
    margin-top: 10px;
    padding: 0 0 0 10px;
}


#services .image {
    background-image: url("../images/services.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 100%;
    border-radius: 40px;
    min-height: 300px;
}

/**
 * Summary
 */
#summary {
    padding: 45px 0 25px;
    background-color: #f9f9f9;
}

#summary h2 {
    color: #293557;
    max-width: 800px;
}


.cards {
    display: flex;
    flex-wrap: wrap;
}

.card {
    padding: 40px;
    background-color: #ffffff;
    border-radius: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.card p {
    margin: 0;
}

/**
 * Login
 */
#login {
    background-color: #293557;
    color: #ffffff;
}

#login .container {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#login .container img {
    height: 40px;
    width: auto;
    display: block;
    margin-right: 20px;
}

#login .container h2 {
    text-transform: capitalize;
    margin: 0 20px 0 0;
}

#login .container h2 a:hover {
    text-decoration: none;
}

#login .container p {
    margin: 20px 0 0;
    width: 100%;
}

#login .container p a {
    font-weight: bold;
}

/**
 * Quotation
 */
#quotation {
    padding: 45px 0;
    background-color: #ffffff;
}

#quotation h2 {
    color: #f15d22;
}


#quotation .column-form {
    width: 100%;
}

#quotation form {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    position: relative;
}

#quotation .loading {
    position: absolute;
    z-index: 5000;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: none;
    background-color: rgba(255, 255, 255, 0.8);
    background-image: url("../images/loading.gif");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 500px auto;
}

#quotation .result {
    position: absolute;
    z-index: 5001;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: none;
    background-color: #ffffff;
}

#quotation .result p {
    text-align: center;
    position: absolute;
    top: 50%;
    width: 100%;
    margin: -10px 0 0 0;
}

#quotation .result p.success {
    font-weight: bold;
}

#quotation .field {
    width: 100%;
    margin-bottom: 30px;
}

#quotation .field label {
    width: 100%;
    display: block;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#quotation .field input {
    width: 100%;
    padding: 10px;
}

#quotation .field textarea {
    width: 100%;
    padding: 10px;
    resize: none;
    height: 150px;

}

#quotation .field input[type=text],
#quotation .field input[type=tel],
#quotation .field input[type=email],
#quotation .field textarea {
    border: 1px solid #63666a;
}

#quotation .action {
    width: 100%;
    display: flex;
    justify-content: end;
    margin-bottom: 20px;
}

#quotation input[type=submit] {
    background-color: #63666a;
    color: #ffffff;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 300;
    border: none;
    padding: 5px 25px;
    cursor: pointer;
}

#quotation .field input[type=file] {
    padding: 0;
    border-radius: 0;
}

#quotation .field-attachment {
    margin-bottom: 0;
}

#quotation .column-images {
    display: none;
    flex-wrap: wrap;
}



#quotation .laptop,
#quotation .pool,
#quotation .fence {
}

#quotation .laptop .image,
#quotation .pool .image,
#quotation .fence .image {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    position: relative;
}

#quotation .laptop .image {
    background-image: url("../images/laptop.jpg");
}

#quotation .pool .image {
    background-image: url("../images/pool.jpg");
}


#quotation .fence .image {
    background-image: url("../images/fence.jpg");
}

#quotation .pool .image p,
#quotation .fence .image p {
    color: #ffffff;
    opacity: 0.85;
    position: absolute;
    left: 20px;
    bottom: 0;
    font-size: 2.5rem;
    font-weight: bold;
}


/**
 * Footer
 */
footer {
    background-color: #f9f9f9;
    padding: 60px 0 60px;
}

footer .row .column {
    width: 50%;
    margin-bottom: 30px;
}

footer .logo {
    padding-bottom: 10px;
}

footer .logo img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 238px;
    min-width: 180px;
}

footer .authority {
    padding-bottom: 10px;
}

footer .authority img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 238px;
    min-width: 180px;
}


/**
 * Small screen
 */
@media only screen and (min-width: 600px) {
    .row {
        flex-wrap: nowrap;
    }

    .container {
        width: auto;
    }

    header h1 {
        width: 25%;
    }

    header .close,
    header .toggle {
        display: none;
    }

    header nav {
        display: block;
        position: static;
        justify-content: end;
        width: 75%;
        background-color: transparent;
        padding: 0;
    }


    header nav ul {
        margin: 0 0 0 auto;
        padding: 0;
        list-style: none;
        display: flex;
        justify-content: end;
    }

    header nav li {
        margin-left: 20px;
        font-size: 1rem;
    }

    header nav li:last-child {
        padding-left: 20px;
        position: relative;
    }

    header nav li:last-child:before {
        content: "|";
        display: block;
        position: absolute;
        height: 100%;
        left: 0;

    }

     #about .row .column-title,
     #about .row .column-content {
         width:100%;
     }

    #about .row .column-empty:last-child {
        display: none;
    }

    #services .row {
        flex-wrap: wrap;
    }

    #services .column {
        width: 100%;
    }

    #services .column-image {
        display: none;
    }

    footer .row {
        flex-wrap: wrap;
    }

    footer .row .column {
        width: 50%;
    }
}


/**
 * Medium screen
 */
@media only screen and (min-width: 960px) {
    .container {
        width: 880px;
    }

    #banner .container {
        position: absolute;
        bottom: 50px;
        font-size: 2.5rem;
        left: 0;
        right: 0;
    }

    #banner .container p {
        width: 840px;
        margin: 20px auto 0;

    }


    #about .row .column-title,
    #about .row .column-content {
        width:66.6666%;
    }

    #about .row .column-image,
    #about .row .column-empty {
        display: block;
        width: 33.3333%;
    }

    #services .row {
        flex-wrap: nowrap;
        justify-content: stretch;
    }

    #services .column {
        width: 33%;
    }


    #quotation .column-form {
        width: 66.6666%;
    }

    #quotation form {
        width: 100%;
    }

    #quotation .field-email {
        width: 270px;
        margin-right: 10px;
    }

    #quotation .field-phone {
        width: 270px;
        margin-left: 10px;
    }

    #quotation .field-attachment {
        width: 410px;
    }

    #quotation .action {
        width: 150px;
    }

    #quotation .column-images {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 720px;
        width: 33.33333%
    }

    #quotation .laptop,
    #quotation .pool,
    #quotation .fence{
        height: 31%;
    }

    footer .row {
        flex-wrap: nowrap;
    }

    footer .row .column {
        width: 33.3333%;
    }


}

/**
 * Large screen
 */
@media only screen and (min-width: 1280px) {

    .container {
        width: 1200px;
    }


    #banner .container p {
        width: 960px;
    }

    #about .row .column-title,
    #about .row .column-content {
        width:50%;
    }
    #about .row .column-empty,
    #about .row .column-image {
        width: 25%;
        max-width: 278px;
    }
    #about .row .column-empty:last-child {
        display: block;
    }

    #services .column {
        width: 25%;
    }

    #services .column-image {
        display: block;
    }

    .cards {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .card {
        width: 200px;
        height: 200px;
    }

    #login .container {
        flex-wrap: nowrap;
    }

    #login .container p {
        margin-top: 0;
    }

    #quotation form {
        width: 100%;
        max-width: 600px;
    }

    #quotation .field-email {
        width: 280px;
        margin-right: 10px;
    }

    #quotation .field-phone {
        width: 280px;
        margin-left: 10px;
    }

    #quotation .field-attachment {
        width: 430px;
    }

    #quotation .action {
        width: 150px;
    }

    #quotation .column-form {
        width: 50%;
    }
    #quotation .column-images {
        width: 50%;
        display: flex;
        flex-direction: row;
    }

    #quotation .laptop {
        width: 100%;
        height: 30%;
        margin-bottom: 20px;
    }

    #quotation .pool {
        width: 50%;
        height: 66.6666%;
    }

    #quotation .fence {
        width: 50%;
        height: 66.6666%;
    }

    #quotation .pool,
    #quotation .fence {
        width: 280px;
    }

    footer .row .column {
        max-width: 278px;
    }
}
