﻿/*******************************************************************************
    CSS global variables
*******************************************************************************/

:root {
    /* Major layout bands */
    --bp-major-narrow-max: 670px;
    --bp-major-wide-min: 1024px;
    /* Minor layout adjustments */
    --bp-minor-reduce-1-max: 840px;
    --bp-minor-reduce-2-max: 720px;
    /* Narrow */
    --ip-narrow-text-margin: 12px;
    /* AW15 colors */
    --ac-orange-2022: #faaa8d;
    --ac-orange-2023: #fa9370;
    --ac-orange-2024: #f87c56;
    --ac-grey-441: #bec6c4;
    --ac-grey-442: #a2acab;
    --ac-grey-443: #919d9d;
    --ac-grey-444: #717c7d;
    --ac-grey-445: #505759;
    --ac-grey-446: #3f4443;
    --ac-grey-447: #373a36;
    --ac-pastel-biscuit: #f9d689;
    --ac-pastel-blue: #88c5da;
    --ac-pastel-green: #a2d1b2;
    --ac-pastel-lilac: #c5b4e3;
    --ac-border-biscuit: #a87c4f;
    --ac-border-blue: #1b75bb;
    --ac-border-green: #00a551;
}


/*******************************************************************************
    HTML and Common
*******************************************************************************/

html {
    height: 100%;
    /* Stop pesky Safari changing font sizes */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    height: 100%;
    background-color: #eeeeee;
    font-family: sans-serif;
    font-family: 'Segoe WP', 'Segoe UI', HelveticaNeue, 'Helvetica Neue', 'Droid Sans', 'Trebuchet MS', FreeSans, 'Liberation Sans', 'Nimbus Sans L', Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    width: 100%;
    max-width: 1290px;
    background-color: white;
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

figure {
    margin: 0;
    padding: 0;
}

    figure > img {
        display: block;
        width: 100%;
        height: auto;
    }

    figure > figcaption {
        font-size: 85%;
        color: var(--ac-grey-444);
        margin-top: 0.5em;
    }


/*******************************************************************************
    Grid
*******************************************************************************/

.grid {
    display: grid;
    grid-template-columns: 1px repeat(12, 1fr) 1px;
    column-gap: 20px;
    row-gap: 0;
}


/* bp-major-narrow-max */
@media all and (max-width: 670px) {

    .grid {
        display: grid;
        grid-template-columns: 1px repeat(6, 1fr) 1px;
        column-gap: 12px;
    }
}

/* bp-major-wide-min */
@media all and (min-width: 1024px) {

    .grid {
        column-gap: 30px;
    }
}



/*******************************************************************************
    Site Header
*******************************************************************************/

.site-header {
    flex: 0 0 auto;
    width: 100%;
    background-color: var(--ac-grey-445);
}


/*******************************************************************************
    Main
*******************************************************************************/

.site-main {
    flex: 1 0 auto;
    background-color: white;
    padding-bottom: 4em;
}

    .site-main a {
        font-weight: 600;
    }


/*******************************************************************************
    Call to action
*******************************************************************************/

.site-cta {
    /*flex: 0 0 auto;*/
    width: 100%;
    padding-top: 40px;
    padding-bottom: 50px;
    background-color: var(--ac-grey-441);
}

.site-cta-1 {
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 2;
    grid-column-end: 8;
}

.site-cta-2 {
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 8;
    grid-column-end: 14;
}

.site-cta-3 {
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 2;
    grid-column-end: 14;
    padding-top: 16px;
}

    .site-cta-3 > h2 > span {
        display: none;
    }

    .site-cta-3 > a {
        background-color: var(--ac-orange-2024);
        font-size: 110%;
        margin-top: 24px;
        padding-left: 2em;
        padding-right: 2em;
        padding-top: 4px;
        padding-bottom: 4px;
        font-weight: bold;
        border-radius: 6px;
        color: var(--ac-grey-446);
    }

        .site-cta-3 > a:hover {
            text-decoration: none;
            color: white !important;
        }

        .site-cta-3 > a:visited {
            color: var(--ac-grey-446);
        }

    .site-cta-3 > div:last-child {
        margin-top: 24px;
        font-size: 110%;
        font-weight: normal;
    }


/* bp-major-narrow-max */
@media all and (max-width: 670px) {

    .site-cta-1 {
        grid-row-start: 1;
        grid-row-end: 2;
        grid-column-start: 2;
        grid-column-end: 8;
    }

    .site-cta-2 {
        grid-row-start: 2;
        grid-row-end: 3;
        grid-column-start: 2;
        grid-column-end: 8;
        padding-top: 20px;
    }

    .site-cta-3 {
        grid-row-start: 3;
        grid-row-end: 4;
        grid-column-start: 2;
        grid-column-end: 8;
    }
}


/* bp-major-wide-min */
@media all and (min-width: 1024px) {

    /* Call to action */

    .site-cta-1 {
        grid-column-start: 2;
        grid-column-end: 6;
    }

    .site-cta-2 {
        grid-column-start: 6;
        grid-column-end: 10;
    }

    .site-cta-3 {
        grid-column-start: 10;
        grid-column-end: 14;
        grid-row-start: 1;
        grid-row-end: 2;
        padding-top: 0;
    }

        .site-cta-3 > h2 > span {
            display: inline;
        }
}


/*******************************************************************************
    Site Footer
*******************************************************************************/

.site-footer {
    flex: 0 0 auto;
    width: 100%;
    background-color: var(--ac-grey-445);
}

.sf-divider {
    grid-column: 2 / 14;
    height: 0px;
    border-top: 2px solid var(--ac-grey-444);
}

.sf-band {
    grid-column: 2 / 14;
    display: table;
    color: var(--ac-grey-442);
}

    .sf-band > div {
        display: table-cell;
        vertical-align: middle;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .sf-band a {
        color: var(--ac-grey-442);
    }

        .sf-band a:visited {
            color: var(--ac-grey-442);
        }

        .sf-band a:hover {
            color: white;
        }

        .sf-band a:active {
            background-color: var(--ac-orange-2022);
        }


/* Site Footer Band 2 */

.sf-band-2 > div:first-child {
    width: 25%;
    white-space: nowrap;
    padding-right: 30px;
}

.sf-band-2 > div:nth-child(2) {
    width: 30%;
}
        .sf-band-2 > div:nth-child(2) > img {
            height: 96px;
        }

.sf-band-2 > div:nth-child(3) {
    width: 40%;
}

.sf-band-2 > div:nth-child(4) {
    width: 1%;
    text-align: right;
}

    .sf-band-2 > div:nth-child(4) > img {
        width: 130px
    }

.sf-band-2 > div:last-child {
    display: none;
    width: 1%;
    text-align: right;
}

    .sf-band-2 > div:last-child > img {
        width: 210px;
    }


/* Site footer social */

.sf-social {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.25em;
}

    .sf-social > .sf-social-blog {
        flex-basis: 100%;
    }

    .sf-social > a,
    .sf-social > .sf-social-blog {
        margin-right: 1em;
    }

        .sf-social > a:last-child {
            margin-right: 0;
        }

.sf-social-blog > a {
    font-size: 150%;
    font-weight: bold;
}

    .sf-social-icon {
        text-decoration: none;
        padding-top: 16px;      /* make active background bigger */
    }

        .sf-social-icon:hover {
            text-decoration: none;
        }

        .sf-social-icon > span {
            display: inline-block;
            background-size: 32px;
            background-repeat: no-repeat;
        }

            .sf-social-icon > span > img {
                height: 32px;
                width: 32px;
            }

            .sf-social-icon > span > img:hover {
                opacity: 0;
            }

#sf-social-linkedin > span {
    background-image: url("/images/site/linkedin-logo-hi.svg");
}

#sf-social-facebook > span {
    background-image: url("/images/site/facebook-logo-hi.svg");
}

