
:root {

    /* Color declarations */
    --sesab-red: #CB2A27;
    --offblack: #22282A;
    --dark-gray: #67777E;
    --medium-gray: #ABB6BA;
    --light-gray: #F8F8F8;

    /* Top margin */
    --top-margin-sm: 64px;
    --top-margin-lg: 110px; /* 992 px */
    --top-margin-xl: 128px; /* 1700 px */

    /* Override Bootstrap */
    --bs-btn-active-bg: var(--dark-gray);
    --bs-btn-focus-box-shadow: var(--dark-gray);
    --bs-btn-active-color: #FFFFFF;
}
/* 
-----------------------------------------
BASE
-----------------------------------------
*/

::selection {
    background-color: var(--offblack);
    color: #fff;
}

.bg-gray {
    background-color: var(--light-gray);
}

a, a:link, a:active {
    color: var(--sesab-red);
    text-decoration: none;
    transition: 0.2s;
    text-underline-offset: 0.3em;
}

a:hover {
    color: var(--sesab-red);
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
    transition: none;
    outline: 3px dotted var(--offblack);
}


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

.scroll-to {
    display: block;
    position: relative;
    top: calc(var(--top-margin-sm) * -1);
    visibility: hidden;
}

@media screen and (min-width: 992px) {

    .scroll-to {
        top: calc(var(--top-margin-lg ) *-1)
    }
}

@media screen and (min-width: 1700px) {

    .scroll-to {
        top: calc(var(--top-margin-xl) * -1)
    }
}

ul {
    padding-left: 1rem;
}

ul.list-style-none {
    list-style: none;
    padding: 0;
}

img {
    max-width: 100%;
}

figure {
    margin-bottom: 0;
}

html {
    scroll-behavior: smooth;
}

body, p, li {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 0.964rem + 0.152vw, 1.125rem);
    color: var(--offblack);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

b, strong {
    font-weight: 700;
}

h1 {
    font-size: clamp(1.75rem, 1.534rem + 0.909vw, 2.5rem);
    color: var(--sesab-red);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.2em;
    text-transform: none;
}

h2 {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: clamp(1.375rem, 1.231rem + 0.606vw, 1.875rem);
    margin-bottom: 0.75rem;
    line-height: 1.15;
    margin-top: 1.3em;
}

h3 {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: clamp(1.25rem, 1.178rem + 0.303vw, 1.5rem);
    text-transform: none;
    margin-top: 1.5em;
}

h2:first-child,
h3:first-child {
    margin-top: 0;
}

p.ingress {
    font-weight: 400;
    font-size: clamp(1.25rem, 1.214rem + 0.152vw, 1.375rem);
    line-height: 1.4;
}

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

/* ---------- Padding x space ---------- */

.padding-x-space {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 768px) {
    .padding-x-space {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1400px) {
    .padding-x-space {
        padding-left: calc(50% - 580px);
        padding-right: calc(50% - 580px);
    }
}

@media (min-width: 1700px) {
    .padding-x-space {
        padding-left: calc(50% - 750px);
        padding-right: calc(50% - 750px);
    }
}

/* ---------- Padding y space ---------- */

.padding-y-space {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 1200px) {
    .padding-y-space {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

@media (min-width: 1700px) {
    .padding-y-space {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}

/* ---------- BS grid ---------- */

.row {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
}

.row > * {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
}

@media screen and (min-width: 768px) {

    .row {
        margin-left: -2rem;
        margin-right: -2rem;
    }

    .row > * {
        padding-right: 2rem;
        padding-left: 2rem;
    }
}

/* ---------- Big screens ---------- */

@media screen and (min-width: 2400px) {

    .page-wrap-container {
        max-width: 1920px;
        margin: 0 auto;
        box-shadow: 0 0 100px rgba(0,0,0,0.1)
    }
}

/* ---------- Button ---------- */

a.btn, button.btn {
    display: inline-block;
    font-size: 1rem;
    background-color: var(--sesab-red);
    padding: 1em 1.5em;
    color: #FFF;
    font-weight: 500;
    transition: all ease 0.2s;
    border: none;
    border-radius: 2rem;
    line-height: 1.2;
}

a.btn:hover,
a.btn:focus,
a.btn:focus-visible,
a.btn:active {
    text-decoration: none;
    background-color: var(--dark-gray);
    color: #FFFFFF;
}

a.btn:focus-visible {
    outline: 3px dotted var(--offblack);
    outline-offset: 3px;
}

a.btn-white {
    background-color: #FFFFFF;
    color: var(--sesab-red);
}

/* ---------- Header section ---------- */

.section-header {
    margin: 0 0 clamp(1.5rem, 1.068rem + 1.818vw, 3rem);
}

.section-header h2 {
    font-size: clamp(2rem, 1.856rem + 0.606vw, 2.5rem);
    margin-bottom: 0;
    color: var(--sesab-red);
}

.section-header p {
    font-size: 1.125rem;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 + p {
    margin-top: 0.5em;
}

/*
-----------------------------------------
NAVBAR
-----------------------------------------
*/

.navbar {
    padding-top: 0;
    padding-bottom: 0;
    top: 0;
    height: var(--top-margin-sm);
    z-index: 1200;
    background-color: #FFFFFF;
    box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 992px) {
    .navbar {
        height: var(--top-margin-lg);
    }
}

@media screen and (min-width: 1700px) {
    .navbar {
        height: var(--top-margin-xl);
    }
}

/* ---------- Logo ---------- */

.navbar-brand {
    display: flex;
    padding-bottom: 0;
}

.navbar-brand img {
    height: 39px;
}

@media screen and (min-width: 992px) {

    .navbar-brand img {
        height: 48px;
    }
}

@media screen and (min-width: 1700px) {

    .navbar-brand img {
        height: 64px;
    }
}


/* ---------- Mobile menu button ---------- */

.navbar-toggler:focus {
    outline: none;
}

.navbar .navbar-toggler {
    width: 28px;
    height: 22px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
    padding: 0;
    box-shadow: none !important;
    border: none;
    border-radius: 0;
    z-index: 1032;
}

.navbar .navbar-toggler:focus-visible {
    transition: none;
    outline: 3px dotted var(--offblack);
    outline-offset: 3px;
}

.navbar-toggler span {
    display: block;
    position: absolute;
    height: 3px;
    width: 28px;
    background: var(--offblack);
    opacity: 1;
    left: 0;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    border: none;
    outline: none;
    box-shadow: none;
}

.navbar-toggler span:nth-child(1) {
    top: 0;
}

.navbar-toggler span:nth-child(2) {
    top: 10px;
}

.navbar-toggler span:nth-child(3) {
    top: 20px;
}

@media screen and (min-width: 1200px) {

    .navbar-toggler {
        display: none;
    }
}

/* ----- Offcanvas mobile menu ----- */

#mobile-menu {
    padding: 0;
    border: none;
}

#mobile-menu .nav-item {
    border-bottom: 1px solid #D4D4D6;
}

#mobile-menu .nav-link {
    color: var(--offblack);
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

#mobile-menu button.nav-link {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    border: none;
    background-color: transparent;
    text-align: left;
}

#mobile-menu .nav-link:hover {
    text-decoration: none;
}

#mobile-menu .nav-link svg {
    font-size: 1.25rem;
    color: var(--sesab-red)
}

