/* Services page (body.svc-page). Most of the layout comes from css/impact.css. */

.svc-proof { padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }

/* eAutomate core and its modules, as a honeycomb */
.svc-modules {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
}

.svc-core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.2rem;
    width: 190px;
    height: 210px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
    box-shadow: 0 0 80px rgba(233, 30, 99, 0.5);
}

.svc-core strong { font-size: 1.55rem; letter-spacing: -0.02em; }
.svc-core span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }

.svc-modules ul {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.svc-modules li {
    --a: calc(var(--n) * 45deg - 90deg);
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 104px;
    height: 116px;
    margin: -58px 0 0 -52px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: #1b1f30;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    transform: rotate(var(--a)) translate(185px) rotate(calc(-1 * var(--a)));
    transition: background var(--transition-base);
}

.svc-modules li::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    clip-path: inherit;
    background: #141826;
}

.svc-modules li:hover { background: #E91E63; }

.svc-modules li:nth-child(1) { --n: 0; }
.svc-modules li:nth-child(2) { --n: 1; }
.svc-modules li:nth-child(3) { --n: 2; }
.svc-modules li:nth-child(4) { --n: 3; }
.svc-modules li:nth-child(5) { --n: 4; }
.svc-modules li:nth-child(6) { --n: 5; }
.svc-modules li:nth-child(7) { --n: 6; }
.svc-modules li:nth-child(8) { --n: 7; }

.svc-modules::before {
    content: "";
    position: absolute;
    width: 370px;
    height: 370px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 92, 147, 0.35);
    animation: pvSpin 60s linear infinite;
}

/* Numbered demand cards */
.svc-num {
    display: block;
    margin-bottom: 0.9rem;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--primary-pink);
}

@media (max-width: 860px) {
    .svc-modules { min-height: 360px; transform: scale(0.82); }
}

@media (max-width: 420px) {
    .svc-modules { transform: scale(0.68); margin: -40px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .svc-modules::before { animation: none; }
}
