/* Global Variables */
:root {
    /* Colors - Don't forget to add the hsl to the theme.json */
    --brand-color-1: hsl(216, 100%, 22%);
    --brand-color-2: hsl(212, 26%, 89%);
    --brand-color-3: hsl(350.22, 85.19%, 42.35%);
    --brand-color-4: hsl(5, 79%, 22%);
    --brand-color-5: hsl(247, 100%, 16%);
    --brand-color-6: hsl(215, 93%, 39%);
    --body-text: hsl(0, 0%, 24%);
    --white: hsl(0, 0%, 100%);
    --black: hsl(0, 0%, 0%);

    /* Buttons */
    --button-color: var(--brand-color-3);
    --button-text-color: hsl(0, 0%, 100%);
    --button-padding: 10px 41px 10px 17px;
    --button-border-radius: 8px;

    /* Fonts */
    --font-family-work: 'Work Sans', sans-serif;
    --font-family-lora: 'Lora', sans-serif;
    --font-family-figtree: 'Figtree', sans-serif;

    /* Headings */
    --h1: clamp(3rem, calc(3rem + ((1vw - 0.32rem) * 4.0179)), 7.5rem);
    --h2: clamp(3rem, calc(3rem + ((1vw - 0.32rem) * 1.9643)), 5.2rem);
    --h3-res: clamp(2rem, calc(2rem + ((1vw - 0.32rem) * 0.8929)), 3rem);
    --h3: 3rem;
    --h4: 2rem;
    --h5: 1.9rem;
    --h6: 1.8rem;

    /* Text */
    --text: 1.8rem;
    --intro-text: clamp(2rem, calc(2rem + ((1vw - 0.32rem) * 0.8929)), 3rem);
    --ch: 66ch;

    /* Sections */
    --sec-pad-inline: clamp(20px, calc(20px + ((1vw - 3.2px) * 7.1429)), 100px);
    --sec-pad-block: clamp(50px, calc(50px + ((1vw - 3.2px) * 2.3214)), 76px);
    --sec-pad-img: clamp(25px, calc(25px + ((1vw - 3.2px) * 1.1607)), 38px);

    /* Container */
    --container-width: 1440px;

    /* Gap */
    --gap: 1rem;
    --sec-gap: calc(var(--gap) * 3);
    --container-gap: calc(var(--gap) * 3);
    --content-gap: calc(var(--gap) * 2);
    --grid-gap: calc(var(--gap) * 6);

    /* Grid */
    --grid-1: repeat(1, minmax(0, 1fr));
    --grid-2: repeat(2, minmax(0, 1fr));
    --grid-3: repeat(3, minmax(0, 1fr));
    --grid-4: repeat(4, minmax(0, 1fr));
    --grid-5: repeat(5, minmax(0, 1fr));
    --grid-6: repeat(6, minmax(0, 1fr));
    --grid-auto: repeat(auto-fill, minmax(316px, 1fr));
    --grid-auto-filters: repeat(auto-fill, minmax(242px, 1fr));

    /* Border */
    --radius: 1rem;
    --border-radius: calc(var(--radius) * 1);

    /* Shadows */
    --shadow-1: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-2: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-3: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-4: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Fonts */
@font-face {
    font-family: 'Work Sans';
    src: url('../woff2/work-sans-v18-latin-regular.woff2') format('woff2'), url('../woff/work-sans-v18-latin-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Work Sans';
    src: url('../woff2/work-sans-v18-latin-500.woff2') format('woff2'), url('../woff/work-sans-v18-latin-500.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('../woff2/lora-v32-latin-500.woff2') format('woff2'), url('../woff/lora-v32-latin-500.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('../woff/figtree-v4-latin-regular.woff') format('woff'), url('../svg/figtree-v4-latin-regular.svg#Figtree') format('svg'), url('../ttf/figtree-v4-latin-regular.ttf') format('ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('../woff/figtree-v4-latin-500.woff') format('woff'), url('../svg/figtree-v4-latin-500.svg#Figtree') format('svg'), url('../ttf/figtree-v4-latin-500.ttf') format('ttf');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('../woff/figtree-v4-latin-600.woff') format('woff'), url('../svg/figtree-v4-latin-600.svg#Figtree') format('svg'), url('../ttf/figtree-v4-latin-600.ttf') format('ttf');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('../woff/figtree-v4-latin-700.woff') format('woff'), url('../svg/figtree-v4-latin-700.svg#Figtree') format('svg'), url('../ttf/figtree-v4-latin-700.ttf') format('ttf');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Global Reset */
*,
::after,
::before,
html {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 180px;
}

html:focus-within {
    scroll-behavior: smooth;
    scroll-padding-top: 180px;
}

blockquote,
dd,
dl,
figure {
    margin: 0;
}

ol[role=list],
ul[role=list] {
    list-style: none;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

figure,
img,
picture {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: flex;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
[role="button"] {
    cursor: pointer;
}

@media (prefers-reduced-motion:reduce){
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    ::after,
    ::before {
        animation-duration: 0s!important;
        animation-iteration-count: 1!important;
        transition-duration: 0s!important;
        scroll-behavior: auto!important;
    }
}

/* Needed to cloak hidden elements before JS loads when using Alpine.js */
[x-cloak] {
    display: none !important;
}

/* Class to hide elements */
.hide {
    display: none!important;
}

/* Set core body defaults */
body {
    font-family: var(--font-family-figtree);
    font-size: var(--text);
    font-weight: 400;
    line-height: 1.4;
    color: var(--body-text);
    text-rendering: optimizeSpeed;
    min-height: 100vh;
    padding-top: 197px;
}

/* Set core heading defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-lora);
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

h1 {
    font-size: var(--h1);
    letter-spacing: 0.75px;
    color: var(--brand-color-1);
}

h2 {
    font-size: var(--h2);
    color: var(--brand-color-1);
}

h3 {
    font-size: var(--h3);
    color: var(--brand-color-1);
    font-family: var(--font-family-figtree);
    font-weight: 600;
}

h4 {
    font-size: var(--h4);
    color: var(--brand-color-1);
    font-family: var(--font-family-figtree);
    font-weight: 600;
}

h5 {
    font-size: var(--h5);
}

h6 {
    font-size: var(--h6);
}

/* Header */
header {
    padding: 0;
    flex-direction: column;
    display: flex;
    transition-duration: 0.2s;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    font-family: var(--font-family-work);
}

header.sticky {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    background-color: hsl(0, 0%, 100%);
    transition-duration: 0.4s;
}

header.sticky .header-logo {
    width: 140px;
    margin-bottom: 0;
}

/* logo */
.header-logo {
    display: flex;
    min-width: 250px;
    transition-duration: 0.6s;
    margin-bottom: 1.4rem;
}

/* Main Menu */
.main-nav li {
    display: flex;
    align-items: center;
    color: var(--body-text);
    font-size: 1.8rem;
    width: max-content;
}

.main-nav .menu {
    display: flex;
    list-style-type: none;
    padding-left: 0px;
    margin: 0px;
    width: 100%;
    justify-content: space-between;
}

.main-nav .menu :is(a, span) {
    padding: 10px 0;
    text-decoration: none;
    color: var(--brand-color-1);
    font-weight: 500;
    display: flex;
    flex-direction: column;
}

.main-nav .menu :is(a, span):hover {
    color: var(--brand-color-1);
    text-decoration: underline;
    text-decoration-color: var(--brand-color-3);
    text-underline-offset: 6px;
}

.main-nav .menu-item button {
    right: -20px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    transform: rotate(45deg);
}

.main-nav .menu-item button:after {
    display: block;
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--white);
    border-bottom: 1px solid var(--white);
    transition: 0.6s;
}

.main-nav .menu-item button.open:after {
    transform: rotate(180deg);
}

/* MAIN NAV SUB MENU */
.main-nav li .sub-menu {
    position: absolute;
    display: flex;
    flex-direction: row;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    width: 100%;
    padding: 40px;
    border-radius: 0;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    gap: 50px;
    transform: translate(0px, 0px);
    opacity: 1;
    transition: all 0.6s;
    max-height: calc(100vh - 200px);
}

.main-nav li .sub-menu.open {
    transform: translate(0px, 0px);
    opacity: 0;
}

.main-nav li .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* MAIN NAV SUB MENU LI */
.main-nav li .sub-menu li {
    font-size: 1.8rem;
    color: var(--body-text);
}

/* MAIN NAV SUB MENU LI A */
.main-nav li .sub-menu li a {
    color: var(--body-text);
}

.main-nav li .sub-menu li a:hover {
    color: var(--brand-color-1);
    text-decoration: underline;
    text-decoration-color: var(--brand-color-3);
}

@media (max-width:1200px) {
    nav.main-nav {
        display: none;
    }

    .nav-search-wrapper {
        width: fit-content!important;
    }

    body {
        padding-top: 82px;
    }
}

/* MOBILE--------------------- */
.mobile-menu {
    display: none;
}

.main-nav-mobile .nav-logo a {
    height: 100%;
}

/* MOBILE MAIN NAV MENU WRAPPER */
.mobile-menu__background {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    z-index: 999;
    height: 100%;
    top: 82px;
    left: 0;
}

.mobile-menu__panel {
    background-color: var(--brand-color-1);
    position: fixed;
    top: 82px;
    bottom: 0;
    right: 0;
    width: 480px;
    max-width: 100%;
    padding: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: scroll;
}

.mobile-menu__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: none;
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--black);
    border: 1px solid var(--black);
    background-color: rgba(0, 0, 0, 0);
    z-index: 999;
}

/* MOBILE MAIN NAV UL */
.main-nav-mobile ul.menu {
    list-style-type: none;
    padding-left: 0px;
    margin: auto;
    position: relative;
}

/* MOBILE MAIN NAV LI */
.main-nav-mobile li {
    font-size: 1.8rem;
    color: var(--white);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* MOBILE MAIN NAV LI A */
.main-nav-mobile li a {
    display: flex;
    align-items: center;
    padding: 10px 0px 10px 0px;
    color: var(--white);
    width: fit-content;
    text-decoration: none;
}

.main-nav-mobile li a:hover {
    color: var(--white);
}

.main-nav-mobile .nav-logo {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translate(-50%, 0);
}

.main-nav-mobile .nav-logo a {
    width: 100%;
}

.main-nav-mobile .menu-item-has-children > a::after {
    display: none;
}

.main-nav-mobile .menu-item button {
    position: absolute;
    right: -26px;
    top: 12px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    transform: rotate(45deg);
}

.main-nav-mobile .menu-item button:after {
    display: block;
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    transition: 0.6s;
}

.main-nav-mobile .menu-item .open:after {
    transform: rotate(180deg);
}

.visuallyhidden {
    height: 1px;
    width: 1px;
    overflow: hidden;
    position: absolute!important;
    border: 0;
    padding: 0;
    margin: 0;
}

/* MOBILE MAIN NAV SUB MENU */
.main-nav-mobile li .sub-menu {
    background-color: hsl(0, 0%, 100%);
    padding-left: 10px;
    border-radius: none;
    list-style-type: none;
    margin: 0px;
    width: 100%;
    transition: 1s;
}

/* MOBILE MAIN NAV SUB MENU LI */
.main-nav-mobile li .sub-menu li {
    font-size: 1.8rem;
    color: var(--body-text);
}

/* MOBILEMAIN NAV SUB MENU LI A */
.main-nav-mobile li .sub-menu li a {
    color: var(--body-text);
}

/* MOBILE NAV MOBILE MENU ICON */
.mobile-menu__trigger {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
    gap: 5px;
    z-index: 9999;
    justify-content: center;
}

.mobile-menu__trigger-lines {
    --line-width: 3rem;
    display: block;
    width: var(--line-width);
    height: 0.3rem;
    background-color: var(--brand-color-1);
    transition: all 0.4s;
}

/* .mobile-menu__trigger-line-1 {

} */
/* .mobile-menu__trigger-line-2 {

} */
/* .mobile-menu__trigger-line-3 {
} */
.mobile-menu__trigger-lines--line1 {
    transform: translate(0%, 270%) rotate(45deg);
    width: var(--line-width);
}

.mobile-menu__trigger-lines--line2 {
    opacity: 0;
    visibility: hidden;
}

.mobile-menu__trigger-lines--line3 {
    transform: translate(0%, -270%) rotate(-45deg);
    width: var(--line-width);
}

@media (max-width:1200px) {
    .mobile-menu {
        display: block!important;
    }

    .header-logo {
        margin-bottom: 0;
        min-width: auto;
        max-width: 140px;
    }

    .search-wrapper__panel {
        top: 56px;
        left: 0;
        width: 217px;
        min-width: auto;
    }
}

/* Set core section defaults */
section {
    padding-inline: var(--sec-pad-inline);
    padding-block: var(--sec-pad-block);
}

section.full-width {
    padding: 0;
}

/* Set core container defaults */
.container {
    display: flex;
    flex-direction: column;
    gap: var(--container-gap);
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    align-items: flex-start;
}

/* Set core paragraph defaults */
p {
    margin: 0;
    max-width: var(--ch);
}

/* Set core address defaults */
address {
    font-style: normal;
    display: flex;
    flex-direction: column;
}

/* Set core link defaults */
a {
    color: var(--brand-color-1);
    text-decoration: none;
}

a:hover {
    color: var(--brand-color-1);
    text-decoration: underline;
    text-decoration-color: var(--brand-color-3);
    text-underline-offset: 6px;
}

/* Set core button defaults */
.btn {
    position: relative;
    color: var(--button-text-color);
    background-color: var(--button-color);
    padding: var(--button-padding);
    border: none;
    border-radius: var(--button-border-radius);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 17px;
    overflow: hidden;
    width: fit-content;
    text-decoration: none!important;
}

.btn:hover {
    color: var(--button-text-color);
    background-color: var(--brand-color-4);
    text-decoration: none;
}

.btn--second {
    --button-color: var(--brand-color-1);
}

.btn--second:hover {
    background-color: var(--brand-color-5);
}

/* Set core form defaults */
form {
    width: 100%;
}

.gform_wrapper.gravity-theme input[type=text],
.gform_wrapper.gravity-theme input[type=email],
.gform_wrapper.gravity-theme textarea,
.gform_wrapper.gravity-theme select {
    font-size: 1.8rem;
    padding: 10px;
    padding-left: 0!important;
    color: var(--body-text);
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--brand-color-6);
    border-radius: 0px;
}

.gform_wrapper.gravity-theme input[type=text]::placeholder,
.gform_wrapper.gravity-theme input[type=email]::placeholder,
.gform_wrapper.gravity-theme textarea::placeholder,
.gform_wrapper.gravity-theme select::placeholder {
    color: var(--body-text);
}

.gform_button .btn_icon-wrapper {
    background-image: url(../svg/right-arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
}

/* input[type=button],
input[type=submit],
input[type=reset],
::-webkit-file-upload-button {
    color: var(--button-text-color);
    background-color: var(--button-color);
    padding: var(--button-padding);
    border: 1px solid var(--button-color);
    border-radius: var(--button-border-radius);
    cursor: pointer;
    transition: 0.6s;
}

input[type=button]:hover,
input[type=submit]:hover,
input[type=reset]:hover,
::-webkit-file-upload-button:hover {
    color: var(--button-text-color);
    background-color: var(--button-color);
    padding: var(--button-padding);
    border: 1px solid var(--button-color);
    border-radius: var(--button-border-radius);
    transition: 0.6s;
} */
footer {
    padding: 60px clamp(20px, calc(20px + ((1vw - 3.2px) * 7.1429)), 100px);
    color: var(--white);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 0px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* 404 Page */
.section-404 {
    display: flex;
    flex-direction: column;
}

.page-404-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: var(--grid-gap);
    max-width: var(--container-width);
    margin: auto;
}

.content-wrapper-404 {
    display: flex;
    flex-direction: column;
    gap: var(--container-gap);
    align-items: flex-start;
    justify-content: center;
}

.content-wrapper-404 :is(h1, p) {
    color: var(--black);
}

.img-wrapper-404 {
    margin-block: auto;
    padding-inline: clamp(25px, calc(1.5625rem + ((1vw - 7.5px) * 10.8696)), 100px);
}

.back-to-top {
    padding: 0.5rem;
    background-color: var(--brand-color-1);
    position: fixed;
    display: flex;
    right: 1rem;
    bottom: 2rem;
    opacity: 0;
    cursor: pointer;
    border-radius: 50%;
}

.btt-show {
    opacity: 1;
}

@media (max-width:749px) {
    .page-404-grid {
        grid-template-columns: repeat(1, minmax(0,1fr));
    }

    .content-wrapper-404 {
        align-items: center;
        text-align: center;
    }

    .img-wrapper-404 {
        display: flex;
        flex-direction: column;
        margin-inline: auto;
    }

    .img-wrapper-404 svg {
        max-width: 400px;
    }
}