/* ==========================================================================
   eGateweb — Home page (front-page.php)
   --------------------------------------------------------------------------
   Section order matches the template:
     1 Hero  2 USP strip  3 Diensten  4 Zo werkt het  5 Over Sterren
     6 Werkgebied + Reviews  7 FAQ  8 CTA  9 Trust bar

   Depends on css/eg-base.css for primitives and on the --eg-* color tokens.
   No hardcoded colors — see inc/eg-colors.php.
   ========================================================================== */

/* ==========================================================================
   1. HERO
   ========================================================================== */
/* Dark full-bleed hero: photo background, dark wash, content left, form right. */
.eg-hero--split {
    position: relative;
    padding-block: 66px 90px;
    background: var(--eg-dark);
    overflow: hidden;
}

.eg-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Wash for legibility — darkest on the left where the copy sits. */
.eg-hero--split::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
                rgba(14, 16, 36, .93) 0%,
                rgba(14, 16, 36, .82) 44%,
                rgba(14, 16, 36, .5) 100%);
    z-index: 1;
}

.eg-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 54px;
    align-items: center;
}

/* ---- Left column ---- */
.eg-hero__flash {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: var(--eg-radius-pill);
    background: rgba(var(--eg-brand-rgb), .30);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.eg-hero--split h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.08;
    color: #fff;
}
.eg-hero--split h1 .eg-hl { color: var(--eg-brand-light); }

.eg-hero__sub {
    margin-top: 18px;
    font-size: 1.08rem;
    color: rgba(var(--eg-dark-ink-rgb), .82);
    max-width: 44ch;
}

.eg-hero__rating {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.eg-hero__rating-label { font-weight: 800; color: #fff; }
.eg-hero__rating-text {
    color: rgba(var(--eg-dark-ink-rgb), .75);
    font-weight: 600;
    font-size: .9rem;
}

.eg-hero__list { margin-top: 24px; }
.eg-hero--split .eg-hero__list li { color: rgba(var(--eg-dark-ink-rgb), .92); }
.eg-hero--split .eg-hero__list svg { color: var(--eg-brand-light); }

/* ---- Right column: mini quote form ---- */
.eg-mini {
    background: var(--eg-card);
    border-radius: var(--eg-radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
    padding: 26px;
}

.eg-mini__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--eg-brand);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.eg-mini__title {
    margin: 10px 0 6px;
    font-size: 1.28rem;
    line-height: 1.25;
    color: var(--eg-heading);
}
.eg-mini__title .eg-hl { color: var(--eg-brand); }

.eg-mini__note {
    margin: 0 0 16px;
    font-size: .86rem;
    color: var(--eg-muted);
}

.eg-mini__field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius);
    margin-bottom: 12px;
    cursor: text;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.eg-mini__field:focus-within {
    border-color: var(--eg-brand);
    box-shadow: 0 0 0 3px rgba(var(--eg-brand-rgb), .14);
}
.eg-mini__ic { color: var(--eg-brand); flex: 0 0 auto; display: inline-flex; }
.eg-mini__col { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.eg-mini__lbl { font-size: .78rem; font-weight: 700; color: var(--eg-heading); }
.eg-mini__field input {
    width: 100%;
    border: 0;
    padding: 2px 0 0;
    font-size: .92rem;
    font-family: inherit;
    color: var(--eg-heading);
    background: transparent;
}
.eg-mini__field input:focus { outline: none; }
.eg-mini__field input::placeholder { color: var(--eg-muted); }

.eg-mini__field:has(input.is-invalid) {
    border-color: var(--eg-danger);
    background: var(--eg-danger-soft);
}
.eg-mini__err {
    display: block;
    margin: -8px 0 12px;
    font-size: .78rem;
    color: var(--eg-danger);
}
.eg-mini__err[hidden] { display: none; }

.eg-mini__btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.eg-mini__privacy {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--eg-muted);
}
.eg-mini__privacy svg { flex: 0 0 auto; }

/* ==========================================================================
   2. USP STRIP
   ========================================================================== */
.eg-usp {
    position: relative;
    z-index: 2;
    margin-top: -44px;
    padding-bottom: 20px;
}

.eg-usp__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--eg-card);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius-lg);
    box-shadow: var(--eg-shadow);
    overflow: hidden;
}

