/*
	Theme Name: Boligskredderiet
	Theme URI: https://boligskredderiet.no
	Description: Boligskredderiet WP-theme
	Version: 1.67
	Author: Michael Urrang
	Author URI: https://comple.no

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

html {
    font-size: 62.5%;
    -webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    font-size: 1.8rem;
    line-height: 1.6;
    font-weight: 400;
	font-family: "Poppins", sans-serif, 'Helvetica Neue', Helvetica;
	color: #101010;
    margin: 0;
    overflow-x: hidden;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

.clear:before,
.clear:after {
    content:'';
    display: table;
}

.clear:after {
    clear: both;
}

.clear {
    *zoom: 1;
}

img {
	max-width: 100%;
    height: auto;
	vertical-align: bottom;
    -webkit-backface-visibility: hidden;
}

a {
	color: #101010;
	text-decoration: none;
}

a:hover {
	color: #101010;
}

a:hover,
a:active,
a:focus {
	outline: 0;
}

input, input:focus, input:active, input:hover {
	outline: 0;
    -webkit-appearance: none;
}

select:focus {
    outline: 0;
}

ul, li {
    padding: 0;
    margin: 0;
}

button, button:hover, button:active, button:focus {
    outline: 0;
    -webkit-appearance: none;
}

.alert {
    position: relative;
    background: #445b4d;
    text-align: center;
    padding: 10px;
    z-index: 200;
}

.marquee-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; /* Hides the text outside the container */
    white-space: nowrap; /* Keeps all text on a single line */
    box-sizing: border-box;
}

.alert a {
    color: #FFF;
}

.alert .fa-solid {
    margin-right: 6px;
}

@keyframes marquee {
  0% {
    transform: translateX(0); /* Start position: at the initial 100% padding-left offset */
  }
  100% {
    transform: translateX(-100%); /* End position: moves left by the full width of the text element */
  }
}

/* Button style: "Med pil" */
.wp-block-button.is-style-has-arrow .wp-block-button__link{
  display: inline-flex;
  align-items: center;
  gap: .5em;
}

/* Selve pila */
.wp-block-button.is-style-has-arrow .wp-block-button__link::after{
  content: "→";
  line-height: 1;
  font-size: 1.05em;
}


/*------------------------------------*\
    THEME STRUCTURE
\*------------------------------------*/

.container {
    position: relative;
    margin: 0 auto;
    padding: 0 20px;
}

.container-s {
    position: relative;
    margin: 0 auto;
    max-width: 800px;
    padding: 0 20px;
}

.container-m {
    position: relative;
    margin: 0 auto;
    max-width: 1100px;
    padding: 0 20px;
}

.container-l {
    position: relative;
    margin: 0 auto;
    max-width: 1440px;
    padding: 0 20px;
}

