@font-face {
    font-display: swap;
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300;
    src: url("fonts/space-grotesk-v22-latin-300.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 400;
    src: url("fonts/space-grotesk-v22-latin-regular.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 600;
    src: url("fonts/space-grotesk-v22-latin-600.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 700;
    src: url("fonts/space-grotesk-v22-latin-700.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --clr-grey: #f7f7f7;
    --clr-grey-dark: #707070;
    --clr-primary: #0078b0;
    --clr-primary-rgb: 0, 120, 176;
    --clr-secondary: #b2dbec;
    --black: var(--clr-primary);
    --white: #fff;
    --font-clr: var(--clr-primary);
    --grey: #e3e3e3;
    --light-grey: #f0f2f1;
    --border-color: rgba(45, 62, 80, 1);
    --font-primary: "Space Grotesk", system-ui, sans-serif;
    --transition-fast: all .2s ease-in-out;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    background: #fff;
    color: var(--font-clr);
    font-family: var(--font-primary);
    line-height: 1.55;
    margin: 0;
    min-height: 100%;
}

body.is-menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
}

a {
    color: var(--font-clr);
    text-decoration: underline;
}

h1,
h2,
h3 {
    color: var(--clr-primary);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 4.25rem);
}

h2 {
    font-size: clamp(1.4rem, 2.3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.15rem, 1.5vw, 1.6rem);
    font-weight: 400;
}

p {
    line-height: 1.85;
}

.container {
    margin: 0 auto;
    max-width: 1320px;
    padding: 0 1rem;
    width: 100%;
}

.site-header {
    --font-clr: var(--white);
    background-color: var(--clr-primary);
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    height: 74px;
    left: 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2000;
}

.site-header__bar {
    display: flex;
    gap: 3rem;
    height: 74px;
    justify-content: space-between;
}

.site-header__logo {
    background-color: var(--clr-primary);
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    height: 100px;
    padding: 15px;
    transition: height .3s ease, box-shadow .3s ease;
}

.site-header__bar.scrolled .site-header__logo {
    box-shadow: none;
    height: 70px;
}

.site-header__navigation {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.site-header__items {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.nav-link {
    background: transparent;
    border: 0;
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    min-height: auto;
    padding: 0;
    position: relative;
    text-decoration: none;
    width: auto;
}

.nav-link::after {
    background-color: currentColor;
    bottom: -5px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
    width: 100%;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--clr-secondary);
}

.nav-link:hover::after,
.nav-link:focus::after {
    transform: scaleX(1);
}

.site-header__button {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
    min-height: 2.75rem;
    padding: .75rem 1.25rem;
    white-space: nowrap;
}

.site-header__button:hover,
.site-header__button:focus {
    background: var(--clr-secondary);
    border-color: var(--clr-secondary);
    color: var(--clr-primary);
}

.site-header__dropdown {
    position: relative;
}

.site-header__dropdown-menu {
    background: var(--white);
    border: 1px solid var(--light-grey);
    box-shadow: 0 20px 35px rgba(0, 0, 0, .12);
    display: none;
    min-width: 14rem;
    padding: .75rem 0;
    position: absolute;
    right: 0;
    top: calc(100% + 1.25rem);
}

.site-header__dropdown:hover .site-header__dropdown-menu,
.site-header__dropdown:focus-within .site-header__dropdown-menu {
    display: block;
}

.site-header__dropdown-menu a {
    display: block;
    padding: .45rem 1rem;
    text-decoration: none;
}

.site-header__trigger {
    align-items: center;
    background: var(--white);
    border: 0;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: .28rem;
    height: 2.75rem;
    justify-content: center;
    padding: 0;
    width: 2.75rem;
}

.site-header__trigger span {
    background: var(--clr-primary);
    display: block;
    height: 2px;
    width: 1.35rem;
}

.offcanvas {
    background: rgba(0, 0, 0, .35);
    inset: 0;
    position: fixed;
    z-index: 3000;
}

.offcanvas__panel {
    background: var(--white);
    height: 100%;
    margin-left: auto;
    max-width: 28rem;
    overflow-y: auto;
    padding: 1.25rem;
    width: min(88vw, 28rem);
}

.offcanvas__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.offcanvas__logo {
    width: 14rem;
}

.offcanvas__close {
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    height: 2rem;
    position: relative;
    width: 2rem;
}

.offcanvas__close::before,
.offcanvas__close::after {
    background: var(--clr-primary);
    content: "";
    height: 2px;
    left: .45rem;
    position: absolute;
    top: .95rem;
    width: 1rem;
}

.offcanvas__close::before {
    transform: rotate(45deg);
}

.offcanvas__close::after {
    transform: rotate(-45deg);
}

.offcanvas__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offcanvas__body a,
.offcanvas__body button {
    background: transparent;
    border: 0;
    color: var(--clr-primary);
    cursor: pointer;
    display: block;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    padding: .25rem 0;
    text-align: left;
    text-decoration: none;
}

.offcanvas__body .offcanvas__child {
    font-size: 1rem;
    font-weight: 400;
    padding-left: 1rem;
}

.main {
    min-height: 42vh;
    padding: 4rem 0 5rem;
}

.panel,
.card,
.alert {
    background: var(--white);
    border: 1px solid var(--light-grey);
}

.panel {
    padding: clamp(1.25rem, 3vw, 3rem);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--cards {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card__image {
    aspect-ratio: 16 / 10;
    background: var(--light-grey);
    object-fit: cover;
    width: 100%;
}

.card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .75rem;
    padding: 1.25rem;
}

.muted {
    color: var(--clr-grey-dark);
}

.meta-grid {
    display: grid;
    gap: .5rem 1rem;
    grid-template-columns: minmax(10rem, .35fr) minmax(0, 1fr);
}

.meta-grid dt {
    color: var(--clr-grey-dark);
    font-weight: 700;
}

.meta-grid dd {
    margin: 0;
}

.two-column {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, .36fr);
}

.stack {
    display: grid;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: .35rem;
}

.field--wide {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
}

input,
select,
textarea {
    border: 1px solid var(--light-grey);
    border-radius: 0;
    color: var(--clr-primary);
    font: inherit;
    padding: .75rem .85rem;
    width: 100%;
}

textarea {
    min-height: 7rem;
}

.checkbox-list {
    display: grid;
    gap: .4rem;
}

.checkbox-list label {
    align-items: start;
    display: flex;
    font-weight: 400;
    gap: .45rem;
}

.checkbox-list input,
input[type="checkbox"],
input[type="radio"] {
    margin-top: .25rem;
    width: auto;
}

.button,
button,
input[type="submit"] {
    align-items: center;
    background: var(--clr-primary);
    border: 2px solid var(--clr-primary);
    border-radius: 0;
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 600;
    justify-content: center;
    line-height: 1;
    min-height: 3rem;
    padding: .9rem 1.5rem;
    text-decoration: none;
    width: auto;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--clr-secondary);
    border-color: var(--clr-secondary);
    color: var(--clr-primary);
}

.button--outline {
    background: transparent;
    color: var(--clr-primary);
}

.button--danger {
    background: transparent;
    border-color: #a52828;
    color: #a52828;
}

.admin-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.admin-table {
    border-collapse: collapse;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--light-grey);
    padding: .75rem;
    text-align: left;
    vertical-align: top;
}

.admin-table thead {
    background: var(--light-grey);
}

.alert {
    margin-bottom: 1rem;
    padding: .9rem 1rem;
}

.alert--success {
    border-color: #b7dec9;
    color: #1f7a46;
}

.alert--error {
    border-color: #e3b8b8;
    color: #a52828;
}

.media-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.media-grid img {
    border: 1px solid var(--light-grey);
    display: block;
    height: auto;
    width: 100%;
}

.footer-shapes {
    height: 500px;
    pointer-events: none;
    position: relative;
}

.footer-shapes__left {
    background-color: #0089c1;
    bottom: 0;
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
    height: 600px;
    left: 0;
    overflow: hidden;
    position: absolute;
    width: 65%;
    z-index: 1;
}

.footer-shapes__left img {
    height: 100%;
    object-fit: cover;
    user-select: none;
    width: 100%;
}

.footer-shapes__right {
    background-color: rgba(var(--clr-primary-rgb), .6);
    bottom: 0;
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
    height: 500px;
    position: absolute;
    right: 0;
    width: 65%;
    z-index: 2;
}

.site-footer {
    background-color: var(--clr-primary);
    margin-top: 0;
    padding-block: 4rem;
    position: relative;
}

.site-footer__top {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(16rem, .35fr) minmax(0, 1fr);
    margin-bottom: 3rem;
}

.site-footer__brand {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.site-footer__logo {
    user-select: none;
    width: 18rem;
}

.social__channels {
    display: flex;
    gap: 1.5rem;
}

.social__channel {
    --size: 3rem;
    align-items: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    height: var(--size);
    justify-content: center;
    padding: .5rem;
    text-decoration: none;
    transition: var(--transition-fast);
    width: var(--size);
}

.social__channel i {
    color: inherit;
    font-size: calc(var(--size) / 2.5);
    line-height: 1;
}

.social__channel:hover,
.social__channel:focus {
    background-color: var(--white);
    color: var(--clr-primary);
}

.site-footer__legal {
    columns: 2;
    gap: .5rem 2rem;
}

.site-footer__legal a {
    color: var(--white);
    display: block;
    font-weight: 700;
    margin-bottom: .5rem;
    text-decoration: none;
}

.site-footer__logos {
    background: var(--white);
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(12rem, .25fr) minmax(0, 1fr);
    padding: 1rem 1.5rem;
}

.site-footer__logos p {
    border-bottom: 1px solid var(--light-grey);
    color: #000;
    font-weight: 700;
    margin: 0 0 1rem;
}

.site-footer__partners div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-around;
}

.footer-logo {
    max-height: 60px;
    object-fit: contain;
    width: auto;
}

.print-document {
    background: #fff;
}

@media (max-width: 1199px) {
    .site-header__items {
        display: none;
    }

    .site-header__button {
        font-size: .938rem;
        min-height: 2.5rem;
        padding: .65rem 1rem;
    }

    .site-header__trigger {
        display: flex;
    }
}

@media (max-width: 820px) {
    .main {
        padding-top: 2.5rem;
    }

    .two-column,
    .form-grid,
    .meta-grid,
    .site-footer__top,
    .site-footer__logos {
        grid-template-columns: 1fr;
    }

    .footer-shapes {
        height: 350px;
    }

    .footer-shapes__left {
        height: 400px;
    }

    .footer-shapes__right {
        height: 350px;
    }
}

@media print {
    .site-header,
    .footer-shapes,
    .site-footer,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .panel,
    .card {
        border-color: #bbb;
        box-shadow: none;
    }
}
