/**
 * Seventh Section Block
 *
 * Full-width teal section: centred title, description and optional button, then
 * white cards (three per row) each with a title and description.
 * Matches child-theme-sections-screenshots/seventh-section.png
 */

:root {
    --color-navy: #385d8c;
    --color-pale: #eef3f8;
    --color-teal: #93cddc;
    --color-sky:  #d2eaf0;
    --color-text: #787878;
    --color-white: #ffffff;
}

.seventh-section {
    background-color: var(--color-teal);
    font-family: 'Roboto', sans-serif;
    padding: 60px 0;
}

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

.seventh-section__title {
    color: var(--color-navy);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 20px;
}

.seventh-section__intro {
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.seventh-section__intro p {
    color: inherit;
    margin: 0 0 1em;
}

.seventh-section__intro p:last-child {
    margin-bottom: 0;
}

.seventh-section__intro-button {
    text-align: center;
    margin-top: 26px;
}

/* ---- Cards ---- */
.seventh-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    margin-top: 45px;
}

.seventh-section__card {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 40px 38px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.seventh-section__card-title {
    color: var(--color-navy);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 18px;
}

.seventh-section__card-text {
    color: var(--color-text);
    font-size: 17px;
    line-height: 1.6;
}

.seventh-section__card-text p {
    color: inherit;
    margin: 0 0 1em;
}

.seventh-section__card-text p:last-child {
    margin-bottom: 0;
}

/* ---- Button (teal secondary, per style guide) ---- */
.seventh-section .btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.seventh-section .btn-secondary {
    background-color: var(--color-white);
    color: var(--color-navy);
}

.seventh-section .btn-secondary:hover,
.seventh-section .btn-secondary:focus {
    background-color: var(--color-navy);
    color: var(--color-white);
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .seventh-section__title {
        font-size: 26px;
    }

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

    .seventh-section__card {
        padding: 34px 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .seventh-section {
        padding: 40px 0;
    }

    .seventh-section__title {
        font-size: 24px;
    }

    .seventh-section__intro {
        font-size: 16px;
    }

    .seventh-section__grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 34px;
    }

    .seventh-section__card {
        padding: 30px 26px;
    }

    .seventh-section__card-title {
        font-size: 21px;
    }

    .seventh-section__card-text {
        font-size: 16px;
    }
}
