/* Home / start page (/vehicle-search): video hero with the two shopping paths,
   then "Browse by type" and the Ford Custom Garage promo. Same language as
   engage-chrome.css: Manrope, #e4e8ee borders, pill buttons. */

body { background: #f6f7f9; }
/* main.css locks html/body (overflow:hidden; height:100%) for the builder, which
   scrolls inside its own panels. The home page scrolls as a normal document. */
html,
body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}
.eg-home-page .large-container { max-width: none; }

.eg-home {
    font-family: 'Manrope', sans-serif;
    color: #1a1f29;
    background: #f6f7f9;
    min-height: 100vh;
    overflow-x: hidden;
}
.eg-home svg { flex: none; }

/* ---------- Hero ---------- */
.eg-home-hero {
    position: relative;
    height: 560px;
    background: #0b1f3a;
    color: #fff;
    overflow: hidden;
}
.eg-home-hero.ford-bg {
    background: linear-gradient(160deg, #0a1e3d 0%, #0d65bf 60%, #1a7fd4 100%);
}
.eg-home-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.eg-home-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8,22,42,.88) 0%, rgba(8,22,42,.62) 38%, rgba(8,22,42,.08) 70%),
        linear-gradient(180deg, rgba(8,22,42,.55) 0%, rgba(8,22,42,0) 22%, rgba(8,22,42,0) 70%, rgba(8,22,42,.55) 100%);
}
.eg-home-hero.no-video .eg-home-shade { display: none; }

.eg-home-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 76px;
    padding: 0 40px;
}
.eg-home-dealer {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eg-home-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.eg-home-pill:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.eg-home-pill svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.eg-home-menu {
    padding: 0 16px 0 12px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.06);
    color: #fff;
}
.eg-home-menu:hover,
.eg-home-play:hover { background: rgba(255,255,255,.16); }
.eg-home-play {
    width: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.28);
    background: transparent;
    color: #fff;
}
.eg-home-play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
/* Sales login / Log out, next to Cart. The logout <form> stays out of the flex layout. */
.eg-staff-form { display: contents; }
.eg-home-staff {
    padding: 0 16px 0 12px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.06);
    color: #fff !important;
    text-decoration: none !important;
}
.eg-home-staff:hover { background: rgba(255,255,255,.16); }
.eg-home-play .i-play,
.eg-home-play.is-paused .i-pause { display: none; }
.eg-home-play.is-paused .i-play { display: block; }
.eg-home-cart {
    padding: 0 12px 0 14px;
    border: 0;
    background: #fff;
    color: #102b4e;
}
.eg-home-cart:hover { background: #eef2f7; }
.eg-home-cart svg { stroke-width: 1.9; }
/* main.css / responsive.css pin span.cart-count absolutely for the old header. */
.eg-home-cart span.cart-count {
    position: static;
    top: auto;
    right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--eg-accent);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
}

.eg-home-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 560px;
    padding: 56px 40px 0;
}
.eg-home-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #9fb6d3;
}
.eg-home-copy h1 {
    margin: 0;
    font-family: inherit;
    font-size: 60px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -1.4px;
    color: #fff;
}
.eg-home-copy p {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: #d4deea;
}

.eg-home-paths {
    position: absolute;
    left: 40px;
    bottom: 40px;
    display: flex;
    gap: 14px;
}
.eg-home-path {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 330px;
    min-height: 92px;
    padding: 0 20px;
    border-radius: 16px;
    background: #fff;
    color: #1a1f29 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    transition: transform .15s, box-shadow .15s;
}
.eg-home-path:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.3); }
.eg-home-path:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.eg-home-path-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
}
.eg-home-path-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.eg-home-path-icon.is-stock { background: #edf7f0; color: #1e6b36; }
.eg-home-path-icon.is-build { background: #e8f0f9; color: var(--eg-accent); }
.eg-home-path-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.eg-home-path-title { font-size: 17px; font-weight: 800; }
.eg-home-path-sub { font-size: 13px; color: #5a6472; }
.eg-home-path-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1e6b36;
}
.eg-home-path-live .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22a04b;
}
.eg-home-chev {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #5a6472;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Browse by type + promo ---------- */
.eg-home-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 40px 40px;
}
.eg-home-lower.has-promo { grid-template-columns: minmax(0, 1fr) 400px; }

.eg-home-types {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.eg-home-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.eg-home-head h2 {
    margin: 0;
    font-family: inherit;
    font-size: 22px;
    font-weight: 800;
    color: #1a1f29;
}
.eg-home-head span { font-size: 13px; color: #5a6472; }

.eg-home-type-grid {
    display: grid;
    grid-template-columns: repeat(var(--types, 4), minmax(0, 1fr));
    gap: 12px;
}
.eg-home-type {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px 14px;
    border: 1px solid #e4e8ee;
    border-radius: 14px;
    background: #fff;
    color: #1a1f29 !important;
    text-decoration: none !important;
    transition: border-color .15s, box-shadow .15s;
}
.eg-home-type:hover { border-color: #c9d1dc; box-shadow: 0 6px 18px rgba(16,43,78,.08); }
.eg-home-type:focus-visible { outline: 3px solid var(--eg-accent); outline-offset: 2px; }
.eg-home-type-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    border-radius: 10px;
    background: #f1f3f6;
    overflow: hidden;
}
.eg-home-type-media img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
}
.eg-home-type-media svg {
    width: 120px;
    height: 80px;
    fill: none;
    stroke: #8a94a3;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.eg-home-type-media svg circle { fill: #f1f3f6; }
.eg-home-type-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 6px;
}
.eg-home-type-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.eg-home-type-name { font-size: 17px; font-weight: 800; }
.eg-home-type-models {
    font-size: 12px;
    color: #5a6472;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eg-home-type-count {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f3f6;
    color: #3d4654;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.eg-home-promo {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    min-height: 368px;
    padding: 24px;
    border-radius: 16px;
    background: #0b1f3a;
    color: #fff !important;
    text-decoration: none !important;
    overflow: hidden;
}
.eg-home-promo:focus-visible { outline: 3px solid var(--eg-accent); outline-offset: 2px; }
.eg-home-promo img {
    position: absolute;
    top: 10px;
    right: -40px;
    width: 400px;
    height: 220px;
    object-fit: contain;
    opacity: .95;
    transition: transform .3s;
}
.eg-home-promo:hover img { transform: translateX(-6px); }
.eg-home-promo > span { position: relative; }
.eg-home-promo-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9fb6d3;
}
.eg-home-promo-title { font-size: 26px; line-height: 1.15; font-weight: 800; }
.eg-home-promo-sub { font-size: 14px; line-height: 1.5; color: #d4deea; }
.eg-home-promo-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 6px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    color: #102b4e;
    font-size: 14px;
    font-weight: 700;
}
.eg-home-promo-cta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
    .eg-home-path,
    .eg-home-promo img { transition: none; }
    .eg-home-path:hover { transform: none; }
    .eg-home-promo:hover img { transform: none; }
}

