:root {
    --davys-gray: #4D4648ff;
    --rich-black: #040A17ff;
    --prussian-blue: #1D2C3Eff;
    --rich-black-2: #0F1B29ff;
    --rich-black-3: #131A1Fff;
    --battleship-gray: #878B8Dff;

    --font-color: black;
    --background-color: white;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    font-size: 20px;
    font-family: "Gotham SSm", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* background-color: var(--rich-black-3); */

    scroll-behavior: smooth;
}

@font-face {
    font-family: "Gotham SSm";
    src: url(assets/fonts/GothamSSm-Medium_Web.woff2);
}

/* h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 10px;
} */

/* * {
    outline: 1px solid red;
} */

h1 { font-size: 1.5em; }

b { font-weight: 600; }

main {

}

button, input[type="submit"] {
    cursor: pointer;
}

nav {
    position: absolute;
    z-index: 100;

    top: 0;

    font-size: 18px;

    padding: 5px;
    padding-left: 20px;
    padding-right: 20px;

    height: 70px;
    width: 100%;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-around;

    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
    /* font-family: "Kanit"; */
    font-family: "Gotham SSm", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* font-weight: 600;
    letter-spacing: -0.6px; */

    text-decoration: none;
    box-sizing: border-box;
}

.nav-logo-and-title {
    display: flex;
    /* width: 400px; */
    
    text-align: center;
    
    align-items: center;
    justify-self: center;

    flex-basis: 0;
    
    /* word-wrap: unset; */
    height: 100%;
    /* width: 75%; */
    /* margin: 0; */
}

.nav-logo-and-title > span {
    font-size: 1.2em;
}

.nav-logo-and-title > img {
    width: 40px;
    height: 40px;
    padding-right: 10px;
}

.nav-list {
    width: 100%;

    display: flex;
    justify-content: flex-end;
    column-gap: 50px;
}

.nav-list > li {

}

.nav-list > li > a {
    text-decoration: none;
    color: var(--font-color);
}

.hamburger-icon {
    display: none;
    cursor: pointer;

    position: fixed;
    z-index: 21;

    top: 35px;
    right: 15px;

    width: 40px;
    height: 5px;
    background-color: var(--font-color);
    border-radius: 5px;

    transition: all 500ms ease;
}

.hamburger-icon::before {
    content: "";
    position: absolute;

    bottom: 10px;
    width: inherit;
    height: inherit;
    background-color: inherit;
    border-radius: inherit;

    transition: inherit;
}
.hamburger-icon::after {
    content: "";
    position: absolute;

    top: 10px;
    width: inherit;
    height: inherit;
    background-color: inherit;
    border-radius: inherit;
    
    transition: inherit;
}

.hamburger-icon.open {
    transform: rotate(45deg);
}
.hamburger-icon.open::after {
    transform: rotate(90deg);
    top: 0;
}
.hamburger-icon.open::before {
    transform: rotate(360deg);
    bottom: 0;
}

.hero-image-wrapper {
    position: relative;
    display: flex;

    overflow: hidden;

    box-sizing: border-box;

    width: 100%;
    height: 100vh;    
}

.hero-image {
    position: absolute;

    overflow: hidden;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;
}

.hero-image-text {
    position: absolute;
    left: 22.25vw;
    width: 30vw;
    bottom: 0;

    font-family: "Gotham SSm", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    letter-spacing: -0.6px;
    line-height: 48px;

    transform: translate(-50%, -50%);

    z-index: 1;
}

.hero-image-text > h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero-image-text > h2 {
    font-size: 20px;

    line-height: 1.5em;
    margin-bottom: 10px;
}

.hero-image-secondary-image {
    z-index: 1;

    position: absolute;

    right: -25vw;
    /* bottom: 20vh; */
    bottom: 120px;

    width: 80vw;
}

.hero-image-secondary-image-mobile {
    display: none;
    filter: brightness(50%);
}

.hero-image > img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    /* user-drag: none; */
}

.in-text-button {
    padding: 8px 24px;
    font-size: 14px;

    white-space: nowrap;

    background-color: white;
    color: black;
    border: 1px solid black;
    border-radius: 4px;

    font-weight: normal;
    letter-spacing: 0;

    text-decoration: none;
}

.in-text-button.secondary-color {
    background-color: rgb(34,34,34);
    color: white;
}

/* Main page */
.section-wrapper:nth-child(even) {
    background-image: url(assets/images/patterns/triangle-mosaic.webp);
    /* color: white; */
    filter: brightness(100%) contrast(90%);
}

section {
    max-width: 1000px;
    margin: auto;

    padding: 20px;
    padding-top: 50px;
    padding-bottom: 50px;

    display: grid;

    grid-template-columns: 1fr 2fr;
    column-gap: 20px;
    row-gap: 20px;
}

.section-image {
    width: 100%;
    height: 100%;
    /* max-height: 300px; */

    border-radius: 10px;
    overflow: hidden;
}


