/* =========================================================
   EGS About Page — consolidated stylesheet
   Replaces the <head> <style> block AND the mid-body <style>
   block from the team section. Move this file to
   assets/css/about.css and link it once in <head> instead.
   ========================================================= */

:root {
    --egs-green-dark: #0f2b1f;
    --egs-green: #4c9a4c;
    --egs-green-light: #7ec26a;
    --egs-ink: #1f3d2c;
    --egs-gray: #f7f9f7;
    --egs-border: #e6ece6;
    --egs-text-muted: #6b7a70;
    --egs-text-body: #55655c;
    --card-tint: #f1f7ea;
    --card-border: #dcecc6;
    --card-accent: #6ba045;
    --card-accent-dark: #47702e;
}

/* ---- Shared ---- */
.egs-eyebrow {
    color: var(--egs-green);
    font-weight: 700;
    /* font-size: 13px; */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
}

.egs-eyebrow--on-dark {
    color: var(--egs-green-light);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--egs-green);
    outline-offset: 2px;
}

/* =========================================================
   Page Header / Hero
   ========================================================= */
.egs-about-hero {
    position: relative;
    background: var(--egs-green-dark);
    overflow: hidden;
    padding: 76px 0 60px;
}

.egs-about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(126, 194, 106, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(76, 154, 76, 0.18) 0%, transparent 45%);
    pointer-events: none;
}

.egs-about-hero .container {
    position: relative;
    z-index: 1;
}

.egs-about-hero h1 {
    color: #fff !important;
    font-weight: 800;
    /* font-size: clamp(28px, 4vw, 44px); */
    margin-bottom: 10px;
}

.egs-about-hero p {
    color: rgba(255, 255, 255, 0.78);
    /* font-size: 15.5px; */
    max-width: 640px;
    margin-bottom: 0;
}

.egs-about-hero .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    /* font-size: 13px; */
    letter-spacing: .3px;
}

.egs-about-hero .breadcrumbs a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.egs-about-hero .breadcrumbs a:hover,
.egs-about-hero .breadcrumbs a:focus-visible {
    color: #fff;
}

.egs-about-hero .breadcrumbs li+li::before {
    content: '/';
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.35);
}

.egs-about-hero .breadcrumbs .current {
    color: var(--egs-green-light);
    font-weight: 600;
}

@media (max-width: 575px) {
    .egs-about-hero {
        padding: 56px 0 40px;
    }
}

/* =========================================================
   About Intro v2 (image collage + copy)
   ========================================================= */
.egs-about-intro-v2 {
    position: relative;
    background: #fff;
    overflow: hidden;
    padding: 100px 0;
}

/* faint engineering dot-grid across the whole section — a quiet nod
   to the structured, tabular world of ERP data */
.egs-about-intro-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 43, 31, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    pointer-events: none;
}

.egs-about-intro-v2 .container {
    position: relative;
    z-index: 1;
}

.egs-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 440px) 1fr;
    align-items: center;
    gap: 88px;
}

/* ---------------------------------------------------------
   Visual column
   --------------------------------------------------------- */
.egs-about-visual {
    position: relative;
    padding: 18px 26px 46px 18px;
}

.egs-about-grid-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 88%;
    height: 92%;
    background:
        linear-gradient(155deg, var(--egs-green-dark) 0%, #163e2c 100%);
    border-radius: 22px;
    z-index: 0;
}

.egs-about-grid-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(155deg, #000 0%, transparent 70%);
    mask-image: linear-gradient(155deg, #000 0%, transparent 70%);
}

.egs-about-frame {
    position: relative;
    z-index: 1;
    margin-left: 18px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(15, 43, 31, 0.35);
    border: 6px solid #fff;
}

.egs-about-frame img {
    width: 100%;
    display: block;
}

/* certification stamp — dashed ring, sits on the frame's top edge */
.egs-about-seal {
    position: absolute;
    z-index: 2;
    top: -6px;
    right: 8px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 16px 34px rgba(15, 43, 31, 0.22);
}

.egs-about-seal::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 1.5px dashed rgba(76, 154, 76, 0.45);
    transition: transform 8s linear;
}

