/* Externalisation page only. Loaded after main.css, which holds the shared blocks
   (hero, externalisation hero, light section, site header, section title, location card, function card, contact, contact modal, wide container…).

   Contents
   1. Externalisation page hero
   2. Comparison
   3. Functions
   4. Audience
   5. Team locations
   6. FAQ
*/


/* ==========================================================================
   Externalisation page hero
   ========================================================================== */

/* Overrides main.css's shared externalisation hero. Only this page loads this file, so implementation.html keeps the shared values.
   Desktop only: the design has no tablet or mobile version */
@media (min-width: 992px) {
    .externalisation-hero {
        padding-bottom: 90px;
    }

    .externalisation-hero__title {
        line-height: 85px;
    }

    .externalisation-hero__title .hero__subtitle{
        line-height: normal;
    }

    .externalisation-hero__content {
        padding-top: 82px;
    }

    .externalisation-hero__description {
        padding-top: 40px;
    }

    .externalisation-hero__buttons {
        padding-top: 52px;
    }
}


/* ==========================================================================
   Comparison
   ========================================================================== */

.comparison {
    padding-top: 107px;
}

.comparison__title,
.functions__title,
.faq__title {
    margin: 0px;
    color: var(--color-main);
}

.comparison__title,
.functions__title {
    text-shadow: 0 0 30px var(--color-white);
}

.comparison__intro {
    max-width: 890px;
    margin: 47px auto 54px auto;
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-bold);
    color: var(--color-main);
}

/* White panel; the highlighted column fills its right half. No gutter, like Bootstrap's .g-0 (purged from the vendor file) */
.comparison__table {
    --bs-gutter-x: 0;

    overflow: hidden;
    background-color: var(--color-white);
    border-radius: var(--radius-large);
}

/* --comparison-indent: space for the icon in front of the items, also used to line the heading up with the text */
.comparison__column {
    --comparison-indent: 44px;

    padding: 54px 60px 47px 71px;
    color: var(--color-primary);
}

.comparison__column--highlight {
    --comparison-indent: 49px;

    padding-left: 82px;
    color: var(--color-main);
    background-color: var(--color-primary-pale);
}

.comparison__heading {
    margin-bottom: 34px;
    padding-left: var(--comparison-indent);
    font-size: 24px;
    font-weight: var(--font-weight-bold);
}

.comparison__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    list-style: none;
}

.comparison__list--check {
    font-weight: var(--font-weight-bold);
}

.comparison__item {
    position: relative;
    max-width: calc(430px + var(--comparison-indent));
    padding-left: var(--comparison-indent);
}

/* Cross icon, centred on the first line */
.comparison__item::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 14px;
    height: 14px;
    background: url('../media/icon-cross.svg') no-repeat;
}

.comparison__list--check .comparison__item::before {
    width: 19px;
    background-image: url('../media/icon-check.svg');
}

@media (max-width: 991.98px) {
    .comparison {
        padding-top: 60px;
    }

    .comparison__intro {
        margin: 24px auto 40px auto;
    }

    .comparison__column,
    .comparison__column--highlight {
        padding: 40px 24px;
    }

    .comparison__heading {
        margin-bottom: 24px;
    }
}

@media (max-width: 575.98px) {
    .comparison__intro,
    .comparison__list {
        font-size: var(--font-size-body-small);
    }

    .comparison__item::before {
        top: 5px;
    }
}


/* ==========================================================================
   Functions
   ========================================================================== */

.functions {
    padding-top: 80px;
}

/* Padding, not margin: the margin would replace the negative top margin that .gy-4 gives the row */
.functions__cards {
    padding-top: 46px;
}

/* From lg, where .section-title is 48px. Below, .section-title's own sizes apply */
@media (min-width: 992px) {
    .functions__title {
        font-size: 36px;
    }
}

@media (max-width: 991.98px) {
    .functions {
        padding-top: 60px;
    }

    .functions__cards {
        padding-top: 24px;
    }
}


/* ==========================================================================
   Audience
   ========================================================================== */

.audience {
    padding: 120px 0;
}

/* Narrower than the container, as in the design. No gutter, like Bootstrap's .g-0 (purged from the vendor file) */
.audience__panel {
    --bs-gutter-x: 0;

    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 25px 20px 20px;
    background-color: var(--color-white);
    border-radius: var(--radius-large);
}

