/* =========================================================
   RICHWAYS AUTO PAGE
   Page-scoped stylesheet. Global header/footer remain in insurance.css.
   ========================================================= */

.auto-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 590px;
    background: var(--rw-navy);
    overflow: hidden;
     color: #FE5C03;

}

.auto-page-hero__copy {
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 10% 10%, rgba(36,84,125,.34), transparent 38%),
        linear-gradient(135deg, #071f3d 0%, #0a2a50 100%);
}

.auto-page-hero__inner {
    width: min(590px, 86%);
    margin-left: auto;
    margin-right: 9%;
    padding: 72px 0;
}

.auto-page-kicker {
    margin: 0 0 10px;
    color: #FE5C03;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auto-page-hero .auto-page-kicker { color: #FE5C03; }

.auto-page-hero h1 {
    margin: 0 0 22px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5vw, 5.15rem);
    line-height: 1.01;
    letter-spacing: -.025em;
}

.auto-page-lead {
    max-width: 600px;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: 1.13rem;
    line-height: 1.75;
}

.auto-page-hero__media {
    min-height: 590px;
    overflow: hidden;
    background: #dbe3eb;
}

.auto-page-hero__media img {
    width: 100%;
    height: 100%;
    min-height: 590px;
    display: block;
    object-fit: cover;
    object-position: 58% center;
}

.auto-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.auto-page-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 800;
    text-decoration: none;
}

.auto-page-btn--primary {
    background: #FE5C03;
    border-color: #FE5C03;
    color: #fff;
}

.auto-page-btn--primary:hover {
    background: #D94A00;
    border-color: #D94A00;
    color: #fff;
}

.auto-page-btn--outline {
    border-color: rgba(255,255,255,.7);
    color: #fff;
}

.auto-page-btn--outline:hover {
    background: #fff;
    color: var(--rw-navy);
}

.auto-page-disclosure {
    margin: 22px 0 0;
    color: rgba(255,255,255,.65);
    font-size: .79rem;
    line-height: 1.5;
}

.auto-trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--rw-border);
    box-shadow: 0 10px 28px rgba(7,31,61,.05);
}

.auto-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
}

.auto-trust-grid article {
    min-height: 145px;
    padding: 30px 26px;
    border-right: 1px solid var(--rw-border);
}

.auto-trust-grid article:last-child { border-right: 0; }
.auto-trust-grid span, .auto-why-grid span, .auto-process-grid span, .auto-ma-number {
    display: block;
    margin-bottom: 7px;
    color: #FE5C03;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
}
.auto-trust-grid strong { display: block; color: var(--rw-navy); font-size: 1rem; }
.auto-trust-grid p { margin: 5px 0 0; color: var(--rw-muted); font-size: .9rem; line-height: 1.55; }

.auto-intro { padding: 90px 0 72px; text-align: center; }
.auto-narrow { max-width: 820px; }
.auto-intro h2, .auto-section-heading h2, .auto-ma h2, .auto-final h2 {
    margin: 6px 0 16px;
    font-size: clamp(2.2rem,4vw,3.5rem);
    line-height: 1.08;
}
.auto-intro p:last-child, .auto-section-heading > p:last-child {
    color: var(--rw-muted);
    font-size: 1.03rem;
}

