/* ==========================================================================
   eGateweb — Over ons (page-over-ons.php)
   --------------------------------------------------------------------------
   Section order matches the template:
     1 Hero  2 Cijfers  3 Ons verhaal  4 Waar wij voor staan
     5 Team  6 Waarom Sterren  7 CTA

   Hero, stats and CTA come from css/eg-page.css. Only this page's own blocks
   live here. No hardcoded colors — see inc/eg-colors.php.
   ========================================================================== */

/* ==========================================================================
   3. ONS VERHAAL
   ========================================================================== */
.eg-story__inner {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.eg-story__media { position: relative; }

.eg-story__img {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    border-radius: var(--eg-radius-lg);
    box-shadow: var(--eg-shadow-lg);
}

/* "Sinds 2018" pill on the image */
.eg-story__badge {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 11px 22px;
    border-radius: var(--eg-radius-pill);
    background: var(--eg-brand);
    color: var(--eg-brand-ink);
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: var(--eg-shadow-brand);
}

.eg-story h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

/* Generous gap: at line-height 1.75 a 16px margin reads as a line break rather
   than a paragraph break, and the three paragraphs run together. */
.eg-story__text {
    margin-top: 22px;
    font-size: 1rem;
    color: var(--eg-muted);
    line-height: 1.75;
}

.eg-story__text:first-of-type { margin-top: 18px; }

/* ==========================================================================
   4. WAAR WIJ VOOR STAAN
   ========================================================================== */
.eg-values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--eg-gap);
}

.eg-value {
    display: flex;
    flex-direction: column;
}

.eg-value:hover {
    transform: translateY(-5px);
    box-shadow: var(--eg-shadow);
    border-color: rgba(var(--eg-brand-rgb), .35);
}

.eg-value h3 {
    margin-top: 20px;
    font-size: 1.05rem;
}

.eg-value p {
    margin-top: 10px;
    font-size: .9rem;
    color: var(--eg-muted);
    line-height: 1.65;
}

/* ==========================================================================
   5. TEAM
   ========================================================================== */
.eg-team__grid {
    display: grid;
    gap: 28px;
    justify-content: center;
    /* Cards keep a sane width whether there are two members or three. */
    grid-template-columns: repeat(auto-fit, minmax(0, 260px));
}

.eg-member {
    text-align: center;
}

.eg-member__photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--eg-radius-lg);
    box-shadow: var(--eg-shadow);
    margin-bottom: 18px;
}

.eg-member__photo--initial {
    display: grid;
    place-items: center;
    background: var(--eg-brand-soft);
    color: var(--eg-brand);
    font-size: 3rem;
    font-weight: 800;
}

.eg-member__name { font-size: 1.05rem; }

.eg-member__role {
    margin-top: 5px;
    font-size: .88rem;
    color: var(--eg-muted);
}

/* ==========================================================================
   6. WAAROM STERREN
   ========================================================================== */
.eg-why__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
}

.eg-why h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.eg-why__text {
    margin-top: 16px;
    font-size: 1.02rem;
    color: var(--eg-muted);
}

/* Two columns of ticks — the list is long enough that one column looks thin */
.eg-why__list {
    margin-top: 26px;
    grid-template-columns: 1fr 1fr;
    gap: 14px 22px;
}

.eg-why__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--eg-radius-lg);
    box-shadow: var(--eg-shadow-lg);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
    .eg-values__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .eg-story__inner,
    .eg-why__inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    /* Image first on both blocks, so the page opens with a visual */
    .eg-why__media { order: -1; }

    .eg-story__badge { bottom: -16px; }
}

@media (max-width: 600px) {
    .eg-values__grid { grid-template-columns: 1fr; }
    .eg-why__list { grid-template-columns: 1fr; }
    .eg-team__grid { grid-template-columns: minmax(0, 300px); }
}
