/* =========================================================
   ALLSTAR AUTO & MOTORHOME DETAILING
   PAGE STYLES
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

.auto-hero,
.auto-about,
.auto-services,
.auto-before-after,
.auto-why,
.auto-testimonials,
.auto-cta,
.allstar-media-showcase {
    --auto-navy: #162b46;
    --auto-navy-dark: #0d1d31;
    --auto-red: #e21d2b;
    --auto-white: #ffffff;
    --auto-light: #f4f6f8;
    --auto-text: #334155;
    --auto-muted: #64748b;
}


/* =========================================================
   SHARED SECTION ELEMENTS
========================================================= */

.auto-section-header {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.auto-section-header .section-kicker,
.auto-about .section-kicker,
.allstar-media-header .section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--auto-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.auto-section-header h2,
.auto-about h2,
.auto-cta h2 {
    margin: 0;
    color: var(--auto-navy);
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.auto-section-header h2 span,
.auto-about h2 span,
.auto-cta h2 span {
    color: var(--auto-red);
}

.auto-section-header .section-line,
.auto-about .section-line {
    width: 70px;
    height: 3px;
    margin: 20px auto;
    background: var(--auto-red);
}

.auto-section-header p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--auto-muted);
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   HERO
========================================================= */

.auto-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--auto-navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--auto-white);
}

.auto-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(13, 29, 49, 0.96) 0%,
            rgba(22, 43, 70, 0.88) 40%,
            rgba(22, 43, 70, 0.45) 68%,
            rgba(22, 43, 70, 0.10) 100%
        );
}

.auto-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 45px;
}

.auto-hero-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--auto-red);
    color: var(--auto-white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.auto-hero h1 {
    margin: 0 0 14px;
    color: var(--auto-white);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.02;
    text-transform: uppercase;
}

.auto-hero h1 span {
    color: var(--auto-red);
}

.auto-hero p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.65;
}


/* =========================================================
   HERO TRUST BAR
========================================================= */

.auto-hero-bottom {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    background: rgba(13, 29, 49, 0.94);
}

.auto-hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.auto-hero-trust > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 45px;
    color: var(--auto-white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.auto-hero-trust > div:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.auto-hero-trust i {
    color: var(--auto-red);
    font-size: 14px;
}


/* =========================================================
   ABOUT
========================================================= */

.auto-about {
    padding: 90px 0;
    background: var(--auto-white);
}

.auto-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.auto-about-content {
    max-width: 600px;
}

.auto-about-content .section-line {
    margin-right: auto;
    margin-left: 0;
}

.auto-about-content p {
    margin: 0 0 18px;
    color: var(--auto-muted);
    font-size: 16px;
    line-height: 1.8;
}

.auto-about-image {
    overflow: hidden;
    border-radius: 16px;
    box-shadow:
        0 20px 55px
        rgba(22, 43, 70, 0.14);
}

.auto-about-image img {
    display: block;
    width: 100%;
    min-height: 430px;
    object-fit: cover;
}


/* =========================================================
   SERVICES
========================================================= */

.auto-services {
    padding: 90px 0;
    background: var(--auto-light);
}

.auto-service-grid,
.auto-services-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.auto-service-card {
    padding: 36px 30px;
    background: var(--auto-white);
    border: 1px solid rgba(22, 43, 70, 0.08);
    border-radius: 12px;
    box-shadow:
        0 10px 30px
        rgba(22, 43, 70, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.auto-service-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 18px 45px
        rgba(22, 43, 70, 0.12);
}

.auto-service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--auto-navy);
    color: var(--auto-white);
    font-size: 22px;
}

.auto-service-card h3 {
    margin: 0 0 12px;
    color: var(--auto-navy);
    font-size: 20px;
    font-weight: 800;
}

.auto-service-card p {
    margin: 0;
    color: var(--auto-muted);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   ALLSTAR MEDIA SHOWCASE
========================================================= */

.allstar-media-showcase {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #f4f7fa 0%,
            #ffffff 50%,
            #eef3f8 100%
        );
}