.auto-feature { padding: 74px 0; background: #fff; }
.auto-feature--light { background: var(--rw-light); }
.auto-feature-grid {
    display: grid;
    grid-template-columns: minmax(0,1.08fr) minmax(380px,.92fr);
    gap: 70px;
    align-items: center;
}
.auto-feature-grid--reverse { grid-template-columns: minmax(380px,.92fr) minmax(0,1.08fr); }
.auto-feature-grid--reverse .auto-feature-media { order: 2; }
.auto-feature-grid--reverse .auto-feature-copy { order: 1; }
.auto-feature-media {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--rw-shadow);
}
.auto-feature-media img {
    width: 100%;
    height: 520px;
    display: block;
    object-fit: cover;
}
.auto-feature-copy h2 { margin: 5px 0 18px; font-size: clamp(2rem,3.3vw,3.15rem); line-height: 1.08; }
.auto-feature-copy > p:not(.auto-page-kicker) { color: var(--rw-muted); font-size: 1rem; }
.auto-check-list { margin: 24px 0; padding: 0; list-style: none; }
.auto-check-list li { position: relative; padding: 7px 0 7px 28px; }
.auto-check-list li::before { content: "✓"; position: absolute; left: 0; color: #FE5C03; font-weight: 900; }
.auto-text-link { color: #FE5C03; font-weight: 800; text-decoration: none; }
.auto-text-link:hover { color: #D94A00; }

.auto-specialty { padding: 96px 0; background: #f5f7fa; }
.auto-section-heading { max-width: 790px; margin: 0 auto 46px; text-align: center; }
.auto-specialty-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.auto-specialty-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--rw-border);
    border-radius: 14px;
    box-shadow: var(--rw-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.auto-specialty-card:hover { transform: translateY(-4px); box-shadow: var(--rw-shadow); }
.auto-specialty-card img { width: 100%; height: 245px; display: block; object-fit: cover; }
.auto-specialty-card div { padding: 25px 26px 28px; }
.auto-specialty-card span { color: #FE5C03; font-size: .69rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.auto-specialty-card h3 { margin: 7px 0 10px; font-size: 1.45rem; }
.auto-specialty-card p { margin: 0; color: var(--rw-muted); font-size: .93rem; }

.auto-ma { padding: 96px 0; background: var(--rw-navy); color: #fff; }
.auto-ma-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.auto-ma h2 { color: #fff; }
.auto-ma-intro > p:last-child { color: rgba(255,255,255,.72); }
.auto-ma-panel { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; overflow: hidden; }
.auto-ma-panel > div { padding: 38px; background: rgba(255,255,255,.055); }
.auto-ma-panel > div + div { border-left: 1px solid rgba(255,255,255,.18); }
.auto-ma-panel h3 { color: #fff; margin: 5px 0 10px; }
.auto-ma-panel p { margin: 0; color: rgba(255,255,255,.7); }

.auto-why, .auto-process { padding: 94px 0; }
.auto-why { background: #fff; }
.auto-process { background: var(--rw-light); }
.auto-why-grid, .auto-process-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.auto-why-grid article, .auto-process-grid article {
    padding: 30px;
    border: 1px solid var(--rw-border);
    border-radius: 12px;
    background: #fff;
}
.auto-why-grid h3, .auto-process-grid h3 { margin: 6px 0 9px; font-size: 1.25rem; }
.auto-why-grid p, .auto-process-grid p { margin: 0; color: var(--rw-muted); font-size: .92rem; }

.auto-final { padding: 76px 0 34px; background: #061d38; color: #fff; }
.auto-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.auto-final h2 { color: #fff; margin-bottom: 10px; }
.auto-final-inner > div:first-child > p:last-child { color: rgba(255,255,255,.72); }
.auto-page-disclosure--final { padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 1100px) {
    .auto-page-hero { grid-template-columns: .95fr 1.05fr; }
    .auto-feature-grid, .auto-feature-grid--reverse { gap: 42px; }
}

@media (max-width: 991.98px) {
    .auto-page-hero { grid-template-columns: 1fr; }
    .auto-page-hero__inner { width: min(700px,92%); margin: 0 auto; padding: 64px 0; }
    .auto-page-hero__media, .auto-page-hero__media img { min-height: 430px; height: 430px; }
    .auto-trust-grid { grid-template-columns: repeat(2,1fr); }
    .auto-trust-grid article:nth-child(2) { border-right: 0; }
    .auto-trust-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--rw-border); }
    .auto-feature-grid, .auto-feature-grid--reverse, .auto-ma-grid { grid-template-columns: 1fr; }
    .auto-feature-grid--reverse .auto-feature-media, .auto-feature-grid--reverse .auto-feature-copy { order: initial; }
    .auto-feature-media img { height: 460px; }
    .auto-specialty-grid { grid-template-columns: repeat(2,1fr); }
    .auto-why-grid, .auto-process-grid { grid-template-columns: repeat(2,1fr); }
    .auto-final-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
    .auto-page-hero h1 { font-size: clamp(2.55rem,12vw,3.7rem); }
    .auto-page-actions { display: grid; grid-template-columns: 1fr; }
    .auto-page-btn { width: 100%; }
    .auto-trust-grid, .auto-specialty-grid, .auto-ma-panel, .auto-why-grid, .auto-process-grid { grid-template-columns: 1fr; }
    .auto-trust-grid article { border-right: 0; border-bottom: 1px solid var(--rw-border); }
    .auto-trust-grid article:last-child { border-bottom: 0; }
    .auto-feature { padding: 55px 0; }
    .auto-feature-media img { height: 330px; }
    .auto-specialty-card img { height: 220px; }
    .auto-ma-panel > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
}

/* =========================================================
   RICHWAYS AUTO 2026 — ANGLED HERO + COVERAGE CAROUSEL
   MIT-inspired visual geometry, adapted to Richways branding.
   Keep this block LAST.
   ========================================================= */

.auto-page-hero.auto-page-hero--angled {
    position: relative;
    display: block;
    min-height: 610px;
    background: #071f3d;
    overflow: hidden;
    isolation: isolate;
}

.auto-page-hero--angled .auto-page-hero__media {
    position: absolute;
    inset: 0;
    min-height: 610px;
    background: #dbe3eb;
    z-index: 0;
}

.auto-page-hero--angled .auto-page-hero__media img {
    width: 100%;
    height: 100%;
    min-height: 610px;
    object-fit: cover;
    object-position: 68% center;
    display: block;
}

.auto-page-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7,31,61,.22) 0%, rgba(7,31,61,.06) 44%, rgba(7,31,61,0) 66%);
}

.auto-page-hero--angled .auto-page-hero__copy {
    position: relative;
    z-index: 2;
    width: min(52%, 790px);
    min-height: 610px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 12% 12%, rgba(36,84,125,.30), transparent 38%),
        linear-gradient(135deg, #071f3d 0%, #0a2a50 100%);
    clip-path: polygon(0 0, 87% 0, 100% 50%, 87% 100%, 0 100%);
    filter: drop-shadow(18px 0 30px rgba(0,0,0,.18));
}

.auto-page-hero--angled .auto-page-hero__inner {
    width: min(590px, 80%);
    margin-left: max(44px, calc((100vw - 1180px) / 2));
    margin-right: 110px;
    padding: 74px 0;
}

.auto-page-hero--angled h1 {
    max-width: 620px;
    font-size: clamp(3.25rem, 4.75vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.03em;
    text-wrap: balance;
}

.auto-page-accent-line {
    width: 48px;
    height: 3px;
    margin: -7px 0 23px;
    background: #FE5C03;
}

.auto-page-hero--angled .auto-page-lead {
    max-width: 540px;
    font-size: 1.08rem;
    line-height: 1.65;
}

.auto-page-hero--angled .auto-page-disclosure { max-width: 500px; }

.auto-coverage-showcase {
    padding: 78px 0 88px;
    background: #fff;
}

.auto-coverage-showcase__top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 30px;
}

.auto-coverage-showcase__top h2 {
    margin: 4px 0 0;
    color: var(--rw-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.15rem,3.7vw,3.45rem);
    line-height: 1.05;
}

.auto-carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }

.auto-carousel-btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #bfc9d6;
    border-radius: 50%;
    background: #fff;
    color: var(--rw-navy);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease;
}

.auto-carousel-btn:hover {
    border-color: #FE5C03;
    color: #FE5C03;
    transform: translateY(-1px);
}

.auto-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(255px, 1fr);
    gap: 22px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    padding: 4px 2px 18px;
}

.auto-carousel::-webkit-scrollbar { display: none; }

.auto-carousel-card {
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--rw-border);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(7,31,61,.08);
}

.auto-carousel-card img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
}

.auto-carousel-card__body { padding: 23px 23px 25px; }

.auto-carousel-card__body span {
    color: #FE5C03;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auto-carousel-card__body h3 {
    margin: 8px 0 10px;
    color: var(--rw-navy);
    font-size: 1.35rem;
    line-height: 1.12;
}

.auto-carousel-card__body p {
    min-height: 72px;
    margin: 0 0 17px;
    color: var(--rw-muted);
    font-size: .92rem;
    line-height: 1.55;
}

.auto-carousel-card__body a {
    color: #FE5C03;
    font-weight: 800;
    text-decoration: none;
}

.auto-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.auto-carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd2da;
}

