@view-transition {navigation: auto;}
*, ::after, ::before {padding: 0; margin: 0; box-sizing: border-box;}
html {font-size: 18px; scroll-behavior: smooth; scroll-padding-top: 12.25rem;}
body {font-family: 'Questrial', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; line-height: 1.5; color: #06103C; background: #e9f7f1;}
a {
    color: #06103C;
    text-decoration-color: rgba(6, 16, 60, 0.8);
    text-underline-offset: 0.15rem;
    transition: 0.2s all ease-in-out;
}
a:hover {text-decoration-color: rgba(6, 16, 60, 0.2);}
a[href^="mailto:"] {text-decoration: none;}
p {margin-bottom: 1.5em;}
p:last-child {margin-bottom: 0;}
img {max-width: 100%; display: block;}
h1 {font-size: 3rem; font-weight: 400; line-height: 1; margin-bottom: 1rem;}
h2 {font-size: 2.66rem; font-weight: 400; line-height: 1.1; margin-bottom: 2.38rem;}
h3 {font-size: 1.7rem; font-weight: 400; line-height: 1.2; margin-block: 4rem 1.5rem;}
hr {border: none; border-top: 1px solid #06103C; margin-block: 3.5rem 3.75rem;}
.container {max-width: 120rem; margin: 0 auto; padding: 0 6rem;}
.logo {text-decoration: none;}
.btn {
    display: inline-block;
    background: #1b5c56;
    color: #fff!important;
    text-decoration: none;
    border-radius: 1.5rem;
    line-height: 2.25rem;
    padding-inline: 1.35rem;
    border: 1px solid #1b5c56;
    transition: 0.25s all ease-in-out;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Questrial', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.btn:hover {
    background: transparent;
    color: #06103C!important;
}
.btn.reversed {
    background: transparent;
    color: #06103C!important;
}
.btn.reversed:hover {
    background: #1b5c56;
    color: #fff!important;
}

/* HEADER */

header {
    background: #e9f7f1;
    color: #070708;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: calc(100vw - 2rem);
    width: 58.5rem;
    padding-block: 0.5rem;
}
header .container {
    padding-inline: 1.75rem;
}
header .container nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .container nav ul {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
header a {text-decoration: none;}
header a:hover {color: #394C53}
header nav ul {
    list-style: none;
}
header button {
    display: none;
    background: transparent;
    border: none;
    height: 2.4rem;
    width: 2.4rem;
    background: url(/img/menu.svg) center center / contain no-repeat;
    color: transparent;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    left: 0.4rem;
}
body.menuopen header button {
    background: url(/img/close.svg) center center / contain no-repeat;
}
@media (max-width: 850px) {
    header .btn.reversed {
        position: absolute;
        top: 20.5rem;
        left: 50%;
        transform: translateX(-50%);
        background: #1b5c56!important;
        color: white!important;
    }
    header button {display: block;}
    header .container nav ul {
        background: #e9f7f1;
        display: flex;
        position: absolute;
        top: 3.3rem;
        left: 0;
        transform: none;
        margin: 0;
        width: 100%;
        text-align: center;
        padding-block: 0 5rem;
        height: 0rem;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        transition: height 0.15s ease-in-out;
        opacity: 0;
        pointer-events: none;
    }
    header .container nav ul li,
    header .btn.reversed {
        opacity: 0;
        pointer-events: none;
        transition: none;
        transition-delay: 0s;
    }
    body.menuopen header .container nav ul {opacity: 1; height: 22rem; pointer-events: all;}
    body.menuopen header .container nav ul li,
    body.menuopen header .btn.reversed {opacity: 1; pointer-events: all; transition: opacity 0.3s ease-in-out, background 0.25s ease-in-out, color 0.25s ease-in-out; transition-delay: 0.15s;}
    header .container nav ul li a {
        display: block;
        padding-block: 0.35rem;
        font-size: 1.5rem;
    }
    body.menuopen header .btn.reversed:hover {
        background: transparent!important;
        color: #06103C!important;
    }
}




/* SECTIONS */

section {
    padding-block: 6.7rem;
    overflow: auto;
}
section:not(.page) h2 + p {
    font-size: 1.66rem;
    line-height: 1.3;
    max-width: 27.5em;
}


/* SECTION IMAGE */

section.image .container > div {
    display: flex; 
    gap: 2.22rem; 
    width: 100%;
    margin-top: 3.5rem;
    padding-top: 3.75rem;
    border-top: 1px solid #06103C;
}
section.image .container > div > div:nth-child(1) {flex: 55;}
section.image .container > div > div:nth-child(2) {flex: 45;}
section.image .container > div > div:nth-child(2) > * {max-width: 23rem;}
section.image img {
    max-height: 27rem;
    object-fit: cover;
    width: 100%;
}
@media (max-width: 600px) {
    section.image .container > div {display: block;}
    section.image img {margin-bottom: 1rem; aspect-ratio: 1.5;}
}


/* SECTION PAGE */

section.page .container {max-width: 45rem;}
section.page h1 {text-align: center; margin-block: 3rem 4rem;}
section.page h2 {font-size: 1.7rem; margin-block: 4rem 1.5rem;}
@media (max-width: 600px) {
    section.page h1 {text-align: left;}
}


/* SECTION MISSION */

section:has(.mission) h2 + p {
    margin-left: 55%;
    margin-bottom: 3rem;
}
section:has(.mission) .mission > div {
    border-top: 1px solid #06103C;
    padding-block: 2.75rem;
    display: flex;
    min-height: 15rem;
}
section:has(.mission) .mission > div > div {flex: 45;}
section:has(.mission) .mission > div > div > * {max-width: 28rem;}
section:has(.mission) h3 {
    margin-top: 0;
    flex: 55;
}
@media (max-width: 1200px) {
    section:has(.mission) h2 + p {margin-left: 0;}
}
@media (max-width: 750px) {
    section:has(.mission) .mission > div {display: block;}
}



/* SECTION TEAM */

section:has(.team) {padding-top: 0; padding-bottom: 8.7rem;;}
section:has(.team) h2 {border-bottom: 1px solid #06103C; padding-bottom: 3rem; margin-bottom: 3rem;}
section:has(.team) h2 + p, section:has(.team) .team {margin-left: 50%;}
section:has(.team) .team {
    display: grid;
    gap: 3rem 6%;
    grid-template-columns: 1fr 1fr;
    max-width: 50rem;
}
section:has(.team) h2 + p, section:has(.team) .team img + p {margin-top: 1rem; line-height: 1.3;}
@media (max-width: 1350px) {
    section:has(.team) h2 + p, section:has(.team) .team {margin-left: 0;}
}
@media (max-width: 600px) {
    section:has(.team) .team {gap: 2rem 1.25rem;}
}


/* SECTION TESTIMONIALS */
section:has(.testimonials) h2 + p {
    max-width: 100%;
}
section:has(.testimonials) img {
    float: right;
    width: 50%;
    height: 39rem;
    object-fit: cover;
    margin-left: 2.25rem;
}
@media (max-width: 600px) {
    section:has(.testimonials) img {float: none; width: 100%; margin: 0; aspect-ratio: 1.5; height: auto;}
}



/* SECTION HEADER */

section.header {
    position: relative;
    height: 40rem;
    padding-top: 5.25rem;
    overflow: hidden;
    background-position: center;
    background-size: calc(100% + 4px) auto;
}
section.header .container {
    padding-inline: 1rem;
    max-width: 60.5rem;
}
section.header .container > div {
    background: #e9f7f1;
    padding: 1.75rem 2.25rem;
    max-width: 21.5rem;
    position: relative;
    z-index: 1;
}
section.header .container > div p:not(:last-child) {
    margin-bottom: 1rem;
}
section.header video {
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    object-fit: cover;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    position: absolute;
}

section:has(#contactform) {padding-top: 0;}
section:has(#contactform) form#contactform {
    width: 50%;
    max-width: 30rem;
    float: right;
}
@media (max-width: 900px) {
    section:has(#contactform) form#contactform {
        width: 100%;
        float: none;
    }
}
@media (max-width: 600px) {
    section.header .container > div {padding-inline: 1.75rem; max-width: 100%;}
    section.header .container > div h1 {font-size: 2.66rem;}
}   


/* FORMS */

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
    gap: 0.5rem;
}
.input-group > label {display: block;}
.input-group > textarea,
.input-group > select,
.input-group > input:not(.btn) {
    border: 0; 
    border-bottom: 1px solid rgba(6, 16, 60, 0);
    background-color: rgba(6, 16, 60, 0.07);
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-family: 'Questrial', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: 0.1s all ease-in-out;
    color: #06103C;
    line-height: 1.4;
    border-radius: 0;
}
.input-group > textarea {
    resize: none;
    overflow-y: hidden;
    height: calc(3.7rem + 1px);
}
.input-group > input:placeholder-shown,
.input-group > textarea:placeholder-shown {
    background: transparent;
    border-color: #06103C;
}
form button.btn {min-width: 10rem; margin-top: 0.25rem;} 

@media (max-width: 600px) {
.input-group > textarea,
.input-group > select,
.input-group > input:not(.btn) {
    background-color: rgba(6, 16, 60, 0.07)!important;
    border-color: transparent!important;
}
}


/* OTHER */

section.page,
section.header + section,
section:has(.testimonials),
section:has(#contactform),
footer {background: #d2ff96;}


/* FOOTER */

footer {
    padding-block: 0rem 2rem;
}
footer > :first-child > :first-child > :first-child {
    border-top: 1px solid #06103C;
    padding-top: 5rem;
}
footer .logo {
    display: inline-block;
    margin-bottom: 3rem;
}
footer ul {
    list-style: none;
}
footer > div:nth-child(2) .container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    gap: 1.5rem 4rem;
}
footer > div:last-child {
    text-align: right;
    font-size: 0.85rem;
    padding-top: 2rem;
}
@media (max-width: 600px) {
    footer > div:last-child {text-align: left; padding-top: 4rem;}
    footer > div:nth-child(2) .container {flex-direction: column;}
}


/* REVEAL */

.reveal .line-wrap {
    display: block;
    overflow: hidden;
}
.reveal .line-inner {
    display: block;
    white-space: nowrap;
    transform: translateY(110%);
}
.reveal.visible .line-inner {
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}
.reveal .fade-in {
    opacity: 0;
}
.reveal.visible .fade-in {
    opacity: 1;
    transition: opacity 0.8s ease var(--delay, 0s);
}


/* LENIS */

html.lenis, html.lenis body {height: auto;}
.lenis.lenis-smooth {scroll-behavior: auto !important;}
.lenis.lenis-smooth [data-lenis-prevent] {overscroll-behavior: contain;}
.lenis.lenis-stopped {overflow: hidden;}
.lenis.lenis-smooth iframe {pointer-events: none;}

@media (max-width: 1500px) {
    .container {padding-inline: 2.25rem;}
}
@media (max-width: 600px) {
    .container {padding-inline: 1.25rem;}
    section:not(.page) h2 + p {font-size: 1.4rem;}
}
@media (max-width: 450px) {
    html {font-size: 4vw;}
}
