/* ITFS */

/* FONT-FACE */
@font-face {
    font-family: 'SpaceGrotesk';
    src: url('SpaceGrotesk-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ROOT */
:root {
    /* colors */
    --blue-700: #3632E3;
    --green-100: #DFFEB9;
    --blue-400: #6e85ff;
    /* spacings / 390 -> 1920  */
    --spacing-1: 8px;
    --spacing-2: 16px;
    --spacing-3: 24px;
    --spacing-4: 32px;
    /* 32 / 48 */
    --spacing-5: clamp(2rem, 1.745rem + 1.046vw, 3rem);
    /* 48 / 64 */
    --spacing-6: clamp(3rem, 2.745rem + 1.046vw, 4rem);
    /* 64 / 128 */
    --spacing-7: clamp(4rem, 2.98rem + 4.183vw, 8rem);
    /* 80 / 200 */
    --spacing-8: clamp(5rem, 3.088rem + 7.843vw, 12.5rem);
    /* typography / 390 -> 1920 */
    --font-family-base: 'SpaceGrotesk', system-ui, 'Segoe UI', sans-serif;
    --font-weight-base: 500;
    --line-height-base: 1.6;
    --line-height-headline: 1.3;
    /* 16 */
    --font-size-base: 16px;
    /* 18 */
    --font-size-lg: 18px;
    /* 18 / 22 */
    --font-size-xl: clamp(1.125rem, 1.061rem + 0.261vw, 1.375rem);
    /* 24 / 32 */
    --font-size-2xl: clamp(1.5rem, 1.373rem + 0.523vw, 2rem);
    /* 24 / 40 */
    --font-size-3xl: clamp(1.5rem, 1.245rem + 1.046vw, 2.5rem);
    /* 48 / 80 */
    --font-size-4xl: clamp(3rem, 2.49rem + 2.092vw, 5rem);
    /* grid */
    --grid-margin: 1.5rem;
    --grid-gap: 1rem;

}

@media (min-width: 1024px) {

    :root {
        --grid-margin: 3vw;
        --grid-gap: 2rem;
    }
}

/* SITE */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'SpaceGrotesk';
    font-weight: 500;
    color: var(--blue-700);
    background-color: var(--green-100);
}

main {
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    row-gap: var(--spacing-8);
    padding: var(--spacing-8) 0;
}

/* CONTENT GRID */
.content-grid {
    display: grid;
    column-gap: var(--grid-gap);
    grid-template-columns: [full-width-start] calc(var(--grid-margin) - var(--grid-gap)) [content-start] repeat(12, minmax(0, 1fr)) [content-end] calc(var(--grid-margin) - var(--grid-gap)) [full-width-end];
}

.content-grid>* {
    grid-column: content;
}

.content-grid .content-grid {
    grid-column: full-width;
}

.grid-cols-12 {
    display: grid;
    column-gap: var(--grid-gap);
    grid-template-columns: [content-start] repeat(12, minmax(0, 1fr)) [content-end];
}

.grid-cols-12>* {
    grid-column: content;
}

/* COLORS */
::selection {
    color: var(--green-100);
    background: var(--blue-700);
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: var(--line-height-headline);
    text-wrap: balance;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    hyphenate-limit-lines: 2;
    hyphenate-limit-last: always;
    hyphenate-limit-zone: 8%;
    /* Webkit */
    -webkit-hyphens: auto;
    -webkit-hyphenate-limit-before: 2;
    -webkit-hyphenate-limit-after: 2;
    -webkit-hyphenate-limit-chars: 6 3 3;
    -webkit-hyphenate-limit-lines: 2;
    -webkit-hyphenate-limit-last: always;
    -webkit-hyphenate-limit-zone: 8%;
    /* Mozilla */
    -moz-hyphens: auto;
    -moz-hyphenate-limit-chars: 6 3 3;
    -moz-hyphenate-limit-lines: 2;
    -moz-hyphenate-limit-last: always;
    -moz-hyphenate-limit-zone: 8%;
    /* MS */
    -ms-hyphens: auto;
    -ms-hyphenate-limit-chars: 6 3 3;
    -ms-hyphenate-limit-lines: 2;
    -ms-hyphenate-limit-last: always;
    -ms-hyphenate-limit-zone: 8%;
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.75em !important;
}

body,
p {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-base);
    word-wrap: break-word;
    text-wrap: pretty;
}

p {
    margin-bottom: 0.727em;
}

