/* ==========================================================================
   Motomarine v3 · Footer
   Dark by default (navy-black surface). Variants: --light (soft gray),
   --bg (image with navy overlay + centered CTA block on top).
   Column titles use .cs-footer__title; grids: default 4-col, --5 five-col.
   ========================================================================== */

.cs-footer {
    position: relative;
    background: var(--heading);
    color: rgba(255, 255, 255, .72);
    padding: 85px 0 0;
    font-size: 15px;
}
.cs-footer a:not(.cs-btn) {
    color: rgba(255, 255, 255, .72);
}
.cs-footer a:not(.cs-btn):hover {
    color: var(--white);
}
.cs-footer .cs-logo__img--dark {
    display: none;
}
.cs-footer .cs-logo__img--light {
    display: block;
}

/* Column title */
.cs-footer__title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin: 0 0 22px;
}
.cs-footer__title::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 10px;
    background: rgba(255, 255, 255, .2);
}

/* ---------- Main grid ---------- */
.cs-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 63px;
}
.cs-footer__grid--5 {
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1.2fr;
    gap: 40px;
}
.cs-footer__grid > * {
    min-width: 0;
}

/* About column */
.cs-footer__about p {
    color: rgba(255, 255, 255, .72);
    line-height: 1.6;
    margin: 22px 0 26px;
    max-width: 340px;
}
.cs-footer .cs-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    border-radius: 0;
}
.cs-footer .cs-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Link list */
.cs-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cs-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.cs-footer__links a:hover {
    padding-left: 4px;
}

/* Contact list — square icon box + label + value */
.cs-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cs-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.cs-footer__ci {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 24px;
}
.cs-footer__ci i {
    display: flex;
    line-height: 1;
}
.cs-footer__contact small {
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .5);
    line-height: 1;
    margin-bottom: 5px;
}
.cs-footer__contact .val,
.cs-footer__contact .val a {
    font-family: var(--font-heading);
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
}

/* Opening hours */
.cs-footer__hours {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cs-footer__hours li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.cs-footer__hours li:first-child {
    padding-top: 0;
}
.cs-footer__hours li:last-child {
    border-bottom: none;
}
/* Optional action under the hours list */
.cs-footer__hours + .cs-btn {
    margin-top: 20px;
}
.cs-footer__hours .time {
    color: var(--white);
    font-weight: 500;
    text-align: right;
}
.cs-footer__hours .time.closed {
    color: var(--primary-on-dark);
}
.cs-footer--light .cs-footer__hours .time.closed {
    color: var(--primary-ink);
}

/* ---------- Bottom bar ---------- */
.cs-footer__bottom {
    display: flex;
    align-items: center;
    gap: 16px 0;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
}
.cs-footer__bottom > span:first-child {
    margin-right: auto;
}
.cs-footer__bottom ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cs-footer__bottom ul li:not(:first-child)::before,
.cs-footer__credit::before {
    content: '·';
    color: rgba(255, 255, 255, .35);
    margin: 0 10px;
}
.cs-footer__credit a {
    font-weight: 500;
}

/* ---------- Variant: image background + CTA block on top ---------- */
.cs-footer--bg {
    padding-top: 0;
}
.cs-footer__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cs-footer__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cs-footer__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 43, .82) 0%, rgba(15, 23, 43, .96) 100%);
}
.cs-footer--bg > .cs-container,
.cs-footer__cta {
    position: relative;
    z-index: 1;
}
.cs-footer__cta {
    text-align: center;
    padding: 88px 0;
    margin-bottom: 72px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.cs-footer__cta .head-label {
    color: var(--primary-on-dark);
}
.cs-footer__cta h2 {
    color: var(--white);
    margin-bottom: 12px;
}
.cs-footer__cta p {
    color: rgba(255, 255, 255, .72);
    max-width: 560px;
    margin: 0 auto;
}
.cs-footer__cta .cs-btn-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* ---------- Variant: CTA band, no photo ---------- */
.cs-footer--cta {
    padding-top: 0;
}
.cs-footer__ctabar {
    /* A touch lighter than the footer so the band reads as its own strip */
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 56px 0;
    margin-bottom: 72px;
}
.cs-footer__ctabar > .cs-container,
.cs-footer__ctabar > .cs-container--wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px 48px;
}
.cs-footer__ctabar .head-label {
    color: var(--primary-on-dark);
}
.cs-footer__ctabar h2 {
    color: var(--white);
    margin-bottom: 10px;
}
.cs-footer__ctabar p {
    color: rgba(255, 255, 255, .72);
    max-width: 520px;
    margin: 0;
}
.cs-footer__ctabar .cs-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

