/* ==========================================================================
   eGateweb — Service pages (template-parts/eg-service.php)
   --------------------------------------------------------------------------
   ONE stylesheet for all eight service pages. They share a layout and differ
   only in content, so there is nothing per-service here.

   Section order matches the template:
     1 Hero  2 Introductie  3 Waarom  4 Tekstblok + kader  5 Accentband
     6 Video  7 Tekstblok + afbeelding  8 CTA  9 FAQ

   Comes from elsewhere: the hero (.eg-dhero) and CTA band live in
   css/eg-page.css; the FAQ accordion lives in css/eg-base.css — all three are
   shared with other pages.

   No hardcoded colors — see inc/eg-colors.php.
   ========================================================================== */

/* ==========================================================================
   1. HERO
   ========================================================================== */
/* Service heroes carry a short title and one button, so they are shorter than
   the /diensten hero. */
.eg-shero {
    min-height: 400px;
}

.eg-shero .eg-dhero__text {
    max-width: 48ch;
}

/* ==========================================================================
   SHARED: body copy
   ========================================================================== */
/*
 * A paragraph inside a text block. Each line of a "Paragraphs" field becomes
 * one of these, so the spacing between them IS the paragraph rhythm.
 */
.eg-prose {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--eg-muted);
}

.eg-prose:first-of-type { margin-top: 0; }

/* ==========================================================================
   2. INTRODUCTIE — image left, text right
   ========================================================================== */
.eg-sintro__inner {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 60px;
    align-items: center;
}

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

.eg-sintro__body h2 {
    font-size: clamp(1.6rem, 2.9vw, 2.2rem);
    margin-bottom: 20px;
}

/* Needs its own top gap: .eg-prose only spaces paragraphs from each other, so
   without this the list sits flush against the last sentence. */
.eg-sintro__list,
.eg-sblock2__list { margin-top: 26px; }

/* A tick list whose items may lead with a bold label. Items wrap to several
   lines here, so the tick aligns to the first line rather than centering. */
.eg-ticklist li { align-items: flex-start; }

.eg-ticklist .eg-icon { margin-top: 2px; }

.eg-ticklist li span {
    font-weight: 500;
    color: var(--eg-muted);
    line-height: 1.6;
}

.eg-ticklist li strong {
    font-weight: 800;
    color: var(--eg-heading);
}

.eg-sintro__btn { margin-top: 28px; }

/* ==========================================================================
   3. WAAROM — four compact cards
   ========================================================================== */
.eg-swhy__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--eg-gap);
}

.eg-swhy__card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 22px;
}

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

.eg-swhy__card h3 {
    margin-top: 16px;
    font-size: .98rem;
}

.eg-swhy__card p {
    margin-top: 8px;
    font-size: .86rem;
    color: var(--eg-muted);
    line-height: 1.6;
}

/* ==========================================================================
   4. KENMERKEN — alternating wide rows
   --------------------------------------------------------------------------
   Rows alternate brand-filled and plain white. The fill rows put their icon on
   the right, the plain rows on the left, which gives the stack a rhythm rather
   than six identical bars.
   ========================================================================== */
.eg-frows {
    display: grid;
    gap: 18px;
}

.eg-frow {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 26px 30px;
    border-radius: var(--eg-radius-lg);
    transition: transform .3s var(--eg-ease), box-shadow .3s var(--eg-ease);
}

.eg-frow:hover { transform: translateY(-3px); }

/*
 * Must fill the remaining width. Without it the body collapses to its content
 * width, and on the row-reverse rows that pushes the text against the icon —
 * so every row started at a different left edge depending on how long its
 * sentence was.
 */
.eg-frow__body {
    flex: 1;
    min-width: 0;
}

.eg-frow h3 { font-size: 1.08rem; }

.eg-frow p {
    margin-top: 8px;
    font-size: .92rem;
    line-height: 1.7;
}

.eg-frow__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
}

/* ---- Brand-filled row: icon on the right ---- */
.eg-frow--fill {
    background: linear-gradient(120deg, var(--eg-brand), var(--eg-brand-dark));
    /* DOM order is icon-then-text; reversing puts the icon on the right
       without moving the heading away from the start of the row for
       screen readers. */
    flex-direction: row-reverse;
    box-shadow: var(--eg-shadow-brand);
}