.eg-usp__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 24px;
    border-right: 1px solid var(--eg-border);
}

.eg-usp__item:last-child { border-right: 0; }

.eg-usp__item h3 {
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.3;
}

.eg-usp__item p {
    margin-top: 4px;
    font-size: .84rem;
    color: var(--eg-muted);
    line-height: 1.45;
}

/* ==========================================================================
   3. DIENSTEN
   ========================================================================== */
.eg-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--eg-gap);
}

.eg-service {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 0;
    position: relative;
    overflow: hidden;
}

/* Brand wash that slides up on hover */
.eg-service::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--eg-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--eg-ease);
}

.eg-service:hover {
    transform: translateY(-6px);
    box-shadow: var(--eg-shadow);
    border-color: rgba(var(--eg-brand-rgb), .35);
}

.eg-service:hover::after { transform: scaleX(1); }

.eg-service:hover .eg-chip {
    background: var(--eg-brand);
    color: var(--eg-brand-ink);
}

.eg-service .eg-chip { transition: all .35s var(--eg-ease); }

.eg-service__title {
    margin-top: 20px;
    font-size: 1.08rem;
    font-weight: 800;
}

.eg-service__text {
    margin-top: 10px;
    font-size: .9rem;
    color: var(--eg-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.eg-service__more {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--eg-brand);
}

.eg-service__more .eg-icon { transition: transform .3s var(--eg-ease); }
.eg-service:hover .eg-service__more .eg-icon { transform: translateX(4px); }

.eg-services__foot {
    margin-top: 44px;
    text-align: center;
}

/* ==========================================================================
   4. ZO WERKT HET
   ========================================================================== */
.eg-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

/* 4th step enabled: four across on desktop, 2×2 on tablet. */
.eg-steps__grid[data-count="4"] {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
@media (max-width: 1000px) {
    .eg-steps__grid[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
    .eg-steps__grid[data-count="4"]::before { display: none; }
}

/* Dashed connector between the step cards */
.eg-steps__grid::before {
    content: '';
    position: absolute;
    top: 46px;
    left: 16%;
    right: 16%;
    border-top: 2px dashed var(--eg-border);
    z-index: 0;
}

.eg-step {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--eg-card);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius);
    padding: 34px 26px 30px;
    transition: transform .3s var(--eg-ease), box-shadow .3s var(--eg-ease);
}

.eg-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--eg-shadow);
}

.eg-step__num {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--eg-brand);
    color: var(--eg-brand-ink);
    font-size: .9rem;
    font-weight: 800;
    box-shadow: 0 0 0 6px var(--eg-bg-alt);
}

.eg-step .eg-chip { margin-bottom: 18px; }

.eg-step h3 { font-size: 1.05rem; }

.eg-step p {
    margin-top: 10px;
    font-size: .9rem;
    color: var(--eg-muted);
}

/* ==========================================================================
   5. OVER STERREN
   ========================================================================== */
.eg-about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.eg-about h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
}

.eg-about__text {
    margin-top: 18px;
    font-size: 1.02rem;
    color: var(--eg-muted);
}

.eg-about__list { margin-top: 26px; }

.eg-about__actions { margin-top: 32px; }

.eg-about__media { position: relative; }

.eg-about__img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: var(--eg-radius-lg);
    box-shadow: var(--eg-shadow-lg);
}

.eg-about__stat {
    position: absolute;
    right: -24px;
    bottom: -24px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: var(--eg-radius);
    background: var(--eg-card);
    border: 1px solid var(--eg-border);
    box-shadow: var(--eg-shadow-lg);
}

