:root {
    /* Colors pallet */
    --color-bg-main: #FDF6EE;
    --color-bg-alt: #F0EBE3;

    --color-accent-main: #D95F3B;
    --color-accent-main-gradient: rgba(217, 95, 58, 0.2);
    --color-accent-main-hover: #C04D2A;
    --color-accent-alt: #7bae6e;

    --color-text-title: #3B2314;
    --color-text-paragraph: #6B5144;

    --color-extra-main: #F2C4B0;
    --color-extra-main-blur: #F2C4B033;
    --color-extra-alt: #F5A623;

    /* Fonts */
    --font-main: "Merriweather", serif;
    --font-accent: "Story Script", sans-serif;
}

/* Navigation */
.header {
    display: flex;
    justify-content: center;
}

.nav {
    position: fixed;
    top: 2%;
    width: 85vw;
    max-width: 1200px;
    background-color: var(--color-extra-main-blur);
    backdrop-filter: blur(10px);
    border-radius: clamp(0.75rem, 1.5vw, 1.25rem);
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 3vw, 2rem);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    color: var(--color-text-title);
}

.nav__title-wrapper {
    color: var(--color-accent-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav__title {
    font-family: var(--font-accent);
    font-size: clamp(1.5rem, 4vw, 2rem);
    flex-shrink: 0;
    color: var(--color-accent-main);
    cursor: pointer;
}

.nav__menu-icon {
    font-size: clamp(1.75rem, 4vw, 2rem);
    cursor: pointer;
    user-select: none;
}

.nav__links-wrapper {
    display: none;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-accent-main);
}

.nav__links-wrapper.active {
    display: flex;
}

.nav__link {
    font-family: var(--font-main);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--color-text-title);
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
    border-radius: clamp(0.5rem, 1vw, 0.75rem);
    text-align: center;
    font-weight: 500;
}

.nav--mobile {
    display: flex;
    flex-direction: column;
}

.nav--desktop {
    display: none;
}

/* Sections */

.section {
    padding: 5rem 2.5rem 2rem;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.section--bg-alt {
    background-color: var(--color-bg-alt);
}

.section__title {
    font-family: var(--font-accent);
    font-size: clamp(1.75rem, 5vw + 0.5rem, 3rem);
    color: var(--color-text-title);
    width: 100%;
    text-align: center;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 20% 20%, var(--color-accent-main-gradient) 0%, transparent 70%);
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: 80vw;
}

.hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 3.5rem);
    max-width: 100%;
    text-align: center;
    align-items: center;
}

.hero__title {
    font-size: clamp(2.75rem, 8vw + 1rem, 5rem);
    font-family: var(--font-main);
    color: var(--color-text-title)
}

.hero__title--highlighted {
    color: var(--color-accent-main);
    font-family: var(--font-accent);
}

.hero__description {
    font-style: italic;
    font-size: clamp(1rem, 2vw + 0.5rem, 2rem);
    font-family: var(--font-main);
    color: var(--color-text-paragraph);
}

.hero__cta {
    background-color: var(--color-accent-main);
    font-family: var(--font-main);
    color: var(--color-bg-main);
    font-weight: bold;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    border-radius: clamp(0.7rem, 1vw, 1rem);
    max-width: fit-content;
}

.hero__cta:hover {
    background-color: var(--color-accent-main-hover);
}

.hero__image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max(40%, 10rem);
}

.hero__image-cake {
    width: 100%;
    max-width: min(700px, 90vw);
    height: auto;
}

/* How-it-works */

.hiw {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 6rem 1.5rem 2rem;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    box-sizing: border-box;
    overflow: hidden;
}

.hiw__cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    width: 100%;
    max-width: 1200px;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

.hiw__card {
    background: linear-gradient(165deg, var(--color-bg-main) 0%, #faf0e6 100%);
    border-radius: clamp(0.75rem, 1.5vw, 1.25rem);
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    text-align: center;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-height: 0;
    box-shadow: 0 6px 24px rgba(59, 35, 20, 0.1), 0 2px 8px rgba(59, 35, 20, 0.07);
    border-top: 3px solid var(--color-accent-main);
}

.hiw__artwork {
    height: auto;
    width: clamp(3.5rem, 10vw, 6rem);
    flex-shrink: 1;
    min-height: 0;
    filter: drop-shadow(0 2px 6px rgba(59, 35, 20, 0.12));
}

.hiw__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.hiw__step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(2rem, 5vw, 2.5rem);
    height: clamp(2rem, 5vw, 2.5rem);
    border-radius: 50%;
    background-color: var(--color-accent-alt);
    color: var(--color-bg-main);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    flex-shrink: 0;
}

