@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-VariableFont.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --Vit: #ffffff;
  --Protekta-bgDark: #343438;
  --Protekta-gray: #242b38;
  --Protekta-red: #db2f2c;
  --Protekta-black: #000000;
  --Protekta-graybg1: #bec7d1;
  --Protekta-graybg2: #e3e7eb;
  --Protekta-graybg3: #d5dce3;
  --Protekta-graybg4: #95a3b4;
  --Protekta-whiteHover: #eaeff8;
  --Protekta-whiteActive: #d3def3;
  --bgSemiDarkGray: #48484b;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: rgb(255, 255, 255);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(148, 163, 179, 1) 40%);
}

header {
  width: 100%;
  height: 164px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  color: var(--Vit);
  /* Assuming --Vit is a custom variable for text color */
  transition: background-color 0.3s ease;
  /* Smooth transition for background */
}

header.scrolled {
  background-color: #ffffffcc;
  backdrop-filter: blur(10px);
}

header.zMove {
  z-index: 3;
}

.headerBackground {
  background-color: #ffffffcc;
  backdrop-filter: blur(10px);
}

.headerContent {
  width: 95%;
  height: 100%;
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.headerLeft {
  position: relative;
  max-width: 60%;
}

.headerMiddle>div>ul {
  width: 600px;
  display: inline-flex;
  justify-content: space-around;
}

.headerMiddle ul li {
  display: inline-block;
}

/* .headerMiddle ul li a:hover,
.headerMiddle ul li a.active {
} */

.headerMiddle a {
  color: var(--Protekta-black, #000);
  font-family: "Inter";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 19.6px;
  /* 108.889% */
  letter-spacing: 0.8px;
  text-decoration: none;

}

.headerMiddle a:hover {
  border-bottom: 3px solid var(--Protekta-red);
}

.header_menu .menu-item-has-children {
  position: relative;
  margin-right: 22px;
}

/* Parent menu item with arrow */
.headerMiddle .menu-item-has-children>a::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url('data:image/svg+xml,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVG"><path id="menu-arrow-path" d="M5.69878 6.87852L9.41128 3.16602L10.4718 4.22652L5.69878 8.99952L0.925781 4.22652L1.98628 3.16602L5.69878 6.87852Z" fill="black"/></g></svg>');
  background-size: contain;
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 200ms ease-in-out;
}

/* Hide submenu initially */
.header_menu .sub-menu {
  display: none;
  position: relative;
  position: absolute;
  left: 0;
  top: 100%;
  list-style: none;
  padding: 0;
  border-radius: 5px;
  margin: 15px;
}

.header_menu .sub-menu li {
  min-width: 308px;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bgSemiDarkGray);
}

.header_menu .sub-menu li a {
  display: block;
  height: 100%;
  color: #fff;
  font-family: "Inter";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 35px;
  /* 218.75% */
  letter-spacing: 0.288px;
  padding: 10px 25px;
}

.header_menu .sub-menu li a:hover {
  border-bottom: none;
}

.menu-item-has-children>a:first-child {
  poInter-events: none;
}

/* New ::after for the hoverable buffer */
.header_menu .menu-item-has-children .sub-menu::after {
  content: "";
  position: absolute;
  top: -15px;
  /* Place the buffer between the parent and the dropdown */
  left: 0;
  width: 100%;
  height: 15px;
  /* Height of the buffer zone */
  background: transparent;
  /* Make the buffer invisible */
}

/* Show submenu on hover */
.header_menu .menu-item-has-children:hover .sub-menu {
  display: block;
}

.header_menu .menu-item-has-children .sub-menu li:hover {
  background-color: var(--Protekta-red);
}

.header_menu .menu-item-has-children .sub-menu li:hover a {
  color: var(--Lav);
}

.header_menu .menu-item-has-children .sub-menu li:first-child {
  border-radius: 5px 5px 0px 0px;
}

.header_menu .menu-item-has-children .sub-menu li:last-child {
  border-radius: 0px 0px 5px 5px;
}

.headerMiddle .menu-item-has-children:hover>a::after {
  transform: translateY(-50%) rotate(180deg);
  /* Rotate the icon */
  top: 50%;
  /* Keep it vertically centered */
}

.headerRight {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 50px;
  justify-content: center;
  align-items: center;
}

.header_logo img {
  position: relative;
  max-width: 226px;
  object-fit: none;
}

.phone {
  padding: 15px 25px;
  border-radius: 30px;
  background-color: var(--Protekta-red);
}

.phone:hover {
  background-color: #e34543;
}

.headerRight a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-family: "Inter";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
}

.phone svg {
  position: relative;
  top: 3px;
}

.menu_phone {
  display: none;
}

.hamburgerMenu {
  display: none;
}

.sideMenu {
  background-color: var(--bgSemiDarkGray);
  color: var(--Vit);
  position: fixed;
  top: 0;
  right: 0;
  width: 500px;
  height: 100vh;
  /* Full height of viewport */
  z-index: 9;
  transform: translateX(100%);
  transition: transform 700ms ease-in-out;
}