.egs-about-visual:hover .egs-about-seal::before {
    transform: rotate(180deg);
}

.egs-about-seal i {
    position: relative;
    color: var(--egs-green);
    /* font-size: 20px; */
    margin-bottom: 3px;
}

.egs-about-lead strong {
    color: var(--egs-green-dark);
    font-weight: 700;
}

.egs-about-lead+.egs-about-lead {
    margin-top: -14px;
}

.egs-about-statement {
    position: relative;
    color: var(--egs-ink);
    /* font-size: 17px; */
    font-weight: 700;
    line-height: 1.6;
    padding: 4px 0 4px 20px;
    margin: 8px 0 32px;
    border-left: 3px solid var(--egs-green);
}

.egs-about-seal span {
    position: relative;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1.3;
    color: var(--egs-ink);
    text-transform: uppercase;
}

.egs-about-intro-text {
    /* max-width: 760px; */
    margin: 0 0 48px;
}

/* ledger card — styled like a compact financial statement line,
   tabular figures, a rule between entries */
.egs-about-ledger {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    display: flex;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 43, 31, 0.18);
    overflow: hidden;
}

.egs-about-ledger-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 24px;
    min-width: 128px;
}

.egs-about-ledger-item+.egs-about-ledger-item {
    border-left: 1px solid var(--egs-border, #e6ece6);
}

.egs-about-ledger-num {
    font-variant-numeric: tabular-nums;
    /* font-size: 24px; */
    font-weight: 800;
    color: var(--egs-green-dark);
    line-height: 1;
}

.egs-about-ledger-label {
    /* font-size: 12px; */
    font-weight: 400;
    color: var(--egs-text-muted, #6b7a70);
    line-height: 1.25;
}

/* ---------------------------------------------------------
   Copy column
   --------------------------------------------------------- */
/* .egs-about-copy {
    max-width: 560px;
} */

.egs-about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--egs-green-dark);
    font-weight: 700;
    /* font-size: 12.5px; */
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.egs-about-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--egs-green);
    border-radius: 2px;
}

.egs-about-heading {
    /* font-size: clamp(28px, 3.2vw, 40px); */
    font-weight: 800;
    color: var(--egs-ink);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.egs-about-heading span {
    position: relative;
    color: var(--egs-green-dark);
    white-space: nowrap;
}

.egs-about-heading span::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 3px;
    height: 10px;
    background: rgba(126, 194, 106, 0.28);
    z-index: -1;
    border-radius: 2px;
}

.egs-about-lead {
    color: var(--egs-text-body, #55655c);
    /* font-size: 16px; */
    line-height: 1.8;
    margin-bottom: 32px;
}

.egs-about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
}

.egs-about-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
}

