/* 
-----------------------------------------
BASE
1. General
2. Typography (general + headings)
3. Links & buttons (links, buttons, skip-link)
4. Spacing
5. Backgrounds
6. Borders
7. Images
8. Breadcrumb
-----------------------------------------
*/

/** 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: "Montserrat", 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;
}

body {
    background-color: var(--neutral-color-dark);
}

/* 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.125rem, 0.8438rem + 0.7813vw, 1.625rem);
    font-weight: 400;
}

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-dark {
    color: var(--text-dark) !important;
}

.text-white {
    color: var(--text-white) !important;
}

/*Headings*/
/*Change clamp-values according to chosen font-family*/
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6 {
    font-family: "Montserrat", sans-serif;
    line-height: 1.1;
    margin-bottom: 0.25em;
}

h1, .h1, h2 > span.large {
    /*font-size: clamp(2rem, calc(2rem + ((1vw - 0.36rem) * 0.8929)), 2.75rem);*/
    font-size: clamp(2.625rem, 0.75rem + 5.2083vw, 7rem);
    font-weight: 300;
}

h2, .h2 {
    font-size: clamp(1.75rem, calc(1.75rem + ((1vw - 0.36rem) * 0.4464)), 2.125rem);
    font-weight: 700;
    text-transform: uppercase;
}

h3, .h3, p.highlightedKey {
    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;
}

h1 > span.small {
    color: var(--text-white);
}

h1 > span.small,
h2 > span.small {
    font-size: clamp(1.125rem, 0.8036rem + 0.8929vw, 1.875rem);
    font-weight: 600;
}

h2 > span.medium {
    font-size: clamp(2.5rem, 1.75rem + 2.0833vw, 4.25rem);
    font-weight: 300;
}

p + h2,
p + h3,
p + h4,
p + h5,
p + h6,
p + .h2,
p + .h3,
p + .h4,
p + .h5,
p + .h6 {
    margin-top: 1.5em;
}

h3 + h3,
h2 + h3,
h3 + h4,
h4 + h5,
h5 + h6,
h3 + p {
    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;
}

h3 + p.highlightedKey {
    margin-top: 2rem;
}

hr + p.highlightedKey {
    margin-bottom: 2rem;
}

hr.short {
    border-width: 1px;
    opacity: 1;
    max-width: 4rem;
}
hr.full {
    border-width: 1px;
    opacity: 1;
    max-width: 100%;
}

.bg-dark hr.short {
    color: var(--primary-color);
}
.bg-white hr.short {
    color: var(--text-dark);
}

p.highlightedKey {
    display: flex;
    align-items: center;
    height: 2em;
}

span.highlightedValue {
    font-size: 2em;
    margin-left: .5em;
    font-weight: 400;
    color: var(--primary-color);
}

