/*!
Theme Name: JM Hansen
Theme URI: #
Author: Gnist Design
Author URI: https://gnistdesign.no
Description: A theme for JM Hansen.
Tags: custom-logo, editor-style, featured-images, block-patterns, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 8.1
Version: 1.0.3
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: jmhansen

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
html {
  box-sizing: border-box;
  -ms-overflow-style: scrollbar;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.facetwp-facet-bransjer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  max-width: var(--wp--style--global--wide-size);
  margin-top: 0;
  margin-bottom: 0 !important;
}
.facetwp-facet-bransjer .facetwp-radio {
  display: inline-block;
  padding: 10px 15px;
  background-image: none;
  border-radius: 40px;
  background-color: transparent;
  color: #f8f7f7;
  border: solid 1px #f8f7f7;
  cursor: pointer;
  transition: all 0.32s ease;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}
@media all and (min-width: 1024px) {
  .facetwp-facet-bransjer .facetwp-radio {
    padding: 8px 15px;
  }
}
.facetwp-facet-bransjer .facetwp-radio span.facetwp-counter {
  display: none;
}
.facetwp-facet-bransjer .facetwp-radio.checked {
  background-color: #f8f7f7;
  border: solid 1px #212121;
  background-image: none;
  color: var(--wp--preset--color--black);
}
.facetwp-facet-bransjer .facetwp-radio:hover {
  background-color: #7ccceb;
  color: #212121;
}
.facetwp-facet-bransjer .facetwp-radio:hover.checked {
  background-color: #f8f7f7;
  border: solid 1px #212121;
  background-image: none;
  color: var(--wp--preset--color--black);
}
.facetwp-facet-bransjer .facetwp-radio:focus {
  box-shadow: 0 0 0 1px #f8f7f7;
}

.facetwp-template {
  max-width: var(--wp--style--global--wide-size);
  margin-bottom: var(--wp--preset--spacing--64) !important;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  padding: 0 20px 0 0;
}
@media all and (min-width: 790px) {
  .facetwp-template {
    padding: 0;
  }
}
.facetwp-template .d-flex {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.facetwp-template .d-flex * {
  color: #f8f7f7;
}
.facetwp-template .d-flex .gc-project {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.facetwp-template .d-flex .gc-project figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.facetwp-template .d-flex .gc-project figure img {
  transition: all ease 0.3s;
  object-fit: cover;
  aspect-ratio: 16/9;
  width: 100%;
  height: 100%;
}
.facetwp-template .d-flex .gc-project figure .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.facetwp-template .d-flex .gc-project figure:hover .overlay {
  opacity: 1;
}
.facetwp-template .d-flex .gc-project header h2 {
  font-size: 20px;
  font-weight: 300;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 28.8px;
}
@media screen and (min-width: 790px) {
  .facetwp-template .d-flex .gc-project header h2 {
    font-size: 24px;
  }
}
.facetwp-template .d-flex .gc-project header .summary {
  font-size: 20px;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 2px;
  line-height: 28.8px;
}
@media screen and (min-width: 790px) {
  .facetwp-template .d-flex .gc-project header .summary {
    font-size: 24px;
  }
}
.facetwp-template .d-flex .gc-project header .industry {
  font-size: 16px;
  text-decoration: none;
  font-weight: 400;
  margin-top: 16px;
  margin-bottom: 16px;
}
.facetwp-template .d-flex .gc-project:focus {
  box-shadow: 0 0 0 1px #f8f7f7;
}
.facetwp-template .d-flex .gc-project:hover {
  text-decoration: none;
}
.facetwp-template .d-flex .gc-project:hover h2 {
  text-decoration: underline;
}
.facetwp-template .d-flex .gc-project:hover figure img {
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .facetwp-template {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .facetwp-template {
    grid-template-columns: repeat(2, 1fr);
  }
}

header.header-fixed {
  position: absolute;
  width: 100%;
  z-index: 100;
}
header.header-fixed:not(.mega-menu-active) * {
  color: var(--wp--preset--color--off-white);
}
header.header-fixed:not(.mega-menu-active) ul li a img {
  filter: brightness(100);
}
header.header-fixed.mega-menu-active {
  background-color: var(--wp--preset--color--off-white);
}
header.header-fixed.mega-menu-active img {
  filter: brightness(0);
}
header.header-fixed.mega-menu-active .contact-block_button img {
  filter: brightness(100);
}
header.header-fixed nav.mobile-nav {
  background-color: transparent !important;
}
header .jm-logo {
  z-index: 9999;
  max-width: 170px;
}
@media all and (min-width: 1024px) {
  header .jm-logo {
    max-width: 100%;
  }
}
header {
  /* Ensure the mega menu is hidden by default */
}
header .mega-menu {
  display: none;
  position: absolute;
  top: 80px;
  /* Position it below the navigation item */
  left: 0;
  width: 100%;
  margin-block-start: 0;
  z-index: 999;
  transition: opacity 2s ease-in-out, visibility 2s ease;
  /* Smooth visibility changes */
  opacity: 1;
}
header .mega-menu ul {
  list-style: none;
  /* Remove default markers */
  padding: 0;
}
header .mega-menu ul li {
  display: flex;
  /* Allow for proper alignment of marker and text */
  align-items: center;
  margin-bottom: 20px;
  font-weight: 400;
}
header .mega-menu ul li::before {
  content: "";
  display: inline-block;
  width: 6px;
  /* Adjust the size of the marker */
  height: 7px;
  margin-right: 8px;
  /* Space between marker and text */
  background-image: url('data:image/svg+xml,<svg width="6" height="7" viewBox="0 0 6 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0.5H6V6.5H0V0.5Z" fill="%23C8D3DA"/></svg>');
  background-size: contain;
  /* Ensure the entire SVG fits */
  background-repeat: no-repeat;
}
header .mega-menu ul li a {
  text-decoration: none;
}
header .mega-menu ul li:hover::before, header .mega-menu ul li:focus::before {
  background-image: url('data:image/svg+xml,<svg width="6" height="7" viewBox="0 0 6 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0.5H6V6.5H0V0.5Z" fill="%235A5858"/></svg>');
}
header .mega-menu ul li:hover a, header .mega-menu ul li:focus a {
  text-decoration: underline;
}
header .mega-menu .wp-block-search__button svg {
  transform: scaleX(-1);
}
header .mega-menu .wp-block-search__button:hover svg, header .mega-menu .wp-block-search__button:focus svg {
  transform: scaleX(-1);
}
header .mega-menu .wp-block-search__button:hover svg path, header .mega-menu .wp-block-search__button:focus svg path {
  fill: #00a3e0;
}
header .wp-block-image img {
  vertical-align: top;
}
header {
  /* Navigation block positioning */
}
header .wp-block-navigation {
  position: relative;
}
header {
  /* Highlight site header when a mega menu is active */
}
header .site-header.mega-menu-active {
  background-color: var(--wp--preset--color--off-white);
}
header .center-on-mobile {
  text-align: center;
}

