/* ============================================================
   FloreData — Section 6 HOW WE WORK / Engagement Models
   Spec: floredata/design/specs/landing-section6.md
   ============================================================ */

.fd-section--engage {
    background: var(--wp--preset--color--background);
    padding: 44px 0 64px;       /* trim top 68→44 — gap above How-We-Work was too big (Sandro 2026-06-28) */
    overflow: hidden;
}

/* --- 2-column header ------------------------------------------------ */

.fd-engage__header {
    display: grid;
    grid-template-columns: 0.917fr 1fr;
    gap: clamp(40px, 4vw, 65px);
    align-items: center;   /* balance the 2 cols after narrowing to 1200 (was start → left-col void) */
    max-width: 1440px;                          /* narrowed for breathing room (Geetha, call 2026-06-17) */
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Eyebrow chip (Growth-Teal accented) ----------------------------- */

.fd-eyebrow--engage {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 20px 6px 6px;
    background: #EAEAEA;
    color: var(--wp--preset--color--growth);
    border-radius: 999px;
    font-family: var(--wp--preset--font-family--satoshi);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    line-height: 1;
    margin: 0;                                  /* kill GP p margin — heading glyph y74 (.ai) */
}

.fd-eyebrow--engage .fd-eyebrow__badge {
    background: var(--wp--preset--color--growth);
    color: #ffffff;
    border-radius: 10px;
    width: 32px;
    height: 27px;
    display: inline-grid;
    place-items: center;
    flex: none;
}

.fd-eyebrow--engage .fd-eyebrow__badge svg {
    width: 15px;
    height: 15px;
    display: block;
}

/* --- Heading ---------------------------------------------------------- */

.fd-engage__heading {
    font-family: var(--wp--preset--font-family--satoshi);
    font-weight: 300;                           /* Light — S4/S5 lesson, pdfplumber says Bold */
    font-style: normal;
    font-size: clamp(2.8rem, 1.3rem + 4.3vw, 5.97rem);   /* 95.5px @1920 */
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--wp--preset--color--text);
    margin: 0 0 23px;
}

.fd-engage__heading em {
    font-weight: 700;
    font-style: italic;
}

/* --- View Capabilities CTA (Growth Teal pill) -------------------------- */

.fd-btn--engage {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 16px 26px;               /* h ≈ 61px (.ai 234×61) */
    border-radius: 999px;
    background: var(--wp--preset--color--growth);
    color: var(--wp--preset--color--background);
    font-weight: 700;
    font-size: 1.22rem;                         /* 19.5px */
    line-height: 1;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* explicit hover colors — GP a:hover trap (lesson #12) */
.fd-btn--engage:hover {
    transform: translateY(-2px);
    background: var(--wp--preset--color--punchy);
    color: var(--wp--preset--color--text);
}

.fd-btn--engage .fd-btn-arrow,
.fd-engage__care .fd-btn-arrow,
.fd-engage__cta .fd-btn-arrow {
    width: 36px;
    height: 28px;
    flex: none;
}

/* --- Header right column ----------------------------------------------- */

.fd-engage__header-right {
    padding-top: 46px;                          /* subtitle glyph y65 (.ai, DOM-calibrated) */
}

.fd-engage__subtitle {
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.4rem, 0.9rem + 1vw, 1.875rem);     /* 30px */
    line-height: 1.25;
    color: var(--wp--preset--color--text);
    margin: 0 0 24px;
}

.fd-engage__body {
    font-weight: 400;
    font-style: normal;
    font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.25rem);  /* 20px */
    line-height: 1.73;                          /* .ai leading 34.7 */
    text-align: justify;                        /* .ai-confirmed justified block */
    color: #161616;
    margin: 0 0 40px;
    border-bottom: 2px solid #DCD2FA;           /* Bloom divider y5981 (.ai) */
    padding-bottom: 35px;
}

/* Dirty-Cream quote chip (.ai 743×59) */
.fd-engage__quote {
    display: inline-block;
    background: var(--wp--preset--color--dirty-cream);
    border-radius: 999px;
    padding: 14px 38px;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.2rem, 0.95rem + 0.6vw, 1.675rem);  /* 26.8px */
    line-height: 1.15;
    color: var(--wp--preset--color--text);
    margin: 0 0 7px;
}

