/* Loopa Automate — Home page redesign (Figma: Loopa Website, node 1:2)
   All selectors are scoped under .loopa-home to avoid colliding with
   Astra / Elementor classes used elsewhere on this site. */

/* ---------- Transparent-over-hero header, solid once scrolled ---------- */
/* Scoped to header[data-elementor-type="header"] rather than .loopa-home
   since the header sits outside that wrapper — safe because this stylesheet
   is only loaded on the home page. The hero section below adds extra
   top padding (see .loopa-home-hero) so its own content clears the
   fixed header instead of sitting underneath it. */
header[data-elementor-type="header"] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header[data-elementor-type="header"],
header[data-elementor-type="header"] .elementor-element-d1c80d5 {
    background-color: transparent !important;
    box-shadow: none;
}

header[data-elementor-type="header"].loopa-home-header-scrolled,
header[data-elementor-type="header"].loopa-home-header-scrolled .elementor-element-d1c80d5 {
    background-color: #291f3d !important;
}

header[data-elementor-type="header"].loopa-home-header-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.loopa-home {
    font-family: effra, sans-serif;
    color: #2f373d;
    overflow: hidden;
}

.loopa-home * {
    box-sizing: border-box;
    text-wrap: pretty;
}

.loopa-home em,
.loopa-home .loopa-home-italic {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-weight: 500;
}

.loopa-home img {
    max-width: 100%;
    display: block;
}

.loopa-home .loopa-home-eyebrow {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #bbb0ff;
    margin: 0 0 18px;
}

.loopa-home .loopa-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7650f5;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.6;
    padding: 13px 28px;
    border-radius: 40px;
    text-decoration: none !important;
    box-shadow: 0 6px 6px rgba(118, 80, 245, 0.3);
    border: none;
    white-space: nowrap;
}

.loopa-home .loopa-home-btn:hover {
    background: #653fe0;
}

.loopa-home .loopa-home-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.6;
    padding: 13px 28px;
    border-radius: 40px;
    text-decoration: none !important;
    border: 2px solid rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.loopa-home .loopa-home-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

.loopa-home .loopa-home-inner {
    max-width: 1162px;
    margin: 0 auto;
    padding: 0 40px;
}

.loopa-home h1,
.loopa-home h2,
.loopa-home h3,
.loopa-home p {
    margin: 0;
}

/* ---------- Hero ---------- */
.loopa-home-hero {
    position: relative;
    background: #291e3e;
    overflow: hidden;
    min-height: clamp(700px, 40vw, 1150px);
}

.loopa-home-hero .loopa-home-inner {
    position: relative;
    z-index: 1;
    padding: calc(var(--loopa-home-header-h, 100px) + 120px) 40px 110px;
}

.loopa-home-hero-content {
    max-width: 541px;
}

.loopa-home-hero-content .loopa-home-eyebrow {
    color: #bbb0ff;
}

.loopa-home-hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 28px;
}

.loopa-home-hero-content h1 em {
    color: #bbb0ff;
    text-align: center;
}

.loopa-home-hero-content p {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.3px;
    margin-bottom: 40px;
    max-width: 422px;
}

.loopa-home-hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.loopa-home-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.loopa-home-hero-media .loopa-home-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.loopa-home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 14, 32, 0.73) 0%, rgba(20, 14, 32, 0) 51%);
    pointer-events: none;
}

/* ---------- Trusted brands ---------- */
.loopa-home-brands {
    background: #000;
    padding: 47px 0;
    text-align: center;
}

.loopa-home-brands p {
    font-size: 18px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 37px;
}

.loopa-home-brands-viewport {
    max-width: 900px;
    margin: 0 auto;
}

.loopa-home-brands-track-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.loopa-home-brands-track {
    display: flex;
    width: max-content;
    animation: loopa-home-brands-scroll 90s linear infinite;
}

.loopa-home-brands-track-wrap:hover .loopa-home-brands-track {
    animation-play-state: paused;
}

.loopa-home-brands-row {
    display: flex;
    align-items: center;
    gap: 56px;
    padding-right: 56px;
    flex-shrink: 0;
}

