/* ==========================================================================
   LANDING PAGE — Macquill Theme
   Colors from Figma design:
     --lp-primary:      #074837  (hero bg)
     --lp-primary-dark: #03372a  (navbar bg)
     --lp-accent:       #c6e562  (lime buttons / "notice" text)
     --lp-beige:        #fcfadc  (work section bg)
     --lp-beige-light:  #fcf8c5  (work card bg)
     --lp-white:        #ffffff
   ========================================================================== */

:root {
    --lp-primary: #074837;
    --lp-primary-dark: #03372a;
    --lp-accent: #c6e562;
    --lp-beige: #fcfadc;
    --lp-beige-light: #fcf8c5;
    --lp-white: #ffffff;
}

/* Reset margins on landing page */
.landing-page {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Remove default WP spacing on landing page template */
body:has(.landing-page) .wp-site-blocks {
    padding: 0 !important;
    margin: 0 !important;
}

body:has(.landing-page) .wp-site-blocks>*+* {
    margin-block-start: 0 !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.lp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lp-btn--accent {
    background-color: var(--lp-accent);
    color: var(--lp-primary-dark);
}

.lp-btn--sm {
    padding: 3px 24px;
    font-size: 16px;
    height: 40px;
}

.lp-btn--lg {
    padding: 4px 32px;
    font-size: 24px;
    height: 54px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.lp-navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--lp-primary-dark);
    height: 70px;
}

.lp-navbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 63px;
}

.lp-navbar__logo {
    display: flex;
    align-items: center;
    height: 66px;
    margin-top: 5px;
}

.lp-navbar__logo-img {
    height: 66px;
    width: auto;
    min-height: 66px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.lp-navbar__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.lp-navbar__link {
    font-size: 20px;
    font-weight: 400;
    color: var(--lp-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-navbar__link:hover {
    color: var(--lp-accent);
}

.lp-navbar__mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--lp-white);
    font-size: 32px;
    cursor: pointer;
    padding: 5px 10px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.lp-hero {
    position: relative;
    background-color: var(--lp-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 70px 0 0 0;
    overflow: hidden;
}

/* Full-viewport video layer (underneath the color overlay) */
.lp-hero__video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}


.lp-hero__video-mask {
    width: 100%;
    height: 100%;
    -webkit-mask-image: url('../images/logo-mask.svg');
    mask-image: url('../images/logo-mask.svg');
    -webkit-mask-size: 90vh 90vh;
    mask-size: 90vh 90vh;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: calc(100% - 80px) center;
    mask-position: calc(100% - 80px) center;
    animation: fadeInMask 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

@keyframes fadeInMask {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.lp-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Decorative logo outline (behind video, visible as darker green strokes) */
.lp-hero__logo-outline {
    position: absolute;
    top: -20px;
    right: -120px;
    width: 750px;
    height: 750px;
    z-index: 0;
    opacity: 0.25;
    pointer-events: none;
}

.lp-hero__logo-outline-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hero content */
.lp-hero__content {
    position: relative;
    z-index: 10;
    padding: 0 80px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.lp-hero__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(56px, 8.5vw, 110px);
    line-height: 1.02;
    color: var(--lp-white);
    letter-spacing: -1.1px;
    margin: 0 0 40px 0;
}

.lp-hero__title-line {
    display: block;
}

/* Word rotator — positioned inline with "them" */
.lp-hero__word-rotator {
    display: inline-block;
    position: relative;
    height: 1.2em;
    vertical-align: bottom;
    overflow-x: visible;
    overflow-y: visible;
    min-width: 8ch;
}

.lp-hero__word {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(74px, 9.7vw, 128px);
    color: var(--lp-accent);
    letter-spacing: -1.16px;
    line-height: 1;
    will-change: transform, opacity;
}

/* CTA */
.lp-hero__cta {
    margin-top: 20px;
}

/* ==========================================================================
   OUR WORK SECTION
   ========================================================================== */

.lp-work {
    background-color: var(--lp-beige);
    padding: 100px 0 60px;
    position: relative;
    overflow: visible;
}

.lp-work__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 80px;
    position: relative;
}

/* Card pane (light yellow rounded rect) */
.lp-work__card {
    background-color: var(--lp-beige-light);
    border-radius: 16px;
    display: flex;
    align-items: stretch;
    min-height: 417px;
    position: relative;
    padding: 0;
    overflow: visible;
}

/*
 * Left column: ~52% of card width.
 * Figma refs (relative to card left edge):
 *   Back rect:  x=11, y=-41 (above card top), 366×416
 *   Front rect: x=194, y=42,                  366×416
 *   Text col starts at x=586  →  gap ≈ 26px from front rect right edge
 */
.lp-work__images {
    position: relative;
    flex: 0 0 52%;
    min-height: 417px;
}

.lp-work__img {
    background-color: #d9d9d9;
    border-radius: 4px;
    position: absolute;
}

.lp-work__img--back {
    width: 366px;
    height: 416px;
    top: -41px;
    left: 11px;
    z-index: 1;
}

.lp-work__img--front {
    width: 366px;
    height: 416px;
    top: 42px;
    left: 194px;
    z-index: 2;
    border-bottom-right-radius: 120px;
}

/* Decorative circle — overlapping top-right of images area */
.lp-work__circle-decor {
    position: absolute;
    width: 126px;
    height: 126px;
    top: -50px;
    left: 460px;
    z-index: 3;
    pointer-events: none;
}

/* Decorative star — bottom left */
.lp-work__star-decor {
    position: absolute;
    width: 153px;
    height: 153px;
    bottom: -80px;
    left: -20px;
    z-index: 3;
    pointer-events: none;
}

/* Text content — right column ~48% */
.lp-work__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 48px 56px 48px 24px;
}

.lp-work__text .lp-btn {
    align-self: flex-start;
}

.lp-work__heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 52px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--lp-primary-dark);
    margin: 0 0 24px 0;
}