.sideMenu.active {
  transform: translateX(0px);
}

.sideMenuContent {
  position: fixed;
  top: 0;
  right: 0;
  width: 500px;
  height: 95vh;
  /* Full height of viewport */
  max-height: 790px;
  overflow-y: auto;
  /* Ensure nothing overflows */
  z-index: 9;
  transform: translateX(100%);
  transition: transform 700ms ease-in-out;
}

.sideMenuContent.active {
  transform: translateX(0px);
}

.sideMenuContent:hover {
  color: green;
}

.closeSideMenu {
  position: absolute;
  top: 65px;
  right: 30px;
}

ul.side_menu {
  margin: 0;
  padding: 0;
  list-style: none;
  margin: 165px 20px auto 20px;
  width: auto;
  display: flex;
  flex-direction: column;
  /* Stack items vertically */
}

.side_menu>li>a {
  margin: 10px;
}

.side_menu>li:after {
  margin-top: 20px;
  display: block;
  content: "";
  border-bottom: 1px solid var(--Vit);
  width: 90%;
}

.side_menu li.menu-item {
  position: relative;
  margin: 10px;
  display: inline-block;
  padding-left: 10px;
}

.side_menu>li.menu-item>a {
  color: var(--Vit);
  font-family: "Inter";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  display: inline-block;
  border-bottom: 3px transparent solid;
}

/* Style and position the SVG toggle icon */
.side_menu .menu-item-has-children .dropdown-toggle {
  display: inline-block;
  width: 12px;
  height: 7px;
  cursor: po"Inter";
  margin-left: 10px;
  transform: translateY(-5px);
  transition: transform 200ms ease-in-out;
}

.side_menu .menu-item-has-children .dropdown-toggle svg {
  margin-bottom: 0px;
  transition: transform 250ms ease-in-out;
}

/* Rotate the icon when submenu is open */
.side_menu .menu-item-has-children.open .dropdown-toggle svg {
  transform: rotate(180deg) translateY(0px);
}

.side_menu .menu-item-has-children .sub-menu {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: all 250ms ease-in-out;
}

/* Show submenu when parent has 'open' class */
.side_menu .menu-item-has-children .open .sub-menu {
  max-height: 300px;
  /* Adjust to content */
  margin-top: 20px;
}

.side_menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.sideMenuMenu .sub-menu li a {
  color: var(--Vit);
  font-family: "Inter";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  border-bottom: transparent 3px;
}

.sideMenuMenu .sub-menu li a:hover {
  border-bottom: var(--Protekta-red) 3px solid;
}

.sideMenuMenu li a:hover {
  border-bottom: var(--Protekta-red) 3px solid;
}

footer {
  background-color: var(--Protekta-black);
  width: 100%;
  position: relative;
}

.footerContent {
  width: 95%;
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  padding: 165px 0px 165px 0px;
}

footer .footer_logo img {
  max-width: 226px;
  object-fit: none;
  height: auto;
  position: relative;
}

footer .footer_menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: wrap row;
  row-gap: 10px;
  width: 100%;
}

footer .footer_menu li {
  padding: 12px;
}

footer .footer_menu a {
  color: var(--Vit);
  font-family: "Inter";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 19.6px;
  /* 108.889% */
  letter-spacing: 0.8px;
  text-decoration: none;
}

footer .footer_menu a:hover {
  color: var(--Protekta-red);
}

footer .office {
  margin-bottom: 30px;
}

footer .office p a {
  color: var(--Vit);
  font-family: "Inter";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  column-gap: 10px;
}

footer .office p {
  color: var(--Vit);
  font-family: "Inter";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  max-width: 320px;
}

footer .newsletter_header {
  color: var(--Svart);
  font-family: "Inter";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 20px;
}

.footer_menu .menu-item-has-children {
  position: relative;
  margin-right: 22px;
}

/* Parent menu item with arrow */
.footerMiddle .menu-item-has-children:first-child>a::after {
  content: "";
  display: inline-flex;
  margin-left: 5px;
  align-items: center;
  width: 12px;
  height: 12px;
  background-image: url('data:image/svg+xml,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVG"><path id="menu-arrow-path" d="M5.69878 6.87852L9.41128 3.16602L10.4718 4.22652L5.69878 8.99952L0.925781 4.22652L1.98628 3.16602L5.69878 6.87852Z" fill="white"/></g></svg>');
  background-size: contain;
  transform: translateY(-50%);
  transition: all 200ms ease-in-out;
}

/* Hide submenu initially */
.footer_menu .sub-menu {
  display: none;
  position: relative;
  position: absolute;
  left: -40%;
  bottom: 20px;
  list-style: none;
  padding: 0;
  border-radius: 5px;
  margin: 25px;
}

.footer_menu .sub-menu li {
  min-width: 308px;
  width: 105%;
  padding: 10px;
  padding-left: 25px;
  box-sizing: border-box;
  background-color: var(--bgSemiDarkGray);
}

.footer_menu .sub-menu li a {
  color: #fff;
  font-family: "Inter";
  font-size: 16px;
  font-style: normal;
  font-weight: normal;
  line-height: 19.6px;
  /* 108.889% */
  letter-spacing: 0.8px;
}

