/* Shared styles for the Powersports Trader landing pages (ATV/UTV, Cycle, PWC, Snowmobile).
   Copied from the Powersports layout; Powersports keeps its own copy and is not affected. */

:root {
    --ps-navy: #07223b;
    --ps-navy-2: #0d3a5c;
    --ps-green: #0bae5a;
    --ps-green-dark: #088f49;
    --ps-ink: #0f2a40;
    --ps-muted: #5b6b7a;
}

/* Navbar phone */
.ps-nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    margin-right: 1.25rem;
    color: var(--ps-ink);
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
}

    .ps-nav-phone:hover,
    .ps-nav-phone:focus-visible {
        color: var(--ps-green-dark);
    }

    .ps-nav-phone small {
        display: block;
        color: var(--ps-muted);
        font-size: 0.75rem;
        font-weight: 500;
    }

.ps-nav-phone-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--ps-green);
    color: #ffffff;
    font-size: 1.05rem;
}

.ps-nav-phone-mobile {
    margin-right: 0.5rem;
    margin-left: auto;
}

.ps-nav-apply-mobile {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-right: 0.5rem;
    padding: 0 1.1rem;
    font-weight: 700;
}

/* Small phones: keep logo, phone, Apply and menu on one row. */
@media (max-width: 359.98px) {
    .navbar-brand {
        margin-right: 0.25rem;
    }

    .ps-nav-phone-mobile,
    .ps-nav-apply-mobile {
        margin-right: 0.35rem;
    }

    .ps-nav-apply-mobile {
        padding: 0 0.75rem;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
}

/* Powersports hero: always fits the screen on desktop/tablet (see fitHero script). */
.hero-section {
    --ps-nav-h: 97px;
    --ps-photo-h: clamp(96px, calc(100vh - var(--ps-nav-h) - 470px), 260px);
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--ps-nav-h));
    overflow: hidden;
    background: var(--ps-navy);
    color: #ffffff;
    padding: clamp(1.5rem, 4vh, 3rem) 0;
}

    .hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background:
            linear-gradient(0deg, rgba(7, 34, 59, 0.95) 0%, rgba(7, 34, 59, 0) 55%),
            linear-gradient(90deg, rgba(7, 34, 59, 0.88) 0%, rgba(7, 34, 59, 0.8) 50%, rgba(7, 34, 59, 0.88) 100%);
    }

.ps-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.ps-hero-bg-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.8s ease, transform 6s ease-out;
}

    .ps-hero-bg-slide.is-active {
        opacity: 1;
        transform: scale(1);
    }

.hero-title {
    max-width: 24ch;
    margin: 0 auto 1.25rem;
    text-align: center;
    font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3rem);
    line-height: 1.12;
    text-wrap: balance;
    hyphens: none;
    -webkit-hyphens: none;
}

.ps-hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem clamp(0.75rem, 3vw, 2.5rem);
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    text-align: center;
}

    .ps-hero-points li {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        font-size: clamp(0.9rem, 0.8rem + 0.45vw, 1.2rem);
        font-weight: 700;
        line-height: 1.3;
        text-wrap: balance;
    }

    .ps-hero-points .bi {
        color: var(--ps-green);
        font-size: 1.75em;
        line-height: 1;
    }

/* Single-product hero (Trader pages): brand logo chip + one CTA. */
.ps-hero-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

    .ps-hero-brand img {
        display: block;
        width: auto;
        height: 36px;
    }

.ps-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 2rem;
    padding: 0.75rem 2.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Large screens: plenty of room, so title and each point fit on one line. */
@media (min-width: 1200px) {
    .hero-section .hero-title {
        max-width: none;
    }

    .hero-section .ps-hero-points {
        max-width: 1100px;
    }

        .hero-section .ps-hero-points li {
            white-space: nowrap;
        }

            .hero-section .ps-hero-points li br {
                display: none;
            }
}

@media (min-width: 992px) {
    .ps-hero-cta {
        min-height: 64px;
        margin-top: 3rem;
        padding: 0.9rem 4rem;
        border-radius: 14px;
        font-size: 1.45rem;
    }
}

@media (max-width: 575.98px) {
    .ps-hero-brand img {
        height: 28px;
    }

    .ps-hero-cta {
        width: 100%;
    }
}

