/* ==================================== 
    Variables
==================================== */

:root {
    --color-black: #232325;
    --color-white: #FDFDFF;
    --color-cream: #FFF7EA;
    --color-cream-light: #FFFAF0;
    --color-blue: #0062AD;
    --color-blue-faded: #254E84;
    --color-blue-dark: #1E3F6C;
    --color-green: #2FB457;
    --color-gray: #645F5A;
    --color-gray-cool: #68686A;
    --color-gray-light: #BEBEC0;
    --color-red: #ee3322;

    --font-sans: "Source Sans 3", sans-serif;
    --font-serif: "Crimson Pro", serif;
    --font-display: "Source Serif 4", serif;
    --font-script: "La Belle Aurore", cursive;

    /*
        Fluid styles scale from the starting value when the screen is 480px
        to the end value when the screen is 1920px
        --fluid-16-32 = 16px at 480 to 32px at 1920
    */
    --fluid-0-64: clamp(0rem, -1.3333rem + 4.4444vw, 4rem);
    --fluid-2-4: clamp(0.125rem, 0.0833rem + 0.1389vw, 0.25rem);
    --fluid-3-6: clamp(0.1875rem, 0.125rem + 0.2083vw, 0.375rem);
    --fluid-4-8: clamp(0.25rem, 0.1667rem + 0.2778vw, 0.5rem);
    --fluid-4-16: clamp(0.25rem, 0rem + 0.8333vw, 1rem);
    --fluid-8-12: clamp(0.5rem, 0.4167rem + 0.2778vw, 0.75rem);
    --fluid-8-16: clamp(0.5rem, 0.3333rem + 0.5556vw, 1rem);
    --fluid-10-20: clamp(0.625rem, 0.4167rem + 0.6944vw, 1.25rem);
    --fluid-12-16: clamp(0.75rem, 0.6667rem + 0.2778vw, 1rem);
    --fluid-12-24: clamp(0.75rem, 0.5rem + 0.8333vw, 1.5rem);
    --fluid-14-16: clamp(0.875rem, 0.8333rem + 0.1389vw, 1rem);
    --fluid-16-20: clamp(1rem, 0.9167rem + 0.2778vw, 1.25rem);
    --fluid-16-24: clamp(1rem, 0.8333rem + 0.5556vw, 1.5rem);
    --fluid-16-32: clamp(1rem, 0.6667rem + 1.1111vw, 2rem);
    --fluid-18-22: clamp(1.125rem, 1.0417rem + 0.2778vw, 1.375rem);
    --fluid-18-24: clamp(1.125rem, 1rem + 0.4167vw, 1.5rem);
    --fluid-20-28: clamp(1.25rem, 1.0833rem + 0.5556vw, 1.75rem);
    --fluid-20-40: clamp(1.25rem, 0.8333rem + 1.3889vw, 2.5rem);
    --fluid-24-32: clamp(1.5rem, 1.3333rem + 0.5556vw, 2rem);
    --fluid-24-48: clamp(1.5rem, 1rem + 1.6667vw, 3rem);
    --fluid-28-40: clamp(1.75rem, 1.5rem + 0.8333vw, 2.5rem);
    --fluid-28-56: clamp(1.75rem, 1.1667rem + 1.9444vw, 3.5rem);
    --fluid-32-48: clamp(2rem, 1.6667rem + 1.1111vw, 3rem);
    --fluid-32-64: clamp(2rem, 1.3333rem + 2.2222vw, 4rem);
    --fluid-32-96: clamp(2rem, 0.6667rem + 4.4444vw, 6rem);
    --fluid-32-240: clamp(2rem, -2.3333rem + 14.4444vw, 15rem);
    --fluid-36-56: clamp(2.25rem, 1.8333rem + 1.3889vw, 3.5rem);
    --fluid-40-64: clamp(2.5rem, 2rem + 1.6667vw, 4rem);
    --fluid-40-80: clamp(2.5rem, 1.6667rem + 2.7778vw, 5rem);
    --fluid-40-120: clamp(2.5rem, 0.8333rem + 5.5556vw, 7.5rem);
    --fluid-44-88: clamp(2.75rem, 1.8333rem + 3.0556vw, 5.5rem);
    --fluid-44-96: clamp(2.75rem, 1.6667rem + 3.6111vw, 6rem);
    --fluid-48-80: clamp(3rem, 2.3333rem + 2.2222vw, 5rem);
    --fluid-48-96: clamp(3rem, 2rem + 3.3333vw, 6rem);
    --fluid-60-120: clamp(3.75rem, 2.5rem + 4.1667vw, 7.5rem);
    --fluid-64-96: clamp(4rem, 3.3333rem + 2.2222vw, 6rem);
    --fluid-72-112: clamp(4.5rem, 3.6667rem + 2.7778vw, 7rem);
    --fluid-72-144: clamp(4.5rem, 3rem + 5vw, 9rem);
    --fluid-80-240: clamp(5rem, 1.6667rem + 11.1111vw, 15rem);
    --fluid-128-256: clamp(8rem, 5.3333rem + 8.8889vw, 16rem);
    --fluid-400-800: clamp(25rem, 16.6667rem + 27.7778vw, 50rem);
}

