/**
 * Bespoke Software Section Block Styles
 *
 * Full-width section laid out as three columns: a text/button column (1) and a
 * second area spanning two columns (2-3) with intro text on top and two
 * tick-list columns below. Background colour is set inline (default pale blue).
 *
 * Reference design: child-theme-sections-screenshots/bespoke-sofware-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)
   ========================================================================== */
.bespoke-software-section {
    width: 100%;
    margin: 0;
    padding: 60px 0;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
}

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

/* Outer grid: column 1 (intro) + columns 2-3 (content)
   ========================================================================== */
.bespoke-software-section__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

/* Column 1: intro
   ========================================================================== */
.bespoke-software-section__title {
    margin: 0 0 18px 0;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-navy, #0d1e3b);
}

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

.bespoke-software-section__description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text, #252525);
}

.bespoke-software-section__description p {
    margin: 0 0 16px 0;
}

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

.bespoke-software-section__button {
    display: inline-block;
    margin-top: 26px;
    padding: 14px 30px;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-white, #ffffff);
    background: linear-gradient(to right, var(--color-teal, #17abc1), var(--color-blue, #004e95));
    border: none;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.3s ease;
}

.bespoke-software-section__button:hover,
.bespoke-software-section__button:focus-visible {
    opacity: 0.9;
    color: var(--color-white, #ffffff);
    outline: none;
}

/* Second area: intro text + two tick lists
   ========================================================================== */
.bespoke-software-section__text {
    margin: 0 0 22px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-navy, #0d1e3b);
}

.bespoke-software-section__lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
}

.bespoke-software-section__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bespoke-software-section__list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.bespoke-software-section__list-item:last-child {
    margin-bottom: 0;
}

.bespoke-software-section__tick {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    /* Nudge the icon to align with the first line of text. */
    margin-top: 1px;
}

.bespoke-software-section__tick img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bespoke-software-section__list-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--color-text, #252525);
}

/* Responsive - Tablet (intro stacks above the content)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
    .bespoke-software-section__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* Responsive - Mobile (single column throughout)
   ========================================================================== */
@media (max-width: 768px) {
    .bespoke-software-section {
        padding: 45px 0;
    }

    .bespoke-software-section__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bespoke-software-section__title {
        font-size: 22px;
    }

    .bespoke-software-section__lists {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
