/* =========================================================
   HEADER HERO
   Titan Vans Services Hero
   Lighter editorial layout with larger brand marks
   ========================================================= */

/* =========================================================
   HERO TOKENS
   Reads from theme-dark.css
   ========================================================= */

:root {
    --hero-page-bg: var(--theme-page-bg);
    --hero-page-bg-soft: var(--theme-page-bg-soft);

    --hero-border: var(--theme-border);
    --hero-border-strong: var(--theme-border-strong);

    --hero-text-strong: var(--theme-text-strong);
    --hero-text-main: var(--theme-text-main);
    --hero-text-muted: var(--theme-text-muted);
    --hero-text-soft: var(--theme-text-soft);

    --hero-accent: var(--theme-accent);
    --hero-accent-hover: var(--theme-accent-deep);
    --hero-accent-soft: var(--theme-accent-soft);
    --hero-accent-soft-border: var(--theme-accent-soft-border-24);

    --hero-radius-xl: var(--theme-radius-xl);
    --hero-radius-lg: var(--theme-radius-hero-panel);
    --hero-radius-md: var(--theme-radius-md);
    --hero-radius-pill: var(--theme-radius-pill);

    --hero-shadow-lg: var(--theme-shadow-hero-lg);
    --hero-shadow-md: var(--theme-shadow-hero-md);

    --service-hero-top-offset: 7.25rem;
    --service-hero-top-offset-tablet: 6.5rem;
    --service-hero-top-offset-mobile: 7.5rem;
}

/* =========================================================
   HERO WRAPPER
   ========================================================= */

.header.header-img-service {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100svh;
    padding:
        var(--service-hero-top-offset)
        clamp(0.9rem, 2vw, 1.5rem)
        0;
    overflow: hidden;
    isolation: isolate;
}

.header.header-img-service::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 88% 18%, rgba(200, 210, 220, 0.09), transparent 38%),
        radial-gradient(ellipse at 18% 12%, rgba(255, 255, 255, 0.07), transparent 30%),
        radial-gradient(ellipse at 50% 80%, rgba(10, 12, 16, 0.32), transparent 55%),
        linear-gradient(to right, rgba(4, 4, 6, 0.55) 0%, rgba(4, 4, 6, 0.24) 45%, rgba(4, 4, 6, 0.0) 100%),
        linear-gradient(180deg, rgba(30, 34, 40, 0.18) 0%, rgba(8, 8, 9, 0.58) 100%);
    pointer-events: none;
    z-index: 0;
}

.header.header-img-service::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3rem;
    background: linear-gradient(
        to bottom,
        var(--theme-overlay-black-00) 0%,
        var(--theme-overlay-black-35) 60%,
        var(--theme-overlay-black-75) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* =========================================================
   HERO LAYOUT
   ========================================================= */

.header.header-img-service + main {
    padding-top: clamp(3rem, 6vw, 5rem);
}

.header.header-img-service + main > section + section {
    padding-top: clamp(3rem, 6vw, 5rem);
}

.header.header-img-service + main > .services-reviews,
.header.header-img-service + main > .s-faq {
    padding-top: clamp(3rem, 6vw, 5rem);
}

.service-hero {
    position: relative;
    z-index: 1;
    width: min(100%, 90rem);
    margin: 0 auto clamp(4rem, 8svh, 10rem);
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.75rem);
}

.service-hero__copy {
    min-width: 0;
}

.service-hero__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    overflow-wrap: anywhere;
}

/* =========================================================
   HERO TITLE
   Larger version of the service section headers
   ========================================================= */

.service-hero__title {
    position: relative;

    max-width: none;
    margin: 0;
    padding-bottom: clamp(0.9rem, 1.35vw, 1.15rem);

    color: var(--hero-text-strong);

    font-size: clamp(3rem, 5.5vw, 6rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.052em;
    text-transform: none;

    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: normal;

    text-shadow: var(--theme-shadow-title);
}

.service-hero__title::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: clamp(6rem, 10vw, 9rem);
    height: 0.24rem;

    border-radius: var(--hero-radius-pill);

    background: linear-gradient(
        90deg,
        var(--hero-accent) 0%,
        var(--hero-accent-hover) 58%,
        transparent 100%
    );

    box-shadow: 0 10px 24px var(--theme-accent-box-24);
}

.service-hero__intro {
    margin: clamp(1.1rem, 2vw, 1.5rem) 0 0;
    max-width: 52rem;
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.72;
    color: var(--hero-text-muted);
    overflow-wrap: anywhere;
}

