* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-flow: column nowrap;
}

main {
    flex: 1 0 auto;
}

:root {
    /* sizes */
    --xxs: 6px;
    --xs: 10px;
    --sm: 16px;
    --md: 20px;
    --lg: 40px;
    --xl: 60px;
    --xxl: 80px;
    --xxxl: 160px;
    --article-w: 750px;
    --content-w: 1200px;

    /* colours */
    --accent: #1275d0;
    --accent2: #268E20;
    --bg: #fff;
    --bg-2: #F1F9F1;
    --bg-h: #EDEDED;
    --cover: rgba(0, 0, 0, 0.2);
    --cover-dark: rgba(0, 0, 0, 0.4);
    --cover2: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0)60%);
    /* gradient for video cards that fades out */
    --contrast: #252525;
    --contrast-h: #484848;
    --contrast-a: #838383;
    --input-line: #000;
    --input-line-h: #D4D4D4;
    --grad-accent: linear-gradient(to bottom right, var(--accent), var(--accent2));
    --grad-accent-h: linear-gradient(to bottom right, #408FCE, #4FA253);
    --grad-accent-t: linear-gradient(to bottom right, rgba(18, 117, 208, 0.8), rgba(38, 142, 32, 0.8));
    /* this is the same gradient but with 80% opacity for card hovers */
    --nav: rgba(255, 255, 255, 0.85);
    --primary: #0D406B;
    --primary-h: #174B79;
    --primary-a: #3A6B97;
    --secondary: #164613;
    --secondary-h: #21591D;
    --secondary-a: #3C7339;
    --text: #252525;
    --text-h: #484848;
    --text-ex: #9A9797;

    /* Shadows */
    --shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.12);
    --shadow-h: 0px 2px 15px 0px rgba(0, 0, 0, 0.2);
}

/* fonts */
h1,
h2,
h3 {
    font-family: 'Futura', sans-serif;
    text-wrap: balance;
    word-break: break-word;
}

h4,
h5,
h6,
p,
a,
input,
label,
summary,
textarea,
li,
small {
    font-family: 'Figtree', serif;
    text-wrap: balance;
    word-break: break-word;
}

h1 {
    font-weight: 700;
    font-size: 48px;
    color: var(--bg);
}

h2 {
    font-weight: 500;
    font-size: 40px;
    color: var(--text);
}

h3 {
    font-weight: 500;
    font-size: 34px;
    color: var(--text);
}

h4,
summary {
    font-weight: 500;
    font-size: 26px;
    color: var(--text);
}

h5 {
    font-weight: 500;
    font-size: 23px;
    color: var(--text);
}

h6 {
    font-weight: 500;
    font-size: 20px;
    color: var(--text);
}

p,
input,
textarea,
li {
    font-weight: 400;
    font-size: 18px;
    color: var(--text);
    text-wrap: balance;
}

label {
    font-weight: 300;
    font-size: 14px;
}

small {
    font-weight: 400;
    font-size: 16px;
    color: var(--text-h);
}

.textCenter {
    text-align: center;
}

