/**
 * Four Columns Cards Block Styles
 *
 * Section with 4 cards in a row, each containing:
 * - Icon image
 * - Title
 * - Content text
 *
 * Based on the careers-values section from careers.html
 */

/* CSS Variables from the theme */
:root {
    --smith-grey: #3c3c3c;
}

/**
 * Four Columns Cards Block - Full Width Styles
 *
 * Matches the EverSmith HTML design exactly:
 * - Full width section (100%, not 100vw with breakout)
 * - White background
 * - 4-column card grid
 */
.four-columns-cards-block {
    position: relative;
    width: 100%;
    padding: 0 80px 60px;
    background: #fff;
    box-sizing: border-box;
}

/* Inner container */
.four-columns-cards-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Cards grid - 4 columns */
.four-columns-cards-grid {
    display: flex;
    gap: 24px;
    width: 100%;
}

/* Individual card */
.four-columns-card {
    flex: 1 1 0;
    min-width: 0;
    padding: 40px 24px;
}

/* Card icon container */
.four-columns-card-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
}

.four-columns-card-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card title: theme .es-card-title; spacing below title only */
.four-columns-card .es-card-title {
    margin: 0 0 8px;
}

/* Card content text */
.four-columns-card-content {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--smith-grey);
    margin: 0;
}

/* ============================================================
   Responsive Styles
   ============================================================ */

/* Tablet breakpoint - 1024px */
@media (max-width: 1024px) {
    .four-columns-cards-block {
        padding-left: 32px;
        padding-right: 32px;
    }

    .four-columns-cards-inner,
    .four-columns-cards-grid {
        flex-direction: column;
    }

    /* Cards stack in single column on tablet */
    .four-columns-cards-grid {
        gap: 16px;
    }

    .four-columns-card {
        flex: 1 1 100%;
        min-width: auto;
        padding: 32px 20px;
    }
}

/* Mobile breakpoint - 768px */
@media (max-width: 768px) {
    .four-columns-cards-block {
        padding-left: 20px;
        padding-right: 20px;
    }

    .four-columns-card {
        padding: 24px 16px;
    }

    .four-columns-card-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 16px;
    }

    .four-columns-card-content {
        font-size: 15px;
    }
}

/* Small mobile breakpoint - 480px */
@media (max-width: 480px) {
    .four-columns-cards-block {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 48px;
    }

    .four-columns-card {
        padding: 20px 16px;
    }
}