.has-inline-color {
    padding: 3px 6px;
    border-radius: 4px;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.page-wrapper {
    position: relative;
    z-index: 1;
}

.wp-block-group__inner-container {
    max-width: 1100px !important;
    margin: 0 auto;
}

.wp-block-group.alignwide .wp-block-group__inner-container {
    max-width: none !important;
}

.wp-block-column {
    position: relative;
}

.entry-content .alignfull {
    margin-left  : calc( -100vw / 2 + 100% / 2 );
    margin-right : calc( -100vw / 2 + 100% / 2 );
    max-width    : 100vw;
    padding: 0 2rem;
}

.entry-content .alignwide {
    margin: 0 calc(25% - 25vw);
}

.entry-content .wp-block-image.alignfull {
    padding: 0;
}

.entry-content h1 {
    margin: 0 0 2.5rem;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    margin: 3rem 0 1rem;
}

.entry-content .wp-block-column p a, .entry-content .wp-block-group p a {
    text-decoration: underline;
}

.alignfull img {
    width: 100vw;
}

.wp-block-image figcaption {
    text-align: left !important;
    font-size: 0.9rem;
    background: transparent !important;
}

:where(figure) {
    margin: 0 0 1em;
}

:where(body .is-layout-flow) > * {
    margin-block-start: 1.2rem;
    margin-block-end: 0;
}

:where(body .is-layout-flow) > :first-child:first-child {
    margin-block-start: 0;
}

:where(body .is-layout-flow) > :last-child:last-child {
    margin-block-end: 0;
}

.editor-styles-wrapper :where(body .is-layout-flow) > :first-child:first-child {
    margin-block-start: 0;
}

.editor-styles-wrapper :where(body .is-layout-flow) > :last-child:last-child {
    margin-block-end: 0;
}

/*------------------------------------*\
    HEADER
\*------------------------------------*/

.header {
    position: relative;
}

.header .container {
    max-width: 1440px;
    display: block;
    margin: 0 auto;
    text-align: center;
    padding: 50px 20px;
}

.header .logo {
    z-index: 9999;
    width: 100%;
    text-align: center;
}

.header .logo img {
    height: 100px;
}

.header .opening-hours {
    display: flex;
    justify-content: center;
    column-gap: 40px;
    margin-top: 30px;
}

.header .opening-hours span {
    margin-right: 5px;
}

.header .some {
    position: absolute;
    top: 20px;
    right: 20px;
}

.header .some .fa-brands {
    font-size: 34px;
}

.header .main-menu {
    margin-left: auto;
}

.header .nav-toggle {
    display: none;
}

.search-form {
    display: none;
}

/*------------------------------------*\
    NAVIGATION
\*------------------------------------*/
    
.main-menu {
    background: transparent;
    position: relative;
    padding: 0;
    z-index: 10;
}
    
.main-menu ul li {
    position: relative;
    display: inline-block;
    margin-right: 2rem;
}

.main-menu ul li a {
    font-size: 20px;
}

.main-menu ul li.submenu-heading:hover>.sub-menu {
    display: block !important;
}

.main-menu ul li.submenu-heading {
    margin-right: calc(2rem + 18px);
}

.main-menu ul li.submenu-heading a:after {
    top: 7px;
    right: -15px;
}

.main-menu ul li ul.sub-menu {
    display: none;
    position: absolute;
    padding: 30px;
    text-align: left;
    border-radius: 8px;
    background: #EEE;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    top: calc(33px + 20px);
    min-width: 230px;
}

.main-menu ul li.submenu-heading:hover .sub-menu:before {
    content: '';
    display: block;
    height: 60px;
    position: absolute;
    top: -22px;
    width: 100%;
}
    
.main-menu ul li li {
    display: block;
}

.main-menu ul li.submenu-heading a {
    position: relative;
}

/* Inserts a drop down symbol to the submenu heading */
.main-menu ul li.submenu-heading a:after {
    content: '\002B';
    position: absolute;
    top: -4px;
    right: -18px;
    font-size: 20px;
    font-weight: 400;
    color: #101010;
}

/* Removes the same symbol for child menu items */
.main-menu ul li.submenu-heading ul li a:after {
    display: none;
}

.show {
    display: block !important;
}


/*------------------------------------*\
    PAGE = FRONT PAGE
\*------------------------------------*/

.hero.slider img {
    width: 100%;
    object-fit: cover;
    height: 820px;
}

.kb-splide .splide__pagination, .kb-splide ul.splide__pagination.splide__pagination {
    bottom: -50px !important;
}

.kb-splide .splide__pagination__page.is-active {
    background: #445b4d !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.kb-splide .splide__pagination__page {
    height: 15px !important;
    width: 15px !important;
}

.kb-splide .splide__arrow {
    height: 40px !important;
    width: 40px !important;
}

.kb-splide .splide__arrow svg {
    height: 15px !important;
    width: 15px !important;
}

.wp-block-kadence-advancedgallery .kt-blocks-carousel .splide__arrow--next {
    right: 15px !important;
}

.wp-block-kadence-advancedgallery .kt-blocks-carousel .splide__arrow--prev {
    left: 15px !important;
}

.kb-gallery-ul .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption {
    padding-bottom: 20px !important;
}

.hjem-video {
    position: relative;
}

/*
.hjem-video:before {
    background: url(img/house.svg);
    width: 600px;
    height: 600px;
    background-size: 100%;
    z-index: 1;
    position: absolute;
    bottom: 0;
    opacity: 0.08;
    left: 80px;
}
*/

/*------------------------------------*\
    TEMPLATE PART = CUSTOM
\*------------------------------------*/


/*------------------------------------*\
    SINGLE
\*------------------------------------*/


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

.footer .container {
    max-width: 1600px;
    padding-top: 60px;
    padding-bottom: 80px;
    margin-top: 50px;
}

.footer .logo img {
    width: 200px;
    height: auto;
}

.footer h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.footer a {
    text-decoration: underline;
}

.footer .contact a.mailto {
    display: inline-block;
    border: 1px solid #000;
    border-radius: 40px;
    padding: 10px 20px;
    min-width: 250px;
    text-align: center;
}

.footer .contact a.mailto .fa-solid {
    transition: all 0.3s;
}

.footer .contact a.mailto:hover .fa-solid {
    padding-left: 10px;
}

.footer .some {
    margin-top: 40px;
}

.footer .some .fa-brands {
    font-size: 38px;
}

/*------------------------------------*\
    IMAGES
\*------------------------------------*/


/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

@font-face {
	font-family:'Font-Name';
	src:url('fonts/font-name.eot');
	src:url('fonts/font-name.eot?#iefix') format('embedded-opentype'),
		url('fonts/font-name.woff') format('woff'),
		url('fonts/font-name.ttf') format('truetype'),
		url('fonts/font-name.svg#font-name') format('svg');
    font-weight:normal;
    font-style:normal;
}

p {
    margin: 0 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair", serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    line-height: 1.1;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3rem;
}

h4 {
    font-size: 2rem;
}

h5 {
    font-size: 1.8rem;
}

.title-wrapper h1 {
    margin-top: 0;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (min-width:1200px) {
    
    .main-menu {
        display: block !important;
    }
    
}

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

    .hero.slider img {
        height: 720px;
    }

}

@media only screen and (max-width:1200px) {
    
/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/
    
    .entry-content .alignwide {
        margin: 0;
    }
    
/*------------------------------------*\
    HEADER
\*------------------------------------*/
    
    .header .main-menu {
        display: none;
    }
    
    .header .nav-toggle {
        position: relative;
        margin-left: auto;
        display: block;
        z-index: 9999;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
    }    
    
    .header .nav-toggle-burger:before {
        content: '';
        background: orange;
        height: 3px;
        width: 40px;
        display: block;
        position: relative;
        left: 10px;
        transition: all 0.3s;
    }
    
    .header .nav-toggle-burger:after {
        content: '';
        background: #202020;
        width: 40px;
        height: 3px;
        display: block;
        margin-top: 9px;
        position: relative;
        transition: all 0.3s;
    }
    
    .header .nav-toggle.is-active .nav-toggle-burger:before {
        left: -10px;
    }

    
    .header .nav-toggle.is-active .nav-toggle-burger:after {
        left: 10px;
    }
    
/*------------------------------------*\
    NAVIGATION
\*------------------------------------*/
    
    .main-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        background: #FFF;
        padding: 120px 20px 25px;
    }

    .main-menu ul li {
        display: block;
        list-style: none;
        margin: 0;
    }

    .main-menu ul li a {
        display: block;
        font-size: 1.8rem;
        padding: 5px 0;
    }

    .main-menu ul li.submenu-heading a {
        position: relative;
    }
    
    .main-menu ul li ul.sub-menu {
        display: none;
        position: relative;
        top: 0;
        background: transparent;
        box-shadow: none;
        margin: 1rem;
        padding: 0;
    }
    
    .main-menu ul li li a {
        font-size: 18px;
    }

    /* Inserts a drop down symbol to the submenu heading */
    .main-menu ul li.submenu-heading a:after {
        font-size: 25px;
    }

    /* Removes the same symbol for child menu items */
    .main-menu ul li.submenu-heading ul li a:after {
        display: none;
    }

    .show {
        display: block !important;
    }
    
}