/* ==================================== 
    Base styles
==================================== */

body {
    background: var(--color-cream);
    color: var(--color-black);
    font-family: var(--font-sans);
    font-size: var(--fluid-16-20);
}

img {
    max-width: 100%;
    max-height: 100%;
}

hr {
    height: 1px;
    width: 100%;
    background: var(--color-black);
    margin: var(--fluid-40-80) 0;
}

.relative {
    position: relative;
}

/* ==================================== 
    Typography
==================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -1.25px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--fluid-12-24);
}

h1, .h1 {
    font-family: var(--font-display);
    font-size: var(--fluid-44-96);
    letter-spacing: -1.5px;
}

h2, .h2 {
    font-size: var(--fluid-40-80);
}

h3, .h3 {
    font-size: var(--fluid-32-64);
}

h4, .h4 {
    font-size: var(--fluid-28-40);
}

h5, .h5 {
    font-size: var(--fluid-24-32);
}

h6, .h6 {
    font-size: var(--fluid-18-22);
    font-weight: 400;
    line-height: 1.33;
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: var(--fluid-12-16);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.line-heading {
    display: flex;
    width: 100%;
    gap: var(--fluid-20-40);
    align-items: center;
    margin-bottom: var(--fluid-24-48);
}

.line-heading span {
    flex-shrink: 0;
}

.line-heading::before,
.line-heading::after {
    content: '';
    width: 100%;
    height: 1px;
    background: var(--color-gray-light);
}

p, ol, ul {
    line-height: 1.5;
}

.content p,
.content ol,
.content ul {
    margin-bottom: var(--fluid-20-40);
}

.content p:last-child,
.content ol:last-child,
.content ul:last-child {
    margin-bottom: 0;
}

.content ul {
    margin-left: .5rem;
}

.content ul li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: .25rem;
}

.content ul li::before {
    content: "";
    position: absolute;
    top: .56em;
    left: 0;
    width: .5rem;
    height: .5rem;
    background-color: var(--color-green);
    transform: rotate(45deg);
}

.text-center {
    text-align: center;
}

.text-lg {
    font-size: var(--fluid-18-24);
}

.text-sm {
    font-size: var(--fluid-14-16);
}

.text-serif {
    font-family: var(--font-serif);
    font-size: var(--fluid-16-20);
    font-weight: 400;
}

/* ==================================== 
    Buttons / Links
==================================== */

.content a:not(.button):not(.arrow-link) {
    color: var(--color-blue-dark);
    text-decoration: underline;
}

.content a:not(.button):not(.arrow-link):hover {
    color: var(--color-blue);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--fluid-8-12);
    border-radius: 2rem;
    padding: var(--fluid-4-8) var(--fluid-16-32);
    font-weight: 500;
    line-height: 1.2;
    background: var(--color-blue);
    color: var(--color-white);
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.button svg path {
    transition: all .2s ease-in-out;
}

.button:focus,
.button:hover {
    background: var(--color-blue-dark);
    text-decoration: none;
}

.button.button-white {
    background: var(--color-cream);
    color: var(--color-blue-dark);
}

.button.button-white:focus,
.button.button-white:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

.button.button-white:not(.icon-fill):focus svg path,
.button.button-white:not(.icon-fill):hover svg path {
    stroke: var(--color-white);
}

