/* ==========================================================================
   ABSD FN Header — desktop-only transparent/white header + mega menu
   All classes prefixed with absd-fn-
   ========================================================================== */

.absd-fn-header,
.absd-fn-header * {
	box-sizing: border-box;
}

.absd-fn-header {
/* 	position: absolute; */
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	width: 100%;
	height: auto;
	background-color: transparent;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* White / active state — triggered on hover of a mega-menu parent item */
	.absd-fn-header.absd-fn-header--active {
	max-width:100%;
}
header.with-topbar .absd-fd-header:has(.absd-fn-header.absd-fn-header--active),
.absd-fd-header:has(.absd-fn-header.absd-fn-header--active){
	background-color:#fff !important;
}
.absd-fn-action__icon--hover {
	display:none;
}
.absd-fn-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	max-width: 1440px;
	margin: 0 auto;
	height: auto;
}
.absd-fn-header__inner p:empty {
	display:none;
}

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

.absd-fn-header__logo {
	flex: 0 0 auto;
}

.absd-fn-logo-link {
	display: inline-flex;
	align-items: center;
}

.absd-fn-logo {
	height: 36px;
	width: auto;
	display: none;
}

.absd-fn-logo--normal {
	display: block;
}

.absd-fn-header--active .absd-fn-logo--normal {
	display: none;
}

.absd-fn-header--active .absd-fn-logo--hover {
	display: block;
}

/* ---------- Nav ---------- */

.absd-fn-header__nav {
	flex: 1 1 auto;
}

.absd-fn-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.absd-fn-menu-item {
	position: relative;
}

.absd-fn-menu-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #aeafb3;
	text-decoration: none;
	font-family: inherit;
	font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.179), 16px);
	font-style: normal;
	font-weight: 500;
	line-height: 1.4;
	height: auto;
	position:relative;
	transition: color 0.2s ease;
}
.absd-fn-menu-link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.7px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}
.absd-fn-menu-link:hover,
.absd-fn-menu li.current-menu-item> .absd-fn-menu-link{
	color:#fff;
}
.absd-fn-menu-link:hover:after,
.absd-fn-menu li.current-menu-item> .absd-fn-menu-link:after {
  transform: scaleX(1);
  transform-origin: left;
}

.absd-fn-header--active .absd-fn-menu-link {
	color: #1a1a1a;
}

.absd-fn-header--active .absd-fn-menu-link:hover,
.absd-fn-header--active .absd-fn-menu li.current-menu-item>.absd-fn-menu-link {
	color: #1BB3A9 !important;
}
.absd-fn-header--active .absd-fn-menu-link:after {
	background: #1BB3A9;
}

.absd-fn-menu-caret {
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.absd-fn-menu-item--active .absd-fn-menu-caret {
    transform: rotate(-135deg);
    margin-top: 6px;
}

/* ---------- Actions (Privat / Erhverv) ---------- */

.absd-fn-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.absd-fn-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	height: auto;
	position:relative
}
.absd-fn-action:before {
	content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1.7px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}
.absd-fn-action:hover:before {
	    transform: scaleX(1);
    transform-origin: left;
}

.absd-fn-header--active .absd-fn-action {
	color: #1a1a1a;
}

.absd-fn-action__icon 
	display: none;
}

.absd-fn-action__icon--normal {
	display: block;
}

.absd-fn-header--active .absd-fn-action__icon--normal {
	display: none;
}

.absd-fn-header--active .absd-fn-action__icon--hover {
	display: block;
}
.absd-fn-menu-item.absd-fn-menu-item--has-mega {
	position:static;
}
/* ---------- Mega menu ---------- */
.absd-fn-body-overly .absd-fn-bg-overly {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(43, 43, 43, 0.60);
    z-index: 10;
    pointer-events: none;
    height: 100vh;
    width: 100vw;
    margin: 0;
    max-width: 100%;
}
br {
    display: none;
}
.absd-fn-megamenu {
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    left: 50%;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    max-width: 100%;
    background: #ffffff;
    border-radius: 0 0 24px 24px;
    /* box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12); */
    padding: 32px 80px 40px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-sizing: border-box;
}

.absd-fn-menu-item--active .absd-fn-megamenu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.absd-fn-megamenu__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px 30px;
}

.absd-fn-mega-item {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: #1a1a1a;
	border-radius: 10px;
	overflow: hidden;
}

.absd-fn-mega-item__image {
	display: block;
	width: 100%;
/* 	padding-top: 60%; */
	min-height:200px;
	background-size: cover;
	background-position: center;
	border-radius: 10px;
}

.absd-fn-mega-item__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 0 0;
	font-family: inherit;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	height: auto;
}
.absd-fn-mega-item p:empty {
    display: none;
}
.absd-fn-mega-item p {
    margin: 0px;
}
.absd-fn-mega-item__title {
	color: var(--Black, #2B2B2B);
	font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.179), 16px);
	font-weight: 500;
	line-height: normal;
}

.absd-fn-mega-item__arrow {
	color: #0fb5a3;
}

/* CTA tile — used automatically when a sub-item has both an image
   and a description filled in on the menu item */
.absd-fn-mega-item--cta {
	grid-column: span 2;
	position: relative;
	background: #0fb5a3;
	border-radius: 12px;
	padding: 20px 24px;
	height:fit-content;
	color: #ffffff;
	min-height: 160px;
	justify-content: center;
}

.absd-fn-mega-item--cta .absd-fn-mega-item__image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 100%;
    padding-top: 0;
    background-position: bottom;
    border-radius: 0;
    background-size: 270px;
    background-repeat: no-repeat;
}

.absd-fn-mega-item--cta .absd-fn-mega-item__content {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 0;
	max-width: 60%;
	position: relative;
	z-index: 1;
}

.absd-fn-mega-item--cta .absd-fn-mega-item__title {
	color: #ffffff;
	font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.357), 18px);
	font-weight: 600;
	max-width: 268px;
	line-height: 1.3;
}

.absd-fn-mega-item--cta .absd-fn-mega-item__desc {
	color: #DFF4F3;
	font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.179), 15px);
	font-weight: 400;
	max-width: 265px;
}

.absd-fn-mega-item--cta .absd-fn-mega-item__btn {
	display: inline-flex;
	padding: 14px 20px;
	justify-content: center;
	align-items: center;
	gap: 6px;
	border-radius: 25px;
	background: #fff;
	color:  #1F2A30;
	text-align: center;
	font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.179), 15px);
	font-weight: 600;
	line-height: normal;
	text-decoration: none;
	cursor:pointer;
}

a.absd-fn-mega-item__btn {
	cursor: pointer;
}

a.absd-fn-mega-item__btn:hover {
	opacity: 0.9;
}
.absd-fn-megamenu__inner {
    max-width: 1440px;
    margin: 0 auto;
}
.absd-fn-mega-item__arrow {
    opacity: 0;
    transition: .4s;
    transform: translateX(-100px);
    visibility: hidden;
}
.absd-fn-mega-item:hover .absd-fn-mega-item__arrow {
    opacity: 1;
    transform: translateX(0px);
    visibility: visible;
}

@media (max-width: 1299px) and (min-width: 1200px) {
    .absd-fn-megamenu{
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
}
}
@media (max-width:1200px) {
	.absd-fd-desk-header {
		display:none;
	}
}
/* Note: the mobile / below-breakpoint "display:none" rule is injected
   inline by the plugin using the breakpoint value set in FN Header settings. */