.eg-frow--fill h3 { color: #fff; }
.eg-frow--fill p  { color: rgba(255, 255, 255, .85); }

.eg-frow--fill .eg-frow__icon {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.eg-frow--fill:hover { box-shadow: 0 14px 34px rgba(var(--eg-brand-rgb), .34); }

/* ---- Plain row: icon on the left ---- */
.eg-frow--plain {
    background: var(--eg-card);
    border: 1px solid var(--eg-border);
    box-shadow: var(--eg-shadow-sm);
}

.eg-frow--plain p { color: var(--eg-muted); }

.eg-frow--plain .eg-frow__icon {
    background: var(--eg-brand-soft);
    color: var(--eg-brand);
}

.eg-frow--plain:hover {
    box-shadow: var(--eg-shadow);
    border-color: rgba(var(--eg-brand-rgb), .35);
}

/* ==========================================================================
   OPTIES — three cards + a highlighted strip
   ========================================================================== */
/* Left-aligned intro, unlike the centred .eg-head — this section reads as a
   continuation of the copy above it rather than a new chapter. */
.eg-options__head {
    max-width: 640px;
    margin-bottom: 40px;
}

.eg-options__head h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.eg-options__head p {
    margin-top: 12px;
    font-size: 1rem;
    color: var(--eg-muted);
}

/* auto-fit so the same section works with 3 or 4 cards without a count-specific
   rule — /meubeltransport uses three, /particuliere-verhuizing four. */
.eg-options__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--eg-gap);
}

.eg-option {
    display: flex;
    flex-direction: column;
    padding: 30px;
}

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

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

.eg-option p {
    margin-top: 11px;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--eg-muted);
}

/* ---- Highlighted strip ---- */
.eg-options__strip {
    margin-top: var(--eg-gap);
    padding: 26px 30px;
    background: var(--eg-brand-soft);
    border-radius: var(--eg-radius);
}

.eg-options__strip h3 {
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--eg-brand-dark);
    margin-bottom: 16px;
}

.eg-options__strip ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 28px;
}

.eg-options__strip li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--eg-heading);
}

.eg-options__strip .eg-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--eg-brand);
}

/* ==========================================================================
   KOSTEN + INFO — pricing explainer beside a dark "what we need" card
   ========================================================================== */
.eg-costs__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--eg-gap);
    align-items: start;
}

/* One column instead of two: keep a readable measure and centre it, which turns
   the same block into a standalone "Tarieven" statement. */
.eg-costs__inner--single {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
    text-align: center;
}

.eg-costs__inner--single .eg-note { text-align: left; }

.eg-costs h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    margin-bottom: 18px;
}

.eg-costs__btn { margin-top: 28px; }

/* ---- Caution box ---- */
.eg-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--eg-bg-alt);
    border: 1px solid var(--eg-border);
    border-left: 3px solid var(--eg-muted);
    border-radius: var(--eg-radius-sm);
}

.eg-note .eg-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--eg-muted);
}

.eg-note p {
    font-size: .88rem;
    line-height: 1.65;
    color: var(--eg-muted);
}

/* ---- Dark info card ---- */
.eg-infocard {
    background: var(--eg-dark);
    color: var(--eg-dark-ink);
    border-radius: var(--eg-radius-lg);
    padding: 32px;
    box-shadow: var(--eg-shadow-lg);
}

.eg-infocard h3 {
    /* On the dark panel the heading uses the panel's own ink token, not
       --eg-heading, which is near-black and would vanish here. */
    color: var(--eg-dark-ink);
    font-size: 1.1rem;
}

.eg-infocard__text {
    margin-top: 10px;
    font-size: .9rem;
    line-height: 1.65;
    color: rgba(var(--eg-dark-ink-rgb), .72);
}

.eg-infocard__list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.eg-infocard__list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--eg-dark-ink);
}

.eg-infocard__list .eg-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--eg-brand-light);
}

.eg-infocard__btn {
    margin-top: 26px;
    width: 100%;
    /* Long email addresses must not push the button past the card. */
    word-break: break-word;
}

.eg-infocard__contacts {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
}

.eg-infocard__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .86rem;
    font-weight: 600;
    color: rgba(var(--eg-dark-ink-rgb), .75);
    text-decoration: none;
    transition: color .25s var(--eg-ease);
}

.eg-infocard__contacts a:hover { color: var(--eg-brand-light); }

/* ==========================================================================
   WEL / NIET DOEN — two lists that draw the scope boundary
   ========================================================================== */
.eg-dodont__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--eg-gap);
    max-width: 940px;
    margin-inline: auto;
}

.eg-dodont__col { padding: 28px 30px; }

.eg-dodont__col h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    padding-bottom: 16px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--eg-border);
}

.eg-dodont__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eg-dodont__col li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    padding: 9px 0;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--eg-text);
}

.eg-dodont__col li .eg-icon {
    flex-shrink: 0;
    margin-top: 3px;
    stroke-width: 2.5;
}

