:root {
    --max-width: 1200px;
    
    --color-primary: #192b5d;
    --color-primary-light: #0979c3;
    --color-secondary: #577f94;
    --color-tertiary: #9f46cb;
    --color-accent: #e36b11;
    
    --color-text: #333;

    --section-light: #fafbfc;
    --section-light-alt: #e2e2e2;
    
    --ff-primary: 'Open Sans', sans-serif;
    --ff-secondary: 'Poppins', sans-serif;
    
    --ff-body: var(--ff-primary);
    --ff-headings: var(--ff-secondary);
    --ff-font-awesome: "Font Awesome 6 Pro";

    --fw-regular: 400;
    --fw-semi-bold: 500;
    --fw-bold: 700;

    --fs-300: 0.9rem;
    --fs-400: 1rem;
    --fs-500: 1.25rem;
    --fs-700: 1.5rem;
    --fs-800: 2rem;

    /*
    for-phone-only: 599px;
    for-tablet-portrait-up: 600px;
    for-tablet-landscape-up: 900px;
    for-desktop-up: 1200px;
    */
}

/* Background Colours */
.bg-light { background-color: var(--section-light); }
.bg-light-alt { background-color: var(--section-light-alt); }
.bg-primary { background-color: var(--color-primary); }
.bg-primary-light { background-color: var(--color-primary-light); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }

/* Text Colours */
.text-primary { color: var(--color-primary); }
.text-primary-light { color: var(--color-primary-light); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }

.bg-radial {
    background: rgb(250,251,252);
    background: radial-gradient(circle, rgba(250,251,252,1) 0%, rgba(250,251,252,1) 72%, rgba(220,229,237,1) 100%);
    box-shadow: inset 0 5px 10px 0 rgb(0 0 0 / 3%), inset 0 -5px 10px 0 rgb(0 0 0 / 3%);
}

/*==------------------------------------------------------------------====
    Modern Reset
====------------------------------------------------------------------==*/
*,
*::before,
*::after {
    box-sizing: border-box;
}
* {
    margin: 0;
    padding: 0;
    font-family: inherit;
}

html,
body {
    min-height: 100%;
    height: 100vh;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    text-rendering: optimizeSpeed;
    color: var(--color-text);
    line-height: 1.5;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-headings);    
    font-weight: 500;
    margin-bottom: 1.25rem;    
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

h1 {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 1rem 0.5rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 6px 10px -12px rgb(0 0 0 / 90%), 0 -3px 10px -12px rgb(0 0 0 / 90%);
}
h1::after {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    width: 0.5rem;
    background: linear-gradient(180deg, var(--color-accent) 50%, var(--color-primary) 115%);
    content: '';
}
h2 {
    margin-bottom: 2rem;    
}

ul[class],
ol[class] {
    list-style: none;
}

ul:not([class]),
ol:not([class]) {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 2rem;
    margin: 0 0 1.5rem 0;
    list-style-image: url('../images/bullet.png');
}

p + h2 {
    margin-top: 3rem;
}

:focus {
    outline: none;
}
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

a {
    -webkit-tap-highlight-color: transparent;
}
a:not([class]) {
    text-decoration-skip-ink: auto;
}

img,
picture,
svg {
    max-width: 100%;
    display: block;
}

p:not(:last-child) {
    margin-bottom: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/*==------------------------------------------------------------------====
    Header
====------------------------------------------------------------------==*/
#header {
    box-shadow: 0 3px 5px 0 rgb(0 0 0 / 18%);
}
.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    isolation: isolate;

}
.header .logo {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
}
.header .logo img {
    height: 55px;
    margin: 0.5rem 0;
    transition: scale 0.1s ease;
}
.header .number {
    display: none;
}
.header .logo a:active img {
    scale: 0.9;
}
.header .celebrating {
    margin-left: 1rem;
}