.egs-about-list li+li {
    border-top: 1px solid var(--egs-border, #e6ece6);
}

.egs-about-list-index {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--egs-gray, #f7f9f7);
    border: 1px solid var(--egs-border, #e6ece6);
    color: var(--egs-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 13px; */
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.egs-about-list li:hover .egs-about-list-index {
    background: var(--egs-green-dark);
    border-color: var(--egs-green-dark);
    color: #fff;
}

.egs-about-list h5 {
    /* font-size: 16px; */
    font-weight: 700;
    color: var(--egs-ink);
    margin-bottom: 4px;
}

.egs-about-list p {
    /* font-size: 13.5px; */
    color: var(--egs-text-muted, #6b7a70);
    line-height: 1.6;
    margin: 0;
}

.egs-about-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--egs-green-dark);
    color: #fff;
    font-weight: 700;
    /* font-size: 14.5px; */
    padding: 15px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: gap .25s ease, background .25s ease, transform .25s ease;
}

.egs-about-cta i {
    transition: transform .25s ease;
}

.egs-about-cta:hover,
.egs-about-cta:focus-visible {
    gap: 14px;
    background: var(--egs-green);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1199px) {
    .egs-about-grid {
        gap: 56px;
    }
}

@media (max-width: 991px) {
    .egs-about-intro-v2 {
        padding: 76px 0;
    }

    .egs-about-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .egs-about-visual {
        max-width: 440px;
        margin: 0 auto;
        padding: 16px 22px 42px 16px;
    }

    .egs-about-copy {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .egs-about-intro-v2 {
        padding: 56px 0;
    }

    .egs-about-visual {
        padding: 12px 14px 36px 10px;
    }

    .egs-about-frame {
        margin-left: 10px;
        border-width: 4px;
    }

    .egs-about-seal {
        width: 80px;
        height: 80px;
        top: -4px;
        right: 0;
    }

    .egs-about-seal i {
        font-size: 16px;
    }

    .egs-about-seal span {
        font-size: 8px;
    }

    .egs-about-ledger-item {
        padding: 12px 14px;
        min-width: 96px;
    }

    .egs-about-ledger-num {
        font-size: 19px;
    }

    .egs-about-ledger-label {
        font-size: 9.5px;
    }

    .egs-about-heading {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .egs-about-lead {
        /* font-size: 14.5px; */
        margin-bottom: 24px;
    }

    .egs-about-list li {
        gap: 14px;
        padding: 16px 0;
    }

    .egs-about-list-index {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .egs-about-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .egs-about-seal::before,
    .egs-about-cta,
    .egs-about-cta i,
    .egs-about-list-index {
        transition: none !important;
    }
}

.egs-hero-v2 {
    position: relative;
    /* height: 88vh;
    min-height: 560px; */
    max-height: 820px;
    overflow: hidden;
}

.egs-slider,
.egs-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.egs-track {
    display: flex;
}

.egs-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
}

.egs-slide-media {
    position: absolute;
    inset: 0;
}

.egs-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* left-to-right + bottom gradient — keeps text readable over any
   photo without flattening the image with a solid tint */
.egs-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg,
            rgba(9, 26, 18, 0.94) 0%,
            rgba(9, 26, 18, 0.82) 32%,
            rgba(9, 26, 18, 0.42) 62%,
            rgba(9, 26, 18, 0.12) 100%),
        linear-gradient(0deg,
            rgba(9, 26, 18, 0.35) 0%,
            transparent 30%);
}

.egs-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 clamp(24px, 6vw, 96px);
}

.egs-slide-inner {
    max-width: 620px;
    animation: egsHeroRise .8s cubic-bezier(.16, 1, .3, 1) both;
}

.egs-slide-inner h2 {
    color: #fff;
    font-weight: 800;
    /* font-size: clamp(30px, 4.4vw, 52px); */
    line-height: 1.16;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.egs-slide-inner h2 span {
    color: var(--egs-green-light, #7ec26a);
}

.egs-slide-inner p {
    color: rgba(255, 255, 255, 0.82);
    /* font-size: clamp(15px, 1.4vw, 17.5px); */
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 32px;
}

.egs-slide-actions {
    display: flex;
    gap: 16px;
}

.egs-slide-actions .btn-get-started {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--egs-green, #4c9a4c);
    color: #fff;
    font-weight: 700;
    /* font-size: 15px; */
    padding: 15px 30px;
    /* border-radius: 10px; */
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(76, 154, 76, 0.35);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.egs-slide-actions .btn-get-started::after {
    content: "\2192";
    /* → */
    transition: transform .25s ease;
}

.egs-slide-actions .btn-get-started:hover,
.egs-slide-actions .btn-get-started:focus-visible {
    background: var(--egs-green-dark, #0f2b1f);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 43, 31, 0.4);
}

.egs-slide-actions .btn-get-started:hover::after {
    transform: translateX(3px);
}

@keyframes egsHeroRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
/* @media (max-width: 991px) {
    .egs-hero-v2 {
        height: 76vh;
        min-height: 500px;
    }
} */
/* 
@media (max-width: 575px) {
    .egs-hero-v2 {
        height: auto;
        min-height: 100vh;
    } */

.egs-slide-overlay {
    background:
        linear-gradient(180deg,
            rgba(9, 26, 18, 0.55) 0%,
            rgba(9, 26, 18, 0.88) 55%,
            rgba(9, 26, 18, 0.96) 100%);
}

.egs-slide-content {
    align-items: flex-end;
    padding: 0 22px 56px;
}

.egs-slide-inner {
    max-width: 100%;
}

.egs-slide-inner p {
    max-width: 100%;
}

.egs-slide-actions {
    width: 100%;
}

.egs-slide-actions .btn-get-started {
    /* width: 100%; */
    justify-content: center;
}


@media (prefers-reduced-motion: reduce) {
    .egs-slide-inner {
        animation: none;
    }

    .egs-slide-actions .btn-get-started,
    .egs-slide-actions .btn-get-started::after {
        transition: none !important;
    }
}

/* =========================================================
   Pillars (Vision / Expertise) — v2 editorial layout
   ========================================================= */
.egs-pillars {
    background: var(--egs-gray);
    overflow: hidden;
}

.egs-pillars-title {
    /* font-size: 30px; */
    font-weight: 800;
    color: var(--egs-ink);
}

.egs-pillars-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.egs-pillar-v2 {
    position: relative;
    flex: 1;
    background: #fff;
    border: 1px solid var(--egs-border);
    border-radius: 18px;
    padding: 40px 34px 34px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.egs-pillar-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 43, 31, 0.12);
}

.egs-pillar-v2--dark {
    background: var(--egs-green-dark);
    border-color: var(--egs-green-dark);
}

.egs-pillar-ghost {
    position: absolute;
    top: 0px;
    right: 4px;
    font-size: 110px;
    font-weight: 800;
    line-height: 1;
    color: var(--egs-ink);
    opacity: 0.05;
    pointer-events: none;
}

.egs-pillar-v2--dark .egs-pillar-ghost {
    color: #fff;
    opacity: 0.06;
}

.egs-pillar-badge {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--egs-green-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 22px rgba(15, 43, 31, 0.22);
}

.egs-pillar-v2--dark .egs-pillar-badge {
    background: var(--egs-green-light);
    color: var(--egs-green-dark);
}

.egs-pillar-tag {
    position: relative;
    z-index: 1;
    display: inline-block;
    /* font-size: 11.5px; */
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--egs-green);
    margin-bottom: 10px;
}

.egs-pillar-v2--dark .egs-pillar-tag {
    color: var(--egs-green-light);
}

.egs-pillar-v2 h4 {
    position: relative;
    z-index: 1;
    /* font-size: 21px; */
    font-weight: 700;
    color: var(--egs-ink);
    margin-bottom: 12px;
}

.egs-pillar-v2--dark h4 {
    color: #fff;
}

.egs-pillar-v2 p {
    position: relative;
    z-index: 1;
    color: var(--egs-text-muted);
    /* font-size: 14.5px; */
    line-height: 1.8;
    margin: 0;
}

.egs-pillar-v2--dark p {
    color: rgba(255, 255, 255, 0.72);
}

.egs-pillars-link {
    flex-shrink: 0;
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    color: var(--egs-green);
    font-size: 22px;
}

@media (max-width: 991px) {
    .egs-pillars-wrap {
        flex-direction: column;
        gap: 18px;
    }

    .egs-pillars-link {
        width: auto;
        height: 32px;
        transform: rotate(90deg);
    }
}

@media (max-width: 575px) {
    .egs-pillars-title {
        font-size: 24px;
    }

    .egs-pillar-v2 {
        padding: 30px 24px 26px;
    }

    .egs-pillar-ghost {
        font-size: 84px;
    }

    .egs-pillar-badge {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

.egs-why-cta-copy h5 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}

.egs-why-cta-copy p {
    color: rgba(255, 255, 255, 0.72);
    /* font-size: 14px; */
    margin: 0;
}

.egs-why-cta-btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-left: auto;

    background: var(--egs-green-light);
    color: var(--egs-green-dark);
    font-weight: 700;
    /* font-size: 14.5px; */
    padding: 14px 26px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;

    transition: gap .25s ease, background .25s ease, transform .25s ease;
}

.egs-why-cta-btn i {
    transition: transform .25s ease;
}

.egs-why-cta-btn:hover,
.egs-why-cta-btn:focus-visible {
    background: #fff;
    color: var(--egs-green-dark);
    transform: translateY(-2px);
}

.egs-why-cta-btn:hover i {
    transform: translateX(3px);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .egs-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .egs-why-cta {
        flex-wrap: wrap;
    }
}

@media (max-width: 575px) {
    .egs-why-us {
        padding: 56px 0;
    }

    .egs-why-us-head {
        margin-bottom: 28px;
    }

    .egs-why-grid {
        grid-template-columns: 1fr;
    }

    .egs-why-card {
        padding: 24px 22px;
    }

    .egs-why-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 22px;
    }

    .egs-why-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .egs-why-cta-btn,
    .egs-why-cta-btn i {
        transition: none !important;
    }
}

.egs-why-us {
    position: relative;
    background: var(--egs-gray, #f7f9f7);
    padding: 100px 0;
    overflow: hidden;
}

.egs-why-us-head {
    max-width: 760px;
    margin: 0 0 56px;
}

.egs-why-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--egs-green-dark);
    font-weight: 700;
    /* font-size: 12.5px; */
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.egs-why-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--egs-green);
    border-radius: 2px;
}

.egs-why-us-head h2 {
    /* font-size: clamp(26px, 3vw, 36px); */
    font-weight: 800;
    color: var(--egs-ink);
    line-height: 1.28;
    letter-spacing: -0.4px;
    margin-bottom: 16px;
}

.egs-why-us-head p {
    color: var(--egs-text-body, #55655c);
    /* font-size: 15.5px; */
    line-height: 1.8;
    margin: 0;
}

/* ---------------------------------------------------------
   Card grid — four "panel" cards, each tagged with a thin
   top accent bar that cycles through the green family, like
   status strips on a dashboard.
   --------------------------------------------------------- */
.egs-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.egs-why-card {
    --card-accent: var(--egs-green);
    position: relative;
    background: #fff;
    border: 1px solid var(--egs-border, #e6ece6);
    border-radius: 16px;
    /* padding: 32px 30px 28px; */
    padding: 12px 15px 5px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.egs-why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent);
    transform: scaleX(0.18);
    transform-origin: left;
    transition: transform .35s ease;
}

.egs-why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(15, 43, 31, 0.12);
    border-color: transparent;
}

.egs-why-card:hover::before {
    transform: scaleX(1);
}

/* cycle the accent per card — no markup changes needed */
/* .egs-why-grid .egs-why-card:nth-child(4n+1) {
    --card-accent: #4c9a4c;
} */

.egs-why-grid .egs-why-card:nth-child(4n+2) {
    --card-accent: #2f6b46;
}

/* .egs-why-grid .egs-why-card:nth-child(4n+3) {
    --card-accent: #7a8a3c;
} */

/* .egs-why-grid .egs-why-card:nth-child(4n+4) {
    --card-accent: #6ba045;
} */

.egs-why-tag {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, monospace;
    /* font-size: 10.5px; */
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--card-accent);
    background: color-mix(in srgb, var(--card-accent) 12%, #fff);
    border-radius: 20px;
    padding: 4px 11px;
    margin-bottom: 18px;
}

.egs-why-card .egs-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--card-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 21px; */
    margin-bottom: 18px;
}

