/* ==========================================================================
   Motomarine v3 · Icon teasers
   One component, .cs-teaser (SVG icon file from assets/img/icons + title + copy), with layout modifiers:
   --boxed (outlined card)   --row (icon beside text)   --center
   --plain (no card, icon on a tinted box via .cs-teaser__icon--box)
   --link (card + Read more, lifts on hover with a red title)
   --tint (light-bg card without border, used by the split layout)
   --dark (for dark sections, combine with any of the above)
   .cs-teaser-grid = bordered divider grid of plain teasers.
   .cs-teaser-stagger = two staggered card columns beside a heading.
   ========================================================================== */

.cs-teaser {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    transition: var(--transition);
}
.cs-teaser__icon {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}
.cs-teaser__icon .cs-svg {
    width: 48px;
    height: 48px;
}
.cs-teaser__body {
    min-width: 0;
}
.cs-teaser h3,
.cs-teaser .h3,
.cs-teaser h4,
.cs-teaser .h4 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    transition: var(--transition);
    text-transform: capitalize;
}
.cs-teaser p {
    margin: 0;
}
.cs-teaser .cs-btn-link {
    margin-top: 22px;
}

/* --- Boxed card --- */
.cs-teaser--boxed {
    padding: 40px 36px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
}
/* On a light section the cards drop the border and sit on a soft shadow */
.bg-lighter .cs-teaser--boxed {
    border-color: transparent;
    box-shadow: var(--shadow);
}

/* --- Icon beside text --- */
.cs-teaser--row {
    flex-direction: row;
    gap: 22px;
}
.cs-teaser--row .cs-teaser__icon {
    margin-bottom: 0;
    margin-top: 2px;
}

/* --- Centered --- */
.cs-teaser--center {
    align-items: center;
    text-align: center;
}

/* --- Plain: no card, icon on a tinted box --- */
.cs-teaser--plain {
    padding: 8px 12px;
}
.cs-teaser__icon--box {
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--primary-tint-10);
    margin-bottom: 26px;
}
.cs-teaser--dark .cs-teaser__icon--box {
    background: var(--primary);
}
.cs-teaser--dark.cs-teaser--plain {
    background: transparent;
    border: 0;
}

/* --- Link card: lifts on a soft shadow --- */
.cs-teaser--link:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}
.bg-lighter .cs-teaser--link:hover {
    box-shadow: var(--shadow-lg);
}


/* --- Tinted card (split layout): light surface, no border --- */
.cs-teaser--tint {
    border-color: transparent;
    background: var(--bg-light);
}
.bg-lighter .cs-teaser--tint {
    background: var(--white);
}

/* --- Dark card (combine with any modifier) --- */
.cs-teaser--dark {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .12);
}
.cs-teaser--dark h3,
.cs-teaser--dark .h3,
.cs-teaser--dark h4,
.cs-teaser--dark .h4 {
    color: var(--white);
}
.cs-teaser--dark p {
    color: rgba(255, 255, 255, .72);
}
.cs-teaser--dark.cs-teaser--link:hover {
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}
.cs-teaser--dark.cs-teaser--tint {
    background: rgba(255, 255, 255, .06);
}

/* --- Divider grid: plain teasers in a 1px-gap grid --- */
.cs-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
}
.cs-teaser-grid .cs-teaser {
    padding: 40px 36px;
    background: var(--white);
}
.cs-teaser-grid--dark {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .12);
}
.cs-teaser-grid--dark .cs-teaser {
    background: var(--heading);
    border: 0;
}

/* --- Split: heading beside two staggered card columns --- */
.cs-teaser-split__head {
    margin-bottom: 28px;
}
.cs-teaser-stagger {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}
.cs-teaser-stagger__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cs-teaser-stagger__col:first-child {
    padding-top: 48px;
}
.cs-teaser-stagger .cs-teaser {
    height: auto;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .cs-teaser-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-teaser--boxed,
    .cs-teaser-grid .cs-teaser {
        padding: 30px 26px;
    }
    .cs-teaser-split__head {
        text-align: center;
    }
    .cs-teaser-split__head p {
        margin-inline: auto;
    }
    .col-lg-5 > .cs-btn {
        display: flex;
        margin: 0 auto 32px;
        max-width: 320px;
    }
}
@media (max-width: 575px) {
    .cs-teaser-grid {
        grid-template-columns: 1fr;
    }
    .cs-teaser__icon {
        margin-bottom: 18px;
    }
    .cs-teaser__icon .cs-svg {
        width: 40px;
        height: 40px;
    }
    .cs-teaser-stagger {
        grid-template-columns: 1fr;
    }
    .cs-teaser-stagger__col:first-child {
        padding-top: 0;
    }
}


/* ==========================================================================
   v5 · Modern icon teasers
   .cs-teasers--modern sits on the row, grid or stagger that holds the
   teasers, so standalone .cs-teaser use elsewhere keeps its old look.
   Icons sit in a tinted circle with a soft ring; cards lift on hover with a
   red bar sliding in along the top; the divider grid lights a cell on hover.
   ========================================================================== */
.cs-teasers--modern .cs-teaser__icon:not(.cs-teaser__icon--box) {
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-tint-10);
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb), .04);
}
.cs-teasers--modern .cs-teaser__icon .cs-svg {
    width: 32px;
    height: 32px;
}
.cs-teasers--modern .cs-teaser__icon--box {
    box-shadow: 0 0 0 10px rgba(var(--primary-rgb), .05);
}
.cs-teasers--modern .cs-teaser--dark .cs-teaser__icon:not(.cs-teaser__icon--box) {
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .03);
}

/* --- Cards: lift with a red bar sliding in on top --- */
.cs-teasers--modern .cs-teaser--boxed {
    position: relative;
    overflow: hidden;
}

/* --- Icon beside text: smaller circle so the text keeps its width --- */
.cs-teasers--modern .cs-teaser--row .cs-teaser__icon:not(.cs-teaser__icon--box) {
    width: 56px;
    height: 56px;
}
.cs-teasers--modern .cs-teaser--row .cs-teaser__icon .cs-svg {
    width: 28px;
    height: 28px;
}

/* --- Link cards: the arrow slides on hover --- */
.cs-teasers--modern .cs-teaser--link .cs-btn-link i {
    transition: transform .3s var(--ease-out);
}

/* --- Divider grid: a cell lights up on hover --- */
.cs-teaser-grid.cs-teasers--modern .cs-teaser {
    position: relative;
    transition: background .3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .cs-teasers--modern .cs-teaser,
    .cs-teasers--modern .cs-teaser__icon {
        transition: none;
    }
}
