/* =============================================================================
   FloreData — Services hub page (.ai page 3)
   NEW: split hero · intro + sage callout · 5 expanded service cards · mini-CTA.
   §6–§8 reuse landing section CSS (engage / industries / cases / outro).
   ============================================================================= */

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

/* -----------------------------------------------------------------------------
   §1 Hero — dark split panel + floral art
   -------------------------------------------------------------------------- */
/* full-bleed hero with the nav floating OVER it — no white gap (Geetha 2026-06-18,
   Services banner mockup). Mirrors the About-page nav-over pattern. */
body.fd-page-services #fd-main { padding-top: 0; }
body.fd-page-services .fd-header { top: 24px; }
.fd-svc-hero-wrap { padding: 0; }
body.fd-page-services .fd-svc-hero__panel { padding-top: clamp(120px, 13vw, 152px); }   /* clear the floating nav (high-specificity so it beats the base padding shorthand) */
.fd-svc-hero {
    display: grid;
    grid-template-columns: 56% 44%;
    border-radius: 0;
    overflow: hidden;
    min-height: 610px;                       /* match the inner-hero floor (Sandro 2026-06-28; was 560) */
    max-width: none;
    margin: 0;
    background: var(--wp--preset--color--surface-dark);
    isolation: isolate;
}
.fd-svc-hero__panel {
    padding: clamp(48px, 5vw, 84px) clamp(32px, 4vw, 64px);
    /* keep the dark band + floral FULL-BLEED, but inset the TEXT so it begins at
       the header's left edge (centred 1440 container) — content never exceeds the nav. */
    padding-left: calc(max(0px, (100vw - 1441px) / 2) + 28px);   /* heading-left == header pill / breadcrumb left edge (Sandro 2026-06-28) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--wp--preset--color--dirty-cream);
}
.fd-svc-hero__headline {
    font-weight: 300;
    font-size: clamp(2.4rem, 1.4rem + 3.4vw, 5.29rem);
    line-height: 1.02;
    letter-spacing: -0.02em;                       /* match the global h1 display track */
    margin: 0;
    color: var(--wp--preset--color--dirty-cream);
}
.fd-svc-hero__headline em { font-weight: 700; font-style: italic; }
.fd-svc-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: clamp(28px, 3vw, 44px) 0 0;
}
.fd-svc-hero__pills .fd-pill--dark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--wp--preset--color--growth);
    color: var(--wp--preset--color--sage);
    font-weight: 500;                              /* brand ladder is 300/500/700 — no orphan 600 */
    font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.95rem);
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
}
.fd-svc-hero__pills .fd-pill__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--wp--preset--color--sage);   /* light circle so the dark var(--wp--preset--color--growth) bubble icon is visible (mockup) */
    border-radius: 50%;
}
.fd-svc-hero__pills .fd-pill__icon svg { width: 18px; height: 18px; }
.fd-svc-hero__explore {
    align-self: flex-start;
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(235, 254, 195, 0.4);
    color: var(--wp--preset--color--punchy);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.fd-svc-hero__explore__spark { width: 14px; height: 14px; flex-shrink: 0; }
.fd-svc-hero__explore:hover { background: rgba(235, 254, 195, 0.14); }

/* Focus ring must clear AA (3:1) on the dark hero + dark card — the global teal
   ring is only 2.71:1 on #282839. Use Punchy lime on dark surfaces. */
.fd-svc-hero a:focus-visible,
.fd-svc-card--dark :focus-visible {
    outline: 2px solid var(--wp--preset--color--punchy);
    outline-offset: 3px;
}
.fd-svc-hero__art {
    position: relative;
    /* the actual soft purple/magenta floral from the mockup (Geetha 2026-06-18) —
       was floral-motif-3 + a muddy gradient, which read warm/orange, not the design */
    background: url(../img/svc-hero-floral-1781808020.webp) center / cover no-repeat;
}
/* lime FD monogram on the floral panel (Geetha 2026-06-18 mockup) — the brand
   "FD"-bloom mark cropped from the logo, tinted Punchy via mask. Per the mockup:
   LARGE, anchored bottom + left-of-centre of the floral, cropped at the bottom. */
.fd-svc-hero__art::after {
    content: "";
    position: absolute;
    /* 1:1 with the mockup: FD centred in the floral panel (measured centre
       47% across / 62% down, ~36% of the panel wide). */
    left: 47%;
    top: 62%;
    transform: translate(-50%, -50%);
    width: clamp(150px, 16vw, 232px);
    height: clamp(150px, 16vw, 232px);
    background: var(--wp--preset--color--punchy);
    -webkit-mask: url(../img/fd-mark-hi.png) center / contain no-repeat;
            mask: url(../img/fd-mark-hi.png) center / contain no-repeat;
    pointer-events: none;
}

/* -----------------------------------------------------------------------------
   §2 Intro + sage callout
   -------------------------------------------------------------------------- */
.fd-svc-intro {
    text-align: center;
    padding: clamp(72px, 8vw, 120px) 24px 0;
    max-width: 1100px;
    margin: 0 auto;
    scroll-margin-top: clamp(96px, 9vw, 120px);   /* #services anchor clears the fixed header */
}
.fd-svc-intro .fd-eyebrow { margin: 0 auto; }
.fd-svc-intro__heading {
    font-weight: 300;
    font-size: clamp(2.75rem, 1.6rem + 4vw, 5.97rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    color: var(--wp--preset--color--text);
    margin: 22px 0 0;
}
.fd-svc-intro__subtitle {
    font-weight: 500;   /* medium, not bold — so the compact 54px heading stays the clear apex (was 700, competed) */
    font-style: italic;
    font-size: clamp(1.25rem, 1rem + 0.7vw, 1.875rem);
    line-height: 1.3;
    color: var(--wp--preset--color--text);
    margin: 18px auto 0;
}
.fd-svc-intro__callout {
    background: var(--wp--preset--color--sage);
    color: var(--wp--preset--color--growth);
    max-width: 980px;
    margin: clamp(32px, 4vw, 48px) auto 0;
    padding: clamp(28px, 3vw, 40px) clamp(32px, 4vw, 56px);
    border-radius: 24px;
}
.fd-svc-intro__callout p {
    margin: 0;
    font-weight: 500;
    font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.5rem);
    line-height: 1.5;
}

/* -----------------------------------------------------------------------------
   §3 Expanded service cards
   -------------------------------------------------------------------------- */
.fd-svc-cards-wrap { padding: clamp(44px, 5vw, 68px) 0 0; }
.fd-svc-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
    list-style: none;
}
.fd-svc-cards--bottom {
    grid-template-columns: repeat(2, 1fr);   /* the last 2 cards span full width as a featured pair (per mockup) — no empty 3rd column */
    margin-top: 24px;
}
.fd-svc-card {
    position: relative;
    background: var(--wp--preset--color--dirty-cream);
    border: 1px solid rgba(40, 40, 57, 0.10);   /* hairline so cream cards read on the #f9f8f7 page */
    border-radius: 28px;
    padding: clamp(28px, 2.6vw, 40px);
    color: var(--wp--preset--color--text);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Hover → the whole card darkens to the featured (navy) treatment (Sandro 2026-06-23).
   No card is dark by default any more; all 5 are cream and darken on hover. */
.fd-svc-card:hover {
    background: var(--wp--preset--color--surface-dark);
    border-color: transparent;
    color: var(--wp--preset--color--background);
    transform: translateY(-4px);
}
.fd-svc-card:hover .fd-svc-card__tags li {
    background: rgba(255, 255, 255, 0.10);
    color: var(--wp--preset--color--background);
}
.fd-svc-card:hover .fd-svc-card__body { color: rgba(249, 248, 247, 0.86); }
/* keep the Explore pill visible on the now-navy card */
.fd-svc-card:hover .fd-svc-card__explore {
    background: var(--wp--preset--color--punchy) !important;
    color: var(--wp--preset--color--surface-dark) !important;
}
@media (prefers-reduced-motion: reduce) {
    .fd-svc-card { transition: none; }
    .fd-svc-card:hover { transform: none; }
}
.fd-svc-card--dark {
    background: var(--wp--preset--color--surface-dark);
    border-color: transparent;
    border-radius: 32px;                          /* featured card: larger radius, deliberate asymmetry */
    color: var(--wp--preset--color--background);
}
.fd-svc-card__icon {
    position: absolute;
    top: clamp(24px, 2.4vw, 36px);
    right: clamp(24px, 2.4vw, 36px);
    width: 46px;
    height: 46px;
    display: inline-flex;
}
.fd-svc-card__icon svg { width: 100%; height: 100%; }
.fd-svc-card__title {
    font-weight: 300;
    font-size: clamp(1.9rem, 1.3rem + 1.5vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    max-width: calc(100% - 76px);   /* always clear the top-right bubble icon (46px + ~30px offset) — no collision even on 2-line titles */
    margin: 4px 0 0;
    color: inherit;
}
.fd-svc-card__lead {
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.22rem);
    line-height: 1.35;
    margin: 0;
    color: inherit;
}
.fd-svc-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.fd-svc-card__tags li {
    background: var(--wp--preset--color--bloom);
    color: var(--wp--preset--color--primary);
    font-size: 0.86rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
}
.fd-svc-card--dark .fd-svc-card__tags li {
    background: rgba(255, 255, 255, 0.10);
    color: var(--wp--preset--color--background);
}
.fd-svc-card__body {
    font-size: 0.96rem;
    line-height: 1.55;
    margin: 0;
    color: #2c2c3a;
}
.fd-svc-card--dark .fd-svc-card__body { color: rgba(249, 248, 247, 0.86); }

/* -----------------------------------------------------------------------------
   §4 mini-CTA
   -------------------------------------------------------------------------- */
.fd-svc-help {
    text-align: center;
    padding: clamp(48px, 5vw, 72px) 24px clamp(24px, 3vw, 40px);
}
.fd-svc-help__q {
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
    line-height: 1.18;
    color: var(--wp--preset--color--text);
    margin: 0 0 28px;
}
.fd-svc-help__ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* §4 soft-button skins (spec §6) */
.fd-btn--tangerine {
    background: var(--wp--preset--color--tangerine);
    color: var(--wp--preset--color--text);
}
.fd-btn--campfire {
    background: var(--wp--preset--color--campfire);
    /* dark text — white on campfire is only 3.44:1 (AA fail). Matches tangerine sibling.
       (.ai shows white; a11y wins — flag to Geetha.) */
    color: var(--wp--preset--color--text);
}

/* -----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .fd-svc-hero { grid-template-columns: 1fr; min-height: auto; }   /* drop the desktop hero floor when stacked (Sandro 2026-06-28) */
    /* Content-first on mobile (Sandro 2026-06-26): the navy panel (headline + pills)
       sits at the TOP under the floating nav; the floral + FD-mark becomes a brand
       band BELOW it. Previously the art was on top (order:-1) with the mark cropped
       behind the nav, which read as broken. */
    .fd-svc-hero__art { min-height: 188px; }
    body.fd-page-services .fd-svc-hero__panel { padding-top: clamp(120px, 28vw, 150px); }
    /* FD mark centred in the (now lower) art band */
    .fd-svc-hero__art::after { width: clamp(104px, 24vw, 148px); height: clamp(104px, 24vw, 148px); left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
    .fd-svc-cards,
    .fd-svc-cards,
    .fd-svc-cards--bottom { grid-template-columns: 1fr; max-width: 560px; }
    /* keep the calc(100% - 58px) title clearance on mobile so it never hits the icon */
}

@media (max-width: 600px) {
    /* mini-CTA pair (Meet The Team / Book a Call) → equal width, stacked, centered */
    .fd-svc-help__ctas { flex-direction: column; align-items: center; gap: 12px; }
    .fd-svc-help__ctas a { width: 100%; max-width: 300px; box-sizing: border-box; justify-content: center; }

    /* hero "explore our services" pill → centered (was left-aligned, broke the hero composition) */
    .fd-svc-hero__explore { align-self: center; }
}

/* =============================================================================
   Service-card Explore button (Geetha 2026-06-18) — pinned to the card bottom
   ============================================================================= */
.fd-svc-card__explore { align-self: flex-start; margin-top: auto; }

/* =============================================================================
   §5 — How It Works (4 numbered steps + dotted connectors) — NEW
   ============================================================================= */
.fd-howit {
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(48px, 5vw, 76px) clamp(20px, 5vw, 80px);
    scroll-margin-top: clamp(96px, 9vw, 120px);   /* #how-it-works deep-link clears the floating nav (About "How We Work" → here) */
}
.fd-howit .fd-eyebrow { margin: 0 auto; }
.fd-howit__heading {
    font-family: var(--wp--preset--font-family--satoshi);
    font-weight: 300;
    font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    color: var(--wp--preset--color--text);
    margin: 18px 0 0;
}
.fd-howit__heading em { font-weight: 700; font-style: italic; }
.fd-howit__steps {
    list-style: none;
    margin: clamp(40px, 5vw, 66px) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 2.4vw, 40px);
    text-align: left;
}
.fd-howit__step { position: relative; }
.fd-howit__num {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--wp--preset--color--sage);
    color: var(--wp--preset--color--growth);
    font-family: var(--wp--preset--font-family--satoshi);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 20px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.fd-howit__title {
    font-family: var(--wp--preset--font-family--satoshi);
    font-weight: 500;
    font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem);
    color: var(--wp--preset--color--text);
    margin: 0 0 10px;
    transition: color 0.3s ease;
}
/* Enterprise hover: the numbered badge activates (fills brand purple, scales,
   purple glow), the title accents purple, and the connector line draws in solid
   purple toward the next step. */