p.lines {
    line-clamp: 3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    &.two {
        line-clamp: 2;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

p.short {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

input,
textarea {
    padding: var(--xs) var(--sm);
    border-radius: var(--lg);
    border: 1px solid var(--input-line);
    background: none;

    &:hover {
        border: 1px solid var(--input-line-h);
    }

    &:focus,
    &:active {
        border: 1px solid var(--input-line);
        outline: none;
    }
}

textarea {
    padding: var(--sm) var(--md);
}

.iconify {
    font-size: 30px;
    color: var(--text);
    flex-shrink: 0;

    &.sm {
        font-size: 24px;
        color: var(--secondary);
    }

    &.footer {
        color: var(--text);
        font-size: 26px;

        &:hover {
            color: var(--text-h);
        }
    }
}

/* Links */
a {
    font-weight: 400;
    font-size: 18px;
    color: var(--text);
    text-decoration: none;

    &.searchLink {
        color: var(--secondary);
        font-size: 26px;
        font-weight: 500;
    }

    &.icon {
        display: flex;
        align-items: center;
        gap: var(--xs);

        .iconify {
            font-size: 18px;
            color: var(--secondary);
        }
    }

    &:hover {
        color: var(--text-h);
    }

    &:active {
        color: var(--secondary);
    }

    &.inline {
        color: var(--secondary);
        text-decoration: underline;
        text-underline-offset: 2px;

        &:hover {
            color: var(--text-h);
            text-decoration: underline;
            text-underline-offset: 2px;
        }
    }

    &.inline2 {
        color: var(--bg);
        text-decoration: underline;
        text-underline-offset: 2px;

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

    &.current {
        color: var(--secondary);
    }

    nav a {
        font-weight: 400;
        font-size: 20px;
        color: var(--text);
        text-decoration: none;

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

        &:active {
            color: var(--text-h);
        }
    }

    label {
        font-weight: 400;
        font-size: 18px;
        color: var(--text);

        &.sm {
            font-size: 14px;
        }
    }
}

/* Components */
/* a tag buttons */
a {
    &.btn {
        width: fit-content;
        max-width: 100%;
        background: var(--contrast);
        color: var(--bg);
        padding: var(--xs) var(--md);
        border: none;
        border-radius: var(--lg);
        text-decoration: none;
        font-family: 'Figtree', serif;
        font-size: 18px;
        font-weight: 400;

        &:hover {
            background: var(--contrast-h);
            color: var(--bg);
            cursor: pointer;
        }
    }

    /* Outline Button */
    &.btnOL {
        width: fit-content;
        max-width: 100%;
        background: var(--bg);
        color: var(--text);
        padding: var(--xs) var(--md);
        border: 1px solid var(--contrast);
        border-radius: var(--lg);
        text-decoration: none;
        font-family: 'Figtree', serif;
        font-size: 18px;
        font-weight: 400;

        &:hover {
            background: var(--bg-h);
            color: var(--text);
            cursor: pointer;
        }
    }

    /* Light Button */
    &.btnL {
        width: fit-content;
        max-width: 100%;
        background: var(--bg);
        color: var(--text);
        padding: var(--xs) var(--md);
        border: none;
        border-radius: var(--lg);
        text-decoration: none;
        font-family: 'Figtree', serif;
        font-size: 18px;
        font-weight: 400;

        &:hover {
            background: var(--bg-h);
            color: var(--text);
            cursor: pointer;
        }
    }

    /* Gradient Button */
    &.btnG {
        width: fit-content;
        max-width: 100%;
        background: var(--grad-accent);
        color: var(--bg);
        padding: var(--xs) var(--md);
        border-radius: var(--lg);
        text-decoration: none;
        font-family: 'Figtree', serif;
        font-size: 18px;
        font-weight: 400;

        &:hover {
            background: var(--grad-accent-h);
            color: var(--bg);
            cursor: pointer;
        }
    }

    /* Close Button */
    &.close {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 40px !important;
        color: var(--text);
        padding: var(--xxs);
        background: var(--bg);
        border-radius: 100%;

        &:hover {
            background: var(--bg-h);
            cursor: pointer;
        }
    }
}




button {
    width: fit-content;
    max-width: 100%;
    background: var(--contrast);
    color: var(--bg);
    padding: var(--xs) var(--md);
    border: none;
    border-radius: var(--lg);
    text-decoration: none;
    font-family: 'Figtree', serif;
    font-size: 18px;
    font-weight: 400;

    &:hover {
        background: var(--contrast-h);
        color: var(--bg);
        cursor: pointer;
    }

    &:active {
        background: var(--contrast-a);
        color: var(--bg);
    }

    &.iconify {
        display: flex;
        width: fit-content;
        height: fit-content;
    }

    &.smArrow {
        color: var(--text);
        padding: var(--xxs);
        border-radius: 100%;
        background: var(--bg);

        .iconify {
            font-size: 22px;
        }

        &:hover {
            background: var(--bg-h);
        }
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--xl);
    width: 100%;
    padding: var(--sm) var(--lg);
    border-radius: 0 0 var(--lg) var(--lg);
    background: var(--nav);
    backdrop-filter: blur(10px);
    z-index: 80;

    nav {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--md);
        width: var(--content-w);
        max-width: 100%;

        .logoImg {
            height: 29px;
            max-width: 100%;
            flex-shrink: 1;
            object-fit: contain;
        }

        .links {
            display: flex;
            flex-flow: row nowrap;
            align-items: center;
            justify-content: center;
            gap: var(--md);

            @media (max-width: 770px) {
                display: none;
            }

            .dropdown {
                position: relative;
                display: inline-block;

                &:hover .dropdown-content {
                    display: flex;
                    flex-flow: column nowrap;
                    overflow: hidden;

                    &.spacer {
                        height: 10px;
                        width: 100%;
                        background: pink;
                    }
                }

                &:hover .parentBtn {
                    color: var(--primary);
                    cursor: pointer;
                }

                &::after {
                    content: '';
                    position: absolute;
                    top: 100%;
                    left: 0;
                    width: 100%;
                    height: 35px;
                    background: transparent;
                }
            }

            .dropdown-content {
                display: none;
                position: absolute;
                right: 0;
                top: 35px;
                background-color: var(--bg);
                min-width: fit-content;
                width: fit-content;
                max-width: 100%;
                border-radius: var(--xxs);
                box-shadow: var(--shadow);
                z-index: 1;
            }
        }

        .search {
            width: 200px;
            max-width: 100%;

            @media (max-width: 770px) {
                display: none;
            }
        }

        .dropBtn {
            min-width: fit-content;
            width: 100%;
            padding: var(--xs);
            text-wrap: nowrap;
            text-align: right;

            &:hover {
                background: var(--bg2);
            }
        }

        .dropSearch {
            width: 200px;
            max-width: 100%;
            padding: var(--xxs) var(--sm);
            margin: var(--xs);
            border-radius: var(--lg);
            border: 1px solid var(--input-line);
            background: none;

            &:hover {
                border: 1px solid var(--input-line-h);
                cursor: pointer;
            }

            &:focus,
            &:active {
                border: 1px solid var(--input-line);
                outline: none;
            }
        }

        .hamburgerBtn {
            display: none;
            flex-shrink: 0;
            font-size: 24px;
            color: var(--text);
            background: transparent;

            &:hover {
                color: var(--primary);
                background: var(--bg2);
            }

            @media (max-width: 770px) {
                display: flex;
            }
        }

        #mobile {
            position: fixed;
            inset: unset;
            top: 75px;
            right: 30px;
            border: none;
            border-radius: var(--xs);
            box-shadow: var(--shadow);
            background: var(--bg);

            .menu {
                display: flex;
                flex-flow: column nowrap;
            }
        }
    }
}

/* Footer */
footer {
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: var(--xl) var(--lg);
    border-top: 1px solid var(--contrast);
    z-index: 0;


    .footerRow {
        flex-flow: row wrap;
        justify-content: space-between;

        .fCol {
            display: flex;
            flex-flow: column nowrap;
            gap: var(--md);
            width: fit-content;
            max-width: 100%;

            .logoImg {
                width: 230px;
                max-width: 100%;
                flex-shrink: 1;
                object-fit: contain;
            }
        }

        .fRow {
            display: flex;
            flex-flow: row wrap;
            gap: var(--lg);
            width: fit-content;
            max-width: 100%;

            .links {
                display: flex;
                flex-flow: column nowrap;
                gap: var(--md);

                .socials {
                    display: flex;
                    flex-flow: row nowrap;
                    gap: var(--sm);
                }
            }
        }
    }
}


/* All Page Layouts */
section {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--xl);
    padding: var(--xxl) var(--lg);
    scroll-margin-top: 100px;
    /* prevents anchor links from scrolling too far down */

    &.no-sides {
        padding: var(--xxl) 0;
    }

    &.top {
        padding-top: 0;
    }

    &.bottom {
        padding-bottom: 0;
    }

    &.none {
        padding: 0;
    }

    &.divider {
        border-bottom: 3px solid transparent;
        border-image: var(--gradient-brand) 1;
    }
}

.content {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: var(--lg);
    width: var(--content-w);
    max-width: 100%;
    z-index: 2;

    &.row {
        flex-flow: row wrap;
        justify-content: flex-start;
        gap: var(--lg);
    }

    &.center {
        align-items: center;
        justify-content: center;
    }

    &.border {
        padding: var(--lg);
        background: var(--bg);
        border-radius: var(--lg);
        box-shadow: var(--shadow);

        &.materials {
            border-radius: var(--md);
            align-items: center;

            &:hover {
                box-shadow: var(--shadow-h);

                h4 {
                    background: var(--grad-accent);
                    -webkit-background-clip: text;
                    background-clip: text;
                    -webkit-text-fill-color: transparent;
                    color: transparent;
                }
            }
        }

        &::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            padding: 1px;
            background: var(--grad-accent);
            -webkit-mask:
                linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }
    }


    &.between {
        justify-content: space-between !important;
        align-items: center;
    }

    &.top {
        margin-top: var(--xxl);
    }

    &.bottom {
        padding-bottom: var(--xxl);
    }
}

