/* ==========================================================================
   services.css
   --------------------------------------------------------------------------
   Service card redesign:
   - Collapsed: name + (comment) + description_2
   - Show more: reveals description_1
   - Next: scroll to center, then roll-down to show item cards
   - Items: 2-column grid (left text, right CTA + price/hours)
   ========================================================================== */




/* article.card{
    background-image: url(../assets/icons/trailer.png);
    background-repeat: no-repeat;
    background-position: -20px center ;
    background-size: 45%;
    min-height: 200px;

    .card-pad{
        padding-left: 40%;
    }
} */

/* =========================================================
   CARD LAYERING
   Image ALWAYS visible
   Gradient fades in on hover
   ========================================================= */

/* Base card */
article.card {
    position: relative;
    min-height: 250px;
    overflow: hidden;

    .card-pad{
        padding-left: 40%;
    }    
}

/* -------------------------------
   Gradient layer (UNDER image)
   ------------------------------- */
.card::before,
.home-hero__trust-item::before,
.home-hero__media-card::before,
.home-strip__inner::before,
.zvn-footer__brand.card::before,
.zvn-footer__col.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;

    background: linear-gradient(
        to bottom,
        white 0%,
        var(--box-hov-o) 100%
    );

    opacity: 0;
    transition: opacity 640ms ease;
    z-index: 1;
}

/* -------------------------------
   Image layer (ALWAYS visible)
   ------------------------------- */
article.card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    /* background-image: url("../assets/icons/tire_change.png"); */
    background-image: var(--icon_url);
    background-repeat: no-repeat;
    background-position: 0px center;
    background-size: 40%;

    opacity: 1;               /* <-- ALWAYS ON */
    z-index: 2;
}

/* -------------------------------
   Hover state
   ------------------------------- */
article.card:hover::before {
    opacity: 1;               /* gradient fades in */
}

/* -------------------------------
   Content stays on top
   ------------------------------- */
article.card > * {
    position: relative;
    z-index: 3;
}













.h2 {
    text-align: center;
    background: rgba(255, 255, 255, 1);
    border-radius: var(--r-2);
    padding: 10px;
}

.about-main {
    position: relative;
    overflow: hidden;
    /* safety for large images */
}

/* background image + opacity */
.about-main::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url('../assets/img/balancing_tire.png');
    /* background-image: url('../assets/img/tires.png'); */

    background-repeat: no-repeat;
    background-position: 80% top;
    background-size: 80cap;

    opacity: 0.2;
    /* ✅ 50% transparency */

    pointer-events: none;
    z-index: 0;
}

/* keep page content above background */
.about-main>* {
    position: relative;
    z-index: 1;
}






/* =========================================
   SERVICES SEARCH (icon inside input)
   ========================================= */

.services-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
}

/* accessible label (screen readers) */
.services-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;

    font-weight: 900;
    font-size: 13px;
    color: var(--text);
}

.services-search__icon {
    position: absolute;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    pointer-events: none;
    /* keeps input clickable */
    opacity: 0.75;
}

.services-search__icon_svg {
    width: 18px;
    height: 18px;
    color: var(--grey, #7f7f7f);
}

/* SVG stroke styling */
.services-search__icon_svg circle,
.services-search__icon_svg line {
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.services-search__input {
    width: 100%;
    box-sizing: border-box;

    height: 42px;
    padding: 12px 12px;

    border: 1px solid var(--border);
    border-radius: var(--r-2);

    background: rgba(255, 255, 255, 0.90);
    color: var(--black, #111111);

    outline: none;
    font-weight: 800;

    padding-left: 35px;
}

.services-search__input::placeholder {
    color: var(--grey, #7f7f7f);
    opacity: 0.85;
}

.services-search__input:focus {
    border-color: rgba(242, 168, 0, 0.35);
    box-shadow: 0 0 0 4px rgba(242, 168, 0, 0.08);
}

/* =========================================
   SERVICES SEARCH (icon inside input)
   ========================================= */














article.card:hover {
    transform: none !important;
}

.js-show-more {
    cursor: pointer;
}


.services-main {
    width: 100%;
}

.services-hero {
    padding-top: 24px;
    padding-bottom: 24px;
}

.services-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: start;
}

.services-hero__subtitle {
    max-width: 80ch;
    /* font-weight: 800; */
}

.services-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.services-hero__note {
    display: grid;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 800;
}

.services-hero__note-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
}

.services-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
}

.services-hero__phone,
.services-hero__link {
    text-decoration: none;
    border-bottom: 2px solid rgba(242, 168, 0, 0.22);
    font-weight: 900;
    color: var(--text);
}

.services-hero__panel-title {
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.services-hero__panel-sub {
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1.6;
}

.services-hero__panel-hint {
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1.6;
}



/* Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    gap: 50px 200px;
}

/* ==========================================================================
   SERVICE CARD (Collapsed -> Expanded)
   ========================================================================== */

.services-card {
    display: grid;
    gap: 14px;
    height: max-content;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.8);
}

.services-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.8);
}