.egs-why-card h5 {
    /* font-size: 17px; */
    font-weight: 700;
    color: var(--egs-ink);
    line-height: 1.4;
    margin-bottom: 10px;
}

.egs-why-card p {
    color: var(--egs-text-muted, #6b7a70);
    /* font-size: 14px; */
    line-height: 1.75;
    margin: 0;
}

/* ---------------------------------------------------------
   Managed services banner
   --------------------------------------------------------- */
.egs-managed-note {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    background: var(--egs-green-dark);
    border-radius: 18px;
    padding: 34px 36px;
    overflow: hidden;
}

.egs-managed-note::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 25%, rgba(126, 194, 106, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(76, 154, 76, 0.16) 0%, transparent 45%);
    pointer-events: none;
}

.egs-managed-icon {
    position: relative;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 13px;
    background: var(--egs-green-light);
    color: var(--egs-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.egs-managed-note h5 {
    position: relative;
    color: #fff;
    /* font-size: 17px; */
    font-weight: 700;
    margin-bottom: 8px;
}

.egs-managed-note p {
    position: relative;
    color: rgba(255, 255, 255, 0.75);
    /* font-size: 14.5px; */
    line-height: 1.8;
    margin: 0;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 767px) {
    .egs-why-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .egs-why-us {
        padding: 64px 0;
    }

    .egs-why-us-head {
        margin-bottom: 40px;
    }

    .egs-why-card {
        padding: 26px 22px 22px;
    }

    .egs-why-card .egs-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-bottom: 14px;
    }

    .egs-managed-note {
        flex-direction: column;
        padding: 26px 22px;
        gap: 14px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .egs-why-card,
    .egs-why-card::before {
        transition: none !important;
    }
}

/* =========================================================
   Stats
   ========================================================= */
.egs-about-stats {
    position: relative;
    background: var(--egs-green-dark);
    padding: 45px 0;
    overflow: hidden;
}

.egs-about-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(126, 194, 106, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(76, 154, 76, 0.14) 0%, transparent 45%);
    pointer-events: none;
}

.egs-about-stats .container {
    position: relative;
    z-index: 1;
}

.egs-stats-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 90px;
    flex-wrap: wrap;
}