.textW {
    width: 650px;
    max-width: 100%;
}

.fullW {
    width: 100%;
    text-align: center;
}

img {
    object-fit: cover;
    object-position: center;
}

/* Page Content */
/* Home */
.hero {
    padding: 0 !important;
    min-height: 500px;
    height: 70vh;
    border-radius: 0 0 var(--lg) var(--lg);
    background: url(/assets/home-hero.webp) no-repeat center center;
    background-size: cover;
    overflow: hidden;
    z-index: 0;

    .heroContent {
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        justify-content: center;
        gap: var(--md);
        width: 100%;
        height: 100%;
        padding: var(--lg);
        background: var(--cover);

        h1,
        h5 {
            text-align: center;
            color: var(--bg);
        }
    }
}

/* Flip Cards - Home */
.flipCard {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--md);
    flex-grow: 1;
    width: 350px;
    max-width: 373px;
    min-height: 320px;
    height: fit-content;
    padding: var(--lg);
    border-radius: var(--lg);
    background: var(--bg);
    box-shadow: var(--shadow);
    perspective: 500px;
    transition: transform 1s;
    transform-style: preserve-3d;
    position: relative;

    .text {
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: var(--xs);
        text-align: center;
        width: 100%;
        height: fit-content;
    }

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: var(--lg);
        padding: 1px;
        background: var(--grad-accent);
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        /* for rounded border gradient */
    }

    .back {
        position: absolute;
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        justify-content: center;
        gap: var(--md);
        width: 100%;
        height: fit-content;
        min-height: 100%;
        padding: var(--lg);
        border-radius: var(--lg);
        backface-visibility: hidden;
        background: var(--grad-accent);
        transform: rotateX(180deg);

        h4,
        h6 {
            text-align: center;
            color: var(--bg);
        }
    }

    .iconImg {
        width: 80px;
        height: 80px;
        object-fit: contain;
        object-position: center;
    }

    &:hover {
        box-shadow: var(--shadow-h);
        transform: rotateX(-180deg);
        transition: transform 1s;
        z-index: 1;

        @media (max-width: 400px) {
            transform: none;
        }
    }

    @media (max-width: 400px) {

        button {
            pointer-events: auto;
        }

        &.flipped {
            transform: rotateX(-180deg);
            box-shadow: var(--shadow-h);
            transition: transform 1s;
            z-index: 1;
        }
    }
}

