/**
 * CHS Contact System Visual
 * Version 0.17.8
 */

.chs-contact-system {
    margin-top: 28px;
    padding: clamp(26px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(45, 181, 200, 0.16),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #071518,
            #103b43
        );
    color: #ffffff;
    box-shadow:
        0 24px 54px rgba(23, 34, 38, 0.16);
}

.chs-contact-system__heading {
    max-width: 720px;
}

.chs-contact-system__heading
.chs-section-heading__eyebrow {
    color: #63d7e5 !important;
}

.chs-contact-system__heading h3 {
    margin: 0;
    color: #ffffff !important;
    font-size: clamp(25px, 3vw, 39px);
    line-height: 1.13;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.chs-contact-system__heading > p:last-child {
    max-width: 670px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 15px;
    line-height: 1.7;
}

.chs-contact-system__diagram {
    position: relative;
    min-height: 620px;
    margin-top: 34px;
}

.chs-contact-system__node {
    position: absolute;
    z-index: 3;
    width: 190px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 17px 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
    text-align: center;
    backdrop-filter: blur(9px);
}

.chs-contact-system__node--camera {
    top: 58px;
    left: 0;
}

.chs-contact-system__node--alarm {
    top: 245px;
    left: 0;
}

.chs-contact-system__node--access {
    top: 432px;
    left: 0;
}

.chs-contact-system__node--core {
    top: 238px;
    left: 50%;
    width: 220px;
    min-height: 155px;
    border-color: rgba(99, 215, 229, 0.4);
    background: rgba(99, 215, 229, 0.13);
    transform: translateX(-50%);
    box-shadow:
        0 0 0 10px rgba(99, 215, 229, 0.035),
        0 0 34px rgba(99, 215, 229, 0.15);
}

.chs-contact-system__node--network {
    top: 58px;
    right: 0;
}

.chs-contact-system__node--control {
    top: 245px;
    right: 0;
}

.chs-contact-system__node--service {
    top: 432px;
    right: 0;
}

.chs-contact-system__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 11px;
    color: #63d7e5;
}

.chs-contact-system__icon svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chs-contact-system__node strong,
.chs-contact-system__node small {
    display: block;
}

.chs-contact-system__node strong {
    color: #ffffff !important;
    font-size: 14px;
    line-height: 1.3;
}

.chs-contact-system__node small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.35;
}

.chs-contact-system__connections {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chs-contact-system__connections path {
    fill: none;
    stroke: rgba(99, 215, 229, 0.47);
    stroke-width: 2;
    stroke-dasharray: 8 9;
}

.chs-contact-system__connections circle {
    fill: #63d7e5;
    filter: drop-shadow(
        0 0 6px rgba(99, 215, 229, 0.9)
    );
}

.chs-contact-system__signal {
    position: absolute;
    z-index: 2;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #63d7e5;
    box-shadow: 0 0 13px rgba(99, 215, 229, 0.95);
    animation:
        chs-contact-signal 4.2s linear infinite;
}

.chs-contact-system__signal--one {
    top: 128px;
    left: 18%;
}

.chs-contact-system__signal--two {
    top: 302px;
    left: 22%;
    animation-delay: -1.4s;
}

.chs-contact-system__signal--three {
    top: 454px;
    right: 20%;
    animation-delay: -2.8s;
}

.chs-contact-system__note {
    max-width: 760px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.56) !important;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

@keyframes chs-contact-signal {
    0% {
        opacity: 0;
        transform: translateX(0) scale(0.75);
    }

    15% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(210px) scale(1.15);
    }
}

@media (max-width: 900px) {
    .chs-contact-system__diagram {
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .chs-contact-system__node {
        position: relative;
        inset: auto;
        width: auto;
        min-height: 150px;
        transform: none;
    }

    .chs-contact-system__node--core {
        width: auto;
        grid-column: 1 / -1;
        grid-row: 1;
        transform: none;
    }

    .chs-contact-system__connections,
    .chs-contact-system__signal {
        display: none;
    }
}

@media (max-width: 560px) {
    .chs-contact-system {
        padding: 25px 18px;
    }

    .chs-contact-system__diagram {
        grid-template-columns: 1fr;
    }

    .chs-contact-system__node--core {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chs-contact-system__signal {
        animation: none;
    }
}
