/* ========================================
   Safety & Operations Section (Light Industrial)
   ======================================== */
.safety-section {
    position: relative;
    background-color: #e0e0e0;
    padding-top: var(--space-120);
    padding-bottom: var(--space-120);
    z-index: 2;
    overflow: hidden;
}

/* Background Texture - hidden for cleaner look */
.safety-bg-texture {
    display: none;
}

/* Layout */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-64);
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Content */
.safety-content {
    grid-column: span 6;
}

/* Compliance "Achievement" Cards */
.compliance-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    margin-top: var(--space-40);
}

.compliance-card {
    background: white;
    padding: var(--space-24);
    border-left: 4px solid var(--color-tuatara);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--space-16);
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s ease;
}

.compliance-card:hover {
    transform: translateX(10px) !important;
    /* Override GSAP on hover */
    border-left-color: var(--color-crimson);
}

.compliance-icon {
    width: 32px;
    height: 32px;
    background: var(--color-alto);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-crimson);
}

/* Right Visual - "The Shield" */
.safety-visual {
    grid-column: span 6;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px;
    /* Isometric-ish float */
    transform: perspective(1000px) rotateY(-10deg);
}

.shield-plate {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    border-radius: 20px;
    box-shadow:
        20px 20px 60px #bebebe,
        -20px -20px 60px #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-48);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.shield-badge {
    width: 120px;
    height: 120px;
    background: var(--color-woodsmoke);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-32);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.shield-badge::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px dashed var(--color-crimson);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.shield-stat {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: bold;
    color: var(--color-crimson);
    margin-bottom: var(--space-8);
}

.shield-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: var(--text-sm);
    color: var(--color-tuatara);
    font-weight: bold;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Badge Pulse Animation Class (Added by GSAP) */
.safety-pulse {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(237, 28, 36, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(237, 28, 36, 0);
    }
}

/* Responsive */
@media (max-width: 1024px) {

    .safety-content,
    .safety-visual {
        grid-column: span 12;
    }

    .safety-visual {
        margin-top: var(--space-64);
    }

    .shield-container {
        max-width: 350px;
        transform: none;
    }
}

@media (max-width: 768px) {
    .safety-section {
        padding-top: var(--space-80);
        padding-bottom: var(--space-80);
    }

    .safety-grid {
        gap: var(--space-32);
    }

    .shield-container {
        max-width: 300px;
        height: 400px;
    }

    .shield-plate {
        padding: var(--space-32);
    }

    .shield-badge {
        width: 100px;
        height: 100px;
        margin-bottom: var(--space-24);
    }

    .shield-badge svg {
        width: 48px;
        height: 48px;
    }

    .shield-stat {
        font-size: var(--text-3xl);
    }

    .compliance-card {
        padding: var(--space-16);
    }
}

@media (max-width: 480px) {
    .safety-section {
        padding-top: var(--space-64);
        padding-bottom: var(--space-64);
    }

    .shield-container {
        max-width: 260px;
        height: 340px;
    }

    .shield-badge {
        width: 80px;
        height: 80px;
    }

    .shield-badge svg {
        width: 40px;
        height: 40px;
    }
}