/* =========================================================
   MEDIA HEADER
========================================================= */

.allstar-media-header {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.allstar-media-header .section-kicker {
    color: var(--auto-red);
}

.allstar-media-header h2 {
    margin: 0;
    color: var(--auto-navy);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.allstar-media-header h2 span {
    color: var(--auto-red);
}

.allstar-media-header .section-line {
    width: 60px;
    height: 3px;
    margin: 22px auto;
    background: var(--auto-red);
}

.allstar-media-header p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--auto-muted);
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   MEDIA SLIDER
========================================================= */

#allstarMediaSlider {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    background: var(--auto-white);
    box-shadow:
        0 20px 60px
        rgba(15, 39, 68, 0.12);
}


/* =========================================================
   SLIDES
========================================================= */

#allstarMediaSlider .allstar-media-slide {
    display: none;
    width: 100%;
}

#allstarMediaSlider .allstar-media-slide.is-active {
    display: block;
}


/* =========================================================
   BEFORE / AFTER CONTAINER
========================================================= */

#allstarMediaSlider .allstar-media-ba {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: 22px;
}


/* =========================================================
   BEFORE IMAGE
========================================================= */
#allstarMediaSlider .allstar-media-ba-before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


#allstarMediaSlider .allstar-media-ba-before img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   AFTER IMAGE WINDOW
========================================================= */
#allstarMediaSlider .allstar-media-ba-after-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;

    width: 50%;
    height: 100%;

    overflow: hidden;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    z-index: 2;
}

#allstarMediaSlider .allstar-media-ba-after-wrap img {
    position: absolute;

    top: 0;
    right: 0;

    width: auto;
    height: 100%;

    max-width: none;

    object-fit: cover;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    display: block;
}

#allstarMediaSlider .allstar-media-ba-after-wrap::before,
#allstarMediaSlider .allstar-media-ba-after-wrap::after {
    content: none !important;
    display: none !important;
}


/* =========================================================
   AFTER IMAGE
========================================================= */

#allstarMediaSlider .allstar-media-ba-after {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
}


/* =========================================================
   BEFORE / AFTER DIVIDER

   NO VISIBLE LINE
   HANDLE ONLY
========================================================= */
#allstarMediaSlider .allstar-media-ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;

    width: 1px;
    height: 100%;

    padding: 0;
    margin: 0;

    background: #ffffff;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    appearance: none;
    -webkit-appearance: none;

    transform: translateX(-50%);

    z-index: 10;

    cursor: ew-resize;
}

#allstarMediaSlider .allstar-media-ba-divider::before,
#allstarMediaSlider .allstar-media-ba-divider::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* =========================================================
   HANDLE
========================================================= */

#allstarMediaSlider .allstar-media-ba-handle {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1b3656;
    color: #ffffff;

    border: 3px solid #ffffff;
    border-radius: 50%;

    transform: translate(-50%, -50%);

    font-size: 22px;
    line-height: 1;

    z-index: 11;

    pointer-events: none;
}



/* =========================================================
   BEFORE / AFTER LABELS
========================================================= */

#allstarMediaSlider .allstar-media-ba-label {
    position: absolute;

    top: 20px;

    padding: 10px 18px;

    background: #1b3656;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;

    border-radius: 4px;

    z-index: 12;
}

#allstarMediaSlider .allstar-media-ba-label-before {
    left: 20px;
}

#allstarMediaSlider .allstar-media-ba-label-after {
    right: 20px;
}


#allstarMediaSlider .allstar-media-ba-label.before {
    left: 20px;
}

#allstarMediaSlider .allstar-media-ba-label.after {
    right: 20px;
}

/* =========================================================
   NORMAL IMAGE
========================================================= */

#allstarMediaSlider .allstar-media-image {
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #e9eef3;
}

#allstarMediaSlider .allstar-media-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   VIDEO
========================================================= */

#allstarMediaSlider .allstar-media-video {
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--auto-navy);
}

