@import url("/fonts/inter/inter.css");

/* reset */
:root {
    font-size: 15px;
    font-family: "Inter", system-ui, sans-serif;

    --color-primary: #0062ff;
    --color-stroke: #cfcfcf;
    --color-muted: #989898;
    --transition-duration: 0.2s;
}

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    background: #fefefe;
}

label, input, button {
    display: block;
}

/* sizing */
h1 {
    font-size: 6rem;
    font-weight: 900;
}

h2 {
    font-size: 1rem;
    font-weight: 800;
}

h3 {
    font-size: 4rem;
    font-weight: 800;
}

h4 {
    font-size: 3rem;
    font-weight: 800;
}

h5 {
    font-size: 2rem;
    font-weight: 800;
}

h6 {
    font-size: 1.5rem;
    font-weight: 800;
}

/* util */
.text-center {
    text-align: center;
}

/* structure */
header {
    width: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
}

header .content {
    width: 80%;
    max-width: 1400px;
    padding: 2rem 0;
}

main section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main section .section-content {
    position: relative;
    width: 75%;
    max-width: 1200px;
}

footer {
    padding: 2rem;
}

section.hero, section.about-us {
    height: 100svh;
}

@media screen and (max-width: 1000px) {
    section.hero, section.about-us {
        min-height: 100svh;
    }
}

/* hero */
section.hero .section-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

section.hero .section-content .content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 40rem;
}

section.hero .section-content aside {
    width: 30rem;
}

@media screen and (max-width: 1000px) {
    header {
        position: relative;
    }

    section.hero .section-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

    section.hero .section-content .content {
        gap: 1rem;
    }

    section.hero .section-content .content, section.hero .section-content aside {
        width: 100%;
    }

    h1 {
        font-size: 3rem;
    }
}

section.hero .section-content .content .controls {
    display: flex;
    gap: 0.5rem;
}

section.hero .section-content .content h1 {
    text-transform: uppercase;
}

section.hero .section-content .product-card {
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.2);
    width: 100%;
    padding: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.product-result-card {
    width: 100%;
    border: 1px solid var(--color-stroke);
    border-radius: 0.3rem;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-result-card .row {
    display: flex;
    justify-content: space-between;
}

.product-result-card .label {
    color: var(--color-muted)
}

.product-result-card .split {
    background: var(--color-stroke);
    height: 1px;
    width: 100%;
}

/* about-us */
section.about-us .section-content {
    display: flex;
    align-items: center;
    gap: 10%;
    height: 100%;
}

section.about-us .section-content > * {
    flex: 1;
}

section.about-us .section-content .text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

section.about-us .section-content .img {
    width: 100%;
}

@media screen and (max-width: 1000px) {
    section.about-us .section-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
}

/* newsletter */
section.newsletter {
    padding: 4rem 0;
}
section.newsletter .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

section.newsletter .section-content .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 30rem;
}

@media screen and (max-width: 1000px) {
    section.newsletter .section-content .newsletter-form {
        width: 100%;
    }
}

/* elements */
.textbox {
    background: #fff;
    border: 1px solid var(--color-stroke);
    border-radius: 0.3rem;
    outline: none;
    padding: 0.75rem 1.25rem;
    transition: var(--transition-duration) border-color;
}

.textbox:hover, .textbox:focus {
    border-color: #000;
}

.textbox:focus {
    outline: 2px solid #000;
}

.btn {
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 0.3rem;
    padding: 0.75rem 1.25rem;
    transition: var(--transition-duration) border-color,
        var(--transition-duration) background,
        var(--transition-duration) color,
        var(--transition-duration) filter;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    filter: opacity(75%);
}

.btn-secondary {
    background: #fff;
    border: 1px solid var(--color-stroke);
}

.btn-secondary:hover {
    border-color: #000;
}

@keyframes scroll-indicator-bounce {
    0% { transform: translate(-50%, 0%); }
    50% { transform: translate(-50%, -45%); }
    100% { transform: translate(-50%, 0%); }
}

.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-indicator-bounce 2s infinite;
    cursor: pointer;
}

/* overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100svh;
    width: 100svw;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay .dialog {
    width: 70rem;
    padding: 2rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.overlay .dialog .content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content, .overlay .dialog .titlebar {
    display: flex;
    justify-content: space-between;
}

.overlay .dialog .content, .overlay .dialog .content .newsletter-dialog-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.overlay .dialog-confirmed .content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay .dialog #dialogClose {
    cursor: pointer;
}

@media screen and (max-width: 1000px) {
    .overlay .dialog {
        width: 90%;
    }
}