.ps-picker-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: clamp(1.25rem, 3.5vh, 2.5rem) 0 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

    .ps-picker-heading::before,
    .ps-picker-heading::after {
        content: "";
        flex-grow: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
    }

.powersport-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    color: var(--ps-ink);
    text-decoration: none;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

    .powersport-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
        color: var(--ps-ink);
    }

    .powersport-card:focus-visible {
        outline: 3px solid #ffffff;
        outline-offset: 3px;
    }

.powersport-card-media {
    position: relative;
    height: var(--ps-photo-h);
    overflow: hidden;
    background: var(--ps-navy-2);
}

.powersport-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.powersport-card:hover .powersport-card-photo {
    transform: scale(1.05);
}

.powersport-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 34, 59, 0) 45%, rgba(7, 34, 59, 0.85) 100%);
}

.powersport-card-title {
    position: absolute;
    left: 0.9rem;
    bottom: 0.7rem;
    z-index: 1;
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

.powersport-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.75rem;
    padding: 0.9rem;
}

.powersport-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border: 1px dashed #b8c2cc;
    border-radius: 0.5rem;
    color: var(--ps-ink);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

    .powersport-card-logo.has-logo {
        border-color: transparent;
    }

    /* Cap width too, so wide wordmarks (Cycle Trader) carry the same visual weight. */
    .powersport-card-logo img {
        display: block;
        width: auto;
        height: auto;
        max-width: min(100%, 130px);
        max-height: 28px;
    }

.powersport-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    margin-top: auto;
    border-radius: 0.6rem;
    background: var(--ps-green);
    color: #ffffff;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.powersport-card:hover .powersport-card-cta {
    background: var(--ps-green-dark);
}

/* Section headings: same voice as the hero (green eyebrow + strong navy title + accent bar). */
.ps-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #067a3d;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

    .ps-eyebrow::before {
        content: "";
        width: 2rem;
        height: 2px;
        background: currentColor;
    }

.text-center .ps-eyebrow::after,
.ps-eyebrow.is-centered::after {
    content: "";
    width: 2rem;
    height: 2px;
    background: currentColor;
}

.ps-section-title {
    position: relative;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    color: var(--ps-ink);
    font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
}

    .ps-section-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 3.5rem;
        height: 4px;
        border-radius: 2px;
        background: var(--ps-green);
    }

.text-center .ps-section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Closing CTA: photo band with navy overlay, centered copy. */
.ps-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(4rem, 9vw, 7rem) 0;
    background-color: var(--ps-navy);
    background-position: center;
    background-size: cover;
    color: #ffffff;
    text-align: center;
}

    .ps-cta::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background:
            radial-gradient(circle at 50% 120%, rgba(11, 174, 90, 0.28) 0%, rgba(11, 174, 90, 0) 55%),
            linear-gradient(180deg, rgba(7, 34, 59, 0.86) 0%, rgba(7, 34, 59, 0.9) 100%);
    }

    .ps-cta .ps-eyebrow {
        color: #5fd89a;
    }

    .ps-cta .ps-section-title {
        color: #ffffff;
        font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
    }

    .ps-cta .lead {
        max-width: 40rem;
        margin-right: auto;
        margin-left: auto;
        color: rgba(255, 255, 255, 0.9);
    }

.ps-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2rem;
    margin-top: 2rem;
}

    .ps-cta-actions .btn-green {
        min-height: 52px;
        padding: 0.75rem 2.5rem;
        font-size: 1.15rem;
        font-weight: 700;
    }

