  @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;500&family=Work+Serif:wght@400;600&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap');
/* CSS HEX */
:root {
    --color-accent: #4c0120;
    --clr-tint-medium: #6f334c;
    --clr-tint-light: #814d62;
    --background-dark: #2e0f15;
    --text-dark: #A19B91;
    --text-background: #FAFBFA;
    --front-dark: #333333;
    --background-light: #EEECDA;
    --background-lighter: #D0CDC8;
    --golden-orange: #ee9b00ff;
}

  body {
    color: var(--front-dark);
    background-color: var(--text-background);
    overflow-x: hidden;
    font-family: Roboto, sans-serif;
    margin: 0 .25rem;
    position: unset;
  }
  
  *, *::after, *::before {
      box-sizing: border-box;
  }

.page-wrap {
    display: grid;
}

input {
    border: 1px solid var(--background-light);
    border-radius: .5rem;
    width: 100%;
    height: 2rem;
    padding: 0 .5rem;
    font-family: inherit;
}

textarea {
    border: 1px solid var(--background-light);
    border-radius: .5rem;
    padding: 0.5rem;
    height: 6rem;
    max-width: 14.5rem;
    width: 100%;
    font-family: inherit;
}

nav {

    ul {
        display: flex;
        justify-content: flex-end;
        margin: .25rem;
    }

    li {
        background-color: var(--color-accent);
        border-radius: .25rem;
        color: var(--text-background);
        max-width: 6rem;
        min-width: 6rem;
        text-align: center;

        a {
            text-decoration: none;
            color: var(--text-background);
            display: block;
            width: 100%;
            line-height: 100%;
            border-radius: .25rem;
            padding: .5rem;
        }

        a:hover {
            background-color: var(--clr-tint-light);
        }
    }
}

.page-core {

    margin-bottom: 3rem;

    .hero {
        color: var(--text-background);
        height: fit-content;
        background: var(--background-dark);
        border-radius: .5rem;
        display: grid;
        grid-template-rows: auto 1fr;
        container-type: inline-size;
        container-name: hero;
        padding-bottom: 1rem;

        .hero-top {
            font-family: "Roboto Serif", serif;
            font-size: min(2.25rem, 10vw);
            display: flex;
            align-items: center;
            gap: 1rem;

            img {
                width: 6rem;
                height: auto;
                margin-top: -1.6rem;
            }
        }

        .hero-core {
            display: flex;
            gap: 1rem;
            padding-left: 3rem;
            padding-right: 1rem;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            max-width: 100vw;

            .hero-core-text {
                div:nth-child(3) {
                    color: var(--text-dark);
                    margin-top: 1.5rem;
                    font-size: large;
                }
                div:not(:nth-child(3)) {
                    font-size: clamp(32px, 6vw, 70px);
                    font-weight: 300;
                }
                div:nth-child(4) {
                    width: 100%;
                    text-align: right;
                    font-size: medium;
                    margin-top: 2rem;
                }
                a {
                    text-decoration: none;
                    color: var(--background-dark);
                    background-color: var(--text-background);
                    display: inline-block;
                    padding: 1rem 2rem 1rem 1rem;
                    font-size: x-large;
                    border-radius: .25rem;
                    width: fit-content;
                    font-weight: 500;
                    text-align: center;
                    position: relative;

                    &::after {
                        content: url('../img/arrow_right_2E0F15.svg');
                        display: inline-block;
                        position: absolute;
                        top: 1rem;
                        padding-left: .5rem;
                    }
                }
            }

            .hero-core-imgs {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: .25rem;
                height: fit-content;
                /* scale: clamp(.7, calc(.1vw / 1px), 1); */

                div {
                    border: 4px solid var(--background-lighter);
                    border-radius: 1.3rem;
                    background-color: var(--background-lighter);
                    display: flex;
                    justify-content: center;
               }

                img {
                    width: 6rem;
                    height: auto;
                }
            }
        }
    }

    .cards {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
        margin: 4rem auto;
        container-type: inline-size;
        container-name: card-arrow;

        > div {
            width: 16rem;
            height: 16rem;
            border: .5rem solid var(--clr-tint-light);
            border-radius: 1.5rem;
            padding: 1rem;
            position: relative;

            h1 {
                font-size: xxx-large;
                text-align: center;
                margin: 0;
            }

            strong {
                font-family: "Roboto Serif", serif;
            }

            span {
                font-size: x-small;
            }

            sup {
                line-height: 0;
            }

            > div {
                font-size: 12px;
                margin: 3rem auto 0;
                width: 77%;
            }

            a {
                display: flex;
                width: fit-content;
                text-decoration: none;
                background-color: var(--color-accent);
                color: var(--text-background);
                padding: .5rem 1rem;
                border-radius: .25rem;
                margin: 1.5rem auto;
            }

            a:hover {
                background-color: var(--clr-tint-light);
            }

            img {
                position: absolute;
                left: -2rem;
                margin-top: 50%;
                top: 0;
                translate: 0 -50%;
            }
         }
    }
}


