/* =====================================================
   Global sections: Stats band · World map · Shipping solutions
   Uses the palette variables declared in style.css
===================================================== */

/* ---------- STATS BAND ---------- */
.stats-band {
    padding: 84px 0 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    box-shadow: var(--shadow-soft);
}

.stat-cell {
    padding: 40px 28px;
    text-align: center;
    position: relative;
}

.stat-cell + .stat-cell::before {
    content: "";
    position: absolute;
    inset-block: 28px;
    inset-inline-start: 0;
    width: 1px;
    background: var(--line);
}

.stat-num {
    font-family: 'Cairo', 'IBM Plex Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    line-height: 1.1;
    color: var(--ink);
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.stat-num em {
    font-style: normal;
    color: var(--gold);
    margin-inline-start: 2px;
}

.stat-label {
    margin-top: 8px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink-70);
}

/* ---------- WORLD MAP / GLOBAL REACH ---------- */
.reach {
    padding: 120px 0 110px;
    overflow: hidden;
}

.reach .head {
    max-width: 640px;
    margin-bottom: 50px;
}

.reach h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.reach .head p:not(.eyebrow) {
    color: var(--ink-70);
    margin-top: 16px;
    max-width: 52ch;
}

.reach-map {
    --flag: 28px;
    --flag: clamp(18px, 2.7cqw, 32px);
    position: relative;
    width: 100%;
    aspect-ratio: 160 / 70;
    direction: ltr;
    container-type: inline-size;
}

.reach-dots,
.reach-arcs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.reach-dots {
    opacity: .3;
    -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 55%, transparent 100%);
}

.reach-arcs path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.4px;
    stroke-linecap: round;
    stroke-dasharray: 2 7;
    vector-effect: non-scaling-stroke;
    opacity: .85;
    animation: arcFlow 1.6s linear infinite;
}

@keyframes arcFlow {
    to { stroke-dashoffset: -18; }
}

.pin {
    position: absolute;
    width: var(--flag);
    height: var(--flag);
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: default;
}

.pin-flag {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--white);
    background: var(--white);
    box-shadow: 0 6px 16px rgba(14, 27, 58, .28);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.pin-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pin:hover {
    z-index: 5;
}

.pin:hover .pin-flag {
    transform: scale(1.3);
    box-shadow: 0 10px 22px rgba(14, 27, 58, .38);
}

.pin-name {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--ink);
    color: var(--white);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
}

.pin:hover .pin-name {
    opacity: 1;
    transform: translateX(-50%);
}

.pin.hub {
    width: calc(var(--flag) * 1.25);
    height: calc(var(--flag) * 1.25);
    z-index: 3;
}

.pin.hub .pin-flag {
    border-color: var(--gold);
    border-width: 3px;
}

.pin.hub::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: pinPulse 2.4s var(--ease) infinite;
}

.pin.hub .pin-name {
    top: auto;
    bottom: calc(100% + 10px);
    opacity: 1;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--ink);
}

@keyframes pinPulse {
    0%   { transform: scale(1);   opacity: .9; }
    100% { transform: scale(2.1); opacity: 0; }
}

.reach-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 46px;
}

.reach-legend li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    padding-inline-start: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 40px;
    font-size: .85rem;
    font-weight: 500;
}

.reach-legend img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- SHIPPING SOLUTIONS ---------- */
.ship {
    background: var(--ink);
    padding: 130px 0 140px;
    overflow: hidden;
}

.ship::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 90% 8%, rgba(199, 154, 60, .16), transparent 42%),
        radial-gradient(circle at 5% 95%, rgba(42, 127, 140, .18), transparent 45%);
}

.ship .head {
    position: relative;
    max-width: 680px;
    margin-bottom: 64px;
}

.ship h2 {
    color: var(--white);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.ship .head p:not(.eyebrow) {
    color: rgba(255, 255, 255, .68);
    margin-top: 16px;
}

.ship-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ship-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 32px 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    color: var(--white);
    transition: transform .45s var(--ease), border-color .35s, background .35s;
}

.ship-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transform: scaleX(.3);
    transform-origin: left;
    transition: transform .5s var(--ease);
}

body.lang-ar .ship-card::before {
    transform-origin: right;
    background: linear-gradient(270deg, var(--gold), transparent);
}

.ship-card:hover {
    transform: translateY(-8px);
    border-color: rgba(199, 154, 60, .55);
}

.ship-card:hover::before {
    transform: scaleX(1);
}

.ship-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.ship-icon {
    flex: none;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: var(--gold-light);
    border: 1px solid rgba(199, 154, 60, .5);
    border-radius: 50%;
    background: rgba(199, 154, 60, .08);
    transition: background .35s, color .35s;
}

.ship-card:hover .ship-icon {
    background: var(--gold);
    color: var(--ink);
}

.ship-tag {
    font-size: .78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .55);
    letter-spacing: .2px;
}

.ship-card h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.ship-routes {
    flex: 1;
    margin-bottom: 26px;
}

.ship-routes li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: .97rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .92);
}

.ship-routes li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.r-to {
    color: var(--gold-light);
}

.r-arrow,
.r-pin {
    flex: none;
    background-color: var(--gold);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.r-arrow {
    width: 26px;
    height: 12px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Cpath d='M0 6h24M19 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Cpath d='M0 6h24M19 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
}

.r-arrow.both {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Cpath d='M2 6h22M7 1L2 6l5 5M19 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Cpath d='M2 6h22M7 1L2 6l5 5M19 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
}

body.lang-ar .r-arrow:not(.both) {
    transform: scaleX(-1);
}

.r-pin {
    width: 12px;
    height: 14px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M6 0a5 5 0 0 0-5 5c0 3.6 5 9 5 9s5-5.4 5-9a5 5 0 0 0-5-5zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M6 0a5 5 0 0 0-5 5c0 3.6 5 9 5 9s5-5.4 5-9a5 5 0 0 0-5-5zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E");
}

.ship-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    color: var(--gold-light);
    font-weight: 600;
    font-size: .95rem;
    transition: gap .3s var(--ease), color .3s;
}

.ship-more:hover {
    gap: 16px;
    color: var(--white);
}

body.lang-ar .ship-more span {
    display: inline-block;
    transform: scaleX(-1);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-cell:nth-child(odd)::before {
        display: none;
    }

    .stat-cell:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .reach,
    .ship {
        padding: 90px 0;
    }
}

@media (max-width: 560px) {
    .stat-cell {
        padding: 28px 12px;
    }

    .pin-name {
        display: none;
    }

    .pin.hub .pin-name {
        display: block;
        font-size: .62rem;
        padding: 4px 6px;
    }
}
