/* ECSPL greenery: background and decoration only. No words, links or content order change.
   VOICE   calm, credible, quietly alive
   IDEA    the page as a clearing: brand content in the open, growth around its edges
   PICTURE drawn branches framing the home hero, a living landscape in an organic window, a leaf-canopy band
           (the inner-page banners too), a dotted footprint map, hills leading into a footer framed by foliage
   COLOUR  existing brand palette kept; leaf greens built from #39B54A; a soft mint wash under every section
   TYPE / LAYOUT unchanged (Plus Jakarta Sans, existing grid)
   greenery.js adds body.gx-site on every page (+ .home-greenery on the homepage, .gx-inner elsewhere) and
   injects every decorative element with aria-hidden and pointer-events:none. */

:root {
    --gx-footer: #eef7ef;
    --gx-ease: cubic-bezier(.22, 1, .36, 1);
    /* Mint tint that eases in and out over 200px (smoothstep stops), so sections never meet at a visible edge */
    --gx-ramp: linear-gradient(180deg,
        rgba(242,250,243,0) 0, rgba(242,250,243,.08) 40px, rgba(242,250,243,.26) 80px,
        rgba(242,250,243,.48) 120px, rgba(242,250,243,.66) 160px, rgba(242,250,243,.74) 200px,
        rgba(242,250,243,.74) calc(100% - 200px), rgba(242,250,243,.66) calc(100% - 160px),
        rgba(242,250,243,.48) calc(100% - 120px), rgba(242,250,243,.26) calc(100% - 80px),
        rgba(242,250,243,.08) calc(100% - 40px), rgba(242,250,243,0) 100%);
}

