/* Implementation page only. Loaded after main.css, which holds the shared blocks
   (hero, externalisation hero, section title, numbered cards, step, map, location card, contact, wide container…).

   Contents
   1. Implementation steps
   2. Tag list
   3. Country choice
   4. Country card
*/


/* ==========================================================================
   Implementation steps
   ========================================================================== */

/* Old version (step 01 only, mixed with .light-section)
.implementation-steps {
    padding: 110px 0 120px 0;
}
*/

/* Mixed with .numbered-cards (margins, paddings and scroll slides from main.css): light grey band instead of light blue.
   No padding here: it would override the padding: 0 of .numbered-cards--scroll */
.implementation-steps {
    --numbered-cards-background: var(--color-background-light);
}

/* Mixed with .section-title */
.implementation-steps__title {
    margin-bottom: 0px;
    font-weight: var(--font-weight-bold);
    color: var(--color-main);
}

/* The bottom margin plus the 25px top padding of .step__title make the 63px of the design */
.implementation-steps__subtitle {
    margin-bottom: 38px;
    padding-top: 30px;
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-bold);
    color: var(--color-main);
}

/* .step is dark on the light blue of the home page; here it sits on light grey */
.implementation-steps .step__title {
    color: var(--color-main);
}

.implementation-steps .step__description {
    color: var(--color-text);
}

.implementation-steps .step__number {
    margin: 0;
    color: var(--color-primary-pale);
}

@media (min-width: 992px) {

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

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

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

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

@media (max-width: 991.98px) {
    /* Old version (.numbered-cards now gives the same 60px)
    .implementation-steps {
        padding: 60px 0;
    }
    */

    .implementation-steps__subtitle {
        margin-bottom: 24px;
        padding-top: 16px;
    }
}

@media (max-width: 575.98px) {
    .implementation-steps__subtitle {
        font-size: 17px;
    }
}


/* ==========================================================================
   Tag list
   ========================================================================== */

/* Pills under a step. The negative left margin lines the text of the first pill up with the step text, as in the design */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 0 -19px;
    padding: 0;
    list-style: none;
}

.tag-list__item {
    padding: 12px 19px;
    font-family: var(--font-body);
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-bold);
    color: var(--color-main);
    background-color: var(--color-primary-pale);
    border-radius: 23px;
}

/* Too close to the screen edge on phones */
@media (max-width: 575.98px) {
    .tag-list {
        margin-left: 0;
    }

    .tag-list__item {
        padding: 8px 14px;
        font-size: var(--font-size-label);
    }
}


/* ==========================================================================
   Country choice
   ========================================================================== */

/* Mixed with .map (padding and brand colour). The dotted map sits behind the title and the cards */
.country-choice {
    position: relative;
    overflow: hidden;
}

/* Same file as the destination page hero. 1208px wide in the design, centred, 30px from the top */
.country-choice__map {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 1208px;
    max-width: 100%;
    height: auto;
    transform: translateX(-50%);
}

/* Positioned, so it paints above the map */
.country-choice__content {
    position: relative;
}

/* Mixed with .map__locations: 30px between the 430px cards, as in the design */
.country-choice__cards {
    --bs-gutter-x: 30px;
}

@media (max-width: 991.98px) {
    .country-choice__map {
        top: 20px;
    }
}


/* ==========================================================================
   Country card
   ========================================================================== */

/* Mixed with .location-card: thinner border, smaller radius and a see-through brand colour over the map */
.country-card {
    padding: 33px 24px 35px 24px;
    background-color: color-mix(in srgb, var(--color-main) 60%, transparent);
    border-width: 1px;
    border-radius: var(--radius-large);
}

/* At the bottom of the card, so the three links line up */
.country-card__link {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding-top: 35px;
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    color: var(--color-primary);
}

.country-card__link:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .country-card__link {
        padding-top: 24px;
    }
}

@media (max-width: 575.98px) {
    .country-card__link {
        font-size: var(--font-size-body-small);
    }
}