.page-template-wp-custom-template-m-rk-side header:not(.mega-menu-active) * {
  color: var(--wp--preset--color--off-white);
}
.page-template-wp-custom-template-m-rk-side header:not(.mega-menu-active) img {
  filter: brightness(100);
}
.page-template-wp-custom-template-m-rk-side header.mega-menu-active {
  background-color: var(--wp--preset--color--off-white);
}
.page-template-wp-custom-template-m-rk-side header.mega-menu-active .wp-block-navigation-link img {
  filter: brightness(0);
}

.breadcrumbs {
  padding-right: var(--wp--preset--spacing--48);
  padding-left: var(--wp--preset--spacing--48);
}

footer {
  margin-block-start: 0;
}
footer .wp-block-group.footer-container_line {
  position: relative;
}
footer .wp-block-group.footer-container_line > .wp-block-columns {
  z-index: 2;
  position: relative;
}
footer .wp-block-group.footer-container_line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 50%;
  height: 2px;
  background-color: black;
  transform: translateY(-50%);
}
@media all and (max-width: 790px) {
  footer .wp-block-group.footer-container_line::after {
    height: 1px;
  }
}
footer .wp-block-group.footer-container_line .p-line {
  display: inline-block !important;
}
@media all and (max-width: 790px) {
  footer .wp-block-group.footer-container_line * {
    font-size: 16px !important;
  }
}
@media all and (max-width: 500px) {
  footer .wp-block-group.footer-container_line .wp-block-column:has(p.p-line) {
    align-self: flex-end;
  }
}
@media all and (max-width: 768px) {
  footer .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }
}
@media all and (max-width: 768px) {
  footer .footer-content {
    text-align: center;
  }
}
@media all and (max-width: 768px) {
  footer .footer-logos {
    justify-content: center;
    max-width: 367px;
    margin: 0 auto;
  }
}