.header .nav-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border-style: none;
    border-radius: 0;
    color: #fff;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    padding: 7px;
    margin: 0;
}
.header .nav-toggle .bar {
    --bg: var(--color-primary);

    display: block;
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 3px;
    background-color: var(--bg);
    transition: all 0.15s ease;
    border-radius: 1px;
}
.header .nav-toggle .bar::before,
.header .nav-toggle .bar::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 3px;    
    border-radius: 1px;
    background-color: var(--bg);
    transition: all 0.15s ease;
    content: '';
}
.header .nav-toggle .bar::before { top: -7px; }
.header .nav-toggle .bar::after { top: 7px; }
.header .nav-toggle.active .bar {
    background-color: transparent;
    --bg: var(--color-accent);
}
.header .nav-toggle.active .bar::before {
    top: 0;
    rotate: 45deg;
}
.header .nav-toggle.active .bar::after {
    top: 0;
    rotate: -45deg;
}

@media (min-width: 600px) {
    .header {
        height: 100px;
    }
    .header .logo {
        gap: 2.5rem;
    }
    .header .logo img {
        height: 64px;
        margin: 1rem 0;
    }
    .header .celebrating img {
        height: auto;
    }
}
@media (min-width: 1200px) {
    .header .number {
        display: block;
        font-family: var(--ff-headings);
        font-size: 2rem;
        font-weight: 600;
    }
    .header .number a {
        color: var(--color-accent);
        text-decoration: none;
    }
    .header .number a:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    .header .nav-toggle {
        display: none;
    }
}

/*==------------------------------------------------------------------====
    Primary Navigation
====------------------------------------------------------------------==*/
nav {
    --nav-highlight: #82bfe6;

    background: var(--color-primary);
    background: linear-gradient(49deg, rgba(25,43,93,1) 0%, rgba(25,43,93,1) 74%, rgba(64,87,149,1) 100%);
    font-weight: var(--fw-semi-bold);
    border-bottom: 0.4rem solid var(--color-primary-light);
}
.primary-nav {
    border-top: 0.4rem solid var(--color-primary-light);
    display: none;
}
@media (max-width: 1199px) {
    .primary-nav.active {
        display: flex;
        flex-direction: column;        
        gap: 0.15rem;
    }
    .primary-nav.active a {
        color: #fff;
        text-decoration: none;
        padding: 0.75rem 1.5rem;
        display: block
    }
    .primary-nav.active a:active {
        background-color: var(--color-primary-light);
        transition: all 0.1s ease;
    }
}

@media (min-width: 1200px) {
    .primary-nav {

        display: flex;
        border-top: none;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: var(--max-width);
        margin: 0 auto;
        justify-content: center;    
    }
    .primary-nav a {
        display: flex;
        position: relative;
        color: #fff;
        text-decoration: none;
        align-items: center;
        padding: 1rem 1.5rem;
        transition: all 0.1s ease;
        text-shadow: 1px 1px 2px rgba(0 0 0 / 35%);
    }
    .primary-nav a::after {
        position: absolute;
        inset: 0;
        left: 0;
        top: 100%;
        /* width: 25%; */
        height: 6px;
        background-color: transparent;
        content: '';
        transition: background-color 0.15s ease;
    }
    .primary-nav a:hover::after {
        width: 100%;
        background-color: var(--color-accent);
        content: '';
    }
    .primary-nav a:active::after,
    .primary-nav a:hover::after {
        background-color: var(--nav-highlight);
    }
    .primary-nav a:active {
        background-color: #349de2;
    }

    .primary-nav [aria-current]::after {
        background-color: var(--color-accent);
    }
    .primary-nav [aria-current]:hover::after {
        background-color: var(--color-accent);
    }
}

/*==------------------------------------------------------------------====
    Content
====------------------------------------------------------------------==*/
.content {
    flex: 1;
}
.content a {
    color: var(--color-primary-light);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration: underline;
    transition: all 0.25s ease;
}
.content a:hover {
    text-decoration-thickness: 2px;
    color: var(--color-accent);
}