/* The image fills the column, which is as tall as the text next to it */
.audience__picture {
    display: block;
    height: 100%;
}

.audience__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Text at the same place as in the design: the image column is 15px wider there than the photo */
.audience__content {
    padding: 33px 0 0 30px;
}

.audience__title {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--color-main);
}

.audience__subtitle {
    margin-bottom: 51px;
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.audience__list {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-body);
}

.audience__row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 31px;
    padding: 24px 0 40px 0;
    border-top: 2px solid var(--color-primary-pale);
}

.audience__row:last-child {
    padding-bottom: 14px;
}

.audience__term {
    font-weight: var(--font-weight-black);
    color: var(--color-main);
}

.audience__description {
    margin: 0;
    font-weight: var(--font-weight-regular);
    color: var(--color-text);
}

@media (max-width: 1199.98px) {
    .audience__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 991.98px) {
    .audience {
        padding: 60px 0;
    }

    /* Stacked under the text: a landscape crop instead of the full portrait photo */
    .audience__image {
        height: 360px;
    }

    .audience__content {
        padding: 30px 4px 0 4px;
    }

    .audience__subtitle {
        margin-bottom: 30px;
    }

    .audience__row {
        padding: 20px 0;
    }
}

@media (max-width: 575.98px) {
    .audience__image {
        height: 240px;
    }

    .audience__subtitle,
    .audience__list {
        font-size: var(--font-size-body-small);
    }
}


/* ==========================================================================
   Team locations
   ========================================================================== */

.team-locations {
    margin: 0 var(--page-gutter);
    padding: 77px 0 90px 0;
    background-color: var(--color-main);
}

.team-locations__title {
    margin: 0px;
    color: var(--color-white);
}

/* Padding, not margin: the margin would replace the negative top margin that .gy-4 gives the row */
.team-locations__cards {
    padding-top: 43px;
}

/* Mixed with .location-card: thinner border and smaller radius than on the home page */
.team-locations__card {
    padding: 33px 24px 35px 24px;
    border-width: 1px;
    border-radius: var(--radius-large);
}

/* First sentence on its own line, as in the design */
.team-locations__line {
    display: block;
}

/* Mixed with .location-card__stats: at the bottom of the card, so the three line up */
.team-locations__stats {
    margin-top: auto;
    letter-spacing: 1px;
}

@media (max-width: 991.98px) {
    .team-locations {
        padding: 60px 0;
    }

    .team-locations__cards {
        padding-top: 24px;
    }
}


/* ==========================================================================
   FAQ
   ========================================================================== */

/* Short bottom padding: .contact under it has the same background and its own top padding */
.faq {
    padding: 107px 0 30px 0;
}

/* Mixed with the Bootstrap column: 660px wide content, as in the design */
.faq__content {
    max-width: calc(660px + var(--bs-gutter-x));
}

/* Collapses with the 8px bottom margin of the title */
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 51px;
}

/* Native <details>: opens and closes without JavaScript. The border keeps the size when the background turns white */
.faq__item {
    background-color: var(--color-primary-pale);
    border: 2px solid var(--color-primary-pale);
    border-radius: var(--radius-small);
}

.faq__item:hover,
.faq__item[open] {
    background-color: var(--color-white);
}

/* Transparent, not none: the 2px stays, so the box doesn't move */
.faq__item[open]:hover {
    border-color: transparent;
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 21px 33px 21px 22px;
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-bold);
    color: var(--color-main);
    list-style: none;
    cursor: pointer;
}

/* Safari still draws the triangle without this */
.faq__question::-webkit-details-marker {
    display: none;
}

/* Plus icon, a minus once open. Both are 14px wide; the box keeps the minus centred */
.faq__question::after {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background: url('../media/icon-plus.svg') center no-repeat;
}

.faq__item[open] .faq__question {
    padding-bottom: 10px;
}

.faq__item[open] .faq__question::after {
    background-image: url('../media/icon-minus.svg');
}

.faq__answer {
    max-width: 565px;
    margin: 0;
    padding: 0 22px 21px 22px;
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    color: var(--color-text);
}

@media (max-width: 991.98px) {
    .faq {
        padding-top: 60px;
    }

    .faq__list {
        margin-top: 32px;
    }
}

@media (max-width: 575.98px) {
    .faq__question {
        padding-right: 22px;
    }

    .faq__question,
    .faq__answer {
        font-size: var(--font-size-body-small);
    }
}
