/* Philosophy section — circular 8-node workflow map + split columns + callout.

   The diagram is a fixed square frame (auto-scaled by viewport) where the hub
   and every node are absolutely positioned at trig-derived coordinates, so the
   eight icons always sit on one perfect circle regardless of viewport width.
   A dashed connector circle encloses the node icons without touching them. */

/* ---- Container sizing frame ---- */
.syncore-radial-container {
    position: relative;
    width: min(400px, 100%);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

/* Connecting ring line — passes exactly through the eight node icons (same
   33% radius). It is drawn BELOW the icons (z-index 2), so each icon sits on
   the line like a connector joiner while the dashed line only shows between
   the icons and never covers icons or their labels. */
.syncore-radial-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 66%;
    height: 66%;
    transform: translate(-50%, -50%);
    border: 1px dashed #cbd5e1;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

/* Center hub badge alignment — dead center of the frame */
.syncore-diagram-center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 10;
}

.syncore-diagram-center-hub figure,
.syncore-diagram-center-hub img {
    width: 120px !important;
    height: 120px !important;
    margin: 0 !important;
}

/* ---- Base node ring placement ---- */
.syncore-radial-node {
    position: absolute;
    width: 90px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Round node icon sizing — fills the node exactly so the icon's center equals
   the node's center, keeping every icon on the ring. */
.syncore-radial-node img,
.syncore-radial-node figure {
    width: 54px !important;
    height: 54px !important;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    padding: 6px;
    background: #ffffff;
    margin: 0 !important;
}

.syncore-radial-node img {
    width: 40px !important;
    height: 40px !important;
}

/* Node text sizing specs — hangs below the icon so it never shifts the ring */
.syncore-radial-node p {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -45px;
    width: 90px;
    text-align: center;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-top: 2px;
    white-space: nowrap;
}

/* Perfect-circle placement — radius 33% of the frame, starting at 12 o'clock.
   Each node is centred on its ring point; since node == icon the logos sit
   exactly on the circle. The 66% connecting ring passes through them. */
.syncore-radial-node:nth-child(1) { top: 17%;    left: 50%;    transform: translate(-50%, -50%); } /* 12:00 Architecture */
.syncore-radial-node:nth-child(2) { top: 26.67%; left: 73.33%; transform: translate(-50%, -50%); } /* 01:30 HVAC */
.syncore-radial-node:nth-child(3) { top: 50%;    left: 83%;    transform: translate(-50%, -50%); } /* 03:00 Electrical */
.syncore-radial-node:nth-child(4) { top: 73.33%; left: 73.33%; transform: translate(-50%, -50%); } /* 04:30 Mechanical */
.syncore-radial-node:nth-child(5) { top: 83%;    left: 50%;    transform: translate(-50%, -50%); } /* 06:00 Process */
.syncore-radial-node:nth-child(6) { top: 73.33%; left: 26.67%; transform: translate(-50%, -50%); } /* 07:30 Utilities */
.syncore-radial-node:nth-child(7) { top: 50%;    left: 17%;    transform: translate(-50%, -50%); } /* 09:00 Automation */
.syncore-radial-node:nth-child(8) { top: 26.67%; left: 26.67%; transform: translate(-50%, -50%); } /* 10:30 Validation */

/* Keep nodes above the dashed ring line */
.syncore-radial-node { z-index: 5; }
.syncore-diagram-center-hub { z-index: 10; }

/* ---- Split columns: force vertical centering ---- */
.syncore-philosophy-columns {
    align-items: center !important;
}

/* ---- Right sidebar callout ----
   Stretches to match the diagram's height (full-length left border) while its
   text layers are vertically centred against the ring. */
.syncore-callout {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #cbd5e1;
    padding-left: 2rem;
    overflow: hidden;
    align-self: stretch;
    box-sizing: border-box;
}

/* Faint light-gray structural grid overlay behind the text layers */
.syncore-callout .syncore-callout-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.syncore-callout .syncore-callout-grid img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0 !important;
}

/* Text sits above the overlay */
.syncore-callout > *:not(.syncore-callout-grid) {
    position: relative;
    z-index: 1;
}

/* ---- Responsive ---- */
@media (max-width: 781px) {
    .syncore-radial-container {
        margin: 24px auto;
    }
    .syncore-diagram-center-hub,
    .syncore-diagram-center-hub figure,
    .syncore-diagram-center-hub img {
        width: 96px !important;
        height: 96px !important;
    }
    .syncore-radial-node {
        width: 80px;
        height: 46px;
    }
    .syncore-radial-node img,
    .syncore-radial-node figure {
        width: 46px !important;
        height: 46px !important;
        padding: 5px;
    }
    .syncore-radial-node img {
        width: 34px !important;
        height: 34px !important;
    }
    .syncore-radial-node p {
        font-size: 0.7rem !important;
        margin-left: -40px;
        width: 80px;
    }
    .syncore-callout {
        border-left: none;
        padding-left: 0;
        margin-top: 32px;
    }
}