/**
 * Homepage – Website 2.0 (Figma QisO23AaXp2J276NpUH8WG, frame 1398:23831 / mobile 750:16958).
 * Loaded after src/css/home.css on the "Custom Homepage" template (see functions.php).
 */

/* ---------- Hero ---------- */
.hero-content p.w2-hero-lead {
    font-weight: 600;
    margin-bottom: 21px;
    max-width: 493px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p.w2-hero-lead + p {
    max-width: 493px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .w2-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: 7px;
    height: 27px;
    transform: translateX(-50%);
    pointer-events: none;
    animation: w2HeroScroll 2s ease-in-out infinite;
}

@keyframes w2HeroScroll {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 8px); opacity: .6; }
}

/* ---------- Why we're different (Section 3b) ---------- */
section.w2-why {
    position: relative;
    z-index: 2;
    padding: 104px 0;
    color: #fff;
}

.w2-why__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 19px 0 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.w2-why__text {
    flex: 0 1 620px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.w2-why__title {
    margin: 0;
    font-family: "Work Sans", sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: capitalize;
    color: #fff;
}

.w2-why__body p {
    margin: 0 0 30px;
    font-family: "Work Sans", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
}

.w2-why__body p:last-child {
    margin-bottom: 0;
}

.w2-why__media {
    position: relative;
    flex: 0 0 auto;
    width: 624px;
    max-width: 48%;
    aspect-ratio: 624 / 501;
}

.w2-why__glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.w2-why__img {
    position: absolute;
    border-radius: 22.285px;
    overflow: hidden;
}

img.w2-why__img {
    object-fit: cover;
    object-position: bottom;
}

.w2-why__img--10 { left: 16.35%; top: 17.24%; width: 44.16%; height: 30.96%; }
.w2-why__img--11 { left: 41.86%; top: 33.64%; width: 41.35%; height: 47.35%; object-position: center; }
.w2-why__img--12 { left: 2.15%;  top: 45.69%; width: 44.42%; height: 31.30%; }

.w2-why__img--12 img {
    position: absolute;
    left: -8.37%;
    top: -19.72%;
    width: 120.49%;
    height: 119.94%;
    max-width: none;
}

/* ---------- Partners: logos added in the 2.0 design ---------- */
.partners .w2-logo-box {
    width: 275px;
    height: 210px;
}

.partners .w2-logo--iflyflat {
    width: 165px;
    height: auto;
}

.partners .w2-logo--jerome {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.partners .w2-logo--jerome img:first-child { width: 151px; height: 24px; }
.partners .w2-logo--jerome img:last-child  { width: 226px; height: 24px; }

/* ---------- Industries ---------- */
section.industry .w2-industry-sub {
    margin: 20px 0 0;
    max-width: 534px;
    font-family: "Work Sans", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    color: rgba(255, 255, 255, .8);
}

/* ---------- Tablet / mobile (matches the theme's 1033px breakpoint) ---------- */
@media (max-width: 1200px) {
    .w2-why__inner {
        padding: 0 5%;
    }
}

@media (max-width: 1033px) {
    .hero-section .w2-hero-scroll {
        display: none;
    }

    section.w2-why {
        padding: 60px 0;
    }

    .w2-why__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
        padding: 0 31px;
    }

    .w2-why__text {
        flex: none;
    }

    .w2-why__title {
        font-size: clamp(32px, 9.5vw, 42px);
    }

    .w2-why__media {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .w2-why__img {
        border-radius: 15.7px;
    }

    .partners .w2-logo-box {
        width: 200px;
        height: 150px;
    }

    .partners .w2-logo--iflyflat { width: 120px; }
    .partners .w2-logo--jerome img:first-child { width: 110px; height: 18px; }
    .partners .w2-logo--jerome img:last-child  { width: 165px; height: 18px; }

    section.industry .w2-industry-sub {
        font-size: 14px;
        margin-top: 16px;
    }
}


/* Figma keeps the lowercase "e" in "eCommerce" */
section.industry .industry-list a[href*="retail-and-ecommerce"] {
    text-transform: none;
}