.fullwidth { padding: 3.5rem 0; }   
.fullwidth.borders {
    box-shadow: inset 0 -1px 0 0 rgb(0 0 0 / 5%), inset 0 1px 0 0 rgb(0 0 0 / 5%);
}

section { padding: 5rem 0; }

.services ul {
    margin: 0 0 2rem 2rem;
    padding: 0;
    list-style-type: square;
}
.services h2 { margin-bottom: 0; }

.contact h3 { margin-bottom: 0.5rem; }
.contact h4 {
    font-weight: var(--fw-semi-bold);
    margin: 0;
}

.solutions {
    display: flex;
    flex-direction: row;
    font-size: 1.5rem;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.solutions a {
    padding: 0.1rem 0.5rem;
    border-radius: 100px;
    border: 1px solid #ccc;
    color: #333;  
    font-size: 0.8rem;
    text-decoration: none;
}
.solutions a:hover { 
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: #fff;
}

.customer-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;   
}
.customer-list img {
    max-height: 125px;
}

.dark { color: #fff; }

/*==------------------------------------------------------------------====
    Page Banner
====------------------------------------------------------------------==*/
.page-banner {    
    --aspect-ratio: 16 / 9; 
    aspect-ratio: var(--aspect-ratio);
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #fff;
    background-position: 50% 50%;
}
.page-banner .device {
    display: none;
}

@media (min-width: 740px)  { 
    .page-banner { 
        --aspect-ratio: 16 / 5.5; 
    }

    .page-banner .device {
        display: block;
        position: absolute;
        top: 50%;
        right: 10%;
        translate: 0 -50%;
        max-height: 520px;
        max-width: 520px;
        width: 100%;
        height: 100%;
        mix-blend-mode: overlay;
        transform-origin: 50% 50%;
        opacity: 0.45;
        animation-name: device-spin;
        animation-duration: 30s;
        z-index: 50;
    }

    @keyframes device-spin {
        from { rotate: 0; }
        to {rotate: -360deg; }
      }

    .page-banner::after {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        box-shadow: inset 0 -10px 8px 0 rgba(0 0 0 / 7.5%);
        z-index: 50;
        content: '';
    }
}
@media (min-width: 1200px) { 
    .page-banner { 
        --aspect-ratio: 16 / 3; 
        background-size: 100%;
    }
    .page-banner.parallax {
        background-attachment: fixed;
    }
}

/*==------------------------------------------------------------------====
    Footer
====------------------------------------------------------------------==*/
.footer {
    padding: 1.25rem 0;
    flex: 0;
    background: var(--color-primary);
    background: linear-gradient(49deg, rgba(25,43,93,1) 0%, rgba(25,43,93,1) 74%, rgba(64,87,149,1) 100%);
    border-top: 0.5rem solid var(--color-primary-light);
    color: #fff;
}
.footer .copyright {
    font-size: 0.85rem;
    text-align: center;
}
.footer .social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.footer .social a {
    color: #ddd;
    transition: all 0.15s ease;
    font-size: 2rem
}
.footer .social a:hover {
    color: #fff;
}
.footer .social a:active {
    scale: 0.9;
}

/*==------------------------------------------------------------------====
    Grid
====------------------------------------------------------------------==*/
[class*="grid-"] {
    --grid-gap: 2rem;
    
    display: grid;
    gap: var(--grid-gap);
}
.grid-even-columns {
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
}
@media (min-width: 600px) {
    .grid-auto-flow {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }
    .grid-2-cols { grid-template-columns: repeat(2, 1fr); }
    .grid-3-cols { grid-template-columns: repeat(3, 1fr); }
    .grid-4-cols { grid-template-columns: repeat(4, 1fr); }
    .grid-5-cols { grid-template-columns: repeat(5, 1fr); }
}

/*==------------------------------------------------------------------====
    Cards
====------------------------------------------------------------------==*/
.cards {
    font-size: var(--fs-300);
}
.cards + * {
    margin-top: 3rem;
}
.cards li {
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0 15px 0 rgb(0 0 0 / 10%), 0 0 3px 0 rgb(0 0 0 / 3%);
    transition: all 0.1s ease;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}
.cards li:hover {
    box-shadow: 0 0 15px 0 rgb(0 0 0 / 25%), 0 0 3px 0 rgb(0 0 0 / 18%);
}
.cards li:hover .icon {
    color: var(--color-primary-light);
    transition: color 0.25s ease;
}
.cards .details {
    padding: 2rem;
}
.cards h2 {
    line-height: 1.5;
    font-size: 1.25rem;    
}
.cards .date {
    color: #555;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.cards .icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}
.cards:not(.customers) a::after {
    position: absolute;
    inset: 0;
    z-index: 10;
    content: '';
}
.cards a::after:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;}

.cards .thumbnail {
    overflow: hidden;
    aspect-ratio: 16/9;
}
.cards .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 1s ease-in-out;    
}
.cards li:hover .thumbnail img {
    scale: 1.2;
}