/* connecting glow line threading behind the rings */
.egs-stats-row {
    position: relative;
}

.egs-stats-row::before {
    content: "";
    position: absolute;
    top: 70px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(126, 194, 106, 0.55) 15%,
            rgba(126, 194, 106, 0.55) 85%,
            transparent 100%);
    z-index: 0;
}

.egs-about-stat {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    width: 180px;
}

/* ---- Ring ---- */
.egs-stat-ring-outer {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 18px;
    border-radius: 50%;
    padding: 5px;
    background: conic-gradient(from -90deg,
            var(--egs-green-light) 0deg,
            var(--egs-green) 200deg,
            rgba(255, 255, 255, 0.08) 201deg 360deg);
    transition: filter .4s ease;
}

.egs-about-stat:hover .egs-stat-ring-outer {
    filter: drop-shadow(0 0 14px rgba(126, 194, 106, 0.55));
}

.egs-stat-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--egs-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* icon badge overlapping the bottom of the ring */
.egs-stat-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--egs-green-light);
    color: var(--egs-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 15px; */
    border: 3px solid var(--egs-green-dark);
}

/* ---- Number ---- */
.egs-about-stat .num-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.egs-about-stat .num-wrap span:last-child {
    color: var(--egs-green-light);
    font-size: 18px;
}

