/*
  Page-specific stylesheet for the Quality Control page
  Version: 2.0 - "The Laboratory of Precision" Soul Injected
*/

/* --- Shell Module Consistency --- */
.page-hero,
.final-cta-section {
    background-image: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../images/backgrounds/hero-bg-quality.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- Section 1: "Cornerstone Manifesto" --- */
/* ★ MODIFIED: Added grid background for brand consistency ★ */
.manifesto-section {
    padding: var(--section-padding);
    background-color: var(--color-light);
    text-align: center;
    background-image: url(../images/backgrounds/grid-pattern.svg);
}

.manifesto-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.manifesto-text {
    font-size: 1.2rem;
    color: var(--color-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Section 2: "Dynamic Scan" Inspection Bay --- */
/* ★ MODIFIED: Changed background to light grey for a cleaner, high-tech feel ★ */
.scan-bay-section {
    padding: var(--section-padding);
    background-color: var(--color-light-grey);
    /* Changed from --color-dark */
}

.scan-bay-section .section-title {
    color: var(--color-dark);
    /* Changed from --color-light */
}

.scan-bay-stage {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.scan-bay-bg {
    width: 100%;
    height: auto;
}

.scan-light {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 122, 255, 0.2),
            transparent);
    animation: scan 5s ease-in-out infinite 1s;
}

@keyframes scan {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* ★ MODIFIED: Complete style recalibration for light grey background ★ */
.scan-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 4rem auto 0 auto;
    /* REMOVED: color: var(--color-light); */
    text-align: center;
}

.scan-feature-item img {
    height: 40px;
    margin-bottom: 1.5rem;
    /* ★ ADDED: Filter to ensure icons are dark and visible ★ */
    filter: invert(15%);
}

.scan-feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    /* ★ ADDED: Ensure title text is dark ★ */
    color: var(--color-dark);
}

.scan-feature-item p {
    color: var(--color-secondary);
    line-height: 1.6;
}

/* --- Section 3: POLISHED "Rigorous Tristep" Process --- */
.process-flow-section {
    padding: var(--section-padding);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 5%;
    right: 5%;
    height: 3px;
    background-color: var(--color-border);
    z-index: -1;
}

.timeline-step {
    text-align: center;
}

.timeline-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.5rem auto;
    background-color: var(--color-light);
    border-radius: 50%;
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.timeline-step:hover .timeline-icon {
    border-color: var(--color-primary);
}

.timeline-icon img {
    height: 32px;
}

.timeline-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-step p {
    color: var(--color-secondary);
    line-height: 1.6;
}

/* --- Section 4: POLISHED "Trust Dyad" Certification --- */
/* ★ ENSURE this section has a distinct background ★ */
.trust-dyad-section {
    padding: var(--section-padding);
    background-color: var(--color-light);
    /* Changed from light-grey to white */
}

/* ★ MODIFIED: Removed the unnecessary container style for better layout breathing room ★ */
.trust-dyad-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    /* Increased gap to compensate for removed padding */
    max-width: 1000px;
    margin: 0 auto;
    /* REMOVED: background-color, padding, border-radius, border, box-shadow */
}

@media (min-width: 768px) {
    .trust-dyad-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.trust-card h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.trust-card ul {
    list-style: none;
}

.trust-card li {
    position: relative;
    padding-left: 28px;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.trust-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-primary);
    font-weight: bold;
}

.iso-showcase {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.iso-showcase img {
    flex-shrink: 0;
    width: 120px;
    height: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.iso-showcase p {
    color: var(--color-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}