@import url('https://fonts.googleapis.com/css2?family=Platypi:ital,wght@0,300..800;1,300..800&display=swap');

/***********************************************/
/* CSS @imports must be at the top of the file */
/* Add them above this section                 */
/***********************************************/

/*****************************************/
/* Start your style declarations here    */
/*****************************************/

/* Font size overrides */

/* Variables*/
* {
    --mobile-fontscaling-factor: 0.45;
    --mobile-marginscaling-factor: 0.5;
    --mobile-spacingscaling-factor: 0.90;
    --tablet-fontscaling-factor: 0.50;
    --tablet-marginscaling-factor: 0.8;
    --tablet-spacingscaling-factor: 0.9;
    --laptop-fontscaling-factor: 0.70;
    --laptop-marginscaling-factor: 0.75;
    --laptop-spacingscaling-factor: 0.95;
}
/* Mobile devices */
@media (max-width: 599px) {
    body {
        line-height: 1.5;
    }
    body .visma-module-wrapper {
        --title-xxlarge-size: calc(3.25rem / 0.621);
        --title-xlarge-size: calc(2.5rem / 0.621);
        --title-large-size: calc(2rem / 0.621);
        --title-medium-size: calc(1.75rem / 0.621);
        --title-small-size: calc(1.35rem / 0.621);
        --title-xsmall-size: calc(1.25rem / 0.621);
        
        /*Calculation done to take into acount the html font scaling */
        --text-large-size:  calc(1.125rem / 0.621);
        --text-medium-size: calc(1rem / 0.621);
        --text-small-size: calc(0.875rem / 0.621);
        --body-font-size: calc(0.875rem / 0.621);
        --title-dropdown-line-height: calc(1.5 * var(--mobile-fontscaling-factor));;
        --block-padding-vertical: calc(var(--space-128) * var(--mobile-marginscaling-factor));
        --slim-block-padding-vertical: calc(var(--space-96) * var(--mobile-marginscaling-factor));
        --medium-block-padding-vertical: calc(var(--space-96) * var(--mobile-marginscaling-factor));
        --radius-5: calc(0.5rem * var(--tablet-spacingscaling-factor));
        --radius-6: calc(0.6rem * var(--tablet-spacingscaling-factor));
        --radius-8: calc(0.8rem * var(--tablet-spacingscaling-factor));
        --radius-10: calc(1rem * var(--tablet-spacingscaling-factor));
        --radius-12: calc(1.2rem * var(--tablet-spacingscaling-factor));
        --radius-16: calc(1.6rem * var(--tablet-spacingscaling-factor));
        --radius-24: calc(2.4rem * var(--tablet-spacingscaling-factor));
        --radius-32: calc(3.2rem * var(--tablet-spacingscaling-factor));
        --radius-small: calc(var(--radius-8) * var(--tablet-spacingscaling-factor));
        --radius-medium: calc(var(--radius-24) * var(--tablet-spacingscaling-factor));
        --radius-large: calc(var(--radius-32) * var(--tablet-spacingscaling-factor));
        --space-4: calc(0.4rem * var(--tablet-spacingscaling-factor));
        --space-6: calc(0.6rem * var(--tablet-spacingscaling-factor));
        --space-8: calc(0.8rem * var(--tablet-spacingscaling-factor));
        --space-12: calc(1.2rem * var(--tablet-spacingscaling-factor));
        --space-16: calc(1.6rem * var(--tablet-spacingscaling-factor));
        --space-24: calc(2.4rem * var(--tablet-spacingscaling-factor));
        --space-32: calc(3.2rem * var(--tablet-spacingscaling-factor));
        --space-48: calc(4.8rem * var(--tablet-spacingscaling-factor));
        --space-64: calc(6.4rem * var(--tablet-spacingscaling-factor));
        --space-96: calc(9.6rem * var(--tablet-spacingscaling-factor));
        --space-128: calc(12.8rem * var(--tablet-spacingscaling-factor));
        --space-256: calc(25.6rem * var(--tablet-spacingscaling-factor));
        /* Mobile specific overrides for lineheight */
        --title-xxlarge-line-height: 1.25 !important;
        --title-xlarge-line-height: 1.20 !important;
        --title-large-line-height: 1.20 !important;
        --title-medium-line-height: 1.5 !important;
        --title-small-line-height: 1.2 !important;
        --title-xsmall-line-height: 1.2 !important;
        --title-dropdown-line-height: 1.5 !important;
  
    }
}
/* Tablet and laptop devices */
@media (min-width: 600px) and (max-width: 1599px) {
    body {
        line-height: 1.5;
    }
    body .visma-module-wrapper {
        /*
        --title-xxlarge-size: calc(3.75rem / 0.621);
        --title-xlarge-size: calc(3.5rem / 0.621);
        --title-large-size: calc(2.5rem / 0.621);
        --title-medium-size: calc(1.5rem / 0.621);
        --title-small-size: calc(1.25rem / 0.621);
        --title-xsmall-size: calc(1.25rem / 0.621);
        */        
       
        --title-xxlarge-size: 7.5rem;
      
        --title-xlarge-size: 6.25rem;
        --title-large-size: 4.5rem;
        --title-medium-size: 3.84rem;
        --title-small-size: 2.56rem;
        --title-xsmall-size: 1.92rem;
      
        /*Calculation done to take into acount the html font scaling */
        --text-large-size:  calc(1.125rem / 0.621);
        --text-medium-size: calc(1rem / 0.621);
        --text-small-size: calc(0.875rem / 0.621);
        --body-font-size: calc(0.875rem / 0.621);
        --title-dropdown-line-height: calc(1.5 * var(--mobile-fontscaling-factor));;
        --block-padding-vertical: calc(var(--space-128) * var(--mobile-marginscaling-factor));
        --slim-block-padding-vertical: calc(var(--space-96) * var(--mobile-marginscaling-factor));
        --medium-block-padding-vertical: calc(var(--space-96) * var(--mobile-marginscaling-factor));
        --radius-5: calc(0.5rem * var(--mobile-spacingscaling-factor));
        --radius-6: calc(0.6rem * var(--mobile-spacingscaling-factor));
        --radius-8: calc(0.8rem * var(--mobile-spacingscaling-factor));
        --radius-10: calc(1rem * var(--mobile-spacingscaling-factor));
        --radius-12: calc(1.2rem * var(--mobile-spacingscaling-factor));
        --radius-16: calc(1.6rem * var(--mobile-spacingscaling-factor));
        --radius-24: calc(2.4rem * var(--mobile-spacingscaling-factor));
        --radius-32: calc(3.2rem * var(--mobile-spacingscaling-factor));
        --radius-small: calc(var(--radius-8) * var(--mobile-spacingscaling-factor));
        --radius-medium: calc(var(--radius-24) * var(--mobile-spacingscaling-factor));
        --radius-large: calc(var(--radius-32) * var(--mobile-spacingscaling-factor));
        --space-4: calc(0.4rem * var(--mobile-spacingscaling-factor));
        --space-6: calc(0.6rem * var(--mobile-spacingscaling-factor));
        --space-8: calc(0.8rem * var(--mobile-spacingscaling-factor));
        --space-12: calc(1.2rem * var(--mobile-spacingscaling-factor));
        --space-16: calc(1.6rem * var(--mobile-spacingscaling-factor));
        --space-24: calc(2.4rem * var(--mobile-spacingscaling-factor));
        --space-32: calc(3.2rem * var(--mobile-spacingscaling-factor));
        --space-48: calc(4.8rem * var(--mobile-spacingscaling-factor));
        --space-64: calc(6.4rem * var(--mobile-spacingscaling-factor));
        --space-96: calc(9.6rem * var(--mobile-spacingscaling-factor));
        --space-128: calc(12.8rem * var(--mobile-spacingscaling-factor));
        --space-256: calc(25.6rem * var(--mobile-spacingscaling-factor));
      
        /* Mobile specific overrides for lineheight */
        --title-xxlarge-line-height: 1.15 !important;
      
        --title-xlarge-line-height: 1.15 !important;
        --title-large-line-height: 1.20 !important;
        --title-medium-line-height: 1.35 !important;
        --title-small-line-height: 1.5 !important;
        --title-xsmall-line-height: 1.5 !important;
      
        --title-dropdown-line-height: 1.5 !important;
    }
}
/* End of font overrides */