#mobile-menu .offcanvas-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Mobile menu close button and back button */

#mobile-menu .close-button {
    cursor: pointer;
    font-size: 36px;
    padding: 0 0.25rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    color: var(--offblack);
    height: 30px;
    width: 30px;
    margin-right: 0.75rem;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background-color: transparent;
}

#mobile-menu .top-nav-item {
    height: 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#mobile-menu .top-nav-item span {
    display: block;
    position: absolute;
    height: 3px;
    width: 30px;
    background: var(--offblack);
    opacity: 1;
    right: 0;
}

#mobile-menu .top-nav-item span:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
}

#mobile-menu .top-nav-item span:nth-child(2) {
    top: 15px;
    transform: rotate(-45deg);
}

#mobile-menu .back-button {
    justify-content: flex-start;
    font-size: 30px;
    margin-left: 1rem;
    color: var(--offblack);
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background-color: transparent;
    padding: 0;
}

/* Mobile submenu */

#mobile-menu .offcanvas-submenu-collapse {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100%;
    overflow-x: hidden;
    transition: all 0.4s ease-in-out;
    transform: translateX(100%);
    z-index: 10;
    padding: 0;
    opacity: 1;
    visibility: hidden;
    background-color: #FFFFFF;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.075);
}

#mobile-menu .offcanvas-submenu-collapse.open {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

#mobile-menu .offcanvas-submenu-collapse .top-nav-item {
    justify-content: space-between;
}

#mobile-menu .submenu {
    list-style: none;
    padding-left: 0;
}

#mobile-menu .offcanvas-submenu-collapse .submenu:first-child .nav-item:first-child .nav-link {
    border-top: none;
}

#mobile-menu .nav-link.submenu-title {
    font-weight: 600;
}

#mobile-menu .submenu-submenu {
    list-style: none;
    padding-left: 0;
}

#mobile-menu .main-menu-mobile .submenu-submenu .nav-item .nav-link:not(.submenu-title) {
    white-space: normal;
    font-weight: 300;
}

#mobile-menu .submenu-submenu .nav-item:first-child .nav-link {
    border-top: none;
}

#mobile-menu .submenu-submenu > .nav-item:last-child {
    border-bottom: 1px solid #D4D4D6;
}

#mobile-menu .submenu .submenu .nav-item:last-child .nav-link {
    border-bottom: none;
}

#mobile-menu .submenu-item .nav-link {
    text-transform: none;
}

/* ---------- Desktop menu ---------- */

#desktopMenu {
    display: none;
}

@media screen and (min-width: 1200px) {

    #desktopMenu {
        display: flex;
    }
}

#main-menu {
    height: 100%;
    flex-direction: row;
    align-items: flex-end;
}

#main-menu .nav-item {
    position: relative;
}

#main-menu .nav-link {
    font-weight: 500;
    color: var(--offblack);
    padding: 1.25rem 0;
    transition: all ease 0.15s;
    font-size: 1.125rem;
}

#main-menu .nav-link:hover {
    color: var(--sesab-red);
    text-decoration: underline;
}

#main-menu .nav-link:focus-visible {
    transition: none;
}

#main-menu > .nav-item > .nav-link {
    margin-right: 1.5rem;
}

#main-menu > .nav-item:last-child > .nav-link {
    margin-right: 0;
}

@media screen and (min-width: 1700px) {

    #main-menu > .nav-item > .nav-link {
        margin-right: 2rem;
    }
}

/* Desktop dropdown menus */

#main-menu .dropdown-toggle::after {
    display: none;
}

#main-menu .dropdown:hover .dropdown-menu {
    display: block;
}

#main-menu .dropdown-menu:not(.mega-menu) {
    padding: 0;
}

#main-menu .dropdown-menu {
    background-color: var(--light-gray);
    border: none;
    border-radius: 0;
    position: absolute;
    top: 100%;
    min-width: 260px;
    border: none;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);
}

#main-menu .dropdown-menu .nav-link {
    color: var(--offblack);
    font-size: 0.875rem;
    font-weight: 400;
    padding: 1rem;
    border-bottom: 2px solid #FFFFFF;
    line-height: 1;
}

#main-menu .dropdown-menu .nav-link:hover {
    text-decoration: none;
    background-color: #FFFFFF;
}

#main-menu .dropdown-menu .nav-item:last-child .nav-link {
    border-bottom: none;
}

/* Mega menu */

#main-menu .dropdown.mega:hover .mega-menu {
    display: block;
}

#main-menu .nav-item.mega {
    position: unset;
}

#main-menu .mega-menu {
    right: 0;
    left: 0;
    padding-top: 3rem;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
}

#main-menu .mega-menu-column-wrap {
    display: flex;
    justify-content: flex-start;
    margin: 0 -1.25rem;
}

#main-menu .mega-menu .nav-item {
    flex: 0 0 calc(33.33% - 2.5rem);
    margin: 0 1.25rem;
    padding-bottom: 2.5rem;
    break-inside: avoid;
}

#main-menu .mega-menu ul {
    list-style: none;
    padding: 0;
}

