/* 
-----------------------------------------
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{
    background-color: var(--secondary-color);
}

body, p, li {
    font-family: "Inter", Sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, calc(1rem + ((1vw - 0.36rem) * 0.1488)), 1.125rem);
    color: var(--text-white);
    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-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-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: "Inter", Sans-serif;
    line-height: 1.1;
    margin-bottom: 0.25em;
    color: var(--text-white)
}

h1, .h1 {
    font-size: clamp(1.75rem, 1.15rem + 3vw, 3.2rem);
    font-weight: 700
}

h2, .h2 {
    font-size: clamp(1.75rem, calc(1.75rem + ((1vw - 0.36rem) * 0.4464)), 2.125rem);
    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;
}

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;
}

/** end TYPOGRAPHY **/



/** 3. LINKS & BUTTONS **/
a, a:link, a:active {
    color: var(--text-white);
    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: 1rem;
        background-color: var(--secondary-color-light);
        color: var(--text-white);
        font-weight: 700;
        transition: all ease 0.2s;
        border: 1px solid var(--secondary-color-light);
        border: none;
        transition: all ease-in-out .3s;
        border-radius: 50px 50px 50px 50px;
        padding: 15px 45px;
    }

        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(--primary-color-light);
            color: var(--text-white);
            box-shadow: none;
        }

a.btn-blue {
    background-color: var(--primary-color-light);
    border: 1px solid var(--primary-color-light);
    text-transform: uppercase;
    padding: 14px 20px;
}


a.btn-blue:hover {
    background-color: var(--secondary-color-light);
}



        /* Solid Button */
        a.btn.solid-btn,
        button.btn.solid-btn {
            background-color: var(--primary-color);
            color: var(--text-white);
            border: 1px solid var(--primary-color);
        }

    a.btn.solid-btn:hover,
    a.btn.solid-btn:focus,
    a.btn.solid-btn:active,
    button.btn.solid-btn:hover,
    button.btn.solid-btn:focus,
    button.btn.solid-btn:active {
        background-color: var(--secondary-color);
        background: linear-gradient(180deg, #1C8CA1, #1C8CA1 50%, #005770 50%);
        color: var(--text-white);
        border-color: var(--secondary-color);
        box-shadow: none;
    }

/* Solid Button 2 */
    a.btn.solid-btn-2,
    button.btn.solid-btn-2 {
        display: inline-block;
        font-size: 0.875rem;
        background-color: var(--secondary-color);
        padding: 1.25rem 1.5rem;
        color: var(--text-white);
        font-weight: 700;
        transition: all ease 0.2s;
        border: 1px solid var(--secondary-color);
        border: none;
        border-radius: 0;
        text-transform: uppercase;
        transition: all ease-in-out .3s;
    }

        a.btn.solid-btn-2:hover,
        a.btn.solid-btn-2:focus,
        a.btn.solid-btn-2:active,
        button.btn.solid-btn-2:hover,
        button.btn.solid-btn-2:focus,
        button.btn.solid-btn-2:active {
            background: var(--primary-color);
            color: var(--text-white);
            border-color: var(--primary-color);
            box-shadow: none;
        }


/* 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(--text-black) 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.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 ---------- */
.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);
    }


.hero-top-section {
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: -112px;
    min-height: 88vh;
    margin: -112px 0.75rem 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    border-radius: 0px 0px 30px 30px;
}


@media (min-width: 576px) {
    .hero-top-section {
        min-height: 100vh;
    }
}




    .hero-top-section .hero-caption-section {
        max-width: 830px;
        margin-right: 0;
        padding: 0 2rem 2rem;
    }


@media (min-width: 768px) {
    .hero-top-section {
        margin: -112px 1.85rem 0;
        align-items: center;
        justify-content: flex-end;
    }

        .hero-top-section .hero-caption-section {
            margin-right: 15%;
            padding: 0;
            text-align: left;
            margin-top: 8rem;
        }
}
 

/* Skapar det mörka lagret bakom texten */
.hero-top-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Justera 0.4 för mer/mindre mörker */
    z-index: 1;
}

 
.hero-caption-section {
    position: relative;
    z-index: 2;
}

 
 .blue {
    color: var(--primary-color-light) !important;
}


#statistics-section .statistics {
    padding-top: 32px;
}


#statistics-section h1 p {
    font-size: clamp(1.75rem, 1.15rem + 3vw, 3.2rem);
    font-weight: 700;
}

#statistics-section .statistics .row {
    text-align: center;
}

    #statistics-section .statistics .blue {
        font-size: clamp(2.00rem, calc(0.727rem + 6.364vw), 5.50rem);
        font-weight: 600;
    }

    #statistics-section .statistics p {
        font-weight: 600;
    }



#statistics-section .statistics-text h2 {
    text-align: center;
}


#statistics-section .statistics-text .light-blue, #vision h2, #solutions h2, #contact h2 {
    color: var(--secondary-color-light);
    font-size: 1rem;
    margin: 0 auto;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 500;
}

