:root {

    --heading-color: #503B00;
    --paragraph-color: #444444;
    --span-text-color: #EEB000;

    --section-heading-font-size: 12px;
    --section-heading-font-weight: 700;
    --hero-heading-font-size: clamp(40px, 2.5vw, 56px);
    --heading-font-size: clamp(32px, 2.5vw, 42px);


    --heading-font-family: "Aeonik", Arial, sans-serif;
    --body-font-family: "Avenir", Arial, sans-serif;

    --steps-font-color: #949494;
    --steps-bg-color: #ececec;

}

body {
    font-family: var(--body-font-family);

    p {
        margin: 0;
    }
}

main #hero-insurance {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../images/smart-insurance/Mesh\ gradient.png);
}

.hero-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--paragraph-color);
    padding: clamp(16px, 2.5vw, 1%);
    gap: 0;
    height: 80vh;
}

.hero-tag p {
    font-size: var(--section-heading-font-size);
    color: var(--paragraph-color);
    font-weight: 700;
}

.hero-paragraph p {
    font-size: clamp(16px, 2.5vw, 20px);
}

.hero-heading h1 {
    margin: 0;
    color: #503B00;
    font-family: var(--heading-font-family);
    font-size: clamp(40px, 3.3vw, 64px);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    max-width: 450px;
}

.hero-left {
    max-width: 428px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hero-section div:nth-of-type(1) {
    gap: 8px;
}

.hero-section div:nth-of-type(2) {
    width: 100%;
    max-width: 600px;
    min-width: 375px;
}

section:nth-of-type(2),
section:nth-of-type(4) {
    background-color: #fff;
}

main #how-it-works {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../images/smart-insurance/Section-bg.svg);
}


main #choice {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../images/smart-insurance/Section-2.svg);
}

.step-1 {
    grid-area: step-1;
}

.step-2 {
    grid-area: step-2;
}

.step-3 {
    grid-area: step-3;
}

.step-4 {
    grid-area: step-4;
}

.steps {
    padding: 24px 0;
    display: grid;
    grid-template: auto / auto auto;
    gap: 32px;
    grid-template-areas:
        'step-1 step-2'
        'step-3 step-4';

    >div {
        border-radius: clamp(1rem, 2.5vw, 1.5rem);
        background: #FFF;
        box-shadow: 0.763px 3.051px 18.305px 0px rgba(0, 0, 0, 0.10);
        padding: clamp(18px, 2.5vw, 32px);
        height: fit-content;
    }

    >div:nth-of-type(2),
    div:nth-of-type(4) {
        margin-top: -20px;
    }

    img {
        width: 100%;
    }

    h4 {
        font-size: clamp(18px, 2.5vw, 24px);
    }

    p {
        color: #838383;
    }
}

.step-caption {
    margin-bottom: 8px;
}

.steps .step-label p {
    width: fit-content;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1.5px solid #B8B8B8;
    background: #ECECEC;
    color: #949494;
    font-size: clamp(14px, 2.5vw, 16px);
}

.container span {
    color: var(--span-text-color);
}

.thefuture {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.future-left {
    width: 31%;
    text-align: left;
}

.future-left .section-header {
    align-items: flex-start;
}

.section-heading p {
    color: #8c8c8c;
}

.feature-1 {
    grid-area: focusing;
    background-color: #ffbd00;
    color: white;

    p {
        color: #fff;
    }
}

.feature-2 {
    grid-area: braking;
    background-color: #FFF;

    p {
        color: #8c8c8c;
    }
}

.feature-3 {
    grid-area: acceleration;
    background-color: #FFF;

    p {
        color: #8c8c8c;
    }
}

.feature-4 {
    grid-area: speeding;
    background-color: #FFF;

    p {
        color: #8c8c8c;
    }
}

.future-right {
    display: grid;
    gap: 24px;
    grid-template: auto auto/ 300px 300px;
    grid-template-areas:
        'focusing braking'
        'acceleration speeding';

    >div {
        height: fit-content;
        padding: clamp(0.7rem, 2.5vw, .9rem);
        border-radius: clamp(16px, 2.5vw, 20px);
        box-shadow: 1px 3px 24px 0px rgba(96, 96, 96, 0.12);
    }

    >div:nth-of-type(1),
    div:nth-of-type(3) {
        margin-top: -20px
    }

    >div:nth-of-type(2),
    div:nth-of-type(4) {
        margin-top: 10px
    }

    h5 {
        font-size: clamp(24px, 2.5vw, 26px);
    }

    p {
        font-size: clamp(16px, 2.5vw, 20px);
    }
}

.reliable-choice h3,
.how-it-works h3 {
    color: #4A3700;
    text-align: center;
    font-size: var(--heading-font-size);
    font-weight: 700;
}

.reliable-choice .section-heading,
.how-it-works .section-heading {
    text-align: center;
}

.goals {
    display: grid;
    grid-template: Auto 250px / auto 325px 325x;
    gap: 24px;
    grid-template-areas:
        'protection data-driven convenient';

    >div {
        border-radius: clamp(0.7rem, 2.5vw, 1rem);
        background-color: #fff;
        box-shadow: 1px 3px 24px 0px rgba(87, 87, 87, 0.10);
        padding: clamp(16px, 2.5vw, 32px);
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 16px;
    }

    img {
        width: 100%;
    }
}

.personal-protection {
    grid-area: protection;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../images/smart-insurance/first-choice-bg.svg);
    justify-content: flex-end;
}

