@font-face {
    font-family: 'Signika Negative';
    src: url('/assets/fonts/SignikaNegative-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --pink: #eb9399;
    --peach: #ffe8ce;
    --peach-light: #fff2dd;
    --white: #fefcf0;
    --text: #784c27;
    --text-light: #fef8f7;
    --border: #a56534;
    --shadow: #ffb2824D;

    font-family: "Signika Negative", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* border: 1px dashed red; */
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--peach);
    padding: 1rem 2rem;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header>* {
    flex: 1;
}

header .logo {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: start;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

header .logo img {
    width: 2rem;
}

.lang-switch {
    display: flex;
    justify-content: end;
    align-items: center;
}

.lang-switch a {
    font-size: 1.25rem;
}

nav {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

header nav a {
    margin-left: 1rem;
    color: var(--text);
    font-weight: 600;
}

#goTop {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#goTop>button {
    padding: 0.8rem 0.8rem;
    border-radius: 50%;
    line-height: 0;
    box-shadow: 0px 4px 0px var(--shadow);
}

#goTop>button>svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: var(--text-light);
    stroke: var(--text-light);
}

#goTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem;
    scroll-margin-top: 4rem;
}

section>.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero {
    padding: 2rem 2rem 1rem 2rem;
    background: var(--peach);
    overflow-x: hidden;
}

.hero .btn {
    margin-top: 1rem;
}

h1,
h2 {
    font-size: 2.2rem;
    max-width: 37.5rem;
    text-wrap: balance;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.3;
}

p {
    font-size: 1.1rem;
}

.hero h1 {
    margin-top: 1rem;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
}

.hero p {
    max-width: 32rem;
    margin-bottom: 2rem;
}

.hero .hero-img {
    width: 150%;
    height: auto;
    padding: 0rem 0rem 2rem 0rem;
    filter: drop-shadow(-4px 8px 0px var(--shadow));
}

.btn {
    display: inline-flex;
    gap: 1rem;
    max-width: fit-content;
    line-height: normal;
    justify-content: center;
    align-items: center;
}

.btn>img.icon {
    width: auto;
    height: 1.5rem;
    box-shadow: none;
    padding: 0;
    margin: 0;
    filter: drop-shadow(0px 0px 5px var(--shadow));
}

button,
.btn {
    background: var(--pink);
    border: 2px solid var(--border);
    box-shadow: 0px 6px 0px var(--shadow);
    font-weight: bold;
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 1.5rem;
    cursor: pointer;
    font-size: 1.05rem;
    text-wrap: balance;
    z-index: 10;
    will-change: transform;
    transform: translateZ(0);
    transition: transform 0.2s ease;
}

button:hover,
.btn:hover {
    transform: scale(1.05) translateZ(0);
}

#love-animation {
    position: absolute;
    width: 11.25%;
    top: 10%;
    left: 50%;
    translate: -50% 0;
    rotate: 8deg;
    filter: drop-shadow(2px 2px 0px var(--shadow));
}

.image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-wave {
    translate: 0 -1rem;
}

.wave-separator {
    position: relative;
    width: 100%;
    height: 8rem;
    line-height: 0;
    overflow: hidden;
}

.wave-separator svg {
    width: 150%;
    translate: -25% 0;
    fill: var(--peach);
}

.wave-separator .wave-shadow {
    position: absolute;
    top: 2px;
    left: 0;
    fill: var(--border);
    z-index: -1;
}

.tutorial {
    padding: 1rem 5rem 2rem 5rem;
}

.card-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 12rem;
}

.card img {
    width: 100%;
}

.card h3 {
    padding: 1rem 0 0.25rem 0;
}

.card p {
    /* width: 80%; */
}

.about .row-wrapper {
    background: var(--peach-light);
    padding: 1.5rem 3rem;
    border-radius: 3rem;
}

.about .card-row {
    width: 8rem;
    flex-wrap: wrap;
    gap: 3rem;
}

.about .card {
    justify-content: flex-start;
    width: 8rem;
    max-width: 100%;
}

.about .card img {
    /* width: 80%; */
    height: 6.4rem;
    object-fit: contain;
    filter: drop-shadow(-4px 4px 0px var(--shadow));
}

.cta {
    position: relative;
}

.cta .cta-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    column-gap: 2rem;
    row-gap: 2rem;
    justify-content: center;
    align-items: center;
}

.cta-content h2 {
    width: 100%;
    text-align: center;
    padding: 0 2rem;
    margin: 0 auto;
}

.cta-content p {
    text-align: center;
    font-size: 1.2rem;
    padding: 0rem 1rem;
}

.cta-content .button-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-content img {
    width: auto;
    height: 15rem;
    margin: 0 auto;
}

#footer-wave {
    rotate: 180deg;
}

.site-footer {
    background: var(--peach);
    color: var(--text);
    padding: 1.1rem 2rem;
    text-align: center;
}

.site-footer svg {
    fill: var(--text);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    translate: 0 -1rem;
}

.footer-left p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-center a {
    color: var(--text);
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.footer-center a:hover {
    opacity: 0.7;
}

.footer-right a {
    margin-left: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-right a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
    }
}


@media (min-width: 38rem) {
    header .logo {
        width: auto;
    }

    .hero .hero-img {
        width: 80%;
        height: auto;
        translate: 0;
    }

    #love-animation {
        width: 6%;
    }

    .about .card-row {
        width: 22rem;
        gap: 6rem;
    }

    .cta-content p {
        padding: 0rem 3rem;
    }
}

@media (min-width: 52rem) {
    nav {
        display: flex;
    }

    .wave-separator svg {
        width: 100%;
        translate: 0;
    }

    .card-row {
        gap: 5rem;
    }

    .about .card-row {
        width: 36rem;
        gap: 6rem;
    }

    .hero .hero-img {
        padding: 0rem 3rem 2rem 3rem;
    }
}


@media (min-width: 56rem) {
    .header .logo img {
        width: 4rem;
    }

    .cta .cta-content {
        width: 56rem;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        column-gap: 0rem;
    }

    .cta-content h2 {
        grid-area: 1 / 1 / 2 / 3;
    }

    .cta-content p {
        text-align: left;
        padding: 0rem 5rem;
        grid-area: 2 / 1 / 3 / 3;
    }

    .cta-content .button-wrapper {
        grid-area: 3 / 1 / 4 / 3;
    }

    .cta-content img {
        height: 18rem;
        margin: 0;
        grid-area: 1 / 3 / 4 / 4;
    }
}