#allstarMediaSlider .allstar-media-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================================================
   MEDIA CAPTION
========================================================= */

#allstarMediaSlider .allstar-media-caption {
    padding: 35px 45px 40px;
    text-align: center;
}

#allstarMediaSlider .allstar-media-type {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--auto-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#allstarMediaSlider .allstar-media-caption h3 {
    margin: 0 0 12px;
    color: var(--auto-navy);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
}

#allstarMediaSlider .allstar-media-caption p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--auto-muted);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   MEDIA NAVIGATION
========================================================= */

#allstarMediaSlider .allstar-media-nav {
    position: absolute;
    top: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background:
        rgba(15, 39, 68, 0.88);
    color: var(--auto-white);
    cursor: pointer;
    z-index: 30;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

#allstarMediaSlider .allstar-media-nav:hover {
    background: var(--auto-red);
    transform: scale(1.08);
}

#allstarMediaSlider .allstar-media-prev {
    left: 20px;
}

#allstarMediaSlider .allstar-media-next {
    right: 20px;
}


/* =========================================================
   MEDIA DOTS
========================================================= */

#allstarMediaSlider .allstar-media-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 0 28px;
}

#allstarMediaSlider .allstar-media-dot {
    width: 9px;
    height: 9px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition:
        width 0.25s ease,
        background 0.25s ease;
}

#allstarMediaSlider .allstar-media-dot.is-active {
    width: 30px;
    border-radius: 10px;
    background: var(--auto-red);
}


/* =========================================================
   WHY CHOOSE ALLSTAR
========================================================= */

.auto-why {
    padding: 90px 0;
    background: var(--auto-light);
}

.auto-why-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.auto-why-card {
    padding: 35px 25px;
    text-align: center;
    background: var(--auto-white);
    border: 1px solid
        rgba(22, 43, 70, 0.08);
    border-radius: 8px;
    box-shadow:
        0 10px 30px
        rgba(22, 43, 70, 0.05);
}

.auto-why-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--auto-navy);
    color: var(--auto-white);
    font-size: 22px;
}

.auto-why-card h3 {
    margin: 0 0 12px;
    color: var(--auto-navy);
    font-size: 18px;
    font-weight: 800;
}

.auto-why-card p {
    margin: 0;
    color: var(--auto-muted);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   TESTIMONIALS
========================================================= */

.auto-testimonials {
    padding: 90px 0;
    background: var(--auto-white);
}


/* =========================================================
   CTA
========================================================= */

.auto-cta {
    position: relative;
    padding: 90px 0;
    text-align: center;
    background: var(--auto-navy);
    color: var(--auto-white);
}

.auto-cta h2 {
    color: var(--auto-white);
}

.auto-cta p {
    max-width: 650px;
    margin: 25px auto 35px;
    color:
        rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   CTA BUTTONS
========================================================= */

.auto-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.auto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 28px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.auto-btn:hover {
    transform: translateY(-2px);
}

.auto-btn-primary {
    background: var(--auto-red);
    color: var(--auto-white);
}

.auto-btn-primary:hover {
    background: var(--auto-white);
    color: var(--auto-navy);
}

.auto-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.70);
    color: var(--auto-white);
}