/* =========================================================
   HERO ACTIONS
   ========================================================= */

.service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: clamp(1.35rem, 2.6vw, 2rem);
}

.service-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: var(--svc-button-height);
    height: var(--svc-button-height);
    padding: 0.86rem 1.3rem;
    border-radius: var(--hero-radius-pill);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.018em;
    line-height: 1.05;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.service-hero__button i {
    font-size: 0.82rem;
    opacity: 0.85;
}

.service-hero__button--primary {
    color: var(--theme-white);
    border: 1px solid var(--theme-surface-white-08);
    box-shadow: 0 16px 28px var(--theme-accent-box-24);
    border-color: var(--svc-cta-red-border);
    background: var(--svc-cta-red-bg);
}

.service-hero__button--primary:hover {
    transform: translateY(-1px);
    color: var(--theme-white);
    text-decoration: none;
    box-shadow: 0 20px 32px var(--theme-accent-box-32);

        border-color: var(--svc-cta-red-border-hover);
    background: var(--svc-cta-red-bg-hover);
        box-shadow: var(--svc-cta-red-shadow-hover);
    filter: saturate(1.04);
}

.service-hero__button--secondary {
    background: var(--theme-surface-white-05);
    color: var(--hero-text-main);
    border: 1px solid var(--hero-border);
    backdrop-filter: var(--theme-blur-sm);
    -webkit-backdrop-filter: var(--theme-blur-sm);
}

.service-hero__button--secondary:hover {
    transform: translateY(-1px);
    color: var(--theme-white);
    text-decoration: none;

}

/* =========================================================
   CONTACT LINKS
   ========================================================= */

.service-hero__support {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.service-hero__support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.6rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--theme-surface-white-08);
    border-radius: var(--hero-radius-pill);
    background: var(--theme-surface-white-045);
    color: var(--hero-text-muted);
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: var(--theme-blur-sm);
    -webkit-backdrop-filter: var(--theme-blur-sm);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.service-hero__support-link:hover {
    transform: translateY(-1px);
    color: var(--theme-white);
    text-decoration: none;
    border-color: var(--hero-border-strong);
    background: var(--theme-surface-white-08);
}

.service-hero__support-link i {
    color: var(--theme-text-eyebrow);
    font-size: 0.88rem;
    line-height: 1;
}

/* =========================================================
   BRAND STAGE
   Larger images without bulky containers
   ========================================================= */

.service-hero__brands-label {
    position: relative;
    z-index: 1;
    margin: 0 0 clamp(1rem, 2vw, 1.25rem);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hero-text-soft);
    text-align: center;
}

.service-hero__brand-logos {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.75rem, 3.5vw, 2.75rem);
    margin: 0 0 clamp(0.85rem, 1.5vw, 1.1rem);
    padding: 0;
    list-style: none;
}

.service-hero__brand-logos li {
    display: flex;
    align-items: center;
}

.service-hero__brand-logos img {
    display: block;
    width: clamp(3.5rem, 6vw, 5.25rem);
    height: clamp(3.5rem, 6vw, 5.25rem);
    object-fit: contain;
    filter:
        drop-shadow(0 12px 18px var(--theme-overlay-black-35))
        saturate(0.88)
        brightness(0.92);
    transform: translateZ(0);
    transition:
        transform 0.22s ease,
        filter 0.22s ease;
}

.service-hero__brand-logos img:hover {
    transform: translateY(-3px) scale(1.04);
    filter:
        drop-shadow(0 18px 26px var(--theme-overlay-black-45))
        saturate(1.0)
        brightness(1.0);
}

.service-hero__platform-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-hero__platform-list li {
    padding: 0.2rem 0.72rem;
    font-size: clamp(0.78rem, 1.05vw, 0.92rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--hero-text-muted);
    white-space: nowrap;
    line-height: 1;
}

.service-hero__platform-list li + li {
    border-left: 1px solid var(--theme-surface-white-08);
}

/* =========================================================
   BRAND LOGOS STRIP
   ========================================================= */

.service-hero__brands {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3.5rem, 7vw, 8rem);
    width: calc(100% + 2 * clamp(0.9rem, 2vw, 1.5rem));
    margin-left: calc(-1 * clamp(0.9rem, 2vw, 1.5rem));
    padding: clamp(1.25rem, 2.2vw, 2rem) clamp(0.9rem, 2vw, 1.5rem);
}

.service-hero__brands::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(8, 8, 9, 0.0) 0%,
            rgba(8, 8, 9, 0.28) 100%
        );
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 55%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 55%);
    pointer-events: none;
    z-index: 0;
}

