body {
    background-color: var(--light);
    overflow-x: hidden;
}

.title {
    background-image:
        linear-gradient(to top,
            var(--black-50),
            var(--black-50)),
        url('../images/header-rewards.jpg');
}

.normal {
    border-radius: 0;
    border-radius: 0px 0px 30px 30px;
}

/* Earn Stars section */
.dark.top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 clamp(-170px, -12vw, -20px);
    position: relative;
    top: 100px;
}

.earn-stars {
    text-align: center;
    max-width: fit-content;
    margin: 0 auto;
}

.earn-stars h3 {
    margin-bottom: 30px;
}

/* rewards section*/

.top-paragraph {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}

.top-paragraph h3 {
    margin-bottom: 20px;
}

.top-paragraph p {
    color: var(--grey-dark);
}

/* Cards container */
.three-boxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* Individual card */
.box {
    width: 30%;
    background-color: var(--tertiary);
    border-radius: 30px;
    padding: 45px 30px;
    text-align: center;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.box:hover {
    transform: scale(1.05);
}

.bday-treat {
    padding: 0 0 10px;
}

.mobile-ordering {
    padding: 0 0 50px;
}

.get-to-free {
    margin-top: -10px;
    padding: 0 0 45px;
}

/* Card title */
.box h5 {
    color: var(--white);
    margin-bottom: 15px;
}

/* Card text */
.box p {
    justify-content: center;
    color: var(--white);
    max-width: 260px;
    margin: 0 auto;
    margin-bottom: 50px;
}

.earn-stars {
    text-align: center;
}

.earn-stars h3 {
    margin-bottom: 40px;
}


/* More choices, more rewards */
.choice {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

/* Heading text */
.choice .text h3 {
    margin-bottom: 15px;
}

.choice .text p {
    max-width: 550px;
    margin: 0 auto;
}

/* Grid container */
.stars-rewards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Individual reward card */
.square {
    background-color: var(--sec-hover);
    border-radius: 30px;
    padding: 45px 30px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 340px;
    transition: transform 0.3s;
}

.square:hover {
    transform: scale(1.05);
}

/* Alternate darker cards */
.square:nth-child(odd) {
    background-color: var(--tertiary);
}

/* Reward image */
.square img {
    width: 140px;
    height: auto;
}

/* Stars heading */
.square h5 {
    color: var(--white);
    margin-top: 10px;
}

/* Reward description */
.square p {
    color: var(--white);
    max-width: 220px;
    margin: 0 auto;
}

/* === QUESTIONS SECTION === */
.questions-section h3 {
    margin: 50px 0 20px;
}

.questions-list {
    border-radius: 20px;
    overflow: hidden;
}

.question-row {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 24px 32px;
}

.question-row.light {
    background-color: var(--sec-hover);
}

.question-row.dark {
    background-color: var(--tertiary);
}

.question-number {
    font-family: var(--heading);
    font-size: 40px;
    line-height: 1;
    color: var(--white);
    min-width: 60px;
}

.question-row p {
    color: var(--white);
    margin: 0;
}

.dark-bottom {
    z-index: -2;
    background-color: var(--dark);
    border-radius: 30px 30px 0 0;
    padding-bottom: 40px;
    padding-top: 60px;
}

/* Headings */
.earning-stars h3,
.terms-of-use h3 {
    margin-bottom: 30px;
}

.earning-stars h3 {
    margin-top: 20px;
}

.terms-of-use h3 {
    margin-top: 80px;
}


.terms-of-use p {
    margin-bottom: 130px;
}

/* deco */
.wrapper {
    overflow: hidden;
    position: relative;
}

.deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.deco>div {
    position: absolute;
}

.bottom-flower {
    width: 30%;
    bottom: -25%;
    right: -7%;
    transform: scaleX(-1) rotate(5deg);
}

.flower-top {
    width: 28%;
    top: 2%;
    left: -5%;
    transform: rotate(-10deg);
}

.leaf-bottom {
    width: 15%;
    bottom: 20%;
    right: -3%;
    transform: scaleX(-1) rotate(20deg);
}


@media screen and (max-width: 1024px) {
    .three-boxes {
        flex-direction: column;
        gap: 30px;
    }

    .box {
        width: 100%;
        padding: 40px 30px;
        min-height: auto;
    }


    .stars-rewards {
        grid-template-columns: repeat(2, 1fr);
    }

    .square {
        min-height: 320px;
    }
}

@media screen and (max-width: 768px) {
    .earn-stars {
        max-width: 100%;
        padding: 0 30px;
        margin-bottom: 70px;
    }

    .bottom-flower {
        max-width: 33.33%;
    }

    .flower-top {
        max-width: 33.33%;
    }

    .leaf-bottom {
        max-width: 33.33%;
    }

    .question-row {
        padding: 20px;
        gap: 20px;
    }

    .question-number {
        font-size: 32px;
        min-width: 50px;
    }

    .choices {
        gap: 60px;
    }

    .stars-rewards {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .square {
        padding: 40px 25px;
        min-height: auto;
    }

    .square img {
        width: 120px;
    }
}