/* ============================================================================
   Industry template + hub — /industries/ and /industries/{slug}/
   Spec: design/specs/page-industries.md (.ai artboard 6, Financial Services).
   Reuses DS buttons/eyebrows/case-cards. Content column = header width (1440).
   (NB: assets/css/industries.css is the LANDING industries band — different file.)
   ========================================================================== */

:root {
    --ind-maxw:   1440px;
    --ind-navy:   var(--wp--preset--color--surface-dark, #282839);
    --ind-sage:   var(--wp--preset--color--sage, #e2eed9);
    --ind-growth: var(--wp--preset--color--growth, #29605c);
    --ind-punchy: var(--wp--preset--color--punchy, #ebfec3);
    --ind-soft:   var(--wp--preset--color--primary-soft, #a793f7);
    --ind-purple: var(--wp--preset--color--primary, #6631e1);
    --ind-bloom:  var(--wp--preset--color--bloom, #dad7f7);
    --ind-cream:  var(--wp--preset--color--dirty-cream, #efede8);
}

body.fd-page-industry,
body.fd-page-industry #fd-main,
body.fd-page-industries-hub,
body.fd-page-industries-hub #fd-main { background: #ffffff; }
body.fd-page-industry #fd-main,
body.fd-page-industries-hub #fd-main { padding-top: 0; }
body.fd-page-industry .fd-header,
body.fd-page-industries-hub .fd-header { top: 24px; }

/* Shared section rhythm + header-aligned container. */
.fd-ind-hero, .fd-ind-intro, .fd-ind-cap, .fd-ind-chal, .fd-ind-test, .fd-ind-cases, .fd-ind-final,
.fd-indhub-hero, .fd-indhub-grid-wrap {
    padding-block: clamp(44px, 4.6vw, 72px);   /* tighter vertical rhythm — no oversized gaps between sections */
    padding-inline: clamp(20px, 5vw, 40px);
}

/* ---------------------------------------------------------------- §0 Hero --- */
.fd-ind-hero, .fd-indhub-hero {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 610px;                       /* enterprise floor — lift the short hub/detail heroes into the inner-hero band, content centred (Sandro 2026-06-28; were 508/538) */
    box-sizing: border-box;
    padding-top: clamp(112px, 9vw, 164px);   /* match the Blog/Case-Studies inner-hero top so the gap-to-title is consistent */
    padding-bottom: clamp(48px, 5vw, 76px);
    text-align: center;
    color: #fff;
    /* EXACT bokeh extracted from Geetha's .ai hero (artboard 6), softened to drop the
       overlaid UI → the real soft lilac/pink/mauve floral bokeh. Muted gradient = fallback. */
    background-color: #bda6c4;
    background-image:
        url(../img/hero-bokeh.webp),
        linear-gradient(120deg, #c7bfd9 0%, #c3adca 50%, #bb9ec1 100%);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.fd-ind-hero__glow, .fd-indhub-hero__glow {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    /* faint top sheen only — the bokeh image already carries the highlights */
    background: radial-gradient(62% 72% at 50% 36%, rgba(255, 255, 255, 0.10), transparent 70%);
}
.fd-ind-hero__inner, .fd-indhub-hero__inner { position: relative; z-index: 1; max-width: 840px; margin: 0 auto; }
.fd-ind-hero .fd-eyebrow, .fd-indhub-hero .fd-eyebrow {
    display: flex; width: -moz-fit-content; width: fit-content; margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.86) !important; color: var(--ind-purple) !important;
}
.fd-ind-hero__title, .fd-indhub-hero__title {
    margin: 0; font-family: 'Satoshi', sans-serif; font-weight: 300;
    font-size: clamp(40px, 5.2vw, 78px); line-height: 1.04; letter-spacing: -0.02em; color: #fff;   /* shared inner-hero title scale */
    text-shadow: 0 2px 26px rgba(60, 38, 72, 0.30);
}
.fd-ind-hero__title em, .fd-indhub-hero__title em { font-weight: 700; font-style: italic; }
.fd-ind-hero__sub, .fd-indhub-hero__sub {
    margin: 18px auto 0; max-width: 660px;
    font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: #fff;
    text-shadow: 0 1px 16px rgba(60, 38, 72, 0.34);
}

/* Centred button rows (shared across all industry sections). */
.fd-ind-btnrow {
    display: flex; flex-wrap: wrap; gap: 14px;
    justify-content: center; align-items: center;
    margin-top: clamp(28px, 3.5vw, 40px);
}

/* --------------------------------------------------------------- §1 Intro --- */
.fd-ind-intro { text-align: center; }
.fd-ind-intro__heading {
    max-width: 20ch; margin: 0 auto;
    font-family: 'Satoshi', sans-serif; font-weight: 300; font-style: normal;
    font-size: clamp(32px, 5vw, 58px); line-height: 1.1; letter-spacing: -0.015em; color: var(--ind-navy);
}
.fd-ind-intro__heading em { font-weight: 700; font-style: italic; }
.fd-ind-intro__body {
    max-width: 720px; margin: 24px auto 0;
    font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; color: #4b4b57;
    text-align: justify; text-align-last: center;
}

/* -------------------------------------------------- §2 Capability cards --- */
.fd-ind-cap__grid {
    list-style: none; margin: 0 auto; padding: 0; max-width: var(--ind-maxw);
    display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: clamp(18px, 2vw, 28px);
}
.fd-ind-cap__card { background: var(--ind-sage); border-radius: 24px; padding: clamp(30px, 2.8vw, 44px); text-align: center; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease; }
@media (hover: hover) { .fd-ind-cap__card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -24px rgba(40, 40, 57, 0.30); } }
@media (prefers-reduced-motion: reduce) { .fd-ind-cap__card { transition: none; } .fd-ind-cap__card:hover { transform: none; } }
.fd-ind-cap__title {
    margin: 0 0 16px; min-height: 2.4em;
    font-family: 'Satoshi', sans-serif; font-weight: 600; font-size: clamp(19px, 1.6vw, 24px);
    line-height: 1.2; color: var(--ind-growth);
}
.fd-ind-cap__body {
    margin: 0; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: var(--ind-growth);
    text-align: justify; text-align-last: center;
}
.fd-ind-cap .fd-ind-btnrow { margin-top: clamp(36px, 4vw, 52px); }

/* ------------------------------------------------------ §3 Challenges --- */
.fd-ind-chal {
    width: 100vw; margin-inline: calc(50% - 50vw);
    background: #f6f6f4; color: var(--ind-navy); text-align: center;
}
.fd-ind-chal .fd-eyebrow { display: flex; width: -moz-fit-content; width: fit-content; margin: 0 auto; }
.fd-ind-chal__heading {
    max-width: 18ch; margin: 18px auto 0;
    font-family: 'Satoshi', sans-serif; font-weight: 300; font-size: clamp(32px, 5vw, 56px);
    line-height: 1.12; color: var(--ind-navy);
}
.fd-ind-chal__heading em {
    font-weight: 700; font-style: italic;
    background: var(--ind-punchy); color: var(--ind-navy);
    padding: 0.02em 0.22em; border-radius: 4px;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.fd-ind-chal__sub { max-width: 640px; margin: 16px auto 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.6; color: #555560; }
.fd-ind-chal__chips {
    list-style: none; margin: clamp(36px, 4vw, 52px) auto 0; padding: 0; max-width: 1020px;
    display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
}
.fd-ind-chip {
    flex: 0 1 300px; max-width: 320px;
    background: var(--ind-navy); color: #fff; border-radius: 18px; padding: 22px 26px;
    font-size: clamp(14px, 1.1vw, 16px); line-height: 1.45;
    display: flex; align-items: center; justify-content: center; text-align: center;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
/* ALL chips dark by default (incl. mobile) — no fixed-purple chip (Francesca: on
   mobile one box was purple, should be all dark). Desktop lights to purple on hover. */
.fd-ind-chip.is-accent { background: var(--ind-navy); color: #fff; }
@media (hover: hover) {
    .fd-ind-chip:hover { background: var(--ind-soft); color: var(--ind-navy); transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) { .fd-ind-chip:hover { transform: none; } }
.fd-ind-chal .fd-ind-btnrow { margin-top: clamp(32px, 4vw, 44px); }

/* Unified testimonials carousel (Sandro 2026-06-28): the industry page keeps its own
   "Our Work / Meet the Team" closer, so hide the carousel's built-in "Our Services" CTA
   here to avoid a double closer. */
body.fd-page-industry .fd-testimonials__cta { display: none !important; }
.fd-ind-btnrow--test {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 16px;
    margin: clamp(20px, 2.5vw, 34px) auto clamp(8px, 2vw, 20px);
}

/* ---------------------------------------------------- §4 Testimonials --- */
.fd-ind-test { text-align: center; }
.fd-ind-test .fd-eyebrow { display: flex; width: -moz-fit-content; width: fit-content; margin: 0 auto; }
.fd-ind-test__heading {
    margin: 18px auto 0; font-family: 'Satoshi', sans-serif; font-weight: 700; font-style: italic;
    font-size: clamp(34px, 5.5vw, 64px); line-height: 1.05; color: var(--ind-navy);
}
.fd-ind-test__heading em { font-weight: 700; font-style: italic; }
.fd-ind-test__sub { margin: 16px auto 0; max-width: 520px; font-size: clamp(14px, 1.1vw, 17px); color: #555560; }
.fd-ind-test__grid {
    list-style: none; margin: clamp(40px, 4.5vw, 56px) auto 0; padding: 4px; max-width: var(--ind-maxw);
    display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.fd-ind-test__grid::-webkit-scrollbar { display: none; }
.fd-ind-test__card {
    flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start;
    position: relative; border-radius: 24px; padding: 34px 30px;
    text-align: left; display: flex; flex-direction: column; min-height: 300px;
}
.fd-ind-test__card--0 { background: linear-gradient(160deg, #3b3b4f, #282839); color: #fff; }
.fd-ind-test__card--1 { background: var(--ind-cream); color: var(--ind-navy); }
.fd-ind-test__card--2 { background: linear-gradient(160deg, #f1cba9, #e7a787); color: var(--ind-navy); }
.fd-ind-test__tag {
    position: absolute; top: 22px; right: 22px;
    background: var(--ind-bloom); color: var(--ind-purple);
    font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 999px;
}
.fd-ind-test__mark { font-family: Georgia, 'Times New Roman', serif; font-size: 64px; line-height: 0.6; opacity: 0.45; }
.fd-ind-test__quote { margin: 16px 0 auto; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; }
.fd-ind-test__by { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-weight: 600; font-size: 14px; }
.fd-ind-test__avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--ind-navy, #282839); color: #f3f1ea; font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.03em; }
/* on the dark testimonial card the navy circle would blend → invert to a cream chip */
.fd-ind-test__card--0 .fd-ind-test__avatar { background: #f3f1ea; color: var(--ind-navy, #282839); }
.fd-ind-test__nav { display: flex; gap: 14px; justify-content: center; margin-top: 32px; }
.fd-ind-test__arrow {
    width: 48px; height: 48px; border-radius: 999px; border: none; cursor: pointer;
    background: var(--ind-punchy); color: var(--ind-growth);
    display: grid; place-items: center; transition: background 0.15s ease, transform 0.15s ease;
}
.fd-ind-test__arrow:hover { background: #ddf6a4; transform: translateY(-1px); }
.fd-ind-test .fd-ind-btnrow { margin-top: 28px; }

/* ------------------------------------------------------ §5 Client stories --- */
.fd-ind-cases { text-align: center; }
.fd-ind-cases .fd-eyebrow { display: flex; width: -moz-fit-content; width: fit-content; margin: 0 auto; }
.fd-ind-cases__heading {
    margin: 18px auto 0; font-family: 'Satoshi', sans-serif; font-weight: 300;
    font-size: clamp(30px, 4.5vw, 52px); line-height: 1.12; color: var(--ind-navy);
}
.fd-ind-cases__heading em { font-weight: 700; font-style: italic; }
.fd-ind-cases__sub { margin: 14px 0 0; font-size: clamp(16px, 1.3vw, 19px); color: #4b4b57; }
.fd-ind-cases .fd-cases__cards { max-width: var(--ind-maxw); margin: clamp(40px, 4.5vw, 56px) auto 0; }
body.fd-page-industry .fd-case-card a::before {
    background: linear-gradient(180deg, rgba(45, 22, 60, 0.12) 0%, rgba(45, 22, 60, 0.52) 46%, rgba(45, 22, 60, 0.94) 100%);
}
body.fd-page-industry .fd-ind-cases .fd-case-card:first-child .fd-btn--explore {
    background: var(--ind-punchy) !important; color: var(--ind-navy) !important;
}
.fd-ind-cases .fd-ind-btnrow { margin-top: clamp(36px, 4vw, 48px); }

/* --------------------------------------------------------- §6 Final CTA --- */
.fd-ind-final { position: relative; text-align: center; overflow: hidden; }
.fd-ind-final__glow {
    position: absolute; top: 46%; left: 50%; width: min(1000px, 95vw); height: 720px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(235, 254, 195, 0.85) 0%, rgba(235, 254, 195, 0) 62%);
    pointer-events: none; z-index: 0;
}
.fd-ind-final > *:not(.fd-ind-final__glow) { position: relative; z-index: 1; }
.fd-ind-final__h {
    margin: 0 auto; font-family: 'Satoshi', sans-serif; font-weight: 300;
    font-size: clamp(40px, 6.5vw, 78px); line-height: 1.0; letter-spacing: -0.02em; color: var(--ind-navy);
}
.fd-ind-final__h em { font-weight: 700; font-style: italic; }
.fd-ind-final__sub {
    margin: 18px 0 0; font-family: 'Satoshi', sans-serif; font-weight: 600;
    font-size: clamp(16px, 1.5vw, 20px); color: var(--ind-navy);
}
.fd-ind-partners {
    display: inline-flex; align-items: center; gap: 14px; margin-top: 26px;
    background: var(--ind-navy); border-radius: 999px; padding: 8px 10px 8px 22px;
}
.fd-ind-partners__label { color: #fff; font-size: 14px; font-weight: 500; }
.fd-ind-partners__avatars { display: inline-flex; }
.fd-ind-partners__avatars img {
    width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--ind-navy); margin-left: -12px;
}
.fd-ind-partners__avatars img:first-child { margin-left: 0; }
.fd-ind-final .fd-ind-btnrow { margin-top: 26px; }

/* ----------------------------------------------------------- Hub grid --- */
.fd-indhub-grid {
    list-style: none; margin: 0 auto; padding: 0; max-width: var(--ind-maxw);
    display: flex; flex-wrap: wrap; gap: clamp(18px, 2vw, 28px); justify-content: center;
    /* flex (not grid) so the 5th/last row centres instead of leaving an orphan column */
}
.fd-indhub-card {
    flex: 1 1 31%; max-width: 460px; min-width: 260px;
    background: var(--ind-cream); border: 1px solid rgba(40, 40, 57, 0.08); border-radius: 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.fd-indhub-card a { display: flex; flex-direction: column; height: 100%; padding: clamp(28px, 2.6vw, 40px); text-decoration: none; color: var(--ind-navy); }
.fd-indhub-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -20px rgba(40, 40, 57, 0.4); }
.fd-indhub-card__title {
    margin: 0 0 12px; font-family: 'Satoshi', sans-serif; font-weight: 300;
    font-size: clamp(22px, 2vw, 32px); line-height: 1.1; letter-spacing: -0.01em; color: var(--ind-navy);
}
.fd-indhub-card__blurb { margin: 0 0 26px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; color: #555560; }
.fd-indhub-card__cta {
    margin-top: auto; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 0.45em;
    background: var(--ind-soft); color: #fff; font-size: 14px; font-weight: 600;
    padding: 0.62em 1.15em; border-radius: 999px;
}
.fd-indhub-card__cta::after {
    content: ""; width: 0.6em; height: 0.6em; flex: none; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ----------------------------------------------------------- responsive --- */
@media (max-width: 980px) {
    .fd-ind-cap__grid { grid-template-columns: repeat(2, 1fr); }
    .fd-indhub-card { flex-basis: 46%; max-width: none; }
}
@media (max-width: 760px) {
    .fd-ind-cap__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }   /* drop equal-height rows when stacked → no hollow sage void in shorter cards (audit 2026-06-29) */
    .fd-indhub-card { flex-basis: 100%; }
    .fd-ind-chip { flex-basis: 100%; max-width: 100%; }
    .fd-ind-test__card { flex-basis: 84%; }
    .fd-ind-intro__body, .fd-ind-cap__body { text-align: left; }
    .fd-ind-hero, .fd-indhub-hero { padding-top: 128px; min-height: 0; }   /* drop the desktop hero floor on phones (Sandro 2026-06-28) */
    .fd-ind-cap__title { min-height: 0; }
}
