/* ==========================================================================
   Motomarine v3 · Hero
   Base: full-bleed image with navy overlay, left-aligned content.
   Modifiers: --center, --slider (background images crossfade via
   .cs-hero__slides, text fixed), --video (background <video> + stats row),
   --brand (copy + phone row beside a big white brand logo).
   ========================================================================== */

.cs-hero {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
    background: var(--heading);
    color: rgba(255, 255, 255, .78);
}
.cs-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cs-hero__bg img,
.cs-hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cs-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(15, 23, 43, .95) 0%, rgba(15, 23, 43, .78) 50%, rgba(15, 23, 43, .5) 100%);
}
.cs-hero .cs-container {
    position: relative;
    z-index: 2;
}
.cs-hero__inner {
    max-width: 680px;
}
.cs-hero .head-label {
    display: block;
    margin-bottom: 14px;
    color: var(--primary-on-dark);
}
.cs-hero h1 {
    color: var(--white);
    font-size: clamp(2.4375rem, 4.6vw, 3.9375rem);
    line-height: 1.06;
    margin-bottom: 22px;
}
.cs-hero .lead {
    color: rgba(255, 255, 255, .82);
    margin-bottom: 36px;
    max-width: 620px;
}
.cs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Inline check list under the actions (styleguide .cs-list, light text on the overlay) */
.cs-hero ul.cs-hero__list {
    margin-top: 32px;
}
.cs-hero__list li {
    color: rgba(255, 255, 255, .85);
}
.cs-hero h1,
.cs-hero .h1 {
    text-transform: uppercase;
    /* Uppercase lines wrap unevenly, so balance them and cap the measure */
    text-wrap: balance;
    letter-spacing: -.2px;
    max-width: 19ch;
}
.cs-hero--center h1,
.cs-hero--center .h1 {
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
}
.cs-hero--center ul.cs-hero__list {
    justify-content: center;
}

/* --- Centered --- */
.cs-hero--center {
    text-align: center;
}
.cs-hero--center::after {
    background: linear-gradient(180deg, rgba(15, 23, 43, .97) 0%, rgba(15, 23, 43, .85) 25%, rgba(15, 23, 43, .68) 55%, rgba(15, 23, 43, .88) 100%);
}
.cs-hero--center .cs-hero__inner {
    max-width: 800px;
    margin-inline: auto;
}
.cs-hero--center .lead {
    margin-inline: auto;
    max-width: 640px;
}
.cs-hero--center .cs-hero__actions {
    justify-content: center;
}

/* --- Video: stats row (uses .cs-stat-row from stats.css) --- */
.cs-hero .cs-stat-row {
    margin-top: 56px;
}

/* --- Background slider: images crossfade, content stays fixed --- */
.cs-hero__slides img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.cs-hero__slides img.is-active {
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .cs-hero {
        padding: 120px 0;
    }
    .cs-hero .cs-stat-row {
        margin-top: 40px;
    }
}
/* Phones: every hero is centred */
@media (max-width: 767px) {
    .cs-hero {
        text-align: center;
    }
    .cs-hero__inner {
        margin-inline: auto;
    }
    .cs-hero .lead {
        margin-inline: auto;
    }
    .cs-hero__actions,
    .cs-hero ul.cs-hero__list,
    .cs-hero .cs-stat-row {
        justify-content: center;
    }
    .cs-hero .cs-stat {
        text-align: center;
    }
}
@media (max-width: 575px) {
    .cs-hero {
        padding: 56px 0;
    }
    .cs-hero .head-label {
        margin-bottom: 12px;
    }
    .cs-hero h1 {
        font-size: 2rem;
        margin-bottom: 14px;
    }
    .cs-hero .lead {
        margin-bottom: 22px;
    }
    .cs-hero__actions {
        gap: 10px;
    }
    .cs-hero__actions .cs-btn {
        width: 100%;
    }
    /* Check list stays inline and wraps onto a second line */
    .cs-hero ul.cs-hero__list {
        flex-wrap: nowrap;
        justify-content: center;
        margin-top: 20px;
        gap: 0 12px;
    }
    .cs-hero__list li {
        gap: 7px;
        font-size: 12px;
        white-space: nowrap;
    }
    .cs-hero__list li span {
        min-width: 0;
    }
    .cs-hero__list li i {
        width: 18px;
        height: 18px;
        min-width: 18px;
        font-size: 10px;
    }
    /* Stats stay on one line: three equal columns, no dividers */
    .cs-hero .cs-stat-row {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 12px;
        margin-top: 28px;
    }
    .cs-hero .cs-stat-row .cs-stat {
        flex: 1 1 0;
        min-width: 0;
    }
    .cs-hero .cs-stat__num {
        font-size: 1.625rem;
        margin-bottom: 4px;
    }
    .cs-hero .cs-stat__label {
        font-size: 12px;
        line-height: 1.3;
    }
}