/* Testimonials */
.quotes {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--lg);
    padding: var(--lg);
    background: var(--grad-accent);
    border-radius: var(--lg);

    h3,
    h4,
    p {
        color: var(--bg);
        text-align: center;
    }

    .quote {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        justify-content: center;
        gap: var(--lg);
        width: 1080px;
        max-width: 100%;
        position: relative;
        min-height: 200px;
        height: fit-content;
        transition: height 0.3s ease-in-out;
        margin: 0 auto;
        overflow: visible;

        .text {
            display: flex;
            flex-flow: column nowrap;
            align-items: center;
            justify-content: center;
            flex-grow: 1;
            gap: var(--xs);
            min-width: 200px;
            width: 750px;
            max-width: 100%;
            opacity: 0;
            position: absolute;
            transition: opacity 0.3s ease-in-out;
            visibility: hidden;
            padding: var(--sm);
            pointer-events: none;

            &.active {
                opacity: 1;
                position: relative;
                visibility: visible;
                pointer-events: auto;
            }

            /* remove gap between last two paragraphs */
            p:last-child {
                margin-top: calc(-1 * var(--xs));
            }
        }

        button {
            position: relative;
            z-index: 1;
        }
    }
}

/* Gradient Text */
.colourful {
    text-align: center;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Newsletter Banner */
.news {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--sm);
    max-width: 100%;

    .newsInput {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        justify-content: center;
        gap: var(--md);
        width: 700px;
        max-width: 100%;

        input {
            min-width: 200px;
            width: 350px;
            max-width: 100%;
        }
    }

    p {
        text-align: center;
    }
}

