@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
    --blue: #073a85;
    --orange: #ffa126;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--blue);
    background: #fff;
    font-family: "Poppins", sans-serif;
}

.onboarding {
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
}

.onboarding-carousel {
    position: relative;
    height: 76dvh;
    min-height: 560px;
    overflow: hidden;
    background: #19130f;
}

.onboarding-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 650ms ease, transform 4s ease;
}

.onboarding-slide.active {
    opacity: 1;
    transform: scale(1);
}

.onboarding-slide-center { object-position: 52% 44%; }
.onboarding-slide-wide { object-position: 45% 44%; }

.onboarding-card {
    position: relative;
    z-index: 2;
    width: 110%;
    min-height: 350px;
    margin: -85px -5% 0;
    padding: 70px 7vw 55px;
    text-align: center;
    background: #fff;
    border-top: 8px solid var(--orange);
    border-radius: 50% 50% 0 0 / 22% 22% 0 0;
}

.onboarding-card h1 {
    margin: 28px 0 12px;
    font-size: clamp(30px, 3vw, 48px);
}

.onboarding-card p {
    margin: 0 auto 44px;
    color: #888;
    font-size: clamp(15px, 1.3vw, 21px);
}

.onboarding-continue {
    display: inline-flex;
    width: min(400px, 82vw);
    min-height: 58px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--orange);
    border: 0;
    border-radius: 34px;
    font: 700 17px "Poppins", sans-serif;
    text-decoration: none;
    text-transform: uppercase;
}

.onboarding-dots { display: flex; margin-top: -45px; justify-content: center; gap: 15px; }
.onboarding-dots button { width: 16px; height: 16px; padding: 0; background: #ddd; border: 0; border-radius: 50%; cursor: pointer; transition: background-color 180ms ease, transform 180ms ease; }
.onboarding-dots button.active { background: var(--orange); transform: scale(1.12); }

.back-link {
    position: absolute;
    z-index: 3;
    top: 32px;
    left: 32px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: var(--orange);
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    text-decoration: none;
}

.chef-language-selector {
    position: absolute;
    z-index: 3;
    top: 32px;
    right: 32px;
    display: flex;
    gap: 7px;
}

.chef-language-selector button {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    overflow: hidden;
    place-items: center;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
}

.chef-language-selector button img { width: 100%; height: 100%; object-fit: cover; }

.chef-language-selector button.active { border-color: var(--orange); box-shadow: 0 0 0 3px #fff; }

@media (max-height: 750px) and (min-width: 701px) {
    .onboarding-carousel {
        height: 74dvh;
        min-height: 0;
    }

    .onboarding-card {
        min-height: 250px;
        margin-top: -58px;
        padding: 44px 7vw 30px;
    }

    .onboarding-dots {
        margin-top: -30px;
    }

    .onboarding-dots button {
        width: 11px;
        height: 11px;
    }

    .onboarding-card h1 {
        margin: 16px 0 7px;
        font-size: 32px;
    }

    .onboarding-card p {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .onboarding-continue {
        min-height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    .onboarding-carousel { height: 68dvh; min-height: 570px; }
    .onboarding-slide { object-position: 51% center; }
    .onboarding-slide-center { object-position: 55% center; }
    .onboarding-slide-wide { object-position: 47% center; }
    .onboarding-card { min-height: 390px; margin-top: -55px; padding: 55px 10vw 44px; border-top-width: 5px; }
    .onboarding-card h1 { margin-top: 25px; font-size: 29px; line-height: 1.3; }
    .onboarding-card p { max-width: 330px; margin-bottom: 30px; font-size: 14px; }
    .back-link { top: 30px; left: 24px; width: 36px; height: 36px; font-size: 28px; }
    .chef-language-selector { top: 30px; right: 20px; flex-direction: column; }
    .chef-language-selector button { width: 34px; height: 34px; font-size: 17px; }
}