.button.button-white.icon-fill:focus svg path,
.button.button-white.icon-fill:hover svg path {
    fill: var(--color-white);
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: var(--fluid-14-16);
    font-weight: 500;
}

.arrow-wrap {
    display: flex;
    align-items: center;
    width: var(--fluid-48-80);
}

.arrow-icon {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: var(--fluid-8-12);
    transition: all .2s ease-in-out;
}

.arrow-line {
    display: inline-block;
    position: relative;
    width: var(--fluid-32-64);
    height: 2px;
    background: var(--color-green);
    transition: all .2s ease-in-out;
}

.arrow-icon::before {
    content: "";
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: var(--color-green);
  }

.arrow-icon::after {
    content: "";
    width: 8px;
    height: 15px;
    transform: translateX(-6px);
    background-image: url(./../img/arrowhead.svg);
}

.arrow-link:hover .arrow-icon {
    margin-left: var(--fluid-4-8);
}

.arrow-link:hover .arrow-line {
    width: var(--fluid-20-40);
}

.arrow-link.h6 {
    text-transform: none;
    font-size: var(--fluid-18-22);
    font-weight: 400;
}

.arrow-link.h6 .arrow-wrap {
    width: var(--fluid-72-112);
    margin-top: var(--fluid-2-4);
}

.arrow-link.h6 .arrow-icon {
    margin-left: var(--fluid-16-24);
}

.arrow-link.h6 .arrow-line {
    width: var(--fluid-48-80);
}

.arrow-link.h6:hover .arrow-icon {
    margin-left: var(--fluid-12-16);
}

.arrow-link.h6:hover .arrow-line {
    width: var(--fluid-40-64);
}

/* ==================================== 
    Containers
==================================== */

.edge-pad {
    padding-left: var(--fluid-12-24);
    padding-right: var(--fluid-12-24);
}

.container {
    padding-left: var(--fluid-32-64);
    padding-right: var(--fluid-32-64);
}

.container-narrow {
    max-width: var(--fluid-400-800);
}

.container-max-lg {
    max-width: 64rem;
}

.container-xl {
    padding-left: var(--fluid-32-240);
    padding-right: var(--fluid-32-240);
}

.container-map {
    padding-left: var(--fluid-0-64);
    padding-right: var(--fluid-0-64);
}

.centered {
    margin-left: auto;
    margin-right: auto;
}

.rounded {
    border-radius: var(--fluid-16-32);
}

.rounded-bottom {
    border-bottom-left-radius: var(--fluid-16-32);
    border-bottom-right-radius: var(--fluid-16-32);
}

.inline-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fluid-20-40);
}

.bg-blue-dark {
    background: var(--color-blue-dark);
}

.bg-blue-faded {
    background: var(--color-blue-faded);
}

.bg-blue-dark,
.bg-blue-faded {
    color: var(--color-white);
}

.bg-blue-dark hr,
.bg-blue-faded hr {
    background: var(--color-cream);
}

footer {
    background: var(--color-gray);
    color: var(--color-cream);
    font-size: var(--fluid-14-16);
}

footer hr {
    background: var(--color-cream);
}

footer a {
    color: var(--color-cream);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.pre-footer {
    width: 100%;
    height: var(--fluid-16-32);
    border-bottom-left-radius: var(--fluid-16-32);
    border-bottom-right-radius: var(--fluid-16-32);
    background: var(--color-cream);
}

.bg-blue-dark + footer > .pre-footer {
    background: var(--color-blue-dark);
}

ul.link-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

@media (min-width: 64rem) {
    .footer-links {
        padding-top: var(--fluid-36-56);
    }
}

.card {
    width: 100%;
    height: 100%;
    padding: var(--fluid-24-48) var(--fluid-16-32);
    background: var(--color-cream-light);
    color: var(--color-black);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--fluid-16-32);
}

/* ==================================== 
    Spacing / Size
==================================== */

.mt-32 {
    margin-top: var(--fluid-16-32);
}

.mb-32 {
    margin-bottom: var(--fluid-16-32);
}

.mt-64 {
    margin-top: var(--fluid-32-64);
}

.mb-64 {
    margin-bottom: var(--fluid-32-64);
}

.mt-80 {
    margin-top: var(--fluid-40-80);
}

.mb-80 {
    margin-bottom: var(--fluid-40-80);
}