/* Application form: section bars (original VRF concept, in this page's style). */
.ps-form-bar {
    margin: 0 0 1.25rem;
    padding: 0.8rem 1.1rem;
    border-radius: 0.4rem;
    background: var(--ps-navy);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.ps-form-subbar {
    margin: 0 0 1rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.4rem;
    background: #eef3f7;
    color: var(--ps-ink);
    font-size: 1rem;
    font-weight: 700;
}

    .ps-form-subbar i {
        color: var(--ps-muted);
        font-weight: 500;
    }

/* Footer */
.ps-footer {
    padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
    border-top: 4px solid var(--ps-green);
    background: #f3f6f9;
    color: var(--ps-ink);
    font-size: 0.95rem;
}

.ps-footer-logo {
    width: auto;
    height: 49px;
    margin-bottom: 1rem;
}

.ps-footer-tagline {
    max-width: 22rem;
    margin-bottom: 1.25rem;
    color: var(--ps-muted);
    line-height: 1.6;
}

.ps-footer-heading {
    margin-bottom: 1.25rem;
    color: var(--ps-ink);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ps-footer-contact {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .ps-footer-contact li {
        display: flex;
        align-items: flex-start;
        gap: 0.85rem;
        font-weight: 700;
    }

    .ps-footer-contact small {
        display: block;
        margin-bottom: 0.1rem;
        color: var(--ps-muted);
        font-size: 0.8rem;
        font-weight: 500;
    }

    .ps-footer-contact a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        color: var(--ps-ink);
        text-decoration: none;
    }

.ps-footer .btn-green {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    font-weight: 700;
}

        .ps-footer-contact a:hover,
        .ps-footer-contact a:focus-visible {
            color: #067a3d;
            text-decoration: underline;
        }

.ps-footer-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(11, 174, 90, 0.12);
    color: #067a3d;
}

.ps-footer-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

    .ps-footer-badges img {
        width: auto;
        max-width: 110px;
        height: auto;
        max-height: 64px;
        padding: 0.5rem;
        border-radius: 0.6rem;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(15, 42, 64, 0.08);
        object-fit: contain;
    }

.ps-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: clamp(2rem, 5vw, 3rem);
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 42, 64, 0.12);
    color: var(--ps-muted);
    font-size: 0.85rem;
}

    .ps-footer-bottom a {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        min-height: 44px;
        color: var(--ps-ink);
        font-weight: 700;
        text-decoration: none;
    }

/* Tablets: 5 narrow cards in one row. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .powersport-card-title {
        left: 0.6rem;
        bottom: 0.5rem;
        font-size: 0.95rem;
    }

    .powersport-card-body {
        gap: 0.5rem;
        padding: 0.6rem;
    }

    .powersport-card-cta {
        font-size: 0.9rem;
    }
}

/* Phones: compact rows (thumbnail + name/logo/CTA) keep all 5 options near the fold. */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 0;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .ps-picker-heading {
        margin-top: 2rem;
    }

    .powersport-card {
        display: grid;
        grid-template-columns: 112px 1fr;
        grid-template-rows: auto auto 1fr;
        column-gap: 0.9rem;
        row-gap: 0.4rem;
        padding: 0.6rem;
    }

        .powersport-card:hover {
            transform: none;
        }

    .powersport-card-media,
    .powersport-card-body {
        display: contents;
    }

        .powersport-card-media::after {
            content: none;
        }

    .powersport-card-photo {
        grid-column: 1;
        grid-row: 1 / span 3;
        height: 100%;
        min-height: 100px;
        border-radius: 0.6rem;
    }

    .powersport-card-title {
        position: static;
        grid-column: 2;
        grid-row: 1;
        color: var(--ps-ink);
        font-size: 1.05rem;
    }

    .powersport-card-logo {
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-start;
        min-height: 1.75rem;
    }

        .powersport-card-logo:not(.has-logo) {
            justify-content: center;
        }

        .powersport-card-logo img {
            max-height: 22px;
        }

    .powersport-card-cta {
        grid-column: 2;
        grid-row: 3;
        align-self: end;
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .powersport-card,
    .powersport-card-photo,
    .ps-hero-bg-slide {
        transition: none;
    }

    .ps-hero-bg-slide {
        transform: none;
    }

        .powersport-card:hover,
        .powersport-card:hover .powersport-card-photo {
            transform: none;
        }
}

/* ===== Trader hero, BoatMart layout: left-aligned copy, photo visible on the right ===== */
.hero-section.ps-hero-left {
    justify-content: center;
}

    .hero-section.ps-hero-left .ps-hero-bg-slide {
        background-position: right 82%;
        transform-origin: right bottom;
    }

    /* Lighter overlay than the centered hero: dark only behind the text (left), photo shows on the right. */
    .hero-section.ps-hero-left::before {
        background:
            linear-gradient(0deg, rgba(7, 34, 59, 0.55) 0%, rgba(7, 34, 59, 0) 35%),
            linear-gradient(90deg, rgba(7, 34, 59, 0.82) 0%, rgba(7, 34, 59, 0.6) 45%, rgba(7, 34, 59, 0.15) 100%);
    }

    .ps-hero-left .hero-title {
        max-width: 14ch;
        margin: 0 0 1.5rem;
        text-align: left;
        font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.75rem);
        line-height: 1.12;
    }

