/*
 * Landing Page — Field Sales 2026
 * Version: 2026.06.24.1
 * All rules scoped to body.landing-field-sales to prevent leaking.
 * Font: Montserrat (already loaded globally in header.php)
 * Primary CTA:  #4739C2  (brand purple)
 * Light panel:  #F4F2ED
 * Dark panel:   #0F0F0F
 */

/* ── Full-bleed panel backgrounds beyond 1920px ─────────── */

body.landing-field-sales {
    background: linear-gradient(to right, #F4F2ED 50%, #0F0F0F 50%);
}

/* ── Header — always solid black on this landing page ────── */

.landing-field-sales .header-2026 {
    background-color: #0C0B0A;
}

/* ── Layout ─────────────────────────────────────────────── */

.landing-field-sales * {
    box-sizing: border-box;
}

.landing-field-sales .landing-field-sales-wrap {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

.landing-field-sales .fs-hero {
    display: flex;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: clip;
}

/* ── Left panel ─────────────────────────────────────────── */

.landing-field-sales .fs-left {
    flex: 0 0 50%;
    min-width: 0;
    background-color: #F4F2ED;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-field-sales .fs-left-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 850px;
    max-height: 950px;
    padding: 48px 64px 56px 72px;
}

.landing-field-sales .fs-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.landing-field-sales .fs-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    padding: 8px 0;
}

.landing-field-sales .fs-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 50px;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #111111;
    margin: 0;
    padding-right: 100px;
}

.landing-field-sales .fs-subhead {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.67;
    color: #3A3A3A;
    margin: 0;
    max-width: 42ch;
}

/* ── CTA buttons ─────────────────────────────────────────── */

.landing-field-sales .fs-ctas {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.landing-field-sales .fs-cta-primary,
.landing-field-sales .fs-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    border-radius: 100px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    border: none;
}

.landing-field-sales .fs-cta-primary {
    background: #4739C2;
    color: #ffffff;
    padding: 0 32px;
}

.landing-field-sales .fs-cta-primary:hover {
    background: #3b2fa8;
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(71, 57, 194, 0.35);
}

.landing-field-sales .fs-cta-secondary {
    background: #111111;
    color: #ffffff;
    padding: 0 24px;
    gap: 10px;
}

.landing-field-sales .fs-cta-secondary:hover {
    background: #2a2a2a;
}

.landing-field-sales .fs-cta-secondary:disabled {
    opacity: 0.5;
    cursor: default;
}

.landing-field-sales .fs-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Trust badges ─────────────────────────────────────────── */

.landing-field-sales .fs-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.landing-field-sales .fs-badge img {
    height: 60px;
    width: auto;
    display: block;
}

/* ── Right panel — secondary Book a Demo CTA ─────────────── */

.landing-field-sales .fs-right-cta {
    align-self: flex-end;
}

/* ── Logo ticker pill — below hero, full content width ───── */

.landing-field-sales .fs-ticker-pill {
    overflow: hidden;
    width: 100%;
}

/* ── Video modal overlay ──────────────────────────────────── */

.landing-field-sales .fs-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Keep display:flex even when [hidden] so the fade transition works */
.landing-field-sales .fs-video-modal[hidden] {
    display: flex;
}

.landing-field-sales .fs-video-modal.fs-modal-open {
    opacity: 1;
    pointer-events: auto;
}

.landing-field-sales .fs-video-modal-inner {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
}

.landing-field-sales .fs-video-modal-player {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.landing-field-sales .fs-video-modal-player iframe,
.landing-field-sales .fs-video-modal-player video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Ticker track + items (shared by pill ticker) ─────────── */

.landing-field-sales .fs-logo-ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: fs-logo-ticker 30s linear infinite;
}

.landing-field-sales .fs-logo-ticker-item {
    flex-shrink: 0;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-field-sales .fs-logo-ticker-item img {
    max-height: 30px;
    width: auto;
    display: block;
    filter: brightness(0);
    opacity: 0.65;
}

@keyframes fs-logo-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); } /* 4 copies — scroll 1 copy then reset */
}

/* ── Right panel ─────────────────────────────────────────── */

.landing-field-sales .fs-right {
    flex: 0 0 50%;
    background-color: #0F0F0F;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.landing-field-sales .fs-right-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 70px;
    width: 100%;
    max-height: 950px;
    padding: 56px 48px 56px 0;
}

/* ── Media frame (hero photo + video) ───────────────────── */

.landing-field-sales .fs-media-wrap {
    flex: 1;
    display: flex;
    align-items: center;
}

