/* ==========================================================================
   SURECARS PROMO BANNER (home.html)
   Self-contained: every rule is prefixed .shc-promo.
   The "SureCars" title is the logo lockup: inline SVG icon + Roboto 500 wordmark.
   ========================================================================== */
.shc-promo { padding: 56px 20px; }
.shc-promo__box {
    position: relative; overflow: hidden; isolation: isolate;
    max-width: 1200px; margin: 0 auto;
    min-height: 220px; aspect-ratio: 2172 / 368;     /* the photo's own shape */
    display: grid; align-items: center;
    /* car | text (its own width) | gap | line | equal gap | button  -> line sits centred between text and button */
    grid-template-columns: 45% minmax(0, auto) minmax(16px, 1fr) 1px minmax(16px, 1fr) auto;
    grid-template-areas: "car copy . rule . cta";
    border-radius: 24px; background: #0A2470;
    box-shadow: 0 26px 50px -22px rgba(8, 30, 100, .55);
    color: #fff; font-family: "Roboto", Arial, sans-serif;
}
.shc-promo__img {
    position: absolute; inset: 0; z-index: -1;
    width: 100%; height: 100%;
    object-fit: cover; object-position: left center;   /* car always visible */
    transform: scale(1.012);                            /* hides the photo's own rounded corners */
}
/* The photo's skyline runs to ~53% across; the reference has a clean navy
   field behind the text. Fade the skyline out right after the car, in the
   photo's own navy (#012D6B .. #00255D), then let the gold waves show again. */
.shc-promo__box::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    /* Long, eased ramp (many small steps) so the skyline dims gradually into
       the navy instead of meeting it in a visible band. */
    background: linear-gradient(90deg,
        rgba(1, 45, 107, 0)    38%,
        rgba(1, 45, 107, .06)  41%,
        rgba(1, 44, 105, .18)  44%,
        rgba(1, 43, 104, .36)  47%,
        rgba(1, 42, 102, .56)  50%,
        rgba(0, 41, 101, .73)  53%,
        rgba(0, 40, 100, .85)  56%,
        rgba(0, 40, 100, .91)  59%,
        rgba(0, 39, 98, .91)   65%,
        rgba(0, 38, 96, .78)   70%,
        rgba(0, 38, 95, .52)   75%,
        rgba(0, 37, 93, .24)   80%,
        rgba(0, 37, 93, 0)     86%);
}
/* Soft shadow keeps the text crisp where it overlaps the dimmed skyline */
.shc-promo__copy { text-shadow: 0 1px 10px rgba(0, 20, 60, .55); }

/* Copy column */
.shc-promo__copy { grid-area: copy; justify-self: start; padding: 20px 0; text-align: left; }   /* left-aligned text */
.shc-promo__eyebrow {
    display: flex; align-items: center; justify-content: flex-start; gap: 14px;
    margin: 0 0 4px; font-size: clamp(9px, .855vw, 10.35px); font-weight: 400;   /* -10% */
    letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: rgba(255, 255, 255, .9);
}
.shc-promo__eyebrow::before, .shc-promo__eyebrow::after { content: none; }   /* no lines beside the label */
/* SureCars logo lockup: icon (gold tile, navy S, matches the gold button) + wordmark,
   same proportions and medium weight as the SureCars logo. */
.shc-promo__title {
    display: flex; align-items: center; gap: .3em;
    margin: 0; font-family: "Roboto", Arial, sans-serif;
    font-size: clamp(29.16px, 3.888vw, 46.98px); font-weight: 500; line-height: 1.05;   /* -10% twice */ letter-spacing: -.02em;
    color: #fff;
}
.shc-promo__mark { flex: none; width: 1.05em; height: 1.05em; filter: drop-shadow(0 2px 8px rgba(0, 20, 60, .35)); }
.shc-promo__text {
    margin: 12px 0 0; max-width: 27em;                 /* gap under the logo; two lines, as in the reference */
    font-size: clamp(11.7px, 1.125vw, 13.95px); line-height: 1.45; color: #fff;   /* -10% */
}
.shc-promo__text strong { font-weight: 500; color: #F2C35C; }

/* Thin gold divider */
.shc-promo__rule {
    grid-area: rule; align-self: center; width: 1px; height: 52%;
    background: linear-gradient(180deg, transparent, #E2B04F 20%, #E2B04F 80%, transparent);
    transform: translateX(-25px);   /* nudged 25px left of centre */
}

/* Solid gold pill, navy text, no arrow. Lifts and brightens on hover. */
.shc-promo__cta { grid-area: cta; padding: 0 clamp(18px, 2.4vw, 30px) 0 0; }
.shc-promo__btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 32px; border-radius: 999px;
    border: 0; background: #E2B04F;
    color: #0B1A3F; text-decoration: none; white-space: nowrap;
    font-size: clamp(12.6px, 1.26vw, 14.4px); font-weight: 700; letter-spacing: .06em;   /* -10% */ text-transform: uppercase;
    box-shadow: 0 8px 22px -8px rgba(226, 176, 79, .6);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.shc-promo__btn:hover { transform: translateY(-2px); background: #F0C565; box-shadow: 0 12px 26px -8px rgba(226, 176, 79, .75); }
.shc-promo__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.shc-promo__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Desktop: text block nudged 3% (of the banner width) to the right. */
@media (min-width: 992px) {
    .shc-promo__box { container-type: inline-size; }
    .shc-promo__copy { margin-left: 3cqw; }
}

/* Tablet: button moves under the text, divider hidden */
@media (max-width: 991px) {
    .shc-promo__box {
        aspect-ratio: auto; min-height: 280px;
        grid-template-columns: 46% minmax(0, 1fr);
        grid-template-areas: "car copy" "car cta";
        align-content: center; row-gap: 16px; padding: 28px 0;
    }
    .shc-promo__img { object-position: 8% center; }
    .shc-promo__copy { padding: 0 24px 0 0; align-self: end; }
    .shc-promo__cta { justify-self: start; }
    .shc-promo__rule { display: none; }
    .shc-promo__cta { padding: 0; align-self: start; }
}
/* Phone: car photo on top, then text and button, centred */
@media (max-width: 640px) {
    .shc-promo { padding: 40px 16px; }
    .shc-promo__box {
        min-height: 0; padding: 0 0 28px; border-radius: 20px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "car" "copy" "cta";
        background: linear-gradient(180deg, #0A2470 0%, #071A55 100%);
        text-align: center;
    }
    .shc-promo__box::after { display: none; }   /* photo sits above the text here, no fade needed */
    .shc-promo__img { position: static; grid-area: car; height: 180px; object-position: 14% center; transform: none; }
    .shc-promo__copy { justify-self: stretch; padding: 22px 22px 0; }
    .shc-promo__title { justify-content: center; }
    .shc-promo__eyebrow { justify-content: center; gap: 10px; letter-spacing: .16em; }
    .shc-promo__cta { justify-self: center; padding: 0 22px; }
    .shc-promo__btn { min-height: 48px; padding: 0 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .shc-promo__btn { transition: none; }
    .shc-promo__btn:hover { transform: none; }
}
