@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cormorant Garamond", serif;
    color: #2e2e2e
}

html {
    font-size: 100%;
}

body {
    color: #333;
    font-family: "Cormorant Garamond", serif;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.wrapper {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 150px;
}

header .wrapper {
    margin-bottom: 0;
}

.section-title {
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 60px;
    margin-top: 80px;
    border-bottom: 1px solid #2e2e2e;
}


.content-title {
    font-size: 1rem;
    padding-top: 80px;
    margin-bottom: 40px;
}

#loading {
    position: fixed;
    inset: 0;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
    font-family: 'Cedarville Cursive', cursive;
}

.loader-text {
    font-size: 2rem;
    color: a56c74;
    opacity: 0;
    animation: fedeIn 2s ease forwards;
}

@keyframes fedeIn {
    to {
        opacity: 1;
    }
}

#loading.hide {
    opacity: 0;
    pointer-events: none;
}

header {
    position: fixed;
    background-color: rgba(255, 255, 255, .5);
    top: 0;
    left: 0;
    right: 0;
}

header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

header h1 a {
    color: #fafafa;
    background-color: #ab1b38;
    padding: 0 1rem;
}

header nav ul {
    display: flex;
    padding: 10px 0;
}

header li {
    margin-left: 30px;
}

header li a {
    color: #ab1b38;
    font-weight: 700;
}

header li a:hover {
    opacity: 0.7;
}

main {
    margin-top: 38px;
}

#mainvisual {
    background: url(img/silvia-rossana-garavaglia-NyR4Qhqtjnc-unsplash.jpg) no-repeat center/cover;
    display: block;
    width: 100%;
    height: 1400px;
    object-fit: cover;
    margin-bottom: 80px;

}

.main__inner {
    background-color: rgba(255, 255, 255, .4);
    text-align: center;
    margin-top: 3rem;
    padding: 45rem 2rem;
}


.main__inner a:hover {
    opacity: 0.7;
}

#about .content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#about img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin-right: 100px;
}

#about .text {
    text-align: center;
}

#works .website {
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 80px;
    margin-bottom: 80px;
}

#works .website .content-title {
    margin-bottom: 24px;
}

#works .website p {
    margin-bottom: 24px;
}

#works .banner {
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 80px;

}

#works .banner .box-img {
    width: 100%;
    aspect-ratio: 5/5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#works .banner .content-title {
    margin-bottom: 40px;
}

#works .banner p {
    margin-bottom: 40px;
}

#works ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#works li {
    width: 32%;
    margin-bottom: 24px;
}

.section-title-sub {
    margin: 20px;
}

.box {
    background-color: rgba(250, 241, 225, 0.6);
    box-shadow: 0px 0px 4px 2px rgba(162, 162, 162, .4);
    padding: 10px;
}


.box p {
    margin-top: 10px;
    padding: 0;
}

#contact {
    width: 960px;
    margin: 0 auto;
    padding: 60px 0;
    max-width: 100%;
}

.contact-table {
    width: 100%;
    margin-bottom: 20px;
}

.form-text {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    max-width: 100%;
}

.form-textarea {
    width: 100%;
    margin: 0 auto;
    font-size: 16px;
    padding: 15px;
    border-radius: 100vh;
    padding: 10px;
    height: 200px;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.contact-submit {
    width: 250px;
    background-color: #875C44;
    color: #fff;
    font-weight: bold;
    display: block;
    margin: 0 auto;
    font-size: 16px;
    padding: 15px;
    border-radius: 100vh;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}



footer {
    padding: 10px;
    text-align: center;
}



.site-header-navbtn {
    display: none;
    position: fixed;
    top: 5px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    z-index: 1;
}

.site-header-navbtn span,
.site-header-navbtn::before,
.site-header-navbtn::after {
    width: 24px;
    height: 1px;
    background-color: #999;
    position: absolute;
    top: 50%;
    left: 3px;
    transition: transform .4s
}

.site-header-navbtn::before,
.site-header-navbtn::after {
    content: '';
}

.site-header-navbtn::before {
    transform: translateY(-8px);
}

.site-header-navbtn::after {
    transform: translateY(8px);
}

body.is-nav-open .site-header-navbtn span {
    transform: scaleX(0);
}

body.is-nav-open .site-header-navbtn::before {
    transform: translateY(0) rotate(45deg);
}

body.is-nav-open .site-header-navbtn::after {
    transform: translateY(0) rotate(-45deg);
}

@media screen and (max-width:767px) {
    .wrapper {
        margin-bottom: 100px;
    }

    header .wrapper .wrapper p {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    #mainvisual img {
        height: calc(100vh-60px);
    }

    #about .content {
        flex-direction: column;
    }

    #about img {
        margin-right: 0;
        margin-bottom: 3rem;
    }

    #about .text {
        text-align: center;
    }

    #works ul {
        flex-direction: column;
    }

    #works li {
        width: 100%;
        margin-bottom: 2rem;
    }

    .site-header-navbtn {
        display: block;
    }

    .site-header-nav {
        position: fixed;
        width: 100%;
        height: 100%;
        left: -100%;
        top: 0;
        line-height: 1px;
        background-image: url(img/edward-howell-HXCVD8SYcQM-unsplash.jpg);
        background-position: 25% 50%;
        opacity: 0.7;
        transform: translateX(0);
        transition: transform .6s;
    }

    body.is-nav-open .site-header-nav {
        transform: translateX(100%);
    }

    .site-header-nav ul {
        height: 100%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .site-header-nav ul li {
        margin-right: 0;
        margin-bottom: 3.0rem;
    }

    .site-header-nav ul li a {
        font-size: 1.5rem;
        font-weight: bolder;
        text-decoration: underline;
    }
}