.web-hero {
    position: relative;
    min-height: 850px;
    color: #fff;
    background:
        #10233c
        url("../../img/web/car-rental-costa-rica.webp")
        center 58% / cover
        no-repeat;
}

.web-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 22, 45, 0.9) 0%,
            rgba(7, 27, 51, 0.65) 38%,
            rgba(7, 25, 47, 0.18) 72%
        ),
        linear-gradient(
            0deg,
            rgba(4, 18, 37, 0.7),
            transparent 48%
        );
}

.web-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 665px;
    align-items: center;
    justify-content: center;
    padding-top: 95px;
    padding-bottom: 130px;
}

.web-hero-copy {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.hero-kicker,
.section-kicker {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--ride-blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #a9ceff;
}

.web-hero h1 {
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-align: center;
}

.web-hero-copy p {
    max-width: 580px;
    margin: 25px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.7;
    text-align: center;
}

.web-search-position {
    position: absolute;
    right: 0;
    bottom: -105px;
    left: 0;
    z-index: 5;
}

.booking-search {
    padding: 28px;
    color: var(--ride-ink);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(5, 27, 55, 0.22);
}

.booking-search-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 21px;
}

.booking-search-heading .section-kicker {
    margin-bottom: 4px;
}

.booking-search h2 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.booking-minimum {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ride-muted);
    font-size: 0.78rem;
}

.booking-location-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.booking-date-row {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 1.25fr 0.8fr 1.7fr;
    gap: 12px;
    margin-top: 18px;
}

.booking-field {
    display: grid;
    gap: 8px;
}

.booking-field > span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 750;
}

.booking-field > span i {
    color: var(--ride-blue);
}

.booking-field select,
.booking-field input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    color: var(--ride-ink);
    background: #fff;
    border: 1px solid var(--ride-border);
    border-radius: 10px;
    outline: none;
}

.booking-field select:focus,
.booking-field input:focus {
    border-color: var(--ride-blue);
    box-shadow: 0 0 0 4px rgba(40, 110, 218, 0.11);
}

.booking-search-button {
    align-self: end;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 17px 0 20px;
    color: #fff;
    font-weight: 750;
    background: var(--ride-blue);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(40, 110, 218, 0.25);
}

.booking-search-button:hover {
    background: var(--ride-blue-dark);
}

.booking-beta-message {
    margin: 16px 0 0;
    padding: 10px 12px;
    color: #5a6575;
    font-size: 0.8rem;
    background: #f2f6fc;
    border-radius: 8px;
}

.web-section {
    padding: 105px 0;
}

.freedom-section {
    padding-top: 205px;
    background: #fff;
}

.section-heading {
    max-width: 640px;
}

.section-heading-centered {
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2,
.stay-copy h2,
.faq-preview h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-heading p,
.stay-copy > p,
.faq-preview p {
    color: var(--ride-muted);
    line-height: 1.75;
}

.benefit-grid {
    display: grid;
    gap: 22px;
}

.benefit-grid-three {
    grid-template-columns: repeat(3, 1fr);
}

.benefit-card {
    padding: 31px;
    background: var(--ride-surface);
    border: 1px solid #e8eef7;
    border-radius: 18px;
}

.benefit-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    place-items: center;
    color: var(--ride-blue);
    font-size: 1.25rem;
    background: #e5efff;
    border-radius: 13px;
}

.benefit-card h3,
.ride-benefit h3 {
    margin: 0 0 9px;
    font-size: 1.08rem;
}

.benefit-card p,
.ride-benefit p {
    margin: 0;
    color: var(--ride-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.ride-section {
    color: #fff;
    background: #112849;
}

.ride-layout {
    display: grid;
    grid-template-columns: 0.82fr 1.4fr;
    gap: 90px;
    align-items: start;
}

.ride-section .section-kicker {
    color: #8dbaff;
}

.ride-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.ride-benefit {
    display: flex;
    gap: 15px;
    padding: 21px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
}

.ride-benefit > span {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #a9ceff;
    background: rgba(40, 110, 218, 0.28);
    border-radius: 10px;
}

.ride-benefit p {
    color: rgba(255, 255, 255, 0.65);
}

.stay-section {
    overflow: hidden;
}

.stay-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 85px;
    align-items: center;
}

.stay-gallery {
    position: relative;
    min-height: 530px;
}

.stay-gallery img {
    object-fit: cover;
    box-shadow: var(--ride-shadow);
}

.stay-image-main {
    width: 82%;
    height: 475px;
    border-radius: 24px;
}

.stay-image-secondary {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 47%;
    height: 255px;
    border: 8px solid #fff;
    border-radius: 20px;
}

[dir="rtl"] .stay-image-secondary {
    right: auto;
    left: 0;
}

.stay-copy > p {
    margin: 23px 0 28px;
}

.outline-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 16px;
    padding: 0 18px;
    color: var(--ride-blue);
    font-weight: 750;
    text-decoration: none;
    border: 1px solid var(--ride-blue);
    border-radius: 10px;
}

.stay-copy small {
    display: block;
    margin-top: 14px;
    color: var(--ride-muted);
}

.faq-preview {
    padding: 55px 0;
    background: #eaf2ff;
}

.faq-preview-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.faq-preview h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.faq-preview p {
    margin-bottom: 0;
}

@media (max-width: 1000px) {
    .booking-date-row {
        grid-template-columns: 1fr 1fr;
    }

    .booking-search-button {
        grid-column: 1 / -1;
    }

    .web-search-position {
        bottom: -185px;
    }

    .freedom-section {
        padding-top: 285px;
    }

    .ride-layout,
    .stay-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 700px) {
    .web-hero {
        min-height: 1080px;
        background-position: 58% center;
    }

    .web-hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(5, 22, 45, 0.83),
            rgba(5, 22, 45, 0.46)
        );
    }

    .web-hero-content {
        min-height: 505px;
        align-items: flex-end;
        padding: 120px 0 80px;
    }

    .web-hero h1 {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .web-search-position {
        bottom: -15px;
    }

    .booking-search {
        padding: 21px 17px;
        border-radius: 18px;
    }

    .booking-search-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .booking-location-row,
    .booking-date-row {
        grid-template-columns: 1fr;
    }

    .freedom-section {
        padding-top: 90px;
    }

    .web-section {
        padding: 78px 0;
    }

    .benefit-grid-three,
    .ride-benefits {
        grid-template-columns: 1fr;
    }

    .stay-gallery {
        min-height: 390px;
    }

    .stay-image-main {
        width: 92%;
        height: 350px;
    }

    .stay-image-secondary {
        width: 49%;
        height: 190px;
    }

    .faq-preview-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