#main-menu .mega-menu .nav-item {
    padding-bottom: 2.5rem;
    break-inside: avoid;
}

#main-menu .mega-menu .nav-link {
    padding: 0;
    border: none;
}

#main-menu .mega-menu .nav-link h3 {
    color: var(--offblack);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0;
    margin-bottom: 20px;
    border: none;
    position: relative;
    display: flex;
    justify-content: space-between;
}

#main-menu .mega-menu .nav-link:hover h3 {
    color: var(--sesab-red);
}

#main-menu .mega-menu .nav-link:hover {
    background-color: transparent;
}

#main-menu .mega-menu .nav-link h3::after {
    content: '';  
    height: 2px;
    position: absolute;
    right: 0;
    left: 0;
    bottom: -10px;
    background-color: var(--sesab-red);
}

.mega-menu p.nav-link-description {
    font-size: 1rem;
    position: relative;
}

@media screen and (min-width: 1700px) {

    #main-menu .mega-menu {
        padding-top: 4rem;
        padding-bottom: 1rem;
    }

    #main-menu .mega-menu-column-wrap {
        margin: 0 -1.5rem;
    }

    #main-menu .mega-menu .nav-item {
        flex-basis: calc(33.33% - 3rem);
        margin: 0 1.5rem;
    }

    #main-menu .mega-menu .nav-item {
        padding-bottom: 3rem;
    }    
}

/*
-----------------------------------------
SUBPAGE MENU
-----------------------------------------
*/

.subpage-menu-wrap {
    order: 2;
    background-color: var(--light-gray);
    margin-top: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-bottom: -3rem;

}

@media screen and (min-width: 992px) {

    .subpage-menu-wrap {
        order: 1;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        background: transparent;
    }

    .subpage-article {
        order: 2;
    }
}

.subpage-menu {
    list-style: none;
    padding: 0;
    margin:0;
    border-top: 1px solid var(--medium-gray);
}

@media screen and (min-width: 992px) {

    .subpage-menu {
        max-width: 418px;
        padding-right: 1rem;
        border-top: none;
    }
}

h3.subpage-menu-header {
    color: var(--sesab-red);
    font-size: clamp(1.25rem, 1.178rem + 0.303vw, 1.5rem);
    text-transform: uppercase;
    font-weight: 800;
    margin: 0.5em 0 0;
    width: 100%;
    margin: 0 0 1rem;
}

.subpage-menu .nav-link {
    font-weight: 500;
    color: var(--offblack);
    border-bottom: 1px solid var(--medium-gray);
    padding: 0.75rem 0;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
}

.subpage-menu .nav-link.active {
    color: var(--sesab-red);
}

.subpage-menu .nav-link:hover {
    color: var(--sesab-red);
    text-decoration: none;
}

/*
-----------------------------------------
FOOTER
-----------------------------------------
*/

footer {
    background-color: var(--dark-gray);
    background-image: url(/media/aqzlfizc/sesab-logo-background.svg);
    background-position: bottom right;
    background-size: 100% auto;
    background-repeat: no-repeat;
}

@media screen and (min-width: 768px) {

    footer {
        background-size: 50% auto;
    }    
}

footer a,
footer a:link,
footer a:active,
footer a:hover,
footer p,
footer li {
    color: #FFFFFF;
}

footer h3 {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 1rem;
    margin-bottom: 0.75rem;
}

footer li {
    margin-bottom: 0.5em;
}

footer ul {
    margin: 0;
}

footer li svg {
    width: 1.5em;
}

/* ------- Footer top row ------- */

.footer-main-row > div {
    flex: 0 0 100%;
    margin-bottom: 2rem;
}