body.gx-site { background: #f7fcf7 !important; }
.gx-site .content-layer { position: relative; z-index: 1; }

/* ---------- 1. Living wash + falling leaves, fixed behind the whole page ---------- */
.gx-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gx-wash { position: absolute; border-radius: 50%; will-change: transform; }
.gx-w1 { width: 70vmax; height: 70vmax; left: -22vmax; top: -26vmax;
    background: radial-gradient(circle, rgba(57,181,74,.22) 0, rgba(57,181,74,0) 62%);
    animation: gx-drift-a 46s ease-in-out infinite alternate; }
.gx-w2 { width: 62vmax; height: 62vmax; right: -24vmax; top: 18vh;
    background: radial-gradient(circle, rgba(41,171,226,.12) 0, rgba(41,171,226,0) 62%);
    animation: gx-drift-b 58s ease-in-out infinite alternate; }
.gx-w3 { width: 72vmax; height: 72vmax; left: 8vw; bottom: -44vmax;
    background: radial-gradient(circle, rgba(140,200,70,.20) 0, rgba(140,200,70,0) 62%);
    animation: gx-drift-c 64s ease-in-out infinite alternate; }
.gx-w4 { width: 36vmax; height: 36vmax; right: 6vw; top: -14vmax;
    background: radial-gradient(circle, rgba(253,184,19,.13) 0, rgba(253,184,19,0) 62%);
    animation: gx-drift-a 52s ease-in-out infinite alternate-reverse; }
@keyframes gx-drift-a { to { transform: translate3d(8vw, 6vh, 0) scale(1.08); } }
@keyframes gx-drift-b { to { transform: translate3d(-7vw, 10vh, 0) scale(.94); } }
@keyframes gx-drift-c { to { transform: translate3d(6vw, -8vh, 0) scale(1.1); } }

.gx-fall { position: absolute; top: 0; left: var(--l); width: var(--s); height: var(--s); opacity: var(--o);
    animation: gx-fall var(--d) linear var(--dl) infinite; will-change: transform; }
.gx-fall svg { display: block; width: 100%; height: 100%; overflow: visible;
    animation: gx-flutter var(--f) ease-in-out infinite alternate; }
@keyframes gx-fall { from { transform: translate3d(0, -10vh, 0); } to { transform: translate3d(var(--dx), 110vh, 0); } }
@keyframes gx-flutter { from { transform: rotate(-30deg) rotateY(0); } to { transform: rotate(70deg) rotateY(60deg); } }

/* ---------- Section grounds: see-through over the wash; tinted ones ease in and out ---------- */
.gx-site section.bg-mid, .gx-site main.bg-mid, .gx-site section.bg-white,
.home-greenery #about { background: transparent !important; border-top: 0 !important; border-bottom: 0 !important; }
.gx-site section.bg-mid, .gx-site main.bg-mid,
.home-greenery #about { background: var(--gx-ramp) !important; }
/* Sections that hold edge sprigs: content sits above the sprigs */
.gx-sec { position: relative; }
.gx-sec > :not(.gx-cl):not(.absolute):not(.fixed) { position: relative; z-index: 1; }

/* ---------- Branches (hero clusters, edge sprigs, footer plants) ---------- */
.gx-cl { position: absolute; width: 0; height: 0; }
.gx-cl-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.gx-br { position: absolute; left: 0; top: 0; transform: rotate(var(--a)); transform-origin: 0 0; }
.gx-br svg { position: absolute; left: 0; overflow: visible; transform-origin: 0 50%;
    animation: gx-sway var(--t) ease-in-out var(--dl) infinite alternate; }
.gx-far { opacity: .4; } /* depth by transparency only: a filter here would repaint every sway frame */
@keyframes gx-sway { from { rotate: -2.2deg; } to { rotate: 2.6deg; } }

/* ---------- 2. Home hero ----------
   Not clipped at the bottom: the corner foliage spills softly into About instead of being cut off in a
   straight line (body already hides sideways overflow). */
.home-greenery .gx-hero { overflow-x: clip; overflow-y: visible; isolation: isolate; }
.gx-hero > .container { position: relative; z-index: 2; }
.gx-hero > .absolute { z-index: 2; }
.gx-hero-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ---------- 3. About: landscape in a breathing organic window, behind the frosted cards ---------- */
.gx-blob { position: absolute; z-index: 0; left: 4%; right: -6%; top: -9%; bottom: -9%; pointer-events: none; }
.gx-blob-mask { position: absolute; inset: 0; overflow: hidden; isolation: isolate; transform: translateZ(0);
    border-radius: 58% 42% 55% 45% / 46% 55% 45% 54%;
    box-shadow: 0 40px 70px -30px rgba(31,122,52,.45);
    animation: gx-morph 22s ease-in-out infinite alternate; }
.gx-blob-img { position: absolute; inset: -14%; background: url(media/hills.jpg) center / cover;
    animation: gx-kb 34s ease-in-out infinite alternate; }
.gx-blob-mask::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(20,90,45,.10) 60%, rgba(10,50,28,.22)); }
.gx-blob-ring { position: absolute; inset: -16px; border: 1.5px solid rgba(57,181,74,.45);
    border-radius: 44% 56% 40% 60% / 58% 42% 58% 42%;
    animation: gx-morph2 26s ease-in-out infinite alternate; }
@keyframes gx-morph {
    50%  { border-radius: 42% 58% 46% 54% / 58% 44% 56% 42%; }
    100% { border-radius: 52% 48% 38% 62% / 40% 60% 40% 60%; } }
@keyframes gx-morph2 {
    50%  { border-radius: 60% 40% 52% 48% / 42% 58% 42% 58%; }
    100% { border-radius: 46% 54% 62% 38% / 55% 45% 55% 45%; } }
@keyframes gx-kb { from { scale: 1; } to { scale: 1.14; } }
.home-greenery #about .glass-card {
    background: rgba(255,255,255,.80);
    border-color: rgba(255,255,255,.75);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2); }

/* ---------- 4. Leaf canopy: the home stats band, and every inner page's banner ---------- */
.gx-canopy-photo { position: absolute; left: 0; right: 0; top: -170px; bottom: -170px; z-index: -1; pointer-events: none;
    background:
        linear-gradient(115deg, rgba(9,46,26,.90), rgba(18,92,46,.60) 55%, rgba(9,46,26,.86)),
        url(media/canopy.jpg) center / cover; }