/* ---------- Short desktop screens (the showroom kiosk: 4K at 250%, ~1506x846) ----------
   Fit the whole page on one screen: the lower section is held to ~350px and the
   hero takes the rest of the window height. */
@media (min-width: 1101px) and (max-height: 920px) {
    .eg-home-hero { height: max(440px, calc(100vh - 356px)); }
    .eg-home-bar { height: 64px; }
    .eg-home-copy { gap: 12px; padding-top: 20px; }
    .eg-home-copy h1 { font-size: 52px; }
    .eg-home-copy p { font-size: 17px; }
    .eg-home-paths { bottom: 28px; }
    .eg-home-path { min-height: 80px; }
    .eg-home-lower { gap: 20px; padding: 22px 40px 28px; }
    .eg-home-type-media { height: 118px; }
    /* There's room under the cards here: show the model list on up to two lines. */
    .eg-home-type-models {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .eg-home-promo { min-height: 300px; padding: 20px 22px; }
    .eg-home-promo img { top: 6px; right: -20px; width: 340px; height: 160px; }
    .eg-home-promo-title { font-size: 22px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .eg-home-lower.has-promo { grid-template-columns: minmax(0, 1fr); }
    .eg-home-promo { min-height: 300px; padding-right: 380px; }
    .eg-home-promo img { top: 50%; right: 0; width: 360px; height: 200px; transform: translateY(-50%); }
    .eg-home-promo:hover img { transform: translate(-6px, -50%); }
}
@media (max-width: 900px) {
    .eg-home-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
    .eg-home-hero {
        height: auto;
        min-height: 0;
        padding-bottom: 20px;
    }
    .eg-home-bar { height: 64px; padding: 0 16px; gap: 8px; }
    .eg-home-dealer { font-size: 14px; }
    .eg-home-menu span,
    .eg-home-staff span,
    .eg-home-cart > span:not(.cart-count) { display: none; }
    .eg-home-menu,
    .eg-home-staff { width: 44px; padding: 0; }
    .eg-home-cart { padding: 0 10px; }
    .eg-home-copy { gap: 12px; padding: 28px 16px 0; }
    .eg-home-eyebrow { font-size: 12px; }
    .eg-home-copy h1 { font-size: 40px; letter-spacing: -1px; }
    .eg-home-copy p { font-size: 15px; }
    .eg-home-paths {
        position: relative;
        left: auto;
        bottom: auto;
        flex-direction: column;
        gap: 10px;
        margin-top: 28px;
        padding: 0 16px;
    }
    .eg-home-path { width: 100%; min-height: 76px; padding: 0 16px; gap: 14px; }
    .eg-home-path-icon { width: 44px; height: 44px; }

    .eg-home-lower { padding: 24px 16px 32px; gap: 20px; }
    .eg-home-head h2 { font-size: 20px; }
    .eg-home-type-grid { gap: 10px; }
    .eg-home-type { padding: 8px 8px 12px; }
    .eg-home-type-media { height: 104px; }
    .eg-home-type-meta { flex-direction: column; align-items: flex-start; padding: 0 4px; gap: 6px; }
    .eg-home-type-text { width: 100%; }
    .eg-home-type-name { font-size: 15px; }

    .eg-home-promo { min-height: 320px; padding: 20px; }
    .eg-home-promo img { top: 8px; right: -30px; width: 300px; height: 168px; transform: none; }
    .eg-home-promo:hover img { transform: none; }
    .eg-home-promo-title { font-size: 22px; }
}