/* Positive list */
.eg-dodont__col--do { border-color: rgba(var(--eg-accent-rgb), .35); }
.eg-dodont__col--do h3 { color: var(--eg-accent-dark); }
.eg-dodont__col--do h3 .eg-icon,
.eg-dodont__col--do li .eg-icon { color: var(--eg-accent); }

/* Negative list. Colour is not the only signal — the icon shape differs too
   (tick vs cross), so the two lists are still distinguishable to a
   colour-blind reader. */
.eg-dodont__col--dont { border-color: rgba(var(--eg-danger-rgb), .3); }
.eg-dodont__col--dont h3 { color: var(--eg-danger); }
.eg-dodont__col--dont h3 .eg-icon,
.eg-dodont__col--dont li .eg-icon { color: var(--eg-danger); }
.eg-dodont__col--dont li { color: var(--eg-muted); }

/* ==========================================================================
   5. TEKSTBLOK + kader
   ========================================================================== */
/* A single reading column — this is long-form copy, not a layout block. */
.eg-sblock__inner {
    max-width: 820px;
}

.eg-sblock h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin-bottom: 22px;
}

/* The highlighted box under the text */
.eg-callout {
    margin-top: 34px;
    padding: 26px 30px;
    background: var(--eg-brand-soft);
    border-left: 4px solid var(--eg-brand);
    border-radius: var(--eg-radius-sm);
}

.eg-callout h3 {
    font-size: 1.02rem;
    color: var(--eg-brand-dark);
}

.eg-callout p {
    margin-top: 10px;
    font-size: .94rem;
    line-height: 1.75;
    color: var(--eg-text);
}

/* ==========================================================================
   5. ACCENTBAND — full-width brand band
   ========================================================================== */
.eg-band {
    position: relative;
    overflow: hidden;
    padding-block: 64px;
    background: linear-gradient(135deg, var(--eg-brand), var(--eg-brand-dark));
}

/* Decorative bubble, same language as the CTA card */
.eg-band::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

.eg-band__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

/* Centered variant: turns the band from "part of the page" into a statement. */
.eg-band__inner--center {
    margin-inline: auto;
    text-align: center;
}

.eg-band__btn { margin-top: 30px; }

.eg-band h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin-bottom: 18px;
}

.eg-band p {
    margin-top: 14px;
    font-size: .98rem;
    line-height: 1.8;
    /* Not pure white: full-strength body text on a saturated background is
       harsh to read at length. */
    color: rgba(255, 255, 255, .88);
}

/* ==========================================================================
   6. VIDEO
   ========================================================================== */
.eg-svideo__inner {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.eg-svideo__body h2 {
    font-size: clamp(1.6rem, 2.9vw, 2.2rem);
}

.eg-svideo__text {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--eg-muted);
}

.eg-svideo__btn { margin-top: 28px; }

/* 16:9 frame. aspect-ratio on the wrapper keeps the iframe from causing layout
   shift while it loads. */
.eg-svideo__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--eg-radius-lg);
    overflow: hidden;
    background: var(--eg-dark);
    box-shadow: var(--eg-shadow-lg);
}

.eg-svideo__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==========================================================================
   7. TEKSTBLOK + afbeelding — mirrored vs. the intro
   ========================================================================== */
.eg-sblock2__inner {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 60px;
    align-items: center;
}

.eg-sblock2__body h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin-bottom: 20px;
}

.eg-sblock2__btn { margin-top: 28px; }

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

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

@media (max-width: 900px) {
    .eg-sintro__inner,
    .eg-svideo__inner,
    .eg-sblock2__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Image first on both text+image blocks, so each section opens visually */
    .eg-sblock2__media { order: -1; }

    .eg-band { padding-block: 48px; }
    .eg-callout { padding: 22px 24px; }

    .eg-dodont__grid { grid-template-columns: 1fr; }
    .eg-dodont__col  { padding: 24px 22px; }

    .eg-costs__inner { grid-template-columns: 1fr; gap: 34px; }
    .eg-infocard     { padding: 26px 22px; }

    .eg-options__strip ul { grid-template-columns: 1fr; }
    .eg-options__strip    { padding: 22px 24px; }
}

@media (max-width: 600px) {
    .eg-swhy__grid { grid-template-columns: 1fr; }

    /* Stack the row: icon above the text, and drop the reverse so every row
       reads icon-then-text top to bottom. */
    .eg-frow {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 22px;
    }

    .eg-frow--fill { flex-direction: column; }

    .eg-frow__icon { width: 48px; height: 48px; }

    .eg-sintro__btn,
    .eg-svideo__btn { width: 100%; }

    .eg-callout {
        padding: 20px;
        border-left-width: 3px;
    }
}
