@import url('http://fonts.cdnfonts.com/css/kano');
@import url("https://use.typekit.net/xsx5cnm.css");

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: muli, sans-serif;
    font-weight: 200;
    line-height: 2;
    background-color: rgb(226, 230, 235);
}

span {
    display: block;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Tahoma', sans-serif;
}

h1 {
    font-size: 28px;
    margin: 10px auto;
    padding: 0 30px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgb(226, 230, 235);
}

h1::before,
h1::after {
    display: block;
    content: '';
    width: 70%;
    height: 1px;
    background: rgb(231, 233, 235);
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
}

h1::before {
    top: -5px;
}

h1::after {
    bottom: 0;
}

h2 {
    font-size: 34px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgb(32, 61, 100);
    margin: 0;
    padding: 0;
}

h3 {
    font-size: 23px;
    font-weight: 200;
    font-style: italic;
    color: #009DDB;
}

h4 {
    font-size: 20px;
    font-weight: 200;
    margin: 10px 0;
    color: #009DDB;
}

h5 {
    font-size: xx-large;
    font-weight: 400;
    position: relative;
    color: rgb(226, 230, 235);
    margin: 20px 0;
}

h5::before,
h5::after {
    display: block;
    content: '';
    width: 70%;
    height: 1px;
    background: rgb(226, 230, 235);
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
}

h5::before {
    top: -1px;
}

h5::after {
    bottom: 0;
}

i {
    background-color: #009DDB;
    color: rgb(226, 230, 235);
    font-size: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

input {
    background: #fff;
    padding: 10px 15px;
    margin: 0;
    line-height: 1;
    color: #2d2c2c;
    width: calc(100% - 30px);
    font-family: muli, sans-serif;
    height: 30px;
    border: none;
}

button {
    font-family: muli, sans-serif;
    font-size: inherit;
    background: #009DDB;
    height: 50px;
    border: none;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    padding: 20px;
}

button:hover {
    outline: 2px solid #009DDB;
    outline-offset: 4px;
}

textarea {
    padding: 20px 15px;
    resize: none;
    margin: 0;
    line-height: 1;
    color: #2d2c2c;
    width: calc(100% - 30px);
    font-family: muli, sans-serif;
    height: 200px;
    border: none;
}

header {
    background-color: rgb(30, 46, 68);
    height: 15%;
    width: 70%;
    display: flex;
    position: fixed;
    left: 0px;
    top: 0px;
    z-index: 10;
    padding: 0 15%;
    -webkit-box-shadow: 0px 5px 6px -2px rgba(0, 0, 0, 0.4);
    box-shadow: 0px 5px 6px -2px rgba(0, 0, 0, 0.4);
    justify-content: space-between;
}

header img {
    height: 50%;
    width: auto;
    vertical-align: baseline;
    margin: auto 0;
}

.nav {
    display: flex;
    text-transform: uppercase;
    color: rgb(231, 233, 235);
    font-weight: 400;
    width: 50%;
    justify-content: space-around;
    padding: 20px 0;
    align-items: flex-end;
    font-family: 'Kano', sans-serif;
    letter-spacing: 2px;
}

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

a:hover {
    text-decoration: underline;
}

a:visited {
    color: rgb(17, 45, 73);
    text-decoration: none;
}

main {
    position: relative;
    top: 15%;
}

.img-container {
    position: relative;
    background-color: rgb(23, 31, 43);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    text-align: center;
    font-size: large;
    color: rgb(231, 233, 235);
    padding: 0 25%;
}

.img-container::before {
    content: "";
    opacity: 0.2;
    height: 100%;
    position: absolute;
    top: 00px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-size: cover;
    background-image: url("img/abbotsford_commercial_law.jpg");
    background-position: 50% 50%;
}

.content {
    padding-top: 30px;
}

.content section {
    padding: 30px 15%;
}

.text-img {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}

.text-img div:last-child {
    margin-left: 30px;
}

.white-section {
    padding: 30px 0;
    background-color: #fff;
}

.services {
    text-align: center;
}

.services .list-services {
    display: flex;
    flex-wrap: nowrap;
    height: 450px;
    width: 100%;
    padding: 50px 0 30px 0;
}

.services .list-services div {
    background-color: rgb(23, 31, 43);
    flex: 1 1;
    cursor: pointer;
    font-size: large;
    position: relative;
    color: rgb(226, 230, 235);
    padding: 30px;
}

.services .list-services div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: auto 110%;
    opacity: 0.7;
}

