/* ---------------------------------------------------------------------------------------------

	Theme Name: WorkDigital Foundation Child
	Version: 0.1
	Description: Child theme for WorkDigital Foundation theme
	Author: WorkDigital
	Author URI: https://workdigital.dk
    Template: wd-foundation

/* --------------------------------------------------------------------------------------------- */

:root body{
    --theme-primary-color: #0A1F3D;
    --theme-header-topper-color: #283B57;
}



/* 
    ——————————
    Styling til UI-elementer
    ——————————
*/

.btn {
    background: var(--theme-primary-color);
    text-decoration: none;
    display: inline-block;
    padding: 12px 30px;
    color: var(--theme-bg-color);
    text-align: center;
    font-weight: var(--bold);
}

.btn-secondary {
    background: var(--theme-bg-color);
    color: var(--theme-primary-color);
}

.color-accent,
.color-accent-hover:hover,
.color-accent-hover:focus,
:root .has-accent-color,
.has-drop-cap:not(:focus)::first-letter,
.wp-block-button.is-style-outline,
a {
    color: var(--accent-color);
}

ul,
ol {
    margin: 2.5rem 0 3rem 2ch;
}

li {
    margin: 0.5rem 0 0 1.5ch;
}


/* 
    ——————————
    Styling til plugins
    ——————————
*/

/* GUTENSLIDER */

.entry-content .wp-block-eedee-block-gutenslider .eedee-gutenslider-nav {
    z-index: 1;
}

.entry-content .wp-block-eedee-block-gutenslider .eedee-gutenslider-pagination {
    z-index: 1;
}


/* 
    ——————————
    Styling til hero-sektion
    ——————————
*/

.hero-section {
    height: 550px;
    width: 100%;
    position: relative;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.mute-btn {
    position: absolute;
    right: 40px;
    bottom: 40px;
    height: 40px;
    width: 40px;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
}

.mute-btn .muted,
.mute-btn .unmuted {
    fill: #FFFFFF;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--standard-transition);
}

.mute-btn .muted.is-visible,
.mute-btn .unmuted.is-visible {
    opacity: 1;
}

.hero-image-overlay {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.hero-section-inner {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: calc(100% - 8rem);
    max-width: 120rem;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
}

.align-top-left,
.align-middle-left,
.align-bottom-left {
    align-items: flex-start;
    text-align: left;
}

.align-top-left {
    justify-content: flex-start;
}

.align-middle-left {
    justify-content: center;
}

.align-bottom-left {
    justify-content: flex-end;
}

.align-top-center,
.align-middle-center,
.align-bottom-center {
    align-items: center;
    text-align: center;
}

.align-top-center {
    justify-content: flex-start;
}

.align-middle-center {
    justify-content: center;
}

.align-bottom-center {
    justify-content: flex-end;
}

.align-top-right,
.align-middle-right,
.align-bottom-right {
    align-items: flex-end;
    text-align: right;
}

.align-top-right {
    justify-content: flex-start;
}

.align-middle-right {
    justify-content: center;
}

.align-bottom-right {
    justify-content: flex-end;
}

.hero-title {
    margin: 0;
    font-size: var(--huge-font-size);
    color: var(--hero-title-color);
    max-width: 600px;
    margin-bottom: 2rem;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .faux-heading{
    letter-spacing: normal;
}

.hero-text {
    color: var(--hero-text-color);
    max-width: 800px;
}

.hero-title + .cta,
.hero-text + .cta {
    margin-top: 10px;
}

.hero-behind-header {
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.7) 70%);
    position: absolute;
    top: 0;
    left: 0;
    height: calc(var(--header-height) + 132px);
    width: 100%;
}

.hero-to-content-fade {
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 31%, rgba(0,0,0,1) 59%, rgba(0,0,0,1) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    height: 60px;
    width: 100%;
}


/* 
    ——————————
    Styling til site content og tilhørende elementer
    ——————————
*/

#site-content .post-inner {
    padding-top: 0;
}

.content-wrapper {
    display: grid;
    width: 100%;
}

.content-wrapper--has-right-side {
    grid-template-columns: 1fr 360px;
}

.right-side-elements{
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    background: #fcfcfc;
}

.wp-block-column.is-layout-flow > .wp-block-image:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.aligncenter):only-child{
    margin-top: 0;
    margin-bottom: 0;
}

.wp-block-column.is-layout-flow > .wp-block-image:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.aligncenter):first-child{
    margin-top: 0;
}