.hiw__title {
    font-family: var(--font-main);
    color: var(--color-accent-main);
    font-size: clamp(0.95rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hiw__description {
    font-family: var(--font-main);
    color: var(--color-text-paragraph);
    font-size: clamp(0.8rem, 1.25vw, 1rem);
    line-height: 1.5;
    max-width: 95%;
}

/* Media Queries */

/* Desktop Navigation */
@media (min-aspect-ratio: 3/4) and (min-width: 64em) {
    .nav--mobile {
        display: none;
    }

    .nav--desktop {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }

    .nav--desktop .nav__title-wrapper {
        flex-shrink: 0;
        width: auto;
    }

    .nav--desktop .nav__menu-icon {
        display: none;
    }

    .nav--desktop .nav__links-wrapper {
        display: flex;
        flex-direction: row;
        gap: clamp(1rem, 2vw, 2rem);
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        flex: 1;
        justify-content: flex-end;
    }

    .nav--desktop .nav__link {
        padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.75rem, 1.5vw, 1.25rem);
        font-size: clamp(0.9rem, 1vw, 1rem);
        white-space: nowrap;
    }

    .nav__title:hover {
        color: var(--color-accent-main-hover);
    }
}

/* Desktop/Tablet Hero Layout - wider screens or any landscape */
@media ((min-aspect-ratio: 3/4) and (min-width: 64em)) or (orientation: landscape) {
    .hero__container {
        flex-direction: row;
        justify-content: space-between;
        gap: clamp(2rem, 3vw, 6rem);
        padding: 0;
    }

    .hero__content {
        max-width: min(600px, 100%);
        text-align: left;
        align-items: flex-start;
    }

    .hero__image-wrapper {
        justify-content: end;
        width: auto;
    }

    .hiw {
        padding: 6.5rem 2.5rem 2rem;
    }

    .hiw__header {
        flex-direction: column;
        gap: clamp(0.5rem, 1vw, 0.75rem);
    }

    .hiw__step {
        width: clamp(2.5rem, 4vw, 3.5rem);
        height: clamp(2.5rem, 4vw, 3.5rem);
        font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    }

    .hiw__cards-wrapper {
        flex-direction: row;
        align-items: stretch;
        gap: clamp(1rem, 2vw, 1.75rem);
    }

    .hiw__card {
        padding: clamp(1.25rem, 2vw, 2rem) clamp(1.5rem, 2vw, 2.5rem);
        gap: clamp(0.75rem, 1.25vw, 1.25rem);
        box-shadow: 0 6px 24px rgba(59, 35, 20, 0.1), 0 2px 6px rgba(59, 35, 20, 0.06);
    }

    .hiw__artwork {
        width: clamp(4rem, 10vw, 9rem);
        max-width: min(9rem, 40%);
    }

    .hiw__title {
        font-size: clamp(1.1rem, 1.6vw, 1.75rem);
    }

    .hiw__description {
        font-size: clamp(0.9rem, 1.2vw, 1.25rem);
        line-height: 1.65;
        max-width: 90%;
    }
}

/* Mobile Landscape Adjustments - small height screens */
@media (orientation: landscape) and (max-height: 37em) {
    .hero__container {
        gap: clamp(1rem, 2vw, 2rem);
    }

    .hero__content {
        gap: clamp(0.5rem, 1vh, 1rem);
    }

    .hero__title {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }

    .hero__description {
        font-size: clamp(0.75rem, 1.5vw, 1rem);
    }

    .hero__cta {
        padding: clamp(0.5rem, 1vh, 0.75rem) clamp(1rem, 2vw, 1.5rem);
        font-size: clamp(0.5rem, 2vw, 1rem);
        border-radius: clamp(0.5rem, 1vh, 0.75rem);
    }

    .hero__image-cake {
        max-width: min(350px, 40vw);
    }

    .hiw {
        padding: 4.5rem 1.5rem 1rem;
        gap: clamp(0.75rem, 2vh, 1.5rem);
    }

    .hiw__step {
        width: clamp(1.5rem, 3vw, 2rem);
        height: clamp(1.5rem, 3vw, 2rem);
        font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    }

    .hiw__cards-wrapper {
        gap: clamp(0.5rem, 1.5vw, 1rem);
    }

    .hiw__card {
        padding: clamp(0.5rem, 1.5vh, 0.9rem) clamp(1rem, 1.5vw, 1.5rem);
        gap: clamp(0.25rem, 1vh, 0.5rem);
    }

    .hiw__artwork {
        width: clamp(2rem, 5vw, 3.5rem);
    }

    .hiw__title {
        font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    }

    .hiw__description {
        font-size: clamp(0.7rem, 1vw, 0.9rem);
        line-height: 1.4;
    }

    .section__title {
        font-size: clamp(1.25rem, 4vw, 2rem);
    }
}