/* CertainTeed Section Color Overrides */
.shingle-item {
    background-color: #0097b2;
    border-radius: 15px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 0;
    margin-bottom: 2rem;
    height: 280px;
    transition: background-color 0.3s ease;
}

.shingle-item:hover {
    background-color: var(--dark-bg);
}

/* Image on right side variant */
.shingle-item.image-right {
    grid-template-columns: 1fr 300px;
}

.shingle-item.image-right .shingle-visual-img {
    order: 2;
}

.shingle-item.image-right .shingle-info {
    order: 1;
}

.shingle-visual-img {
    width: 300px;
    height: 280px;
    object-fit: cover;
}

.shingle-info {
    padding: 2rem;
    color: var(--text-white);
}

.shingle-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.shingle-category {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.shingle-description {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-tags {
    display: flex;
    gap: 1rem;
}

.feature-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
}

/* Mobile simplification for CertainTeed tiles */
@media (max-width: 768px) {
    /* Stack tiles vertically with full-width image */
    .shingle-item,
    .shingle-item.image-right {
        display: block;
        height: auto;
        padding: 0;
    }

    .shingle-item .shingle-visual-img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }

    /* Default: keep full info on mobile, but for specified products show only image + title */
    /* Landmark */
    .shingles-showcase .shingle-item:nth-of-type(1) .shingle-info .shingle-category,
    .shingles-showcase .shingle-item:nth-of-type(1) .shingle-info .shingle-description,
    .shingles-showcase .shingle-item:nth-of-type(1) .shingle-info .feature-tags { display: none; }

    /* Landmark Pro */
    .shingles-showcase .shingle-item:nth-of-type(2) .shingle-info .shingle-category,
    .shingles-showcase .shingle-item:nth-of-type(2) .shingle-info .shingle-description,
    .shingles-showcase .shingle-item:nth-of-type(2) .shingle-info .feature-tags { display: none; }

    /* Landmark Premium */
    .shingles-showcase .shingle-item:nth-of-type(3) .shingle-info .shingle-category,
    .shingles-showcase .shingle-item:nth-of-type(3) .shingle-info .shingle-description,
    .shingles-showcase .shingle-item:nth-of-type(3) .shingle-info .feature-tags { display: none; }

    /* Northgate ClimateFlex */
    .shingles-showcase .shingle-item:nth-of-type(4) .shingle-info .shingle-category,
    .shingles-showcase .shingle-item:nth-of-type(4) .shingle-info .shingle-description,
    .shingles-showcase .shingle-item:nth-of-type(4) .shingle-info .feature-tags { display: none; }

    /* Landmark Presidential TL */
    .shingles-showcase .shingle-item:nth-of-type(5) .shingle-info .shingle-category,
    .shingles-showcase .shingle-item:nth-of-type(5) .shingle-info .shingle-description,
    .shingles-showcase .shingle-item:nth-of-type(5) .shingle-info .feature-tags { display: none; }

    /* Ensure Landmark (1) and Landmark Premium (3) images match smaller height of others */
    .shingles-showcase .shingle-item:nth-of-type(1) .shingle-visual-img,
    .shingles-showcase .shingle-item:nth-of-type(3) .shingle-visual-img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    /* Tighten spacing for mobile title-only cards */
    .shingle-item .shingle-info { 
        padding: 0.75rem 1rem 1.25rem; 
    }
    .shingle-item .shingle-title { 
        font-size: 1.4rem; 
        margin: 0.5rem 0 0; 
    }
}