/* Helper classes */
.padding-0-top {
  padding-top: 0 !important;
}
.padding-0-bottom {
  padding-bottom: 0 !important;
}
.padding-xlarge-top {
  padding-top: calc(var(--block-padding-vertical)* 2) !important;
}
.padding-xlarge-bottom {
  padding-bottom: calc(var(--block-padding-vertical)* 2) !important;
}
.padding-medium-top {
  padding-top: calc((var(--block-padding-vertical) / 4) * 3) !important;
}
.padding-medium-bottom {
  padding-bottom: calc((var(--block-padding-vertical) / 4) * 3) !important;
}
.padding-small-top {
  padding-top: calc(var(--block-padding-vertical) / 2) !important;
}
.padding-small-bottom {
  padding-bottom: calc(var(--block-padding-vertical) / 2) !important;
}
.padding-xsmall-top {
  padding-top: calc((var(--block-padding-vertical) / 4) * 1) !important;
}
.padding-xsmall-bottom {
  padding-bottom: calc((var(--block-padding-vertical) / 4) * 1) !important;
}

.overlap-bottom {
    position: relative
}
.overlap-bottom .visma-module {
    z-index: 2
}
.overlap-bottom:after {
    bottom: 0;
    content: "";
    height: calc(var(--block-padding-vertical)*2);
    left: 0;
    position: absolute;
    width: 100%;
	  background-color: #FFFFFF;
}
.overlap-bottom.-overlap-half:after {
	  height: 50%;
}
.overlap-bottom.-tolight:after {
    background-color: var(--background-light-1)
}
.overlap-bottom.-todark:after {
    background-color: var(--background-dark-1)
}


