/*--------------------------------------------------------------
# Block contents
--------------------------------------------------------------*/
.lp-cards {
    display: flex;
    padding-block: 120px;
    padding-inline: 30px;
    background-color: var(--color-bg-dark);
}

.lp-cards .block-contents {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1425px;
    margin-inline: auto;
    gap: 40px;
}

.lp-cards__intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
}

.lp-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.lp-cards__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    min-height: 320px;
    padding: 24px;
    text-align: left;
    border: 1px solid var(--color-white);
    border-radius: 2px;
    background-color: var(--color-black);
    overflow: hidden;
    cursor: pointer;
    appearance: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lp-cards__card:hover {
    border-color: var(--color-red);
}

.lp-cards__card.is-animate {
    opacity: 0;
    transform: translateY(20px);
}

.lp-cards__card.is-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.lp-cards__card:focus-visible {
    outline: 3px solid var(--color-red);
    outline-offset: 3px;
}

.lp-cards__card-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.lp-cards__card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: saturate(0.15); */
}

.lp-cards__card-overlay {
    position: absolute;
    inset: 0;
    /* background: rgba(150, 12, 18, 0.7); */
    /* background: linear-gradient(45deg, rgba(132, 1, 21, 0.9), rgba(132, 1, 21, 0.70)); */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.50) 66%, rgba(0, 0, 0, 0.98) 100%);
}

.lp-cards__card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.lp-cards__card-title {
    margin: 0;
    max-width: 70%;
    color: var(--color-white);
    font-size: clamp(1.5rem, 1.15rem + 1vw, 2.5rem);
}

.lp-cards__card-icon svg {
    width: 60px;
    height: 60px;
}

.lp-cards__modal-content {
    display: none;
}

@media screen and (max-width: 768px) {
    .lp-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .lp-cards {
        padding-block: 60px;
        padding-inline: 20px;
    }

    .lp-cards__grid {
        grid-template-columns: 1fr;
    }

    .lp-cards__card-title {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-cards__card {
        transition: none;
    }

    .lp-cards__card.is-animate {
        opacity: 1;
        transform: none;
    }
}

/*--------------------------------------------------------------
# Background image
--------------------------------------------------------------*/
.lp-cards.anchor {
    position: relative;
}

.lp-cards__cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.editor-styles-wrapper .lp-cards__cover {
    height: 100%;
}

.lp-cards__tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(180deg, rgba(4, 12, 36, 0.9) 0%, rgba(4, 12, 36, 0.7) 100%);
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

/* Default Font Style
--------------------------------------------- */
.lp-cards__sub-header {
    color: var(--color-red);
    font-size: clamp(1rem, 0.85rem + 0.5vw, 1.3125rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0;
}

.lp-cards__header{
    color: var(--color-white);
    font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
    margin-top: 0;
}


.lp-cards__body{
    font-family: var(--font-family-content);
    font-style: normal;
    font-weight: 400;
    line-height: 34px;
    color: var(--color-body-light);
    line-height: 34px;
}


.lp-cards__cta {
    color: var(--color-white);
}

.lp-cards__body li {
    color: inherit;
}

.lp-cards__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 12px 22px;
    border: 2px solid var(--color-red);
    background: var(--color-red);
    color: var(--color-white);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.lp-cards__cta:hover,
.lp-cards__cta:focus {
    background: transparent;
    color: var(--color-white);
}


/*--------------------------------------------------------------
# Modal
--------------------------------------------------------------*/
body.cards-modal-open {
    overflow: hidden;
}

.cards-modal-container {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cards-modal-container.show {
    display: flex;
}

.cards-modal-outer {
    width: 100%;
    max-width: 1100px;
}

.cards-modal {
    background: var(--color-bg-dark-secondary);
    border: 4px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.cards-modal-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.cards-modal-image-outer {
    position: relative;
    min-height: 280px;
    background: var(--color-black);
}

.cards-modal-image-outer.is-empty {
    display: none;
}

.cards-modal-image-outer.is-empty + .cards-modal-content-container {
    grid-column: 1 / -1;
}

.cards-modal-image,
.cards-modal-image-inner {
    position: absolute;
    inset: 0;
}

.cards-modal-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cards-modal-content-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cards-modal-title {
    margin: 0;
    color: var(--color-white);
    text-align: left;
    padding-right: 60px;
}

.cards-modal-content p,
.cards-modal-content li {
    color: var(--color-white);
    font-size: var(--font-size-content-small);
    font-weight: normal;
}

.cards-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: var(--color-red);
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
}

@media screen and (max-width: 900px) {
    .cards-modal-inner {
        grid-template-columns: 1fr;
    }

    .cards-modal-container {
        align-items: flex-start;
    }

    .cards-modal-outer {
        margin-top: 110px;
        margin-bottom: 30px;
    }

    .cards-modal-content-container {
        padding: 30px;
    }
}

@media screen and (max-width: 600px) {
    .cards-modal-container {
        padding: 16px;
    }

    .cards-modal-content-container {
        padding: 24px;
    }
}