.home .entry-content {
  margin-block-start: 0;
}

.page-template-wp-custom-template-m-rk-side header {
  background-color: var(--wp--preset--color--dark-blue);
}
.page-template-wp-custom-template-m-rk-side .site-content {
  padding-top: 107px !important;
}
@media all and (min-width: 1024px) {
  .page-template-wp-custom-template-m-rk-side .site-content {
    padding-top: 140px !important;
  }
}

@media all and (max-width: 790px) {
  .single-header {
    gap: 0;
    padding-top: 10px !important;
  }
}
.single-header p.connections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  gap: 5px;
}
@media all and (max-width: 790px) {
  .single-header p.connections {
    padding-top: 30px;
  }
}
.single-header p.connections .value {
  margin-top: -14px;
}
.single-header p.connections a {
  text-decoration: none;
  font-size: 14px;
}
.single-header p.connections a:hover {
  text-decoration: underline;
}
.single-header p.connections a:nth-child(-n+5) {
  grid-column: 1;
}
.single-header p.connections a:nth-child(n+6) {
  grid-column: 2;
}

.single-post .site-header > .wp-block-group,
.page-template-wp-custom-template-artikkel .site-header > .wp-block-group {
  padding-bottom: 0 !important;
}
@media all and (min-width: 1024px) {
  .single-post .site-content,
  .page-template-wp-custom-template-artikkel .site-content {
    margin-block-start: -10px !important;
  }
}
.single-post .wp-block-cover:not(.video-cover):not(.is-style-video-cover) .wp-block-cover__inner-container,
.page-template-wp-custom-template-artikkel .wp-block-cover:not(.video-cover):not(.is-style-video-cover) .wp-block-cover__inner-container {
  margin: 0;
  align-self: center;
}

.single-bc_project h1 {
  font-size: clamp(2.25rem, 5vw, 4rem) !important;
}

.single-bc_service h1 {
  font-size: clamp(1.5rem, 1.7vw, 2.38rem) !important;
}

.error404 header {
  background-color: var(--wp--preset--color--dark-blue) !important;
}
.error404 header:not(.mega-menu-active) * {
  color: var(--wp--preset--color--off-white);
}

@media all and (max-width: 790px) {
  .hide-on-mobile {
    display: none;
  }
}

@media all and (max-width: 790px) {
  .gap-25-mobile {
    gap: 25px;
  }
}

@media all and (max-width: 790px) {
  .gap-0-mobile {
    gap: 0;
  }
}

@media all and (min-width: 790px) {
  .hide-on-desktop {
    display: none;
  }
}

@media all and (max-width: 790px) {
  .stack-on-mobile {
    flex-direction: column;
  }
}

.align-text-right {
  text-align: right;
}