/* News Pages Styling */
.heroSm {
    padding: 0 !important;
    min-height: 350px;
    height: 50vh;
    border-radius: 0 0 var(--lg) var(--lg);
    background: url(/assets/insights-hero.webp) no-repeat center center;
    background-size: cover;
    overflow: hidden;
    z-index: 0;

    &.alt {
        background: url(/assets/cases-hero.webp) no-repeat center center;
        background-size: cover;
        /* alt background for Case Studies page */
    }

    &.alt2 {
        background: url(/assets/updates-hero.webp) no-repeat center 30%;
        background-size: cover;
        /* alt background for Service Updates page */
    }



    .cover {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: var(--lg);
        background: var(--cover);
    }

    .heroContent {
        display: flex;
        flex-flow: column nowrap;
        align-items: start;
        justify-content: center;
        gap: var(--md);
        width: var(--content-w);
        max-width: 100%;

        h2,
        h5 {
            /* text-align: center; */
            color: var(--bg);
        }
    }
}

/* News Card Links */
/* This can be used as a backup for the employee cards if they are pasted into the html w no styling changes from the last site */
.card {
    display: flex;
    flex-flow: column nowrap;
    gap: var(--lg);
    flex-grow: 1;
    width: 300px;
    max-width: 373px;
    min-height: fit-content;
    padding-bottom: var(--lg);
    background: var(--bg);
    box-shadow: var(--shadow);
    border-radius: var(--lg);
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: var(--lg);
        padding: 1px;
        background: var(--grad-accent);
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    @media (max-width: 530px) {
        width: 100%;
        max-width: 100%;
    }

    img {
        width: 100%;
        height: 300px;
        border-radius: var(--lg);
        object-fit: cover;
        object-position: center;

        &.top {
            object-position: top;
        }
    }

    &:hover {
        box-shadow: var(--shadow-h);
        transition: all 0.2s ease-in-out;

        &::before {
            opacity: 1;
        }

        .text .more .linkText {
            color: var(--text-h);
        }

        .text .more .smArrowDark {
            background: var(--text-h);
        }
    }

    .text {
        display: flex;
        flex-flow: column nowrap;
        gap: var(--sm);
        padding: 0 var(--lg);

        .more {
            display: flex;
            flex-flow: row nowrap;
            align-items: center;
            justify-content: space-between;
            gap: var(--md);

            .smArrowDark {
                color: var(--bg);
                padding: var(--xxs);
                border-radius: 100%;
                background: var(--contrast);
            }

            .linkText {
                color: var(--secondary);
            }
        }
    }
}