.auto-carousel-dots .is-active { background: #FE5C03; }

@media (min-width: 1180px) {
    .auto-carousel { grid-auto-columns: calc((100% - 66px) / 4); }
}

@media (max-width: 991.98px) {
    .auto-page-hero.auto-page-hero--angled {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
    }

    .auto-page-hero--angled .auto-page-hero__media {
        position: relative;
        inset: auto;
        min-height: 430px;
        order: 2;
    }

    .auto-page-hero--angled .auto-page-hero__media img {
        min-height: 430px;
        height: 430px;
        object-position: center;
    }

    .auto-page-hero--angled .auto-page-hero__copy {
        width: 100%;
        min-height: auto;
        order: 1;
        clip-path: none;
        filter: none;
    }

    .auto-page-hero--angled .auto-page-hero__inner {
        width: min(700px,92%);
        margin: 0 auto;
        padding: 60px 0 64px;
    }

    .auto-coverage-showcase__top { align-items: center; }
    .auto-carousel { grid-auto-columns: minmax(280px, 44%); }
}

@media (max-width: 620px) {
    .auto-page-hero--angled h1 {
        font-size: clamp(2.6rem,12vw,3.85rem);
    }

    .auto-coverage-showcase { padding: 62px 0 72px; }

    .auto-coverage-showcase__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .auto-carousel { grid-auto-columns: 88%; }
    .auto-carousel-card img { height: 205px; }
}

/* =========================================================
   RICHWAYS AUTO — HERO IMAGE COMPOSITION REFINEMENT
   Shows more roadway while preserving the angled panel.
   Keep this block LAST.
   ========================================================= */

@media (min-width: 992px) {
    .auto-page-hero--angled .auto-page-hero__media img {
        object-position: 62% center;
    }

    .auto-page-hero--angled .auto-page-hero__copy {
        width: min(50%, 760px);
    }
}

/* FORCE AUTO HERO KICKER TO RICHWAYS ORANGE */
.auto-page-hero--angled .auto-page-kicker {
    color: #FE5C03 !important;
}