.mt-120 {
    margin-top: var(--fluid-60-120);
}

.mb-120 {
    margin-bottom: var(--fluid-60-120);
}

.p-32 {
    padding: var(--fluid-16-32);
}

.py-32 {
    padding-top: var(--fluid-16-32);
    padding-bottom: var(--fluid-16-32);
}

.p-64 {
    padding: var(--fluid-32-64);
}

.py-64 {
    padding-top: var(--fluid-32-64);
    padding-bottom: var(--fluid-32-64);
}

.p-80 {
    padding: var(--fluid-40-80);
}

.py-80 {
    padding-top: var(--fluid-40-80);
    padding-bottom: var(--fluid-40-80);
}

.p-120 {
    padding: var(--fluid-60-120);
}

.py-120 {
    padding-top: var(--fluid-60-120);
    padding-bottom: var(--fluid-60-120);
}

.w-full {
    width: 100%;
}

/* ==================================== 
    Grid / Columns
==================================== */

.sm\:columns,
.md\:columns,
.lg\:columns,
.xl\:columns {
    display: flex;
    flex-direction: column;
    gap: var(--fluid-24-48);
}

.grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: var(--fluid-24-48);
}

.gap-16 {
    gap: var(--fluid-8-16);
}

.gap-80 {
    gap: var(--fluid-40-80);
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

@media (min-width: 40rem) {
    .sm\:columns {
        flex-direction: row;
    }

    .sm\:columns > .col-1\/4 {
        flex-basis: 25%;
    }

    .sm\:columns > .col-1\/3 {
        flex-basis: 33.3333%;
    }

    .sm\:columns > .col-2\/5 {
        flex-basis: 40%;
    }

    .sm\:columns > .col-1\/2 {
        flex-basis: 50%;
    }

    .sm\:columns > .col-3\/5 {
        flex-basis: 60%;
    }

    .sm\:columns > .col-2\/3 {
        flex-basis: 66.6667%;
    }

    .sm\:columns > .col-3\/4 {
        flex-basis: 75%;
    }

    .sm\:columns > .order-1 {
        order: 1;
    }

    .sm\:columns > .order-2 {
        order: 2;
    }

    .sm\:columns.column-dividers > *:not(:last-child) {
        padding-right: var(--fluid-24-48);
        border-right: 1px solid var(--color-gray-light);
    }

    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:grid-cols-3 {
       grid-template-columns: repeat(3, minmax(0, 1fr)); 
    }

    .sm\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


@media (min-width: 48rem) {
    .md\:columns {
        flex-direction: row;
    }

    .md\:columns > .col-1\/4 {
        flex-basis: 25%;
    }

    .md\:columns > .col-1\/3 {
        flex-basis: 33.3333%;
    }

    .md\:columns > .col-2\/5 {
        flex-basis: 40%;
    }

    .md\:columns > .col-1\/2 {
        flex-basis: 50%;
    }

    .md\:columns > .col-3\/5 {
        flex-basis: 60%;
    }

    .md\:columns > .col-2\/3 {
        flex-basis: 66.6667%;
    }

    .md\:columns > .col-3\/4 {
        flex-basis: 75%;
    }

    .md\:columns > .order-1 {
        order: 1;
    }

    .md\:columns > .order-2 {
        order: 2;
    }

    .md\:columns.column-dividers > *:not(:last-child) {
        padding-right: var(--fluid-24-48);
        border-right: 1px solid var(--color-gray-light);
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
       grid-template-columns: repeat(3, minmax(0, 1fr)); 
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .lg\:columns {
        flex-direction: row;
    }

    .lg\:columns > .col-1\/4 {
        flex-basis: 25%;
    }

    .lg\:columns > .col-1\/3 {
        flex-basis: 33.3333%;
    }

    .lg\:columns > .col-2\/5 {
        flex-basis: 40%;
    }

    .lg\:columns > .col-1\/2 {
        flex-basis: 50%;
    }

    .lg\:columns > .col-3\/5 {
        flex-basis: 60%;
    }

    .lg\:columns > .col-2\/3 {
        flex-basis: 66.6667%;
    }

    .lg\:columns > .col-3\/4 {
        flex-basis: 75%;
    }

    .lg\:columns > .order-1 {
        order: 1;
    }

    .lg\:columns > .order-2 {
        order: 2;
    }

    .lg\:columns.column-dividers > *:not(:last-child) {
        padding-right: var(--fluid-24-48);
        border-right: 1px solid var(--color-gray-light);
    }

    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-3 {
       grid-template-columns: repeat(3, minmax(0, 1fr)); 
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 80rem) {
    .xl\:columns {
        flex-direction: row;
    }

    .xl\:columns > .col-1\/4 {
        flex-basis: 25%;
    }

    .xl\:columns > .col-1\/3 {
        flex-basis: 33.3333%;
    }

    .xl\:columns > .col-2\/5 {
        flex-basis: 40%;
    }

    .xl\:columns > .col-1\/2 {
        flex-basis: 50%;
    }

    .xl\:columns > .col-3\/5 {
        flex-basis: 60%;
    }

    .xl\:columns > .col-2\/3 {
        flex-basis: 66.6667%;
    }

    .xl\:columns > .col-3\/4 {
        flex-basis: 75%;
    }

    .xl\:columns > .order-1 {
        order: 1;
    }

    .xl\:columns > .order-2 {
        order: 2;
    }

    .xl\:columns.column-dividers > *:not(:last-child) {
        padding-right: var(--fluid-24-48);
        border-right: 1px solid var(--color-gray-light);
    }

    .xl\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xl\:grid-cols-3 {
       grid-template-columns: repeat(3, minmax(0, 1fr)); 
    }

    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ==================================== 
    Banner / Header / Nav
==================================== */

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-top: var(--fluid-16-32);
    padding-bottom: var(--fluid-16-32);
    padding-left: var(--fluid-44-88);
    padding-right: var(--fluid-44-88);
    z-index: 20;
}

.nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--color-blue-dark);
    z-index: 2;
}

.nav[data-active="1"] {
    display: flex;
}

@media (min-width: 48rem) {
    .nav {
        display: flex;
        top: unset;
        left: unset;
        width: auto;
        height: auto;
        background: none;
    }
}

.nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--fluid-24-48);
    align-items: center;
}

