/* ==========================================================================
   Homepage (web/home.blade.php). Loaded by that page only; built from the
   design tokens.
   ========================================================================== */

/* Hero: sits under the fixed site header (130px on wide screens, 84px on a
   phone), like the slider it replaced. */
.home-hero {
    position: relative;
    padding: calc(130px + var(--pi-space-16)) 0 var(--pi-space-16);
    color: var(--pi-white);
    background:
        linear-gradient(90deg, rgba(28, 25, 23, .92) 0%, rgba(28, 25, 23, .78) 45%, rgba(28, 25, 23, .2) 100%),
        url('../images/banners/Car_insurance.jpg') right center / cover no-repeat,
        var(--pi-dark);
}

.home-hero__text { max-width: 640px; }

.home-hero__eyebrow {
    margin: 0 0 var(--pi-space-3);
    font-size: var(--pi-fs-sm);
    font-weight: var(--pi-weight-medium);
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .8);
}

.home-hero__title {
    margin: 0;
    color: var(--pi-white);
    font-family: var(--pi-font-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.12;
}

.home-hero__title span { display: block; color: #ffb4a8; }

.home-hero__lead {
    margin: var(--pi-space-4) 0 var(--pi-space-6);
    font-size: var(--pi-fs-lg);
    color: rgba(255, 255, 255, .88);
    max-width: 34rem;
}

.home-hero__products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--pi-space-3);
}

.home-hero__product {
    display: flex;
    align-items: center;
    gap: var(--pi-space-3);
    padding: var(--pi-space-4);
    border-radius: var(--pi-radius-md);
    background: var(--pi-white);
    color: var(--pi-ink);
    box-shadow: var(--pi-shadow-md);
    transition: transform .15s, box-shadow .15s;
}

.home-hero__product:hover,
.home-hero__product:focus-visible {
    color: var(--pi-ink);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.home-hero__product i {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pi-red);
    color: var(--pi-white);
    font-size: 1.1rem;
}

.home-hero__product strong { display: block; font-size: var(--pi-fs-base); }
.home-hero__product small { display: block; color: var(--pi-muted); font-size: var(--pi-fs-xs); }

.home-hero__more {
    display: flex;
    flex-wrap: wrap;
    gap: var(--pi-space-2) var(--pi-space-6);
    margin-top: var(--pi-space-5);
}

.home-hero__more a,
.home-hero__more button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--pi-white);
    font: inherit;
    font-weight: var(--pi-weight-medium);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.home-hero__more i { margin-right: 6px; }

@media (max-width: 767.98px) {
    .home-hero {
        padding: calc(84px + var(--pi-space-8)) 0 var(--pi-space-8);
        background:
            linear-gradient(180deg, rgba(28, 25, 23, .85), rgba(28, 25, 23, .92)),
            url('../images/banners/Car_insurance.jpg') 70% center / cover no-repeat,
            var(--pi-dark);
    }

    .home-hero__products { grid-template-columns: minmax(0, 1fr); }
}

/* With the announcement bar showing, the hero makes room for it. */
body:has(#noticeBar:not([hidden])) .home-hero { padding-top: calc(130px + 46px + var(--pi-space-12)); }

@media (max-width: 767.98px) {
    body:has(#noticeBar:not([hidden])) .home-hero { padding-top: calc(84px + 46px + var(--pi-space-6)); }
}

/* Trust strip */
.home-trust {
    background: var(--pi-surface);
    border-bottom: 1px solid var(--pi-line);
    padding: var(--pi-space-6) 0;
}

.home-trust__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--pi-space-4);
    margin: 0 0 var(--pi-space-4);
    padding: 0;
    list-style: none;
}

.home-trust__list li { display: flex; flex-direction: column; }
.home-trust__list strong { font-size: var(--pi-fs-xl); color: var(--pi-red); }
.home-trust__list span { font-size: var(--pi-fs-sm); color: var(--pi-muted); }

@media (max-width: 991.98px) {
    .home-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Sections */
.home-section { padding: var(--pi-space-12) 0; }
.home-section--tint { background: var(--pi-canvas); }

.home-section__title {
    margin: 0 0 var(--pi-space-6);
    font-family: var(--pi-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--pi-ink);
}

.home-section__subtitle {
    margin: 0 0 var(--pi-space-4);
    font-family: var(--pi-font-sans);
    font-size: var(--pi-fs-lg);
    font-weight: var(--pi-weight-bold);
}

.home-section__lead { color: var(--pi-muted); max-width: 46rem; margin: calc(-1 * var(--pi-space-3)) 0 var(--pi-space-5); }

.home-link { display: inline-block; margin-top: var(--pi-space-3); font-weight: var(--pi-weight-medium); color: var(--pi-red); }
.home-link::after { content: " →"; }

/* How it works */
.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--pi-space-6);
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-steps li { display: flex; flex-direction: column; gap: var(--pi-space-1); }
.home-steps strong { font-size: var(--pi-fs-lg); color: var(--pi-ink); }
.home-steps span:not(.home-steps__num) { color: var(--pi-muted); }

.home-steps__num {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: var(--pi-space-2);
    border-radius: 50%;
    background: var(--pi-red-soft);
    color: var(--pi-red);
    font-weight: var(--pi-weight-bold);
}

@media (max-width: 767.98px) {
    .home-steps { grid-template-columns: minmax(0, 1fr); gap: var(--pi-space-4); }
}

.home-from-basis { font-size: var(--pi-fs-xs); color: var(--pi-muted); }

/* Claims */
.home-claim-steps {
    margin: 0 0 var(--pi-space-5);
    padding-left: var(--pi-space-5);
    list-style: decimal;
    color: var(--pi-text);
}

.home-claim-steps li { margin-bottom: var(--pi-space-2); }

.home-claims {
    display: grid;
    gap: var(--pi-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-claims__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 var(--pi-space-4);
    align-items: baseline;
    padding: var(--pi-space-4);
    border: 1px solid var(--pi-line);
    border-left: 4px solid var(--pi-status-active-fg);
    border-radius: var(--pi-radius-md);
    background: var(--pi-surface);
}

.home-claims__item strong { grid-row: span 2; font-size: var(--pi-fs-xl); color: var(--pi-ink); }
.home-claims__item small { color: var(--pi-muted); }

/* Other cover */
.home-other {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--pi-space-3);
}

.home-other__item {
    display: flex;
    align-items: center;
    gap: var(--pi-space-3);
    padding: var(--pi-space-4);
    border: 1px solid var(--pi-line);
    border-radius: var(--pi-radius-md);
    background: var(--pi-surface);
    color: var(--pi-ink);
    font-weight: var(--pi-weight-medium);
}

.home-other__item i { color: var(--pi-red); font-size: 1.2rem; width: 22px; text-align: center; }
.home-other__item:hover { border-color: var(--pi-red); color: var(--pi-red); }

@media (max-width: 767.98px) {
    .home-other { grid-template-columns: minmax(0, 1fr); }
}

/* News and notices */
.home-list { margin: 0; padding: 0; list-style: none; }

.home-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--pi-space-4);
    padding: var(--pi-space-3) 0;
    border-bottom: 1px solid var(--pi-line);
}

.home-list a { color: var(--pi-ink); font-weight: var(--pi-weight-medium); }
.home-list a:hover { color: var(--pi-red); }
.home-list time { flex: none; color: var(--pi-muted); font-size: var(--pi-fs-sm); }