/*==------------------------------------------------------------------====
    3D Cards
====------------------------------------------------------------------==*/
.card3d-container {
    position: relative;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2rem;    
}
.card3d-container + .card3d-container {
    margin-top: 2rem;
}
.card3d {
    transition: transform 0.5s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%);
    height: 460px;  
}
.card3d:hover {
    cursor: pointer;
}
.card3d .face {
    position: absolute;
    isolation: isolate;
    inset: 0;
    backface-visibility: hidden;
    padding: 2rem;
    border-radius: 0.5rem;
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.card3d .face h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.card3d .face h3 { font-size: 1.25rem; }
.card3d .face.front {
    background-color: var(--color-primary);
    box-shadow: inset 0 0 0 4px var(--color-primary-light);    
}
.card3d .face.front::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgb(255 255 255 / 0) 10%, rgb(255 255 255 / 35%) 30%, rgb(255 255 255 / 0) 50%);
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    mix-blend-mode: overlay;    
} 
.card3d .face.back {
    background-color: var(--color-accent);
    transform: rotateY(180deg);
    text-shadow: 2px 2px 3px rgb(0 0 0 / 25%);
    justify-content: space-between;
    display: flex;
    flex-direction: column;
}
.card3d .face.back::after {
    position: absolute;
    inset: 0;    
    background-image: url('/assets/images/silhouette.png');
    background-repeat: no-repeat;
    background-position: 85% 50%;
    background-size: 150px;
    opacity: 0.25;
    mix-blend-mode: soft-light;
    content: '';
}
.card3d.is-flipped {
    transform: rotateY(180deg);
}
.card3d h3 {
    font-size: 2rem;
}
.card3d ul {
    list-style: square;
    text-align: left;
    padding: 0;
    margin: 0 0 1rem 2rem;
}
.card3d .flip {
   position: absolute;
   bottom: 1.5rem;
   right: 1.5rem;
   font-size: 2rem;
   color: var(--color-primary-light);
   transition: all 0.1s ease;
}
.card3d:hover .flip {
    color: #fff;
}
.card3d .button {
    background-color: var(--color-primary);
    text-decoration: none;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    display: block;
    position: relative;
    text-shadow: none; 
    z-index: 200;
    box-shadow: 0 3px 5px rgb(0 0 0 / 25%);
    transition: all 0.15s ease;
}
.card3d .button:active {
    box-shadow: 0 1px 3px rgb(0 0 0 / 30%);
    top: 2px;
}
.card3d .button:hover {
    color: #111;
    background-color: rgb(255, 170, 0);
}
@media (min-width: 600px) {
    .card3d-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .card3d {
        flex: 0 1 350px;
    }
}

