/* AMCO Cards – cards.css v1.0.0 */

/* ── Grid ──────────────────────────────────────────────────── */
.r4d-cards-grid {
    display: grid;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Base card ─────────────────────────────────────────────── */
.r4d-card {
    position: relative;
    border-radius: 16px;
    padding: 28px;
    background: #F0F4EE;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.r4d-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
}

/* ── Entrance animation ────────────────────────────────────── */
.r4d-card-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.50s ease, transform 0.50s ease;
    transition-delay: var(--card-delay, 0s);
}
.r4d-card-anim.r4d-card-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Don't conflict with hover after visible */
.r4d-card-anim.r4d-card-visible:hover {
    transform: translateY(-3px);
}

/* ── Shared text ───────────────────────────────────────────── */
.r4d-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}
.r4d-card-text {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════ */
/* STYLE 1 — STEPS                                             */
/* ═══════════════════════════════════════════════════════════ */
.r4d-card--steps {
    background: #F0F4EE;
    text-align: center;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
}

.r4d-card-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #4CAF50;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    flex-shrink: 0;
    margin-bottom: 4px;
    transition: transform 0.25s ease;
}
.r4d-card--steps:hover .r4d-card-step-num {
    transform: scale(1.10);
}

/* Highlighted step card */
.r4d-card--steps.r4d-card--highlight {
    border-color: #4CAF50;
    background: rgba(76,175,80,0.08);
}

/* ═══════════════════════════════════════════════════════════ */
/* STYLE 2 — ICON                                              */
/* ═══════════════════════════════════════════════════════════ */
.r4d-card--icon {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    gap: 14px;
}

.r4d-card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.r4d-card-icon-wrap i,
.r4d-card-icon-wrap svg {
    font-size: 22px;
    width: 22px;
    height: 22px;
}
.r4d-card--icon:hover .r4d-card-icon-wrap {
    transform: scale(1.08);
}

/* ═══════════════════════════════════════════════════════════ */
/* STYLE 3 — ACCENT BAR                                        */
/* ═══════════════════════════════════════════════════════════ */
.r4d-card--highlight-style,
.r4d-card--highlight {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding-left: 32px;
}

.r4d-card-accent-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 0;
    background: #4CAF50;
    transition: width 0.25s ease;
}
.r4d-card--highlight:hover .r4d-card-accent-bar {
    width: 7px;
}

/* ═══════════════════════════════════════════════════════════ */
/* STYLE 4 — MINIMAL / STAT                                    */
/* ═══════════════════════════════════════════════════════════ */
.r4d-card--minimal {
    background: #ffffff;
    box-shadow: none;
    border-bottom: 2px solid #F3F4F6;
    border-radius: 0;
    padding: 20px 0;
    gap: 6px;
}
.r4d-card--minimal:hover {
    transform: none;
    box-shadow: none;
    border-bottom-color: #4CAF50;
}

.r4d-card-stat-value {
    font-size: 42px;
    font-weight: 900;
    color: #4CAF50;
    line-height: 1;
    margin: 0 0 4px;
    transition: transform 0.25s ease;
}
.r4d-card--minimal:hover .r4d-card-stat-value {
    transform: scale(1.04);
}

/* ═══════════════════════════════════════════════════════════ */
/* STYLE 5 — CTA WITH IMAGE                                    */
/* ═══════════════════════════════════════════════════════════ */
.r4d-card--cta {
    min-height: 220px;
    background: #1a1a2e;
    padding: 0;
    justify-content: flex-end;
    gap: 0;
}

.r4d-card-cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.55s ease;
    z-index: 0;
}
.r4d-card--cta:hover .r4d-card-cta-bg {
    transform: scale(1.06);
}

.r4d-card-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.20) 60%, transparent 100%);
    z-index: 1;
}

.r4d-card-cta-body {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.r4d-card-title--white { color: #ffffff !important; }
.r4d-card-text--white  { color: rgba(255,255,255,0.80) !important; }

.r4d-card-cta-btn {
    display: inline-block;
    margin-top: 8px;
    background: #4CAF50;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    align-self: flex-start;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.r4d-card-cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                   */
/* ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .r4d-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 540px) {
    .r4d-cards-grid {
        grid-template-columns: 1fr !important;
    }
    /* Reduce card padding */
    .r4d-card {
        padding: 20px;
        border-radius: 12px;
    }
    /* Stat value too big on small screens */
    .r4d-card-stat-value { font-size: 32px; }
    /* CTA/tint cards shorter on mobile */
    .r4d-card--cta  { min-height: 180px; }
    .r4d-card--tint { min-height: 240px; }
    /* Accent bar card reset padding */
    .r4d-card--highlight,
    .r4d-card--highlight-style { padding-left: 28px; }
}

/* ═══════════════════════════════════════════════════════════ */
/* STYLE 6 — IMAGE WITH COLOR TINT                             */
/* ═══════════════════════════════════════════════════════════ */
.r4d-card--tint {
    background: #1a1a2e;
    padding: 0;
    min-height: 320px;
    justify-content: flex-end;
    overflow: hidden;
}

.r4d-card-tint-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.r4d-card-tint-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.r4d-card--tint:hover .r4d-card-tint-img {
    transform: scale(1.06);
}

.r4d-card-tint-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}
.r4d-card--tint:hover .r4d-card-tint-overlay {
    opacity: 0.82;
}

.r4d-card-tint-body {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}