div>p:last-child {
    margin-bottom: 0;
}

h1.font-size-2xl,
h2.font-size-2xl,
h3.font-size-2xl,
h4.font-size-2xl,
h5.font-size-2xl,
h6.font-size-2xl,
p.font-size-2xl {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-headline);
}

h1.font-size-xl,
h2.font-size-xl,
h3.font-size-xl,
h4.font-size-xl,
h5.font-size-xl,
h6.font-size-xl,
p.font-size-xl {
    font-size: var(--font-size-xl);
}

h1.font-size-lg,
h2.font-size-lg,
h3.font-size-lg,
h4.font-size-lg,
h5.font-size-lg,
h6.font-size-lg,
p.font-size-lg {
    font-size: var(--font-size-lg);
}

h1.font-size-base,
h2.font-size-base,
h3.font-size-base,
h4.font-size-base,
h5.font-size-base,
h6.font-size-base,
p.font-size-base,
.font-size-base {
    font-size: var(--font-size-base);
}

p.text-large {
    font-size: var(--font-size-3xl);
}

h1.mb-0,
h2.mb-0,
h3.mb-0,
h4.mb-0,
h5.mb-0,
h6.mb-0,
p.mb-0 {
    margin-bottom: 0;
}

/*  GRID CONTENT */
.grid-full-width {
    grid-column: full-width;
}

@media (min-width: 768px) {

    .grid-heading {
        grid-column: 2 / 12;
    }

    .grid-text {
        grid-column: 6 / 14;
    }

    .grid-span-6 {
        grid-column: span 6;
    }
}

@media (min-width: 1280px) {

    .grid-text {
        grid-column: 7 / 13;
    }
}

/* SPACINGS */
.pb-0 {
    padding-bottom: 0;
}

.mb-5 {
    margin-bottom: var(--spacing-5);
}

.gap-y-3 {
    row-gap: var(--spacing-3);
}

.gap-y-7 {
    row-gap: var(--spacing-7);
}

/* IMG */
.ratio-8 {
    aspect-ratio: 16 / 11;
    object-fit: cover;
    width: 100%;
}

@media (min-width: 1024px) {

    .ratio-8 {
        aspect-ratio: 16 / 8;
    }
}

/* LINK */
a {
    color: var(--blue-700);
}

a:not(.decoration-none):hover {
    color: var(--blue-400);
    /*    text-decoration: underline;*/
}

a.decoration-none:not(:hover) {
    text-decoration: none;
}

.decoration-none a:not(:hover) {
    text-decoration: none;
}

/* MISC */
.relative {
    position: relative;
}

/* GRID */
.auto-grid {
    --auto-grid-gap-x: var(--grid-gap);
    /* calculations */
    --grid-col-size-calc: calc((100% - var(--auto-grid-gap-x) * var(--grid-max-col-count)) / var(--grid-max-col-count));
    --grid-col-min-size-calc: min(100%, max(var(--grid-min-col-size), var(--grid-col-size-calc)));
    /* setup */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--grid-col-min-size-calc), 1fr));
}

/* SERVICE GRID */
.service-grid {
    --auto-grid-gap-x: var(--spacing-6);
    --grid-max-col-count: 3;
    --grid-min-col-size: 250px;
    gap: var(--spacing-6);

}

/* SERVICE */
.service-element svg {
    margin-bottom: var(--spacing-1);
}

/* BADGE */
.badge {
    position: absolute;
    right: var(--spacing-6);
    bottom: var(--spacing-6);
    transform: rotate(-11deg);
    width: auto;
    height: clamp(9.375rem, 8.578rem + 3.268vw, 12.5rem);
}

/* FOOTER */
footer {
    display: flex;
    flex-direction: column;
    background-color: var(--blue-700);
    color: var(--green-100);
    padding-block: var(--spacing-6);
    row-gap: var(--spacing-8);
}

footer a {
    color: var(--green-100);
}

footer .footer-meta {
    display: flex;
    gap: 8px 24px;
    flex-wrap: wrap;
}

/* NAVBAR */
.navbar {
    padding: var(--grid-margin) var(--grid-margin) 0 var(--grid-margin);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--spacing-5);
}

.navbar a.site-url {
    line-height: 0;
    flex-grow: 1;
}

.navbar .site-logo {
    width: 100%;
    height: auto;
    max-width: 432px;
}

@media (min-width: 576px) {

    .navbar {
        flex-direction: row;
        align-items: center;
    }
}