.service-hero__brand-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-hero__brand-wrap .tooltiptext {
    max-width: 220px;
    top: auto;
    bottom: calc(100% + 0.5rem);
    transform: translateY(4px);
}

.service-hero__brand-wrap:hover .tooltiptext {
    transform: translateY(0);
}

.service-hero__brand-wrap .tooltiptext::after {
    top: auto;
    bottom: -5px;
    border-top: none;
    border-left: none;
    border-bottom: 1px solid var(--theme-surface-white-14, rgba(255, 255, 255, 0.1));
    border-right: 1px solid var(--theme-surface-white-14, rgba(255, 255, 255, 0.1));
}

.service-hero__brand-img {
    display: block;
    width: clamp(3.5rem, 5.25vw, 5.6rem);
    height: clamp(3.5rem, 5.25vw, 5.6rem);
    object-fit: contain;
    filter: saturate(0) brightness(0.7) invert(1);
    opacity: 0.55;
    transform: translateZ(0);
    cursor: default;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.service-hero__brand-img--muted {
    filter: saturate(0) brightness(1.6) contrast(0.55);
    opacity: 0.4;
}

.service-hero__brand-img--lg {
    width: clamp(4.25rem, 6.5vw, 7rem);
    height: clamp(4.25rem, 6.5vw, 7rem);
}

.service-hero__brand-img--xl {
    width: clamp(5.6rem, 8.75vw, 9.4rem);
    height: clamp(5.6rem, 8.75vw, 9.4rem);
}

.service-hero__brand-img--sm {
    width: clamp(2.75rem, 4.25vw, 4.5rem);
    height: clamp(2.75rem, 4.25vw, 4.5rem);
}

.service-hero__brand-wrap:hover .service-hero__brand-img {
    filter: saturate(0.8) brightness(1.05);
    opacity: 0.9;
    transform: translateY(-3px) scale(1.06);
}

.service-hero__brand-wrap:hover .service-hero__brand-img--muted {
    filter: saturate(0.8) brightness(1.05);
    opacity: 0.9;
}

.service-hero__brand-wrap--orange:hover .service-hero__brand-img {
    filter: saturate(1.1) brightness(1.05);
    opacity: 0.95;
}

.service-hero__brand-wrap--red:hover .service-hero__brand-img {
    filter: saturate(1.1) brightness(1.05);
    opacity: 0.95;
}

/* =========================================================
   WHY CUSTOMERS CHOOSE TITAN VANS
   Lightweight proof strip
   ========================================================= */

.service-hero__why {
    position: relative;
    z-index: 2;
    width: calc(100% + 2 * clamp(0.9rem, 2vw, 1.5rem));
    margin-left: calc(-1 * clamp(0.9rem, 2vw, 1.5rem));
    padding: clamp(1.55rem, 2.75vw, 2.5rem) clamp(0.9rem, 2vw, 1.5rem);
    border-top: none;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.0) 100%),
        linear-gradient(180deg, rgba(6, 6, 8, 0.72) 0%, rgba(255, 255, 255, 0.092) 60%, rgba(255, 255, 255, 0.096), 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 -12px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(24px) saturate(160%) brightness(0.88);
    -webkit-backdrop-filter: blur(24px) saturate(160%) brightness(0.88);
}

.service-hero__why::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 30%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.05) 70%,
        transparent 100%
    );
    pointer-events: none;
}

.service-hero__why-stats {
    display: flex;
    align-items: stretch;
    width: min(100%, 90rem);
    margin: 0 auto;
}

.service-hero__why-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
    padding: 0.55rem clamp(0.65rem, 1.25vw, 1.05rem);
    border-radius: 100vmax;
    border: 1px solid transparent;
    cursor: default;
    transition:
        border-color 0.22s ease,
        background-color 0.22s ease;
}

.service-hero__why-stat + .service-hero__why-stat::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 55%;
    background: var(--theme-surface-white-08);
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.service-hero__why-stat--link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.service-hero__why-stat:hover {
    border-color: rgba(255, 255, 255, 0.07);
    background-color: rgba(255, 255, 255, 0.03);
}

.service-hero__why-stat:hover::before,
.service-hero__why-stat:hover + .service-hero__why-stat::before {
    opacity: 0;
}

.service-hero__why-stat strong {
    display: block;
    font-size: clamp(1.3rem, 1.75vw, 1.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--hero-text-strong);
    text-align: center;
}