.eg-about__stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--eg-heading);
    line-height: 1;
}

.eg-about__stat-label {
    margin-top: 5px;
    font-size: .82rem;
    color: var(--eg-muted);
}

/* ==========================================================================
   6. WERKGEBIED + REVIEWS
   ========================================================================== */
/* Two columns: coverage text on the left, the interactive map on the right. */
.eg-area__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--eg-gap);
    align-items: center;
}

.eg-area__content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }

.eg-area__content > p {
    margin-top: 14px;
    color: var(--eg-muted);
    max-width: 46ch;
}

.eg-area__list { margin-top: 24px; }

/* ---- Interactive map ---- */
/* NOTE: the map graphic's colors are baked into the file — unlike the rest of
   the page it does NOT follow --eg-* tokens. On a rebrand, re-export the map in
   the new brand hue; see agents/home.md. The dots below DO follow the tokens. */
.eg-area__map {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
}

.eg-area__map-img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(1.4) contrast(1.06)
            drop-shadow(0 12px 28px rgba(var(--eg-brand-rgb), .18));
}

/* Branch marker — positioned by inline left/top %, sized by --eg-dot-w/h. */
.eg-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: block;
    line-height: 0;
    text-decoration: none;
}

.eg-pin__dot {
    position: relative;
    display: block;
    width: var(--eg-dot-w, 18px);
    height: var(--eg-dot-h, 18px);
    border-radius: 50%;
    background: var(--eg-brand);
    border: 2px solid var(--eg-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
    transition: transform .2s ease;
}

/* Soft pulsing ring to draw the eye to the branches. */
.eg-pin__dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: eg-pin-pulse 2.4s ease-out infinite;
}
@keyframes eg-pin-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--eg-brand-rgb), .45); }
    70%  { box-shadow: 0 0 0 12px rgba(var(--eg-brand-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--eg-brand-rgb), 0); }
}

.eg-pin:hover .eg-pin__dot,
.eg-pin:focus-visible .eg-pin__dot { transform: scale(1.25); }

.eg-pin:focus-visible { outline: none; }

/* Name tooltip above the dot. */
.eg-pin__label {
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--eg-heading);
    color: #fff;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    pointer-events: none;
    z-index: 3;
}
.eg-pin__label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--eg-heading);
}
.eg-pin:hover .eg-pin__label,
.eg-pin:focus-visible .eg-pin__label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .eg-pin__dot::after { animation: none; }
}

/* ---- Reviews panel ---- */
.eg-reviews__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.eg-reviews__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--eg-muted);
}

.eg-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.eg-review {
    background: var(--eg-bg-alt);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    /* Grid columns are narrow here; without this a long word forces the
       track wider than its share and skews all three cards. */
    min-width: 0;
}

.eg-review__text {
    margin-top: 12px;
    font-size: .88rem;
    color: var(--eg-text);
    line-height: 1.6;
    flex-grow: 1;
}

.eg-review__author {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--eg-border);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* Text column must be shrinkable for the name's ellipsis to engage. */
.eg-review__author > div { min-width: 0; }

.eg-review__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Initial-letter fallback when no photo is set */
.eg-review__avatar--initial {
    display: grid;
    place-items: center;
    background: var(--eg-brand-soft);
    color: var(--eg-brand);
    font-weight: 800;
    font-size: .9rem;
}

.eg-review__name {
    font-size: .82rem;
    font-weight: 800;
    color: var(--eg-heading);
    line-height: 1.2;
    /* Keep the name on one line; ellipsis rather than an ugly two-line wrap. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eg-review__city {
    font-size: .78rem;
    color: var(--eg-muted);
    margin-top: 3px;
}

.eg-reviews__foot {
    margin-top: 22px;
    text-align: center;
}
/* ==========================================================================
   8. CTA
   ========================================================================== */
.eg-cta__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--eg-gap);
}

