/* ==========================================================================
   Service pages

   Shared by every page under /services/ — an introduction, then a run of
   headed topics, then the fees or quotation button.
   ========================================================================== */

.service-intro {
    padding: 100px 0 60px;
    background-color: var(--color-white);
}

.service-intro__inner {
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 15px;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
}

/* A page whose content is only a paragraph or two would otherwise sit in a
   thin band between the banner and the call to action */
.service-intro--sparse {
    padding: 150px 0 140px;
}

.service-intro__eyebrow {
    margin-bottom: 10px;
}

.service-intro__title {
    margin-bottom: 25px;
}

.service-intro__inner > p + p,
.service-intro__inner > ul + p,
.service-intro__inner > p + ul {
    margin-top: 20px;
}

/* The reset strips bullets from lists, so put them back inside page prose */
.service-intro__inner ul,
.service-topic ul {
    margin-top: 20px;
    padding-left: 22px;
    list-style: disc;
}

.service-intro__inner li + li,
.service-topic li + li {
    margin-top: 8px;
}

.service-topic ul {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
}

.service-topics {
    padding: 20px 0 100px;
    background-color: var(--color-white);
}

.service-topics__inner {
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 15px;
}

.service-topic + .service-topic {
    margin-top: 50px;
}

/* Section headings follow the site's other prose pages: maroon, 34px, and
   dropping to 28px/24px on smaller screens */
.service-topic__title {
    margin-bottom: 18px;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-maroon-dark);
}

.service-topic__subtitle {
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-maroon-dark);
}

.service-topic p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
}

.service-topic p + p {
    margin-top: 20px;
}

/* The fees or quotation button sits to the right of the column, as it does on
   the existing website */
.service-topics__fees {
    margin-top: 60px;
    text-align: right;
}

/* Links inside page prose, styled like the ones on the legal document pages */
.service-intro__inner a:not(.button),
.service-topic a:not(.button) {
    color: var(--color-maroon-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.service-intro__inner a:not(.button):hover,
.service-intro__inner a:not(.button):focus-visible,
.service-topic a:not(.button):hover,
.service-topic a:not(.button):focus-visible {
    color: var(--color-secondary);
}

/* The property page opens with its quotation button above the introduction */
.service-intro__inner > .service-topics__fees:first-child {
    margin-top: 0;
    margin-bottom: 30px;
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {

    .service-intro {
        padding: 80px 30px 50px;
    }

    .service-intro--sparse {
        padding: 110px 30px 100px;
    }

    .service-topics {
        padding: 20px 30px 80px;
    }

    .service-intro__inner,
    .service-topics__inner {
        padding-inline: 0;
    }

    .service-intro__inner,
    .service-topic p,
    .service-topic ul {
        font-size: 17px;
    }

    .service-topic__title {
        font-size: 28px;
    }

    .service-topic__subtitle {
        font-size: 22px;
    }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {

    .service-intro {
        padding: 60px 20px 40px;
    }

    .service-intro--sparse {
        padding: 80px 20px 70px;
    }

    .service-topics {
        padding: 20px 20px 60px;
    }

    .service-intro__inner,
    .service-topic p,
    .service-topic ul {
        font-size: 16px;
    }

    .service-topic + .service-topic {
        margin-top: 40px;
    }

    .service-topic__title {
        font-size: 24px;
    }

    .service-topic__subtitle {
        font-size: 20px;
    }

    .service-topics__fees {
        margin-top: 45px;
        text-align: center;
    }
}