@media only screen and (max-width:992px) {
    
    body {
        font-size: 1.6rem;
    }

    .has-small-font-size {
        font-size: 15px !important;
    }

    .has-large-font-size {
        font-size: 20px !important;
    }

    .has-xlarge-font-size {
        font-size: 24px !important;
    }

    .has-xxlarge-font-size {
        font-size: 38px !important;
    }
    
/*------------------------------------*\
    HEADER
\*------------------------------------*/

    .header .logo img {
        height: 100px;
    }

    .header .some .fa-brands {
        font-size: 32px;
    }

/*------------------------------------*\
    FRONT-PAGE
\*------------------------------------*/
    
}

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

    .has-small-font-size {
        font-size: 14px !important;
    }

    .has-large-font-size {
        font-size: 18px !important;
    }

    .has-xlarge-font-size {
        font-size: 22px !important;
    }

    .has-xxlarge-font-size {
        font-size: 32px !important;
    }

/*------------------------------------*\
    HEADER
\*------------------------------------*/

    .alert a span {
        display: inline-block;
        animation: alert-slide 25s linear infinite;
        animation-delay: 1.5s;
    }

    @keyframes alert-slide {
        from { transform: translateX(0); }
        to   { transform: translateX(-100%); }
    }

    .header .container {
        padding: 30px 20px;
    }

    .header .logo img {
        height: 65px;
    }

    .header .some .fa-brands {
        font-size: 22px;
    }

    .header .opening-hours {
        display: block;
        text-align: center;
    }

    .header .opening-hours p {
        margin-bottom: 5px;
    }

/*------------------------------------*\
    FRONT-PAGE
\*------------------------------------*/

    .hero.slider img {
        height: 520px;
    }

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

    .footer {
        text-align: center;
    }

    .footer .container {
        display: block;
    }

    .footer .logo img {
        width: 130px;
    }

    .footer-some {
        justify-content: center;
    }

}


/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-moz-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}

/*------------------------------------*\
    ALIGNMENTS
\*------------------------------------*/

.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	a,
	a:visited {
		text-decoration:underline;
	}
	a[href]:after {
		content:" (" attr(href) ")";
	}
	abbr[title]:after {
		content:" (" attr(title) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	tr,img {
		page-break-inside:avoid;
	}
	img {
		max-width:100% !important;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}