/* Video Cards */
.video {
    flex-grow: 1;
    width: 540px;
    max-width: 100%;
    min-height: 300px;
    height: fit-content;
    aspect-ratio: 16/9;
    border-radius: var(--lg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;

    .videoThumb {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: var(--lg);
        padding: 1px;
        background: var(--grad-accent);
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        z-index: 2;
    }

    &:hover {
        cursor: pointer;
        box-shadow: var(--shadow-h);
        transition: all 0.2s ease-in-out;

        &::before {
            opacity: 1;
        }

        .cover .play {
            background-image: url('/assets/icons/Play-hover.webp');
        }
    }

    .cover {
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        justify-content: end;
        gap: var(--md);
        width: 100%;
        min-height: fit-content;
        height: 100%;
        padding: var(--lg);
        background: var(--cover2);
        position: relative;

        .play {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            background-image: url('/assets/icons/Play.webp');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            transition: all 0.2s ease-in-out;

            @media (max-width: 600px) {
                position: relative !important;
                top: 0;
                left: 0;
                transform: translate(0, 0);
                flex-shrink: 0;
                width: 40px;
                height: 40px;
            }
        }

        .text {
            display: flex;
            flex-flow: column nowrap;
            gap: var(--xs);
            width: 100%;

            h4,
            p {
                color: var(--bg);
            }
        }
    }
}

/* Side Nav */
.sideNav {
    position: fixed;
    top: 70%;
    left: 0;
    transform: translate(0, -70%);
    display: flex;
    flex-flow: column nowrap;
    gap: var(--xs);
    width: fit-content;
    max-width: 200px;
    height: fit-content;
    max-height: 50vh;
    padding: var(--md);
    background: var(--bg);
    box-shadow: var(--shadow);
    border-radius: 0 var(--sm) var(--sm) 0;
    overflow-y: scroll;
    scrollbar-width: none;
    z-index: 80;


    &.wide {
        top: 60%;
        left: 0;
        transform: translate(0, -60%);
        width: fit-content;
        max-width: 300px;
    }

    .tab {
        padding-left: var(--sm);
        font-size: 18px;
    }

    @media (max-width: 1300px) {
        display: none;
    }
}

/* Video Modal */
.modalV,
.modalE {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: var(--xxl);

    .fullScreen {
        width: 80%;
        max-width: 1200px;
        height: auto;
        max-height: 80vh;
        margin: auto;
        border-radius: var(--lg);
        background: var(--bg);
        object-fit: cover;
        object-position: center;
    }

    .poster {
        width: 80%;
        max-width: 1200px;
        height: auto;
        margin: auto;
        border-radius: var(--lg);
        background: var(--bg);
    }

    .close {
        position: fixed;
        top: var(--lg);
        right: var(--lg);
        z-index: 101;
    }
}

/* Prevent body scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Show the modal when its target is activated */
:target {
    display: flex;
}

/* Blog Pages Styling */
.blog {
    padding: var(--lg) var(--lg);

    &.end {
        padding-bottom: var(--xxxl) !important;
    }
}

.blogHero,
.materialsHero {
    padding-top: var(--xxxl);
}

.article {
    width: var(--article-w);
    max-width: 100%;
    gap: var(--md);
    text-wrap: normal !important;

    p {
        text-wrap: initial !important;
    }

    ul {
        padding-left: var(--lg);

        li {
            padding: 3px 0;
        }
    }

    .pullQuote {
        padding-left: var(--lg);
        margin: var(--md) 0;
        font-style: italic;
        text-align: left;
        color: var(--text-h);
        position: relative;

        &::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--grad-accent);
        }
    }

    &.fullImg {
        height: 300px;
        object-fit: cover;
        object-position: center;
        border-radius: var(--lg);
        box-shadow: var(--shadow);

        &.top {
            object-position: top;
        }

        &.top2 {
            object-position: center 25%;
        }
    }

    &.imgRow {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        justify-content: center;
        gap: var(--lg);
        width: 100%;

        .imgSm {
            width: 223px;
            height: 223px;
            object-fit: cover;
            object-position: center;
            border-radius: var(--md);
            box-shadow: var(--shadow);
        }
    }

    &.video {
        aspect-ratio: 16/9;
        object-fit: cover;
        object-position: center;
        border-radius: var(--lg);
        box-shadow: var(--shadow);
    }

    &.memberNet {
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        justify-content: center;
        gap: var(--lg);
        height: fit-content;
        padding: var(--lg);
        background: var(--grad-accent);
        border-radius: var(--lg);
        box-shadow: var(--shadow);

        h3 {
            color: var(--bg);
        }
    }
}

