/* ============================================================
   FloreData — Landing Hero  (iteration 2)
   Pixel-perfect against:
     floredata/design/specs/landing-hero.md
     floredata/design/ai-renders/hero-lossless-1.png
   Design width: 1920 px (1pt = 1px).
   ============================================================ */

/* Page wrap: Light Grey wash everywhere — the hero is a card on top */
body.fd-page-home {
    background: var(--wp--preset--color--background);
    margin: 0;
}

/* --- Hero card -------------------------------------------------- */

.fd-hero {
    position: relative;
    isolation: isolate;
    margin: 0;                          /* full-bleed banner from the very top (call 2026-06-17) */
    padding: 22px 32px 76px;
    overflow: hidden;
    background-color: #b8a1f4;          /* Grape Soda fallback under floral */
    border-radius: 0;                   /* edge-to-edge, no rounded card */
}

/* Floral motif 3 — full-bleed image, NO overlay (the motif itself fades purple at edges) */
.fd-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url(../img/floral-motif-3.webp);
    background-size: cover;
    background-position: center 24%;   /* Geetha "Landing Banner Changes": bring the warm flame region up so the floral reads VIVID (was pale 'center top'); the upper band stays light enough for the dark headline */
    background-repeat: no-repeat;
    filter: saturate(1.35) contrast(1.04);   /* boost the orange/pink vibrancy — the source is washed-out at full bleed */
}

/* legacy overlay div is ignored (kept in HTML for back-compat; rendered transparent) */
.fd-hero__overlay { display: none; }

/* --- Pill nav: brand LEFT, [links + CTA] grouped RIGHT --- */

/* The nav itself now lives in the GLOBAL header; this spacer reserves its
   exact 64px footprint so the hero content keeps its locked vertical rhythm.
   The fixed global pill overlays this region (body.fd-page-home top:36px). */
.fd-hero__nav-spacer { height: 64px; }

.fd-hero__nav {
    position: relative;
    width: min(1441px, 100%);
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 28px;
    background: var(--wp--preset--color--primary-soft);
    border-radius: 999px;
    z-index: 2;
}

.fd-hero__brand {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: var(--wp--preset--color--text-inverse);
    text-decoration: none;
    flex-shrink: 0;
}

.fd-hero__brand-logo {
    height: 30px;
    width: auto;
    display: block;
}

.fd-hero__nav-right {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-shrink: 0;
}

.fd-hero__nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fd-hero__nav-links a {
    font-family: var(--wp--preset--font-family--satoshi);
    font-size: var(--wp--preset--font-size--nav);
    font-weight: 700;
    color: var(--wp--preset--color--text-inverse);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
}

.fd-hero__nav-links a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* CONTACT US — Sage bg, BLACK text (vector-confirmed from .ai high-res render) */
.fd-hero__nav-cta {
    font-family: var(--wp--preset--font-family--satoshi);
    font-size: var(--wp--preset--font-size--nav);
    font-weight: 700;
    color: #000;
    background: var(--wp--preset--color--sage);
    border: none;
    border-radius: 999px;
    padding: 14px 26px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    transition: background-color 0.15s ease;
}

.fd-hero__nav-cta:hover {
    background: var(--wp--preset--color--text-inverse);
    color: #000;
}

/* --- Inner content centered, with .ai vertical rhythm ----------- */

.fd-hero__inner {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    /* Geetha 2026-06-18 (Landing Banner Changes): reduce the top spacing so the
       headline sits tight under the nav — the 64px nav-spacer already clears the
       floating pill, so this is just the breathing gap below it (was 218px void). */
    padding-top: 44px;
    text-align: center;
    z-index: 1;
}

/* --- H1 headline ------------------------------------------------ */

.fd-hero__headline {
    font-family: var(--wp--preset--font-family--satoshi);
    font-size: var(--wp--preset--font-size--h-1-hero);
    font-weight: 300;                  /* .ai: base words are Light; emphasis via <em> */
    line-height: 1.02;
    letter-spacing: -0.005em;
    color: var(--wp--preset--color--text);
    margin: 0;
    text-align: center;
}

.fd-hero__headline em {
    font-weight: 700;                  /* "Data" / "Growth" stay Bold Italic */
    font-style: italic;
}

/* --- Subtitle (gap ≈ 21 pt) ------------------------------------ */

.fd-hero__sub {
    font-family: var(--wp--preset--font-family--satoshi);
    font-size: var(--wp--preset--font-size--subtitle);
    font-weight: 500;                  /* .ai: Medium, not Bold */
    line-height: 1.17;
    color: #000;
    max-width: 38ch;
    margin: 20px auto 0;
}

/* --- Capability pills (gap from subtitle ≈ 74 pt) -------------- */

.fd-hero__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 1000px;
    margin: 72px auto 0;
    padding: 0;
    list-style: none;
}

.fd-hero__pills .fd-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--wp--preset--color--sage);
    color: var(--wp--preset--color--growth);
    font-family: var(--wp--preset--font-family--satoshi);
    font-size: var(--wp--preset--font-size--pill);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.fd-hero__pills .fd-pill__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}

/* --- CTA pair (gap from pills row 2 ≈ 72 pt) ------------------- */