#sf-social-x > span {
    background-image: url("/images/site/x-logo-hi.svg");
}


/* Site Footer Band 3 */

.sf-band-3 > div:first-child {
    width: 35%;
    text-align: left;
}

    .sf-band-3 > div:first-child > img {
        width: 140px;
    }

.sf-band-3 > div:nth-child(2) {
    width: 30%;
    text-align: left;
}

.sf-band-3 > div:nth-child(3) {
    width: 30%;
    padding-right: 30px;
    text-align: left;
    white-space: nowrap;
}

.sf-band-3 > div:last-child {
    width: 1%;
    text-align: right;
}

.sf-band-3 > div:last-child > img {
    width: 110px;
}

.sf-directors-heading {
    color: var(--ac-orange-2024);
}

.sf-directors-quals {
    font-size: 75%;
}


/* Site Footer Band 4 */

.sf-band-4 > div:first-child {
    width: 50%;
}

.sf-band-4 > div:nth-child(2),
.sf-band-4 > div:nth-child(3) {
    padding-right: 2em;
}


.sf-band-4 > div:not(:first-child) {
    width: 1%;
    text-align: right;
    white-space: nowrap;
}


/* bp-minor-reduce-2-max */
@media all and (max-width: 720px) {

    .sf-band-3 > div:first-child {
        width: 25%;
        text-align: left;
    }

    .sf-band-3 > div:nth-child(2) {
        padding-left: 2em;
    }

    .sf-band-3 > div:nth-child(3) {
        padding-right: 1em;
    }
}


