/* Mobile-only homepage hero.
   Desktop remains governed by home-hero-desktop.css. */

@media (max-width: 991.98px) {
    .home-hero-legacy {
        display: none !important;
    }

    .atlas-desktop-hero {
        position: relative;
        z-index: 9;
        display: block !important;
        isolation: isolate;
        overflow: hidden;
        width: 100%;
        height: clamp(750px, 192vw, 920px);
        min-height: calc(100svh - 58px);
        max-height: 920px;
        color: #fff;
        background: #062a7d;
    }

    .atlas-desktop-hero::before {
        position: absolute;
        z-index: 2;
        inset: 0;
        content: "";
        pointer-events: none;
        background:
            linear-gradient(180deg, rgba(1, 22, 79, .06), transparent 38%, rgba(0, 28, 99, .05)),
            radial-gradient(circle at 50% 18%, rgba(31, 113, 255, .15), transparent 35%);
    }

    .atlas-desktop-hero__stage {
        position: absolute;
        z-index: 0;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        transform: none;
    }

    .atlas-desktop-hero__background {
        position: absolute;
        z-index: 0;
        inset: 0;
        background-color: #062a7d;
        background-image: url("../images/mobile-hero-waves.webp");
        background-repeat: no-repeat;
        background-position: center bottom;
        background-size: cover;
    }

    .atlas-desktop-hero__background::after {
        position: absolute;
        inset: 0;
        content: "";
        background: linear-gradient(180deg, rgba(0, 22, 78, .04), transparent 58%, rgba(0, 20, 76, .12));
    }

    .atlas-desktop-hero__orbits {
        display: none;
    }

    .atlas-desktop-hero__center {
        position: absolute;
        z-index: 5;
        top: clamp(28px, 6vw, 52px);
        left: 50%;
        width: min(68vw, 300px);
        aspect-ratio: 1;
        transform: translateX(-50%);
    }

    .atlas-desktop-hero__brand {
        position: relative;
        display: flex;
        width: 100%;
        height: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 24px 24px;
        box-sizing: border-box;
        border: 1px solid rgba(255, 255, 255, .78);
        border-radius: 50%;
        color: #fff;
        text-decoration: none !important;
        text-align: center;
        box-shadow:
            inset 0 0 52px rgba(51, 125, 255, .08),
            0 0 44px rgba(0, 26, 94, .16);
        transition: background .25s ease, border-color .25s ease, transform .25s ease;
    }

    .atlas-desktop-hero__brand::before,
    .atlas-desktop-hero__brand::after {
        position: absolute;
        content: "";
        border-radius: 50%;
        pointer-events: none;
    }

    .atlas-desktop-hero__brand::before {
        inset: 8px;
        border: 1px solid rgba(96, 171, 255, .14);
    }

    .atlas-desktop-hero__brand::after {
        inset: -8px;
        border: 1px dashed rgba(95, 175, 255, .13);
    }

    .atlas-desktop-hero__brand:hover,
    .atlas-desktop-hero__brand:focus-visible {
        border-color: #fff;
        background: rgba(255, 255, 255, .035);
        color: #fff;
        outline: none;
        transform: translateY(-2px);
    }

    .atlas-desktop-hero__brand:focus-visible {
        box-shadow: 0 0 0 4px rgba(97, 183, 255, .34);
    }

    .atlas-desktop-hero__brand img {
        display: block;
        width: min(42%, 126px);
        height: auto;
        margin: 0 0 17px;
        filter: drop-shadow(0 7px 18px rgba(0, 22, 76, .25));
    }

    .atlas-desktop-hero__brand-line {
        display: none;
    }

    .atlas-desktop-hero__brand h1 {
        width: 100%;
        margin: 0;
        color: #fff;
        font-family: IRANSansfanum, IRANSans, Arial, sans-serif;
        font-size: clamp(12px, 3.4vw, 17px);
        font-weight: 600;
        line-height: 1.75;
        text-wrap: balance;
        text-shadow: 0 3px 16px rgba(0, 18, 66, .45);
    }

    .atlas-desktop-hero__services {
        position: absolute;
        z-index: 6;
        top: min(37.5%, 345px);
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        gap: clamp(10px, 3vw, 17px);
        padding: 0 clamp(20px, 6vw, 46px);
        pointer-events: none;
    }

    .atlas-desktop-hero__service {
        position: relative;
        inset: auto;
        display: flex;
        width: min(76vw, 400px);
        min-height: 60px;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0;
        box-sizing: border-box;
        border: 2px solid rgba(255, 255, 255, .94);
        border-radius: 999px;
        background: rgba(1, 47, 132, .53);
        box-shadow:
            inset 0 0 24px rgba(46, 131, 255, .08),
            0 8px 24px rgba(0, 22, 83, .1);
        color: #fff;
        text-decoration: none !important;
        pointer-events: auto;
        backdrop-filter: blur(2px);
        transition:
            background .25s ease,
            border-color .25s ease,
            box-shadow .25s ease,
            transform .25s ease;
    }

    .atlas-desktop-hero__service--left {
        align-self: flex-end;
        padding-inline-start: 22px;
        direction: ltr;
    }

    .atlas-desktop-hero__service--right {
        align-self: flex-start;
        padding-inline-end: 22px;
        direction: ltr;
    }

    .atlas-desktop-hero__service--supply {
        order: 1;
    }

    .atlas-desktop-hero__service--enterprise {
        order: 2;
    }

    .atlas-desktop-hero__service--trade {
        order: 3;
    }

    .atlas-desktop-hero__service--logistics {
        order: 4;
    }

    .atlas-desktop-hero__service--it {
        order: 5;
    }

    .atlas-desktop-hero__service--telecom {
        order: 6;
    }

    .atlas-desktop-hero__service:hover,
    .atlas-desktop-hero__service:focus-visible {
        border-color: #fff;
        background: rgba(11, 70, 170, .82);
        box-shadow:
            inset 0 0 26px rgba(71, 151, 255, .15),
            0 12px 30px rgba(0, 17, 70, .2),
            0 0 0 4px rgba(101, 185, 255, .16);
        color: #fff;
        outline: none;
        transform: translateY(-2px);
    }

    .atlas-desktop-hero__service::before,
    .atlas-desktop-hero__service::after,
    .atlas-desktop-hero__connector {
        display: none;
    }

    .atlas-desktop-hero__service-copy {
        display: block;
        min-width: 0;
        flex: 1 1 auto;
        padding: 0 8px;
        direction: rtl;
        text-align: center !important;
    }

    html[dir="ltr"] .atlas-desktop-hero__service-copy {
        direction: ltr;
    }

    .atlas-desktop-hero__service-copy strong {
        display: block;
        overflow: hidden;
        color: #fff;
        font-family: IRANSansfanum, IRANSans, Arial, sans-serif;
        font-size: clamp(16px, 5vw, 23px);
        font-weight: 400;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-shadow: 0 2px 10px rgba(0, 18, 65, .36);
        text-decoration: none !important;
    }

    html[dir="ltr"] .atlas-desktop-hero__service-copy strong {
        font-size: clamp(15px, 4.6vw, 22px);
    }

    html[dir="ltr"] .atlas-desktop-hero__service--it .atlas-desktop-hero__service-copy strong {
        font-size: clamp(13px, 3.9vw, 17px);
    }

    .atlas-desktop-hero__service-copy small {
        display: none;
    }

    .atlas-desktop-hero__service-icon {
        position: relative;
        display: grid;
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
        place-items: center;
        margin-block: -2px;
        box-sizing: border-box;
        border: 2px solid #fff;
        border-radius: 50%;
        background: rgba(2, 54, 149, .78);
        box-shadow:
            inset 0 0 19px rgba(71, 152, 255, .13),
            0 0 0 3px rgba(5, 45, 128, .22);
        transition: background .25s ease, transform .25s ease;
    }

    .atlas-desktop-hero__service--left .atlas-desktop-hero__service-icon {
        margin-inline-end: -2px;
    }

    .atlas-desktop-hero__service--right .atlas-desktop-hero__service-icon {
        margin-inline-start: -2px;
    }

    .atlas-desktop-hero__service:hover .atlas-desktop-hero__service-icon,
    .atlas-desktop-hero__service:focus-visible .atlas-desktop-hero__service-icon {
        background: rgba(21, 91, 194, .94);
        transform: scale(1.04);
    }

    .atlas-desktop-hero__service-icon::before,
    .atlas-desktop-hero__service-icon::after {
        display: none;
    }

    .atlas-desktop-hero__service-icon img,
    .atlas-desktop-hero__service--enterprise .atlas-desktop-hero__service-icon img {
        display: block;
        width: 42%;
        max-width: 28px;
        height: 30px;
        max-height: 30px;
        object-fit: contain;
        filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0, 20, 75, .22));
        transition: transform .25s ease;
    }

    .atlas-desktop-hero__service--enterprise .atlas-desktop-hero__service-icon img {
        width: 25%;
        max-width: 20px;
    }

    .atlas-desktop-hero__service:hover .atlas-desktop-hero__service-icon img,
    .atlas-desktop-hero__service:focus-visible .atlas-desktop-hero__service-icon img {
        transform: scale(1.08);
    }

    .atlas-desktop-hero__scroll {
        display: none;
    }
}

@media (max-width: 359.98px) {
    .atlas-desktop-hero {
        height: 750px;
    }

    .atlas-desktop-hero__center {
        width: 218px;
    }

    .atlas-desktop-hero__services {
        top: 296px;
        gap: 11px;
        padding-inline: 16px;
    }

    .atlas-desktop-hero__service {
        width: 82vw;
        min-height: 56px;
    }

    .atlas-desktop-hero__service-icon {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .atlas-desktop-hero__service-copy strong,
    html[dir="ltr"] .atlas-desktop-hero__service-copy strong {
        font-size: 15px;
    }
}

@media (min-width: 600px) and (max-width: 991.98px) {
    .atlas-desktop-hero {
        height: 920px;
    }

    .atlas-desktop-hero__services {
        top: 360px;
    }

    .atlas-desktop-hero__service {
        width: min(65vw, 420px);
        min-height: 66px;
    }

    .atlas-desktop-hero__service-icon {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
    }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .atlas-desktop-hero *,
    .atlas-desktop-hero *::before,
    .atlas-desktop-hero *::after {
        transition: none !important;
        animation: none !important;
    }
}
