/* ============================================
   ORBIT / SUSTAINABLE SOURCING SECTION
   Pure hand-written CSS — no frameworks
   ============================================ */

/* ---- Section Layout ---- */
.orbit-section {
    padding: 80px 20px;
    background: #fff;
}

.orbit-section__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ---- Left Column: Gray Panel ---- */
.orbit-section__left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-panel {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Orbit Container ---- */
.orbit {
    position: relative;
    width: 92%;
    aspect-ratio: 1;
    container-type: inline-size;
}

/* ---- 1. Center Logo (STATIC) ---- */
.orbit__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 29.4cqi;
    height: 29.4cqi;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.orbit__logo img {
    width: 84%;
    height: 84%;
    object-fit: contain;
    border-radius: 50%;
}

.orbit__logo-fallback {
    width: 80%;
    height: 80%;
}

/* ---- 2. Navy Ring + Curved Text Badge (STATIC) ---- */
.orbit__badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60cqi;
    height: 60cqi;
    z-index: 9;
    pointer-events: none;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.08));
}

.orbit__badge-text {
    text-transform: uppercase;
}

/* Optional: Animate the text ring in reverse if admin toggles it */
.orbit__badge-text--rotate {
    animation: badge-text-spin 60s linear infinite reverse;
    transform-origin: 200px 200px;
}

@keyframes badge-text-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- 3. Dashed Circle (already inside SVG, no extra CSS needed) ---- */

/* ---- 4. Outer Garment Wheel (ONLY rotating element) ---- */
.orbit__wheel {
    position: absolute;
    inset: 0;
    z-index: 8;
    animation: orbit-spin var(--orbit-duration, 40s) linear infinite;
    animation-direction: var(--orbit-direction, normal);
    will-change: transform;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit__wheel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    display: block;
}

/* Pause on hover when enabled */
[data-pause-hover="true"]:hover .orbit__wheel {
    animation-play-state: paused;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .orbit__wheel {
        animation: none !important;
    }
    .orbit__badge-text--rotate {
        animation: none !important;
    }
}

/* Animation off via admin toggle */
[data-animation-off="true"] .orbit__wheel {
    animation: none !important;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- Orbit Items (garment images) ---- */
.orbit__item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--size, 17cqi);
    height: var(--size, 17cqi);
    margin-top: calc(-0.5 * var(--size, 17cqi));
    margin-left: calc(-0.5 * var(--size, 17cqi));
    transform:
        rotate(var(--angle, 0deg))
        translateY(calc(-1 * var(--radius, 38.5cqi)))
        rotate(var(--tilt, 0deg));
    transform-origin: center center;
}

.orbit__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

/* ---- Right Column: Text Content ---- */
.orbit-section__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.orbit-section__heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 40px);
    color: #0b2a5b;
    line-height: 1.25;
    margin: 0 0 28px 0;
}

.orbit-section__text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 17px);
    color: #444;
    line-height: 1.9;
    text-align: justify;
    margin: 0 0 20px 0;
}

.orbit-section__btn {
    display: inline-block;
    margin-top: 12px;
    padding: 14px 28px;
    border: 1px solid #d9232d;
    color: #0b2a5b;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.orbit-section__btn:hover {
    background-color: #d9232d;
    color: #fff;
}

/* ---- Responsive: Stack on mobile ---- */
@media (max-width: 900px) {
    .orbit-section__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .orbit-section__left {
        max-width: 500px;
        margin: 0 auto;
    }

    .orbit-section__heading {
        text-align: center;
    }

    .orbit-section__text {
        text-align: left;
    }

    .orbit-section__btn {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .orbit-section {
        padding: 40px 16px;
    }

    .orbit__item {
        width: calc(var(--size, 60px) * 0.7) !important;
        height: calc(var(--size, 60px) * 0.7) !important;
        margin-top: calc(-0.35 * var(--size, 60px)) !important;
        margin-left: calc(-0.35 * var(--size, 60px)) !important;
    }
}
