/* cms-promo-tiles v1.0.9 */

.cms-promo-tiles-outer {
    width: 100%;
}

.cms-promo-tiles {
    padding: 40px 15px;
}

.cms-promo-tiles__section-heading {
    text-align: center;
    font-family: "Crimson Text", serif;
    font-size: 35px;
    color: #d7b364;
    margin: 0 0 15px 0;
}

.cms-promo-tiles__section-intro {
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    color: #333333;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.cms-promo-tiles__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.cms-promo-tiles__row--align-left .cms-promo-tiles__content {
    align-items: flex-start;
    text-align: left;
}

.cms-promo-tiles__row--align-center .cms-promo-tiles__content {
    align-items: center;
    text-align: center;
}

.cms-promo-tiles__row--align-left .cms-promo-tiles__cta-button {
    align-self: flex-start;
}

.cms-promo-tiles__row--align-center .cms-promo-tiles__cta-button {
    align-self: center;
}

.cms-promo-tiles__tile {
    position: relative;
    flex: 0 1 340px;
    max-width: 380px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #4a3728;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-promo-tiles__tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.cms-promo-tiles__corner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 3px;
}

.cms-promo-tiles__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.cms-promo-tiles__link:hover {
    text-decoration: none;
}

.cms-promo-tiles__overlay {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 25px 20px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, background-image 0.2s ease;
}

.cms-promo-tiles__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.cms-promo-tiles__overlay--flat .cms-promo-tiles__content {
    justify-content: center;
}

.cms-promo-tiles__overlay--gradient .cms-promo-tiles__content {
    justify-content: flex-end;
}

.cms-promo-tiles__stat {
    font-family: "Crimson Text", serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    text-shadow: 2px 2px 1px #000000;
    margin: 0 0 4px 0;
}

.cms-promo-tiles__stat-label {
    display: inline-block;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #d7b364;
    text-shadow: 2px 2px 1px #000000;
    margin-left: 6px;
    vertical-align: middle;
}

.cms-promo-tiles__heading {
    font-family: "Crimson Text", serif;
    font-size: 25px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 1px #000000;
    margin: 0 0 8px 0;
}

.cms-promo-tiles__subtext {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 2px 2px 1px #000000;
    margin: 0 0 15px 0;
}

.cms-promo-tiles__cta-button {
    display: inline-block;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
    padding: 10px 22px;
}

/* 768-1199px: narrow slightly to stay closer to a 3-across layout */
@media (min-width: 768px) and (max-width: 1199px) {
    .cms-promo-tiles__tile {
        flex: 0 1 280px;
    }
}

/* 480-767px: single column, matches site's category/testimonial stacking breakpoint */
@media (max-width: 767px) {
    .cms-promo-tiles__row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .cms-promo-tiles__tile {
        flex: 0 1 auto;
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 479px) {
    .cms-promo-tiles__tile {
        max-width: 285px;
    }

    .cms-promo-tiles__stat {
        font-size: 36px;
    }

    .cms-promo-tiles__heading {
        font-size: 20px;
    }
}
