/**
 * Approach Section Block Styles
 *
 * Full-width section with a centered heading, a short 4px accent line and a row
 * of numbered steps. Each step has a shadowed circle (icon + number badge), a
 * title and a description, with an arrow pointing to the next step. Background
 * colour is set inline (default pale blue).
 *
 * Reference design: child-theme-sections-screenshots/approach-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, background set inline (default pale blue)
   ========================================================================== */
.approach-section {
    width: 100%;
    margin: 0;
    padding: 70px 0;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
}

.approach-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
   ========================================================================== */
.approach-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;
}

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

/* Items row
   ========================================================================== */
.approach-section__items {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}

.approach-section__item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Circle with icon + number badge
   ========================================================================== */
.approach-section__circle {
    position: relative;
    width: 112px;
    height: 112px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white, #ffffff);
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(13, 30, 59, 0.12);
}

.approach-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
}

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

.approach-section__number {
    position: absolute;
    left: 15%;
    bottom: 3px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 50%;
    background-color: var(--color-teal, #17abc1);
    color: var(--color-white, #ffffff);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(13, 30, 59, 0.18);
}

/* Step text
   ========================================================================== */
.approach-section__item-title {
    margin: 0 0 12px 0;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-navy, #0d1e3b);
}

.approach-section__description {
    max-width: 220px;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text, #252525);
}

.approach-section__description p {
    margin: 0 0 10px 0;
}

.approach-section__description p:last-child {
    margin-bottom: 0;
}

/* Arrow between steps (aligned to the circle row)
   ========================================================================== */
.approach-section__arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Vertically centre on the 112px circle. */
    margin-top: 40px;
    color: var(--color-navy, #0d1e3b);
}

.approach-section__arrow svg {
    width: 44px;
    height: 44px;
    display: block;
}

/* Responsive - Tablet (wrap, hide arrows)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
    .approach-section {
        padding: 60px 0;
    }

    .approach-section__title {
        font-size: 26px;
    }

    .approach-section__items {
        flex-wrap: wrap;
        gap: 40px 20px;
    }

    .approach-section__item {
        flex: 0 1 28%;
    }

    .approach-section__arrow {
        display: none;
    }
}

/* Responsive - Mobile (stack, hide arrows)
   ========================================================================== */
@media (max-width: 768px) {
    .approach-section {
        padding: 50px 0;
    }

    .approach-section__title {
        font-size: 22px;
    }

    .approach-section__line {
        margin-bottom: 40px;
    }

    .approach-section__items {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .approach-section__item {
        flex: 1 1 auto;
        width: 100%;
        max-width: 320px;
    }

    .approach-section__arrow {
        display: none;
    }

    .approach-section__description {
        max-width: 320px;
    }
}
