/* 
-----------------------------------------
BASE
1. General
2. Typography (general + headings)
3. Links & buttons (links, buttons, skip-link)
4. Spacing
5. Backgrounds
6. Borders
7. Images
8. Breadcrumb
9. Overlays
-----------------------------------------
*/

/** {
    border: 1px solid red;
}*/

/** 1. GENERAL **/
html {
    scroll-behavior: smooth;
}

.scroll-to {
    display: block;
    position: relative;
    top: -112px;
    visibility: hidden;
}

img {
    max-width: 100%;
}

figure {
    margin-bottom: 0;
}

::selection {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/** 2. TYPOGRAPHY **/
/* Change clamp-values according to chosen font-family*/
body, p, li {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, calc(1rem + ((1vw - 0.36rem) * 0.1488)), 1.125rem);
    /*background-color: #FFFFFF;*/
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Limiting width for readability */
/*p, li, h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6 {
    max-width: 80ch;
}*/

.max-width-300 {
    max-width: 300px;
}

b, strong {
    font-weight: 700;
}

p strong {
    font-weight: 700;
}

p.ingress {
    font-size: clamp(1.25rem, calc(1.25rem + ((1vw - 0.36rem) * 0.1488)), 1.375rem);
    font-weight: 500;
}

ol, ul {
    padding-left: 1rem;
}

.limit-1-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.limit-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.limit-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.limit-4-lines {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-pink {
    color: var(--pink-color) !important;
}

.text-darkblue {
    color: var(--darkblue-color) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-white {
    color: var(--text-white) !important;
}

.text-light {
    color: var(--neutral-color-light) !important;
}

/*Headings*/
/*Change clamp-values according to chosen font-family*/
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6 {
    font-family: "Inter", sans-serif;
    line-height: 1.1;
    margin-bottom: 0.25em;
}

@media(max-width: 575px) {
    h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6 {
        /*overflow-wrap: break-word;*/
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    }
}

h1, .h1 {
    font-size: clamp(2rem, calc(2rem + ((1vw - 0.36rem) * 0.8929)), 2.75rem);
    font-weight: 700
}

h2, .h2 {
    font-size: clamp(2rem, 1.6939rem + 1.3061vw, 3rem);
    font-weight: 700;
}

h3, .h3 {
    font-size: clamp(1.5rem, calc(1.5rem + ((1vw - 0.36rem) * 0.1488)), 1.625rem);
    font-weight: 600;
}

h4, .h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5, .h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 600;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 1.8571rem + 1.7857vw, 4rem);
    font-weight: 400;
    color: var(--text-white);
}

    .hero-content h1 strong {
        font-weight: 800;
    }

h2.pre-headline {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

h1.medium, .h1.medium, h2.medium, .h2.medium, h3.medium, .h3.medium, h4.medium, .h4.medium, h5.medium, .h5.medium, h6.medium {
    font-weight: 500;
}

p + h2,
p + h3,
p + h4,
p + h5,
p + h6,
p + .h2,
p + .h3,
p + .h4,
p + .h5,
p + .h6 {
    margin-top: 1.5em;
}

h2 + h3,
h3 + h4,
h4 + h5,
h5 + h6 {
    margin-top: 0.75em;
}

.tag {
    color: var(--text-primary);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
}

span.fw-bold {
    font-weight: 700 !important;
}

span.fw-semi-bold {
    font-weight: 600 !important;
}

span.fw-medium {
    font-weight: 500 !important;
}

span.fw-normal {
    font-weight: 400 !important;
}

span.fw-light {
    font-weight: 300 !important;
}

/** end TYPOGRAPHY **/



/** 3. LINKS & BUTTONS **/
a, a:link, a:active {
    color: var(--primary-color);
    transition: 0.2s;
    font-weight: 600;
    text-decoration: none;
}

    a:hover,
    a:link:hover,
    a:active:hover,
    a.text-white span:hover,
    a.text-dark span:hover {
        color: var(--text-muted);
    }

[type=button], [type=reset], [type=submit], button {
    -webkit-appearance: none;
}

    /* Buttons */

    a.btn,
    button.btn,
    input.btn {
        display: inline-block;
        font-size: 1rem;
        border-radius: 10rem;
        padding: .5rem 1.5rem;
        font-weight: 500;
        transition: all ease 0.2s;
        background-color: var(--primary-color);
        border: none;
        color: #FFFFFF;
        min-width: 140px;
        /*text-transform: uppercase;*/
    }

        a.btn:hover,
        button.btn:hover {
            background-color: var(--neutral-color);
            color: var(--text-dark);
        }

        /* Dark button */
        a.btn.dark-btn,
        button.btn.dark-btn,
        input.btn.dark-btn {
            color: var(--text-white);
            border: 2px solid var(--neutral-color-dark);
            background: var(--neutral-color-dark);
        }



        /* Light button */
        a.btn.light-btn,
        button.btn.light-btn,
        input.btn.light-btn {
            color: var(--text-dark);
            border: 2px solid var(--text-white);
            background: var(--text-white);
        }

            /* a.btn.secondary-btn:hover,
            a.btn.secondary-btn:focus,
            a.btn.secondary-btn:active,
            button.btn.secondary-btn:hover,
            button.btn.secondary-btn:focus,
            button.btn.secondary-btn:active,
            input.btn.secondary-btn:hover,
            input.btn.secondary-btn:focus,
            input.btn.secondary-btn:active {
                color: var(--text-white);
                border-color: var(--text-dark) !important;
                background: var(--text-dark) !important;
            }*/

            /* Hover/focus/active */
            a.btn.dark-btn:hover,
            a.btn.dark-btn:focus,
            a.btn.dark-btn:active,
            button.btn.dark-btn:hover,
            button.btn.dark-btn:focus,
            button.btn.dark-btn:active,
            input.btn.dark-btn:hover,
            input.btn.dark-btn:focus,
            input.btn.dark-btn:active,
            a.btn.light-btn:hover,
            a.btn.light-btn:focus,
            a.btn.light-btn:active,
            button.btn.light-btn:hover,
            button.btn.light-btn:focus,
            button.btn.light-btn:active,
            input.btn.light-btn:hover,
            input.btn.light-btn:focus,
            input.btn.light-btn:active {
                color: var(--text-white);
                border-color: var(--text-muted);
                background: var(--text-muted);
            }

        a.btn:focus-visible,
        button.btn:focus-visible,
        input.btn:focus-visible {
            transition: none;
            primary: 3px dotted var(--primary-color);
            primary-offset: 3px;
        }

        a.btn:focus-visible,
        button.btn:focus-visible,
        input.btn:focus-visible {
            transition: none;
            secondary: 3px dotted var(--secondary-color);
            secondary-offset: 3px;
        }

        /* White button */
        a.btn.white-btn,
        button.btn.white-btn,
        input.btn.white-btn {
            color: var(--text-dark);
            border: 2px solid var(--text-white);
            background: var(--text-white);
        }

            a.btn.white-btn:hover,
            a.btn.white-btn:focus,
            a.btn.white-btn:active,
            button.btn.white-btn:hover,
            button.btn.white-btn:focus,
            button.btn.white-btn:active,
            input.btn.white-btn:hover,
            input.btn.white-btn:focus,
            input.btn.white-btn:active {
                color: var(--text-white);
                background: var(--text-dark);
                border-color: var(--text-dark);
            }

        a.btn:focus-visible,
        button.btn:focus-visible,
        input.btn:focus-visible {
            transition: none;
            secondary: 3px dotted var(--white-color);
            white-offset: 3px;
        }


        /* Outline button */
        a.btn.outline-btn,
        button.btn.outline-btn,
        input.btn.outline-btn {
            color: var(--text-dark);
            border: 2px solid var(--text-dark);
            background: transparent;
        }

            a.btn.outline-btn:hover,
            a.btn.outline-btn:focus,
            a.btn.outline-btn:active,
            button.btn.outline-btn:hover,
            button.btn.outline-btn:focus,
            button.btn.outline-btn:active,
            input.btn.outline-btn:hover,
            input.btn.outline-btn:focus,
            input.btn.outline-btn:active {
                color: var(--text-muted);
                border-color: var(--text-muted);
                background: transparent;
            }

        a.btn:focus-visible,
        button.btn:focus-visible,
        input.btn:focus-visible {
            transition: none;
            outline: 3px dotted var(--primary-color);
            outline-offset: 3px;
        }

        /* White outline button */
        a.btn.outline-btn-white,
        button.btn.outline-btn-white {
            color: #FFFFFF;
            border: 2px solid #ffffff;
            background: transparent;
        }

            a.btn.outline-btn-white:hover,
            a.btn.outline-btn-white:focus,
            a.btn.outline-btn-white:active,
            button.btn.outline-btn-white:hover,
            button.btn.outline-btn-white:focus,
            button.btn.outline-btn-white:active {
                color: var(--primary-color);
                border-color: var(--primary-color);
                background: transparent;
            }

    /*Focus on tabbing. Important for accessibility*/
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    .navbar-toggler:focus-visible {
        outline: var(--primary-color) dotted 2px;
        outline-offset: 2px;
    }

/* ------- Skip to content ------- */
.skip-to-content {
    position: absolute;
    z-index: 1201;
    margin: 1rem;
}

a.skip-to-content-btn {
    display: inline-block;
    font-weight: 500;
    background-color: var(--primary-color);
    padding: 0.75em 2em;
    color: var(--text-white);
    border: 1px solid var(--primary-color);
}



/** end LINKS & BUTTONS **/



/** 4. SPACING **/
/* ------ Spacing utilities ------ */

.rte-container {
    max-width: 1000px;
    margin: 0 auto;
}

    .rte-container.richtext-content img {
        max-width: 100%;
        height: auto;
    }

@media (min-width: 992px) {
    .rte-container.richtext-content img {
        float: left;
        padding: 1rem;
        padding-left: 0;
        padding-right: 2rem;
    }
}

.container-x {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.container-y {
    padding-top: clamp(2.5rem, calc(2.5rem + ((1vw - 0.36rem) * 4.6875)), 5rem);
    padding-bottom: clamp(2.5rem, calc(2.5rem + ((1vw - 0.36rem) * 4.6875)), 5rem);
}

@media (min-width: 576px) {
    .container-x {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/** 5. BACKGROUNDS **/
/* ---------- Backgrounds ---------- */
.bg-img {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

    .bg-img.bottom {
        background-position: bottom;
    }

    .bg-img.contain {
        background-size: contain;
    }


/* Primary */
.bg-primary {
    background-color: var(--neutral-color-dark) !important;
}

/* Secondary */
.bg-secondary {
    background-color: var(--secondary-color) !important;
}


/* Neutral */
.bg-light {
    background-color: var(--neutral-color-light) !important;
}

.bg-medium {
    background-color: var(--neutral-color) !important;
}

.bg-dark {
    background-color: var(--neutral-color-dark) !important;
}

.bg-pink {
    background-color: var(--pink-color) !important;
}

.bg-darkblue {
    background-color: var(--darkblue-color) !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-transparent {
    background-color: transparent !important;
}


.bg-dark h2,
.bg-dark h3 {
    color: var(--secondary-color);
}

.bg-dark p {
    color: var(--text-white);
}

.bg-darkblue h2,
.bg-darkblue h3,
.bg-darkblue p {
    color: var(--text-white);
}

.bg-secondary h2,
.bg-secondary h3,
.bg-secondary p {
    color: var(--text-dark);
}

.bg-pink h2,
.bg-pink h3,
.bg-pink p {
    color: var(--text-dark);
}

/** 6. BORDERS **/
/* ---------- Borders ---------- */
.border {
    border: 2px solid !important;
}

.border-left {
    border-left: 2px solid !important;
}

.border-top {
    border-top: 2px solid !important;
}

.border-right {
    border-right: 2px solid !important;
}

.border-bottom {
    border-bottom: 2px solid !important;
}

    .border.thin,
    .border-left.thin,
    .border-top.thin,
    .border-right.thin,
    .border-bottom.thin {
        border-width: 1px !important;
    }

    .border.thick,
    .border-left.thick,
    .border-top.thick,
    .border-right.thick,
    .border-bottom.thick {
        border-width: 4px !important;
    }

    .border.extra-thick,
    .border-left.extra-thick,
    .border-top.extra-thick,
    .border-right.extra-thick,
    .border-bottom.extra-thick {
        border-width: 6px !important;
    }

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

.border-dark {
    border-color: var(--neutral-color-dark) !important;
}

.border-light {
    border-color: var(--neutral-color-light) !important;
}

.border-white {
    border-color: #FFFFFF !important;
}

.no-border {
    border-left: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

/* Border-radius */
.br-small {
    border-radius: 1rem;
    overflow: hidden;
}

.br-medium {
    border-radius: 2rem;
    overflow: hidden;
}

.br-large {
    border-radius: 3rem;
    overflow: hidden;
}

.br-top-small {
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
}

.br-top-medium {
    border-radius: 2rem 2rem 0 0;
    overflow: hidden;
}

.br-top-large {
    border-radius: 3rem 3rem 0 0;
    overflow: hidden;
}

.br-bottom-small {
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
}

.br-bottom-medium {
    border-radius: 0 0 2rem 2rem;
    overflow: hidden;
}

.br-bottom-large {
    border-radius: 0 0 3rem 3rem;
    overflow: hidden;
}

/** 7. IMAGES **/
/* ---------- Images ---------- */
.cover-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.cover-img-bottom {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: bottom;
}


.contain-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

/** 8. Breadcrumb **/
/* ---------- Breadcrumb ---------- */
.breadcrumbs li {
    font-size: .875rem;
    letter-spacing: 3%;
}

    .breadcrumbs li a {
        color: #000;
        font-weight: 400;
    }

        .breadcrumbs li a:hover {
            color: var(--primary-color);
        }

    .breadcrumbs li.active {
        color: var(--primary-color);
    }

/** 9. Overlays **/
/* ---------- Overlays ---------- */

.overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,.35);
    z-index: 0;
}