@media screen and (min-width: 768px) {

    .footer-main-row {
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .footer-main-row > div {
        flex-basis: calc(33.33% - 2rem);
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media screen and (min-width: 1200px) {

    .footer-main-row > div {
        margin-bottom: 3rem;
    }
}

footer .sm-icons {
    margin-top: 1.25rem;
}
footer .sm-icons a {
    display: inline-block;
}

footer .sm-icons svg {
    font-size: 2rem;
}

/* ------- Footer offices ------- */

.footer-offices-row > div {
    flex: 0 0 100%;
    margin-bottom: 2rem;
}

@media screen and (min-width: 768px) {

    .footer-offices-row {
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .footer-offices-row > div {
        flex-basis: calc(33.33% - 2rem);
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media screen and (min-width: 1200px) {

    .footer-offices-row > div {
        flex-basis: calc(20% - 2rem);
        margin-left: 1rem;
        margin-right: 1rem;
        margin-bottom: 3rem;
    }
}

footer li.footer-phone-number {
    margin-top: 0.75em;
}

/* ------- Footer bottom row ------- */

.footer-bottom-row {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 1rem;
    justify-content: space-between;
}

.footer-bottom-row div:first-child {
    padding-right: 2rem;
}

.footer-bottom-row div:first-child p {
    margin-bottom: 0.5em;
}

/*
-----------------------------------------
STARTSIDA
-----------------------------------------
*/

/* ------- Hero section ------- */

.hero-mobile {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-desktop {
    position: relative;
}

@media screen and (min-width: 768px) {

    .hero-desktop {
        min-height: calc(100vh - 64px);
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
    }
}

@media screen and (min-width: 992px) {

    .hero-desktop {
        min-height: calc(100vh - 110px);
    }
}

@media screen and (min-width: 1700px) {

    .hero-desktop {
        min-height: calc(100vh - 128px);
    }
}

@media screen and (min-width: 1920px) {

    .hero-desktop {
        min-height: 820px;
    }
}

/* Hero video */

.hero-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.8)
}

/* Hero caption */

.hero-caption {
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-caption h1 {
    font-size: clamp(2.5rem, 2.068rem + 1.818vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    color: var(--offblack);
}

.hero-caption h1::after {
    content: '';
    background-color: var(--sesab-red);
    width: 224px;
    height: 4px;
    position: absolute;
    bottom: -1rem;
    left: calc(50% - 112px)
}

.hero-caption p {
    font-size: clamp(1.125rem, 1.053rem + 0.303vw, 1.375rem);
    line-height: 1.2;
    margin-bottom: 0;
}

.hero-caption p + .hero-buttons {
    margin-top: 1.25rem;
}

.hero-caption a.btn {
    padding: 1em 2.5em;
    display: block;
    min-width: 200px;
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
}

.hero-caption a.btn:not(:first-child) {
    margin-top: 0.75em;
}

@media screen and (min-width: 768px) {

    .hero-caption {
        margin: 0;
        text-align: left;
        width: 75%;
    }

    .hero-caption p + .hero-buttons {
        margin-top: 2rem;
    }

    .hero-caption h1::after {
        left: 0;
    }    

    .hero-caption a.btn {
        margin: 0;
        display: inline-block;
    }

    .hero-caption a.btn:not(:first-child) {
        margin-top: 0;
        margin-left: 0.5em;
    }
}

@media screen and (min-width: 992px) {

    .hero-caption {
        margin: 0;
        text-align: left;
        width: 50%;
        padding-right: 3rem;
    }
}

@media screen and (min-width: 1700px) {

    .hero-caption {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Hero caption on video */

video + .hero-caption {
    background-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: #FFFFFF;
}

video + .hero-caption h1 {
    color: #FFFFFF;
}

video + .hero-caption p {
    color: #FFFFFF;
}

/* ------- Our services ------- */

.our-services-categories {
    margin-top: 1.5rem;
    justify-content: center;
}

.our-services-categories > div {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 1.75rem;
}

.our-services-categories > div:last-child {
    margin-bottom: 0;
}

@media screen and (min-width: 992px) {

    .our-services-categories {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .our-services-categories > div {
        flex: 0 0 calc(33.33% - 1rem);
        margin: 0 0.5rem;
        max-width: 100%;
    }
}

@media screen and (min-width: 1400px) {

    .our-services-categories {
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .our-services-categories > div {
        flex: 0 0 calc(33.33% - 2rem);
        margin: 0 1rem;
    }
}

.category-image img {
    display: none;
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    object-position: center;
}

@media screen and (min-width: 992px) {

    .category-image img {
        display: block;
    }    
}

.category-services-wrap {
    position: relative;
    margin-left: auto;
    margin-right: auto
}

@media screen and (min-width: 992px) {

    .category-services-wrap {
        width: calc(100% - 2rem);
        margin-top: calc(-70px - 1rem);
    }    
}

@media screen and (min-width: 1200px) {

    .category-services-wrap {
        width: calc(100% - 4rem);
        margin-top: calc(-84px - 2rem);
    }    
}
@media screen and (min-width: 1700px) {

    .category-services-wrap {
        width: calc(100% - 4rem);
        margin-top: calc(-84px - 2rem);
    }    
}

.category-icon {
    background-color: #FFFFFF;
    height: 96px;
    width: 96px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items:center;
    position: relative;
    z-index: 2;
}

.category-icon-img-wrap {
    background-color: var(--sesab-red);
    height: 88px;
    width: 88px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items:center;
    padding: 15px;
}

.category-icon-backdrop {
    position: absolute;
    z-index: 0;
    background-color: #FFFFFF;
    height: 96px;
    width: 96px;
    top: 0;
    border-radius: 50%;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
}

@media screen and (min-width: 1700px) {

    .category-icon {
        height: 110px;
        width: 110px;
    }

    .category-icon-img-wrap {
        height: 102px;
        width: 102px;
    }

    .category-icon-backdrop {
        height: 110px;
        width: 110px;
    }
}

.category-services-white-box {
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 4px;
    padding: 1rem;
    position: relative;
    z-index: 1;
    margin-top: -16px;
}

@media screen and (min-width: 992px) {

    .category-services-white-box {
        margin-top: -26px;
    }    
}

.our-services-categories h3 {
    color: var(--sesab-red);
    font-size: clamp(1.375rem, 1.339rem + 0.152vw, 1.5rem);
    text-transform: uppercase;
    font-weight: 800;
    margin: 0.5em 0 0;
    text-align: center;
    width: 100%;
    text-align: center;
}

@media screen and (min-width: 992px) {

    .our-services-categories h3 {
        margin-top: 1em;
    }
}

.category-services {
    width: 100%;
}

@media screen and (min-width: 992px) {

    .category-services.show,
    .category-services:not(.show) {
        display: block;
    }    
}

a.category-service,
button.category-service {
    align-items: center;
    background-color: var(--light-gray);
    padding: 0.75rem 1rem;
    color: var(--offblack);
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 1.125rem;    
}

.category-services > a.category-service:first-child {
    margin-top: 1.5rem;
}

a.category-service:last-child {
    margin-bottom: 0;
}

.inner-accordion-collapse a.category-service:last-child {
    margin-bottom: 4px;
}

a.category-service:hover {
    background-color: #FFFFFF;
    text-decoration: none;
}

a.category-service svg {
    color: var(--sesab-red);
    margin-right: 0.375em;
    font-size: 1.25rem;
}

button.category-service {
    margin-bottom: 0;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

button.category-service svg {
    margin-right: 0.75em;
    font-size: 1.125rem;   
}

button.category-service:hover {
    color: var(--sesab-red);
}

button.category-service.collapsed .btn-see-more,
button.category-service:not(.collapsed) .btn-see-less {
    display: flex;
}

button.category-service:not(.collapsed) .btn-see-more,
button.category-service.collapsed .btn-see-less {
    display: none;
}

a.category-see-all {
    display: flex;
}

/* Show inner accordion on mobile screens */

.inner-accordion-collapse.collapse:not(.show) {
    display: block;
}

.inner-accordion-button {
    display: none;
}

@media screen and (min-width: 992px) {

    .inner-accordion-collapse.collapse:not(.show) {
        display: none;
    }    

    .inner-accordion-button {
        display: flex;
    }    
}

/* ------- Sesab banner ------- */

.external-banner-section > div {
    flex: 0 0 100%;
}

@media screen and (min-width: 768px) {

    .external-banner-section > .external-banner-headline {
        flex-basis: 50%;
        padding-right: 2rem;
    }    

    .external-banner-section > .external-banner-text {
        flex-basis: 50%;
    }    
}

@media screen and (min-width: 992px) {

    .external-banner-section > .external-banner-headline {
        flex-basis: 380px;
    }    

    .external-banner-section > .external-banner-text {
        flex-basis: calc(100% - 380px);
    }    
}

@media screen and (min-width: 1400px) {

    .external-banner-section > .external-banner-headline {
        flex-basis: 364px;
    }    

    .external-banner-section > .external-banner-text {
        flex-basis: calc(100% - 364px);
    }    
}

@media screen and (min-width: 1700px) {

    .external-banner-section > .external-banner-headline {
        flex-basis: 534px;
    }    

    .external-banner-section > .external-banner-text {
        flex-basis: calc(100% - 534px);
    }    
}

.external-banner-headline .section-header {
    margin-bottom: 1.25rem;
}

.external-banner-text {
    padding-top: 1.5rem;
    border-top: 6px solid var(--sesab-red);
}

.external-banner-text p.ingress {
    margin-bottom: 0;
}

.external-banner-text a.btn {
    margin-top: 1.25rem;
}

@media screen and (min-width: 768px) {

    .external-banner-headline .section-header {
        margin-bottom: 1.25rem;
    }
    
    .external-banner-text {
        padding-top: 0;
        padding-left: 1.5rem;
        border-top: none;
        border-left: 6px solid var(--sesab-red);
    }  
}

/* ------- Quote ------- */

.quote-section .section-header {
    margin-bottom: clamp(1.5rem, 0.611rem + 1.852vw, 2rem);
}

.quote-wrap {
    max-width: 992px;
    margin: 0 auto;
}

.quote-wrap > div {
    flex: 0 0 100%;
}

@media screen and (min-width: 576px) {

    .quote-wrap > div:first-child {
        flex-basis: 200px;
    }

    .quote-wrap > div {
        flex-basis: calc(100% - 200px - 1rem);
    }    
}

@media screen and (min-width: 1200px) {

    .quote-wrap > div:first-child {
        flex-basis: 240px;
    }    

    .quote-wrap > div:last-child {
        flex-basis: calc(100% - 240px - 2.5rem);
    }    
}

.quote-image img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

@media screen and (min-width: 576px) {

    .quote-image img {
        aspect-ratio: 1 / 1;
    }
}

.quote-text-wrap {
    border-top: 6px solid var(--sesab-red);
    padding: 1rem 0 0;
    margin-top: 1.5rem;
}

@media screen and (min-width: 576px) {

    .quote-text-wrap {
        border-top: 0;
        margin-top: 0;
        border-left: 6px solid var(--sesab-red);
        padding: 0 0 0 1rem;
    }
}

.quote-text {
    font-size: 1.375rem;
}

.quote-name-wrap {
    margin-left: 48px;
    position: relative;
}

.quote-name {
    position: relative;
    margin-bottom: 0;
    font-weight: 700;
    font-size: 1.375rem;
}

.quote-name::before {
    content: '';
    height: 4px;
    width: 36px;
    position: absolute;
    left: -48px;
    background-color: var(--sesab-red);
    top: 0.625em;
}

.quote-title {
    font-size: 1.375rem;
}

/* ------- Our awards ------- */

.our-awards-section img {
    display: block;
    max-height: 150px;
}
.our-awards-section div {
    padding: 0 0.5rem;
}

@media screen and (min-width: 768px) {

    .our-awards-section div {
        padding: 0 1rem;
    }
}

/* ------- Banners ------- */

.banner {
    position: relative;
    background-color: var(--light-gray);
}

@media screen and (min-width: 768px) {

    .banner {
        min-height: 28vw;
        position: relative;
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
        background-color: #FFFFFF;
    }
}

@media screen and (min-width: 1920px) {

    .banner {
        min-height: 538px;
    }
}

@media (min-width: 1200px) {
    .banner {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

@media (min-width: 1400px) {
    .banner {
        padding-left: calc(50% - 580px);
        padding-right: calc(50% - 580px);
    }
}

@media (min-width: 1700px) {
    .banner {
        padding-left: calc(50% - 750px);
        padding-right: calc(50% - 750px);
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}

.banner-caption {
    background-color: #FFFFFF;
    padding: 1rem;
    position: relative;
    width: calc(100% - 2rem);
    margin: -90px 1rem 1rem;
    z-index: 2;
}

@media screen and (min-width: 768px) {

    .banner-caption {
        width: calc(50% - 1rem);
        margin: 0;
        padding: 1.5rem;
    }
}

@media screen and (min-width: 1200px) {

    .banner-caption {
        padding: 2.25rem;
    }
}

@media screen and (min-width: 1700px) {

    .banner-caption {
        width: calc(50% - 1.5rem);
        padding: 3rem;
    }
}

.banner-caption h2 {
    color: var(--sesab-red);
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: 0;
}

.banner-caption h2 strong {
    font-weight: 800;
}

.banner-caption h2 + p {
    margin-top: 0.5rem;
}

.banner-caption p {
    font-size: 1.125rem;
    margin-bottom: 0;
}

.banner-caption .banner-btn-wrap {
    width: 100%;
    border-top: 2px solid var(--medium-gray);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.banner-caption .banner-btn-wrap a.btn {
    margin-top: 0.5rem;
}

.banner-caption .banner-btn-wrap a.btn:has(+ a.btn) {
    margin-right: 0.5rem;
}

@media screen and (min-width: 768px) {

    .banner-caption h2 {
        font-size: clamp(2.5rem, 1.676rem + 1.717vw, 3.5rem);
    }
}

/* Banner with background */

.banner-text-background-text {
    z-index: 2;
    background-color: #FFFFFF;
}

/* Image */

.banner-text-background-background {
    background-size: cover;
    background-position: center right;
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
}

@media screen and (min-width: 576px) {

    .banner-text-background-background {
        aspect-ratio: 3 / 2;
    }
}

@media screen and (min-width: 768px) {

    .banner-text-background-background {
        aspect-ratio: unset;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
    }

    .banner-text-background .banner-caption {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
}

/* Video */

.banner-text-background video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Banner with text and image */

@media screen and (min-width: 768) {

    .banner-text-image {
        justify-content: space-between;
    }
}

.banner-text-image-image {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.banner-text-image-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center left;;
}

@media screen and (min-width: 576px) {

    .banner-text-image-image {
        aspect-ratio: 3 / 2;
    }
}

@media screen and (min-width: 768px) {

    .banner-text-image-image {
        flex-basis: calc(50% - 1rem);
    }

    .banner-text-image .banner-caption {
        padding: 0;
    }
}

@media screen and (min-width: 768px) {

    .banner-text-image-image {
        flex-basis: calc(50% - 1.5rem);
    }
}

/* ------- News setion ------- */

a.news-item-start-wrap {
    margin-left: auto;
    margin-right: auto;
    max-width: 992px;
    text-decoration: none;
}

a.news-item-start-wrap > div {
    flex: 0 0 100%;
}

@media screen and (min-width: 576px) {

    a.news-item-start-wrap > div {
        flex-basis: 50%;        
    }
}

.news-item-start-image img {
    height: 100%;
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;    
    object-position: center;
    border-radius: 4px 4px 0 0;
}

.news-item-start-text {
    padding: clamp(1rem, 0.712rem + 1.212vw, 2rem);
    border-radius: 0 0 4px 4px;
}

.news-item-start-text h3 {
    color: var(--offblack);
    font-size: clamp(1.75rem, 1.678rem + 0.303vw, 2rem);
}

.news-item-start-text p {
    font-size: 1.125rem;
    margin-bottom: 0;
}

.news-item-start-text svg {
    color: var(--sesab-red);
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

@media screen and (min-width: 576px) {

    .news-item-start-image img {
        border-radius: 4px 0 0 4px;
    }
    
    .news-item-start-text {
        border-radius: 0 4px 4px 0;
    }
}

/* ------- Contact-buttons ------- */

.contact-buttons-wrap {
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons-section {
    border-top: 2px solid var(--medium-gray);
}

.contact-button {
    flex-basis: 100%;
    flex-grow: 0;
    flex-shrink: 0;
    background-color: #F2F3F4;
    border-radius: 84px;
    padding: 1rem;
    align-items: center;
    margin: 0 0 1rem;
}

.contact-button:last-child {
    margin-bottom: 0;
}

@media screen and (min-width: 400px) {
    
    .contact-button {
        flex-basis: 380px;
        margin: 0 0.5rem 1rem;
    }
}

@media screen and (min-width: 768px) {
    
    .contact-buttons-section {
        border-top: none;
    }

    .contact-buttons-wrap {
        border-top: 2px solid var(--medium-gray);
    }
}

@media screen and (min-width: 1200px) {
    
    .contact-buttons-wrap {
        flex-wrap: nowrap;
    }

    .contact-button {
        margin: 0 1rem;
    }
}

@media screen and (min-width: 1700px) {
    
    .contact-button {
        margin: 0 1rem;
    }
}

.contact-button:hover {
    text-decoration: none;
}

.contact-button-image {
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 80px;
}

.contact-button-image img {
    height: 100%;
    width: 100%;
}

.contact-button-img {
    display: block;
}

.contact-button-img-hover {
    display: none;
}

.contact-button:hover .contact-button-img {
    display: none;
}

.contact-button:hover .contact-button-img-hover {
    display: block;
}

.contact-button-text {
    padding-left: 1rem;
}

.contact-button-text h3 {
    color: var(--offblack);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0;
    font-size: 1.125rem;
}

.contact-button-text p {
    font-size: 1.125rem;
}

.contact-buttons-subpage {
    border-top: none;
}

/*
-----------------------------------------
SUBPAGE
-----------------------------------------
*/

.subpage-header-section h1 {
    font-weight: 700;
    font-size: clamp(2.25rem, 2.034rem + 0.909vw, 3rem);
}

p.header-ingress {
    max-width: 70ch;
    margin-top: 0.75em;
    font-size: clamp(1.125rem, 1.089rem + 0.152vw, 1.25rem);
    border-left: 6px solid var(--sesab-red);
    padding-left: 1em;
    margin-bottom: 0;
    max-width: 80ch;
}

@media screen and (min-width: 768px) {

    p.header-ingress {
        font-size: clamp(1.125rem, 1.022rem + 0.215vw, 1.25rem);
    }
}

.banner-section-subpage .banner {
    padding-top: 0;
}

/* ------ Certificates ------- */

.article-certificates {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.article-certificates > a {
    flex: 0 0 200px;
    display: block;
    margin: 0 0.5rem 1rem;
    border: 1px solid #CCCCCC;
}


/*
-----------------------------------------
SERVICES MAIN PAGE
-----------------------------------------
*/

.services-boxes > a {
    flex: 0 0 100%;    
    margin-bottom: 1.5rem;
}

@media screen and (min-width: 576px) {

    .services-boxes {
        margin-right: -1rem;
        margin-left: -1rem;
    }

    .services-boxes > a {
        flex-basis: calc(50% - 2rem);
        margin: 0 1rem 2rem;
    }    
}

@media screen and (min-width: 992px) {

    .services-boxes > a {
        flex-basis: calc(33.33% - 2rem);    
        margin: 0 1rem 2rem;
    }    
}

a.service-box {
    position: relative;
}

a.service-box:hover {
    text-decoration: none;
}

a.service-box .service-box-image {
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

a.service-box .service-box-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: scale ease 0.5s;
    scale: 1;
}

a.service-box:hover .service-box-image img {
    scale: 1.2;
}

.service-box > div {
    flex: 0 0 100%;
}

.service-box-text {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
}

.service-box-text h3 {
    padding: 1rem;
    margin: 0;
    background-color:rgba(255,255,255,0.85);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: var(--offblack);    
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-box-text h3 svg {
    color: var(--sesab-red)
}

/*
-----------------------------------------
SERVICE PAGE
-----------------------------------------
*/

.services-header > div {
    flex: 0 0 100%;
}

.services-header > div:first-child {
    aspect-ratio: 3 / 2;
}    

@media screen and (min-width: 768px) {

    .services-header > div {
        flex-basis: 50%;
    }    
}

@media screen and (min-width: 992px) {

    .services-header > div:first-child {
        flex-basis: 40%;
        width: 40%;
    }    

    .services-header > div:last-child {
        flex-basis: 60%;
        width: 60%
    }    
}

.services-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-header-text p.top-headline {
    font-size: clamp(1.375rem, 1.339rem + 0.152vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 0;
}

.services-header-text h1 {
    font-size: clamp(2.25rem, 1.89rem + 1.515vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5em;
}

.services-header-text p.header-ingress {
    margin-top: 0;
    max-width: 80ch;
}

@media screen and (min-width: 768px) {

    .services-header-text p.top-headline {
        font-size: clamp(1.375rem, 1.272rem + 0.215vw, 1.5rem);
    }

    .services-header-text h1 {
        font-size: clamp(2.25rem, 1.22rem + 2.146vw, 3.5rem);
    }
}

/*
-----------------------------------------
CAREER PAGE
-----------------------------------------
*/

.job-vacancy-box {
    margin-top: 1.5rem;
    border-radius: 4px;
}

.job-vacancy-box:first-child {
    margin-top: 2.5rem;
}

.job-vacancy-box:hover {
    text-decoration: none;
}

p.job-vacancy-date {
    margin-bottom: 0.25em;
    font-size: 0.875rem;
}

.job-vacancy-box h3 {
    font-weight: 600;
    margin-top: 0;
    color: var(--sesab-red);
}

.job-vacancy-link {
    color: var(--offblack);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0;
    font-size: 1.125rem;
}

.job-vacancy-link svg {
    transition: transform ease 0.2s;
}

.job-vacancy-box:hover .job-vacancy-link svg {
    transform: translateX(8px);
}

/*
-----------------------------------------
NEWS PAGE
-----------------------------------------
*/

.news-date {
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1;
}

.news-box {
    border-bottom: 2px solid var(--medium-gray);
    padding: 1rem 0;
}

.news-box h3 {
    font-size: clamp(1.375rem, 1.303rem + 0.303vw, 1.625rem);
    margin: 0.25em 0 0.125em;
}

.news-image + p {
    margin-top: 1rem;
}

.news-article-image {
    margin: 1rem 0;
}

/* ------- Pagination ------- */

.pagination {
    margin-top: 1.5rem;
}

.page-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: var(--offblack);
    font-size: 1.125rem;
    padding: 0.125em 0.5em;
    margin-right: 1em;
    transition: none;
    font-weight: 600;
}

.page-link:focus,
.page-link:active,
.page-link:hover {
    background-color: transparent;
    text-decoration: none;
    color: var(--sesab-red);
    border-bottom: 3px solid var(--sesab-red);
    box-shadow: none;
    outline: none;
}

.active > .page-link,
.page-link.active {
    background-color: transparent;
    color: var(--sesab-red);
    border-bottom: 3px solid var(--sesab-red);
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* ------- News post ------- */

.news-post .news-date {
    margin-bottom: 0.5rem;
}

/*
-----------------------------------------
OFFER PAGE
-----------------------------------------
*/

.offer-page-form-section {
    padding-bottom: 3rem;
}

@media (min-width: 992px) {
    .offer-page-form-section {
        padding-top: 3rem;
    }
}

@media (min-width: 1200px) {
    .offer-page-form-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

@media (min-width: 1700px) {
    .offer-page-form-section {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}

.offer-page-form-section > div {
    flex-basis: 100%;
}

@media screen and (min-width: 992px) {

    .offer-page-form-section > div {
        flex-basis: 50%;
    }
}

.offer-page-form-image {
    flex-grow: 1;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
}

@media screen and (min-width: 768px) {

    .offer-page-form-image {
        margin-left: -2rem;
        margin-right: -2rem;
    }
}

@media screen and (min-width: 992px) {

    .offer-page-form-image {
        margin: 0;
        border-right: 1px solid var(--medium-gray);
        padding-right: 1rem;
    }    

    .offer-page-form{
        border-left: 1px solid var(--medium-gray);
        padding-left: 1rem;
    }    
}

@media screen and (min-width: 1200px) {

    .offer-page-form-image {
        padding-right: 2rem;
    }    

    .offer-page-form{
        padding-left: 2rem;
    }    
}

@media screen and (min-width: 1700px) {

    .offer-page-form-image {
        padding-right: 3rem;
    }    

    .offer-page-form{
        padding-left: 3rem;
    }    
}

.offer-page-form-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
}

/* ------- Formulär -------- */

.offer-page-form .umbraco-forms-form {
    width: 100%;
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
    margin-top: -2rem;
}

.umbraco-forms-submitmessage {
    display: block;
    width: 100%;
    background-color: #FFFFFF;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
}

@media screen and (min-width: 992px) {

    .offer-page-form .umbraco-forms-form {
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .umbraco-forms-submitmessage {
        box-shadow: none;
    }
}

.offer-page-form .col-md-6 {
    flex: 0 0 100%;
}

.offer-page-form .col-md-12 {
    flex: 0 0 100%;
}

@media screen and (min-width: 576px) {

    .offer-page-form .col-md-6 {
        flex-basis: 50%;
    }
}

@media screen and (min-width: 992px) {

    .offer-page-form .col-md-6 {
        flex-basis: 100%;
    }
}

@media screen and (min-width: 1200px) {

    .offer-page-form .col-md-6 {
        flex-basis: 50%;
    }
}

.offer-page-form h2 {
    color: var(--sesab-red);
    margin: 0 0 0.75em;
    width: 100%;
    font-size: clamp(2rem, 1.856rem + 0.606vw, 2.5rem);    
}

.offer-page-form .row-fluid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.offer-page-form .col-md-6 {
    padding: 0 0.5rem;
}

.offer-page-form .col-md-12 {
    padding: 0 0.5rem;
}

.offer-page-form input,
.offer-page-form textarea {
    border: none;
    background-color: #F2F3F4;
    border-radius: 0;
    padding: 0.75em;
    width: 100%;
    margin-bottom: 1rem;
}

.offer-page-form input:focus,
.offer-page-form input:active,
.offer-page-form textarea:focus,
.offer-page-form textarea:active {
    outline: 1px solid var(--dark-gray);
    border: none;
}

.offer-page-form label {
    margin-bottom: 0.25em;
}

.umbraco-forms-hidden {
    display: none;
}

/* Check box */

.offer-page-form input[type="checkbox"] {
    position: absolute;
    top: 0.13em;
    left: 0;
    appearance: none;
    border: 1px solid var(--medium-gray);
    background-color: #FFFFFF;
    margin: 0;
    font: inherit;
    width: 25px;
    height: 25px;
    padding: 0 !important;
    border-radius: 4px;
}

.offer-page-form input[type="checkbox"]:active,
.offer-page-form input[type="checkbox"]:focus {
    outline: none;
    border: 1px solid var(--dark-gray);
}

.offer-page-form input[type="checkbox"]::before {
    content: "";
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: inset 1em 1em #FFFFFF;
    transform: scale(0);
    transform-origin: center;
    clip-path: polygon(37% 65%,85% 12%,95% 21%,38% 81%,0 48%,8% 39%);
}

.offer-page-form input[type="checkbox"]:checked {
    background-color: var(--sesab-red);
    border-color: var(--sesab-red);
}
  
.offer-page-form input[type="checkbox"]:checked::before {
    transform: scale(0.75);
}

.offer-page-form .dataconsent {
    position: relative;
    z-index:2;
}

.offer-page-form .dataconsent > .umbraco-forms-field-wrapper {
    position: absolute;
    left: 0;
    right: 0;
}

.offer-page-form .dataconsent > label {
    display: none;
}

.offer-page-form .dataconsentlink {
    padding-left: 38px;
    margin-top: 4px;
    margin-left: 0;
}

.offer-page-form .dataconsent label {
    padding-left: 38px;
}

.offer-page-form .dataconsentlink a {
    text-decoration: underline;
}

/* Submit */

.umbraco-forms-navigation {
    margin-top: 1.25rem;
}

.offer-page-form .btn {
    display: inline-block;
    font-size: 1rem;
    background-color: var(--sesab-red);
    padding: 1em 1.5em;
    color: #FFF;
    font-weight: 500;
    transition: all ease 0.2s;
    border: none;
    border-radius: 2rem;
    line-height: 1.2;    
    width: fit-content;
    margin: 0;
}

.offer-page-form .btn:hover,
.offer-page-form .btn:active,
.offer-page-form .btn:focus {
    text-decoration: none;
    background-color: var(--dark-gray);
    color: #FFFFFF;
}

/* Error */

.umbraco-forms-field {
    position: relative;
}

.field-validation-error {
    position: absolute;
    right: 0;
    bottom: 100%;
    color: var(--sesab-red);
    font-weight: 600;
    max-width: 70%;
    text-align: right;
    transform: translateY(1.5em);
}

.dataconsent .field-validation-error {
    position: relative;
    display: block;
    margin-top: -1.5em;
    margin-left: 38px;
    max-width: 100%;
    text-align: left;
    transform: none;    
}

.dataconsent:has(.field-validation-error) .umbraco-forms-field-wrapper {
    position: relative;
}

/*
-----------------------------------------
CONTACT PAGE
-----------------------------------------
*/

/* ------- Header ------- */

a.header-anchor-link {
    color: var(--offblack);
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: 500;
    font-size: clamp(1.125rem, 1.091rem + 0.149vw, 1.25rem);
    width: fit-content;
}

a.header-anchor-link:first-of-type {
    margin-top: 1rem;
}

a.header-anchor-link svg {
    margin-right: 0.5em;
    transition: all 0.15s ease;
    color: var(--sesab-red);
}

a.header-anchor-link:hover {
    color: var(--sesab-red);
    text-decoration: none;
}

/* ------- Offices ------- */

.contact-page-offices .section-header {
    margin-bottom: 1rem;
}

.contact-page-offices .section-header h2 {
    color: var(--offblack)
}

.contact-page-office {
    padding-top: 1rem;
    margin-bottom: 1rem;
    border-top: 1px solid var(--medium-gray);
}

.contact-page-office h3 {
    color: var(--offblack);
    margin-bottom: 0.25rem;
}

.contact-page-office ul {
    margin-bottom: 0;
}

.contact-page-office li {
    line-height: 1.8;
}

.contact-page-office svg {
    color:var(--sesab-red);
    width: 1.5em;
}

.contact-page-office a,
.contact-page-office a:link {
    color: var(--offblack);
}

.contact-page-office a:hover {
    color: var(--sesab-red);
}

@media screen and (min-width: 1700px) {

    .offices-list {
        column-gap: 3rem;
    }

    .contact-page-office {
        break-inside: avoid;
    }
}


/* ------- Contact form ------- */

.contact-page-offer-form-wrap > div {
    flex: 0 0 100%;
}

.contact-page-offer-form-wrap > div:first-child {
    order: 2;
    margin-top: 2rem;
}

@media screen and (min-width: 992px) {

    .contact-page-offer-form-wrap > div {
        flex-basis: calc(50% - 0.5rem);
    }

    .contact-page-offer-form-wrap > div:first-child {
        order: unset;
        margin-top: 0;
    }
}

@media screen and (min-width: 1200px) {

    .contact-page-offer-form-wrap > div {
        flex-basis: calc(50% - 1rem);
    }
}

@media screen and (min-width: 1700px) {

    .contact-page-offer-form-wrap > div {
        flex-basis: calc(50% - 1.5rem);
    }
}

/* Modify look of form to fit contact page*/

.contact-page-offer-form h2 {
    display: none;
}

.contact-page-offer-form .umbraco-forms-form{
    padding: 0;
    box-shadow: none;
    margin-top: 0;
    background-color: transparent;
}

.contact-page-offer-form input,
.contact-page-offer-form textarea {
    background-color: #FFFFFF;
    border:1px solid #CCCCCC;
}

.contact-page-offer-form input:focus,
.contact-page-offer-form input:active,
.contact-page-offer-form textarea:focus,
.contact-page-offer-form textarea:active {
    border: 1px solid var(--dark-gray);
    outline: none;
}


/*
-----------------------------------------
404 PAGE
-----------------------------------------
*/

.fourofour-content h1 {
    font-size: clamp(4rem,3.536rem + 2.319vw,6rem);
    margin-bottom: 0;
}

.fourofour-content p {
    font-size: clamp(1.5rem,1.384rem + 0.58vw,2rem);
}

.fourofour-content a.btn {
    margin-top: 1em;
}