[data-particles] {
    color: white;
    position: relative;
    background-color: var(--colourTaurusSecondary);
    
    > * {
        position: relative;
        z-index: 1;
    }

    > canvas {
        background-color: var(--colourTaurusSecondary);
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;

    &:not(:has(section.hero)) {
        main {
            margin-top: var(--headerHeight);
        }
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 18px 48px;
        display: var(--headerDisplay, flex);
        align-items: center;
        justify-content: space-between;
        z-index: 100;
        box-shadow: 0px 0px 16px 0px rgba(255, 255, 255, 0.25);
        background-color: var(--colourBackgroundDark);

        &.animated {
            transition: all 0.5s ease-in-out;
        }

        &.support-hero {
            opacity: 0;
            pointer-events: none;
        }
        
        a.brand {
            img {
                width: 100px;
            }
        }

        nav {
            display: flex;
            align-items: center;
            gap: 32px;

            a {
                color: white;
                text-decoration: none;
                font-family: 'Encode Sans SemiBold';
                font-size: 16px;

                &:hover {
                    color: var(--colourTaurusPrimary);
                }
            }
        }

        [data-menu-toggle], div.menu-backdrop {
            display: none;
        }

        @media (max-width: 850px) {
            [data-menu-toggle] {
                display: block;
                background-color: transparent !important;
                padding: 0 !important;

                svg {
                    width: 30px;
                    height: unset !important;
                    fill: white;
                    margin: 0 !important;

                    &.open {
                        display: none;
                    }
                }
            }

            nav {
                position: absolute;
                flex-direction: column;
                justify-content: space-evenly;
                top: var(--headerHeight);
                z-index: -1;
                left: 0;
                right: 40px;
                padding: 22px;
                height: calc(100vh - var(--headerHeight));
                background-color: color-mix(in srgb, var(--colourBackgroundDark), white 15%);

            }

            div.menu-backdrop {
                position: absolute;
                top: var(--headerHeight);
                left: 0;
                width: 100vw;
                height: calc(100vh - var(--headerHeight));
                background-color: rgba(0, 0, 0, 0.5);
                z-index: -2;
                display: flex;
                align-items: center;
                justify-content: flex-end;

                svg {
                    fill: white;
                    width: 20px;
                    margin-right: 10px;
                }
            }

            &:not(.menu-open) {
                nav {
                    display: none;
                }

                [data-menu-toggle] {
                    svg.open {
                        display: block;
                    }

                    svg.close {
                        display: none;
                    }
                }

                div.menu-backdrop {
                    display: none;
                }
            }
        }

        @media (max-width: 480px) {

        }
    }

    footer {
        padding-bottom: 0 !important;
        div.wrapper {
            div.top {
                h2 {
                    font-size: 33px;
                    text-align: center;
                }

                p {
                    text-align: center;
                }

                div.ctas {
                    display: flex;
                    justify-content: center;
                    gap: 22px;
                    margin-top: 22px;

                    a.primary {
                        text-transform: uppercase;
                    }

                    @media (max-width: 768px) {
                        flex-direction: column;
                        align-items: center;

                        a.primary {
                            margin-top: 22px;
                        }
                    }
                }
            }

            div.columns {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                align-items: flex-end;
                gap: 22px;
                margin-top: 22px;

                div.brand {
                    width: fit-content;

                    div.tn {
                        width: 350px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        gap: 22px;

                        img {
                            width: 50%;
                        }
                    }

                    div.supporting {
                        display: flex;
                        flex-wrap: wrap;
                        justify-content: center;
                        gap: 22px;

                        img {
                            max-width: 150px;
                        }
                    }
                }

                div.links {
                    flex: 1;

                    > div {
                        display: flex;
                        flex-direction: column;
                        align-items: flex-end;

                        &:not(:first-of-type) {
                            margin-top: 22px;
                        }

                        a {
                            color: white;
                            text-decoration: none;
                            font-family: 'Encode Sans';
                            text-align: right;
                        }
                    }

                    @media (max-width: 768px) {
                        a {
                            text-align: center !important;
                            width: 100%;
                        }
                    }
                }
            }
        }

        div.legal {
            margin-top: 44px;
            font-size: 12px;
            text-align: center;
            padding: 22px;
            background-color: var(--colourBackgroundDark);

            p:not(:first-of-type) {
                margin-top: 22px;
            }
        }

        @media (max-width: 400px) {
            div.brand {
                div.tn {
                    width: 100% !important;
                }
            }

            div.links {
                > div {
                    align-items: center;
                }
            }

            div.legal {
                p {
                    font-size: 10px;
                }
            }

            div.ctas {
                flex-direction: column;

                > * {
                    width: 100%;
                    justify-content: center;
                }
            }
        }
    }

    section.hero {
        min-height: 55vh;
    }
}

div.wrapper {
    max-width: var(--layoutWidth);
    margin: 0 auto;
    padding-left: var(--layoutGutter);
    padding-right: var(--layoutGutter);
}

button, .button {
    --buttonHeight: 47px;

    &.small {
        --buttonHeight: 40px !important;
    }

    &.primary {
        --buttonColour: var(--colourTaurusPrimary);
        --textColour: white;
        --textHoverColour: white;
    }

    &.secondary {
        --buttonColour: black;
        --buttonColourMix: white;
    }

    &.glow {
        box-shadow: 0px 0px 20px 5px var(--colourTaurusPrimary);
    }

    --hoverColour: color-mix(in srgb, var(--buttonColour), var(--buttonColourMix, black) 20%);
    --activeColour: color-mix(in srgb, var(--buttonColour), var(--buttonColourMix, black) 30%);

    background-color: var(--buttonColour, lime);
    color: var(--textColour, white);
    min-height: var(--buttonHeight);
    border-radius: calc(var(--buttonHeight) / 2);
    display: flex;
    align-items: center;
    text-align: center;
    padding-left: 18px;
    padding-right: 18px;
    text-decoration: none;
    font-family: 'Encode Sans SemiBold';
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
    width: fit-content;

    &:hover {
        background-color: var(--hoverColour);
        color: var(--textHoverColour, white);
    }

    &:active {
        background-color: var(--activeColour);
    }

    svg.decorator {
        height: calc(var(--buttonHeight) - 12px);
        margin-left: -14px;
        margin-right: 4px;
    }

    svg:not(.decorator) {
        margin-left: auto;
        margin-right: -8px;
        height: 18px;
        fill: white;
    }        
}

section, .section {
    h2 {
        font-family: 'Montserrat Black';
        font-size: 55px;
        text-transform: uppercase;
        color: var(--colourTaurusSecondary);
    }

    p.subtitle {
        font-family: 'Encode Sans SemiBold';
        font-size: 18px;
        margin-bottom: 22px;
    }

    &[data-particles] {    
        padding-top: 150px;
        padding-bottom: 150px;
        
        h2 {
            color: white;
        }

        --gradientHeight: 275px;

        &::before, &::after {
            content: ' ';
            position: absolute;
            left: 0;
            right: 0;
            height: var(--gradientHeight);
            z-index: 2;        
        }

        div.wrapper {
            z-index: 3;
        }

        &::before {
            top: 0;
            background: linear-gradient(180deg, #E6E7E7 0%, rgba(165, 166, 166, 0.50) 50%, rgba(128, 129, 129, 0.00) 100%);
        }

        &::after {
            bottom: 0;
            background: linear-gradient(0deg, #E6E7E7 0%, rgba(165, 166, 166, 0.50) 50%, rgba(128, 129, 129, 0.00) 100%);
        }

        &.no-top {
            &::before {
                content: none;
            }
        }

        &.no-bottom {
            &::after {
                content: none;
            }
        }
    }

    @media (max-width: 768px) {
        h2 {
            font-size: 44px;
        }
    }

    @media (max-width: 480px) {
        h2 {
            font-size: 33px;
        }
    }

    &.hero {
        overflow: hidden;
        padding: 0 !important;

        &.standard {
            @media (min-width: 768px) {
                margin-bottom: -150px;
            }

            div.decoration {
                width: 100px;
        
                div.photo {
                    width: 800px;
                    position: absolute;
                    top: -5px;
        
                    img {
                        width: 600px;
                        height: 600px;
                        object-fit: cover;
                    }
                }
            }
        
            @media (max-width: 560px) {
                div.decoration {
                    display: none;
                }
            }
        }
        
        > div.wrapper {
            display: flex;
            align-items: center;
            margin-top: 50px;
    
            div.content {
                margin-bottom: 250px;
                display: flex;
                flex-direction: column;
                gap: 32px;
                max-width: 750px;
                flex: 1;

                > :first-child {
                    margin-top: 40px;
                }
    
                h1, p.title {
                    font-family: 'Montserrat Black';
                    font-size: 55px;
                    text-transform: uppercase;
                    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.25);
    
    
                    span {
                        font-size: 66px;
                        display: block;
                    }
                }
    
                p.subtitle {
                    font-family: 'Encode Sans';
                    font-size: 20px;
                }

                a.hint {
                    width: 400px;
                }

                div.ctas {
                    display: flex;
                    gap: 18px;
                    margin-top: 18px;
    
                    > .primary {
                        text-transform: uppercase;
                    }
                }

                a.brand {
                    width: fit-content;
                }
            }
    
            div.decoration {
                padding-left: 22px;
            }
    
            @media (max-width: 1066px) {
                flex-wrap: wrap;
    
                div.content {
                    width: 100%;
                    flex: 1;
                    margin-bottom: 44px;
                }
            }
    
            @media (max-width: 480px) {
                div.content {
                    a.brand:not(.no-bull-background) {
                        position: absolute;
                        width: 100%;
                        left: 0;
                        top: 12vh;
                        opacity: 0.5;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        z-index: -1;
    
                        img {
                            display: block;
                            margin: 0 auto;
                            height: auto;
                            width: 200px;
                        }
                    }
    
                    a.hint {
                        width: calc(100% + 44px);
                        margin-left: -22px;    
                        border-radius: 0;
                        padding: 22px;

                        gap: 11px;
                    }
                
                    h1 {
                        font-size: 1.8rem !important;
                        text-align: center;
                        color: rgb(231, 231, 231);
    
                        span {
                            font-size: 2.8rem !important;
                            color: white;
                        }
                    }
    
                    p.subtitle {
                        text-align: center;
                    }
    
                    div.ctas {
                        flex-wrap: wrap;
    
                        > a {
                            text-align: center;
                            justify-content: center;
                            margin: 0 auto;
    
                            &.primary {
                                width: 100%;
                            }
    
                            &.secondary {
                                width: 85%;
                            }
                        }
                    }
                }
            }
    
            @media (max-width: 390px) {
                div.content {
                    h1 {
                        font-size: 33px;
    
                        span {
                            font-size: 44px;
                        }
                    }
                }
            }
        }
    }
}

div.client-tiles {
    div.tile {
        background-color: #515151;

        img {
            filter: grayscale(1);
        }
    }
}

div.testimonials {
    article {
        div.author {
            text-align: right;

            p.title {
                font-weight: bold;
            }
        }

        div.body {
            margin-top: 22px;
            display: flex;
            gap: 44px;
            flex-wrap: wrap;
            align-items: center;

            div.content {
                position: relative;
                padding: 66px;
                flex: 1;
                min-width: 350px;

                >*:not(:first-child) {
                    margin-top: 22px;
                }

                &::before, &::after {
                    content: '“';
                    font-family: 'Montserrat';
                    font-size: 200px;
                    position: absolute;
                }

                &::before {
                    top: -60px;
                    left: 0px;
                }

                &::after {
                    bottom: 0px;
                    right: 0px;
                    transform: rotate(180deg);
                }
            }

            div.brand {
                img, svg {
                    display: block;
                    margin: 0 auto;
                    min-width: 250px;
                    max-width: 350px;
                    aspect-ratio: 1/1;
                }
            }
        }

        @media (max-width: 704px) {
            div.brand {
                margin-top: -50px;
                margin-bottom: 22px;
                flex: 1;

            }

            div.author {
                text-align: center;
                margin-top: 22px;
            }

            div.content {
                padding: 44px !important;

                &::before, &::after {
                    font-size: 150px !important;
                }

                &::before {
                    top: -40px !important;
                }
            }
        }
    }
}

[data-paginator] {
    > * {    
        &:not(.active) {
            display: none;
        }
    }

    div.paginator {
        --buttonSize: 45px;
        display: flex;
        justify-content: center;
        gap: 11px;

        button {
            --buttonColour: var(--colourTaurusSecondary) !important;
            --buttonColourMix: white !important;

            &:has(svg) {
                --buttonColour: var(--colourTaurusTertiary) !important;
            }

            &.active {
                --buttonColour: var(--colourTaurusPrimary) !important;
                --buttonColourMix: black !important;
            }

            width: var(--buttonSize) !important;
            height: var(--buttonSize);
            border-radius: calc(var(--buttonSize) / 2);
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;

            svg {
                fill: white;
                margin-right: auto;
            }

            &:has(img) {
                img {
                    width: 80%;
                }
            }
        }
    }
}



section.standard:not(.hero) {
    z-index: 5;
    position: relative;
    margin-top: 75px;
    overflow: hidden;

    div.content {
        display: flex;
        gap: 20px;

        div.left, div.right {
            > * {
                margin-top: 22px;

                &.summary {
                    font-family: 'Encode Sans SemiBold';
                    font-size: 18px;
                    text-align: center;
                }
            }

            div.usps {
                margin: 22px;
                display: flex;
                gap: 22px;
                flex-wrap: wrap;
                justify-content: space-evenly;

                div.usp {
                    max-width: 300px;

                    svg {
                        max-width: 40px;
                        max-height: 40px;
                        display: block;
                        margin: 0 auto;
                        fill: var(--colourTaurusSecondary);
                    }

                    p {
                        margin-top: 18px;

                        &.title {
                            font-family: 'Encode Sans SemiBold';
                            font-size: 16px;
                            text-align: center;
                        }
                    }

                    &.end {
                        width: 100%;
                    }
                }
            }
        }

        div.left {
            max-width: 750px;
            width: 100%;
        }

        div.right {
            flex: 1;
            position: relative;

            div.image {
                position: absolute;
                width: 900px;
                left: 0;

                img {
                    width: 100%;
                    max-width: var(--maxWidth, 500px);
                    margin-top: var(--marginTop, 0);

                    &:not(.no-shadow) {
                        border-radius: 18px;
                        box-shadow: 0px 0px 8px 0px rgba(255, 255, 255, 0.25);
                    }
                }
            }
        }

        @media (max-width: 990px) {
            div.left {
                max-width: 500px;
            }
        }

        @media (max-width: 870px) {
            flex-wrap: wrap;

            div.left, div.right {
                width: 100%;
                max-width: unset;
            }

            div.right {
                flex-shrink: 0;
                
                div.image {
                    position: static;
                    left: unset;
                    width: 100%;

                    img {
                        width: 100%;
                        max-width: 300px;
                        display: block;
                        margin: 0 auto !important;
                    }
                }
            }
        }

        &.flip {
            flex-direction: row-reverse;

            div.right {
                div.image {
                    left: unset;
                    right: 0;
                    img {
                        margin-left: auto;
                    }
                }
            }
        }
    }
}

div.key-points {
    padding-top: 66px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;

    div.key-point {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 300px;

        img {
            width: 200px;
            height: 200px;
            object-fit: contain;
        }

        h3 {
            font-size: 18px;
        }

        p {
            margin-top: 11px;
            text-align: center;
        }
    }
}

div.usps-list {
    display: flex;
    margin: 0 auto;
    gap: 22px;
    max-width: 1000px;
    margin: 0 auto;
    color: black;
    flex-direction: column;

    div.usp {
        display: flex;
        gap: 22px;
        background-color: white;
        padding: 22px;
        max-width: 800px;
        width: fit-content;
        justify-content: space-between;
        border-left: solid 5px var(--colourTaurusPrimary);

        svg {
            width: 30px;
            flex-shrink: 0;
            fill: var(--colourTaurusPrimary);
        }

        div.info {
            h3 {
                text-transform: uppercase;
            }
        }
    }

    &.staggered {
        > :nth-child(even) {
            border-left: none !important;
            border-right: solid 5px var(--colourTaurusPrimary);
            flex-direction: row-reverse;
            margin-left: auto;
            margin-right: 0;
        }
    }
}

body:has(section.page-footer) {
    footer {
        div.top {
            display: none;
        }
    }
}