/* =========================================================
   Footer: Press & Media + Our Offices (footer.php) — compact layout
   Both sections inherit the forced-dark tokens from footer.php.
   ========================================================= */

.fpx-press,
.fpx-offices {
    position: relative;
    padding: 72px 0;
    overflow: hidden;
}

.fpx-press {
    background:
        radial-gradient(600px 280px at 0% 0%, rgba(255, 138, 0, .12), rgba(255, 138, 0, 0) 60%),
        radial-gradient(600px 280px at 100% 100%, rgba(98, 75, 255, .16), rgba(98, 75, 255, 0) 60%),
        #0d0d12 !important;
}

.fpx-offices {
    padding-top: 0;
    background: #0d0d12 !important;
}

.fpx-press .container,
.fpx-offices .container {
    position: relative;
    z-index: 1;
}

/* ---------- Shared head: title left, lead right ---------- */
.fpx-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

.fpx-eyebrow {
    margin: 0 0 6px;
    color: #0a84ff;
    font-family: var(--bold);
    font-size: 16px;
    letter-spacing: .02em;
}

.fpx-title {
    margin: 0;
    color: #fff;
    font-family: var(--bold);
    font-weight: normal;
    font-size: 34px;
    line-height: 1.2;
}

.fpx-lead {
    max-width: 480px;
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    line-height: 1.65;
    text-align: right;
}

/* ---------- Press cards ---------- */
.fpx-press-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.fpx-press-card {
    display: flex;
    flex-direction: column;
    padding: 20px 18px 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.fpx-press-card:hover {
    border-color: rgba(255, 159, 10, .45);
    background: rgba(255, 255, 255, .07);
    transform: translateY(-4px);
}

.fpx-press-logo {
    display: flex;
    align-items: center;
    height: 34px;
    margin-bottom: 16px;
}

.fpx-press-logo svg,
.fpx-press-logo img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 28px !important;
}

.fpx-press-logo img {
    filter: brightness(0) invert(1);
}

.fpx-press-title {
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--bold);
    font-size: 15px;
    line-height: 1.35;
}

.fpx-press-text {
    flex: 1;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .66);
    font-size: 13px;
    line-height: 1.6;
}

.fpx-press-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    color: var(--primary-colors-orange) !important;
    font-family: var(--bold);
    font-size: 14px;
    text-decoration: none;
}

.fpx-press-link i {
    font-size: 15px;
    transition: transform .25s ease;
}

.fpx-press-link:hover i {
    transform: translate(2px, -2px);
}

/* ---------- Office cards ---------- */
.fpx-office-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.fpx-office {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    transition: border-color .3s ease, background .3s ease;
}

.fpx-office:hover {
    border-color: rgba(255, 159, 10, .45);
    background: rgba(255, 255, 255, .07);
}

.fpx-office-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.fpx-office-top img {
    flex: 0 0 40px;
    width: 40px !important;
    height: 40px !important;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    object-fit: cover;
}

.fpx-office-name {
    color: #fff;
    font-family: var(--bold);
    font-size: 15px;
    line-height: 1.3;
}

.fpx-office-addr {
    flex: 1;
    margin: 0;
    color: rgba(255, 255, 255, .66);
    font-size: 13px;
    line-height: 1.6;
    text-transform: capitalize;
}

.fpx-office-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--primary-colors-orange) !important;
    font-family: var(--bold);
    font-size: 14px;
    text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .fpx-press-grid,
    .fpx-office-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .fpx-press,
    .fpx-offices {
        padding: 56px 0;
    }

    .fpx-offices {
        padding-top: 0;
    }

    .fpx-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 24px;
    }

    .fpx-lead {
        text-align: left;
    }

    .fpx-title {
        font-size: 28px;
    }

    /* swipeable rows */
    .fpx-press-grid,
    .fpx-office-grid {
        display: flex;
        gap: 14px;
        margin: 0 -15px;
        padding: 0 15px 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .fpx-press-grid::-webkit-scrollbar,
    .fpx-office-grid::-webkit-scrollbar {
        display: none;
    }

    .fpx-press-card,
    .fpx-office {
        flex: 0 0 260px;
        scroll-snap-align: start;
    }
}

@media (max-width: 575px) {
    .fpx-press,
    .fpx-offices {
        padding: 44px 0;
    }

    .fpx-offices {
        padding-top: 0;
    }

    .fpx-title {
        font-size: 24px;
    }

    .fpx-lead {
        font-size: 14px;
    }

    .fpx-press-card,
    .fpx-office {
        flex-basis: 78%;
    }
}

