/* ==========================================================================
   Home: "Gateway in numbers" (24 Nov 2026)
   Markup: resources/views/user/partials/_home_numbers.blade.php
   Navy section, dotted world map, gold hub on India with arcs to the main destinations, three count-up stats.
   Colours only from gateway-theme.css variables. Gold text only on navy. No grey text.
   ========================================================================== */
.gw-num {
    position: relative;
    overflow: hidden;
    padding: 64px 0 64px;
    background: radial-gradient(120% 90% at 50% 0%, var(--gw-navy-light), var(--gw-navy) 62%);
    color: var(--gw-white);
    font-family: var(--gw-font);
}
.gw-num .container { position: relative; z-index: 1; }

/* ---- Head ---- */
.gw-num-head { max-width: none; }
.gw-num-kicker {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gw-gold);
}
.gw-num-title {
    text-wrap: balance;
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--gw-white);
}
.gw-num-title span { color: var(--gw-gold); -webkit-text-fill-color: var(--gw-gold); }
.gw-num-sub { margin: 0; max-width: none; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--gw-white); }
.gw-num-sub strong { font-weight: 700; color: var(--gw-gold); }

/* ---- Map ---- */
.gw-num-stage { position: relative; margin: 0 auto; max-width: 1120px; }
.gw-num-map { display: block; width: 100%; height: auto; overflow: visible; }
.gw-num-dots {
    fill: none;
    stroke: rgba(var(--gw-white-rgb, 255, 255, 255), .32);
    stroke-width: .62;
    stroke-linecap: round;
}
/* Highlighted destination countries: gold dots (gentle twinkle), plus small label pills. No lines, so nothing tangles. */
.gw-num-mapbox { position: relative; }
.gw-num-dots--gold { stroke: var(--gw-gold); stroke-width: .7; animation: gwNumTwinkle 4.2s ease-in-out infinite; }
@keyframes gwNumTwinkle { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
.gw-num-legend {
    position: absolute;
    left: 0;
    bottom: 14%;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 5px;
    border-radius: 999px;
    background: rgba(var(--gw-navy-rgb), .85);
    border: 1px solid rgba(var(--gw-gold-rgb), .45);
    font-size: 13px;
    font-weight: 600;
    color: var(--gw-white);
}
.gw-num-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--gw-gold); box-shadow: 0 0 0 2px rgba(var(--gw-gold-rgb), .4); }
.gw-num-pins { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.gw-num-pin { position: absolute; width: 0; height: 0; }
.gw-num-pin i {
    position: absolute;
    left: -5px;
    top: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gw-gold);
    border: 2px solid var(--gw-navy);
    box-shadow: 0 0 0 2px rgba(var(--gw-gold-rgb), .45);
}
.gw-num-pin span {
    position: absolute;
    white-space: nowrap;
    padding: 5px 11px 4px;
    border-radius: 999px;
    background: var(--gw-navy);
    border: 1px solid rgba(var(--gw-gold-rgb), .55);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.2;
    color: var(--gw-white);
}
.gw-num-pin--t span { left: 0; bottom: 12px; transform: translateX(-50%); }
.gw-num-pin--b span { left: 0; top: 12px; transform: translateX(-50%); }
.gw-num-pin--l span { right: 12px; top: 0; transform: translateY(-50%); }
.gw-num-pin--r span { left: 12px; top: 0; transform: translateY(-50%); }
.gw-num-pin--b span, .gw-num-pin--t span { }
.gw-num.is-in .gw-num-pin { animation: gwNumPin .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * .09s + .2s); }
@keyframes gwNumPin { from { opacity: 0; } to { opacity: 1; } }

.gw-num-hub-pulse {
    fill: none;
    stroke: var(--gw-gold);
    stroke-width: .35;
    transform-box: fill-box;
    transform-origin: center;
    animation: gwNumPulse 2.8s ease-out infinite;
}
.gw-num-hub-pulse--2 { animation-delay: -1.4s; }
@keyframes gwNumPulse { 0% { transform: scale(.7); opacity: .95; } 100% { transform: scale(3.6); opacity: 0; } }

/* ---- Stats: glass cards that overlap the bottom of the map ---- */
.gw-num-stats {
    list-style: none;
    margin: -2% 0 0;
    padding: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.gw-num-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 16px;
    background: rgba(var(--gw-white-rgb, 255, 255, 255), .07);
    border: 1px solid rgba(var(--gw-gold-rgb), .4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}
.gw-num-val {
    flex: 0 0 auto;
    font-size: clamp(34px, 3.4vw, 50px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--gw-white);
    font-variant-numeric: tabular-nums;
}
.gw-num-val i { font-style: normal; color: var(--gw-gold); margin-left: 2px; }
.gw-num-label { display: block; margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--gw-white); }
.gw-num-label em { display: block; font-style: normal; font-weight: 600; color: var(--gw-gold); }

/* reveal when the section scrolls into view (visible by default if JS is off) */
.gw-num.is-in .gw-num-stat { animation: gwNumUp .7s cubic-bezier(.2, .7, .2, 1) both; }
.gw-num.is-in .gw-num-stat:nth-child(2) { animation-delay: .12s; }
.gw-num.is-in .gw-num-stat:nth-child(3) { animation-delay: .24s; }
@keyframes gwNumUp { from { opacity: 0; } to { opacity: 1; } } /* fade only: no sliding while the numbers count */

@media (max-width: 991.98px) {
    .gw-num { padding: 56px 0 56px; }
    .gw-num-stat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; }
    .gw-num-label { font-size: 14px; }
}
@media (max-width: 767.98px) {
    .gw-num { padding: 44px 0 44px; }
    .gw-num-head { margin-bottom: 4px; }
    .gw-num-stats { margin-top: 12px; grid-template-columns: 1fr; gap: 10px; }
    .gw-num-stat { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; }
    .gw-num-val { flex: 0 0 124px; font-size: 32px; }
    .gw-num-label { font-size: 14px; }
    .gw-num-dots { stroke-width: .78; }
    .gw-num-dots--gold { stroke-width: .86; }
    .gw-num-pins { display: none; }
    .gw-num-legend { position: static; margin: 10px 0 0; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-num-dots--gold, .gw-num-hub-pulse { animation: none; }
    .gw-num.is-in .gw-num-pin { animation: none; }
    .gw-num-hub-pulse { display: none; }
    .gw-num.is-in .gw-num-stat { animation: none; }
}

/* Reserve the final width of each count-up number (no JS measuring): an invisible copy of the final value sets the width. */
.gw-num-val [data-gw-count] { display: inline-block; font-variant-numeric: tabular-nums; }
.gw-num-val [data-gw-count]::before { content: attr(data-final); display: block; height: 0; overflow: hidden; visibility: hidden; }

/* Phones: "70,000+" stays on one line (the plus used to drop under the number). */
@media (max-width: 767.98px) {
    .gw-num-val { flex: 0 0 150px; white-space: nowrap; font-size: 30px; }
    .gw-num-val i { margin-left: 1px; }
}
