@import url("scheme.css");
@import url("font.css");

/* default */

* {
    box-sizing: border-box;
    outline: none;
    position: relative;
    color: var(--color-font-default);
}

a, button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
}

p, input, i, u, b, h1, h2, h3, h4 {
    cursor: default;
}

body {
    animation: body-show 2s ease;
}

@keyframes body-show {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* header */

header {
    width: 100vw;
    height: auto;
    padding: 10px 50px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    background-color: var(--color-dark);
}

header * {
    color: var(--color-font-alter);
}

header > nav, header > div {
    display: inline-flex;
}

header > nav > ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0;
}

header > div {
    margin-left: auto;
}

header > div > span {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}
header > div > span > span {
    flex-direction: column;
}

header > div > span:first-of-type > span {
    margin-right: 50px;
}

header > div > span > i {
    font-size: 36px;
    display: inline-flex;
    margin-right: 10px;
}

header > div > span > span > p {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

header > nav > ul > li > a {
    font-size: 24px;
    font-weight: 600;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid var(--color-font-alter);
}

header > nav > ul > li:last-of-type > a {
    border-right: none;
}

header > nav > ul > li.active > a {
    color: var(--color-special);
}

header > nav > button {
    display: none;
}

/* banner */

section.banner {
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 50px;
    background-image: url("image/banner.webp");
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
    padding-bottom: 200px;
}

section.banner * {
    color: var(--color-dark);
}

section.banner > div {
    margin-left: 80px;
    width: 1000px;
    margin-top: 100px;
}

section.banner > div > h2 {
    font-weight: 800;
    font-size: 48px;
}

section.banner > div > h3 {
    font-weight: 600;
    font-size: 26px;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 60px;
}

section.banner > div > span > p {
    font-size: 20px;
}

section.banner > div > span > p > i {
    margin-right: 20px;
}

section.banner > span {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding-top: 150px;
    padding-bottom: 0;
}

section.banner > span > a > i {
    cursor: pointer;
    transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
    font-size: 42px;
}

section.banner > span > a > i:hover {
    transform: scale(1.2);
}

/* services */
section.services {
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin-top: -200px;
}

section.services > div:first-of-type {
    width: 100%;
    margin-top: 0;
    margin-bottom: 50px;
    text-align: center;
}

section.services > div:first-of-type > img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: left top;
}

section.services > div:first-of-type * {
    color: var(--color-dark);
}

section.services > div > h2 {
    font-weight: 800;
    font-size: 32px;
    margin: 0;
    padding: 0;
    padding-left: 5%;
    padding-right: 5%;
    background-color: var(--color-font-alter);
}

section.services > div > h3 {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    padding: 0;
    padding-left: 5%;
    padding-right: 5%;
    background-color: var(--color-font-alter);
}

section.services > div:last-of-type {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 5%;
    background-color: var(--color-font-alter);
}

section.services > div:last-of-type > span {
    min-width: 500px;
    border: 20px solid var(--color-font-alter);
    width: 25%;
    background-color: var(--color-dark);
    min-height: 450px;
    display: inline-flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 20px;

}

section.services > div:last-of-type > span > img  {
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

section.services > div:last-of-type > span * {
    color: var(--color-font-alter);
}

section.services > div:last-of-type > span > h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0;
    padding-bottom: 0;
}

section.services > div:last-of-type > span > p {
    font-size: 16px;
}

/* about */

section.about {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    padding: 200px 5%;
}

section.about > div {
    display: inline-flex;
    width: 50%;
}

section.about > div:first-of-type {
    flex-direction: column;
    flex-wrap: wrap;
}

section.about > div > h2 {
    font-weight: 800;
    font-size: 32px;
}

section.about > div > p {
    font-size: 20px;
}

section.about * {
    color: var(--color-dark);
}

section.about > div > span {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 500px;
    height: auto;
}

section.about > div > span > img {
    width: 150px;
    height: 150px;
    border-radius: 150px;
    object-fit: cover;
    object-position: center center;
}

section.about > div > span > p {
    text-align: center;
}

section.about > div > span > h3 {
    font-weight: 600;
    font-size: 22px;
}

/* contact */ 

section.contact {
    width: 100vw;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0 5%;
}

section.contact h2 {
    color: var(--color-font-alter);
}

section.contact > div {
    display: inline-flex;
}

section.contact > div:first-of-type {
    width: 40%;
    padding: 50px;
    flex-direction: column;
    background-color: var(--color-dark);
}

section.contact > div:first-of-type > h2 {
    font-weight: 800;
    font-size: 32px;
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}

section.contact > div:first-of-type > form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
}

section.contact > div:first-of-type > form > span {
    display: inline-flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 50%;
}

section.contact > div:first-of-type > form > span > input, section.contact > div:first-of-type > form > span > textarea {
    padding: 8px 16px;
    margin-bottom: 20px;
    cursor: text;
    border: none;
    border-bottom: 2px solid var(--color-default);
    margin-right: 20px;
}

section.contact > div:first-of-type > form > span > textarea {
    resize: none;
    height: 220px;
    width: 100%;
}

section.contact > div:first-of-type > form > span > input:focus, section.contact > div:first-of-type > form > span > textarea:focus {
    border-bottom: 2px solid var(--color-special);
}