/* Button Rows */
.btnRow {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: var(--md);
}

/* Contact Us Page */
.contactHero {
    padding-top: var(--xxl);

    .text {
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        justify-content: center;
        gap: var(--md);

        h2 {
            text-align: center;
        }
    }

    .employeeCard {
        position: relative;
        flex-grow: 1;
        width: 350px;
        max-width: 373px;
        min-height: 320px;
        height: 350px;
        border-radius: var(--lg);
        box-shadow: var(--shadow);
        overflow: hidden;
        cursor: pointer;

        .bgImg {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            position: relative;
        }

        .frontText {
            position: absolute;
            top: 0;
            left: 0;
            display: flex;
            flex-flow: column nowrap;
            align-items: center;
            justify-content: end;
            gap: var(--xs);
            width: 100%;
            height: 100%;
            padding: var(--lg);
            background: var(--cover2);
            transition: opacity 0.5s ease;
            z-index: 1;

            h4,
            h6 {
                text-align: center;
                color: var(--bg);
            }
        }

        .hoverContent {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            opacity: 0;
            flex-flow: column nowrap;
            align-items: center;
            justify-content: center;
            gap: var(--md);
            padding: var(--lg);
            background: var(--grad-accent-t);
            z-index: 2;
            transition: opacity 0.7s ease;

            .text {
                display: flex;
                flex-flow: column nowrap;
                align-items: center;
                justify-content: center;
                gap: var(--xs);

                h4,
                h6,
                p,
                a {
                    text-align: center;
                    color: var(--bg);
                }
            }
        }

        &:hover {
            box-shadow: var(--shadow-h);

            .frontText {
                opacity: 0;
                pointer-events: none;
            }

            .hoverContent {
                opacity: 1;
            }

            @media (max-width: 400px) {
                .frontText {
                    opacity: 1;
                    pointer-events: auto;
                }

                .hoverContent {
                    opacity: 0;
                }
            }
        }

        @media (max-width: 400px) {
            &.active {
                box-shadow: var(--shadow-h);

                .frontText {
                    opacity: 0;
                    pointer-events: none;
                }

                .hoverContent {
                    opacity: 1;
                }
            }
        }
    }
}

/* Map Section */
.mapText {
    display: flex;
    flex-flow: column nowrap;
    align-self: center;
    flex-grow: 1;
    gap: var(--sm);
    width: 300px;
    max-width: 100%;
}

.map {
    flex-grow: 1;
    width: 650px;
    max-width: 100%;
    height: 600px;
    max-height: 600px;
    border-radius: var(--lg);
    box-shadow: var(--shadow);
}

/* Contact Form */
.formImg {
    justify-self: stretch;
    flex-grow: 1;
    width: 500px;
    max-width: 100%;
    min-height: 500px;
    height: 850px;
    max-height: 90vh;
    border-radius: var(--lg);
    box-shadow: var(--shadow);

    @media (max-width: 1269px) {
        height: 400px;
        max-height: 500px;
    }

    &.custom {
        height: 950px;
        max-height: 1000px;

        @media (max-width: 1269px) {
            height: 400px;
            max-height: 500px;
        }
    }
}