.section-image > img {
    object-fit: cover;

    width: 100%;
    height: 100%;
}

.section-text {
    line-height: 1.5em;
}

.section-text > h2 {
    font-weight: bold;
}

.section-text > p, .section-text > ul {
    font-weight: normal;
    font-family: "Kanit"
}

/* Contact Form */
.contactPage {
    background-image: url(assets/images/zenith-rear.png);
    background-size: cover;
    backdrop-filter: brightness(50%);
}

.contact {
    width: 100%;
    max-width: 560px;
    box-sizing: border-box;

    margin-left: auto;
    margin-right: auto;

    padding: 10px;
    padding-top: 20vh;
    padding-top: 20vh;
    margin-bottom: 20vh;

    /* margin-top: 100px; */
    /* background-color: rgba(218, 218, 218, 0.6); */
    border-radius: 15px;
}

.contactPage h1{
    text-align: center;
}

.title {
    display: flex;
    justify-content: center;
}

form {
    margin-top: 50px;
    font-size: 1.2em;

    color: white;
}

form > input {
    display: block;
}

form > label.required::after {
    content: "*";
    color: red;
}

form > input, form > textarea {
    width: 100%;
    box-sizing: border-box;
    height: 3em;

    border-radius: 2px;
    border: none;
    /* border: 1px solid black; */
    padding: 5px;

    font-family: "Gotham SSm", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    margin-bottom: 10px;
}

form > textarea {
    resize: vertical;
    min-height: calc(10px + 1.5rem);
}

form > input[type="submit"] {
    background-color: white;
    color: black;
}

#submitButton {
    background-color: rgb(241, 241, 241);
    border: none;
    font-size: .65em;
}

.submit input {
    display: flex;
    justify-content: center;
}

.important {
    color: red;
}

/* footer */

footer {
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    
    margin-top: 50px;
    padding: 15px;

    /* background-color: rgba(255, 255, 255, .8); */
    background-color: rgb(18, 19, 26);
    color: white;
    font-size: 0.8em;
}


.medias{
    /* grid-row: 1/2;
    grid-column: 1/2; */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;

    /* line-height: 35px; */
    font-size: 45px;
}

.bottomNav{
    /* grid-row: 1/2; */
}

.bottomNav a{
    text-decoration: none;
    color: white;
}

.bottomNav > li {
    padding-top: 10px;
    padding-bottom: 10px;
}

.address{
    /* grid-row: 1/2;
    grid-column: 3/4; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyBox{
    display: flex;
    
    justify-content: center;
    align-items: center;
    
    margin-top: 20px;;
    margin-top: 20px;
    margin-bottom: 0;
    /* grid-row: 2/3; */
    grid-column: 1/4;
}

.social{
    text-decoration: none;
}
.facebook{
    /* color: rgb(24, 119, 242); */
    color: white;
}
.twitter{
    /* color: rgb(29, 161, 242); */
    color: white;
}

@media screen and (min-width: 751px) {
    nav:not(.homeNav) > .nav-list > li > a {
        color: white;
    }

    nav:not(.homeNav) {
        /* background-color: rgba(255, 255, 255, .6); */
        color: white;
    }
}

@media screen and (max-width: 1000px) {
    .hero-image-secondary-image {
        bottom: 150px;
    }
}

/* mobile */
@media screen and (max-width: 750px) {
    .hero-image-text {
        text-align: center;
        left: 50%;
        width: 90%;

        color: white;
    }

    .hero-image-secondary-image {
        display: none;
    }

    .hero-image-secondary-image-mobile {
        display: block;
    }
    
    .hero-image {
        display: none;
    }

    section {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .section-image {
        max-height: 300px;
    }

    nav {
        position: fixed;
        display: block;
        flex-direction: column;
        background-color: var(--background-color);
    }

    .nav-logo-and-title {
        width: 100%;
        /* height: 100vw; */
        justify-content: flex-start;

    }

    .nav-list {
        height: 100vh;
        flex-direction: column;
        position: fixed;

        align-items: center;
        justify-content: flex-start;
        
        font-size: 36px;

        background-color: white;
        left: 0;
        top: 0;

        box-sizing: border-box;

        padding: 40px;
        padding-top: 80px;
        row-gap: 40px;

        transform: translateY(-100vh);

        transition: transform 500ms;
    }

    .nav-list.open {
        transform: translateY(0);
    }

    .hamburger-icon {
        display: block;
    }


    /* Footer */
    footer {
        grid-template-columns: 1fr;
        grid-template-rows: auto;

        row-gap: 25px;
        padding: 35px;

        font-size: 22px;
    }

    .copyBox {
        grid-column: 1/2;
}

    .address {
        /* grid-row: 1/2;
        grid-column: 3/4; */
    }
}

@media screen and (max-height: 725px) {
    .hero-image-text {
        top: 55%;
    }   
}

@media screen and (max-width: 375px) {
    .nav-logo-and-title > span {
        display: none;
    }
}