
/* ==========================================
   EXPRESS SAFETY - SIGN MATERIALS GUIDE
   Compact responsive layout
   ========================================== */

#es-materials {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 0 35px;
    color: #102b4b;
    line-height: 1.45;
}

#es-materials,
#es-materials * {
    box-sizing: border-box;
}

/* INTRODUCTION */

#es-materials .intro {
    margin: 0 0 12px;
    color: #53647a;
    font-size: 14px;
}

/* BENEFITS BAR */

#es-materials .benefits {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    background: #edf8eb;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 12px 0 20px;
    color: #008343;
    font-size: 12px;
    font-weight: 700;
}

#es-materials .benefits span {
    white-space: nowrap;
}

/* SECTION HEADINGS */

#es-materials h3 {
    font-size: 21px;
    line-height: 1.25;
    color: #102b4b;
    margin: 18px 0 3px;
    padding: 0;
}

#es-materials .section-desc {
    font-size: 12px;
    color: #53647a;
    margin: 0 0 12px;
}

/* EVERYDAY MATERIALS - FOUR COLUMNS */

#es-materials .grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 0 12px;
    padding: 0;
    align-items: stretch;
}

/* GLOW AND SPECIALIST - TWO COLUMNS */

#es-materials .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* ALL CARDS */

#es-materials .card {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #d7dee6;
    border-radius: 7px;
    background: #f0f4f8;
    box-shadow: none;
}

/* EVERYDAY CARD IMAGES */

#es-materials .grid:not(.two) .card img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 105px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    object-fit: cover !important;
    object-position: center center;
}

/* EVERYDAY CARD TEXT */

#es-materials .grid:not(.two) .card .copy {
    flex: 1;
    padding: 10px !important;
    background: #f0f4f8;
}

/* SIDE-BY-SIDE CARDS */

#es-materials .grid.two .card {
    flex-direction: row !important;
    align-items: stretch;
    min-height: 130px;
}

/* SIDE-BY-SIDE IMAGES */

#es-materials .grid.two .card img {
    display: block !important;
    flex: 0 0 44%;
    width: 44% !important;
    max-width: 44% !important;
    height: auto !important;
    min-height: 130px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    object-fit: cover !important;
    object-position: center center;
}

/* SIDE-BY-SIDE TEXT */

#es-materials .grid.two .card .copy {
    flex: 1;
    min-width: 0;
    padding: 10px 12px !important;
    background: #f0f4f8;
}

/* CARD HEADINGS */

#es-materials .copy h4 {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    color: #102b4b;
    margin: 0 0 8px;
    padding: 0;
}

/* MATERIAL SPECIFICATIONS */

#es-materials .spec {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 8px;
}

#es-materials .spec span {
    display: inline-block;
    padding: 3px 6px;
    background: #e4f3e8;
    border-radius: 3px;
    color: #006c3a;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
}

/* CARD BENEFIT LISTS */

#es-materials .copy ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px;
    line-height: 1.4;
}

#es-materials .copy li {
    position: relative;
    list-style: none !important;
    padding: 0 0 0 15px !important;
    margin: 0 0 5px !important;
}

#es-materials .copy li:last-child {
    margin-bottom: 0 !important;
}

#es-materials .copy li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: #008a45;
    font-weight: 700;
}

/* CONTACT BAR */

#es-materials .contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 0;
    padding: 12px 15px;
    border: 1px solid #d9e7f4;
    border-radius: 6px;
    background: #eaf3ff;
}

#es-materials .contact p {
    margin: 0;
    font-size: 12px;
}

#es-materials .contact a {
    display: inline-block;
    padding: 9px 16px;
    background: #008a45;
    border-radius: 5px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

#es-materials .contact a:hover {
    background: #006d36;
}

/* TABLETS */

@media (max-width: 1000px) {

    #es-materials .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #es-materials .grid.two {
        grid-template-columns: 1fr !important;
    }

    #es-materials .grid:not(.two) .card img {
        height: 145px !important;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    #es-materials {
        padding-bottom: 25px;
    }

    #es-materials .benefits {
        justify-content: flex-start;
        font-size: 11px;
    }

    #es-materials h3 {
        font-size: 19px;
    }

    #es-materials .grid,
    #es-materials .grid.two {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    #es-materials .grid:not(.two) .card img {
        height: 160px !important;
    }

    #es-materials .grid.two .card {
        flex-direction: column !important;
    }

    #es-materials .grid.two .card img {
        width: 100% !important;
        max-width: 100% !important;
        height: 160px !important;
        min-height: 0;
        flex: none;
    }

    #es-materials .grid.two .card .copy {
        padding: 12px !important;
    }

    #es-materials .contact {
        align-items: flex-start;
    }

}

/* Align CMS page title with Materials Guide content */

body#cms .js-content-wrapper > h1,
body#cms .center-column > h1,
body#cms h1.page-heading {
    max-width: 1150px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