.services-card__header {
    display: grid;
    gap: 8px;
}

.services-card__title {
    margin: 0;
    font-weight: 950;
    font-size: 24px;
    letter-spacing: 0.2px;
    line-height: 1.2;

    [title] {
        font-style: normal;
    }
}

.services-card__comment {
    font-weight: 900;
    font-size: 13px;
    color: var(--text-muted);
}

.services-card__summary {
    margin: 0;
    color: var(--text-muted);
    font-weight: 800;
    line-height: 1.65;
}

.services-card__more {
    display: none;
    margin: 0;
    color: var(--text-muted);
    /* font-weight: 800; */
    line-height: 1.65;
}

/* Actions */
.services-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

/* Compact buttons */
.btn.sm {
    padding: 9px 12px;
    font-size: 13px;
}

/* "Next" emphasis */
.services-next {
    margin-left: auto;
}

/* ==========================================================================
   ROLL-DOWN (Items container)
   - hidden by default using max-height animation
   ========================================================================== */

.services-items-wrap {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);

    transition:
        max-height 640ms ease,
        opacity 640ms ease,
        transform 640ms ease;
}

.services-card.is_expanded .services-items-wrap {
    max-height: 2400px;
    /* big enough for most lists */
    opacity: 1;
    transform: translateY(0);
}

.services-items {
    display: grid;
    gap: 12px;
    padding-top: 4px;
    border-top: 1px dashed rgba(15, 23, 42, 0.14);
}

/* ==========================================================================
   ITEM CARD (2-column grid)
   - Left: description + comment
   - Right: Book Service + price/hours
   ========================================================================== */

.services-item {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 12px;
    align-items: start;

    padding: 12px;
    border-radius: var(--r-1);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.82);
}

.services-item__left {
    display: grid;
    gap: 6px;
}

.services-item__desc {
    font-weight: 950;
    letter-spacing: 0.2px;
    line-height: 1.35;
}

.services-item__comment {
    color: var(--text-muted);
    font-weight: 800;
    line-height: 1.55;

    &::first-letter {
        text-transform: uppercase;
    }
}

.services-item__right {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.services-item__meta {
    /* display: grid; */
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: right;
    font-weight: 900;
    color: var(--text-muted);
    /* min-width: 170px; */
}

.services-item__meta b {
    color: var(--text);
}

/* Empty state */
.services-empty__title {
    font-weight: 950;
    font-size: 18px;
}


/* .btn.primary.zvn-header__services-btn{
    display: none;
} */





/* =========================================================
   Flash Highlight Utility (CSS-only)
   Purpose:
     - Draw attention to an element briefly
     - 2s duration
     - Blue ↔ Orange glow
     - Auto-stops
     - No JS required
   ========================================================= */

.flash_highlight {
    animation-name: flash_glow;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
    /* return to original state */
    animation-iteration-count: 1;
}

/* ---------------------------------------------------------
   Glow keyframes
   --------------------------------------------------------- */
@keyframes flash_glow {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    18% {
        box-shadow: 0 0 14px 4px rgba(242, 168, 0, 0.85);
        /* blue */
    }

    32% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    52% {
        box-shadow: 0 0 14px 4px rgba(242, 168, 0, 0.85);
        /* orange */
    }

    66% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    82% {
        box-shadow: 0 0 14px 4px rgba(242, 168, 0, 0.85);
        /* blue */
    }

    100% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* ---------------------------------------------------------
   Accessibility: Reduced Motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .flash_highlight {
        animation: none;
        box-shadow: 0 0 10px 3px rgba(242, 168, 0, 0.6);
    }
}












/* Responsive */
@media (max-width: 1200px) {
    .services-grid {
        gap: 50px 100px;
    }
}

@media (max-width: 980px) {
    .services-hero__grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* .services-item {
        grid-template-columns: 1fr;
    } */

    /* .services-item__right {
        justify-items: start;
        text-align: left;
    } */

    /* .services-item__meta {
        text-align: left;
    } */

    .services-next {
        margin-left: 0;
    }

    .services-hero__copy{
        text-align: center;
    }
}

@media (max-width: 450px) {
    article.card{
        .card-pad{
            padding-left: 18px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            .services-card__header{
                /* height: 100%; */
                .services-card__title{
                    min-height: 240px;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                }
            }
            .services-items-wrap{
                /* position: absolute; */
            }

            .services-card__summary{
                /* display: none; */
            }
        }

        &::after{
            background-position: center 55px;
            background-size: 64%;
        }
    }
}