.service-hero__why-stat span {
    display: block;
    font-size: clamp(0.75rem, 0.875vw, 0.85rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--hero-text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: center;
}

.service-hero__why-bottom {
    display: flex;
    align-items: center;
    gap: 0;
    padding-top: clamp(0.6rem, 0.9vw, 0.78rem);
    min-width: 0;
}

.service-hero__why-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    flex: 1;
    min-width: 0;
    padding: 0.2rem clamp(0.55rem, 1vw, 0.85rem);
}

.service-hero__why-bottom-item + .service-hero__why-bottom-item {
    border-left: 1px solid var(--theme-surface-white-08);
}

.service-hero__why-bottom-item--feature i {
    color: var(--theme-text-eyebrow);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    flex-shrink: 0;
    line-height: 1;
}

.service-hero__why-bottom-item--feature span {
    font-size: clamp(0.6rem, 0.72vw, 0.68rem);
    font-weight: 500;
    color: var(--hero-text-muted);
    line-height: 1.3;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.service-hero__why-bottom-item--brand img {
    display: block;
    width: clamp(2.2rem, 2.8vw, 2.9rem);
    height: clamp(2.2rem, 2.8vw, 2.9rem);
    object-fit: contain;
    filter: saturate(0.78) brightness(0.85);
    transform: translateZ(0);
    transition: filter 0.22s ease, transform 0.22s ease;
}

.service-hero__why-bottom-item--brand img:hover {
    filter: saturate(1) brightness(1);
    transform: translateY(-2px) scale(1.04);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .header.header-img-service {
        padding-top: 6.9rem;
    }
}

@media (max-width: 820px) {
    .header.header-img-service {
        padding-top: var(--service-hero-top-offset-tablet);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .service-hero {
        gap: 1.35rem;
    }

    .service-hero__title {
        font-size: clamp(2.25rem, 7.8vw, 3.7rem);
        line-height: 1.04;
        letter-spacing: -0.044em;
    }

    .service-hero__intro {
        font-size: 0.98rem;
        line-height: 1.62;
    }

    .service-hero__brands,
    .service-hero__why {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .service-hero__why-stats {
        flex-wrap: wrap;
    }

    .service-hero__why-stat {
        flex: 0 0 calc(33.333% - 1px);
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 640px) {
    .header.header-img-service {
        padding-top: var(--service-hero-top-offset-mobile);
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .service-hero__eyebrow,
    .service-hero__brands-label {
        letter-spacing: 0.1em;
    }

.service-hero__title {
        font-size: clamp(2rem, 8.8vw, 3rem);
        line-height: 1.06;
        letter-spacing: -0.038em;
    }

     .service-hero__title::after {
        width: 6.5rem;
        height: 0.2rem;
    }

    .service-hero__actions {
        flex-direction: column;
    }

    .service-hero__button {
        width: 100%;
    }

    .service-hero__why-stat strong {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
    }

    .service-hero__why-stat span {
        font-size: 0.72rem;
        white-space: normal;
    }

    .service-hero__brands,
    .service-hero__why {
        width: calc(100% + 1.7rem);
        margin-left: -0.85rem;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .service-hero__why-stat {
        flex: 0 0 calc(33.333% - 1px);
    }

    /* Reset 820px 3-col rules before applying 2-col pattern */
    .service-hero__why-bottom-item:nth-child(3n + 1) {
        border-left: 1px solid var(--theme-surface-white-08);
    }

    .service-hero__why-bottom-item:nth-child(n + 4) {
        padding-top: 0;
        border-top: none;
    }

    /* 2-col: left column items have no left border */
    .service-hero__why-bottom-item:nth-child(odd) {
        border-left: none;
        padding-left: 0;
    }

    /* Row 2+ gets top separator */
    .service-hero__why-bottom-item:nth-child(n + 3) {
        padding-top: clamp(0.4rem, 0.7vw, 0.55rem);
        border-top: 1px solid var(--theme-surface-white-08);
    }
}

@media (max-width: 420px) {
    .header.header-img-service {
        padding:
            7rem
            0.7rem
            2.2rem;
    }

    .service-hero {
        gap: 1rem;
    }

    .service-hero__eyebrow {
        font-size: 0.74rem;
    }

.service-hero__title {
        font-size: clamp(1.85rem, 9.6vw, 2.45rem);
        line-height: 1.08;
        letter-spacing: -0.032em;
    }

    .service-hero__intro {
        font-size: 0.93rem;
        line-height: 1.55;
    }

    .service-hero__why-stat strong {
        font-size: 1.05rem;
    }
}