/**
 * Text 4 Columns Block Styles
 *
 * Light teal background section with:
 * - Optional decorative background image
 * - Section label with crown icon
 * - Title with teal highlighted words
 * - Subtitle text
 * - Intro body text
 * - 4-column card grid (icon, title, description)
 *
 * Based on the about-mission section from about.html
 */

/* CSS Variables from the theme */
:root {
    --smith-grey: #3c3c3c;
    --smith-teal: #0097a7;
}

/**
 * Text 4 Columns Block - Full Width Styles
 *
 * Matches the EverSmith HTML design exactly:
 * - Full width section (100%, not 100vw with breakout)
 * - Light teal background (#E9F7F8)
 */
.text-4-columns-block {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    padding: 100px 80px 80px;
    background: #E9F7F8;
    overflow: hidden;
    box-sizing: border-box;
}

/* Decorative background image */
.text-4-columns-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.24;
    pointer-events: none;
    max-width: none;
    transform-origin: center center;
}

/* Header area */
.text-4-columns-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 1056px;
    text-align: center;
}

/* Body area with cards grid */
.text-4-columns-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1280px;
}

/* Intro text before cards */
.text-4-columns-intro {
    margin: 0 0 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: var(--smith-grey);
    text-align: center;
}

/* Cards grid - 4 columns */
.text-4-columns-grid {
    display: flex;
    gap: 24px;
    width: 100%;
}

/* Individual card */
.text-4-columns-card {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 24px;
    background: transparent;
}

/* Card icon container */
.text-4-columns-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-4-columns-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card description text */
.text-4-columns-card-text {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--smith-grey);
}

/* Section label styling (matches home-section-label from global styles) */
.text-4-columns-block .home-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: var(--smith-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-4-columns-block .home-section-label img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ============================================================
   Responsive Styles
   ============================================================ */

/* Tablet breakpoint - 1024px */
@media (max-width: 1024px) {
    .text-4-columns-block {
        padding: 64px 32px;
        gap: 40px;
    }

    .text-4-columns-intro {
        font-size: 16px;
    }

    /* Cards wrap to 2x2 grid on tablet */
    .text-4-columns-grid {
        flex-wrap: wrap;
    }

    .text-4-columns-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 280px;
    }
}

/* Mobile breakpoint - 768px */
@media (max-width: 768px) {
    .text-4-columns-block {
        padding: 48px 20px;
        gap: 32px;
    }

    .text-4-columns-intro {
        font-size: 16px;
    }

    /* Cards stack in single column on mobile */
    .text-4-columns-grid {
        flex-direction: column;
        gap: 16px;
    }

    .text-4-columns-card {
        flex: 1 1 100%;
        min-width: auto;
        padding: 24px 16px;
    }
}

/* Small mobile breakpoint - 480px */
@media (max-width: 480px) {
    .text-4-columns-block {
        padding: 48px 16px;
        gap: 32px;
    }

    .text-4-columns-card {
        gap: 16px;
        padding: 20px 16px;
    }

    .text-4-columns-card-icon {
        width: 36px;
        height: 36px;
    }

    .text-4-columns-card-text {
        font-size: 14px;
    }
}