/* ---- Label ---- */
.egs-about-stat p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.68);
    /* font-size: 12.5px; */
    letter-spacing: .8px;
    text-transform: uppercase;
    font-weight: 700;
}

.egs-stat-divider {
    border-left: none !important;
}

/* ---- Tablet ---- */
@media (max-width: 991px) {
    .egs-stats-row {
        gap: 50px;
    }

    .egs-stats-row::before {
        left: 8%;
        right: 8%;
    }
}

/* ---- Mobile: stack vertically, line becomes vertical ---- */
@media (max-width: 575px) {
    .egs-about-stats {
        padding: 52px 0;
    }

    .egs-stats-row {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }

    .egs-stats-row::before {
        top: 12px;
        bottom: 12px;
        left: 50%;
        right: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg,
                transparent 0%,
                rgba(126, 194, 106, 0.55) 15%,
                rgba(126, 194, 106, 0.55) 85%,
                transparent 100%);
    }

    .egs-stat-ring-outer {
        width: 112px;
        height: 112px;
    }

    .egs-about-stat .num-wrap {
        font-size: 24px;
    }
}

/* ---- Team section: photo-card gallery ---- */
.egs-team-heading {
    /* font-size: 30px; */
    font-weight: 800;
    color: var(--egs-ink, #1f3d2c);
    margin: 4px 0 16px;
}

.egs-team-intro {
    color: #55655c;
    /* font-size: 15px; */
    line-height: 1.75;
    margin-bottom: 22px;
}

.egs-team-row {
    display: flex;
    gap: 14px;
    height: 460px;
    width: 100%;
}

.egs-team-card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    transition: flex 0.45s ease;
    background: #dfe6e0;
}

