﻿/**
 * Action Card Module - Styles
 */

.cj-actioncard {
    --cj-actioncard-min-height: 285px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: var(--cj-actioncard-min-height);
    padding: clamp(24px, 2.6vw, 38px);
    border: 1px solid rgba(21, 19, 15, 0.16);
    font-family: "Saira", sans-serif;
}

.cj-actioncard--height-auto {
    min-height: var(--cj-actioncard-min-height);
}

.cj-actioncard--height-fixed {
    height: var(--cj-actioncard-min-height);
}

.cj-actioncard--height-fill {
    width: 100%;
    height: auto;
    min-height: var(--cj-actioncard-min-height);
    flex: 1 1 auto;
    align-self: stretch;
}

.cj-actioncard--dark {
    background: #0b0a09;
    color: #f5f2ec;
    border-color: rgba(245, 242, 236, 0.18);
}

.cj-actioncard--dark .cj-actioncard__title,
.cj-actioncard--dark .cj-actioncard__text {
    color: #f5f2ec;
}

.cj-actioncard--light {
    background: #e9e4da;
    color: #15130f;
}

.cj-actioncard--light .cj-actioncard__title,
.cj-actioncard--light .cj-actioncard__text {
    color: #15130f;
}

.cj-actioncard--orange {
    background: #eb5d0f;
    color: #0b0a09;
    border-color: #eb5d0f;
}

.cj-actioncard--orange .cj-actioncard__title,
.cj-actioncard--orange .cj-actioncard__text {
    color: #0b0a09;
}

.cj-actioncard--orange.cj-actioncard--accent-yes::before {
    background: #0b0a09;
}

.cj-actioncard--accent-yes::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(28px, 3vw, 42px);
    width: 64px;
    height: 5px;
    background: #eb5d0f;
}

.cj-actioncard__label {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 26px -48px;
    padding: 0 20px 0 48px;
    background: #eb5d0f;
    color: #0b0a09;
    font-family: var(--cj-font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.cj-actioncard__label::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 10px;
    height: 10px;
    background: #8c3408;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.cj-actioncard--light .cj-actioncard__label {
    background: #0b0a09;
    border: 1px solid rgba(245, 242, 236, 0.14);
    color: #f5f2ec;
    margin-left: -50px;
    padding-left: 50px;
}

.cj-actioncard--light .cj-actioncard__label::before {
    background: #3a352e;
}

.cj-actioncard--theme-orange .cj-actioncard__label,
.cj-actioncard--orange .cj-actioncard__label {
    background: #0b0a09;
    border: 1px solid rgba(245, 242, 236, 0.14);
    color: #f5f2ec;
    margin-left: -50px;
    padding-left: 50px;
}

.cj-actioncard--theme-orange .cj-actioncard__label::before,
.cj-actioncard--orange .cj-actioncard__label::before {
    background: #3a352e;
}

.cj-actioncard .cj-actioncard__title {
    margin: 0 0 16px !important;
    font-family: "Saira Condensed", sans-serif;
    font-size: clamp(34px, 3.8vw, 62px);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: normal;
}

.cj-actioncard__title span {
    display: block;
}

.cj-actioncard__text {
    margin: 0 0 30px;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.45;
    color: inherit;
}

.cj-actioncard__button {
    display: inline-flex;
    align-items: stretch;
    min-height: 48px;
    margin-top: auto;
    color: #0b0a09;
    text-decoration: none;
    font-family: "Saira Condensed", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.cj-actioncard__button span:first-child {
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #eb5d0f;
}

.cj-actioncard__button span:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    background: #f5f2ec;
}

.cj-actioncard__button--dark span:first-child {
    background: #15130f;
    color: #f5f2ec;
}

.cj-actioncard__button--dark span:last-child {
    background: #eb5d0f;
}

.cj-actioncard--orange .cj-actioncard__button--orange span:first-child {
    background: #0b0a09;
    color: #f5f2ec;
}

.cj-actioncard--orange .cj-actioncard__button--orange span:last-child {
    background: #f5f2ec;
    color: #0b0a09;
}

@media (max-width: 720px) {
    .cj-actioncard {
        min-height: 0;
        padding: 28px 22px;
    }

    .cj-actioncard__label {
        margin-left: -32px;
        padding-left: 32px;
    }

    .cj-actioncard--light .cj-actioncard__label,
    .cj-actioncard--theme-orange .cj-actioncard__label,
    .cj-actioncard--orange .cj-actioncard__label {
        margin-left: -34px;
        padding-left: 34px;
    }

    .cj-actioncard--height-fixed,
    .cj-actioncard--height-fill {
        height: auto;
        min-height: var(--cj-actioncard-min-height);
    }

    .cj-actioncard__text {
        font-size: 15px;
    }

    .cj-actioncard__button {
        max-width: 100%;
        font-size: 13px;
    }

    .cj-actioncard__button span:first-child {
        min-width: 0;
        padding: 0 16px;
    }
}
