@font-face {
    font-family: 'AdiHaus';
    src: url('assets/fonts/adihaus/adihaus_regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "AdiHaus";
    src: url("assets/fonts/adihaus/adihaus_bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

*, *::before, *::after {
    box-sizing: border-box;
    border-style: none;
    list-style: none;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

:root {
    --theme-color-black: #333333; /* rgba(51, 51, 51, 1) */
    --theme-color-brown: #423A3A;
    --theme-color-red: #CD3A24;
    --theme-color-white: #FEFFFF; /* rgba(254, 255, 255, 1) */
}

/* ---------- MAIN BODY DECLERATIONS ---------- */

html, body {
    background-color: var(--theme-color-white);
    font-family: "AdiHaus", sans-serif;
    font-size: 14px;
    width: 100%;
    height: 100%;
}

.mobile-container {
    margin: 0 auto;
    max-width: 500px;
    min-width: 300px;
}

.hero-image-desktop {
    display: none;
}

/* ---------- HERO BANNER DECLERATIONS ---------- */

.logo-wrapper{
    margin-top: 10px;
    margin-bottom: 15px;
}

.logo-wrapper img {
    display: block;
    height: 4.5rem;
    margin: 0 auto;
    width: auto;
}

header .hero-image {
    width: 94%;
    height: 376px;
    margin: auto;
    margin-bottom: 2rem;
    border-radius: 8px;
    background-image: url(assets/img/background-md.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* ---------- TEXT INFO DECLERATIONS ---------- */
.text-info {
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.text-info > * {
    padding: 0 0.5rem 1rem;
}

/* intended for the first h2 within .text-info */
.text-info h2:nth-child(1) {
    font-size: 3.5rem;
    color: var(--theme-color-red);
    font-weight: normal;
    letter-spacing: 5px;
}

.text-info h2:nth-child(2) {
    font-size: 3.2rem;
    font-weight: bold;
    color: var(--theme-color-brown);
    letter-spacing: 1px;
}

.text-info h2 {
    line-height: 1;
    text-transform: uppercase;
}

.text-info p {
    color: var(--theme-color-black);
    line-height: 24px;
    padding-bottom: 2rem;
}

.text-info .email-signup {
    position: relative;
    width: 100%;
    margin: 1rem 0 6rem;
}

.email-signup .email-input {
    border: 1px solid rgba(51, 51, 51, .7);
    border-radius: 3px;
    padding: 1rem 1.5rem;
    opacity: .5;
    width: 100%;
}

.email-signup .email-input:focus {
    background-color: var(--theme-color-white);
    outline: 2px solid var(--theme-color-black);
    opacity: 1;
}

.email-signup .email-submit {
    background-color: var(--theme-color-black);
    border-bottom: 1px solid var(--theme-color-black);
    border-radius: 2px;
    color: var(--theme-color-white);
    cursor: pointer;
    font-weight: bold;
    opacity: 1;
    padding: 1rem 1.5rem;
    position: absolute;
    right: 0;
    margin-right: 2.5rem;
    z-index: 10;
}

@media only screen and (min-width: 768px) {
    html, body {
        overflow: hidden;
    }

    body {
        background-image: url(assets/img/destop-bg.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        display: flex;
        flex-direction: row;
        height: 100%;
    }

    main {
        display: flex;
        flex-basis: 92%;
        align-items: center;
        max-width: 100%;
        height: inherit;
        margin: 0 auto;
        padding-left: 3.5rem;
    }

    .mobile-container {
        width: 45vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .logo-wrapper {
        width: 100%;
        margin: 0 0 0 3.5rem;
    }

    .logo-wrapper img {
        margin: 0 0 0;
        padding-left: 2rem;
    }

    .hero-image {
        display: none;
    }

    .text-info > * {
        padding: 0 2.5rem 1rem;
    }

    .text-info {
        text-align: left;
        align-items: start;
    }

    .text-info h2 {
        max-width: 340px;
        font-size: 4.5rem;
    }

    .text-info p {
        font-size: 16px;
        padding-bottom: 0;
    }

    .text-info input {
        font-size: 16px;
    }

    .text-info .email-signup {
        margin: 1rem 0 7rem;
    }

    .hero-image-desktop {
        display: block;
        height: 100%;
        width: 55vw;
    }

    .hero-image-desktop img {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .email-signup .email-submit {
        border-bottom: 2px solid var(--theme-color-black);
    }
}

@media only screen and (min-width: 1440px) {
    .mobile-container{
        max-width: 540px;
    }

    .text-info h2:nth-child(2) {
        max-width: 540px;
        font-size: 4.5rem;
        margin-bottom: 5px;
    }
}

@media only screen and (min-height: 700px) and (max-width: 768px) {
    html, body {
        overflow: hidden;
    }

}