.egs-team-card:first-child {
    flex: 2.3 1 0;
}

.egs-team-row:hover .egs-team-card {
    flex: 1 1 0;
}

.egs-team-row .egs-team-card:hover {
    flex: 2.3 1 0;
}

.egs-team-card-img {
    position: absolute;
    inset: 0;
    /* width: 100%; */
    height: 100%;
    overflow: hidden;
}

.egs-team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-position: top center; */
    display: block;
}

.egs-team-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(230, 240, 228, 0.96);
    padding: 18px 20px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.egs-team-card:first-child .egs-team-caption {
    opacity: 1;
    transform: translateY(0);
}

.egs-team-row:hover .egs-team-card .egs-team-caption {
    opacity: 0;
    transform: translateY(8px);
}

.egs-team-row .egs-team-card:hover .egs-team-caption {
    opacity: 1;
    transform: translateY(0);
}

.egs-team-caption-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.egs-team-caption h4 {
    /* font-size: 16px; */
    font-weight: 700;
    color: var(--egs-ink, #1f3d2c);
    margin: 0 0 2px;
}

.egs-team-caption .role {
    display: block;
    /* font-size: 12.5px; */
    color: #55655c;
}

.egs-team-caption p {
    /* font-size: 12.5px; */
    line-height: 1.55;
    color: #55655c;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.egs-team-social {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--egs-green-dark, #0f2b1f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .egs-team-row {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .egs-team-row {
        height: 320px;
    }

    .egs-team-card {
        flex: 1 !important;
    }

    .egs-team-caption {
        display: none;
    }

    .egs-team-card-img {
        cursor: pointer;
    }
}

/* ---- Mobile tap modal ---- */
.egs-team-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 43, 31, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.egs-team-modal-overlay.active {
    display: flex;
}

.egs-team-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 68px 24px 28px;
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.egs-team-modal-img {
    position: absolute;
    top: -46px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 24px rgba(15, 43, 31, 0.22);
}

.egs-team-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--egs-gray, #f7f9f7);
    color: var(--egs-ink, #1f3d2c);
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 16px; */
}

.egs-team-modal-name {
    /* font-size: 17px; */
    font-weight: 700;
    color: var(--egs-ink, #1f3d2c);
    margin: 0 0 4px;
}

.egs-team-modal-role {
    display: block;
    /* font-size: 12.5px; */
    color: var(--egs-green, #4c9a4c);
    font-weight: 600;
    margin-bottom: 14px;
}

.egs-team-modal-text {
    /* font-size: 13.5px; */
    line-height: 1.65;
    color: #55655c;
    margin: 0;
}

/* # Modern Scroll Top Button --------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
    transition: all .3s ease;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    z-index: 9999;
}

.scroll-top i {
    /* font-size: 26px; */
    line-height: 1;
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 16px 35px rgba(76, 175, 80, .35);
}

/* Mobile */
@media (max-width:768px) {
    .scroll-top {
        width: 46px;
        height: 46px;
        right: 18px;
        bottom: 18px;
    }

    .scroll-top i {
        font-size: 22px;
    }
}

.scroll-top.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, .5);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}


/* =========================================================
   WHY EGS — Consistent Icon & Border Colors
   ========================================================= */

.egs-why-card {
    --card-accent: var(--egs-green-dark) !important;

    /* border-color: var(--egs-green) !important; */
}

.egs-why-card::before {
    background: var(--egs-green-dark) !important;
}

.egs-why-card .egs-icon {
    background: var(--egs-green-dark) !important;
    color: #fff !important;
}

.egs-why-tag {
    color: var(--egs-green-dark) !important;
    background: rgba(76, 154, 76, 0.10) !important;
    border: 1px solid rgba(76, 154, 76, 0.22);
}

