/**
 * Values Section Block Styles
 *
 * Full-width white section with a centered heading, a short 4px accent line and
 * a grid of core-value cards (four per row). Each card has an image, a title
 * and a description.
 *
 * Reference design: child-theme-sections-screenshots/values-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
   ========================================================================== */
.values-section {
    width: 100%;
    margin: 0;
    padding: 70px 0;
    background-color: var(--color-white, #ffffff);
    font-family: var(--font-primary), 'Montserrat', sans-serif;
}

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

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

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

/* Card
   ========================================================================== */
.values-section__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 34px 26px 32px;
    background-color: var(--color-white, #ffffff);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(13, 30, 59, 0.1);
}

.values-section__card-image {
    width: 80px;
    height: 80px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.values-section__card-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.values-section__card-title {
    margin: 0 0 14px 0;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-navy, #0d1e3b);
}

.values-section__card-description {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text, #252525);
}

.values-section__card-description p {
    margin: 0 0 12px 0;
}

.values-section__card-description p:last-child {
    margin-bottom: 0;
}

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

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

    .values-section__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

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

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

    .values-section__line {
        margin-bottom: 36px;
    }

    .values-section__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

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