.ps-hero-list {
    margin: 0;
    padding-left: 1.5rem;
    text-align: left;
}

    .ps-hero-list li {
        margin-bottom: 0.65rem;
        font-size: clamp(1.1rem, 0.9rem + 0.65vw, 1.5rem);
        font-weight: 700;
        line-height: 1.35;
    }

        .ps-hero-list li::marker {
            color: #ffffff;
        }

.ps-hero-left .ps-hero-cta {
    margin-top: 2rem;
}

.ps-hero-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: clamp(2.5rem, 9vh, 6rem);
}

.ps-hero-call > span {
    display: block;
    font-size: 0.95rem;
}

.ps-hero-call a {
    white-space: nowrap;
    color: #ffffff;
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem);
    font-weight: 700;
    text-decoration: none;
}

    .ps-hero-call a:hover,
    .ps-hero-call a:focus-visible {
        text-decoration: underline;
    }

/* White pill with the Trader brand + Vantage (same concept as the BoatMart lockup). */
.ps-partner-lockup {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

    /* Mobile/tablet: small Trader badge only (Vantage is already in the navbar), so the headline leads. */
    .ps-partner-lockup.ps-partner-lockup-mobile {
        margin-bottom: 1rem;
        padding: 0.4rem 0.85rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

        .ps-partner-lockup.ps-partner-lockup-mobile .ps-partner-logo {
            height: 20px;
        }

.ps-partner-logo {
    display: block;
    width: auto;
    height: 40px;
}



@media (max-width: 575.98px) {
    .ps-hero-left .ps-hero-cta {
        width: 100%;
    }

    .ps-partner-lockup {
        gap: 0.85rem;
        padding: 0.6rem 1.1rem;
    }

    .ps-partner-logo {
        height: 26px;
    }

    /* Lighter mobile hero: one strong element (title), softer points, more air, no duplicated call link. */
    .hero-section.ps-hero-left {
        padding-top: 2.75rem;
        padding-bottom: 3rem;
    }

    .ps-hero-left .hero-title {
        margin-bottom: 1.25rem;
        font-size: 1.75rem;
        line-height: 1.18;
    }

    .ps-hero-list {
        padding-left: 1.2rem;
    }

        .ps-hero-list li {
            margin-bottom: 0.5rem;
            font-size: 1rem;
            font-weight: 500;
            line-height: 1.45;
        }

    .ps-hero-left .ps-hero-cta {
        margin-top: 1.75rem;
        min-height: 50px;
        font-size: 1.1rem;
    }

    /* Phone is already in the navbar on mobile. */
    .ps-hero-footer {
        display: none;
    }
}

/* ===== Trader hero: five photo-only cards (no white body, no per-card CTA) + one Apply button ===== */
.ps-ride-cards {
    margin-top: clamp(1.25rem, 3.5vh, 2.25rem);
}

.ps-card-photo-only {
    cursor: default;
}

    .ps-card-photo-only:hover {
        transform: none;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    }

        .ps-card-photo-only:hover .powersport-card-photo {
            transform: none;
        }

.ps-ride-cards + .ps-hero-cta {
    margin-top: clamp(1.5rem, 4vh, 2.5rem);
}

/* Phones: keep photo cards (3 + 2 grid) instead of the row layout used by the old clickable cards. */
@media (max-width: 767.98px) {
    .powersport-card.ps-card-photo-only {
        display: block;
        padding: 0;
    }

    .ps-card-photo-only .powersport-card-media {
        display: block;
        position: relative;
        height: 96px;
    }

        .ps-card-photo-only .powersport-card-media::after {
            content: "";
        }

    .ps-card-photo-only .powersport-card-photo {
        height: 100%;
        min-height: 0;
        border-radius: 0;
    }

    .ps-card-photo-only .powersport-card-title {
        position: absolute;
        left: 0.5rem;
        bottom: 0.4rem;
        color: #ffffff;
        font-size: 0.85rem;
    }
}