/* bp-major-narrow-max */
@media all and (max-width: 670px) {

    .sf-divider {
        grid-column: 2 / 8;
    }

    .sf-band {
        grid-column: 2 / 8;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        row-gap: 12px;
        margin-top: 12px;
        margin-bottom: 12px;
    }

        .sf-band > div {
            display: block;
            height: auto;
            padding-top: 6px;
            padding-bottom: 6px;
        }

    .sf-band-2 > div:first-child {
        order: 1;
        flex-basis: 60%;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

    .sf-band-2 > div:nth-child(2) {
        order: 2;
        flex-basis: 40%;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

            .sf-band-2 > div:nth-child(2) > img {
                height: 96px;
            }

    .sf-band-2 > div:nth-child(3) {
        order: 3;
        flex-basis: 100%;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

        .sf-band-2 > div:nth-child(4) {
            display: none;
        }

    .sf-band-2 > div:last-child {
        display: block;
        order: 4;
        flex-basis: 100%;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

    .sf-social {
        display: block;
        margin-left: 0;
    }

    .sf-band-3 > div:first-child {
        order: 1;
        flex-basis: 100%;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

    .sf-band-3 > div:nth-child(2) {
        order: 2;
        flex-basis: 100%;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

    .sf-band-3 > div:nth-child(3) {
        order: 4;
        flex-basis: 60%;
        flex-grow: 1;
        flex-shrink: 1;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

    .sf-band-3 > div:last-child {
        order: 3;
        flex-basis: 40%;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }


    .sf-band-4 > div:not(:first-child) {
        text-align: left;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

    .sf-band-4 > div:first-child {
        order: 4;
        flex-basis: 100%;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

    .sf-band-4 > div:nth-child(2) {
        order: 3;
        flex-basis: 100%;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

    .sf-band-4 > div:nth-child(3) {
        order: 2;
        flex-basis: 50%;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

        .sf-band-4 > div:nth-child(4) {
            order: 1;
            flex-basis: 50%;
        }

    .sf-directors-br {
        display: none;
    }

}


/* bp-major-wide-min */
@media all and (min-width: 1024px) {

    .sf-band-2 > div:first-child {
        padding-right: 60px;
    }

    .sf-band-2 > div:nth-child(2) > img {
        height: 96px;
    }

    .sf-band-2 > div:nth-child(4) {
        display: none;
    }

    .sf-band-2 > div:last-child {
        display: table-cell;
    }

    .sf-social {
        display: block;
        margin-left: 0;
    }

    .sf-directors-br {
        display: none;
    }
}


/*******************************************************************************
    Site Banner
*******************************************************************************/

.site-banner {
    grid-column-start: 2;
    grid-column-end: 14;
    grid-row-start: 1;
    grid-row-end: 2;
}

    .site-banner > div {
        display: table;
        width: 100%;
    }

    .site-banner > div > div {
        display: table-cell;
        vertical-align: middle;
    }

.sb-1 > div {
    height: 104px;
    width: 1%;
    text-align: right;
}

    .sb-1 > div:first-child {
        text-align: left;
    }

    .sb-1 > div:nth-child(2) {
        width: 90%;
    }

.site-banner > .sb-2 {
    display: none;
    height: 48px;
    text-align: left;
}


.site-banner .sb-logo-link {
    display: block;
}

    .site-banner .sb-logo-link > img {
        display: block;
        height: 80px;
        border: none;
    }

.site-footer .site-banner .sb-logo-link > img {
    height: 60px;
}

.site-banner .sb-contact-link {
    display: block;
}

    .site-banner .sb-contact-link > img {
        height: 24px;
    }


.site-banner nav > a {
    font-size: 120%;
    font-weight: 600;
    margin-right: 1.25em;
    color: var(--ac-grey-441);
}

    .site-banner nav > a:visited {
        color: var(--ac-grey-441);
    }

    .site-banner nav > a:hover {
        color: white;
    }

.site-banner a:active {
    background-color: var(--ac-orange-2022);
}

    .site-banner nav > a:last-child {
        margin-right: 2.5em;
    }


/* bp-minor-reduce-1-max */
@media all and (max-width: 840px) {

    .site-banner nav > a {
        margin-right: 1em;
    }

    .site-banner nav > a:last-child {
        margin-right: 1.5em;
    }
}


/* bp-minor-reduce-2-max */
@media all and (max-width: 720px) {

    .site-banner nav > a {
        font-size: 100%;
    }

        .site-banner nav > a:last-child {
            margin-right: 1em;
        }
}


/* bp-major-narrow-max */
@media all and (max-width: 670px) {

    .site-banner {
        grid-column-end: 8;
    }

        .site-banner > .sb-1 > div {
            height: 96px;
        }

            .site-banner > .sb-1 > div:nth-child(2) {
                display: none;
            }

        .site-banner > .sb-2 {
            display: table;
        }

        .site-banner .sb-logo-link > img {
            height: 72px;
        }

    .site-footer .site-banner .sb-logo-link > img {
        height: 54px;
    }

    .site-banner nav > a {
        font-size: 110%;
    }

        .site-banner nav > a:last-child {
            margin-right: 0;
        }
}


/* bp-major-wide-min */
@media all and (min-width: 1024px) {

    .sb-1 > div {
        height: 112px;
    }

    .site-banner .sb-contact-link > img {
        height: 28px;
    }

    .site-banner nav > a {
        font-size: 140%;
        margin-right: 1.5em;
    }

        .site-banner nav > a:last-child {
            margin-right: 3em;
        }
}


