/* Homepage extras loaded without Vite HMR. */
/* Figma exports arrows pointing down; the design rotates their layer -90deg. */
main span:has(> img[src*="images/icons/"]) {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

main img[src*="images/icons/arrow-right-"] {
    transform: rotate(-90deg);
}

.home-hero-copy a > span:has(img[src*="arrow-right-"]) {
    width: 22px;
    height: 22px;
}

.home-hero-copy a img[src*="arrow-right-"] {
    width: 15px;
    height: 20px;
}

.home-hero-btn {
    display: inline-flex;
    box-sizing: border-box;
    height: 56px;
    min-width: 202px;
    width: auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.home-hero-btn-consult {
    min-width: 240px;
}

@media (min-width: 1024px) {
    .home-hero-btn {
        height: 70px;
    }
}

.home-hero-copy > p {
    max-width: 480px;
}

.home-help-cta {
    width: 289px;
    max-width: 100%;
    min-height: 80px;
    flex-shrink: 0;
    padding: 16px 20px;
    border-radius: 10px;
    background: #ffc928;
    color: #111827;
}

.home-help-cta > span:first-child {
    width: 40px;
    height: 34px;
}

.home-help-cta > span:last-child > span {
    font-size: 15px;
    color: #111827;
}

@media (min-width: 1024px) {
    .home-category-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .home-category-head > .home-help-cta {
        margin-left: auto;
    }
}

.home-category-card {
    min-width: 0;
}

.home-category-media {
    display: flex;
    height: 150px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.home-category-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-category-title {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.home-category-desc {
    margin-top: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: rgb(17 24 39 / 0.75);
}

@media (min-width: 1024px) {
    .home-category-media {
        height: 200px;
    }

    .home-category-title {
        margin-top: 20px;
        font-size: 20px;
    }

    .home-category-desc {
        font-size: 15px;
    }
}

.home-catalog-title {
    font-size: 32px;
}

@media (min-width: 1024px) {
    .home-catalog-title {
        font-size: 42px;
    }
}

.home-solutions-photo {
    width: 52%;
    height: 580px;
}

.home-solutions-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.home-solutions-photo::before,
.home-solutions-photo::after {
    content: "";
    position: absolute;
    inset: 0;
}

.home-solutions-photo::before {
    background: linear-gradient(to right, #f7f9fc 0%, #f7f9fc 26%, rgb(247 249 252 / 0.8) 37%, rgb(247 249 252 / 0) 54%);
}

.home-solutions-photo::after {
    background: linear-gradient(to bottom, rgb(247 249 252 / 0) 70%, #f7f9fc 100%);
}

.home-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-value h3 {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
}

.home-value p {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: rgb(17 24 39 / 0.65);
}

.home-value-icon {
    display: flex;
    height: 44px;
    align-items: center;
}

.home-value-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .home-values {
        display: flex;
        max-width: 760px;
        gap: 0;
    }

    .home-value {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 22px;
        border-left: 1px solid #c9d3df;
    }

    .home-value:first-child {
        padding-left: 0;
        border-left: 0;
    }
}

.home-process-steps {
    display: grid;
    gap: 32px;
}

.home-process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-process-icon {
    position: relative;
    z-index: 1;
    display: flex;
    width: 81px;
    height: 81px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid rgb(23 105 255 / 0.12);
    box-shadow:
        0 12px 24px -6px rgb(23 105 255 / 0.28),
        0 4px 8px rgb(17 24 39 / 0.08),
        inset 0 -3px 6px rgb(23 105 255 / 0.08);
}

.home-process-icon img {
    width: 34px;
    height: 34px;
}

@media (min-width: 640px) {
    .home-process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .home-process {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

@media (min-width: 1280px) {
    .home-process-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* Connector spans from this icon's edge to the next icon's edge (gap = 32px, icon radius + 12px = 52px). */
    .home-process-step:not(:last-child)::before {
        content: "";
        position: absolute;
        top: 40px;
        left: calc(50% + 52px);
        width: calc(100% - 72px);
        border-top: 2px dashed rgb(23 105 255 / 0.55);
    }

    .home-process-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 35px;
        left: calc(150% - 30px);
        width: 10px;
        height: 10px;
        border-top: 2px solid #1769ff;
        border-right: 2px solid #1769ff;
        transform: rotate(45deg);
    }
}

.home-all-categories {
    display: inline-flex;
    width: 227px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    background: #ffc928;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.home-category-card > span:last-child {
    margin-top: auto;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
}

.home-category-card > span:last-child img[src*="arrow-right-"] {
    width: 12px;
    height: 12px;
    inset: 8.5px;
}

.home-hero-stats {
    align-items: center;
}

.home-hero-stats > div > div {
    min-width: 0;
}

.home-hero-stats span:has(> img[src*="arrow-right-"]) {
    width: 25px;
    height: 25px;
}

@media (min-width: 1280px) {
    /* Reference canvas is 1440px wide; preserve natural flow below desktop. */
    .home-header {
        height: 145px;
    }

    .home-header > div:first-child {
        padding-inline: 75px;
    }

    .home-header > div:first-child > a img {
        height: 90px;
        width: 120px;
    }

    .home-header nav {
        gap: clamp(32px, 5vw, 72px);
    }

    .home-header nav a {
        font-size: 20px;
    }

    .home-hero-content {
        min-height: 531px;
        display: flex;
        gap: 0;
        padding-top: 84px;
        padding-bottom: 90px;
    }

    .home-hero-copy {
        max-width: 763px;
    }

    .home-hero-copy h1 {
        font-size: clamp(42px, 3.4722vw, 50px);
        line-height: 1.36;
    }

    .home-hero-copy > p {
        margin-top: 11px;
        line-height: 27px;
    }

    .home-hero-copy > div:last-child {
        margin-top: 40px;
        gap: 30px;
    }

    .home-hero-art {
        position: absolute;
        right: 24px;
        top: 52px;
        width: 35.76%;
        min-height: 0;
        height: 506px;
    }

    .home-hero-art > img:last-child {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .home-hero-stats {
        max-width: 1100px;
        min-height: 143px;
        gap: 0;
        grid-template-columns: 1fr 1fr 1fr 1.1fr;
        padding: 20px;
    }

    .home-hero-content + div {
        padding-bottom: 81px;
    }

    section[data-node-id="48:226"] > div:last-child {
        padding-inline: 55px;
    }

    .home-hero-stats > div {
        min-height: 103px;
        justify-content: center;
        gap: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-hero-stats > div:last-child {
        padding-right: 0;
    }

    .home-category-grid {
        gap: 30px;
    }

    .home-category-card {
        min-height: 426px;
    }

    .brand-marquee-card {
        width: 200px;
    }
}

.brand-marquee {
    overflow: hidden;
    margin-top: 24px;
    mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.brand-marquee-track {
    display: flex;
    width: max-content;
    animation: brand-marquee-scroll 36s linear infinite;
}

.brand-marquee-group {
    display: flex;
    gap: 12px;
    padding-right: 12px;
}

.brand-marquee:hover .brand-marquee-track {
    animation-play-state: paused;
}

.brand-marquee-card {
    display: flex;
    height: 66px;
    width: 176px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f7f9fc;
    box-shadow: inset 0 0 10px rgb(0 136 255 / 0.1);
    padding: 0 16px;
}

.brand-marquee-card img {
    display: block;
    max-height: 40px;
    max-width: 150px;
    object-fit: contain;
}

.brand-marquee-card span {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

@keyframes brand-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-marquee-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
    }

    .brand-marquee-group:last-child {
        display: none;
    }
}