.loopa-home-brands-row img {
    height: 28px;
    width: auto;
    max-width: none;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.loopa-home-brands-logo-zango {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    opacity: 0.92;
    white-space: nowrap;
}

.loopa-home-brands-logo-zango img {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
}

.loopa-home-brands-logo-zango b {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

@keyframes loopa-home-brands-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loopa-home-brands-track {
        animation: none;
    }
}

/* ---------- Effortless real estate ---------- */
.loopa-home-effortless {
    position: relative;
    width: 100%;
    aspect-ratio: 1900 / 900;
    background: #291e3e;
    overflow: hidden;
}

.loopa-home-effortless-photo {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72.5% bottom;
}

.loopa-home-effortless-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.loopa-home-effortless-card {
    position: absolute;
    left: 0;
    top: 12.98%;
    width: 43%;
    height: 73.35%;
    padding: 7% 4.5% 7% 6.5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.4%;
}

.loopa-home-effortless-card .loopa-home-btn {
    align-self: flex-start;
}

.loopa-home-effortless-card h2 {
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1px;
    font-weight: 700;
    color: #2f373d;
}

.loopa-home-lb {
    display: none;
}

@media (min-width: 981px) {
    .loopa-home-lb {
        display: block;
    }
}

.loopa-home-effortless-card h2 em {
    color: #835ca6;
}

.loopa-home-effortless-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.loopa-home-effortless-card p:last-of-type {
    margin-bottom: 0;
}

/* ---------- Features ---------- */
.loopa-home-features {
    background: #f4effa;
    padding: 100px 0;
}

.loopa-home-features-head {
    text-align: center;
    max-width: 812px;
    margin: 0 auto 60px;
}

.loopa-home-features-head h2 {
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1px;
    font-weight: 700;
    color: #2f373d;
}

.loopa-home-features-head h2 em {
    color: #835ca6;
}

.loopa-home-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 120px;
}

.loopa-home-feature {
    text-align: center;
}

.loopa-home-feature.loopa-home-anim-init {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.4s ease, transform 1.4s ease;
}

.loopa-home-feature.loopa-home-anim-init.loopa-home-anim-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .loopa-home-feature.loopa-home-anim-init {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.loopa-home-feature img {
    width: 100px;
    height: 100px;
    margin: 0 auto 18px;
    object-fit: contain;
}

.loopa-home-feature h3 {
    font-size: 24px;
    letter-spacing: -0.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.loopa-home-feature p {
    font-size: 16px;
    line-height: 1.6;
}

/* ---------- How it works ---------- */
.loopa-home-steps {
    background: #291e3e;
    padding: 100px 0;
}

.loopa-home-steps-head {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
}

.loopa-home-steps-head .loopa-home-eyebrow {
    margin-bottom: 12px;
}

.loopa-home-steps-head h2 {
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1px;
    font-weight: 700;
    color: #fff;
}

.loopa-home-steps-head h2 em {
    color: #bbb0ff;
}

.loopa-home-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.loopa-home-step.loopa-home-anim-init {
    opacity: 0;
    transition: opacity 1.4s ease, transform 1.4s ease;
}

.loopa-home-step.loopa-home-anim-init.loopa-home-anim-left {
    transform: translateX(-60px);
}

.loopa-home-step.loopa-home-anim-init.loopa-home-anim-right {
    transform: translateX(60px);
}

.loopa-home-step.loopa-home-anim-init.loopa-home-anim-in {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .loopa-home-step.loopa-home-anim-init {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.loopa-home-step {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    overflow: hidden;
    background: #3a2c56;
}

.loopa-home-step img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    object-position: top right;
    z-index: 0;
    opacity: 0.85;
}

.loopa-home-step::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(246, 241, 250, 0.2) 10%, rgba(246, 241, 250, 0.05) 70%);
    z-index: 1;
}

.loopa-home-step-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.loopa-home-step-content h3 {
    font-size: 30px;
    letter-spacing: -0.6px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff !important;
}

.loopa-home-step-content p {
    font-size: 15px;
    line-height: 1.6;
}

.loopa-home-step-content a {
    color: #fff;
    text-decoration: underline;
}

/* ---------- Use our tech ---------- */
.loopa-home-tech {
    background: #f7f3fb;
    padding: 100px 0;
    text-align: center;
}

.loopa-home-tech-head {
    max-width: 740px;
    margin: 0 auto 27px;
}

.loopa-home-tech .loopa-home-eyebrow {
    color: #583f98;
}

.loopa-home-tech-head h2 {
    font-size: 42px;
    letter-spacing: -1px;
    font-weight: 700;
    color: #2f373d;
    margin-top: 12px;
}

.loopa-home-tech p.loopa-home-tech-copy {
    max-width: 908px;
    margin: 0 auto 30px;
    font-size: 18px;
    line-height: 1.58;
}

.loopa-home-tech-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.loopa-home-tech-logos img {
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
}

/* ---------- Award winning tech ---------- */
.loopa-home-awards {
    background: #291e3e;
    padding: 100px 0;
    text-align: center;
}

.loopa-home-awards-head {
    max-width: 570px;
    margin: 0 auto 27px;
}

.loopa-home-awards-head h2 {
    font-size: 42px;
    letter-spacing: -1px;
    font-weight: 700;
    color: #fff;
    margin-top: 12px;
}

.loopa-home-awards p.loopa-home-awards-copy {
    max-width: 908px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.58;
    color: #fff;
}

.loopa-home-awards-strip {
    max-width: 1000px;
    margin: 0 auto;
}

/* ---------- Hundreds of brands ---------- */
.loopa-home-global {
    background: #fff;
    padding: 100px 40px;
}

.loopa-home-global .loopa-home-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    flex-wrap: wrap;
}