section.contact > div:first-of-type > form > span > button {
    margin-right: 20px;
    padding: 8px 16px;
    background-color: var(--color-special);
    border: 2px solid var(--color-font-special);
    color: var(--color-dark);
    font-weight: bold;
    transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

section.contact > div:last-of-type {
    width: 60%;
}

section.contact > div:first-of-type > form > span > button:hover {
    background-color: var(--color-valid);
    color: var(--color-font-alter);
}

/* footer */

footer {
    width: 100vw;
    padding: 50px 5% 0 5%;
}

footer * {
    color: var(--color-dark);
}

footer > ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

footer > ul > li > a {
    font-weight: 600;
}

footer > div {
    width: 100%;
    background-color: var(--color-footer);
    margin-top: 50px;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

footer > div > p {
    width: 100%;
    display: flex;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
}

footer > div > p > font {
    margin-left: auto;
}

footer i {
    cursor: pointer;
}


@media screen and (max-width: 1920px) {
    section.banner > div {
        width: 800px;
    }

    section.services > div:last-of-type > span {
        min-width: 400px;
    }

    section.contact > div:first-of-type, section.contact > div:last-of-type {
        width: 50%;
    }

    section.services > div:last-of-type > span > p {
        font-size: 14px;
    }

    section.about > div > p {
        font-size: 16px;
    }
}

@media screen and (max-width: 1800px) {
    section.banner > div > h2 {
        font-size: 30px;
    }

    section.banner > div > h3 {
        font-size: 22px;
    }

    header > nav > ul > li > a {
        font-size: 20px;
    }
}

@media screen and (max-width: 1500px) {
    section.services > div:last-of-type > span > h4 {
        font-size: 20px;
    }

    section.services > div:last-of-type {
        justify-content: flex-start;
    }

    section.banner > div {
        width: 600px;
    }

    section.contact > div:first-of-type {
        padding: 20px;
    }
}

@media screen and (max-width: 1300px) {
    section.services > div:last-of-type {
        justify-content: center;
        padding: 20px;
    }

    section.services > div:last-of-type > span {
        flex-grow: 1;
    }

    section.about {
        padding: 40px;
    }

    section.about > div > span > p, section.about > div > span > a {
        font-size: 14px;
    }

    section.contact {
        padding: 0;
    }

    section.banner {
        background-position: center;
    }

    section.about > div > p {
        font-size: 14px;
    }
}

@media screen and (max-width: 1100px) {
    section.about, section.contact {
        flex-direction: column;
        flex-wrap: wrap;
    }

    section.about > div, section.contact > div:first-of-type, section.contact > div:last-of-type {
        width: 100%;
    }

    section.contact {
        margin-top: 50px;
    }

    section.about > div:first-of-type {
        margin-bottom: 20px;
    }

    section.contact > div:last-of-type iframe {
        min-height: 300px;
    }
}

@media screen and (max-height: 800px) {
    section.banner > div {
        margin-top: 0;
    }

    section.banner > span {
        padding-top: 50px;
    }

    section.services {
        margin-top: -100px;
    }

    section.services > div:first-of-type > img {
        height: 100px;
    }

    section.banner {
        padding-bottom: 100px;
    }

    section.services > div:last-of-type > span > img {
        width: 50px;
        height: 50px;
    }

    section.about {
        padding: 0 5%;
    }

    section.services > div:last-of-type > span {
        min-height: 400px;
    }

}

@media screen and (max-width: 850px) {
    header > nav > button {
        display: flex;
        font-size: 36px;
        background-color: transparent;
        border: none;
    }

    header > nav > ul, header > div > span:last-of-type {
        display: none;
    }

    header > div {
        margin-left: auto;
    }

    section.banner > div {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
    }
    
    * {
        text-align: center;
    }

    section.banner {
        padding: 150px 10px 10px 10px;
        background-position: center;
    }

    section.banner > div > span > p {
        text-align: left;
        font-size: 14px;
    }

    section.banner > div > h2, section.services > div > h2 {
        font-size: 24px;
    }

    section.banner > div > h3, section.services > div > h3 {
        font-size: 18px;
    }

    section.services > div:first-of-type > img {
        display: none;
    }

    section.services > div:first-of-type {
        padding: 80px 10px 10px 10px;
    }

    section.services {
        margin-top: 0;
    }

    section.banner > span {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    section.services > div > h3 {
        margin-top: 50px;
    }

    section.services > div:last-of-type {
        padding: 0;
    }

    section.services > div:last-of-type > span > img {
        width: 60px;
        height: 60px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    section.services > div:last-of-type > span {
        min-height: 350px;
    }

    section.about > div, section.contact > div:first-of-type > form, footer > div > p {
        flex-direction: column;
        flex-wrap: wrap;
    }

    section.about > div > span {
        width: 100%;
    }

    section.about > div > span:first-of-type {
        margin-bottom: 100px;
    }

    section.contact > div > form > span {
        width: 100%!important;
    }

    section.contact > div > form > span > input, section.contact > div > form > span > textarea {
        width: 100%;
    }

    section.contact > div > form > span > textarea {
        margin-top: 20px;
    }

    footer > ul > li {
        margin-bottom: 30px;
    }

    footer > div > p > font {
        margin-top: 30px;
        margin-right: auto;
    }

    header > div > span:first-of-type > span {
        margin-right: 0;
    }

    header.visible > nav > ul {
        display: flex;
        position: fixed;
        top: 48px;
        left: 0;
        z-index: 10;
        height: 100%;
        width: 100%;
        background-color: var(--color-default);
        flex-direction: column;
        flex-wrap: wrap;
    }

    header {
        position: fixed;
        z-index: 10;
        top: 0;
        left: 0;
        border-bottom: 2px solid var(--color-default);
        padding: 10px;
    }
    
    header > nav > ul > li.active > a {
        text-decoration: underline;
        color: var(--color-dark);
    }

    header > nav > ul > li > a {
        color: var(--color-dark);
    }

    header > nav > ul > li {
        margin-bottom: 0;
        font-size: 48px;
        width: 100%;
        text-align: left;
        padding: 10px 50px;
    }

    
}