.wp-block-column.is-layout-flow > .wp-block-image:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.aligncenter):last-child{
    margin-bottom: 0;
}

.wp-block-image figure.alignright{
    margin: 0 0 0 1em;
}

.wp-block-image figure.alignleft{
    margin: 0 1em 0 0;
}


body article .post-inner .entry-content > .elevate:first-child {
    margin-top: -50px;
}

body article .post-inner .entry-content > .elevate {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

body article .post-inner .entry-content > .elevate .wp-block-heading{
    font-weight: normal;
}

@media screen and (min-width: 700px) {
    body article .post-inner .entry-content > .elevate .wp-block-heading{
        margin: 2rem 0;
    }
}

html:not(._) body article .post-inner .entry-content > .elevate .wp-block-heading + .wp-block-image,
html:not(._) body article .post-inner .entry-content > .elevate .wp-block-image + .wp-block-image {
    margin-top: 0;
}

html:not(._) body article .post-inner .entry-content > .elevate .wp-block-image:first-child {
    margin-bottom: 1rem;
}


/* 
    ——————————
    Styling til to-top-btn
    ——————————
*/

.to-top {
    position: fixed;
    right: 40px;
    bottom: 20px;
    height: 50px;
    width: 50px;
    background: #FFFFFF;
    opacity: 0;
    transform: translateX(calc(100% + 100px));
    transition: transform var(--standard-transition);
    transition-property: transform, opacity;
    z-index: 2;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.to-top.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.to-top__icon {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid var(--theme-primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* 
    ——————————
    Styling til 404-side
    ——————————
*/

.error404-content {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.to-front-page-btn {
    color: #FFFFFF;
    padding: 12px 20px;
    border: 3px solid #FFFFFF;
    line-height: 1em;
    transition: all var(--standard-transition);
    transition-property: background-color, color;
    text-decoration: none;
}

.to-front-page-btn:hover {
    background: #FFFFFF;
    color: var(--theme-primary-color);
}


@media screen and (max-width: 999px) {

    .header-topper {
        height: 40px;
    }

    .header-topper-inner {
        width: 100%;
        padding: 0 20px;
    }
    
    .site-header {
        display: none;
    }
    
    .site-header-mobile {
        display: flex;
    }

    .mute-btn {
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 999px) {

    .hero-section-inner {
        padding: 60px 0 120px;
    }
}

@media screen and (max-width: 1300px) {

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 60px;
    }
}

@media screen and (max-width: 767px) {
    
    .hero-section {
        height: 400px;
    }

    .hero-section-inner {
        padding: 60px 0 50px;
        width: calc(100% - 40px);
    }

    .hero-title {
        font-size: var(--large-font-size);
    }

    .usps {
        display: none;
    }

    .footer-inner {
        width: calc(100% - 40px);
    }

    .to-top {
        right: 20px;
    }
}

@media screen and (max-width: 619px) {

    .hero-title {
        font-size: var(--medium-font-size);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Temaopdatering */

body:not(.dark-mode) {
    background-color: #fff;
}

/* Header */

.main-header-inner .main-header-logo-link {
    position: relative;
    top: 15px;
    left: 50px;
}

.main-header-logo-link img {
    max-height: none;
    height: auto;
    width: 80px;
}

.header-topper {
	color: #fff;
    background-color: var(--theme-header-topper-color);
}

.header-topper .header-topper-item a:hover {
	color: var(--accent-color);
}

.header-topper .header-topper-item .wd-icon *:not(rect) {
    fill: #fff;
}

.main-header-nav {
    background: var(--primary-color);
    color: #fff;
}

.main-header-menu .menu-item > a {
	color: white;
}

.main-header-menu .menu-item > a:hover {
	color: #ef9300;
}

.main-header .main-header-inner .wd-icon *:not(rect) {
    fill: #fff;
}

.nav-backdrop {
    height: 100%;
}

/* Content */

.wd-topsektion {
    margin-bottom: 4rem;
}

.wd-topsektion > .wp-block-cover__inner-container {
	margin-top: auto;
	padding: 60px 0;
}

.referencer-link a:hover {
    text-decoration: none;
}

.entry-content .wp-block-heading:is(h2) {
    margin-bottom: 4rem;
}

.entry-content strong {
    font-weight: bold;
}

.entry-content > .elevate {
    margin-top: calc(-4rem - 50px);
    padding: 2.5rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    top: 0;
    position: relative;
    z-index: 1;
    margin-bottom: 4rem;
    color: var(--dark);
}

.entry-content hr.wp-block-separator {
    margin: 4rem auto;
    max-width: var(--small-width);
}

/* WD cards */

.employees-wrapper {
	width: 100%;
    max-width: 100%;
    margin: 0;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 60px 0;
}

.wd-cards:not(.wd-cards--employees) .wd-card {
    display: block;
    transition: var(--slow-transition);
}

.wd-cards:not(.wd-cards--employees) a.wd-card:hover {
    bottom: 0;
}

.wd-cards:not(.wd-cards--employees) .wd-card * {
    transition: inherit;
}

.wd-cards:not(.wd-cards--employees) .wd-card .wd-card-image-wrapper {
    height: 100%;
}

/*
.wd-cards:not(.wd-cards--employees) .wd-card .wd-card-wrapper-wrapper .wd-card-button .wd-button {
    background: transparent;
    border: 3px solid white;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}
*/

.wd-cards:not(.wd-cards--employees) .wd-card .wd-card-content-wrapper .wd-card-title {
    background: transparent;
    border: 3px solid white;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 11px 20px;
    color: var(--btn-text-color);
    font-size: var(--body-font-size);
    font-weight: var(--bold);
}

.wd-cards:not(.wd-cards--employees) .wd-card .wd-card-content-wrapper {
    position: relative;
    top: -80px;
    justify-content: center;
}

.wd-cards:not(.wd-cards--employees) .wd-card .wd-card-content-wrapper .wd-card-button .wd-button {
    background: transparent;
    border: 3px solid white;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.wd-cards:not(.wd-cards--employees) .wd-card:hover .wd-card-image-wrapper img {
    transform: scale(1.1);
}

.wd-cards:not(.wd-cards--employees) .wd-card:hover > .wd-card-content-wrapper .wd-card-title {
    background-color: white;
    color: var(--text-color);
}

/*
.wd-cards-wrapper.employees .wd-cards--employees {
	width: calc(100% - 8rem);
    max-width: 120rem;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
}
*/

.wd-cards-wrapper.employees .wd-cards--employees .wd-card {
	position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 1;
}

.wd-cards-wrapper.employees .wd-cards--employees .wd-card .wd-card-image-wrapper img {
	position: relative;
    z-index: 1;
    max-width: 200px;
    aspect-ratio: 4 / 5;
}

.wd-cards-wrapper.employees .wd-cards--employees .wd-card .wd-card-content-wrapper {
	position: relative;
    top: -20px;
    padding: 40px;
    width: 100%;
    background: var(--background-color);
    z-index: 0;
    height: 70%;
    justify-content: flex-start;
    box-shadow: var(--shadowlevel-1);
    display: flex;
    flex-direction: column;
}

.wd-cards-wrapper.employees .wd-cards--employees .wd-card .wd-card-content-wrapper .wd-card-title {
    order: 1;
}

.wd-cards-wrapper.employees .wd-cards--employees .wd-card .wd-card-content-wrapper .wd-card-job-title {
    order: 2;
}

.wd-cards-wrapper.employees .wd-cards--employees .wd-card .wd-card-content-wrapper .wd-card-phone,
.wd-cards-wrapper.employees .wd-cards--employees .wd-card .wd-card-content-wrapper .wd-card-email {
    order: 3;
}

.wd-cards-wrapper.employees .wd-cards--employees .wd-card .wd-card-content-wrapper .wd-card-description {
    order: 4;
}

.wd-cards--employees a:not(.wd-icon) {
    color: var(--accent-color);
    text-decoration: none;
}

.wd-cards--employees .wd-icon *:not(rect) {
    fill: var(--text-color);
}

/* WD Kontakt formular */

.kontaktform-wrapper {
    margin-top: 4rem;
}

.kontaktform-wrapper h2.wp-block-heading {
    margin-bottom: 1rem;
}

.wd-contact-form .wd-contact-form-inner {
    background: transparent;
    box-shadow: none;
}

.wd-contact-form .wd-contact-form-inner .kontaktform-form-row .kontaktform-rows {
    grid-template-columns: 1fr;
}

.wd-contact-form :is( .wd-field-input,
                        input[type="text"],
                        input[type="email"], input[type="tel"], input[type="number"],
                        input[type="url"], textarea, select) {
    background: transparent;
}

.wp-block-button .wp-block-button__link, .btn, .wd-contact-form .wd-form-actions .wd-submit-btn, .button, button {
    background: var(--accent-color);
    text-transform: uppercase;
}

:is(.wp-block-button .wp-block-button__link, .btn, .wd-contact-form .wd-form-actions .wd-submit-btn, .button, button):hover {
    background-color: var(--accent-color-hover);
}

/* Intranet start */

form.post-password-form {
    padding: 8rem 0;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    max-width: var(--small-width);
    margin: 0 auto;
    align-items: center;
    flex-direction: column;
}

.post-password-form p {
    width: 100%;
}

.post-password-form input#pwbox-952 {
    width: 100%;
    padding: 10px;
}

form.post-password-form input[type="submit"] {
    margin: 20px 0 0 auto;
    display: block;
    padding: 20px 40px;
    background-color: var(--accent-color);
    transition: background-color 0.3s ease-in-out;
    text-decoration: none;
    color: var(--btn-text-color);
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    letter-spacing: 1px;
}

form.post-password-form input[type="submit"]:hover{
    background-color: var(--accent-color-hover);
}

/* footer */

footer.site-footer {
	color: rgb(243,244,241);
    margin-top: 4rem;
}

.footer-column .footer-column-list .footer-item--type-image img {
	max-width: 100%;
	height: 100%;
}

footer.site-footer li.footer-item a:hover {
    color: var(--accent-color);
}

/* Media queries */

@media screen and (min-width: 1000px) {
    .entry-content > hr.wp-block-separator {
        margin: 10rem auto;
    }

    .referencer-link a {
        font-size: 40px;
        font-weight: bold;
    }
}

@media screen and (min-width: 1600px) {
    .main-header-inner .main-header-logo-link {
        left: 10rem;
    }
}

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

	body.sometimes-burger .main-header-menu > .menu-item > a:before,
    .sub-menu .current-menu-item::before {
		content: '';
		position: absolute;
		bottom: 0;
		height: 6px;
		width: 100%;
		background: linear-gradient(135deg, var(--accent-color) 0%,
											var(--accent-color) 6px, transparent 6px,
											transparent 12px, var(--accent-color) 12px,
											var(--accent-color) 18px, transparent 18px,
											transparent 24px, var(--accent-color) 24px,
											var(--accent-color) 100%);
		border-radius: 0;
	}

    body.sometimes-burger .main-header-menu .menu-item.menu-item-has-children > a:after {
        content: "";
        display: block;
        width: 0px;
        height: 0px;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 6px solid #fff;
    }

    body.sometimes-burger .main-header-menu ul.sub-menu {
        background: var(--primary-color);
    }

	body.sometimes-burger .main-header-menu > .menu-item.current_page_item > a:before,
    body.sometimes-burger .main-header-menu > .menu-item.current-menu-parent > a:before {
		opacity: 1;
	}

    body.sometimes-burger .main-header-menu > .menu-item.current_page_item:hover > a:before,
    body.sometimes-burger .main-header-menu > .menu-item:hover > a:before,
    body.sometimes-burger .main-header-menu > .menu-item.current-menu-parent:hover > a:before {
        opacity: 0.7;
    }

    body.sometimes-burger .main-header-menu ul.sub-menu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0;
        position: absolute;
        background: var(--primary-color);
        box-shadow: var(--shadowlevel-1);
        border-radius: var(--theme-border-radius);
        transform: translateY(var(--dropdown-menu-distance));
        top: 100%;
        right: 0;
        width: 100%;
        min-width: fit-content;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    body.sometimes-burger .main-header-menu .menu-item.menu-item-has-children:hover > ul.sub-menu {
        display: flex;
    }

        body.sometimes-burger .main-header-menu ul.sub-menu li a {
            color: #fff;
    }

    body.sometimes-burger .main-header-menu ul.sub-menu li a:hover {
        background-color: transparent;
        color: var(--accent-color);
    }

    body.sometimes-burger .main-header-menu ul.sub-menu li:not(:last-child) {
        border-bottom: none;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1500px){
    .employees-wrapper .wdf-width--wide-width {
        width: 100%;
    }
}

@media screen and (min-width: 1001px) and (max-width: 1200px) {
    .wd-cards.wd-cards--employees {
        grid-template-columns: repeat(var(--tablet-columns), 1fr);
    }
}

@media screen and (max-width: 768px) {
    h1, .h1, .hero-title, .wdf-big-headline {
        font-size: 30px;
    }

    .elevate .is-layout-flex {
        flex-direction: column;
        align-content: center;
    }
}

@media screen and (max-width: 400px) {
    h1, .h1, .hero-title, .wdf-big-headline {
        font-size: 22px;
    }
}