.loopa-home-global-left {
    flex: 1 1 460px;
    max-width: 541px;
}

.loopa-home-global-left h2 {
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1px;
    font-weight: 700;
    margin: 12px 0 40px;
}

.loopa-home-global-checks {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.loopa-home-global-checks ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.loopa-home-global-checks li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 16px;
}

.loopa-home-global-checks img {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.loopa-home-global-right {
    flex: 1 1 460px;
    max-width: 555px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.loopa-home-global-right img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.19);
}

.loopa-home-global-right img.loopa-home-anim-init {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.loopa-home-global-right img.loopa-home-anim-init.loopa-home-anim-in {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .loopa-home-global-right img.loopa-home-anim-init {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Real support ---------- */
.loopa-home-support {
    background: #291e3e;
    padding: 100px 40px;
}

.loopa-home-support .loopa-home-inner {
    max-width: 1162px;
}

.loopa-home-support h2 {
    font-size: 42px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.loopa-home-support-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.loopa-home-support-photo {
    flex: 1 1 360px;
    max-width: 420px;
    border-radius: 24px;
    overflow: hidden;
}

.loopa-home-support-list {
    flex: 1 1 460px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.loopa-home-support-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 22px;
}

.loopa-home-support-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.loopa-home-support-item-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
}

.loopa-home-support-item-head img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.loopa-home-support-item-head h3 {
    font-size: 28px;
    letter-spacing: -0.6px;
    font-weight: 700;
    color: #fff;
}

.loopa-home-support-item p {
    font-size: 16px;
    color: #fff;
    padding-left: 46px;
}

/* ---------- Latest news ---------- */
.loopa-home-news {
    background: #f7f3fb;
    padding: 100px 40px;
}

.loopa-home-news-head {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 55px;
}

.loopa-home-news-head h2 {
    font-size: 42px;
    letter-spacing: -1px;
    font-weight: 700;
    color: #2f373d;
    margin-top: 12px;
}

.loopa-home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1162px;
    margin: 0 auto;
}

.loopa-home-news-card a {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

.loopa-home-news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 22px;
    border-radius: 10px;
}

.loopa-home-news-card h3 {
    transition: color 0.2s ease;
}

.loopa-home-news-card a:hover h3 {
    color: #7650f5;
}

.loopa-home-news-card .loopa-home-eyebrow {
    margin-bottom: 8px;
}

.loopa-home-news-card h3 {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-weight: 700;
    margin-bottom: 10px;
}

.loopa-home-news-card time {
    font-style: italic;
    font-size: 16px;
    text-transform: uppercase;
    color: #868686;
}

/* ---------- CTA ---------- */
.loopa-home-cta {
    background: #291e3e;
    padding: 100px 40px;
}

.loopa-home-cta-box {
    max-width: 900px;
    margin: 0 auto;
    background: #835baf;
    border-radius: 40px;
    padding: 48px 56px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loopa-home-cta-box h2 {
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1px;
    font-weight: 700;
    color: #fff;
}

.loopa-home-cta-box p {
    font-size: 18px;
    line-height: 1.58;
    color: #fff;
    max-width: 750px;
}

.loopa-home-cta-box .loopa-home-btn {
    background: #f78da7;
}

.loopa-home-cta-box .loopa-home-btn:hover {
    background: #f26f8d;
}

/* ---------- Responsive ---------- */
/* Laptop range: the effortless-card's height is a % of the aspect-ratio-
   locked section, which shrinks in absolute px at these widths faster than
   the fixed-px text inside it does — causing the text/button to overflow
   past the bottom of the white card. Switch to a content-driven height
   with fixed vertical padding here so it always fits, whatever the exact
   font metrics turn out to be. Desktop and the sub-980px stacked layout
   are untouched. */
@media (min-width: 981px) and (max-width: 1600px) {
    .loopa-home-effortless-card {
        height: auto;
        top: 50%;
        transform: translateY(-50%);
        padding-top: 48px;
        padding-bottom: 48px;
        gap: 16px;
    }

    .loopa-home-effortless-card .loopa-home-btn {
        margin-top: 24px;
    }
}

@media (max-width: 980px) {
    .loopa-home-hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .loopa-home-hero .loopa-home-inner {
        order: 1;
        padding-left: 24px;
        padding-right: 24px;
    }

    .loopa-home-hero-media {
        position: relative;
        inset: auto;
        order: 2;
        width: 100%;
        height: 280px;
    }

    .loopa-home-hero-content {
        max-width: 100%;
    }

    .loopa-home-hero-content h1 {
        font-size: 48px;
    }

    .loopa-home-effortless {
        aspect-ratio: auto;
        height: auto;
    }

    .loopa-home-effortless-photo,
    .loopa-home-effortless-overlay {
        display: none;
    }

    .loopa-home-effortless-card {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        padding: 80px 50px;
        background: #fff;
    }

    .loopa-home-features-grid,
    .loopa-home-steps-grid,
    .loopa-home-news-grid {
        grid-template-columns: 1fr;
    }

    .loopa-home-step::after {
        background: rgba(41, 30, 62, 0.45);
    }

    .loopa-home-global .loopa-home-inner {
        flex-direction: column;
    }

    .loopa-home-support-content {
        flex-direction: column;
    }

    .loopa-home-support-photo {
        max-width: 100%;
    }

    .loopa-home-cta-box h2,
    .loopa-home-features-head h2,
    .loopa-home-steps-head h2,
    .loopa-home-awards-head h2,
    .loopa-home-tech-head h2,
    .loopa-home-news-head h2,
    .loopa-home-global-left h2,
    .loopa-home-support h2 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .loopa-home-inner {
        padding: 0 20px;
    }

    .loopa-home-hero .loopa-home-inner {
        padding: calc(var(--loopa-home-header-h, 80px) + 40px) 50px 20px;
        background: #291f3d !important;
        text-align: center;
    }

    .loopa-home-hero-media {
        /* display: none;*/
    }

    .loopa-home-hero-overlay {
        background: linear-gradient(180deg, rgba(41, 30, 62, 1) 0%, rgba(41, 30, 62, 0) 60%);

    }

    .loopa-home-hero-media .loopa-home-hero-bg {
        object-position: right bottom;
    }

    .loopa-home .loopa-home-eyebrow {
        font-size: 14px;

    }

    .loopa-home-hero-content h1 {
        font-size: 36px;
    }

    .loopa-home-effortless-card {
        gap: 16px;
        text-align: center;
    }

    .loopa-home-effortless-card .loopa-home-btn {
        margin: 24px auto 0;
    }

    .step-design {
        min-height: 390px;
    }

    .step-target {
        min-height: 500px;
    }

    .step-integrate {
        min-height: 420px;
    }

    .step-optimise {
        min-height: 400px;
    }

    .loopa-home-step img {
        object-position: right top;
        object-fit: scale-down;

    }

    .loopa-home-features,
    .loopa-home-steps,
    .loopa-home-tech,
    .loopa-home-awards,
    .loopa-home-global,
    .loopa-home-support,
    .loopa-home-news,
    .loopa-home-cta {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .loopa-home-global-checks {
        flex-direction: column;
        gap: 15px;
    }

    .loopa-home-global-right {
        grid-template-columns: repeat(2, 1fr);
    }

    .loopa-home-brands-row {
        gap: 28px;
    }

    .loopa-home-brands-row img {
        height: 20px;
    }

    .loopa-home-cta-box {
        padding: 36px 24px;
    }

    .loopa-home-hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .loopa-home-tech-logos {
        gap: 16px;
    }

    .loopa-home-tech-logos img {
        width: 64px;
        height: 64px;
    }
}
