/* -----------------------------------------------------------------------------
 * Quote Hero -- home page hero (Home comp)
 *
 * Two equal halves edge to edge: copy + form on near-black, photo on the right.
 * The photo and promo drop out below 768px, as in the comp.
 * -------------------------------------------------------------------------- */
.quotehero-block {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--secondary);
    overflow: hidden;
}

.quotehero-block.has-image {
    grid-template-columns: 1fr 1fr;
}

.quotehero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 64px;
}

/* Start the copy on the site container's edge (in line with the header logo) rather
 * than 64px off the viewport edge. Padding % is the copy column's width, so
 * 100% - container/2 lands on the container's inner edge (its 24px gutter included). */
.quotehero-block.has-image .quotehero-copy {
    padding-left: max(64px, calc(100% - var(--container-width) / 2));
}

.quotehero-block:not(.has-image) .quotehero-copy-inner {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.quotehero-copy-inner {
    max-width: 560px;
}

.quotehero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.quotehero-rating > span:not(.ip-stars) {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted-dark);
}

.quotehero-heading {
    margin-bottom: 12px;
}

.quotehero-block .quotehero-sub {
    max-width: 440px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.6;
    color: #9a9a9a;
}

.quotehero-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 22px 22px;
    margin-bottom: 18px;
}

.quotehero-form-heading {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.quotehero-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.quotehero-trust span {
    font-size: 12px;
    color: #8a8a8a;
}

.quotehero-media {
    position: relative;
    min-height: 560px;
}

.quotehero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.quotehero-promo {
    position: absolute;
    top: 50%;
    right: 32px;
    width: 300px;
    height: 300px;
    transform: translateY(-50%);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}

.quotehero-promo-burst {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.quotehero-promo-text {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--secondary);
    text-align: center;
}

.quotehero-promo-line {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

.quotehero-promo-amount {
    margin: 4px 0;
    font-family: var(--font1);
    font-size: 62px;
    font-weight: 700;
    line-height: 1;
}

.quotehero-promo-suffix {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 0.3em;
    line-height: 1;
    text-transform: uppercase;
    margin-right: -0.3em;
}

@media (max-width: 1199px) {
    .quotehero-copy,
    .quotehero-block.has-image .quotehero-copy {
        padding: 56px 40px;
    }

    .quotehero-promo {
        width: 230px;
        height: 230px;
        right: 20px;
    }

    .quotehero-promo-line {
        font-size: 16px;
    }

    .quotehero-promo-amount {
        font-size: 46px;
    }

    .quotehero-promo-suffix {
        font-size: 27px;
    }
}

@media (max-width: 767px) {
    .quotehero-block.has-image {
        grid-template-columns: 1fr;
    }

    .quotehero-copy,
    .quotehero-block.has-image .quotehero-copy {
        padding: 48px 24px;
    }

    .quotehero-media {
        display: none;
    }
}