.landing-field-sales .fs-media-frame {
    position: relative;
    width: calc(960px + 56px); /* half of 1920px + seam overlap */
    max-height: 600px;
    height: 600px;
    margin-left: -56px;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
}

.landing-field-sales .fs-photo,
.landing-field-sales .fs-video-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.landing-field-sales .fs-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* WordPress may wrap the image in <picture> — ensure the inner <img> also covers */
.landing-field-sales .fs-hero-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* ── Salesforce block — on dark panel background ─────────── */

.landing-field-sales .fs-sf-block {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 0 48px 0 48px;
}

.landing-field-sales .fs-sf-logo {
    flex-shrink: 0;
}

.landing-field-sales .fs-sf-logo img {
    width: 105px;
    height: auto;
    display: block;
}

.landing-field-sales .fs-sf-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.landing-field-sales .fs-sf-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

.landing-field-sales .fs-sf-body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* ── Responsive frame: 1024px–1919px (fluid width, fixed height) ── */

@media (min-width: 1024px) and (max-width: 1919px) {
    .landing-field-sales .fs-media-frame {
        width: calc(50vw + 56px);
    }
}

/* ── Tablet (768–1199px) ─────────────────────────────────── */

@media (max-width: 1199px) {
    .landing-field-sales .fs-left-inner {
        padding: 48px 40px 48px 48px;
        min-height: 0;
    }
    .landing-field-sales .fs-right-inner {
        padding: 48px 32px 48px 0;
        gap: 48px;
    }
    .landing-field-sales .fs-headline {
        font-size: 38px;
        padding-right: 40px;
    }
    .landing-field-sales .fs-subhead {
        font-size: 20px;
    }
    .landing-field-sales .fs-copy {
        gap: 40px;
    }
    .landing-field-sales .fs-sf-block {
        padding: 0 24px;
    }
    .landing-field-sales .fs-ctas {
        gap: 20px;
    }
    .landing-field-sales .fs-cta-primary,
    .landing-field-sales .fs-cta-secondary {
        height: 52px;
    }
}

/* ── Below 1024px — frame drops overlap and goes fluid ───── */

@media (max-width: 1023px) {
    .landing-field-sales .fs-media-frame {
        width: 100%;
        height: auto;
        max-height: none;
        margin-left: 0;
        aspect-ratio: 986 / 557;
    }
}

/* ── Mobile (<768px) ─────────────────────────────────────── */

@media (max-width: 767px) {
    body.landing-field-sales {
        background: #F4F2ED;
    }
    .landing-field-sales .fs-hero {
        flex-direction: column;
    }
    .landing-field-sales .fs-left,
    .landing-field-sales .fs-right {
        flex: none;
        width: 100%;
    }
    .landing-field-sales .fs-left-inner {
        min-height: 0;
        max-height: none;
        padding: 40px 24px 48px;
        gap: 32px;
    }
    .landing-field-sales .fs-right-inner {
        max-height: none;
        padding: 32px 24px 40px;
        gap: 32px;
    }
    .landing-field-sales .fs-headline {
        font-size: 32px;
        line-height: 1.15;
        padding-right: 0;
    }
    .landing-field-sales .fs-subhead {
        font-size: 17px;
        line-height: 1.65;
    }
    .landing-field-sales .fs-copy {
        gap: 28px;
    }
    .landing-field-sales .fs-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .landing-field-sales .fs-cta-primary,
    .landing-field-sales .fs-cta-secondary {
        width: 100%;
        height: 54px;
        font-size: 13px;
    }
    .landing-field-sales .fs-media-frame {
        width: 100%;
        height: auto;
        max-height: none;
        margin-left: 0;
        aspect-ratio: 986 / 557;
        border-radius: 12px;
    }
    .landing-field-sales .fs-hero-img,
    .landing-field-sales .fs-video-container video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    .landing-field-sales .fs-sf-block {
        padding: 0;
        gap: 14px;
    }
    .landing-field-sales .fs-sf-logo img {
        width: 72px;
    }
    .landing-field-sales .fs-sf-heading {
        font-size: 14px;
    }
    .landing-field-sales .fs-sf-body {
        font-size: 12px;
    }
    .landing-field-sales .fs-badge img {
        height: 44px;
    }
    .landing-field-sales .fs-right-cta {
        display: none; /* left panel already has the CTA on mobile */
    }
    .landing-field-sales .fs-logo-ticker-item {
        padding: 0 20px;
    }
    .landing-field-sales .fs-logo-ticker-item img {
        max-height: 24px;
    }
    .landing-field-sales .fs-video-modal-inner {
        width: 95vw;
    }
}