.eg-cta__card {
    position: relative;
    border-radius: var(--eg-radius-lg);
    padding: 38px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 210px;
}

/* ---- Brand quote card ---- */
.eg-cta__card--brand {
    background: linear-gradient(135deg, var(--eg-brand), var(--eg-brand-dark));
    color: var(--eg-brand-ink);
}

.eg-cta__card--brand h2,
.eg-cta__card--accent h2 {
    color: #fff;
    font-size: 1.45rem;
}

.eg-cta__card--brand p,
.eg-cta__card--accent p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .85);
    font-size: .95rem;
    max-width: 42ch;
}

/* Decorative bubble */
.eg-cta__card--brand::before,
.eg-cta__card--accent::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.eg-cta__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.eg-cta__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.eg-cta__actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* ---- Accent contact card ---- */
.eg-cta__card--accent {
    background: linear-gradient(135deg, var(--eg-accent), var(--eg-accent-dark));
    color: #fff;
}

.eg-cta__card--accent .eg-cta__body {
    position: relative;
    z-index: 1;
    max-width: 62%;
}

.eg-cta__note {
    margin-top: 14px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .8);
}

/* Photo bleeding into the right edge of the contact card */
.eg-cta__img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
            mask-image: linear-gradient(to right, transparent, #000 45%);
    pointer-events: none;
}

/* ==========================================================================
   9. TRUST BAR
   ========================================================================== */
.eg-trust {
    border-top: 1px solid var(--eg-border);
    padding-block: 34px;
    background: var(--eg-bg);
}

.eg-trust__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.eg-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-inline: 12px;
    border-right: 1px solid var(--eg-border);
}

.eg-trust__item:last-child { border-right: 0; }

.eg-trust__item .eg-icon { color: var(--eg-brand); flex-shrink: 0; }

.eg-trust__title {
    font-size: .85rem;
    font-weight: 800;
    color: var(--eg-heading);
    line-height: 1.25;
}

.eg-trust__text {
    font-size: .76rem;
    color: var(--eg-muted);
    margin-top: 3px;
    line-height: 1.35;
}

/* ==========================================================================
   7. VERGELIJKING & DUURZAAM (comparison table + green card)
   ========================================================================== */
.eg-cmp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--eg-gap);
    align-items: stretch;
}

/* ---- Left: comparison ---- */
.eg-cmp {
    background: var(--eg-card);
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius-lg);
    padding: 34px;
    box-shadow: var(--eg-shadow-sm);
}
.eg-cmp h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; margin-top: 8px; }
.eg-cmp__intro { margin-top: 12px; color: var(--eg-muted); }
.eg-cmp__table { margin-top: 24px; }

.eg-cmp__head,
.eg-cmp__row {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 12px;
    align-items: center;
}
.eg-cmp__head { margin-bottom: 8px; }
.eg-cmp__head-us,
.eg-cmp__head-them {
    padding: 9px 14px;
    border-radius: var(--eg-radius);
    font-weight: 800;
    font-size: .82rem;
    text-align: center;
}
.eg-cmp__head-us { background: var(--eg-brand); color: var(--eg-brand-ink); }
.eg-cmp__head-them { background: var(--eg-bg-alt); color: var(--eg-muted); }

.eg-cmp__row {
    padding: 12px 0;
    border-top: 1px solid var(--eg-border);
}
.eg-cmp__us {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    color: var(--eg-heading);
    font-size: .9rem;
    line-height: 1.35;
}
.eg-cmp__us svg { color: var(--eg-accent); flex: 0 0 auto; }
.eg-cmp__them {
    color: var(--eg-muted);
    font-size: .86rem;
    line-height: 1.35;
}

