/* ==========================================================================
   Feature Cards Block  —  auto-loaded by WordPress via block registration.
   No manual include needed.
   ========================================================================== */
/* ── Section wrapper ─────────────────────────────────────────────────────── */
.wp-block-pemfit-feature-cards.fc-section {
    padding: var(--large-gutter) var(--medium-gutter);
    width: 100%;
    box-sizing: border-box;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.fc-header {
    margin-bottom: var(--thin-gutter);
    max-width: 700px;
}

/* ── Eyebrow ─────────────────────────────────────────────────────────────── */
/* * Colour, size and transform are CSS custom properties set on the section
 * wrapper via inline style — same pattern as heading/desc text controls. */
.fc-eyebrow {
    color: var(--pf-ey-color, var(--orange)) !important;
    font-family: var(--DM-Sans) !important;
    font-size: var(--pf-ey-size, 1.2rem) !important;
    font-weight: 600 !important;
    text-transform: var(--pf-ey-tx, uppercase) !important;
    letter-spacing: 0.15em;
    margin: 0 0 1.2rem !important;
    max-width: none;
    line-height: 1.6 !important;
}

/* ── Section heading ─────────────────────────────────────────────────────── */
.fc-heading {
    color: var(--forest-green);
    font-family: var(--DM-Sans);
    font-size: clamp(2.8rem, 4vw, 5.5rem);
    font-weight: 500;
    margin-top: var(--pf-h2-mt, 0);
    margin-bottom: var(--pf-h2-mb, 0);
    padding-top: var(--pf-h2-pt, 0);
    padding-bottom: var(--pf-h2-pb, 0);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.fc-heading em {
    font-family: var(--Source-Serif-Italic);
    font-style: normal !important;
    font-weight: 400;
    font-size: 1.05em;
    letter-spacing: -0.04em;
}

/* ── Card grid ───────────────────────────────────────────────────────────── */
.fc-grid {
    display: grid;
    grid-template-columns: repeat( var(--fc-cols, 3), 1fr );
    gap: var(--medium-gutter);
    margin-top: var(--thin-gutter);
    align-items: stretch;

    /* all cells in a row stretch to row height */
}

/* ── Individual card ─────────────────────────────────────────────────────── */
.wp-block-pemfit-feature-card-item.fc-item {
    /* border-radius is also set via inline style from PHP to guarantee it shows */
    border-radius: var(--rounded-corners) !important;
    background: #ffffff;

    /* fallback — overridden by inline style */
    box-sizing: border-box;
    box-shadow: 0 2px 20px -8px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    /* stretch to fill grid cell so all cards in a row are equal height */
    align-self: stretch;
    flex: 1 1 auto;
}

.wp-block-pemfit-feature-card-item.fc-item.is-dark {
    box-shadow: none;
}

/* ── Icon container ──────────────────────────────────────────────────────── */
.fc-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 10px;

    /* default; overridden by inline style */
    background: var(--light-beige);

    /* default; overridden by inline style */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;

    /* default; overridden by inline style */
    flex-shrink: 0;
    box-sizing: border-box;
}

/* SVG built-in icons */
.fc-icon-wrap svg {
    display: block;
    color: var(--orange);
    width: 22px;
    height: 22px;
}

/* Font Awesome icons */
.fc-icon-wrap i {
    font-size: 22px;
    color: var(--orange);
    line-height: 1;
    display: block;
}

/* Dark card overrides */
.fc-item.is-dark .fc-icon-wrap {
    background: rgba(255, 255, 255, 0.12) !important;
}

.fc-item.is-dark .fc-icon-wrap svg,
.fc-item.is-dark .fc-icon-wrap i {
    color: #9cbbaf;
}

/* ── Card heading ────────────────────────────────────────────────────────── */
.fc-item-heading {
    font-family: var(--DM-Sans) !important;
    font-weight: 600 !important;
    color: var(--pf-h-color, var(--forest-green)) !important;
    font-size: var(--pf-h-size, clamp(1.6rem, 1.8vw, 2rem)) !important;
    margin: 0 0 var(--pf-h-mb, 0.8rem) !important;
    letter-spacing: -0.01em;
    line-height: 1.3 !important;
}

.fc-item.is-dark .fc-item-heading {
    color: #ffffff !important;
}

/* ── Card description ────────────────────────────────────────────────────── */
.fc-item-desc {
    font-family: var(--DM-Sans) !important;
    color: var(--pf-d-color, var(--brown)) !important;
    font-size: var(--pf-d-size, clamp(1.35rem, 1.5vw, 1.65rem)) !important;
    line-height: 1.65 !important;
    margin: var(--pf-d-mt, 0) 0 0 !important;
    max-width: none !important;

    /* grows to fill remaining card space, keeping cards uniform within a row */
    flex-grow: 1;
}

.fc-item.is-dark .fc-item-desc {
    color: rgba(255, 255, 255, 0.72) !important;
}