/* Checkmark icons */

/* Custom bullets */
.two-column-module ul, .text-block__richtext ul, .form-header-container ul:not(.inputs-list), .tab__texts ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 2em;
}
.two-column-module ul li, .text-block__richtext ul li, .form-header-container ul:not(.inputs-list) li, .tab__texts ul li {
    background-image: url(https://146968189.fs1.hubspotusercontent-eu1.net/hubfs/146968189/raw_assets/public/product-pages-theme-nordic-peak/assets/icon-checkmark--large-purple.svg);
    background-repeat: no-repeat;
    background-position: 0 1px;
    background-size: 25px;
    padding-left: 2em;
    margin-bottom: 10px;
}

.tab__texts ul  {
    padding-left: 0;
}
.tab__texts ul li  {
    list-style-type: none;
    padding-left: 0;
    margin-top: var(--space-12);
}
.tab__texts ul li {
    background-image: url(https://146968189.fs1.hubspotusercontent-eu1.net/hubfs/146968189/raw_assets/public/product-pages-theme-nordic-peak/assets/icon-checkmark--large-purple.svg);
    background-repeat: no-repeat;
    background-position: 0 1px;
    background-size: 20px;
    padding-left: 2em;
    margin-bottom: 16px;
}


/* Form restyle consent text */
.legal-consent-container {
	  font-size: 14px;
	  line-height: 1.5;
}

/* Title accent */

.title-accent {
  font-family: "Platypi", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: italic;
}


/* Columns icons variant */
.columns-icons .columns__image-container {
	  display: flex;
		width: 96px;
		height: 96px;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		flex-shrink: 0;
		aspect-ratio: 1/1;  
		border-radius: 18px;
		border: 3px solid #000;

		background: #D8C5E6;
}

/* Image module border radius */
.two-column-block .two-column-block__image img {
	  border-radius: 10px;
}

/* Override default kicker text color to black */ 
.kicker-text {
	  color: var(--site-text-color);
}


/* ---- Start of menu code ---- */
.header-wrapper {
    /* Apply transition to the filter property */
    transition: filter 0.5s ease, background-color 0.5s ease, background-color 0.5s ease;
    
    /* Hardware acceleration to keep animations smooth */
    backface-visibility: hidden;
    transform: translateZ(0);
}
.header-wrapper {
	  background-color: #ffffff00;
}
.header-wrapper:has(.menu-item__submenu-button[aria-expanded="true"]),
.header-wrapper:has(.search-open-desktop){
	  background-color: #ffffff !important;
	
	  /* Vendor Prefixes for older browser support */
    -webkit-filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.15));
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.15));
	  opacity: 1 !important;
	
}
.header.search-open-desktop .site-search {
	  box-shadow: unset !important;
}


.submenu-button-text {
	  cursor: pointer !important;
}
.menu-item__submenu-button[aria-expanded="true"]) {
	  opacity: 0.1;
}
.header-wrapper .un-list.submenu-list {
	  background-color: #ffffff;
}

.header-wrapper .submenu-column-wrapper {
	  padding-top: 0 !important;
}

@media (min-width: 1200px) {
	  .menu-item__submenu-button[aria-expanded="true"] {
				background-color: transparent !important;
		}
}
@media screen and (max-width: 1199px) {
		#hs_cos_wrapper_site_logo img {
				height: 29px;
				max-width: unset;
		}
}
@media screen and (min-width: 1200px) {
		#hs_cos_wrapper_site_logo img {
				height: 42px;
				max-width: unset;
		}
}