.contactForm {
    display: flex;
    flex-flow: column nowrap;
    align-self: center;
    gap: var(--lg);
    flex-grow: 1;
    width: 650px;
    max-width: 100%;
    height: fit-content;
    padding: 0 var(--md);

    .service {
        display: flex;
        flex-flow: column nowrap;
        gap: var(--lg);

        /* Checkboxes */
        .checks {
            display: flex;
            flex-flow: row wrap;
            gap: var(--md);

            h6 {
                width: 100%;
            }

            .check {
                display: flex;
                flex-flow: row nowrap;
                align-items: center;
                gap: var(--xxs);
                cursor: pointer;

                label {
                    cursor: pointer;
                    font-size: 18px;
                    font-weight: 400;
                }

                /* Custom checkbox styling */
                input[type="checkbox"] {
                    width: 20px;
                    height: 20px;
                    padding: 0;
                    border: 1px solid var(--input-line);
                    border-radius: 0px;
                    background: var(--bg);
                    cursor: pointer;
                    appearance: none;
                    -webkit-appearance: none;

                    &:hover {
                        border: 1px solid var(--text-h);
                    }

                    &:checked {
                        background: var(--bg);
                        color: var(--text);
                        border: 1px solid var(--text);
                        position: relative;

                        /* Add checkmark using pseudo-element */
                        &::after {
                            content: '';
                            position: absolute;
                            top: 1px;
                            left: 6px;
                            width: 5px;
                            height: 10px;
                            border: solid var(--text);
                            border-width: 0 2px 2px 0;
                            transform: rotate(45deg);
                        }
                    }
                }
            }
        }

        /* Inputs */
        .inputs {
            display: flex;
            flex-flow: column nowrap;
            align-items: flex-start;
            gap: var(--md);

            .textInput {
                display: flex;
                flex-flow: column nowrap;
                gap: var(--xs);
                width: 100%;

                textarea {
                    height: 200px;
                    resize: none;
                }
            }

            .names {
                display: flex;
                flex-flow: row wrap;
                gap: var(--md);
                width: 100%;

                .textInput {
                    flex-grow: 1;
                    width: 250px;
                    max-width: 100%;
                }
            }
        }
    }

    .hide {
        display: none;
    }
}

/* Events Pages Styling */
.heroEvents {
    padding: 0 !important;
    min-height: 350px;
    height: 50vh;
    border-radius: 0 0 var(--lg) var(--lg);
    background: url('/assets/events-hero.webp') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    z-index: 0;

    .cover {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: var(--lg);
        background: var(--cover-dark);
    }

    h2,
    h5 {
        width: var(--article-w);
        max-width: 100%;
        text-align: center;
        color: var(--bg);
    }

}

/* Events */
.event {
    gap: var(--sm);
    text-align: center;

    .article {
        width: var(--article-w);
        max-width: 100%;
    }
}

/* Marketing Materials Page */
.materialsHero {
    text-align: center;
}

.bannerMaterials {
    width: fit-content;
    max-width: 100%;
}

#all {
    text-align: center;
}

.materialCard {
    position: relative;
    width: 270px;
    max-width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease-in-out;
    overflow: hidden;

    &:hover {
        box-shadow: var(--shadow-h);

        .text::before {
            opacity: 1;
        }
    }

    .materialImg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        position: relative;
    }

    .text {
        position: absolute;
        inset: 0;
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: var(--lg);
        background: var(--cover);

        &::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--grad-accent-t);
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
        }

        h4 {
            text-align: center;
            color: var(--bg);
            position: relative;
            z-index: 1;
        }
    }
}

/* Material Cards w Samples */
.samples {
    .text {
        display: flex;
        flex-flow: column nowrap;
        align-self: center;
        flex-grow: 1;
        gap: var(--md);
        width: 450px;
        max-width: 100%;
    }

    .img {
        flex-grow: 1;
        width: 250px;
        max-width: 100%;
        height: 600px;
        object-fit: cover;
        object-position: center;
        border-radius: var(--lg);
        box-shadow: var(--shadow);
    }

    .btnRow {
        justify-content: start;
    }
}

/* Search Results Page */
.searchResults {
    width: fit-content;
    max-width: 100%;
    gap: 0 !important;
    padding: 0 !important;
    margin: var(--xxl) 0;
    background: var(--bg);
    overflow: hidden;

    h3 {
        padding: var(--lg);
    }

    .result {
        display: flex;
        flex-flow: column nowrap;
        gap: var(--md);
        max-width: 100%;
        padding: var(--lg);
        border-top: 1px solid var(--input-line);
        transition: background 0.3s ease-in-out;

        &:hover {
            background: var(--bg-2);
        }

        .result-link {
            width: var(--article-w);
            max-width: 100%;
            display: flex;
            flex-flow: column nowrap;
            gap: var(--xxs);

            a {
                width: fit-content;
                max-width: 100%;
            }
        }

        p {
            width: var(--article-w);
            max-width: 100%;
        }
    }
}