/* Homepage hero critical styles (extracted without visual changes). */
/* =========================================================
   Homepage Hero Section
   resources/views/pages/home/sections/hero.blade.php
   ========================================================= */

:root {
    --ecw-yellow: #ffd400;
    --ecw-white: #ffffff;
}

/* Hero container */
.ecw-hero-polish {
    position: relative;
    z-index: 2;
    isolation: isolate;
    overflow: visible;
    background: #000;
}

.ecw-hero-polish::after {
    content: none;
}

/* Slider structure */
.ecw-hero-polish .wptb-slider--item {
    position: relative;
    isolation: isolate;
    overflow: visible;
    padding: 100px 0 200px;
    background: #000;
}

.ecw-hero-polish .wptb-slider--item > .container {
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.ecw-hero-polish .ecw-hero-title__main {
    color: #ffffff !important;
}

/* Hero background */
.ecw-hero-polish .wptb-slider--image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 750px;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.58),
            rgba(0, 0, 0, 0.38) 50%,
            rgba(0, 0, 0, 0.58)
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.52),
            rgba(0, 0, 0, 0.74)
        ),
        url("/assets/img/photo-1607860108855-64acxzczxc.avif")
            center / cover no-repeat;
}

/* Hero content */
.ecw-hero-polish .ecw-hero-content {
    position: relative;
    z-index: 5;
    padding-top: 15vh;
    transform: translateY(-72px);
}

.ecw-hero-polish .ecw-hero-heading {
    max-width: 920px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* Eyebrow */
.ecw-hero-polish .ecw-hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 0 0 15px;
    color: var(--ecw-yellow);
    font-size: clamp(10px, 0.78vw, 12px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.78);
}

.ecw-hero-polish .ecw-hero-eyebrow__line {
    display: block;
    width: clamp(26px, 3vw, 46px);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--ecw-yellow)
    );
}

.ecw-hero-polish .ecw-hero-eyebrow__line:last-child {
    transform: rotate(180deg);
}

/* Hero title */
.ecw-hero-polish .ecw-hero-title {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    color: var(--ecw-white);
    font-size: clamp(42px, 4.6vw, 66px);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-align: center;
    text-wrap: balance;
    text-shadow: 0 10px 32px rgba(0, 0, 0, 0.76);
}

.ecw-hero-polish .ecw-hero-title__main,
.ecw-hero-polish .ecw-hero-title__accent {
    display: block;
}

.ecw-hero-polish .ecw-hero-title__accent {
    margin-top: 8px;
    color: var(--ecw-yellow);
    font-size: 0.64em;
    line-height: 1;
}

/* Car image wrapper */
.ecw-hero-polish .wptb-image-single {
    position: absolute;
    left: 0;
    right: 0;
}

.ecw-hero-polish .wptb-image-single .wptb-item--image {
    position: relative;
    isolation: isolate;
    text-align: center;
    transition: all 1.3s ease;
}

/* Ground glow */
.ecw-hero-polish .wptb-image-single .wptb-item--image::after {
    content: "";
    position: absolute;
    z-index: 3;
    bottom: 188px;
    left: 50%;
    width: min(35vw, 500px);
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 247, 190, 0.5) 0%,
        rgba(245, 223, 0, 0.3) 30%,
        rgba(245, 180, 0, 0.12) 54%,
        transparent 74%
    );
    filter: blur(9px);
    opacity: 0.5;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Main car */
.ecw-hero-polish
    .wptb-image-single
    .wptb-item--image > img:first-child {
    position: relative;
    z-index: 2;
}

/* Car-light effect */
.ecw-hero-polish .wptb-image-single img.car-light {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    animation: wptb_opacity 2s infinite ease-in-out;
    pointer-events: none;
}