.services .list-services h5 {
    margin-top: 80%;
}

.services .list-services div span {
    display: none;
}

.services .list-services div:hover::before {
    opacity: 0.2;
    filter: grayscale(100%);
}

.services .list-services div:hover span {
    display: block;
}

.services .list-services div:hover h5 {
    margin-top: auto;
}

.services .list-services div:hover {
    display: grid;
    grid-template-rows: 1fr 3fr;
}

.list-services span {
    margin: auto;
}

.content .benefits {
    padding: 30px 0 20px 0;
    text-align: center;
    background-color: rgb(212, 218, 224);
}

.benefits .list-benefits {
    padding: 30px 0 20px 0;
    display: flex;
    justify-content: space-around;
}

.benefits .list-benefits div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content .more-info {
    display: flex;
    padding: 50px 15% 70px;
    background-color: #fff;
}

.more-info div:first-child {
    margin-right: 20px;
}

.more-info div:last-child {
    margin-left: 20px;
}

.content .contact {
    background-color: rgb(50, 62, 80);
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.contact svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.contact .title-container {
    margin: 45px 0 50px;
}

.contact .form-container {
    width: 100%;
    background-color: rgb(50, 62, 80);
    display: flex;
    justify-content: center;
    z-index: 1;
    padding-bottom: 50px;
}

.contact form {
    width: 500px;
    display: grid;
    gap: 30px 0;
}

.double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px 30px;
}

footer {
    width: 100%;
    background-color: rgb(30, 46, 68);
    height: 50px;
    color: rgb(226, 230, 235);
    display: flex;
    justify-content: end;
}

footer span {
    margin: auto 0;
    font-size: 11px;
    font-family: 'Kano';
    opacity: 0.5;
    text-transform: uppercase;
    margin-right: 50px;
}

/*div.trim{
    min-width: 262px;
    max-height: 375px;
    overflow: hidden;
}*/

@media (max-width: 768px) {

    body,
    html {
        font-size: 14px;
    }

    .nav {
        display: none;
    }

    .img-container {
        padding: 0 20px;
        font-size: medium;
        height: 325px;
    }

    h1 {
        padding: 0;
        font-size: 20px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 17px;
    }

    h4 {
        font-size: 17px;
    }

    h5 {
        margin: 0;
        margin-bottom: 10px;
        font-size: 18px;
        text-transform: uppercase;
    }

    .content section {
        padding: 30px 20px;
    }

    .text-img {
        flex-direction: column;
    }

    .text-img div:last-child {
        margin-left: 0px;
    }

    .text-img div img {
        display: none;
    }

    .services .list-services {
        flex-direction: column;
        padding: 30px 20px;
        width: calc(100% - 40px);
        height: fit-content;
    }

    .services .list-services div {
        font-size: 15px;
    }

    .services .list-services h5 {
        margin-top: auto;
    }

    .services .list-services div::before {
        opacity: 0.5;
    }

    .benefits .list-benefits {
        flex-direction: column;
    }

    .content .more-info {
        flex-direction: column;
        padding: 30px 20px;
    }

    .more-info div:first-child {
        margin-right: 0px;
    }

    .more-info div:last-child {
        margin-left: 0px;
    }

    .contact .title-container {
        margin: 0;
    }

    .contact .form-container {
        padding: 20px;
        width: calc(100% - 40px);
    }

    .double {
        display: block;
    }

    .double input:first-child {
        margin-bottom: 30px;
    }
}