/* Home page: enterprise solutions as modules around one core (views/site/_enterprise-hub.php) */
.eh {
    position: relative;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: center;
    border-radius: 30px;
    background: #ECF1F7;
}
@media (min-width: 1024px) {
    .eh {
        margin-inline-end: 40px;
    }
}

/* navy block */
.eh-side {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 26px 0;
    margin-inline-start: -12px;
    padding: 32px 28px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(260px circle at 0 0, rgba(238, 93, 56, .32), transparent),
        radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 16px 16px,
        linear-gradient(160deg, #110E2D, #241E58);
    box-shadow: 0 24px 50px -24px rgba(17, 14, 45, .7);
}
[dir="rtl"] .eh-side {
    background:
        radial-gradient(260px circle at 100% 0, rgba(238, 93, 56, .32), transparent),
        radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 16px 16px,
        linear-gradient(200deg, #110E2D, #241E58);
}
.eh-side-tab {
    position: absolute;
    top: 50%;
    inset-inline-end: -9px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 4px;
    background: #1B1641;
    transform: rotate(45deg);
}
.eh-side-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #EE5D38;
    background: rgba(238, 93, 56, .16);
}
.eh-title {
    margin-top: 18px;
    font-size: 24px;
    line-height: 1.5;
    color: #fff;
}
.eh-sub {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .55);
}
.eh-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    width: 100%;
    border-top: 1px dashed rgba(255, 255, 255, .15);
}
.eh-count strong {
    font-size: 44px;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 22px rgba(238, 93, 56, .6);
}
.eh-count span {
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
}
.eh-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 11px 20px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #EE5D38, #FF7A4C);
    box-shadow: 0 12px 26px -12px rgba(238, 93, 56, .95);
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s;
}
.eh-cta:hover {
    transform: translateY(-2px);
}

/* hub */
.eh-hub {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 28px;
    padding: 34px 32px;
}
.eh-wires {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.eh-wire {
    fill: none;
    stroke: rgba(17, 14, 45, .2);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 3 9;
    animation: ehFlow 1.1s linear infinite;
    transition: stroke .25s, stroke-width .25s;
}
.eh-wire.is-hot {
    stroke: #EE5D38;
    stroke-width: 2.6;
}
@keyframes ehFlow {
    to { stroke-dashoffset: -12; }
}
.eh-core {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 22px 16px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 0, rgba(238, 93, 56, .45), transparent 70%),
        linear-gradient(160deg, #110E2D, #241E58);
    box-shadow: 0 0 0 8px rgba(238, 93, 56, .1), 0 24px 44px -20px rgba(17, 14, 45, .8);
    text-align: center;
    transition: box-shadow .3s;
}
.eh-core.is-hot {
    box-shadow: 0 0 0 8px rgba(238, 93, 56, .25), 0 0 40px rgba(238, 93, 56, .45);
}
.eh-core-pulse {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(238, 93, 56, .5);
    border-radius: inherit;
    animation: ehPulse 2.8s ease-out infinite;
    pointer-events: none;
}
@keyframes ehPulse {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.18); opacity: 0; }
}
.eh-core-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #EE5D38, #FF7A4C);
    box-shadow: 0 10px 22px -8px rgba(238, 93, 56, .9);
}
.eh-core-title {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.6;
}
.eh-core-sub {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .6);
}

/* modules */
.eh-module {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 20px;
    color: #110E2D;
    background: #fff;
    box-shadow: 0 12px 26px -18px rgba(17, 14, 45, .4);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.eh-module:hover,
.eh-module:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(238, 93, 56, .5);
    box-shadow: 0 18px 32px -16px rgba(238, 93, 56, .55);
    outline: none;
}
.eh-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #EE5D38;
    background: #F7DBD4;
    transition: background .25s;
}
.eh-module-icon svg,
.eh-module-icon img {
    width: 24px;
    height: 24px;
}
.eh-module:hover .eh-module-icon {
    background: #FBE9E4;
}
.eh-module-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.eh-module-title {
    font-size: 15px;
    line-height: 1.6;
}
.eh-module-text {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.9;
    color: rgba(17, 14, 45, .6);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.eh-module-foot {
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
}
.eh-module-works {
    white-space: nowrap;
    padding: 2px 9px;
    border-radius: 999px;
    color: #110E2D;
    background: #ECF1F7;
}
.eh-module-go {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
    color: #EE5D38;
    opacity: .75;
    transition: opacity .2s, gap .2s;
}
.eh-module:hover .eh-module-go {
    opacity: 1;
    gap: 8px;
}
.eh-module-custom {
    border: 1.5px dashed rgba(238, 93, 56, .55);
    background: #FFF6F3;
    box-shadow: none;
}
.eh-module-custom .eh-module-icon {
    color: #fff;
    background: #EE5D38;
}
.eh-module-custom:hover .eh-module-icon {
    background: #EE5D38;
}
.eh-ready .eh-module {
    opacity: 0;
    transform: translateY(12px);
}
.eh-ready.is-in .eh-module {
    animation: ehIn .5s cubic-bezier(.2, .7, .2, 1) forwards;
    animation-delay: calc(var(--i) * 70ms);
}
.eh-ready.is-in .eh-module:hover {
    transform: translateY(-3px);
}
@keyframes ehIn {
    to { opacity: 1; transform: none; }
}

@media (max-width: 1279px) {
    .eh {
        grid-template-columns: 250px minmax(0, 1fr);
    }
    .eh-side {
        margin-inline-start: -8px;
    }
    .eh-hub {
        gap: 18px;
        padding: 28px 22px;
    }
}
@media (max-width: 1023px) {
    .eh {
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-side {
        margin: -24px 18px 0;
    }
    .eh-side-tab {
        top: auto;
        bottom: -9px;
        inset-inline-end: auto;
        left: 50%;
        margin: 0 0 0 -9px;
    }
    .eh-hub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eh-core {
        grid-column: 1 / -1;
        grid-row: 1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 14px;
        text-align: start;
    }
    .eh-core-title {
        margin-top: 0;
    }
    .eh-core-sub {
        margin-top: 0;
        width: 100%;
        text-align: center;
    }
    .eh-wires {
        display: none;
    }
}
@media (max-width: 640px) {
    .eh {
        border-radius: 22px;
    }
    .eh-side {
        margin: -20px 12px 0;
        padding: 24px 20px;
        border-radius: 22px;
    }
    .eh-title {
        font-size: 20px;
    }
    .eh-count strong {
        font-size: 34px;
    }
    .eh-cta {
        width: 100%;
        justify-content: center;
    }
    .eh-hub {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 26px 12px 16px;
    }
    .eh-module {
        padding: 14px 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .eh-wire,
    .eh-core-pulse {
        animation: none;
    }
    .eh-ready .eh-module,
    .eh-ready.is-in .eh-module {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
