/* ==========================================
   EM SERVICES WIDGET
   ========================================== */

.em-services { font-family: inherit; }

/* ── Fejléc ── */
.em-services__header { text-align: center; margin-bottom: 40px; }
.em-services__title  { font-size: 2rem; font-weight: 800; color: #0f172a; margin: 0 0 12px; line-height: 1.2; }
.em-services__subtitle { font-size: 1.05rem; color: #64748b; margin: 0; line-height: 1.6; }

/* ── Közös kártya szöveg ── */
.em-services__card-title    { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 0; line-height: 1.3; }
.em-services__card-title--lg { font-size: 1.6rem; }
.em-services__card-desc     { font-size: 0.9rem; color: #64748b; line-height: 1.6; margin: 0; flex: 1; }
.em-services__card-link     { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; text-decoration: none; margin-top: 8px; transition: gap 0.2s; }
.em-services__card-link:hover { gap: 10px; text-decoration: none; }
.em-services__card-link--light { color: #fff !important; }
.em-services__card-link--light:hover { color: rgba(255,255,255,0.85) !important; }

/* ── Ikon ── */
.em-services__icon-wrap {
    width: 54px; height: 54px;
    border-radius: 14px;
    border: 2px solid currentColor;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.em-services__icon-wrap--sm { width: 42px; height: 42px; border-radius: 10px; }

/* ── Képes overlay ── */
.em-services__photo-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    border-radius: inherit;
}
.em-services__photo-body {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; gap: 10px;
    padding: 28px;
    color: #fff;
    margin-top: auto;
}
.em-services__photo-body .em-services__card-title { color: #fff; }
.em-services__photo-body .em-services__card-desc  { color: rgba(255,255,255,0.85); }

/* ══════════════════════════════════════════
   1. IKONOS KÁRTYÁK
   ══════════════════════════════════════════ */
.em-services--layout-cards .em-services__grid,
.em-services--layout-photo .em-services__grid,
.em-services--layout-minimal .em-services__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
}
.em-services--cols-2 .em-services__grid { grid-template-columns: repeat(2, 1fr); }
.em-services--cols-3 .em-services__grid { grid-template-columns: repeat(3, 1fr); }
.em-services--cols-4 .em-services__grid { grid-template-columns: repeat(4, 1fr); }

.em-services__card--icon {
    display: flex; flex-direction: column; gap: 14px;
    padding: 30px 26px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.22s, box-shadow 0.22s;
}
.em-services__card--icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

/* ══════════════════════════════════════════
   2. KÉPES KÁRTYÁK
   ══════════════════════════════════════════ */
.em-services__card--photo {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: #1e293b center/cover no-repeat;
    transition: transform 0.22s;
}
.em-services__card--photo:hover { transform: translateY(-4px); }

/* ══════════════════════════════════════════
   3. VEGYES: 2 képes + 2 szöveges
   ══════════════════════════════════════════ */
.em-services__mixed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}
.em-services__mixed-photo {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: #1e293b center/cover no-repeat;
    transition: transform 0.22s;
}
.em-services__mixed-photo:hover { transform: translateY(-4px); }

.em-services__mixed-text {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.22s, box-shadow 0.22s;
}
.em-services__mixed-text:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}
.em-services__mixed-text > div:last-child {
    display: flex; flex-direction: column; gap: 8px;
}

/* ══════════════════════════════════════════
   4. KIEMELT: nagy kép + lista
   ══════════════════════════════════════════ */
.em-services__feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.em-services__feature-main {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 420px;
    border-radius: 20px;
    overflow: hidden;
    background: #1e293b center/cover no-repeat;
}
.em-services__feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}
.em-services__feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.em-services__feature-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}
.em-services__feature-item > div:last-child {
    display: flex; flex-direction: column; gap: 6px;
}

/* ══════════════════════════════════════════
   5. VÍZSZINTES
   ══════════════════════════════════════════ */
.em-services__horiz-list { display: flex; flex-direction: column; gap: 20px; }
.em-services__horiz-item {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.em-services__horiz-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}
.em-services__horiz-img {
    width: 220px;
    flex-shrink: 0;
    background: #1e293b center/cover no-repeat;
}
.em-services__horiz-icon {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}
.em-services__horiz-body {
    display: flex; flex-direction: column; gap: 10px;
    justify-content: center;
    padding: 24px 28px;
}
.em-services__horiz-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.875rem; font-weight: 600; text-decoration: none; margin-top: 4px;
    transition: gap 0.2s;
}
.em-services__horiz-link:hover { gap: 10px; text-decoration: none; }

/* ══════════════════════════════════════════
   6. MINIMÁL
   ══════════════════════════════════════════ */
.em-services__card--minimal {
    display: flex; flex-direction: column; align-items: center;
    gap: 14px; padding: 28px 20px; text-align: center;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, background 0.2s;
}
.em-services__card--minimal:hover { transform: translateY(-3px); background: #fff; }

/* ══════════════════════════════════════════
   RESZPONZÍV
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
    .em-services--cols-4 .em-services__grid { grid-template-columns: repeat(2, 1fr); }
    .em-services--cols-3 .em-services__grid { grid-template-columns: repeat(2, 1fr); }
    .em-services__mixed  { grid-template-columns: 1fr; }
    .em-services__feature { grid-template-columns: 1fr; }
    .em-services__feature-main { min-height: 280px; }
    .em-services__horiz-img { width: 160px; }
}
@media (max-width: 560px) {
    .em-services__grid { grid-template-columns: 1fr !important; }
    .em-services__title { font-size: 1.5rem; }
    .em-services__horiz-img { display: none; }
    .em-services__horiz-icon { width: 70px; }
}
