/* =========================================================
   Hamida Traders
   RTM-013 — Global Garments Trade Hero Refinement
   Append AFTER home.css
   ========================================================= */

/* Stronger hero composition */
.home-hero{
    min-height:calc(100vh - 96px);
    isolation:isolate;
}

.home-hero::after{
    content:'';
    position:absolute;
    inset:auto auto -180px -140px;
    width:420px;
    height:420px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(0,82,204,.08),transparent 70%);
    pointer-events:none;
    z-index:0;
}

.home-hero__grid{
    min-height:680px;
    padding-top:68px;
    padding-bottom:76px;
}

/* Eyebrow refinement */
.home-eyebrow{
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.7),
        0 8px 24px rgba(0,82,204,.05);
}

/* Hero title polish */
.home-hero h1{
    max-width:820px;
    text-wrap:balance;
    text-shadow:0 1px 0 rgba(255,255,255,.75);
}

.home-hero h1 span{
    position:relative;
}

.home-hero h1 span::after{
    content:'';
    display:block;
    width:94px;
    height:4px;
    margin-top:18px;
    border-radius:999px;
    background:linear-gradient(90deg,#0052cc,#60a5fa);
    box-shadow:0 8px 20px rgba(0,82,204,.18);
}

/* Lead copy */
.home-hero__lead{
    max-width:690px;
    font-size:17px;
    line-height:1.82;
}

/* Product/service pills refinement */
.home-service-pills span{
    position:relative;
    overflow:hidden;
}

.home-service-pills span::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,transparent 20%,rgba(255,255,255,.65),transparent 80%);
    transform:translateX(-140%);
    transition:transform .55s ease;
}

.home-service-pills span:hover::before{
    transform:translateX(140%);
}

/* CTA hierarchy */
.home-btn--primary{
    position:relative;
    overflow:hidden;
}

.home-btn--primary::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,transparent 10%,rgba(255,255,255,.22),transparent 70%);
    transform:translateX(-130%);
    transition:transform .6s ease;
}

.home-btn--primary:hover::after{
    transform:translateX(130%);
}

.home-btn span{
    transition:transform .22s ease;
}

.home-btn:hover span{
    transform:translateX(4px);
}

/* Trust row */
.home-trust-row{
    padding-top:2px;
}

.home-trust-row span{
    padding:6px 9px;
    border-radius:999px;
    transition:background .2s ease,color .2s ease;
}

.home-trust-row span:hover{
    background:rgba(0,82,204,.04);
    color:#475569;
}

/* Visual stage */
.home-hero__visual{
    perspective:1200px;
}

.trade-orb{
    box-shadow:
        inset 0 0 120px rgba(0,82,204,.045),
        0 36px 90px rgba(15,39,71,.10),
        0 0 0 12px rgba(0,82,204,.018);
}

.trade-orb::before{
    box-shadow:inset 0 0 60px rgba(0,82,204,.025);
}

.trade-center-card{
    border-color:rgba(0,82,204,.11);
    box-shadow:
        0 30px 80px rgba(15,39,71,.08),
        inset 0 1px 0 rgba(255,255,255,.9);
}

.trade-center-card__icon{
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.8),
        0 10px 28px rgba(0,82,204,.10);
}

.trade-float{
    border-color:rgba(0,82,204,.09);
    box-shadow:
        0 20px 50px rgba(15,39,71,.06),
        inset 0 1px 0 rgba(255,255,255,.9);
}

.trade-float::before{
    content:'';
    width:7px;
    height:7px;
    display:block;
    position:absolute;
    top:10px;
    right:10px;
    border-radius:50%;
    background:#22c55e;
    box-shadow:0 0 0 4px rgba(34,197,94,.07);
}

/* Connection lines */
.trade-orb .trade-route{
    position:absolute;
    z-index:2;
    height:1px;
    transform-origin:left center;
    background:linear-gradient(90deg,rgba(0,82,204,.05),rgba(0,82,204,.35),rgba(0,82,204,.05));
    opacity:.7;
}

.trade-route--1{
    width:145px;
    left:23%;
    top:29%;
    transform:rotate(18deg);
}

.trade-route--2{
    width:150px;
    left:46%;
    top:42%;
    transform:rotate(-17deg);
}

.trade-route--3{
    width:125px;
    left:29%;
    top:62%;
    transform:rotate(-27deg);
}

.trade-route::after{
    content:'';
    position:absolute;
    top:-2px;
    left:0;
    width:5px;
    height:5px;
    border-radius:50%;
    background:#3b82f6;
    box-shadow:0 0 10px rgba(59,130,246,.6);
    animation:ht-route-dot 3.8s linear infinite;
}

.trade-route--2::after{animation-delay:-1.2s}
.trade-route--3::after{animation-delay:-2.3s}

@keyframes ht-route-dot{
    0%{left:0;opacity:0}
    12%{opacity:1}
    88%{opacity:1}
    100%{left:calc(100% - 5px);opacity:0}
}

/* Entrance animation */
.home-hero__copy,
.home-hero__visual{
    opacity:0;
    transform:translateY(18px);
}

.home-hero.is-ready .home-hero__copy{
    animation:ht-hero-enter .75s cubic-bezier(.22,.8,.3,1) forwards;
}

.home-hero.is-ready .home-hero__visual{
    animation:ht-hero-enter .9s .08s cubic-bezier(.22,.8,.3,1) forwards;
}

@keyframes ht-hero-enter{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Responsive refinement */
@media (max-width:1024px){
    .home-hero__grid{
        min-height:auto;
        padding-top:52px;
        padding-bottom:64px;
    }

    .home-hero h1 span::after{
        margin-left:auto;
        margin-right:auto;
    }

    .home-hero__visual{
        min-height:420px;
    }
}

@media (max-width:700px){
    .home-hero__grid{
        padding-top:34px;
        padding-bottom:50px;
    }

    .home-hero h1{
        font-size:40px;
        line-height:.98;
    }

    .home-hero h1 span::after{
        width:72px;
        height:3px;
        margin-top:14px;
    }

    .home-hero__lead{
        font-size:14px;
        line-height:1.72;
    }

    .home-service-pills{
        gap:7px;
    }

    .home-service-pills span{
        padding:8px 10px;
        font-size:10px;
    }

    .home-trust-row{
        gap:8px;
    }

    .home-trust-row span{
        font-size:9px;
    }
}

@media (max-width:430px){
    .home-hero h1{
        font-size:33px;
    }

    .home-hero__actions{
        flex-direction:column;
    }

    .home-hero__actions .home-btn{
        width:100%;
    }

    .trade-route{
        opacity:.45;
    }
}

@media (prefers-reduced-motion:reduce){
    .home-hero__copy,
    .home-hero__visual{
        opacity:1!important;
        transform:none!important;
        animation:none!important;
    }

    .trade-route::after{
        animation:none!important;
    }
}