.home-greenery section.gx-stats { position: relative; overflow: hidden; isolation: isolate;
    background: #0e3b22 !important; border: 0 !important; padding-block: 88px !important;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%); }
.gx-stats [style*="#1B3A7A"] { color: #fff !important; }
.gx-stats .text-muted { color: rgba(255,255,255,.82) !important; }
.gx-stats .md\:border-r { border-color: rgba(255,255,255,.16) !important; }

/* Inner pages: the blue banner becomes the canopy. It now starts at the very top (under the frosted header)
   and its text sits exactly where it did; the bottom fades into the page instead of ending on a line. */
.gx-inner .page-hero { position: relative; overflow: hidden; isolation: isolate; background: #0e3b22 !important;
    margin-top: calc(-1 * var(--tb-h, 0px)) !important;
    padding-top: calc(10rem + 37px + var(--tb-h, 0px)) !important; padding-bottom: 190px !important;
    --fade: linear-gradient(180deg, #000 calc(100% - 160px), rgba(0,0,0,.9) calc(100% - 128px),
        rgba(0,0,0,.66) calc(100% - 96px), rgba(0,0,0,.34) calc(100% - 64px), rgba(0,0,0,.1) calc(100% - 32px), transparent 100%);
    -webkit-mask-image: var(--fade); mask-image: var(--fade); }
.gx-inner .page-hero > :not(.gx-canopy-photo) { position: relative; }
.gx-inner .page-hero + * { margin-top: -80px; } /* the content rises out of the fade */
/* Over the dark canopy a see-through header reads grey: a solid pale-mint header here (frosted once compact) */
.gx-inner #navbar, .gx-inner .top-bar { background: #f4faf5 !important; }
.gx-inner #navbar::after, .gx-inner #navbar > .container > a:first-child::before { display: none; }

/* ---------- 5. Footer: rolling hills into a deepening mint ground, framed by foliage ---------- */
.gx-site footer { border-top: 0 !important; margin-top: clamp(70px, 9vw, 140px);
    background: linear-gradient(180deg, var(--gx-footer) 0, #e7f4e9 55%, #d8eddb 100%) !important; }
.gx-site footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px);
    height: clamp(70px, 9vw, 140px); pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 70C180 20 360 10 560 52S940 120 1140 62 1380 30 1440 40V140H0Z' fill='%2339B54A' fill-opacity='.16'/%3E%3Cpath d='M0 96C220 56 420 50 640 84S1040 128 1240 92 1400 70 1440 76V140H0Z' fill='%2339B54A' fill-opacity='.26'/%3E%3Cpath d='M0 118C260 96 520 92 760 112S1160 136 1440 112V140H0Z' fill='%23eef7ef'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.gx-footer > .container { position: relative; z-index: 1; }
/* Corner foliage, clipped to the footer so it never adds scroll space below the page */
.gx-foot-deco { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.gx-foot-deco::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 65%;
    background: radial-gradient(45% 100% at 0 100%, rgba(57,181,74,.16), rgba(57,181,74,0) 70%),
                radial-gradient(45% 100% at 100% 100%, rgba(57,181,74,.16), rgba(57,181,74,0) 70%); }
/* Company panel: frosted glass, with a tuft growing from behind its top corner */
.gx-panel-wrap { position: relative; }
.gx-panel-wrap > div:not(.gx-cl) { position: relative; z-index: 1; }
.gx-site .gx-panel-wrap > div:first-child { background: rgba(255,255,255,.74) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
    box-shadow: 0 18px 40px -28px rgba(16,60,30,.35); }
.gx-tuft { z-index: 0; }

/* ---------- 6. Footprint map (homepage): dotted region, brand pins, dotted routes from the HQ ---------- */
.home-greenery #locations .max-w-5xl.fade-in { background: transparent !important; border-color: transparent !important;
    box-shadow: none !important; }
.fp-map { position: relative; width: 100%; }
.fp-dots { display: block; width: 100%; height: 100%; -webkit-user-drag: none; user-select: none;
    /* the region is cropped from a world map: dissolve the cut edges instead of ending on straight lines */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 90%, transparent),
                        linear-gradient(180deg, transparent, #000 16%, #000 88%, transparent);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, transparent, #000 14%, #000 90%, transparent),
                        linear-gradient(180deg, transparent, #000 16%, #000 88%, transparent);
            mask-composite: intersect; }
.fp-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fp-arc { fill: none; stroke: #2E9A3F; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0 8; opacity: .75;
    animation: fp-flow 1.4s linear infinite; }
@keyframes fp-flow { to { stroke-dashoffset: -8; } }
.fp-pin { position: absolute; width: 0; height: 0; z-index: 2; outline: none; }
.fp-pin::before { content: ""; position: absolute; left: -8px; top: -3px; width: 16px; height: 6px; border-radius: 50%;
    background: rgba(16,60,30,.22); }
.fp-drop { position: absolute; left: 0; top: -26px; width: 26px; height: 26px; border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, #ffd65a, #FDB813); transform-origin: 0 100%;
    transform: rotate(-45deg) scale(var(--s, 1)); box-shadow: -3px 3px 8px rgba(16,60,30,.28);
    transition: transform .45s var(--gx-ease); }
.fp-drop::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.is-hq .fp-drop { --s: 1.25; background: linear-gradient(135deg, #5fcb6e, #2E9A3F); }
.fp-pin:hover .fp-drop, .fp-pin:focus .fp-drop { --s: 1.35; }
.is-hq:hover .fp-drop, .is-hq:focus .fp-drop { --s: 1.5; }
.fp-pin:focus-visible .fp-drop { outline: 2px solid #1d235c; outline-offset: 2px; }
.fp-ring { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid rgba(57,181,74,.75); animation: fp-ring 2.4s ease-out infinite; }
@keyframes fp-ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.3); opacity: 0; } }
/* Labels sit beside the pin head, always shown */
.fp-label { position: absolute; left: 19px; top: -31px; display: block; white-space: nowrap;
    padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.9);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 20px -12px rgba(16,60,30,.55);
    font-size: 12.5px; font-weight: 700; line-height: 18px; color: #1d235c; pointer-events: none; }
.fp-label em { font-style: normal; color: #1F7A34; }
.is-hq .fp-label { left: 23px; top: -36px; }
.fp-left .fp-label { left: auto; right: 19px; }
.fp-pin:hover, .fp-pin:focus { z-index: 3; }
/* Entrance once the map scrolls into view (greenery.js adds .fp-ready, then .is-in) */
.fp-ready .fp-pin { opacity: 0; transform: translateY(-18px);
    transition: opacity .5s ease calc(.15s + var(--i) * .15s), transform .7s cubic-bezier(.34,1.56,.64,1) calc(.15s + var(--i) * .15s); }
.fp-ready.is-in .fp-pin { opacity: 1; transform: none; }
.fp-ready .fp-arc { opacity: 0; transition: opacity .9s ease calc(.7s + var(--i) * .2s); }
.fp-ready.is-in .fp-arc { opacity: .75; }

/* ---------- 7. Buttons and labels in the theme ---------- */
/* Primary: a deep leaf-green pill in place of the flat blue (white text stays above 4.5:1 across the gradient) */
.btn-leaf { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-decoration: none; border: 0;
    border-radius: 9999px !important;
    background: linear-gradient(135deg, #24873a 0%, #1c7331 52%, #155f28 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 22px -12px rgba(21,95,40,.75);
    transition: transform .3s var(--gx-ease), box-shadow .3s ease; }
.btn-leaf::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
    background: linear-gradient(135deg, #279140 0%, #1f7b35 52%, #17662b 100%); transition: opacity .3s ease; }
.btn-leaf:hover, .btn-leaf:focus-visible { transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 16px 30px -14px rgba(21,95,40,.8); }
.btn-leaf:hover::before, .btn-leaf:focus-visible::before { opacity: 1; }
.btn-leaf:active { transform: scale(.97); }
.btn-leaf .fa-arrow-right { transition: transform .35s var(--gx-ease); }
.btn-leaf:hover .fa-arrow-right, .btn-leaf:focus-visible .fa-arrow-right { transform: translateX(4px); }
/* Secondary: frosted pill with a green edge on hover (Sign In, Why Choose Us) */
.btn-ghost, .gx-site .btn-glass { border-radius: 9999px !important; background: rgba(255,255,255,.62); color: #1d235c;
    border: 1.5px solid rgba(31,122,52,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: border-color .25s ease, color .25s ease, background-color .25s ease; }
.btn-ghost:hover, .btn-ghost:focus-visible, .gx-site .btn-glass:hover, .gx-site .btn-glass:focus-visible {
    border-color: #39B54A; color: #1F7A34; background: rgba(57,181,74,.08); }
/* Round icon button (LinkedIn beside the contact call to action) */
.btn-round { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,.7); border: 1.5px solid rgba(31,122,52,.22); color: #1d235c;
    font-size: 17px; text-decoration: none;
    transition: border-color .25s ease, color .25s ease, background-color .25s ease, transform .3s var(--gx-ease); }
.btn-round:hover, .btn-round:focus-visible { border-color: #1F7A34; background: #1F7A34; color: #fff; transform: translateY(-1px); }
/* Home hero: the firm's label as a frosted badge with a green seal (no glow, no tinted fill) */
.hero-badge { display: inline-flex; align-items: center; gap: 12px; padding: 6px 20px 6px 6px; border-radius: 999px;
    background: rgba(255,255,255,.74); border: 1px solid rgba(57,181,74,.26);
    -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 32px -20px rgba(16,60,30,.5);
    font-size: 11.5px; font-weight: 700; letter-spacing: .16em; line-height: 1; text-transform: uppercase; color: #1d235c; }
.hero-badge-seal { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; font-size: 11px; color: #fff;
    background: linear-gradient(135deg, #39B54A, #1F7A34); box-shadow: 0 4px 10px -4px rgba(31,122,52,.7); }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) { .gx-hero-deco .gx-cl-in, .gx-foot-deco .gx-cl-in { --k: .78; } }
@media (max-width: 1023px) { .gx-sprig { opacity: .55; } }
@media (max-width: 767px) {
    .hero-badge { font-size: 9.5px; letter-spacing: .1em; gap: 9px; padding: 5px 14px 5px 5px; }
    .hero-badge-seal { width: 24px; height: 24px; font-size: 10px; }
    .gx-hero-deco .gx-cl-in { --k: .5; }
    .gx-hero-deco { opacity: .9; }
    .gx-sprig, .gx-tuft { display: none; }
    .gx-foot-deco .gx-cl-in { --k: .5; }
    .gx-foot-deco .gx-cl { opacity: .7; }
    .gx-blob { left: -2%; right: -2%; }
}
@media (max-width: 600px) {
    /* phones: let the map bleed past the card so South and South-East Asia fill the width (the cut edges fade) */
    .home-greenery #locations .max-w-5xl.fade-in { overflow: hidden; }
    .fp-map { width: 140%; margin-left: -20%; }
    .fp-dots { /* fade inside the part the card shows (about 11%-89% of the map's width) */
        -webkit-mask-image: linear-gradient(90deg, transparent 11%, #000 24%, #000 79%, transparent 89%),
                            linear-gradient(180deg, transparent, #000 16%, #000 88%, transparent);
                mask-image: linear-gradient(90deg, transparent 11%, #000 24%, #000 79%, transparent 89%),
                            linear-gradient(180deg, transparent, #000 16%, #000 88%, transparent); }
    .fp-drop { --s: .68; }
    .is-hq .fp-drop { --s: .85; }
    .fp-ring { left: -10px; top: -10px; width: 20px; height: 20px; }
    .fp-label { font-size: 11px; line-height: 16px; top: -25px; left: 13px; padding: 2px 8px; }
    .is-hq .fp-label { top: -29px; left: 16px; }
    .fp-left .fp-label { right: auto; left: 0; top: 7px; transform: translateX(-50%); } /* below its pin, clear of the HQ label */
}

/* ---------- Reduced motion: keep the greenery, stop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
    .gx-layer *, .gx-hero-deco *, .gx-sprig *, .gx-foot-deco *, .gx-tuft *, .gx-blob, .gx-blob *,
    .fp-arc, .fp-ring { animation: none !important; }
    .fp-ring { display: none; }
}