/* ---------- Variant: light ---------- */
.cs-footer--light {
    background: var(--light-bg);
    color: var(--muted);

}
.cs-footer--light a:not(.cs-btn) {
    color: var(--muted);
}
.cs-footer--light a:not(.cs-btn):hover {
    color: var(--primary);
}
.cs-footer--light .cs-logo__img--dark {
    display: block;
}
.cs-footer--light .cs-logo__img--light {
    display: none;
}
.cs-footer--light .cs-footer__title {
    color: var(--heading);
}
.cs-footer--light .cs-footer__title::after {
    background: var(--border-strong);
}
.cs-footer--light .cs-footer__about p {
    color: var(--muted);
}
.cs-footer--light .cs-social a {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--heading);
}
.cs-footer--light .cs-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.cs-footer--light .cs-footer__contact small {
    color: var(--muted);
}
.cs-footer--light .cs-footer__contact .val,
.cs-footer--light .cs-footer__contact .val a {
    color: var(--heading);
}
.cs-footer--light .cs-footer__hours li {
    border-color: var(--border);
}
.cs-footer--light .cs-footer__hours .time {
    color: var(--heading);
}
.cs-footer--light .cs-footer__bottom {
    border-top-color: var(--border);
    color: var(--muted);
}
.cs-footer--light .cs-footer__bottom ul li:not(:first-child)::before,
.cs-footer--light .cs-footer__credit::before {
    color: var(--border-strong);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .cs-footer__grid--5 {
        grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    }
    .cs-footer__grid--5 > :nth-child(5) {
        grid-column: 2 / -1;
    }
}
@media (max-width: 991px) {
    .cs-footer {
        padding-top: 40px;
    }
    .cs-footer--bg {
        padding-top: 0;
    }
    .cs-footer__grid,
    .cs-footer__grid--5 {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
        padding-bottom: 48px;
    }
    .cs-footer__grid--5 > :nth-child(5) {
        grid-column: auto;
    }
    /* Tablet: about block centred across the full width, the link columns in two columns below */
    .cs-footer__about {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cs-footer__about p {
        max-width: 520px;
    }
    .cs-footer__cta {
        padding: 64px 0;
        margin-bottom: 48px;
    }
}
@media (max-width: 575px) {
    .cs-footer__grid,
    .cs-footer__grid--5 {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .cs-footer__about p {
        max-width: none;
    }
    .cs-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding: 20px 0;
    }
    .cs-footer__bottom > span:first-child {
        margin-right: 0;
    }
    .cs-footer__bottom ul {
        justify-content: center;
    }
    .cs-footer__credit::before {
        display: none;
    }
    .cs-footer__cta .cs-btn-row .cs-btn {
        width: 100%;
    }
}

/* ---------- Phones: link columns collapse into an accordion ---------- */
@media (max-width: 575px) {
    .cs-footer__grid,
    .cs-footer__grid--5 {
        gap: 0;
        padding-bottom: 0;
    }
    .cs-footer__grid > *:last-child:has(> .cs-footer__title) {
        border-bottom: 0;
    }
    .cs-footer__grid > *:has(> .cs-footer__title) {
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }
    .cs-footer__grid > *:has(> .cs-footer__title):first-child,
    .cs-footer__about + *:has(> .cs-footer__title) {
        border-top: 1px solid rgba(255, 255, 255, .12);
    }
    .cs-footer__title {
        position: relative;
        margin: 0;
        padding: 15px 30px 15px 0;
        cursor: pointer;
    }
    .cs-footer__title::after {
        content: '\f282';
        font-family: 'bootstrap-icons';
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 20px;
        height: 100%;
        margin: 0;
        background: none;
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0;
        color: rgba(255, 255, 255, .6);
        transition: transform .25s var(--ease-out);
    }
    .cs-footer__grid > .is-open > .cs-footer__title::after {
        transform: rotate(180deg);
    }
    /* Light footer: the accordion chevron and rules follow the light palette */
    .cs-footer--light .cs-footer__title::after {
        background: none;
        color: var(--muted);
    }
    .cs-footer--light .cs-footer__grid > *:has(> .cs-footer__title) {
        border-bottom-color: var(--border);
    }
    .cs-footer--light .cs-footer__grid > *:has(> .cs-footer__title):first-child,
    .cs-footer--light .cs-footer__about + *:has(> .cs-footer__title) {
        border-top-color: var(--border);
    }
    .cs-footer__grid > *:has(> .cs-footer__title) > :not(.cs-footer__title) {
        display: none;
    }
    .cs-footer__grid > .is-open > :not(.cs-footer__title) {
        display: block;
        padding-top: 8px;
        padding-bottom: 26px;
    }
    .cs-footer__grid > .is-open .cs-footer__links,
    .cs-footer__grid > .is-open .cs-footer__contact,
    .cs-footer__grid > .is-open .cs-footer__hours {
        display: flex;
        flex-direction: column;
    }
    .cs-footer__grid > .is-open .cs-footer__links {
        gap: 10px;
    }
    .cs-footer__grid > .is-open .cs-footer__contact {
        gap: 16px;
    }
    .cs-footer__grid > .is-open .cs-footer__contact small {
        margin-bottom: 5px;
    }
    .cs-footer__grid > .is-open .cs-footer__hours li {
        padding: 10px 0;
    }
    .cs-footer__about {
        padding-bottom: 32px;
    }
}

@media (max-width: 991px) {
    .cs-footer__ctabar > .cs-container {
        display: block;
    }
    .cs-footer__ctabar .cs-btn-row {
        margin-top: 24px;
    }
}
@media (max-width: 767px) {
    .cs-footer__ctabar {
        padding: 40px 0;
        margin-bottom: 48px;
    }
    .cs-footer__ctabar .cs-btn-row .cs-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   v5 · Modern footer (.cs-footer--modern on every footer module)
   Soft glow and a corner of dots on the dark footers, links that slide in
   behind a short red dash, round social chips that lift, round contact
   icons, dotted leaders in the opening hours and a fading rule over the
   bottom bar.
   ========================================================================== */
.cs-footer--modern {
    overflow: hidden;
    isolation: isolate;
}
.cs-footer--modern:not(.cs-footer--light):not(.cs-footer--bg) {
    background:
        radial-gradient(60% 50% at 0% 0%, rgba(41, 64, 111, .55), transparent 70%),
        radial-gradient(40% 40% at 100% 100%, rgba(var(--primary-rgb), .12), transparent 70%),
        var(--heading);
}
.cs-footer--modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    width: 240px;
    height: 240px;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1.5px, transparent 1.6px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(225deg, #000, transparent 70%);
    mask-image: linear-gradient(225deg, #000, transparent 70%);
    pointer-events: none;
}
.cs-footer--modern.cs-footer--bg::before {
    content: none;
}
.cs-footer--modern.cs-footer--light::before {
    background-image: radial-gradient(rgba(41, 64, 111, .2) 1.5px, transparent 1.6px);
}
.cs-footer--modern .cs-footer__title::after {
    width: 24px;
    background: var(--primary);
}
.cs-footer--modern .cs-footer__links a {
    gap: 0;
}
.cs-footer--modern .cs-footer__links a::before {
    content: '';
    width: 0;
    height: 2px;
    margin-right: 0;
    background: var(--primary);
    transition: width .25s var(--ease-out), margin .25s var(--ease-out);
}
.cs-footer--modern .cs-footer__links a:hover {
    padding-left: 0;
}
.cs-footer--modern .cs-footer__links a:hover::before {
    width: 10px;
    margin-right: 8px;
}
.cs-footer--modern .cs-social a {
    border-radius: 50%;
    transition: background .2s ease, transform .2s ease;
}
.cs-footer--modern .cs-social a:hover {
    transform: translateY(-2px);
}
.cs-footer--modern .cs-footer__ci {
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 16px;
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .22);
}
.cs-footer--modern .cs-footer__hours li {
    align-items: baseline;
    border-bottom: 0;
}
.cs-footer--modern .cs-footer__hours .day {
    display: flex;
    flex: 1 1 auto;
    align-items: baseline;
    gap: 10px;
}
.cs-footer--modern .cs-footer__hours .day::after {
    content: '';
    flex: 1 1 auto;
    min-width: 12px;
    border-bottom: 1px dotted rgba(255, 255, 255, .25);
    transform: translateY(-4px);
}
.cs-footer--modern .cs-footer__bottom {
    border-top: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent) top / 100% 1px no-repeat;
}
.cs-footer--modern .cs-footer__ctabar {
    position: relative;
    background: linear-gradient(110deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .02) 100%);
}

/* --- Light footer --- */
.cs-footer--modern.cs-footer--light .cs-footer__ci {
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12);
}
.cs-footer--modern.cs-footer--light .cs-footer__hours .day::after {
    border-bottom-color: var(--border-strong);
}
.cs-footer--modern.cs-footer--light .cs-footer__bottom {
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent) top / 100% 1px no-repeat;
}
@media (prefers-reduced-motion: reduce) {
    .cs-footer--modern .cs-footer__links a::before,
    .cs-footer--modern .cs-social a {
        transition: none;
    }
}

/* Solid footer: no gradient glows, plain hairline over the bottom bar */
.cs-footer--modern:not(.cs-footer--light):not(.cs-footer--bg) {
    background: var(--heading);
}
.cs-footer--modern .cs-footer__ctabar {
    background: rgba(255, 255, 255, .04);
}
.cs-footer--modern::before,
.cs-footer--modern.cs-footer--light::before {
    content: none;
}