/* --- Brand club: copy left, big white brand logo right, phone row (from a River City Marine screenshot) --- */
.cs-hero--brand {
    padding: 80px 0;
}
.cs-hero--brand::after {
    background: rgba(15, 23, 43, .78);
}
.cs-hero--brand .cs-hero__inner {
    max-width: none;
}
.cs-hero--brand h1 {
    margin-bottom: 20px;
    font-size: clamp(2.25rem, 3.6vw, 3.25rem);
}
.cs-hero--brand .lead {
    margin-bottom: 20px;
    max-width: none;
    color: var(--white);
}
.cs-hero--brand p {
    max-width: 620px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .82);
}
.cs-hero--brand .cs-hero__actions {
    align-items: center;
    gap: 16px 28px;
    margin-top: 28px;
}
.cs-hero__call {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
}
.cs-hero__call-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    font-size: 20px;
    color: var(--white);
    transition: var(--transition);
}
.cs-hero__call:hover .cs-hero__call-icon {
    background: var(--primary-hover);
}
.cs-hero__call-body {
    display: flex;
    flex-direction: column;
    gap: 4px 0;
    line-height: 1.2;
}
.cs-hero__call-body small {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}
.cs-hero__call-body strong {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}
.cs-hero__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cs-hero__brand img {
    width: auto;
    max-width: 75%;
    height: auto;
}
@media (max-width: 991px) {
    .cs-hero--brand {
        padding: 64px 0;
    }
    .cs-hero__brand {
        padding: 8px 0 0;
    }
    .cs-hero__brand img {
        max-width: 280px;
    }
}
@media (max-width: 575px) {
    .cs-hero--brand {
        padding: 48px 0;
    }
    .cs-hero__call-body strong {
        font-size: 18px;
    }
    .cs-hero__brand img {
        max-width: 260px;
    }
}

/* Hero under an overlay header: clear the bar that sits on top of it */
.cs-overlaybar ~ main .cs-hero {
    padding-top: 220px;
    padding-bottom: 105px;
}
@media (max-width: 1050px) {
    .cs-overlaybar ~ main .cs-hero {
        padding-top: 190px;
    }
}
@media (max-width: 575px) {
    .cs-overlaybar ~ main .cs-hero {
        padding-top: 165px;
        padding-bottom: 55px;
    }
}
@media (max-width: 360px) {
    .cs-hero ul.cs-hero__list {
        gap: 0 8px;
    }
    .cs-hero__list li {
        font-size: 11px;
        gap: 5px;
    }
}

/* --- Hero background anchored to the left of the frame --- */
.cs-hero__bg--left img {
    object-position: left center;
}
.cs-hero__bg--right img {
    object-position: right center;
}

/* Uppercase hero headings: on small screens let the container set the measure */
@media (max-width: 991px) {
    .cs-hero h1,
    .cs-hero .h1,
    .cs-hero--center h1,
    .cs-hero--center .h1 {
        max-width: none;
    }
}

/* ---------- Stats hero: figure strip in place of the check list ---------- */
.cs-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    margin-top: 32px;
}
.cs-hero__fact strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}
.cs-hero__fact span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}
@media (max-width: 767px) {
    .cs-hero__facts {
        gap: 16px 28px;
        margin-top: 28px;
    }
    .cs-hero__fact strong {
        font-size: 26px;
    }
    .cs-hero__fact span {
        font-size: 11px;
    }
}

/* ---------- Stats hero sits a little tighter than the tall image heroes ---------- */
.cs-hero:has(.cs-hero__facts) {
    padding: 104px 0;
}
@media (max-width: 991px) {
    .cs-hero:has(.cs-hero__facts) {
        padding: 88px 0;
    }
}
@media (max-width: 767px) {
    .cs-hero:has(.cs-hero__facts) {
        padding: 64px 0;
    }
}

/* Review badge sitting at the end of the stats strip */
.cs-hero__fact--review {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: center;
}
.cs-hero__fact--review .cs-hero__stars {
    margin: 0;
    font-size: 15px;
    letter-spacing: 2px;
    line-height: 1;
    color: #f5b301;
}
.cs-hero__fact--review > span:last-child {
    margin: 0;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: none;
    color: rgba(255, 255, 255, .72);
}
.cs-hero__fact--review strong {
    display: inline;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}


/* ==========================================================================
   v5 · Modern heroes (.cs-hero--modern on every hero module)
   Eyebrow in a frosted pill with a live dot, tighter heading, a frosted review card and a soft ring pulsing on
   the call icon. The photo itself is left clean.
   ========================================================================== */
.cs-hero--modern .head-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px 8px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 40px;
    color: var(--white);
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.cs-hero--modern .head-label::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .3);
}
.cs-hero--modern h1 {
    letter-spacing: -1px;
    text-wrap: balance;
}
.cs-hero--modern .cs-hero__fact--review {
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 40px;
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.cs-hero--modern .cs-hero__call-icon {
    position: relative;
}
.cs-hero--modern .cs-hero__call-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: cs-hero-pulse 2.2s ease-out infinite;
}
@keyframes cs-hero-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), .5);
    }
    100% {
        box-shadow: 0 0 0 14px rgba(var(--primary-rgb), 0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .cs-hero--modern .cs-hero__call-icon::after {
        animation: none;
    }
}