.fd-howit__step:hover .fd-howit__num {
    background: var(--wp--preset--color--primary-soft);   /* header-pill GrapeSoda var(--wp--preset--color--primary-soft) */
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(167, 147, 247, 0.45);
}
.fd-howit__step:hover .fd-howit__title { color: var(--wp--preset--color--primary-soft); }
.fd-howit__desc {
    font-weight: 400;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #4a4a57;
    margin: 0;
}
.fd-howit__cta { margin: clamp(40px, 5vw, 60px) auto 0; }

/* dotted connector between steps (desktop only) */
@media (min-width: 861px) {
    .fd-howit__step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 23px;
        left: 60px;
        right: calc(-1 * clamp(20px, 2.4vw, 40px) + 14px);
        height: 2px;
        background: repeating-linear-gradient(90deg,
            var(--wp--preset--color--primary-soft) 0 6px, transparent 6px 13px);
    }
    /* solid purple line that "draws" across the dashed track on hover */
    .fd-howit__step:not(:last-child)::before {
        content: "";
        position: absolute;
        top: 22px;
        left: 60px;
        right: calc(-1 * clamp(20px, 2.4vw, 40px) + 14px);
        height: 3px;
        background: var(--wp--preset--color--primary-soft);   /* header-pill GrapeSoda var(--wp--preset--color--primary-soft) */
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1;
    }
    .fd-howit__step:hover::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
    .fd-howit__num, .fd-howit__title, .fd-howit__step::before { transition: none; }
}
@media (max-width: 860px) {
    .fd-howit__steps { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
}
@media (max-width: 480px) {
    .fd-howit__steps { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
    .fd-howit__cta { width: 100%; max-width: 300px; box-sizing: border-box; }
}