.lp-work__description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.5;
    color: var(--lp-primary-dark);
    margin: 0 0 32px 0;
}

/* Bottom question */
.lp-work__bottom {
    text-align: center;
    margin-top: 56px;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 80px;
}

.lp-work__question {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.4;
    color: var(--lp-primary-dark);
    margin: 0 0 0px 0;
}

.lp-work__pipeline {
    background-color: var(--lp-accent);
    color: var(--lp-primary-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 32px;
    text-align: center;
    padding: 16px 20px;
    margin: 30px 0 40px;
    width: 100%;
}

.lp-work__arrow-container {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.lp-work__arrow-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--lp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.lp-work__arrow-circle:hover {
    transform: scale(1.1);
}

.lp-work__arrow-icon {
    color: var(--lp-primary-dark);
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
}

/* ==========================================================================
   CARDS CAROUSEL SECTION — infinite horizontal marquee
   ========================================================================== */

.lp-cards {
    background-color: var(--lp-primary);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.lp-cards__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.lp-cards__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--lp-white);
    color: var(--lp-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    /* Re-enable clicks on the button itself */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.lp-cards__btn svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
}

.lp-cards__btn:hover {
    transform: scale(1.05);
    background-color: var(--lp-accent);
}

.lp-cards__container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.lp-cards__container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

.lp-cards__track {
    display: flex;
    width: max-content;
    /* padding: 0 40px; removed to ensure accurate seamless looping measurements */
}

.lp-cards__item {
    flex-shrink: 0;
    width: 280px;
    height: 520px;
    background-color: var(--lp-primary);
    border-radius: 20px;
    overflow: hidden;
    margin-right: 32px;
}

.lp-cards__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* ==========================================================================
   PROCESS / STEPS SECTION
   — Pinned viewport · giant rotating logo half-clipped right
   — Steps orbit on a circular arc, pushed upward like a circular tray
   ========================================================================== */

.lp-process {
    background-color: var(--lp-beige);
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* — Giant rotating logo — half clipped from right — */
.lp-process__logo {
    position: absolute;
    right: -28%;
    top: 50%;
    transform: translateY(-50%);
    width: 120vh;
    height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.lp-process__logo-img {
    width: 100%;
    height: 100%;
    color: var(--lp-primary-dark);
    opacity: 0.18;
    will-change: transform;
}

/* — Steps orbit container — fills pinned viewport — */
.lp-process__steps {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* — Process Header (Title & Description) — */
.lp-process__header {
    position: absolute;
    top: 8vh;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    max-width: 800px;
    text-align: center;
    z-index: 10;
}

.lp-process__heading {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 900;
    color: var(--lp-primary-dark);
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -1px;
}

.lp-process__subheading {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 500;
    color: var(--lp-primary-dark);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0 auto;
    padding: 0;
}

.lp-process__group {
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(360px, 45vw, 640px);
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.lp-process__step {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.lp-process__icon {
    margin-bottom: 0px;
    flex-shrink: 0;
    padding-top: 4px;
}

.lp-process__text {
    display: flex;
    flex-direction: column;
}

.lp-process__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.1;
    color: var(--lp-primary-dark);
    margin: 0 0 6px 0;
    text-transform: uppercase;
}

.lp-process__desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.5;
    color: var(--lp-primary-dark);
    margin: 0;
    max-width: 460px;
}

.lp-process__desc strong {
    display: block;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

/* ==========================================================================
   TRUSTED CLIENTS SECTION
   ========================================================================== */

.lp-trusted-clients {
    background-color: var(--lp-primary);
    padding: 60px 0;
    overflow: hidden;
}

.lp-trusted-clients__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 40px;
    line-height: 1.1;
    color: var(--lp-accent);
    margin: 0 0 40px 0;
    padding: 0 40px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
}

.lp-trusted-clients__slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.lp-trusted-clients__track {
    display: flex;
    width: max-content;
    animation: scrollClients 40s linear infinite;
}

.lp-trusted-clients__track:hover {
    animation-play-state: paused;
}

@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.lp-trusted-clients__item {
    background-color: var(--lp-white);
    border-radius: 20px;
    width: 280px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-right: 30px;
    /* Instead of gap, so -50% translation matches exactly */
}

.lp-trusted-clients__item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(150%);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .lp-hero__video-mask {
        -webkit-mask-size: 60vh 60vh;
        mask-size: 60vh 60vh;
        -webkit-mask-position: calc(100% + 40px) center;
        mask-position: calc(100% + 40px) center;
    }

    .lp-hero__logo-outline {
        width: 550px;
        height: 550px;
    }

    .lp-work__card {
        flex-direction: column;
        padding: 30px;
    }

    .lp-work__images {
        width: 100%;
        height: 300px;
    }

    .lp-work__img--back {
        width: 250px;
        height: 280px;
        top: 0;
    }

    .lp-work__img--front {
        width: 250px;
        height: 280px;
        top: 40px;
        left: 120px;
    }

    .lp-work__heading {
        font-size: 48px;
    }

    .lp-work__description {
        font-size: 18px;
    }

    .lp-work__circle-decor {
        width: 80px;
        height: 80px;
        left: 320px;
    }
}

.lp-specialists {
    background-color: var(--lp-primary);
}

@media (max-width: 768px) {
    .lp-navbar {
        position: fixed; 
    }

    .lp-navbar__inner {
        padding: 0 20px;
    }

    .lp-navbar__mobile-toggle {
        display: block;
    }

    .lp-navbar__links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--lp-primary-dark);
        padding: 20px 0 30px 0;
        gap: 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .lp-navbar__links.is-open {
        display: flex;
    }

    .lp-navbar__link {
        font-size: 18px;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .lp-navbar__links .lp-btn {
        margin: 10px auto 0 auto;
    }

    .lp-hero {
        padding-top: 120px;
    }

    .lp-hero__content {
        padding: 0 24px;
    }

    /* Match rotating word size to rest of title so it doesn't look huge */
    .lp-hero__title {
        font-size: clamp(32px, 8.5vw, 46px);
    }

    .lp-hero__word {
        font-size: clamp(32px, 8.5vw, 46px);
    }

    /* Restore full-coverage video wrapper (was accidentally constrained by px values) */
    .lp-hero__video-wrapper {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    /* Shrink mask to fit inside the viewport, centered */
    .lp-hero__video-mask {
        -webkit-mask-size: 72vw 72vw;
        mask-size: 72vw 72vw;
        -webkit-mask-position: center center;
        mask-position: center center;
    }

    .lp-hero__logo-outline {
        width: 350px;
        height: 350px;
        right: -80px;
    }

    .lp-work__inner {
        padding: 0 24px;
    }

    .lp-work__heading {
        font-size: 36px;
    }

    .lp-work__description {
        font-size: 16px;
    }

    .lp-work__bottom {
        padding: 0 24px;
    }

    .lp-work__question {
        font-size: 18px;
    }

    .lp-work__pipeline {
        font-size: 18px;
        padding: 12px 16px;
        margin: 24px 0 30px;
    }

    .lp-btn--lg {
        font-size: 18px;
        padding: 12px 24px;
        height: 48px;
    }

    .lp-cards__item {
        width: 220px;
        height: 420px;
    }

    /* Process section responsive */
    .lp-process__logo {
        width: 80vh;
        height: 80vh;
        right: -40%;
    }

    .lp-process__step {
        width: 260px;
    }

    .lp-process__title {
        font-size: 24px;
    }

    .lp-process__desc {
        font-size: 13px;
    }

    .lp-process__header {
        top: 8vh;
        left: 24px;
        width: calc(100% - 48px);
    }

    .lp-process__heading {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .lp-process__subheading {
        font-size: 16px;
        padding-right: 0;
    }

    .lp-trusted-clients__title {
        font-size: 32px;
        padding: 0 24px;
    }

    .lp-trusted-clients__item {
        width: 220px;
        height: 100px;
        margin-right: 20px;
        border-radius: 16px;
    }
}