/* Thành Phát EV Pages v0.0.9 — Home hero editorial refinement.
 * Loaded after the active theme's legacy v004/v016 rules; scoped to hero only.
 * Keep all vehicle cards, footer, model pages and WooCommerce styling unchanged.
 */
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 {
    position: relative;
    min-height: clamp(660px, 51vw, 850px) !important;
    isolation: isolate;
    overflow: hidden;
    background: #061a2e;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-image {
    position: absolute;
    inset: 0 !important;
    z-index: 1 !important;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-image picture {
    display: block;
    width: 100%;
    height: 100%;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center !important;
    filter: brightness(.96) saturate(1.04) !important;
}
/* The legacy ::before is intentionally disabled by the theme, so use a new,
 * controlled overlay that darkens only the text-safe region on desktop. */
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(3, 17, 32, .92) 0%,
        rgba(3, 20, 37, .83) 18%,
        rgba(5, 25, 43, .64) 31%,
        rgba(5, 25, 43, .24) 49%,
        rgba(5, 25, 43, .02) 73%),
        linear-gradient(0deg,rgba(3,17,32,.20),transparent 34%);
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-inner {
    min-height: clamp(660px, 51vw, 850px) !important;
    position: relative;
    z-index: 10 !important;
    display: flex;
    align-items: center;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-copy {
    position: relative;
    background: none !important;
    width: min(100%, 550px);
    max-width: 550px !important;
    padding: 56px 0 44px !important;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-kicker {
    display: inline-flex;
    align-items: center;
    padding: 10px 17px;
    margin: 0 0 23px !important;
    border: 1px solid #26cbe7;
    border-radius: 50px;
    color: #eafaff;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0 !important;
    line-height: 1.5;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 h1 {
    max-width: 550px !important;
    font-size: clamp(38px, 2.75vw, 49px) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.23 !important;
    margin: 0 0 21px !important;
    text-wrap: pretty;
    color: #ffffff;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 h1 span {
    color: #1dd6e9;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-copy > p:not(.tpa-evv-kicker) {
    max-width: 480px !important;
    margin: 0;
    color: #dceaf2;
    font-size: 15px !important;
    line-height: 1.74 !important;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-actions {
    display: flex;
    align-items: flex-start;
    margin-top: 29px !important;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-actions .tpa-evv-button.primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: auto;
    min-width: 275px !important;
    min-height: 55px !important;
    padding: 13px 26px !important;
    border-radius: 12px;
    background: linear-gradient(105deg, #0670d8, #00bbc5) !important;
    box-shadow: 0 10px 24px rgba(0,36,74,.23);
    font-size: 14px !important;
    letter-spacing: 0;
    line-height: 1.4;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-ev-v004-benefits {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px !important;
    width: max-content;
    max-width: min(660px, calc(100vw - 48px));
    margin-top: 36px !important;
    font-size: 12px !important;
    font-weight: 600;
    color: #eff9ff;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-ev-v004-benefits span {
    gap: 9px;
    width: auto;
    max-width: 182px;
    padding-right: 12px;
    line-height: 1.45;
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-ev-v004-benefits span:not(:last-child) {
    border-right: 1px solid rgba(168, 220, 236, .28);
}
.tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-ev-v004-benefits b {
    width: 39px;
    height: 39px;
    font-size: 19px;
    border-color: #23c9e2;
}
@media (max-width: 1100px) and (min-width: 768px) {
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009,
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-inner {
        min-height: 650px !important;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-copy {max-width: 450px !important;}
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 h1 {font-size: clamp(35px, 4vw, 44px) !important;}
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-ev-v004-benefits {flex-wrap: wrap;max-width: 430px;}
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-ev-v004-benefits span {border-right: none !important;}
}
/* Mobile: portrait photo on top, editorial message below. No text covers cars,
 * the showroom wordmark or the callouts embedded in the supplied photograph. */
@media (max-width: 767px) {
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 {
        display: flex;
        flex-direction: column;
        min-height: 0 !important;
        height: auto !important;
        background: #061a2e;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-image {
        position: relative;
        inset: auto !important;
        width: 100%;
        height: clamp(300px, 105vw, 460px);
        flex: none;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-image img {
        object-position: center 39% !important;
        filter: brightness(1) saturate(1.02) !important;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-image::after {
        background: linear-gradient(180deg,transparent 75%, rgba(4,21,38,.95));
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-inner {
        display: block;
        flex: none;
        min-height: 0 !important;
        height: auto !important;
        align-items: normal;
        background: linear-gradient(180deg,#061a2e 0%, #071e34 100%);
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-copy {
        width: 100%;
        max-width: 100% !important;
        padding: 22px 0 34px !important;
        background: none !important;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-kicker {
        font-size: 12px !important;
        padding: 8px 13px;
        margin-bottom: 16px !important;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 h1 {
        max-width: 550px !important;
        font-size: clamp(30px, 7.8vw, 38px) !important;
        line-height: 1.24 !important;
        margin-bottom: 15px !important;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-copy > p:not(.tpa-evv-kicker) {
        font-size: 14px !important;
        max-width: 510px !important;
        line-height: 1.7 !important;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-actions {
        max-width: none;
        margin-top: 22px !important;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-actions .tpa-evv-button.primary {
        width: 100%;
        min-width: 0 !important;
        min-height: 51px !important;
        font-size: 14px !important;
        padding-inline: 16px !important;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-ev-v004-benefits {
        display: grid;
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 15px 10px !important;
        margin-top: 29px !important;
        font-size: 12px !important;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-ev-v004-benefits span {
        max-width: none;
        min-width: 0;
        border-right: none !important;
        padding-right: 0;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-ev-v004-benefits b {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}
@media (max-width: 380px) {
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-copy {padding-bottom: 28px !important;}
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 h1 {font-size: 29px !important;}
}
@media (prefers-reduced-motion: reduce) {
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-actions .tpa-evv-button {transition: none;}
}
/* Keep desktop copy aligned with the visual safe area while the trust strip
 * rests near the bottom edge, below the main vehicle silhouettes. */
@media (min-width: 1101px) {
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-inner.tpa-container {
        width: calc(100% - clamp(36px, 8vw, 150px)) !important;
        max-width: 1760px !important;
        align-items: stretch;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-evv-hero-copy {
        padding: clamp(115px, 12vw, 195px) 0 120px !important;
    }
    .tpa-ev-v004-home .tpa-evv-hero.tpa-ev-hero-v009 .tpa-ev-v004-benefits {
        position: absolute;
        left: 0;
        bottom: 67px;
        margin-top: 0 !important;
    }
}