@container hero (width < 1080px) {
    .hero-core {
        justify-content: center!important;
        padding-left: .5rem!important;
        padding-top: 1.5rem!important;
    }
    .hero-core-imgs {
        scale: .8;
    }
    .hero-core-text div:nth-child(3) {
        font-size: medium!important;
    }
    .hero-core-text div:nth-child(4) {
        text-align: center!important;
    }
}

@container card-arrow (width < 832px) {
    #arrow-3 {
        top: -50%!important;
        left: 50%!important;
        translate: -30% -115%!important;
        rotate: 90deg;
    }
}

@container card-arrow (width < 544px) {
    #arrow-2 {
        top: -50%!important;
        left: 50%!important;
        translate: -30% -115%!important;
        rotate: 90deg;
    }
}

footer {
    background-color: var(--background-dark);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;

    > div {
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }

    > div:first-child {
        font-size: small;
    }

    a {
        text-decoration: none;
        color: var(--text-background);
    }
}

#contact-form {

    width: 80%;
    margin: .5rem auto;
    display: grid;
    gap: .5rem;
    text-align: left;

    .form-group {
        display: grid;
        gap: .125ex;
    }
    label {
        font-size: x-small;
        font-weight: 100;
        margin-left: .25rem;
        color: var(--text-background);

        span {
            color: var(--golden-orange);
            padding-right: .5rem;
        }
    }
}

.modal, footer, button {
    button {
        display: inline-block;
        width: fit-content;
        background-color: var(--color-accent);
        padding: .5rem 1rem;
        border-radius: .25rem;
        border: 0;
        font-size: smaller;
        color: var(--text-background);
        cursor: pointer;
        margin: auto;
    }

    button:hover {
        background-color: var(--clr-tint-light);
    }
}

.modal {
    position: fixed;
    width: 286px;
    height: fit-content;
    border-radius: .25rem;
    background: var(--background-dark);
    -webkit-box-shadow: 2px 2px 10px -4px black;
    -moz-box-shadow: 2px 2px 10px -4px black;
    box-shadow: 2px 2px 10px -4px black;
    text-align: center;
    display: none;
}

@keyframes modal-pop {
    0% { 
        left: 0;
        top: 0;
        opacity: 0;
    }
    /* center modal on page */
    100% {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.modal-shroud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0,0,0, 0.3);
    display: none;
}

.modal-shroud-show {
    display: block!important;
    backdrop-filter: blur(1px);
}

.modal-open {
    display: flex!important;
    flex-direction: column;
    animation: modal-pop .3s cubic-bezier(0,.6,1,1) forwards;
}

#modal-close-button {
    cursor: pointer;
}

.modal-content {
    overflow-y: auto;
    margin-top: .125rem;
    max-height: 70vh;
}

.row-flex {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 1rem 0;
}

.row-flex.content {
    font-size: small;
    padding: 0 .5em;
}

.row-flex.content > img {
    width: 24rem;
}

.row-flex.content > :last-child {
    text-align: left;
    padding: .5em;
}

.two-btn-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 .3em;
    max-height: 2.6em;
    border-radius: .25rem .25rem 0 0;
    background-color: var(--background-dark);
}

.two-btn-header h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
    white-space: nowrap;
    padding: 0 .25em;
    color: var(--text-background);
    font-weight: 400;
}

.two-element-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}




