/* Solutions banner: "everything around one core" - the eGumball ball in the middle and the six
   services around it, each linking to its page. Same type as the homepage/locations banners:
   Montserrat 900 headline, orange figures over small blue capitals, orange pill. */
.egs-hero{
    background: radial-gradient(circle at 1px 1px, rgba(1,103,205,.08) 1px, transparent 0) 0 0 / 22px 22px,
                linear-gradient(180deg, #EAF3FD 0%, #FFFFFF 100%);
    border-bottom: 1px solid #DCE9F6; overflow: hidden;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.egs-hero *{ box-sizing: border-box; }
.egs-row{ display: contents; }
.egs-spokes-d{ display: none; }
.egs-hero p, .egs-hero ul, .egs-hero li{ margin: 0; padding: 0; list-style: none; }
.egs-inner{
    max-width: 1180px; margin: 0 auto; padding: 40px 24px;
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center;
}
.egs-title{ margin: 0 0 14px !important; font-size: 48px; font-weight: 900; line-height: 1.02; letter-spacing: -.025em; color: #0167CD; }
.egs-title em{ display: block; font-style: normal; color: #FF5A00; }
.egs-sub{ margin: 0 0 24px !important; max-width: 430px; font: 500 17px/1.45 Roboto, Arial, sans-serif; color: #51657E; }
.egs-stats{ margin: 0 0 26px !important; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 16px; }
.egs-stats li + li{ padding-left: 16px !important; border-left: 2px solid rgba(1,103,205,.18); }
.egs-stats b{ display: block; font-size: 25px; font-weight: 900; line-height: .95; letter-spacing: -.02em; color: #FF5A00; }
.egs-stats span{ display: block; margin-top: 5px; font-size: 11px; font-weight: 800; line-height: 1.15; color: #0167CD; text-transform: uppercase; letter-spacing: .02em; max-width: 130px; }
.egs-cta{
    display: inline-block; padding: 14px 28px; border-radius: 999px; background: #FF5A00; color: #fff !important;
    text-decoration: none !important; font-size: 16px; font-weight: 800; letter-spacing: .06em;
    box-shadow: 0 6px 16px rgba(255,90,0,.25); transition: transform .15s, background .15s;
}
.egs-cta:hover{ background: #E04F00; transform: translateY(-1px); }
.egs-stats i{ font-style: normal; }
.egs-short{ display: none; }

/* the hub */
.egs-hub{ position: relative; width: 100%; max-width: 520px; aspect-ratio: 1.12; margin: 0 auto; }
.egs-spokes{ position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.egs-spokes line{ stroke: #FF5A00; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .7; }
.egs-ring{ position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%);
    border-radius: 50%; border: 2px dashed rgba(1,103,205,.16); }
.egs-core{
    position: absolute; left: 50%; top: 50%; width: 124px; height: 124px; transform: translate(-50%, -50%);
    border-radius: 50%; background: #fff; box-shadow: 0 14px 34px rgba(255,90,0,.25); display: grid; place-items: center;
}
.egs-core svg{ width: 88px; height: 88px; }
.egs-nodes li{ position: absolute; width: 140px; transform: translate(-50%, -50%); }
.egs-nodes a{ display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; text-decoration: none !important; }
.egs-ic{
    width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 24px rgba(18,63,114,.16); transition: transform .15s, box-shadow .15s;
}
.egs-ic svg{ width: 28px; height: 28px; }
.egs-nodes b{ font-size: 12px; font-weight: 800; line-height: 1.2; color: #123F72; text-transform: uppercase; letter-spacing: .03em; }
.egs-nodes a:hover .egs-ic{ transform: translateY(-3px); box-shadow: 0 14px 28px rgba(255,90,0,.25); }
.egs-nodes a:hover b{ color: #FF5A00; }
/* on load: the core, then the spokes, then the services one by one. Each settles in with a long,
   soft ease-out (no hard stop), and keeps its own layer afterwards (will-change) so the browser
   does not redraw it at the end of the fade - that redraw is what looks like a "click". */
@media (prefers-reduced-motion: no-preference){
    .egs-core-in, .egs-nodes a, .egs-spokes{ will-change: opacity, transform; backface-visibility: hidden; }
    .egs-core-in{ display: grid; place-items: center; width: 100%; height: 100%; opacity: 0;
        animation: egs-pop 1.1s cubic-bezier(.16, 1, .3, 1) .15s both; }
    .egs-spokes{ opacity: 0; animation: egs-fade 1.2s cubic-bezier(.16, 1, .3, 1) .45s both; }
    .egs-nodes a{ opacity: 0; animation: egs-rise 1s cubic-bezier(.16, 1, .3, 1) var(--d) both; }
    @keyframes egs-pop{ 0%{ opacity: 0; transform: scale(.82); } 100%{ opacity: 1; transform: scale(1); } }
    @keyframes egs-fade{ 0%{ opacity: 0; } 100%{ opacity: .999; } }
    @keyframes egs-rise{ 0%{ opacity: 0; transform: translateY(10px) scale(.9); } 100%{ opacity: 1; transform: translateY(0) scale(1); } }
}
/* tablets: text on top, hub underneath */
@media only screen and (min-width: 768px) and (max-width: 1023px){
    .egs-inner{ grid-template-columns: 1fr; gap: 24px; padding: 36px 32px; }
    .egs-copy{ text-align: center; display: flex; flex-direction: column; align-items: center; }
    .egs-sub{ max-width: 560px; }
}
/* phones: centred, room on the sides */
@media only screen and (max-width: 767px){
    .egs-inner{ grid-template-columns: 1fr; gap: 20px; padding: 32px 20px 30px; }
    .egs-copy{ text-align: center; display: flex; flex-direction: column; align-items: center; }
    .egs-title{ font-size: 36px; }
    .egs-sub{ font-size: 15px; }
    .egs-stats{ width: 100%; max-width: 380px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
    .egs-stats li{ padding: 0 6px !important; }
    .egs-stats li + li{ padding-left: 6px !important; }
    .egs-stats b{ font-size: clamp(17px, 5.2vw, 24px); }
    .egs-stats span{ font-size: 10px; max-width: none; }
    .egs-long{ display: none; }
    .egs-short{ display: inline; }
    .egs-cta{ font-size: 15px; }
    .egs-hub{ max-width: 360px; aspect-ratio: 1; }
    .egs-core{ width: 88px; height: 88px; }
    .egs-core svg{ width: 62px; height: 62px; }
    .egs-nodes li{ width: 92px; }
    .egs-ic{ width: 50px; height: 50px; }
    .egs-ic svg{ width: 22px; height: 22px; }
    .egs-nodes b{ font-size: 9.5px; }
}

/* ===== DESKTOP (1024px+): same height as the home page banner at every width =====
   The home hero is width / 4.968 tall with its content scaled from a 1394 x 275 design;
   this banner uses the same numbers, so the menu bar under it never moves between pages.
   Inside, 1em = 1 design pixel. */
@media only screen and (min-width: 1024px){
    .egs-hero{ aspect-ratio: 4.968; border-bottom: 0; }
    .egs-inner{ display: block; height: 100%; padding: 0 16px; container-type: size; }
    .egs-row{ display: flex; align-items: center; justify-content: space-between; gap: 30em;
        width: 100%; height: 100%; font-size: min(calc(100cqw / 1394), calc(100cqh / 275)); }
    .egs-copy{ flex: 0 0 500em; }
    .egs-title{ font-size: 50em; margin: 0 0 .26em !important; }
    .egs-sub{ display: none; }
    .egs-stats{ margin: 0 0 20em !important; gap: 0 16em; }
    .egs-stats li + li{ padding-left: 16em !important; border-left-width: 2em; }
    .egs-stats b{ font-size: 25em; white-space: nowrap; }
    .egs-stats span{ font-size: 11.5em; margin-top: .4em; max-width: 11em; }
    .egs-cta{ font-size: 17em; padding: .8em 1.55em; }
    .egs-visual{ flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
}
@media only screen and (min-width: 1024px){
    /* the hub goes wide: the ball in the middle, three services each side as labelled pills */
    .egs-visual{ justify-content: flex-end; }   /* right edge lines up with the phone number and Login */
    .egs-hub{ width: 640em; max-width: none; height: 250em; aspect-ratio: auto; margin: 0; }
    .egs-spokes, .egs-ring{ display: none; }
    .egs-spokes-d{ display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .egs-spokes-d path{ fill: none; stroke: #FF5A00; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .7; }
    .egs-core{ width: 118em; height: 118em; z-index: 1; }
    .egs-core svg{ width: 84em; height: 84em; }
    .egs-nodes li{ width: 214em; transform: translateY(-50%); z-index: 1; }
    .egs-nodes li:nth-child(-n+3){ left: 0 !important; }
    .egs-nodes li:nth-child(n+4){ left: 426em !important; }
    .egs-nodes li:nth-child(3n+1){ top: 16% !important; }
    .egs-nodes li:nth-child(3n+2){ top: 50% !important; }
    .egs-nodes li:nth-child(3n){ top: 84% !important; }
    .egs-nodes a{ flex-direction: row; gap: 10em; height: 58em; padding: 6em 14em 6em 6em; border-radius: 999px;
        background: #fff; box-shadow: 0 8em 22em rgba(18,63,114,.14); text-align: left; }
    .egs-nodes li:nth-child(-n+3) a{ flex-direction: row-reverse; padding: 6em 6em 6em 14em; text-align: right; }
    .egs-ic{ flex: none; width: 46em; height: 46em; box-shadow: none; background: #F3F7FC; }
    .egs-ic svg{ width: 22em; height: 22em; }
    .egs-nodes b{ flex: 1; font-size: 12em; line-height: 1.2; }
    .egs-nodes a:hover .egs-ic{ transform: none; box-shadow: none; }
    .egs-nodes a:hover{ box-shadow: 0 10em 26em rgba(255,90,0,.22); }
}

/* ===== stats row, balanced: equal space either side of each divider ===== */
.egs-stats{ display: flex !important; gap: 0 !important; justify-content: flex-start; width: auto !important; max-width: none !important; }
.egs-stats li, .egs-stats li + li{ padding: 0 18px !important; }
.egs-stats li:first-child{ padding-left: 0 !important; }
.egs-stats li:last-child{ padding-right: 0 !important; }
.egs-stats li{ flex: none; }   /* never squeeze a column - that is what pushed a label onto a 3rd line */
.egs-stats span{ max-width: none !important; white-space: nowrap; }   /* exactly the two lines set with <br> */
@media only screen and (max-width: 1023px){
    .egs-stats{ justify-content: center; }
}
@media only screen and (max-width: 767px){
    .egs-stats li, .egs-stats li + li{ padding: 0 14px !important; }
    .egs-stats li:first-child{ padding-left: 0 !important; }
    .egs-stats li:last-child{ padding-right: 0 !important; }
}
@media only screen and (min-width: 1024px){
    .egs-stats li, .egs-stats li + li{ padding: 0 18em !important; }
    .egs-stats li:first-child{ padding-left: 0 !important; }
    .egs-stats li:last-child{ padding-right: 0 !important; }
}
