/* ============================================================
   Three Columns Content Block (Figma node 247:400)
   Section is 1440px wide with 80px side padding = 1280px inner.
   Cards are tall (fixed min-height) with text on top, photo bottom.
   ============================================================ */

.three-columns-content-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
    padding: 0 80px 80px;
    width: 100%;
}

/* Section title: default .es-section-title is 40px; --compact restores 26px-scale heading */
.three-columns-content-block > .es-section-title.es-section-title--compact {
    width: 100%;
    max-width: 1280px;
    text-align: center;
}

/* 3 tall cards in a row — exactly 1280px wide like Figma */
.three-columns-content-cards {
    display: flex;
    gap: 32px;
    width: 100%;
    max-width: 1280px;
}

/* Each card: text top + photo snapped to bottom */
.three-columns-content-card {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background: rgba(233, 247, 248, 0.3);
    overflow: hidden;
    min-height: 800px;
}

/* Text content area inside each card */
.three-columns-content-card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 3px 24px;
    flex: 1;
}

.three-columns-content-card-text h3 {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.4;
    color: var(--smith-grey);
}

.three-columns-content-card-text p {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: var(--text-regular);
    line-height: 1.5;
    color: var(--smith-grey);
}

/* Note: .home-cta-link styles are defined globally in the theme */

/* Photo snapped to the bottom of each card */
.three-columns-content-card-image {
    flex-shrink: 0;
    overflow: hidden;
}

.three-columns-content-card-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ============================================================
   Tablet breakpoint (max-width: 1024px)
   Keep 3 columns but adjust spacing
   ============================================================ */
@media (max-width: 1024px) {
    .three-columns-content-block {
        padding: 0 32px 60px;
    }

    .three-columns-content-cards {
        gap: 20px;
    }

    .three-columns-content-card {
        min-height: 600px;
    }

    .three-columns-content-card-text h3 {
        font-size: 22px;
    }
}

/* ============================================================
   Mobile breakpoint (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    .three-columns-content-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 20px 48px;
        gap: 24px;
    }

    .three-columns-content-cards {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    .three-columns-content-card {
        flex: 1 1 auto;
        min-height: auto;
        width: 100%;
        margin-bottom: 40px;
    }

    .three-columns-content-card-image {
        height: auto;
        margin-top: 50px;
    }

    .three-columns-content-block > .es-section-title.es-section-title--compact {
        text-align: left;
    }

    .three-columns-content-card-text h3 {
        font-size: 22px;
    }
}

/* ============================================================
   Small mobile breakpoint (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    .three-columns-content-card-text {
        padding: 3px 16px;
    }

    .three-columns-content-card-text h3 {
        font-size: 20px;
    }

    .three-columns-content-card-text p {
        font-size: 14px;
    }

    .three-columns-content-card-text .home-cta-link {
        font-size: 16px;
    }
}