/* Our solutions tab */
.submenu-column:has(span[class^="column"]) {
	  display: flex;
		padding: 32px;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		flex: 1 0 0;
		align-self: stretch;
	
	  border-radius: 8px;
		border: 1px solid rgba(0, 0, 0, 0.20);
	
	  position: relative;
	
	  padding-right: 64px !important;

	}

.submenu-column-wrapper:has(.column-etjanster) .submenu-column-header {
	  font-size: var(--title-small-size);
    line-height: var(--title-small-line-height);
    letter-spacing: var(--title-small-letter-spacing);
	  text-transform: none;
	
	  margin-bottom: 0;
	  font-weight: 600;
}
.submenu-column:has(.column-etjanster)::before,
.submenu-column:has(.column-projektstyrning)::before,
.submenu-column:has(.column-fildelning)::before {
	  content: "";
	  position: static;
	  height: 96px;
	  width: 96px;
	
	  background-size: cover;
	  background-repeat: no-repeat;
}
.submenu-column:has(.column-etjanster)::before {
	  background-image: url(https://146968189.fs1.hubspotusercontent-eu1.net/hubfs/146968189/raw_assets/public/product-pages-theme-nordic-peak/assets/menu%20assets/menu-icon--etjanster.svg);	  
}
.submenu-column:has(.column-projektstyrning)::before {
	  background-image: url(https://146968189.fs1.hubspotusercontent-eu1.net/hubfs/146968189/raw_assets/public/product-pages-theme-nordic-peak/assets/menu%20assets/menu-icon--projektstyrning.svg);	  
}
.submenu-column:has(.column-fildelning)::before {
	  background-image: url(https://146968189.fs1.hubspotusercontent-eu1.net/hubfs/146968189/raw_assets/public/product-pages-theme-nordic-peak/assets/menu%20assets/menu-icon--fildelning.svg);	  
}

.submenu-column:has(.column-etjanster),
.submenu-column:has(.column-projektstyrning), 
.submenu-column:has(.column-fildelning) {
	  position: relative;
}
.submenu-column:has(.column-etjanster)::after,
.submenu-column:has(.column-projektstyrning)::after, 
.submenu-column:has(.column-fildelning)::after {
	  content: "";
	  position: absolute;
	  height: 20px;
	  width: 23px;
	  
    right: 32px;
    bottom: 32px;
	  background-size: cover;
	  background-repeat: no-repeat;

    background-image: url(https://146968189.fs1.hubspotusercontent-eu1.net/hubfs/146968189/raw_assets/public/product-pages-theme-nordic-peak/assets/menu%20assets/menu-tile--arrow-right.svg);
}

/* Base state to ensure smooth animation */
.submenu-column:has(.-tile-link) {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.submenu-column:has(.-tile-link):hover {
  transform: scale(1.03); 
  
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.submenu-item:has(.-tile-link), .-tile-link {
	  position: absolute;
	  left: 0;
	  top: 0;
	  opacity: 0;
	  color: transparent;
	  width: 100%;
	  height: 100%;
	  pointer-events: cursor;
}
.submenu-column-wrapper:not(:has(.column-etjanster)) .submenu-column-header {
	  font-family: Figtree;
		font-size: var(--text-small-size);
		font-style: normal;
		font-weight: 400;
		line-height: 20px; /* 125% */
		text-transform: uppercase;
}
.submenu-column-wrapper:not(:has(.column-etjanster)) .submenu-column:nth-child(1) .submenu-item .submenu-item__link,
.submenu-column-wrapper:not(:has(.column-etjanster)) .submenu-column:nth-child(2) .submenu-item .submenu-item__link {
		font-size: var(--text-large-size);
		font-weight: 600;
		line-height: 141%; /* 125% */
}
.submenu-column-wrapper:not(:has(.column-etjanster)) .submenu-column:nth-child(3) .submenu-item .submenu-item__link,
.submenu-column-wrapper:not(:has(.column-etjanster)) .submenu-column:nth-child(4) .submenu-item .submenu-item__link {
		font-size: var(--text-medium-size);
		font-weight: 600;
		line-height: 150%; /* 125% */
}
.submenu-column-wrapper:not(:has(.column-etjanster)) .no-column-headline {
    opacity: 0 !important;
    pointer-events: none !important;
}


.submenu-item__link:has(.-popup) {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    gap: 8px;
}

.submenu-column-wrapper .-popup {
    display: inline-flex;
    padding: 2px 6px;
    flex-shrink: 0;
    
    margin-top: 0; 
    align-self: flex-start; 
    
    line-height: 1 !important;
    
    /* Existing styles */
    border-radius: 9.172px;
    background: #F88E2B;
    font-size: 13.003px;
}


/* Hide work in progress items visually */
.header-wrapper .menu-item:has(.hide-menu-item) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    speak: none;
}



/* Mobile adjustments */
@media (max-width: 1199px) {
	  .menu-item__submenu-button, .menu-item__link {
			  padding-left: 0 !important;
	  }
	  .submenu-button-text, .menu-item__link.menu-item-style {
			  font-size: var(--text-large-size);
			  font-weight: 600;
	  }
	  .menu-item__submenu-button[aria-expanded="true"] {
			  padding-bottom: 32px;
	  }
	  .submenu-column-wrapper {
				padding-left: 0 !important;
			  padding-right: 0 !important;
		}
	  .header-wrapper .un-list.submenu-list {
			  width: 100%;
	  }
}


/* ---- End of menu code ---- */




/* Pagespecfic modifications */
.section--fildelning-product-showcase-headline-section .text-block section {
    align-self: flex-end;
}
.section--fildelning-product-showcase-headline-section .text-block h2 {
    margin-bottom: 0 !important;
}
	
	
	
/* Module class injections */

.custom--wordmap-text-layout .text-block.-two-column-layout {
  display: flex;
  flex-direction: column;
  gap: 32px; /* Vertical spacing for mobile */
}

.custom--wordmap-text-layout .text-block.-two-column-layout > section {
	max-width: unset;
}
@media (min-width: 1050px) {
  .custom--wordmap-text-layout .text-block.-two-column-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px; /* Horizontal spacing between the two sections */
  }

  /* Section 1: Takes only the space it needs (the H2) */
  .custom--wordmap-text-layout .text-block.-two-column-layout > section:first-of-type {
    flex: 0 0 auto;
    /* Keeps the headline from pushing the right column off-screen if it's long */
    max-width: 60%; 
  }

  /* Section 2: Fills the remaining width */
  .custom--wordmap-text-layout .text-block.-two-column-layout > section:last-of-type {
    flex: 1;
		align-self: flex-end;
		font-size: var(--text-large-size);
  }
}

/* Container for the H2 to handle line spacing */
.custom--wordmap-text-layout .h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-24) var(--space-24); /* Row gap and Column gap */
  line-height: 1.4;
  text-transform: lowercase; /* Matches the screenshot style */
}

/* Base state for the boxes */
.custom--wordmap-text-layout .h2 .box {
  position: relative;
  display: inline-block;
  padding: 8px 24px;
  border: 2px solid #000;
  border-radius: 6px;
  background-color: #D8C5E6;
  color: #000;
  font-weight: 400;
  /* Only the box itself gets the smooth transition */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  cursor: pointer;
}
@media (max-width: 1049px) {
	  .custom--wordmap-text-layout .h2 {
			gap: calc(var(--space-24) * 0.8) calc(var(--space-24) * 0.9); /* Row gap and Column gap */
			line-height: calc(1.4 * 0.9);
		}
	  .custom--wordmap-text-layout .h2 .box {
			padding: 5px 17px;
			font-size: calc(var(--title-large-size) * 0.8);
		}
}

/* Invisible Hit Area / Anchor */
.custom--wordmap-text-layout .h2 .box::after {
  content: "";
  position: absolute;
  
  /* Initial state: 5% expansion (using -2% on each side for total ~5% area) */
  top: -2%;
  left: -2%;
  right: -2%;
  bottom: -2%;
  
  /* Critical: No transition for the hit-area expansion */
  transition: none !important;
  pointer-events: all;
}

/* Ensure the orange box keeps the same hover logic */
.custom--wordmap-text-layout .h2 .box.-orange {
  background-color: #F88E2B;
  text-transform: uppercase;
  
}

/* When the box is hovered, instantly expand the ::after "safety zone" */
.custom--wordmap-text-layout .h2 .box:hover::after {
  top: -16px;
  left: -20px;
  right: -20px;
  bottom: -50px; /* Deep bottom to catch the shadow and upward move */
}


/* Updated Hover State for the Box visuals */
.custom--wordmap-text-layout .h2 .box:hover {
  transform: translateY(-8px) rotate(-3deg);
  box-shadow: 0 16px 0 0 rgba(0, 0, 0, 1);
}