/* ---- Right: green card ---- */
.eg-green {
    background: var(--eg-accent);
    background-image: linear-gradient(160deg, var(--eg-accent), var(--eg-accent-dark));
    color: #fff;
    border-radius: var(--eg-radius-lg);
    padding: 34px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.eg-green__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255, 255, 255, .85);
}
.eg-green__title {
    margin-top: 12px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.15;
    color: #fff;
}
.eg-green__text {
    margin-top: 14px;
    color: rgba(255, 255, 255, .88);
    line-height: 1.6;
}
.eg-green__list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.eg-green__list li { display: flex; align-items: flex-start; gap: 14px; }
.eg-green__ic {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .22);
    color: #fff;
}
.eg-green__col { display: flex; flex-direction: column; }
.eg-green__item-title { font-weight: 800; }
.eg-green__item-text { font-size: .88rem; color: rgba(255, 255, 255, .8); margin-top: 2px; }
/* Photo fills the bottom of the card, bleeding to its edges, and the green
   fades DOWN into it so there's no hard seam and no empty strip. A width:auto
   block absorbs the negative side margins → true full-bleed (an <img> can't). */
.eg-green__photo {
    position: relative;
    margin: 28px -34px -34px;   /* top gap, then bleed left/right/bottom to the card edges */
    height: 300px;
    overflow: hidden;
}
.eg-green__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.eg-green__photo::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Green at the top of the photo fading to clear ~halfway down. */
    background: linear-gradient(to bottom,
                rgba(var(--eg-accent-dark-rgb), 1) 0%,
                rgba(var(--eg-accent-dark-rgb), .6) 22%,
                rgba(var(--eg-accent-dark-rgb), 0) 55%);
    pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ---- Laptop ---- */
@media (max-width: 1100px) {
    .eg-services__grid { grid-template-columns: repeat(3, 1fr); }
    .eg-trust__grid    { grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .eg-trust__item:nth-child(3n) { border-right: 0; }
    .eg-hero__card { left: 0; }
    .eg-about__stat { right: 0; }
}

/* ---- Tablet ---- */
@media (max-width: 900px) {
    .eg-hero--split { padding-block: 40px 64px; }

    .eg-hero__grid,
    .eg-about__inner,
    .eg-area__inner,
    .eg-cmp-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .eg-hero__sub { max-width: none; }

    .eg-usp__grid { grid-template-columns: repeat(2, 1fr); }
    .eg-usp__item:nth-child(2n) { border-right: 0; }
    .eg-usp__item:nth-child(-n+2) { border-bottom: 1px solid var(--eg-border); }

    .eg-services__grid { grid-template-columns: repeat(2, 1fr); }

    .eg-steps__grid { grid-template-columns: 1fr; gap: 34px; }
    .eg-steps__grid::before { display: none; }

    .eg-about__media { order: -1; }

    .eg-area__map { max-width: 340px; }

    .eg-cta__grid { grid-template-columns: 1fr; }
    .eg-cta__card--accent .eg-cta__body { max-width: 100%; }
    .eg-cta__img { display: none; }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .eg-hero__actions .eg-btn { width: 100%; }

    .eg-hero__img { aspect-ratio: 4 / 3.6; }

    .eg-hero__card {
        position: static;
        max-width: none;
        margin-top: 16px;
    }

    .eg-usp { margin-top: -28px; }
    .eg-usp__grid { grid-template-columns: 1fr; }
    .eg-usp__item {
        border-right: 0;
        border-bottom: 1px solid var(--eg-border);
        padding: 20px;
    }
    .eg-usp__item:last-child { border-bottom: 0; }

    .eg-services__grid { grid-template-columns: 1fr; }

    .eg-about__stat {
        position: static;
        margin-top: 16px;
        width: fit-content;
    }

    .eg-faq__q { padding: 16px 18px; font-size: .94rem; }
    .eg-faq__a { padding: 0 18px 18px; }

    .eg-cta__card { padding: 28px 24px; }
    .eg-cta__actions .eg-btn { width: 100%; }

    .eg-trust__grid { grid-template-columns: repeat(2, 1fr); }
    .eg-trust__item { border-right: 0; }
}