/* Press logos: white chip with dark logo ink (the SVGs fill with --white-scale-900) */
.fpx-press-logo {
    --white-scale-900: #14121f;
    justify-content: center;
    height: 56px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
}

.fpx-press-logo svg,
.fpx-press-logo img {
    max-height: 30px !important;
    opacity: 1 !important;
}

.fpx-press-logo img {
    filter: none;
}

/* Office flags: always fill the round frame */
.fpx-offices .fpx-office-top img {
    display: block;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ---------- Mobile swipe rows: keep cards off the screen edge ---------- */
@media (max-width: 991px) {
    .fpx-press-grid,
    .fpx-office-grid {
        margin: 0 -15px;
        padding: 2px 15px 8px;
        scroll-padding-inline: 15px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    /* trailing spacer (padding-right is ignored by some browsers on scroll rows) */
    .fpx-press-grid::after,
    .fpx-office-grid::after {
        content: "";
        flex: 0 0 1px;
    }

    .fpx-press-card,
    .fpx-office {
        scroll-snap-align: start;
    }
}

@media (max-width: 575px) {
    .fpx-press-card,
    .fpx-office {
        flex: 0 0 82%;
    }

    .fpx-press-text,
    .fpx-office-addr {
        font-size: 13.5px;
    }

    .fpx-head {
        margin-bottom: 20px;
    }
}

/* =========================================================
   Footer: "Let's work together" CTA — gradient card
   ========================================================= */
.fpx-cta {
    position: relative;
    padding: 0 0 72px !important;
    background: #0d0d12 !important;
}

.fpx-cta-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 56px 64px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 32px;
    background:
        radial-gradient(520px 300px at 0% 0%, rgba(255, 138, 0, .35), rgba(255, 138, 0, 0) 60%),
        radial-gradient(520px 300px at 100% 100%, rgba(124, 77, 255, .45), rgba(124, 77, 255, 0) 60%),
        linear-gradient(120deg, #1b1446 0%, #2a1a6b 55%, #3b1a6e 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

.fpx-cta-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.fpx-cta-orb--a {
    top: -80px;
    right: 22%;
    width: 220px;
    height: 220px;
    background: rgba(255, 94, 126, .35);
    animation: fpxFloat 9s ease-in-out infinite;
}

.fpx-cta-orb--b {
    bottom: -90px;
    left: 30%;
    width: 240px;
    height: 240px;
    background: rgba(0, 199, 190, .22);
    animation: fpxFloat 11s ease-in-out infinite reverse;
}

@keyframes fpxFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

.fpx-cta-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%);
}

.fpx-cta-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 179, 64, .4);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #ffb340;
    font-family: var(--bold);
    font-size: 13px;
    letter-spacing: .14em;
}

