﻿

/*******************************************************************************
    Hero
*******************************************************************************/

/* Default layout */
.hero-panel {
    background-color: var(--ac-grey-441);
}

.hero-headline {
    grid-column-start: 2;
    grid-column-end: 7;
    grid-row-start: 1;
    grid-row-end: 2;
    display: flex;
    align-items: center;
}

    .hero-headline h1 {
        margin: 0;
        padding: 0;
        font-size: 270%;
    }

.hero-image {
    grid-column-start: 7;
    grid-column-end: 15;
    grid-row-start: 1;
    grid-row-end: 2;
    height: 360px;
    background-size: cover;
    background-position: center center;
    background-clip: border-box;
    background-repeat: no-repeat;
    background-image: url("/images/home/hero-picture-v15-1-0.jpg");
}


/* bp-minor-reduce-1-max */
@media all and (max-width: 840px) {

    .hero-headline h1 {
        margin: 0;
        padding: 0;
        font-size: 250%;
    }
    
    .hero-image {
        height: 320px;
    }

}


/* bp-minor-reduce-2-max */
@media all and (max-width: 720px) {

    .hero-headline h1 {
        font-size: 230%;
    }
}


/* bp-major-narrow-max */
@media all and (max-width: 670px) {

    .hero-image {
        grid-column-start: 1;
        grid-column-end: 9;
        aspect-ratio: 1.75;
        height: auto;
    }

    .hero-headline {
        grid-column-start: 1;
        grid-column-end: 8;
        grid-row-start: 2;
        grid-row-end: 3;
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 1em;
        padding-bottom: 1em;
        text-align: center;
    }

        .hero-headline h1 {
            font-size: 240%;
        }
}

/* bp-minor-reduce-3-max */
@media all and (max-width: 500px) {
    .hero-image {
        background-position: calc(100% + 30px) bottom;
    }

    .hero-headline h1 {
        font-size: 210%;
    }
}


/* bp-major-wide-min */
@media all and (min-width: 1024px) {

    .hero-image {
        height: 360px;
        background-size: auto 420px;
    }

    .hero-headline {
    }

        .hero-headline h1 {
            font-size: 360%;
        }
}


/*******************************************************************************
    Layout
*******************************************************************************/

.grid-pos-a {
    grid-column-start: 2;
    grid-column-end: 14;
    grid-row-start: 1;
    grid-row-end: 2;
}


/* bp-major-narrow-max */
@media all and (max-width: 670px) {

    .grid-pos-a {
        grid-column-end: 8;
    }
}


/*******************************************************************************
    Pillars
*******************************************************************************/

.pillars {
    padding-top: 0.5em;
    padding-bottom: 1em;
}

.pillar-card {
    background-color: var(--ac-pastel-biscuit);
    border-radius: 8px;
    padding-left: 1em;
    padding-right: 1em;
    border-width: 3px;
    border-color: var(--ac-border-biscuit);
    border-style: solid;
}

.pillar-1 {
    grid-column-start: 2;
    grid-column-end: 6;
    grid-row-start: 2;
    grid-row-end: 3;
}

.pillar-2 {
    grid-column-start: 6;
    grid-column-end: 10;
    grid-row-start: 2;
    grid-row-end: 3;
}

.pillar-3 {
    grid-column-start: 10;
    grid-column-end: 14;
    grid-row-start: 2;
    grid-row-end: 3;
}

/* bp-major-narrow-max */
@media all and (max-width: 670px) {

    .pillar-1 {
        grid-column-start: 2;
        grid-column-end: 8;
        grid-row-start: 2;
        grid-row-end: 3;
    }

    .pillar-2 {
        grid-column-start: 2;
        grid-column-end: 8;
        grid-row-start: 3;
        grid-row-end: 4;
        margin-top: 1em;
    }

    .pillar-3 {
        grid-column-start: 2;
        grid-column-end: 8;
        grid-row-start: 4;
        grid-row-end: 5;
        margin-top: 1em;
    }
}

/* bp-major-wide-min */
@media all and (min-width: 1024px) {
}


/*******************************************************************************
    Relevance
*******************************************************************************/

.relevance {
    padding-top: 1em;
    padding-bottom: 1em;
}

.relevance-1 {
    grid-column-start: 2;
    grid-column-end: 6;
    grid-row-start: 1;
    grid-row-end: 2;
}

.relevance-2 {
    grid-column-start: 6;
    grid-column-end: 14;
    grid-row-start: 1;
    grid-row-end: 2;
}

.relevance-1 > .relevance-image {
    background-size: cover;
    background-position: center center;
    background-clip: border-box;
    background-repeat: no-repeat;
    background-image: url('../images/home/relevance-v15-1-0.jpg');
    height: 100%;
}



/* bp-major-narrow-max */
@media all and (max-width: 670px) {

    .relevance-1 {
        grid-column-start: 2;
        grid-column-end: 8;
        grid-row-start: 1;
        grid-row-end: 2;
        height: 240px;
    }

    .relevance-2 {
        grid-column-start: 2;
        grid-column-end: 8;
        grid-row-start: 2;
        grid-row-end: 3;
        margin-top: 1em;
    }
}


/*******************************************************************************
    Trust
*******************************************************************************/

.trust {
    padding-top: 0.5em;
    padding-bottom: 1em;
}

.trust-card {
    border-radius: 8px;
    border-width: 3px;
    border-style: solid;
    padding-left: 1em;
    padding-right: 1em;
}

.trust-1 {
    background-color: var(--ac-pastel-blue);
    border-color: var(--ac-border-blue);
    grid-column-start: 2;
    grid-column-end: 7;
    grid-row-start: 2;
    grid-row-end: 3;
}

.trust-2 {
    background-color: var(--ac-pastel-green);
    border-color: var(--ac-border-green);
    grid-column-start: 7;
    grid-column-end: 14;
    grid-row-start: 2;
    grid-row-end: 3;
}


/* Client quotes */
.client-quotes {
    position: relative;
}

.client-quote {
    position: absolute;
    opacity: 0;
    margin-top: 0;
    animation: rotate-quotes 45s infinite;
}

.client-quote-1 {
    animation-delay: 0s;
}

.client-quote-2 {
    animation-delay: 15s;
}

.client-quote-3 {
    animation-delay: 30s;
}

.client-name {
    font-style: italic;
    margin-left: 3em;
}

@keyframes rotate-quotes {
    0% {
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    33% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-quote {
        animation: none;
        display: none;
    }

        .client-quote:first-child {
            display: block;
            opacity: 1;
        }
}


/* bp-major-narrow-max */
@media all and (max-width: 670px) {

    .trust-1 {
        grid-column-start: 2;
        grid-column-end: 8;
        grid-row-start: 2;
        grid-row-end: 3;
        min-height: 160px;
    }

    .trust-2 {
        grid-column-start: 2;
        grid-column-end: 8;
        grid-row-start: 3;
        grid-row-end: 4;
        margin-top: 1em;
    }
}

/* bp-major-wide-min */
@media all and (min-width: 1024px) {
}