@media (min-width: 48rem) {
    .nav ul {
        flex-direction: row;
    }
}

.nav a:not(.button) {
    color: var(--color-cream);
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
}

.nav a:not(.button):focus,
.nav a:not(.button):hover {
    text-decoration-color: var(--color-blue);
}

.nav-toggle {
    display: block;
    margin-left: auto;
    z-index: 10;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    margin: 6px 0;
    background-color: var(--color-cream);
    transition: all .2s ease-in-out;
}

.nav-toggle[data-active="1"] .hamburger-line:nth-of-type(1) {
    transform: translateY(8px) rotate(135deg);
}

.nav-toggle[data-active="1"] .hamburger-line:nth-of-type(2) {
    transform: scale(0);
}

.nav-toggle[data-active="1"] .hamburger-line:nth-of-type(3) {
    transform: translateY(-8px) rotate(-135deg);
}

@media (min-width: 48rem) {
    .nav-toggle {
        display: none;
    }
}

.header-logo {
    height: var(--fluid-28-56);
    z-index: 10;
}

.banner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    background: var(--color-blue-dark);
    color: var(--color-cream);
    padding-top: var(--fluid-72-144);
    padding-bottom: var(--fluid-40-80);
    border-bottom-left-radius: var(--fluid-16-32);
    border-bottom-right-radius: var(--fluid-16-32);
    overflow: hidden;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    z-index: 1;
}

.banner-home {
    max-height: 96vh;
}

img.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 0;
}

.banner-content-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: var(--fluid-128-256);
    z-index: 2;
}

.banner-home .banner-content-wrap {
    padding-top: var(--fluid-60-120);
}

.banner-content p {
    font-size: var(--fluid-20-28);
}

@media (min-width: 48rem) {

    .nav {
        position: relative;
    }

    .banner-home {
        aspect-ratio: 16 / 9;
    }
}

/* ==================================== 
    Forms
==================================== */

.form {
    display: flex;
    flex-wrap: wrap;
    gap: 3%;
}

.form-field {
    flex-basis: 100%;
    margin-bottom: 1rem;
}

.form-submit {
    flex-basis: 48.5%;
}