/* Keep the same green on hover */
.egs-why-card:hover {
    border-color: var(--egs-green) !important;
}


/* new section why egs css */
/* ---- CTA strip ---- */
.egs-whyegs-cta {
    position: relative;
    overflow: hidden;
    background: #182720;
    border-radius: 24px;
    padding: 56px 48px;
    margin: 0 0 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.egs-whyegs-cta::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(76, 154, 76, 0.35), transparent 70%);
    pointer-events: none;
}

.egs-whyegs-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 70%);
    pointer-events: none;
}

.egs-whyegs-cta-copy {
    position: relative;
    z-index: 1;
    /* max-width: 620px; */
}

.egs-whyegs-cta-copy span {
    display: inline-block;
    /* font-size: 12px; */
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--egs-green, #4c9a4c);
    margin-bottom: 14px;
}

.egs-whyegs-cta-copy h2 {
    /* font-size: clamp(24px, 3vw, 34px); */
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 14px;
}

.egs-whyegs-cta-copy p {
    /* font-size: 15px; */
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.egs-whyegs-cta-btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--egs-green, #4c9a4c);
    color: #fff;
    font-weight: 700;
    /* font-size: 14.5px; */
    padding: 16px 30px;
    border-radius: 12px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.egs-whyegs-cta-btn::after {
    content: "\2192";
    transition: transform .25s ease;
}

.egs-whyegs-cta-btn:hover {
    color: #fff;
    background: #3f8a3f;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 43, 31, 0.35);
}

.egs-whyegs-cta-btn:hover::after {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .egs-whyegs-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 26px;
        border-radius: 18px;
        margin-bottom: 60px;
    }

    .egs-whyegs-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---- Why EGS section ---- */
.egs-whyegs {
    padding: 0 0 90px;
}

.egs-whyegs-head {
    /* max-width: 760px; */
    margin: 0 0 48px;
}

.egs-whyegs-head span.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* font-size: 12px; */
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--egs-green-dark, #0f2b1f);
    margin-bottom: 14px;
}

.egs-whyegs-head span.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--egs-green, #4c9a4c);
}

.egs-whyegs-head h2 {
    /* font-size: clamp(26px, 3.2vw, 38px); */
    font-weight: 700;
    line-height: 1.22;
    color: var(--egs-ink, #14231b);
    margin: 0 0 22px;
}

.egs-whyegs-head p {
    /* font-size: 15px; */
    line-height: 1.8;
    color: var(--egs-text-muted, #6b7a70);
    margin: 0 0 14px;
}

.egs-whyegs-head p:last-child {
    margin-bottom: 0;
    /* color: var(--egs-ink, #14231b); */
    /* font-weight: 500; */
}

.egs-whyegs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--egs-border, #e7ebe6);
    border: 1px solid var(--egs-border, #e7ebe6);
    border-radius: 20px;
    overflow: hidden;
}

.egs-whyegs-card {
    position: relative;
    background: #fff;
    padding: 34px 30px 30px;
    transition: background .25s ease;
}

.egs-whyegs-card:hover {
    background: #f8faf7;
}

.egs-whyegs-card .num {
    display: block;
    font-family: 'Poppins', sans-serif;
    /* font-size: 40px; */
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.3px rgba(15, 43, 31, 0.18);
    margin-bottom: 18px;
}

.egs-whyegs-card h3 {
    /* font-size: 16px; */
    font-weight: 700;
    line-height: 1.35;
    color: var(--egs-ink, #14231b);
    margin: 0 0 10px;
}

.egs-whyegs-card p {
    /* font-size: 13.5px; */
    line-height: 1.7;
    color: var(--egs-text-muted, #6b7a70);
    margin: 0;
}

.egs-whyegs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--egs-green, #4c9a4c);
    transition: width .3s ease;
}

.egs-whyegs-card:hover::before {
    width: 100%;
}

@media (max-width: 991px) {
    .egs-whyegs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .egs-whyegs-grid {
        grid-template-columns: 1fr;
    }

    .egs-whyegs-card {
        padding: 28px 24px 26px;
    }
}