/* Show submenu on hover */
.footer_menu .menu-item-has-children:hover .sub-menu {
  display: block;
}

.footer_menu .menu-item-has-children .sub-menu li:hover {
  background-color: var(--Protekta-red);
}


.footer_menu .menu-item-has-children .sub-menu li:hover a {
  color: var(--Vit);
}

.footer_menu .menu-item-has-children .sub-menu li:first-child {
  border-radius: 5px 5px 0px 0px;
}

.footer_menu .menu-item-has-children .sub-menu li:last-child {
  border-radius: 0px 0px 5px 5px;
}

.footerMiddle .menu-item-has-children:hover>a::after {
  transform: translateY(-50%) rotate(180deg);
  /* Rotate the icon */
  top: 50%;
  /* Keep it vertically centered */
}

.footerLeft {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footerMiddle {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.footerRight {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  gap: 10px;
}

span.wpcf7-form-control-wrap {
  display: inline-block;
  z-index: 3;
  color: var(--Vit);
  width: 100%;
}

span.wpcf7-form-control-wrap select.wpcf7-select,
span.wpcf7-form-control-wrap input.wpcf7-text,
span.wpcf7-form-control-wrap input.wpcf7-email {
  background-color: var(--Vit);
  color: var(--Protekta-black);
  font-family: "Inter";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 15px 20px;
  border-radius: 25px;
  border: 1px solid var(--Svart);
  width: 100%;
  box-sizing: border-box;
}

span.wpcf7-form-control-wrap input.wpcf7-text::placeholder {
  color: var(--Protekta-black);
}

.wpcf7-not-valid-tip {
  font-family: "Inter";
}

.wpcf7 form .wpcf7-response-output {
  font-family: "Inter";
}

input.wpcf7-submit {
  margin-top: 20px;
  background-color: var(--Protekta-black);
  color: var(--Vit);
  font-family: "Inter";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 15px 20px;
  border-radius: 25px;
  border: none;
  margin-left: 10px;
}

input.wpcf7-submit:hover {
  background-color: #394357;
}

footer .footerFooter {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95%;
  max-width: 1280px;
}

footer .footerFooter .footerFooterLeft {
  display: inline-flex;
  align-items: center;
  justify-content: start;
}

footer .footerFooter p {
  color: var(--Vit);
  font-family: "Inter";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

footer .footerFooter a {
  color: var(--Vit);
  font-family: "Inter";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
}

footer .footerFooter a:hover {
  color: var(--Protekta-red);
}

.footerFooterRight {
  display: block;
}

footer .footerFooter .footerFooterRight {
  display: inline-flex;
  align-items: center;
  justify-content: end;
}

@media (max-width: 1300px) {
  .headerMiddle {
    display: none;
  }

  .hamburgerMenu {
    margin-right: 10px;
    display: inline-block;
  }

  .sideMenu {
    width: 100vw;
  }

  .sideMenuContent {
    width: 100vw;
  }

  .footerContent {
    padding-top: 60px;
    padding-bottom: 40px;
    row-gap: 50px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "a ."
      "b c";
  }

  .footerLeft {
    margin-bottom: 30px;
    grid-area: a;
  }

  .footerMiddle {
    justify-content: start;
    grid-area: b;
  }

  footer .footer_menu {
    flex-flow: wrap column;
  }

  footer .footer_menu li {
    margin-bottom: 5px;
  }

  .footer_menu .sub-menu {
    position: relative;
    left: 0;
    top: 0;
    margin: 0;
  }

  .footer_menu .sub-menu li {
    min-width: 308px;
    width: 105%;
    padding: 5px;
    padding-left: 5px;
    box-sizing: border-box;
    background-color: inherit;
  }

  .footer_menu .menu-item-has-children .sub-menu li {
    border-radius: 5px !important;
  }

  .footerRight {
    align-items: start;
    justify-content: center;
    grid-area: c;
  }

  footer .footerFooter {
    flex-direction: column;
  }

  footer .footerFooter a,
  footer .footerFooter p {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 150px;
  }

  .headerContent {
    width: 90%;
  }

  body {
    color: inherit;
  }

  .phone {
    display: none;
  }

  ul.side_menu {
    margin-left: 20px;
    margin-right: 20px;
  }

  .menu_phone {
    display: inline-block;
    position: absolute;
    margin-left: 55px;
    top: 55px;
  }

  .menu_phone a {
    position: relative;
    text-decoration: none;
    color: #fff;
    font-family: "Inter";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
  }

  .footerContent {
    grid-template-columns: 1fr;
    grid-template-columns: repeat(1, 1fr);
    grid-template-areas:
      "a"
      "b"
      "c";
      width: 90%;
  }

  .footerRight {
    justify-content: start;
  }
}

textarea:focus,
input:focus {
  outline: none;
}

@media (min-width: 1300px) {
  .sideMenu {
    display: none;
  }

  .side_menu li.menu-item {
    display: none;
  }

}