@media (min-width: 40rem) {
    .form-field:not(.w-full) {
        flex-basis: 48.5%;
    }
}

.form-field label {
    display: block;
    margin-bottom: var(--fluid-4-8);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
    display: block;
    border: 1px solid var(--color-cream);
    border-radius: .75rem;
    width: 100%;
    padding: var(--fluid-8-12) var(--fluid-12-16);
    outline: none;
    color: var(--color-cream);
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field select:focus,
.form-field textarea:focus {
    box-shadow: 0 0 4px 0 var(--color-cream);
}

.form-field.error input[type="text"],
.form-field.error input[type="email"],
.form-field.error select,
.form-field.error textarea {
    border-color: var(--color-red);
}

.form-field textarea {
    min-height: 6rem;
}

.error-help {
    opacity: .8;
    font-size: .85em;
    margin-top: .25rem;
}

.form-submit {
    margin-left: auto;
}

.form-submit .button {
    width: 100%;
    border-radius: .75rem;
    padding: var(--fluid-8-12) var(--fluid-12-16);
    text-align: left;
}

.form-success {
    display: none;
}

/* ==================================== 
    Modals
==================================== */

.modal {
    display: none;
}

.modal.is-open {
    display: block;
}

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal__container {
    display: flex;
    flex-direction: column;
    background-color: var(--color-cream);
    color: var(--color-black);
    margin: 0 var(--fluid-24-48);
    padding: var(--fluid-16-32);
    max-width: 64rem;
    max-height: 90vh;
    border-radius: var(--fluid-16-32);
}

.modal__close {
    display: block;
    background: transparent;
    border: 0;
    cursor: pointer;
    margin-left: auto;
}

.modal__close::before {
    content: "\2715";
}

.modal__content {
    padding: var(--fluid-8-16);
    overflow-y: auto;
}

/* ==================================== 
    Components
==================================== */

/* ======== map ======== */

#partners-map {
    position: relative;
    width: 100%;
    aspect-ratio: 913 / 567;
}

.map-marker {
    position: absolute;
    width: var(--fluid-4-16);
    height: var(--fluid-4-16);
    border-radius: 100%;
    background: var(--color-blue);
    transform: translate(-50%, -50%);
}

/* ======== tabs ======== */

.tabs {
    display: flex;
    gap: var(--fluid-8-16);
}

.tab {
    position: relative;
    padding: var(--fluid-16-32) var(--fluid-16-32) var(--fluid-12-24);
    font-family: var(--font-serif);
    font-size: var(--fluid-16-32);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -1.25px;
    text-align: center;
    border-top-left-radius: var(--fluid-12-24);
    border-top-right-radius: var(--fluid-12-24);
}

.tab.active {
    background: var(--color-blue-faded);
}

.tab:not(.active):hover::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: var(--fluid-3-6);
    width: var(--fluid-8-12);
    height: var(--fluid-8-12);
    transform: translateX(-50%);
    border-radius: 100%;
    background: var(--color-green);
}

.tab-content {
    background: var(--color-blue-faded);
    border-radius: var(--fluid-12-24);
    border-bottom-left-radius: var(--fluid-12-24);
    border-bottom-right-radius: var(--fluid-12-24);
    border-top-right-radius: var(--fluid-12-24);
}

.tab-content:has(.tab-panel:first-child.active)  {
    border-top-left-radius: 0;
}

.tab-content:has(.tab-panel:last-child.active)  {
    border-top-right-radius: 0;
}

.tab-panel {
    display: none;
    gap: var(--fluid-24-48);
    align-items: center;
    padding: var(--fluid-24-48) var(--fluid-32-64) var(--fluid-32-64);
}

.tab-panel.active {
    display: flex;
}

.tab-panel-icon {
    width: var(--fluid-44-88);
    flex-shrink: 0;
}

/* ======== testimonials ======== */

.testimonial-card-wrap {
    display: flex;
    height: 100%;
    align-items: flex-end;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    background: var(--color-cream);
    color: var(--color-black);
    border-radius: var(--fluid-8-16);
    padding: var(--fluid-16-32) var(--fluid-16-32) var(--fluid-20-40);
}

.testimonial-expand {
    display: flex;
    justify-content: flex-end;
    text-transform: uppercase;
    margin-top: var(--fluid-16-32);
}

