/*
  Page-specific stylesheet for Consumer Electronics Industry Page
  Version: 1.0 - "The Art of the Tangible" 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/bg-industry-consumer.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- Universal Section Spacing & Subtitles --- */
.values-consumer-section,
.materials-consumer-section {
    padding: var(--section-padding);
}

.values-consumer-intro .section-subtitle {
    max-width: 700px;
    margin: -2.5rem auto 3rem auto;
}

/* --- Section 1: Core Values (Light BG, "Design Philosophy Whiteboard") --- */
.values-consumer-section {
    background-color: var(--color-light);
}

.values-consumer-intro {
    text-align: center;
}

.values-consumer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.value-item:hover {
    background-color: var(--color-light-grey);
}

.value-item img {
    height: 40px;
    margin: 0 auto 1.5rem auto;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.value-item p {
    color: var(--color-secondary);
    line-height: 1.6;
}

/* --- Section 2: Consumer Applications (Dark BG, "Alternating Editorial Layout") - FINAL VERSION --- */
.applications-consumer-section {
    background-color: var(--color-dark);
    padding: var(--section-padding);
}

.applications-consumer-intro {
    text-align: center;
    margin-bottom: 5rem;
    /* Increased space for a more premium feel */
}

.applications-consumer-intro .section-title {
    color: var(--color-light);
}

.applications-consumer-intro .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: -2.5rem auto 0 auto;
}

.editorial-showcase-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    /* Generous spacing between items */
    max-width: 1100px;
    margin: 0 auto;
}

.editorial-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .editorial-item {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* The core of the alternating logic */
@media (min-width: 768px) {
    .editorial-item:nth-child(even) .editorial-image-wrapper {
        order: 1;
    }
}

.editorial-image-wrapper {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.editorial-image-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.editorial-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-content-wrapper {
    color: var(--color-light);
}

.editorial-content-wrapper h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.editorial-content-wrapper p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 450px;
}

/* --- Section 3: CMF Materials (Light Grey BG, "CMF Swatch Library") --- */
.materials-consumer-section {
    background-color: var(--color-light-grey);
}

.materials-consumer-section .section-title {
    text-align: center;
}

.materials-consumer-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.swatch-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    background-color: var(--color-light);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.swatch-bar:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

@media (min-width: 768px) {
    .swatch-bar {
        grid-template-columns: 1fr 1.5fr;
        gap: 0;
    }
}

.swatch-bar-img {
    height: 250px;
}

.swatch-bar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swatch-bar-content {
    padding: 2.5rem;
}

.swatch-bar-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.swatch-bar-content p {
    color: var(--color-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.swatch-bar-content p strong {
    color: var(--color-dark);
    font-weight: 700;
}