/*==------------------------------------------------------------------====
    Breadcrumbs
====------------------------------------------------------------------==*/
.breadcrumbs {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    background-color: #f7f9ff;
    padding: 0.5rem 1rem;
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 5%);
}
.breadcrumbs li:not(:last-child)::after {
    content: "\f054";
    font-family: var(--ff-font-awesome);
    margin: 0 0.5rem;
    color: #999;
}
.breadcrumbs a {
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs .home {
    color: var(--color-text);
    font-size: 1rem;
}

/*==------------------------------------------------------------------====
    Vertical Lists
====------------------------------------------------------------------==*/
.grid-vertical-list {
    gap: 0;
}
.grid-vertical-list > li  {
    display: grid;
    align-items: center;
    padding: 2.5rem 0;
    gap: 2rem;
}
.grid-vertical-list > li:not(:last-child)  {
    border-bottom: 1px solid #ddd;
}
@media (min-width: 600px) {
    .grid-vertical-list > li  {
        grid-template-columns: 325px 1fr;
    }
}
.grid-vertical-list .logo img {
    max-width: 200px;
    max-height: 100px;
    margin: 0 auto;
}
.grid-vertical-list .logo.large img {
    max-width: 250px;
    max-height: 175px;
}
.grid-vertical-list h2 {
    margin-bottom: 0.5rem;
}
.grid-vertical-list h3 {
    font-size: 1rem;
    color: #888;
}

.customers {
    --grid-gap: 3rem;
}
.customers .logo img {
    max-height: 130px;
}
.customers .logo {
    height: 200px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.customers .logo img {
    max-width: 200px;
    max-height: 100px;
}
.customers .logo.large img {
    max-width: 250px;
    max-height: 150px;
}
.customers .details {
    padding: 1.5rem;
    padding-top: 0;
    display: grid;
    gap: 0.75rem;
}
.customers p {
    margin: 0;
    text-align: center;
    font-weight: var(--fw-bold);
    border-top: 2px solid var(--color-primary-light);
    padding-top: 0.75rem;
}
.customers .solutions {
    justify-self: center;
    margin-bottom: 0;
}

/*==------------------------------------------------------------------====
    Modal
====------------------------------------------------------------------==*/
.modal {
    position: fixed;
    top: 50%;
    left: 50%;    
    transform: translate(-50%, -50%);
    padding: 1.5rem;
    margin: 1.5rem;
    background-color: #fff;
    border: 1px solid #000;
    box-shadow: 5px 7px 10px 0 rgb(0 0 0 / 15%);
}
.modal::backdrop {
    background-color: rgb(0 0 0 / 60%);
    content: '';
}
.dialog-image {
    cursor: pointer;
}

/*==------------------------------------------------------------------====
    Form.IO Override
====------------------------------------------------------------------==*/
[ref="nested-contactDetails"] {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
[ref="element"] {
    display: grid;
}
.form-group {
    display: grid;
    gap: 0.125rem;
}
.form-control {
    padding: 0.4rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #bbb;
}
.formio-component-checkbox {
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;    
}
.formio-form-wrapper strong {
    font-weight: normal;
}
.formio-form-wrapper .btn {
    background-color: var(--color-primary);
    text-decoration: none;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    display: block;
    position: relative;
    text-shadow: none; 
    z-index: 200;
    box-shadow: 0 3px 5px rgb(0 0 0 / 25%);
    transition: all 0.15s ease;
    font-size: inherit;
    width: fit-content;
    cursor: pointer;
}
.formio-form-wrapper .btn:active {
    box-shadow: 0 1px 3px rgb(0 0 0 / 30%);
    top: 2px;
}
.formio-form-wrapper .btn:hover {
    color: #111;
    background-color: rgb(255, 170, 0);
}

/*==------------------------------------------------------------------====
    Utility Classes
====------------------------------------------------------------------==*/
.text-center {
    text-align: center;
}
.hide {
    display: none;
}
.debug, .debug * {
    background-color: rgb(255 0 0 / 15%);
    outline: 1px solid #c00;
}