/**
 * What We Build Section Block Styles
 *
 * Full-width white section with a centered heading, a short 4px accent line, a
 * description and a grid of item cards (four per row). Each card has an icon
 * image beside a short text label.
 *
 * Reference design: child-theme-sections-screenshots/what-we-build-section.png
 *
 * @package ACF Child Theme
 */

:root {
    --color-grey: #f3f3f3;
    --color-navy: #0d1e3b;
    --color-teal: #17abc1;
    --color-text: #252525;
    --color-blue: #004e95;
    --color-white: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
}

/* Section wrapper - full-width white background
   ========================================================================== */
.what-we-build-section {
    width: 100%;
    margin: 0;
    padding: 70px 0;
    background-color: var(--color-white, #ffffff);
    font-family: var(--font-primary), 'Montserrat', sans-serif;
}

.what-we-build-section__container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

/* Heading + accent line + description
   ========================================================================== */
.what-we-build-section__title {
    margin: 0 0 18px 0;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-navy, #0d1e3b);
    text-align: center;
}

.what-we-build-section__line {
    display: block;
    width: 60px;
    height: 4px;
    margin: 0 auto 28px auto;
    background-color: var(--color-teal, #17abc1);
}

.what-we-build-section__description {
    max-width: 720px;
    margin: 0 auto 50px auto;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text, #252525);
    text-align: center;
}

.what-we-build-section__description p {
    margin: 0 0 16px 0;
}

.what-we-build-section__description p:last-child {
    margin-bottom: 0;
}

/* Grid - four cards per row
   ========================================================================== */
.what-we-build-section__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Item card (icon + text)
   ========================================================================== */
.what-we-build-section__card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background-color: var(--color-white, #ffffff);
    border: 1px solid #ececec;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(13, 30, 59, 0.06);
}

.what-we-build-section__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.what-we-build-section__icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.what-we-build-section__text {
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-navy, #0d1e3b);
}

/* Responsive - Tablet (two per row)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
    .what-we-build-section {
        padding: 60px 0;
    }

    .what-we-build-section__title {
        font-size: 26px;
    }

    .what-we-build-section__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Responsive - Mobile (one per row)
   ========================================================================== */
@media (max-width: 768px) {
    .what-we-build-section {
        padding: 50px 0;
    }

    .what-we-build-section__title {
        font-size: 22px;
    }

    .what-we-build-section__description {
        margin-bottom: 40px;
        font-size: 14px;
    }

    .what-we-build-section__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .what-we-build-section__card {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
}