/* .convenient .image-container {
    mask-image: linear-gradient(to top, transparent, #ffbd00);
} */

.personal-protection {
    color: hsl(0, 0%, 97%);

    span {
        color: var(--heading-color);
    }
}

.data-driven {
    grid-area: data-driven;
    justify-content: space-between;
}

.convenient {
    grid-area: convenient;
    justify-content: flex-end;
}

.data-driven,
.convenient {

    span {
        color: var(--heading-color);
    }

    h4 {
        color: #c9c9c9;
        font-size: clamp(24px, 2.5vw, 32px);
    }

    p {
        color: #838383;
    }
}

section:nth-of-type(3) {
    background-color: hsl(0, 0%, 99%);
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.top-section {
    justify-content: space-between;
}

.top-section,
.bottom-section {
    display: flex;
    flex-direction: row;
    column-gap: 24px;
}

.other-benefits,
.top-right-flexible {
    padding: 16px 24px;
    border: 1px solid #f3f3f3;
    border-radius: 16px;
    box-shadow: 1px 3px 25px rgba(0, 0, 0, 0.04);
}

.top-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 50%;
}

.top-right-flexible {
    width: 33%;
    transform: rotate(8deg);
}

#unique-bg {
    width: 100%;
    max-width: 100%;
    height: 760px;
    background-image: url(../images/smart-insurance/flexibility-bg.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

.flexibility {
    width: 40%;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.flexibility .section-heading {

    h3,
    p {
        color: #fff;
    }
}

#tablet-mobile-display {
    display: none;
}

@media (max-width: 1275px) {
    #desktop-display {
        display: none;
    }

    #tablet-mobile-display {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
    }

    #tablet-mobile-display .container {
        padding: clamp(50px, 2.5vw, 96px) 0px;

        div:nth-of-type(3) {
            width: 100%;
            padding-top: clamp(48px, 2.5vw, 72px);

            img {
                width: 100%;
                scale: 1.3;
            }
        }
    }

    .flexibility {
        width: 100%;
        padding: 0 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .flexibility .section-heading {
        h3 {
            color: #4A3700;
        }

        p {
            color: #8c8c8c;
        }
    }
}

@media (max-width:1024px) {
    .hero-section {
        height: 50vh;
        min-height: max-content;
    }

    .goals {
        display: grid;
        grid-template: Auto 250px / auto 325px 325x;
        gap: 24px;
        grid-template-areas:
            'protection convenient'
            'data-driven data-driven';

        img {
            width: 80%;
        }

        >div:nth-of-type(1),
        div:nth-of-type(3) {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            row-gap: 16px;
        }

        >div:nth-of-type(2) {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: flex-end;

            >div {
                width: 40%;
            }

            h4 {
                font-size: 1.5rem;
            }
        }

    }

    .thefuture {
        flex-direction: column;
    }

    .thefuture .future-left {
        text-align: center;
        width: 80%;
    }

    .future-left .section-header {
        align-items: center;
    }

    .future-right {

        >div:nth-of-type(1),
        div:nth-of-type(3) {
            margin-top: 0;
        }

        >div:nth-of-type(2),
        div:nth-of-type(4) {
            margin-top: 0;
        }
    }
}


@media (max-width:768px) {
    .hero-section {
        padding: 8px 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        height: 100vh;
        min-height: max-content;
    }

    .hero-section div:nth-of-type(1) {
        text-align: center;
        align-items: center;

        div:nth-of-type(3) {
            max-width: 90%;
        }
    }

    .goals {
        display: grid;
        grid-template: auto / auto;
        gap: 24px;
        grid-template-areas:
            'protection'
            'data-driven'
            'convenient';

        img {
            width: 80%;
        }

        >div,
        div:nth-of-type(2) {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            row-gap: 16px;
        }

        div:nth-of-type(2) {
            >div {
                width: 100%;
            }
        }
    }

    .goals .caption {
        max-width: 220px;
    }

    .steps {
        padding: 24px 0;
        display: grid;
        grid-template: auto / auto;
        gap: 32px;
        grid-template-areas:
            'step-1'
            'step-2'
            'step-3 '
            'step-4';

        >div {
            border-radius: clamp(1rem, 2.5vw, 1.5rem);
            background: #FFF;
            box-shadow: 0.763px 3.051px 18.305px 0px rgba(0, 0, 0, 0.10);
            padding: clamp(18px, 2.5vw, 32px);
            height: fit-content;
        }

        >div:nth-of-type(4),
        div:nth-of-type(2) {
            margin-top: 0;
        }
    }

    .future-right {
        display: grid;
        gap: 24px;
        grid-template: auto/ auto;
        grid-template-areas:
            'focusing'
            'braking'
            'acceleration'
            'speeding';
    }

    .top-section,
    .bottom-section {
        display: flex;
        flex-direction: column;
        column-gap: 24px;
    }

    .top-right-flexible {
        width: 100%;
        transform: rotate(0deg);
    }

    .top-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}