/*
  Page-specific stylesheet for Tooling & Molding Service Page
  Version: 6.0 - "Blueprint & Reality" 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-molding.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- Universal Section Subtitle --- */
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -2.5rem auto 3rem auto;
    color: var(--color-secondary);
    line-height: 1.6;
}

/* --- Section 1: "Dual Pillars" Advantages --- */
.advantages-tm-section {
    padding: var(--section-padding);
}

.dual-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media(min-width: 768px) {
    .dual-pillars-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pillar-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 400px;
    padding: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: scale(1.02);
}

.pillar-content {
    color: var(--color-light);
}

.pillar-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pillar-content p {
    line-height: 1.6;
    max-width: 400px;
}

/* --- Section 2: "Blueprint & Reality" Core Module --- */
.blueprint-reality-section {
    padding: var(--section-padding);
    background-color: var(--color-light-grey);
}

.comparison-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    line-height: 0;
}

/* This is the NEW, PERFECTED code */
img-comparison-slider {
    --divider-width: 3px;
    --divider-color: var(--color-dark);
    /* Changed to dark */
    --handle-size: 50px;
    --handle-color: var(--color-dark);
    /* Changed to dark */
    --handle-icon-color: var(--color-light);
}

.comparison-figure {
    margin: 0;
}

.comparison-figure img {
    width: 100%;
    display: block;
}

.comparison-figure figcaption {
    position: absolute;
    bottom: 0;
    padding: 0.75rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-light);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 0 8px 0 0;
}

.comparison-figure[slot="second"] figcaption {
    right: 0;
    border-radius: 8px 0 0 0;
}


/* --- Section 3: "Material Pellets" Showcase --- */
.materials-pellets-section {
    padding: var(--section-padding);
}

.pellets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pellet-card {
    text-align: center;
}

.pellet-bg {
    height: 200px;
    width: 200px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pellet-card:hover .pellet-bg {
    transform: scale(1.05);
}

.pellet-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

/* --- Section 4: Polished Tooling Matrix --- */
.tooling-matrix-section {
    padding: var(--section-padding);
    background-color: var(--color-light-grey);
}

.tooling-matrix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .tooling-matrix {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
}

.matrix-column {
    background-color: var(--color-light);
    padding: 2.5rem;
}

.matrix-column:last-child {
    border-left: 1px solid var(--color-border);
    background-color: #fdfdfd;
    /* Subtle distinction */
}

.matrix-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.matrix-header h3 {
    font-size: 1.75rem;
}

.matrix-column ul {
    list-style: none;
}

.matrix-column li {
    position: relative;
    padding-left: 28px;
    color: var(--color-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.matrix-column li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.matrix-column li strong {
    color: var(--color-dark);
}