/* =========================================================
   GOODYEAR QUICK WRENCH
   HOMEPAGE HERO
   ========================================================= */

.gqw-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #041531;
    color: #fff;
    font-family: "Poppins", sans-serif;
}

.gqw-hero__media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -2;
    height: 300px;
}

.gqw-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.gqw-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: 360px;
    background: linear-gradient(
        180deg,
        rgba(4, 21, 49, 0) 0%,
        rgba(4, 21, 49, 0.18) 22%,
        rgba(4, 21, 49, 0.62) 48%,
        rgba(4, 21, 49, 0.94) 74%,
        #041531 100%
    );
}

.gqw-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 110px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.gqw-hero__content {
    max-width: 620px;
}

.gqw-hero__title {
    margin: 0;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.gqw-hero__rule {
    display: block;
    width: 132px;
    height: 3px;
    margin: 12px 0 18px;
    background: #ffdd00;
    border-radius: 2px;
}

.gqw-benefits {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gqw-benefits__item {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
    color: #fff;
    line-height: 1.2;
}

.gqw-benefits__item:first-child {
    padding-left: 0;
}

.gqw-benefits__item + .gqw-benefits__item {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.gqw-benefits__icon {
    flex: 0 0 auto;
    display: inline-flex;
    color: #ffdd00;
    font-size: 22px;
    line-height: 1;
}

.gqw-benefits__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.gqw-benefits__label {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.1px;
}

.gqw-hero__aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 430px;
}

.gqw-booking {
    padding: 16px;
    background: #ffdd00;
    color: #111;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.gqw-booking__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gqw-booking__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #111;
    line-height: 1;
}

.gqw-booking__icon svg {
    display: block;
    width: 30px;
    height: 30px;
}

.gqw-booking__copy {
    min-width: 0;
}

.gqw-booking__title {
    margin: 0;
    color: #111;
    font-family: "Poppins", sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.2px;
}

.gqw-booking__subtitle {
    margin: 4px 0 0;
    color: #222;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 1.3;
}

.gqw-booking__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    background: #062b5f;
    color: #fff;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.gqw-booking__button:hover,
.gqw-booking__button:focus {
    background: #041f47;
    color: #fff;
    text-decoration: none;
}

.gqw-booking__button svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

.gqw-reviews {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px;
    color: #fff;
    text-decoration: none;
}

.gqw-reviews:hover,
.gqw-reviews:focus {
    color: #fff;
    text-decoration: none;
}

.gqw-reviews__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.gqw-reviews__logo {
    display: block;
    width: 30px;
    height: 30px;
}

.gqw-reviews__name {
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.15;
}

.gqw-reviews__divider {
    width: 1px;
    align-self: stretch;
    min-height: 38px;
    background: rgba(255, 255, 255, 0.28);
}

.gqw-reviews__score {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 1px;
}

.gqw-reviews__rating {
    grid-row: 1 / 3;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
}

.gqw-reviews__stars {
    position: relative;
    display: inline-block;
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}

.gqw-stars__base {
    color: rgba(255, 255, 255, 0.35);
}

.gqw-stars__fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 92%;
    color: #ffdd00;
    white-space: nowrap;
}

.gqw-reviews__count {
    grid-column: 2;
    grid-row: 2;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    opacity: 0.95;
}

/* Trust indicators */

.gqw-trust {
    background: #fff;
    border-top: 1px solid #eee;
}

.gqw-trust__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gqw-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 0 6px;
    text-align: center;
}

.gqw-trust__item + .gqw-trust__item {
    border-left: 1px solid #e3e3e3;
}

.gqw-trust__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #062b5f;
    line-height: 1;
}

.gqw-trust__icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

.gqw-trust__label {
    color: #222;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

/* The legacy page content begins after the hero */

.gqw-home__content {
    position: relative;
    background: #fff;
}

/* =========================================================
   TABLET
   ========================================================= */

@media only screen and (min-width: 768px) {
    .gqw-hero__media {
        height: 100%;
    }

    .gqw-hero__overlay {
        height: 100%;
        background:
            linear-gradient(
                90deg,
                rgba(4, 21, 49, 0.96) 0%,
                rgba(4, 21, 49, 0.84) 48%,
                rgba(4, 21, 49, 0.42) 100%
            ),
            linear-gradient(
                180deg,
                rgba(4, 21, 49, 0.1) 0%,
                rgba(4, 21, 49, 0.55) 100%
            );
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .gqw-hero__inner {
        max-width: 720px;
        min-height: 520px;
        padding: 48px 24px 40px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 32px;
        align-items: end;
    }

    .gqw-hero__title {
        font-size: 42px;
        line-height: 1.1;
    }

    .gqw-hero__rule {
        width: 150px;
        margin: 14px 0 22px;
    }

    .gqw-benefits__item {
        gap: 8px;
        padding: 0 12px;
    }

    .gqw-benefits__icon svg {
        width: 24px;
        height: 24px;
    }

    .gqw-benefits__label {
        font-size: 12px;
    }

    .gqw-hero__aside {
        max-width: none;
    }

    .gqw-booking {
        padding: 18px;
    }

    .gqw-booking__title {
        font-size: 22px;
    }

    .gqw-booking__button {
        padding: 13px 16px;
        font-size: 15px;
    }

    .gqw-trust__inner {
        max-width: 720px;
        padding: 24px 20px;
    }

    .gqw-trust__icon svg {
        width: 30px;
        height: 30px;
    }

    .gqw-trust__label {
        font-size: 13px;
    }
}

/* =========================================================
   DESKTOP
   ========================================================= */

@media only screen and (min-width: 992px) {
    .gqw-hero__inner {
        max-width: 1180px;
        min-height: 560px;
        padding: 76px 24px 64px;
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) 400px;
        gap: 56px;
        align-items: end;
    }

    .gqw-hero__title {
        font-size: clamp(44px, 4.5vw, 58px);
        line-height: 1.08;
        letter-spacing: -1px;
    }

    .gqw-hero__rule {
        width: 180px;
        height: 4px;
        margin: 18px 0 26px;
    }

    .gqw-benefits {
        max-width: 620px;
    }

    .gqw-benefits__item {
        gap: 10px;
        padding: 0 18px;
    }

    .gqw-benefits__item:first-child {
        padding-left: 0;
    }

    .gqw-benefits__icon {
        font-size: 30px;
    }

    .gqw-benefits__label {
        font-size: 15px;
    }

    .gqw-hero__aside {
        gap: 22px;
        max-width: 400px;
    }

    .gqw-booking {
        padding: 24px;
        border-radius: 18px;
    }

    .gqw-booking__head {
        gap: 14px;
    }

    .gqw-booking__icon {
        width: 46px;
        height: 46px;
        font-size: 38px;
    }

    .gqw-booking__title {
        font-size: 28px;
    }

    .gqw-booking__subtitle {
        font-size: 16px;
    }

    .gqw-booking__button {
        margin-top: 18px;
        padding: 15px 20px;
        font-size: 16px;
    }

    .gqw-reviews__logo {
        width: 36px;
        height: 36px;
    }

    .gqw-reviews__name {
        font-size: 16px;
    }

    .gqw-reviews__rating {
        font-size: 32px;
    }

    .gqw-reviews__stars {
        font-size: 16px;
    }

    .gqw-reviews__count {
        font-size: 12px;
    }

    .gqw-trust__inner {
        padding: 30px 24px;
    }

    .gqw-trust__icon {
        font-size: 36px;
    }

    .gqw-trust__label {
        font-size: 15px;
    }
}