.auto-btn-secondary:hover {
    background: var(--auto-white);
    color: var(--auto-navy);
}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 1024px) {

    .auto-service-grid,
    .auto-services-grid,
    .auto-why-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .auto-about-grid {
        gap: 45px;
    }

    .auto-hero-trust > div {
        padding: 0 25px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 768px) {

    .auto-hero {
        height: 390px !important;
        background-position: 65% center;
    }

    .auto-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(13, 29, 49, 0.95) 0%,
                rgba(22, 43, 70, 0.82) 65%,
                rgba(22, 43, 70, 0.45) 100%
            );
    }

    .auto-hero-content {
        margin-top: 80px !important;
        padding-bottom: 65px;
    }

    .auto-hero h1 {        
        font-size: 34px;
    }

    .auto-hero p {
        max-width: 90%;
        font-size: 14px;
    }


    /* TRUST BAR */

    .auto-hero-trust {
        min-height: 48px;
        justify-content: center;
    }

    .auto-hero-trust > div {
        gap: 5px;
        padding: 0 9px;
        font-size: 8px;
    }

    .auto-hero-trust i {
        width: auto;
        font-size: 10px;
    }


    /* SECTIONS */

    .auto-about,
    .auto-services,
    .auto-why,
    .allstar-media-showcase,
    .auto-testimonials,
    .auto-cta {
        padding: 65px 0;
    }


    /* ABOUT */

    .auto-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .auto-about-content {
        text-align: center;
    }

    .auto-about-content .section-line {
        margin:
            20px auto
            28px;
    }

    .auto-about-image img {
        min-height: 300px;
    }


    /* SECTION HEADERS */

    .auto-section-header,
    .allstar-media-header {
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .auto-section-header h2,
    .auto-about h2,
    .auto-cta h2 {
        font-size: 34px;
    }


    /* SERVICES */

    .auto-service-grid,
    .auto-services-grid,
    .auto-why-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .auto-service-card {
        padding: 30px 25px;
    }


    /* MEDIA */

    .allstar-media-header h2 {
        font-size: 32px;
    }

    #allstarMediaSlider {
        border-radius: 14px;
    }

    #allstarMediaSlider .allstar-media-ba,
    #allstarMediaSlider .allstar-media-image,
    #allstarMediaSlider .allstar-media-video {
        height: 320px;
    }

    #allstarMediaSlider .allstar-media-ba-label {
        top: 15px;
        padding: 7px 11px;
        font-size: 10px;
    }

    #allstarMediaSlider .allstar-media-ba-label-before {
        left: 15px;
    }

    #allstarMediaSlider .allstar-media-ba-label-after {
        right: 15px;
    }

    #allstarMediaSlider .allstar-media-ba-handle {
        width: 46px;
        height: 46px;
        font-size: 17px;
    }

    #allstarMediaSlider .allstar-media-caption {
        padding: 28px 22px 30px;
    }

    #allstarMediaSlider .allstar-media-caption h3 {
        font-size: 22px;
    }

    #allstarMediaSlider .allstar-media-caption p {
        font-size: 14px;
    }

    #allstarMediaSlider .allstar-media-nav {
        top: 160px;
        width: 44px;
        height: 44px;
    }

    #allstarMediaSlider .allstar-media-prev {
        left: 12px;
    }

    #allstarMediaSlider .allstar-media-next {
        right: 12px;
    }


    /* CTA */

    .auto-cta {
        padding: 75px 0;
    }

    .auto-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .auto-btn {
        width: 100%;
        max-width: 320px;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    #allstarMediaSlider .allstar-media-ba {
        height: 420px;
        border-radius: 16px;
    }

    #allstarMediaSlider .allstar-media-ba-handle {
        width: 52px;
        height: 52px;

        font-size: 20px;
    }

    #allstarMediaSlider .allstar-media-ba-label {
        top: 14px;

        padding: 9px 14px;

        font-size: 11px;
    }

    #allstarMediaSlider .allstar-media-ba-label.before {
        left: 14px;
    }

    #allstarMediaSlider .allstar-media-ba-label.after {
        right: 14px;
    }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .auto-hero h1 {
        font-size: 29px;
    }

    .auto-hero-kicker {
        font-size: 10px;
        letter-spacing: 1.4px;
    }

    .auto-hero-trust > div {
        padding: 0 6px;
        font-size: 7px;
    }

    .auto-section-header h2,
    .auto-about h2,
    .auto-cta h2 {
        font-size: 29px;
    }

    #allstarMediaSlider .allstar-media-ba,
    #allstarMediaSlider .allstar-media-image,
    #allstarMediaSlider .allstar-media-video {
        height: 270px;
    }

    #allstarMediaSlider .allstar-media-nav {
        top: 135px;
    }

}