.fpx-cta-title {
    margin: 0;
    background: linear-gradient(90deg, #fff 0%, #fff 45%, #ffb340 75%, #ff5e7e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--bold);
    font-size: 64px;
    line-height: 1.02;
    letter-spacing: -1px;
}

/* round CTA with a rotating dashed ring */
.fpx-cta-btn {
    position: relative;
    flex: 0 0 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9f0a 0%, #ff6a00 100%);
    color: #111 !important;
    text-decoration: none !important;
    box-shadow: 0 20px 44px rgba(255, 106, 0, .4);
    transition: transform .35s ease, box-shadow .35s ease;
}

.fpx-cta-btn-ring {
    position: absolute;
    inset: -14px;
    border: 2px dashed rgba(255, 179, 64, .55);
    border-radius: 50%;
    animation: fpxSpin 16s linear infinite;
}

@keyframes fpxSpin {
    to { transform: rotate(360deg); }
}

.fpx-cta-btn i {
    font-size: 30px;
    transition: transform .35s ease;
}

.fpx-cta-btn-label {
    font-family: var(--bold);
    font-size: 16px;
}

.fpx-cta-btn:hover {
    color: #111 !important;
    transform: scale(1.05);
    box-shadow: 0 26px 56px rgba(255, 106, 0, .55);
}

.fpx-cta-btn:hover i {
    transform: rotate(-45deg);
}

@media (max-width: 991px) {
    .fpx-cta {
        padding-bottom: 56px !important;
    }

    .fpx-cta-card {
        padding: 44px 36px;
    }

    .fpx-cta-title {
        font-size: 48px;
    }

    .fpx-cta-btn {
        flex-basis: 140px;
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 575px) {
    .fpx-cta {
        padding-bottom: 44px !important;
    }

    .fpx-cta-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 34px;
        padding: 34px 24px 40px;
        border-radius: 24px;
    }

    .fpx-cta-title {
        font-size: 38px;
    }

    .fpx-cta-btn {
        align-self: center;
        flex-basis: auto;
        width: 130px;
        height: 130px;
    }

    .fpx-cta-btn i {
        font-size: 26px;
    }

    .fpx-cta-btn-label {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fpx-cta-orb,
    .fpx-cta-btn-ring {
        animation: none;
    }
}

/* title: white first line, gradient on "TOGETHER" */
.fpx-cta-title {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #fff;
}

.fpx-cta-title span {
    background: linear-gradient(90deg, #ffb340 0%, #ff8a00 45%, #ff5e7e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- CTA palette v2: dark neutral card, single orange accent ---------- */
.fpx-cta-card {
    border: 1px solid rgba(255, 159, 10, .22);
    background:
        radial-gradient(520px 320px at 100% 50%, rgba(255, 138, 0, .22), rgba(255, 138, 0, 0) 65%),
        radial-gradient(420px 260px at 0% 0%, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 60%),
        linear-gradient(135deg, #17171f 0%, #111117 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.fpx-cta-orb--a,
.fpx-cta-orb--b {
    display: none;
}

.fpx-cta-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
}

.fpx-cta-eyebrow {
    border-color: rgba(255, 159, 10, .35);
    background: rgba(255, 159, 10, .08);
    color: #ff9f0a;
}

.fpx-cta-title span {
    font-family: var(--bold) !important;
    font-weight: normal !important;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #ff9f0a;
}

.fpx-cta-btn {
    background: #ff9f0a;
    box-shadow: 0 18px 40px rgba(255, 138, 0, .35);
}

.fpx-cta-btn-ring {
    border-color: rgba(255, 159, 10, .45);
}

/* ---------- Footer mobile accordion: even spacing (main site + insights) ---------- */
@media (max-width: 767px) {
    .footer-mobile-accordion {
        --bs-gutter-y: 0 !important;
        row-gap: 0 !important;
    }

    .footer-mobile-accordion > [class*="col"] {
        margin-top: 0 !important;
    }

    .footer-mobile-accordion .footer-accordion-item {
        margin: 0 !important;
        padding: 18px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
    }

    .footer-mobile-accordion .footer-accordion-item > :first-child {
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer-mobile-accordion .footer-accordion-btn,
    .footer-mobile-accordion .footer-accordion-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        min-height: 24px;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }

    /* open list: breathing room under the title, even rows */
    .footer-mobile-accordion .footer-accordion-item.is-open .footer-accordion-content {
        margin-top: 14px !important;
        gap: 0 !important;
        row-gap: 0 !important;
    }

    .footer-mobile-accordion .footer-accordion-content > li {
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer-mobile-accordion ul.footer-accordion-content > li > a {
        display: flex !important;
        align-items: center !important;
        gap: 14px;
        min-height: 54px;
        margin: 0 !important;
        padding: 10px 0 !important;
        line-height: 1.35 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    }

    .footer-mobile-accordion ul.footer-accordion-content > li:last-child > a {
        border-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* divider colour follows the text colour, so it shows on light and dark footers */
@media (max-width: 767px) {
    .footer-mobile-accordion .footer-accordion-item {
        border-bottom-color: color-mix(in srgb, currentColor 14%, transparent) !important;
    }

    .footer-mobile-accordion ul.footer-accordion-content > li > a {
        border-bottom-color: color-mix(in srgb, currentColor 10%, transparent) !important;
    }

    .footer-mobile-accordion .footer-accordion-item:last-child {
        border-bottom: 0 !important;
    }
}

/* header-row dividers: drawn with a shadow (some legacy rules zero the border) in a neutral grey */
@media (max-width: 767px) {
    .footer-mobile-accordion .footer-accordion-item {
        border-bottom: 0 !important;
        box-shadow: inset 0 -1px 0 rgba(128, 128, 140, .28) !important;
    }

    .footer-mobile-accordion [class*="col"]:last-child > .footer-accordion-item,
    .footer-mobile-accordion > .footer-accordion-item:last-child {
        box-shadow: none !important;
    }

    .footer-mobile-accordion ul.footer-accordion-content > li > a {
        border-bottom-color: rgba(128, 128, 140, .2) !important;
    }
}