/* Growing hr */
.growing-hr {
    position:relative;
}

    .growing-hr > div {
        position:absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    .growing-hr .growing {
        z-index:1;
    }
        .growing-hr .growing hr {
            opacity:1;
        }

    .growing-hr .full {
        z-index:0;
    }

/** end TYPOGRAPHY **/
/** 3. LINKS & BUTTONS **/
a, a:link, a:active {
    color: var(--secondary-color);
    transition: 0.2s;
    font-weight: 600;
    text-decoration: none;
}

    a:hover {
        color: var(--primary-color);
    }

[type=button], [type=reset], [type=submit], button {
    -webkit-appearance: none;
}

/* Buttons */
    a.btn,
    button.btn,
    button {
        display: inline-block;
        font-size: 0.875rem;
        background-color: var(--primary-color);
        padding: 1.25rem 1.5rem;
        color: var(--text-white);
        font-weight: 700;
        transition: all ease 0.2s;
        border: 1px solid var(--primary-color);
        border: none;
        border-radius: 0;
        text-transform: uppercase;
        transition: all ease-in-out .3s;
    }

    a.btn:hover,
    a.btn:focus,
    a.btn:active,
    button.btn:hover,
    button.btn:focus,
    button.btn:active,
    button:hover,
    button:active {
        background-color: var(--secondary-color);
        color: var(--text-white);
        box-shadow: none;
    }
            
/* Primary Button */
    a.btn.btn-primary,
    button.btn.btn-primary {
        display: inline-block;
        font-size: 0.875rem;
        background-color: var(--primary-color);
        padding: .875rem 2rem;
        color: var(--text-dark)!important;
        font-weight: 700;
        transition: all ease 0.2s;
        border: 1px solid var(--primary-color);
        border: none;
        border-radius: 800px;
        text-transform: uppercase;
        transition: all ease-in-out .3s;
    }
    a.btn.btn-primary:hover,
    button.btn.btn-primary:hover {
        background-color: var(--text-white);
    }

/* Secondary Button */
    a.btn.btn-secondary,
    button.btn.btn-secondary {        
        display:flex;
        align-items: center;
        background-color: var(--neutral-color-dark);
        padding: .5rem 1rem;
        color: var(--text-white);
        border: 2px solid var(--primary-color);
        border-radius: 0;
        text-transform: uppercase;
        transition: all ease-in-out .3s;
        width: 100% !important;
        max-width: 330px;
    }


        a.btn.btn-secondary:hover,
        button.btn.btn-secondary:hover {
            background-color: var(--primary-color);
            color: var(--neutral-color-dark) !important;
            border-radius: 0;
            text-transform: uppercase;
            transition: all ease-in-out .3s;
            width: 100% !important;
            max-width: 330px;
        }

/* Outline button */
a.btn.outline-btn,
button.btn.outline-btn {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    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 {
        color: var(--secondary-color);
        border-color: var(--secondary-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: 1800px;
    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.contain {
        background-size: contain;
    }
/* Primary */
.bg-primary {
    background-color: var(--primary-color) !important;
}
/* Secondary */
.bg-secondary {
    background-color: var(--secondary-color) !important;
}
/* Neutral */
.bg-light {
    background-color: var(--neutral-color-light) !important;
}

.bg-dark {
    background-color: var(--neutral-color-dark) !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-transparent {
    background-color: transparent !important;
}


.bg-dark.text-white h2,
.bg-dark.text-white h3,
.bg-dark.text-white h4,
.bg-dark.text-white h5,
.bg-dark.text-white p,
.bg-dark.text-white a,
.bg-dark.text-white strong,
.bg-white .bg-dark.text-white h2,
.bg-white .bg-dark.text-white h3,
.bg-white .bg-dark.text-white h4,
.bg-white .bg-dark.text-white h5,
.bg-white .bg-dark.text-white p,
.bg-white .bg-dark.text-white a,
.bg-white .bg-dark.text-white strong {
    color: var(--text-white);
}

.bg-white.text-dark h2,
.bg-white.text-dark h3,
.bg-white.text-dark h4,
.bg-white.text-dark h5,
.bg-white.text-dark p,
.bg-white.text-dark a,
.bg-white.text-dark strong,
.bg-dark .bg-white.text-dark h2,
.bg-dark .bg-white.text-dark h3,
.bg-dark .bg-white.text-dark h4,
.bg-dark .bg-white.text-dark h5,
.bg-dark .bg-white.text-dark p,
.bg-dark .bg-white.text-dark a,
.bg-dark .bg-white.text-dark strong {
    color: var(--text-dark);
}
/** 6. BORDERS **/
/* ---------- Borders ---------- */

.border {
    border: 3px solid !important;
}

.border-left {
    border-left: 3px solid !important;
}

.border-top {
    border-top: 3px solid !important;
}

.border-right {
    border-right: 3px solid !important;
}

.border-bottom {
    border-bottom: 3px 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;
}

.bg-primary.border-diffused {
box-shadow: inset 0px 0px 0px 1px rgba(0,0,0.5);
width: 3px;
}
.bg-white.border-diffused {
box-shadow: inset -2px -2px 1px 1px rgb(0, 0, 0,.5);
width: 1px;
margin-top: -1px;
}

/** 7. IMAGES **/
/* ---------- Images ---------- */
.cover-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}


.contain-img {
    height: 100%;
    width: auto;
    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);
    }