/* Bloom "What We Care About" link pill (.ai 256×44) */
.fd-engage__care {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--wp--preset--color--bloom);
    border-radius: 999px;
    padding: 10px 10px 10px 22px;
    font-weight: 700;
    font-style: italic;
    font-size: 1.3rem;                          /* 20.8px */
    line-height: 1;
    color: #000000;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fd-engage__care:hover {
    transform: translateY(-2px);
    background: var(--wp--preset--color--mulberry);
    color: var(--wp--preset--color--text);
}

.fd-engage__care .fd-btn-arrow {
    width: 31px;
    height: 24px;
}

/* --- 3 engagement cards -------------------------------------------------- */

.fd-engage__cards {
    list-style: none;
    margin: clamp(56px, 6vw, 84px) auto 0;      /* trim the header→cards band (#16) */
    padding: 0;
    max-width: 1440px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);      /* 4 engagement models incl. the restored Retainer (#18) */
    gap: 24px;
}

/* Clean prod-style card — title + description only, NO icon, NO tag pill
   (Riccardo #16/#17, matches the original prod FloreData engagement cards). */
.fd-engage-card {
    background: var(--wp--preset--color--dirty-cream);
    border: 1px solid rgba(40, 40, 57, 0.08);
    border-radius: 22px;
    padding: clamp(26px, 2.2vw, 34px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}
/* lift on hover so the engagement boxes aren't dead (Sandro 2026-06-28) — home + services landing */
@media (hover: hover) {
    .fd-engage-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 44px -22px rgba(40, 40, 57, 0.30);
        border-color: rgba(40, 40, 57, 0.16);
    }
}
@media (prefers-reduced-motion: reduce) {
    .fd-engage-card { transition: none; }
    .fd-engage-card:hover { transform: none; }
}

.fd-engage-card__title {
    font-family: var(--wp--preset--font-family--satoshi);
    font-weight: 700;
    font-style: normal;
    font-size: clamp(1.15rem, 1rem + 0.45vw, 1.4rem);   /* ~18–22px (was 62px — far too large for a 4-card grid) */
    line-height: 1.22;
    letter-spacing: -0.01em;
    color: var(--wp--preset--color--surface-dark);
    margin: 0;
}

.fd-engage-card__desc {
    font-weight: 400;
    font-style: normal;
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem); /* ~15–17px regular grey (prod-matched) */
    line-height: 1.6;
    color: #55555f;
    margin: 0;
}

/* --- Bottom CTA ------------------------------------------------------------ */

.fd-engage__cta {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 14px;
    margin: 50px auto 0;                        /* cards 6804 → CTA 6853, calibrate */
    padding: 13px 13px 13px 26px;
    border-radius: 999px;
    background: var(--wp--preset--color--growth);
    color: var(--wp--preset--color--background);
    font-weight: 700;
    font-size: 1.22rem;                         /* 19.5px */
    line-height: 1;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fd-engage__cta:hover {
    transform: translateY(-2px);
    background: var(--wp--preset--color--punchy);
    color: var(--wp--preset--color--text);
}

/* --- Responsive -------------------------------------------------------------- */

@media (max-width: 1100px) {
    .fd-engage__header {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .fd-engage__header-right { padding-top: 0; }

    .fd-engage__cards {
        grid-template-columns: repeat(2, 1fr);   /* 2×2 on tablet */
        gap: 20px;
        margin-top: 56px;
    }
}

@media (max-width: 640px) {
    .fd-section--engage { padding: 52px 0 56px; }   /* close the ~150px dead gap above "HOW WE WORK" on mobile */

    .fd-engage__header { padding: 0 24px; }

    .fd-engage__cards { grid-template-columns: 1fr; max-width: 520px; padding: 0 24px; }

    .fd-engage__quote { font-size: 1.15rem; padding: 12px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .fd-btn--engage,
    .fd-engage__care,
    .fd-engage__cta {
        transition: none;
    }

    .fd-btn--engage:hover,
    .fd-engage__care:hover,
    .fd-engage__cta:hover {
        transform: none;
    }
}

/* Mobile: drop the justified body to left-align — narrow columns get ugly rivers. */
@media (max-width: 600px) {
    .fd-engage__body { text-align: left; }
}
