
/** 1. GENERAL **/

:root {

    /* Top margin */
    --top-margin-sm: 72px;
    --top-margin-lg: 100px; /* 992 px */
    --top-margin-xl: 112px; /* 1700 px */
}

::selection {
    background-color: var(--neutral-black);
    color: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

.scroll-to {
    display: block;
    position: relative;
    top: calc(-1*var(--top-margin-sm));
    visibility: hidden;
}

@media screen and (min-width: 992px) {
    
    .scroll-to {
        top: calc(-1*var(--top-margin-lg));
    }
}

@media screen and (min-width: 1700px) {
    
    .scroll-to {
        top: calc(-1*var(--top-margin-xl));
    }
}

img {
    max-width: 100%;
}

figure {
    margin-bottom: 0;
}

/** 2. TYPOGRAPHY **/

/* Change clamp-values according to chosen font-family*/
body, p, li {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media screen and (min-width: 576px) {

    body, p, li {
        font-size: 1.125rem;
    }
}

.max-width-300 {
    max-width: 300px;
}

b, strong {
    font-weight: 700;
}

p strong {
    font-weight: 700;
}

p.ingress {
    font-size: clamp(1.125rem, 1.095rem + 0.129vw, 1.25rem);
    text-transform: uppercase;
    font-weight: 400;
}

p:last-child {
    margin-bottom: 0;
}

ol, ul {
    padding-left: 1rem;
}

ul.list-style-none {
    padding: 0;
    list-style: none;
}

.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 {
    margin-bottom: 1rem;
}

h2:first-child,
h3:first-child,
h4:first-child {
    margin-top: 0;
}

h1, .h1 {
    font-size: clamp(2.125rem, 1.877rem + 1.057vw, 3rem);
    font-weight: 400;
    color: var(--primary-color-dark);
    line-height: 1.1;
}

h2, .h2 {
    font-size: clamp(1.5rem, 1.361rem + 0.602vw, 2rem);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.1;
    margin-top: 1.5em;
}

h3, .h3 {
    font-size: clamp(1.375rem, 1.304rem + 0.302vw, 1.625rem);
    font-weight: 400;
    line-height: 1.2;
}

h4, .h4 {
    font-size: clamp(1.125rem, 1.09rem + 0.151vw, 1.25rem);
    font-weight: 400;
    line-height: 1.2;
}

h5, .h5 {
    font-size: clamp(1rem, 0.965rem + 0.151vw, 1.125rem);
    font-weight: 400;
    line-height: 1.2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 1.8571rem + 1.7857vw, 4rem);
    font-weight: 400;
    color: var(--text-white);
}

p + h2,
p + h3,
p + h4,
p + h5,
p + h6,
p + .h2,
p + .h3,
p + .h4,
p + .h5,
p + .h6 {
    margin-top: 1.25em;
}

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;
}

/** end TYPOGRAPHY **/

/** 3. LINKS & BUTTONS **/
a, a:link, a:active {
    color: var(--primary-color);
    transition: color ease 0.2s;
    text-decoration: none;
    text-underline-offset: 0.3em;
}

a:hover {
    text-decoration: underline;
    color: var(--neutral-black);
}

[type=button], [type=reset], [type=submit], button {
    -webkit-appearance: none;
}

/* Buttons */

a.theme-btn,
button.theme-btn {
    display: inline-block;
    font-size: 0.875rem;
    border-radius: 0;
    padding: 1.25em 1.5em;
    font-weight: 400;
    line-height: 1.125;
    transition: all ease 0.2s;
    background-color: var(--primary-color);
    border: none;
    color: #FFFFFF;
    min-width: 160px;
    text-transform: uppercase;
    text-align: center;
}

a.theme-btn:hover,
button.theme-btn:hover {
    background-color: var(--neutral-color-dark);
    color: var(--text-dark);
    text-decoration: none;
}

/* Outline button */
a.theme-btn.outline-btn,
button.theme-btn.outline-btn {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background: transparent;
}

a.theme-btn.outline-btn:hover,
a.theme-btn.outline-btn:focus,
a.theme-btn.outline-btn:active,
button.theme-btn.outline-btn:hover,
button.theme-btn.outline-btn:focus,
button.theme-btn.outline-btn:active {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

a.theme-btn:focus-visible,
button.theme-btn:focus-visible {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transition: none;
    outline: 3px dotted var(--primary-color);
    outline-offset: 3px;
}

/* White outline button */

a.theme-btn.outline-btn-white,
button.theme-btn.outline-btn-white {
    color: #FFFFFF;
    border: 1px solid #ffffff;
    background: transparent;
}

a.theme-btn.outline-btn-white:hover,
a.theme-btn.outline-btn-white:focus,
a.theme-btn.outline-btn-white:active,
button.theme-btn.outline-btn-white:hover,
button.theme-btn.outline-btn-white:focus,
button.theme-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{
    transition: none;
    outline:var(--primary-color) dotted 3px;
    outline-offset:2px;
}

p:has(+ a.theme-btn) {
    margin-bottom: 0;
}

p + a.theme-btn {
    margin-top: clamp(1rem, 0.761rem + 1.032vw, 2rem);
}

/* ------- Skip to content ------- */

.skip-to-content {
    position: fixed;
    z-index: 1301;
    margin: 1rem;
    top: 1rem;
}

a.skip-to-content-btn {
    display: inline-block;
    font-weight: 500;
    background-color: var(--text-dark);
    padding: 0.75em 2em;
    color: var(--text-white);
    border: 1px solid var(--text-dark);
}

a.skip-to-content-btn:focus-visible {
    outline: 3px dotted var(--text-dark);
}
   
/** 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 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 768px) {

    .container-x {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1400px) {

    .container-x {
        padding-left: calc(50% - 650px);
        padding-right: calc(50% - 650px);
    }
}

@media (min-width: 1700px) {

    .container-x {
        padding-left: calc(50% - 800px);
        padding-right: calc(50% - 800px);
    }
}

.container-y {
    padding-top: clamp(2rem, 1.045rem + 4.129vw, 6rem);
    padding-bottom: clamp(2rem, 1.045rem + 4.129vw, 6rem);
}

@media screen and (min-width: 2400px) {
    .page-wrap-container {
        max-width: 1920px;
        margin: 0 auto;
        box-shadow: 0 0 10px rgba(0,0,0,0.1), 0 0 100px rgba(0,0,0,0.1);
    }
}
/** 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;
}

/** 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;
}

/** 7. IMAGES **/

/* ---------- Images ---------- */

.cover-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.contain-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

/** 8. Breadcrumb **/

/* ---------- Breadcrumb ---------- */

.breadcrumb {
    background-color: var(--neutral-color-light);
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    margin-bottom: 0;
}

.breadcrumb ul {
    margin: 0;
    max-width: 100%;
}

.breadcrumb li {
    font-weight: 400;
    text-wrap: nowrap;
    line-height: 1.2;
    font-size: 1rem;
}

.breadcrumb li:first-child {
    display: none;
}

@media screen and (min-width: 576px) {

    .breadcrumb li:first-child,
    .breadcrumb span.divider:first-of-type {
        display: unset;
    }
}

.breadcrumb li:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dark);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb span.divider {
    color: var(--text-muted);
    margin: 0 0.5em;
}