.fd-hero__cta {
    display: flex;
    justify-content: center;
    gap: 23px;                /* .ai-measured 23pt */
    margin: 72px auto 0;
    flex-wrap: wrap;
}

/* CTAs: identical dimensions per .ai (211×58 pt). Text LEFT, chevron pushed RIGHT */
.fd-btn--cream,
.fd-btn--filled {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;     /* text left, chevron right */
    width: 211px;
    height: 58px;
    padding: 0 22px 0 28px;
    font-family: var(--wp--preset--font-family--satoshi);
    font-weight: 700;
    font-size: 19.5px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.fd-btn--cream > span,
.fd-btn--filled > span {
    display: inline-block;
    white-space: nowrap !important;
    flex-shrink: 0;
}

/* Left CTA — soft Bloom lavender (pale), purple text + arrow */
.fd-btn--cream {
    background: var(--wp--preset--color--bloom);
    color: var(--wp--preset--color--primary);
}
.fd-btn--cream:hover {
    background: var(--wp--preset--color--primary-soft);
    color: var(--wp--preset--color--primary);
    transform: translateY(-1px);
}

/* Right CTA — "Book a Call" = hero PRIMARY (FloreData Purple + white + white
   chevron), exactly as the .ai hero. NB: the footer's Book a Call stays lime —
   the .ai uses different treatments per context (hero = purple, footer = lime). */
.fd-btn--filled {
    background: #6631DF;
    color: #fff;
}
.fd-btn--filled:hover {
    background: #5526c4;               /* darker purple */
    color: #fff;
    transform: translateY(-1px);
}

.fd-arrow {
    width: 28px;
    height: 30px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
    display: inline-block;
}

.fd-btn--cream:hover .fd-arrow,
.fd-btn--filled:hover .fd-arrow {
    transform: translateX(4px);
}

/* Hero card has its own concave bottom — kill the pseudo-element from v1 */
.fd-hero::after { content: none; }

/* --- Trusted-by strip — infinite-loop carousel ------------------------ */

.fd-trustedby {
    background: var(--wp--preset--color--background);
    padding: 48px 0 64px;
    text-align: center;
    overflow: hidden;
}

.fd-trustedby__eyebrow {
    font-family: var(--wp--preset--font-family--satoshi);
    font-size: var(--wp--preset--font-size--eyebrow);
    font-weight: 700;
    color: #000000;
    margin: 0 0 28px;
    line-height: 1;
}

.fd-carousel {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 1400px;        /* narrower than viewport per .ai layout */
    margin: 0 auto;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scrollbar-width: none;    /* Firefox */
    -ms-overflow-style: none;
    scroll-behavior: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 100px, #000 calc(100% - 100px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 100px, #000 calc(100% - 100px), transparent 100%);
}

.fd-carousel::-webkit-scrollbar { display: none; }  /* WebKit */

.fd-carousel.is-grabbing { cursor: grabbing; }

.fd-carousel__track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    padding: 8px 0;
}

.fd-carousel__logo {
    height: 56px;
    width: auto;
    flex-shrink: 0;
    opacity: 0.78;
    filter: grayscale(15%);
    transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.fd-carousel__logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .fd-carousel {
        overflow-x: auto;       /* still draggable, just no auto-scroll */
    }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
    .fd-hero { margin: 0; padding: 24px 24px 80px; }
    .fd-hero__nav-links { gap: 24px; }
    .fd-hero__inner { padding-top: 40px; }   /* tight under nav (Geetha 2026-06-18) */
}

@media (max-width: 860px) {
    .fd-hero {
        margin: 0;
        padding: 16px 18px 64px;
        border-radius: 0;                /* straight banner on mobile too (no curved bottom) */
    }
    .fd-hero__nav {
        height: 52px;
        padding: 0 8px 0 14px;
    }
    .fd-hero__nav-links { display: none; }
    .fd-hero__brand { font-size: 1.125rem; }
    .fd-hero__brand-mark { width: 24px; height: 24px; }
    .fd-hero__nav-cta { padding: 8px 16px; font-size: 0.75rem; }
    .fd-hero__inner { padding-top: 36px; }   /* tight under nav (Geetha 2026-06-18) */
    .fd-hero__pills { margin-top: 40px; gap: 8px; }
    .fd-hero__pills .fd-pill { padding: 7px 14px; }
    .fd-hero__cta { margin-top: 40px; gap: 12px; flex-direction: column; align-items: center; }
    .fd-hero__cta a { width: 100%; max-width: 280px; box-sizing: border-box; }   /* equal-width centered CTAs */
    /* narrower edge-fade so partner logos aren't half-clipped on a 390px screen */
    .fd-carousel {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
                mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    }
    .fd-trustedby__logos { gap: 36px; }
    .fd-trustedby__logos li { font-size: 1.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fd-btn--cream,
    .fd-btn--filled,
    .fd-btn--cream .fd-arrow,
    .fd-btn--filled .fd-arrow,
    .fd-hero__nav-cta {
        transition: none !important;
    }
    .fd-btn--cream:hover,
    .fd-btn--filled:hover { transform: none; }
    .fd-btn--cream:hover .fd-arrow,
    .fd-btn--filled:hover .fd-arrow { transform: none; }
}