#statistics-section .statistics-text .blue {
    font-size: 3rem;
    font-weight: 500;
}


#solutions {
    background-color: var(--primary-color);
    border-radius: 18px;
}

    #solutions h2 {
        margin: 0;
    }

    #solutions .txt h2, #vision .txt h2, #vision .txt h2, #vision .vision-txt .blue {
        font-size: 3rem;
        font-weight: 500;
        text-transform: inherit;
        padding: 1rem 0;
    }

    #solutions  h3 {
        color: var(--primary-color-light) !important;
    }


    #solutions .row {
        text-align: center;
        margin-top:1rem;
    }

    #solutions img {
        Filter: invert(72%) sepia(59%) saturate(248%) hue-rotate(155deg) brightness(99%) contrast(96%);
        width: 80px;
        margin: 0 auto;
        display: block;
        margin-bottom: 1rem;
    }
    #solutions .box img {
        Filter: none;
    
    }

#vision img {
    border-radius: 18px;
}


#vision .txt {
    padding-right: 0;
    margin-bottom: 3rem;
}


@media (min-width: 576px) {
    #vision .txt {
        padding-right: 4rem;
        margin-bottom: 0;
    }
}

#vision .vision-txt {
    text-align: center;
    max-width:900px;
    margin: 0 auto;
}

    #vision .vision-txt p {
        text-align: left;
    }

#vision .iso {
    width: 300px;
    margin: 0 auto;
    display: block;
    filter: brightness(200%) contrast(200%) saturate(0%) blur(0px) hue-rotate(0deg);
}

@media (min-width: 576px) {
    #vision .iso {
        width: 470px;
    }
}

#solutions .box .box-container {
    background-color: var(--primary-color-white);
    border-radius: 25px;
    padding: 3rem 1rem;
    height: 100%;
    color: black;
}

    #solutions .box .box-container h3 {
        color: black !important;
    }

    #solutions .box .box-container p {
        color: black !important;
    }



#solutions .box svg {
    fill: var(--text-black);
}

#contact {
  
}


#contact a:hover {
    color: #ffffff;
}



    #contact .inner {
        position: relative;
        margin-bottom: 3rem;
    }

    #contact .contact-txt p {
        font-size: clamp(2rem, 1.6939rem + 1.3061vw, 3rem);
        font-weight: 500;
        text-transform: inherit;
        padding: 1rem 0;
        max-width: 100%;
        line-height: 1.2;
        text-transform: math-auto;
    }

#contact .light-blue {
    margin: 0;
}


#contact .txt p {
    font-size: 0.75rem;
}


#contact .txt svg {
    color: var(--secondary-color-light);
    padding-right: 6px;
    font-size: 1rem;
}












#contact-box {
    background-color: #EFF1F2;
    position: relative;
}

    #contact-box .black-box {
       position:absolute;
       top: 0;
       left:0;
       height:50%;
       width:100%;
       background-color: #000;
    }


    #contact-box .contact-info {
        background-color: var(--secondary-color-light);
        padding: 3rem 2rem;
        border-radius: 18px;
        position: relative;
        top: 998px;
        display: block;
        width: 93%;
        margin: 0 auto;
        top: 135%;
        width: 88%;
        max-width: 1500px;
    }


@media (min-width: 576px) {
    #contact-box .contact-info {
        padding: 4rem 4rem;
    }
}
 


#contact-box .contact-info .txt {
    align-items: center;
}


#contact-box .contact-info h2 {
    color: var(--primary-color-dark);
    margin: 0;
    font-size: 3rem;
    font-weight: 400;
    text-transform: inherit;
    padding-bottom: 1rem;
}

#contact-box .contact-info p {
    color: var(--text-darkblue);
}

#contact-box .contact-info img {
    max-width: 400px;
}



.btn-dblue {
    background-color: var(--primary-color) !important;
}

    .btn-dblue:hover {
        background-color: var(--primary-color-light) !important;
    }



.reveal-on-scroll {
    transform: translateY(50px);
    transition: all 0.8s ease-out; /* Hastighet på animationen */
    will-change: transform, opacity;
}

 
    .reveal-on-scroll.active {
        opacity: 1;
        transform: translateY(0);
    }


#scrollToTop {
    display: none; /* Dold som standard */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #046bd2;
    color: white;
    cursor: pointer;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 18px;
}

    #scrollToTop:hover {
        background-color: #046bd2;
    }

    #scrollToTop svg {
        margin-left: 0px;
        vertical-align: middle;
        transform: translate(0, -20%) rotate(180deg);
        width: 1em;
        fill: #fff;
    }

.top-txt-section {
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 88vh;
    margin: 0 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0px 0px 30px 30px;
    overflow: hidden;
    padding: 0 2rem;
}

    .top-txt-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5); /* här styr du "opacity" */
        z-index: 1;
    }

.top-txt {
    position: relative;
    z-index: 2; /* ser till att texten ligger ovanpå */
}