.testimonial-content {
    font-family: var(--font-serif);
    font-size: var(--fluid-18-22);
    font-weight: 400;
    line-height: 1.33;
    letter-spacing: -1.25px;
}

.testimonial-card .testimonial-attribution {
    margin-top: var(--fluid-48-96);
}

.quote {
    width: var(--fluid-10-20);
    height: var(--fluid-8-16);
    background-image: url(./../img/quote.svg);
    background-size: contain;
    margin-bottom: var(--fluid-12-24);
}

.signature {
    font-family: var(--font-script);
    font-size: var(--fluid-24-32);
    font-weight: 400;
    line-height: 1;
    margin-bottom: var(--fluid-4-8);
}

/* ======== carousel ======== */

@keyframes looping {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.carousel-window {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-window::before,
.carousel-window::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--fluid-80-240);
    height: 100%;
    z-index: 2;
    background-image: linear-gradient(90deg, var(--color-cream), transparent);
}

.carousel-window::after {
    left: unset;
    right: 0;
    background-image: linear-gradient(90deg, transparent, var(--color-cream));
}

.carousel-row {
    display: flex;
    width: max-content;
}

.carousel-group {
    display: flex;
    align-items: center;
    width: max-content;
    gap: var(--fluid-60-120);
    padding-right: var(--fluid-60-120);
    will-change: transform;
    animation: looping 30s linear infinite;
}

.carousel-row:first-of-type {
    margin-left: var(--fluid-40-120);
    margin-bottom: var(--fluid-32-64);
}

.carousel-logo {
    width: var(--fluid-80-240);
    height: var(--fluid-32-96);
    flex-shrink: 0;
}

.carousel-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

/* ======== timeline ======== */

.timeline {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: var(--fluid-20-40);
    row-gap: var(--fluid-8-16);
}

.timeline-date {
    display: flex;
    flex-direction: column;
    font-size: var(--fluid-14-16);
    font-weight: 500;
    text-align: center;
    letter-spacing: 1px;
    min-height: var(--fluid-64-96);
}

.timeline-date::before {
    content: '';
    display: block;
    width: var(--fluid-8-16);
    height: var(--fluid-8-16);
    background: var(--color-blue);
    border-radius: 100%;
    margin: var(--fluid-4-8) auto;
    flex-shrink: 0;
}

.timeline-date::after {
    content: '';
    display: block;
    width: 1px;
    height: 100%;
    background: var(--color-gray-light);
    margin: var(--fluid-8-16) auto 0;
    flex-shrink: 1;
    flex-grow: 1;
}

.timeline-date.last::before {
    width: var(--fluid-12-24);
    height: var(--fluid-12-24);
}

.timeline-date.last::after {
    display: none;
}

.timeline-content {
    padding-bottom: var(--fluid-16-32);
}

/* ======== leadership ======== */

.leader-photo {
    width: 100%;
    aspect-ratio: 1;
    max-width: 180px;
    border-radius: 100%;
    overflow: hidden;
    margin: 0 auto var(--fluid-20-40);
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--fluid-20-40);
    margin-top: var(--fluid-20-40);
}

.card-action {
    display: flex;
    gap: .5rem;
    font-size: var(--fluid-14-16);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.card-action:focus,
.card-action:hover {
    border-color: var(--color-blue);
}

/* ======== press releases ======== */

.post {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: var(--fluid-32-64);
    border-radius: var(--fluid-16-32);
}

.post:nth-child(even) {
    background: var(--color-blue-faded);
}

.post-date {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .75rem;
    text-transform: uppercase;
    font-size: var(--fluid-18-22);
    line-height: 1;
}

.day {
    font-family: var(--font-serif);
    font-size: var(--fluid-32-48);
    font-weight: 500;
    letter-spacing: -2px;
    margin-bottom: .15em;
}

@media (min-width: 64rem) {
    .post {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .post-date {
        flex-shrink: 0;
        flex-grow: 0;
        flex-direction: column;
        gap: 0;
        padding-right: var(--fluid-32-64);
    }

    .post-tease {
        border-left: 1px solid var(--color-gray-cool);
        padding-left: var(--fluid-32-64);
        padding-right: var(--fluid-32-64);
    }

    .post-link {
        flex-shrink: 0;
        flex-grow: 0;
    }
}