/* Light animation */
@-webkit-keyframes wptb_opacity {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes wptb_opacity {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* =========================================================
   Desktop: 1200px and above
   ========================================================= */

@media (min-width: 1200px) {
    .ecw-hero-polish .wptb-slider--item {
        padding-bottom: 250px;
    }

    .ecw-hero-polish .wptb-image-single {
        bottom: -320px;
    }

    .ecw-hero-polish
        .wptb-image-single
        .wptb-item--image > img:first-child {
        height: 830px;
    }

    .ecw-hero-polish .wptb-image-single img.car-light {
        height: 390px;
    }
}

/* =========================================================
   Tablet: 768px–1199px
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199.98px) {
    .ecw-hero-polish .wptb-slider--item {
        padding-bottom: 250px;
    }

    .ecw-hero-polish .wptb-image-single {
        bottom: -200px;
    }

    .ecw-hero-polish
        .wptb-image-single
        .wptb-item--image > img:first-child {
        height: 550px;
    }

    .ecw-hero-polish .wptb-image-single img.car-light {
        height: 200px;
    }

    .ecw-hero-polish
        .wptb-image-single
        .wptb-item--image::after {
        bottom: 122px;
        width: min(42vw, 360px);
        height: 42px;
    }
}

/* =========================================================
   Tablet and below
   ========================================================= */

@media (max-width: 991.98px) {
    body.home-page .ecw-hero-polish .wptb-slider--item {
        min-height: 620px;
        padding-top: 94px;
        padding-bottom: 220px;
    }

    body.home-page .ecw-hero-polish .ecw-hero-content {
        transform: translateY(-34px);
    }

    body.home-page .ecw-hero-polish .ecw-hero-title {
        max-width: 680px;
        font-size: clamp(38px, 7vw, 54px);
        line-height: 1.02;
    }

    body.home-page
        .ecw-hero-polish
        .wptb-image-single
        .wptb-item--image > img:first-child,
    body.home-page
        .ecw-hero-polish
        .wptb-image-single
        img.car-light {
        width: min(82vw, 600px);
        max-width: none;
        height: auto;
    }
}

/* =========================================================
   Mobile: below 768px
   ========================================================= */

@media (max-width: 767.98px) {
    body.home-page .ecw-hero-polish .wptb-slider--item {
        position: relative;
        min-height: 520px;
        padding: 76px 16px 0;
        overflow: hidden;
    }

    body.home-page .ecw-hero-polish .wptb-slider--image {
        inset: 0;
        height: 100%;
        min-height: 0;
        background-position: 58% center;
    }

    body.home-page .ecw-hero-polish .ecw-hero-content {
        position: relative;
        z-index: 2;
        padding-top: 24px;
        padding-inline: 0;
        transform: none;
    }

    body.home-page .ecw-hero-polish .ecw-hero-eyebrow {
        gap: 8px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    body.home-page .ecw-hero-polish .ecw-hero-title {
        margin-bottom: 10px;
        font-size: clamp(28px, 8.5vw, 40px);
        line-height: 1.1;
    }

    body.home-page .ecw-hero-polish .wptb-image-single {
        position: absolute !important;
        z-index: 4 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    body.home-page
        .ecw-hero-polish
        .wptb-image-single
        .wptb-item--image > img:first-child {
        position: relative;
        left: 50% !important;
        display: block !important;
        width: clamp(260px, 82vw, 440px) !important;
        max-width: none;
        height: auto !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
    }

    body.home-page
        .ecw-hero-polish
        .wptb-image-single
        img.car-light {
        position: absolute !important;
        z-index: 5 !important;
        bottom: 0 !important;
        left: 50% !important;
        width: clamp(260px, 82vw, 440px) !important;
        max-width: none;
        height: auto !important;
        opacity: 0.95 !important;
        transform: translateX(-50%) !important;
        mix-blend-mode: screen !important;
        pointer-events: none !important;
        animation: wptb_opacity 2.4s infinite ease-in-out !important;
    }

    .ecw-hero-polish
        .wptb-image-single
        .wptb-item--image::after {
        bottom: 63px;
        width: min(42vw, 190px);
        height: 28px;
        filter: blur(6px);
        opacity: 0.46;
    }
}

/* =========================================================
   Small mobile: below 576px
   ========================================================= */

@media (max-width: 575.98px) {
    body.home-page .ecw-hero-polish .wptb-slider--item {
        min-height: clamp(500px, 125vw, 540px);
        padding: 64px 14px 0;
    }

    body.home-page .ecw-hero-polish .ecw-hero-content {
        transform: none;
    }

    body.home-page .ecw-hero-polish .ecw-hero-heading {
        padding-inline: 4px;
    }

    body.home-page .ecw-hero-polish .ecw-hero-title {
        font-size: clamp(32px, 10vw, 40px);
    }

    body.home-page
        .ecw-hero-polish
        .wptb-image-single
        .wptb-item--image > img:first-child,
    body.home-page
        .ecw-hero-polish
        .wptb-image-single
        img.car-light {
        width: min(620px, 145vw) !important;
    }
}

/* =========================================================
   Extra-small mobile: below 391px
   ========================================================= */

@media (max-width: 390px) {
    body.home-page .ecw-hero-polish .wptb-slider--item {
        min-height: 500px;
        padding: 64px 12px 0;
    }

    body.home-page
        .ecw-hero-polish
        .ecw-hero-eyebrow__line {
        width: 14px;
    }

    body.home-page .ecw-hero-polish .ecw-hero-title {
        font-size: clamp(29px, 9.4vw, 36px);
    }

    body.home-page
        .ecw-hero-polish
        .wptb-image-single
        .wptb-item--image > img:first-child,
    body.home-page
        .ecw-hero-polish
        .wptb-image-single
        img.car-light {
        width: min(520px, 145vw) !important;
    }
}
