/* =============================================================================
   FloreData — Case Studies landing (/case-studies/)
   Metric-forward branded cards. Hero + filter pills reuse blog-hub.css.
   ============================================================================= */

.fd-page-case-studies { background: var(--wp--preset--color--background); }

/* --- Card grid --- */
.fd-casehub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 26px;
    max-width: 1280px;
    margin: clamp(20px, 2vw, 28px) auto 0;
    padding: 0 24px;
}
.fd-casecard {
    border-radius: 24px;
    border: 1px solid rgba(40, 40, 57, 0.06);
    box-shadow: 0 1px 2px rgba(40, 40, 57, 0.04);
    padding: clamp(26px, 2.4vw, 36px);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fd-casecard[hidden] { display: none; }
/* display-only cards (no detail pages) → a gentle shadow on hover, NOT a lift
   (a 6px lift would falsely promise a clickthrough). */
.fd-casecard:hover { box-shadow: 0 6px 18px -12px rgba(40, 40, 57, 0.22); }
.fd-casecard--cream { border-color: rgba(40, 40, 57, 0.12); }

.fd-casecard__industry {
    align-self: flex-start;
    background: var(--wp--preset--color--surface-dark);
    color: #f3f2f7;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}
.fd-casecard__title {
    font-weight: 700;
    font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
    line-height: 1.18;
    color: var(--wp--preset--color--text);
    margin: 18px 0 0;
}
.fd-casecard__summary {
    font-weight: 500;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #4d4d59;            /* solid muted ink (not opacity — keeps the tint crisp + AA on all tints) */
    margin: 12px 0 0;
}
.fd-casecard__impact {
    list-style: none;
    margin: auto 0 0;                 /* push the impact block to the card bottom */
    padding: 18px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(40, 40, 57, 0.14);
}
.fd-casecard__impact li {
    position: relative;
    padding-left: 26px;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--wp--preset--color--text);
}
.fd-casecard__impact li::before {   /* CSS checkmark in Growth teal */
    content: "";
    position: absolute;
    left: 3px;
    top: 0.18em;
    width: 6px;
    height: 11px;
    border: solid var(--wp--preset--color--growth);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.fd-casecard--mulberry .fd-casecard__impact li::before { border-color: var(--wp--preset--color--surface-dark); }

/* tints (match blog-hub) */
.fd-casecard--sage     { background: var(--wp--preset--color--sage); }
.fd-casecard--bloom    { background: var(--wp--preset--color--bloom); }
.fd-casecard--cream    { background: var(--wp--preset--color--dirty-cream); }
.fd-casecard--mulberry { background: var(--wp--preset--color--mulberry); }
.fd-casecard--punchy   { background: var(--wp--preset--color--punchy); }
.fd-casecard--rosemilk { background: var(--wp--preset--color--rose-milk); }

/* --- Closing CTA --- */
.fd-casecta {
    text-align: center;
    padding: clamp(72px, 9vw, 120px) 24px 8px;   /* the global footer's top margin supplies the gap below — no double void */
}
.fd-casecta__heading {
    font-weight: 300;
    font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem);
    line-height: 1.05;
    color: var(--wp--preset--color--text);
    margin: 0;
}
.fd-casecta__heading em { font-weight: 700; font-style: italic; }
.fd-casecta__sub {
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.4rem);
    color: var(--wp--preset--color--text-muted);
    margin: 14px 0 0;
}
.fd-casecta__btn { margin: 30px auto 0; }

@media (max-width: 600px) {
    .fd-casehub-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .fd-casecard { transition: none; }
    .fd-casecard:hover { transform: none; }
}
