/**
 * Trusted Section Block Styles
 *
 * Full-width white, centered section with a heading, a short 4px accent line,
 * a description and a grid of linked brand logos (five per row on desktop).
 *
 * Reference design: child-theme-sections-screenshots/trusted-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
   ========================================================================== */
.trusted-section {
    width: 100%;
    margin: 0;
    padding: 70px 0;
    background-color: var(--color-white, #ffffff);
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    text-align: center;
}

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

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

/* Description
   ========================================================================== */
.trusted-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);
}

.trusted-section__description p {
    margin: 0 0 18px 0;
}

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

/* Brand logos grid - five per row
   ========================================================================== */
.trusted-section__brands {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 30px;
}

.trusted-section__brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trusted-section__brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.trusted-section__brand-link:hover,
.trusted-section__brand-link:focus-visible {
    opacity: 0.7;
    outline: none;
}

.trusted-section__brand img {
    display: block;
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

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

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

    .trusted-section__brands {
        gap: 24px 28px;
    }

    .trusted-section__brand img {
        max-height: 70px;
    }
}

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

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

    .trusted-section__description {
        margin-bottom: 40px;
        font-size: 14px;
    }

    .trusted-section__brands {
        gap: 20px 24px;
    }

    .trusted-section__brand img {
        max-height: 50px;
    }
}
