/* =============================================================================
   FloreData — Global footer (structured "data-brand" layout, DARK)
   Per Francesca 2026-06-15: align with serious data brands (Databricks ref =
   dark footer), not a boutique giant-wordmark. Jazz-Club band, white brand +
   contact + socials LEFT; Company / Services / Industries link columns;
   Book-a-Call; copyright row. Loaded after outro.css so it supersedes the old
   `.fd-footer*` (wordmark) rules. Also defines the back-to-top control.
   ============================================================================= */

.fd-footer {
    margin: clamp(56px, 5.5vw, 96px) 0 0;                 /* full-bleed dark band; gap to last section tightened (Sandro 2026-06-28, was 120-240px) */
    background: var(--wp--preset--color--surface-dark);   /* #282839 Jazz Club */
    border-radius: 0;
    padding: clamp(48px, 5vw, 84px) clamp(28px, 4vw, 72px) clamp(28px, 3vw, 40px);
    color: var(--wp--preset--color--background);          /* off-white #f9f8f7 */
    overflow: hidden;
}

.fd-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) auto;
    gap: clamp(28px, 3.2vw, 60px);
    align-items: start;
}

/* --- Brand column (left) --- */
.fd-footer__logo-link { display: inline-block; }
/* `img.` + !important beats the global `img[loading="lazy"]` CLS plate (#E7E3DA)
   that otherwise shows through the transparent logo PNG as a grey box. (lazy is
   also dropped on this img in the markup.) */
img.fd-footer__logo { width: 184px; height: auto; display: block; background: transparent !important; }
.fd-footer__logo-link:focus-visible {
    outline: 2px solid var(--wp--preset--color--punchy);
    outline-offset: 4px;
    border-radius: 6px;
}
.fd-footer__tagline {
    font-weight: 500;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.32;
    color: var(--wp--preset--color--background);
    opacity: 0.82;
    margin: 22px 0 0;
}
.fd-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;          /* override old outro.css flex-end → align under logo/tagline */
    gap: 11px;
    margin-top: 26px;
}
.fd-footer__line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--wp--preset--color--background);
    text-decoration: none;
}
.fd-footer__line:hover { color: var(--wp--preset--color--punchy); }
.fd-footer__line svg { width: 20px; height: 20px; flex: none; }
.fd-footer__socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.fd-footer__socials a {
    display: inline-flex;
    color: var(--wp--preset--color--background);
    transition: color 0.18s ease, transform 0.18s ease;
}
.fd-footer__socials a:hover { color: var(--wp--preset--color--punchy); transform: translateY(-1px); }
.fd-footer__socials svg { width: 26px; height: 26px; display: block; }

/* --- Link columns --- */
.fd-footer__cols { display: contents; }
.fd-footer__col-title {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wp--preset--color--background);
    opacity: 0.5;                                   /* muted header, Databricks-style */
    margin: 0 0 18px;
}
.fd-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fd-footer__col a {
    font-weight: 500;
    font-size: 0.97rem;
    line-height: 1.3;
    color: var(--wp--preset--color--background);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}
.fd-footer__col a:hover { opacity: 1; color: var(--wp--preset--color--punchy); }

/* --- CTA --- */
.fd-footer__cta { justify-self: end; }
.fd-footer__book {
    display: inline-block;
    background: var(--wp--preset--color--punchy);
    color: var(--wp--preset--color--growth);
    border-radius: 999px;
    padding: 15px 32px;
    font-family: var(--wp--preset--font-family--satoshi);
    font-weight: 500;                                /* buttons = Satoshi Medium (Geetha spec) */
    font-size: 1.05rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}
.fd-footer__book:hover {
    transform: translateY(-2px);
    background: var(--wp--preset--color--background);
    color: var(--wp--preset--color--surface-dark);
}

/* focus rings — light, clear on the dark band */
.fd-footer__col a:focus-visible,
.fd-footer__line:focus-visible,
.fd-footer__socials a:focus-visible,
.fd-footer__book:focus-visible {
    outline: 2px solid var(--wp--preset--color--punchy);
    outline-offset: 3px;
    border-radius: 6px;
}

/* --- Copyright row --- */
.fd-footer__bottom {
    margin-top: clamp(40px, 5vw, 64px);
    padding-top: 22px;
    border-top: 1px solid rgba(249, 248, 247, 0.14);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
}
.fd-footer__copy {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--wp--preset--color--background);
    opacity: 0.55;
}
.fd-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}
.fd-footer__legal a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--wp--preset--color--background);
    opacity: 0.55;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.fd-footer__legal a:hover,
.fd-footer__legal a:focus-visible { opacity: 0.95; }

/* kill the old giant wordmark image if any cached markup lingers */
.fd-footer__wordmark { display: none !important; }

/* --- Back-to-top control --- */
.fd-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 90;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.14);     /* subtle ring — premium edge */
    border-radius: 999px;
    background: var(--wp--preset--color--primary);   /* purple — visible on light pages AND the dark footer */
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* layered soft shadow (brand-tinted) — enterprise, not a flat drop */
    box-shadow: 0 8px 22px -6px rgba(102, 49, 225, 0.5), 0 2px 6px -2px rgba(40, 40, 57, 0.28);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, box-shadow 0.2s ease;
}
.fd-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fd-to-top:hover {
    background: #5526c4;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -8px rgba(102, 49, 225, 0.6), 0 4px 10px -2px rgba(40, 40, 57, 0.32);
}
.fd-to-top:active { transform: translateY(-1px); }
.fd-to-top:focus-visible { outline: 2px solid var(--wp--preset--color--surface-dark); outline-offset: 3px; }
.fd-to-top svg {              /* explicit + larger so the glyph reads at enterprise weight */
    width: 26px;
    height: 26px;
    display: block;
    stroke: #ffffff;
    fill: none;
}

/* --- Responsive (desktop locked first; mobile pass next) --- */
@media (max-width: 1000px) {
    .fd-footer__inner { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
    .fd-footer__brand { grid-column: 1 / -1; }
    .fd-footer__cta { grid-column: 1 / -1; justify-self: center; margin-top: 4px; }
}
@media (max-width: 560px) {
    .fd-footer { margin: 56px 0 0; padding: 44px 26px 30px; border-radius: 0; }   /* was 96px → trimmed the dead band above the footer on short mobile pages */
    .fd-footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .fd-footer__cta { width: 100%; justify-self: stretch; }
    .fd-footer__book { display: block; width: 100%; text-align: center; box-sizing: border-box; }
    .fd-to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .fd-footer__book,
    .fd-footer__socials a,
    .fd-to-top { transition: opacity 0.15s ease; }
    .fd-footer__book:hover,
    .fd-to-top.is-visible { transform: none; }
}
