@font-face {
  font-family: "TiseDiatype";
  src: url("../fnt/TiseDiatype-Regular.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "TiseDiatype";
  src: url("../fnt/TiseDiatype-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "TiseDiatype";
  src: url("../fnt/TiseDiatype-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

::selection {background: var(--primary-color);color: var(--text-color);}::-moz-selection {background: var(--primary-color);color: var(--text-color);}

/* Variables */
:root {
    --primary-color: #FF8F77;
    --background-color: #F7F1E9;
    --contrast-background-color: #173229;
    --footer-background-color: #173229;
    --harmony-background-color: #fff;
    --text-color: #121212;
    --faded-text-color: #656565;
    --button-text-color: #422136;
    --inverted-text-color: #F7F1E9;
    --font-family: "TiseDiatype", Arial, sans-serif;
    --border-radius: 16px;
    --button-border-radius: 16px;
    --transition-duration: 0.3s;

    --spacing-small: 20px;
    --spacing-medium: 40px;

    --box-shadow : 0px 0px 5px 2px rgba(18, 18, 18, .02);
}
@media (max-width: 768px) {
  :root {
  --spacing-medium: 20px;
}}
@media (max-width: 500px) {
  :root {
  --spacing-medium: 16px;
}}
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* styles.css */
html {
    font-size: 18px; /* Baseline, kan justeres */
    line-height: 1.5;
}
/* Fluid typografi for bedre skalerbarhet */
@media (max-width: 768px) {
    html {
        font-size: 16px; /* Mindre skrift på mobil */
        line-height: 1.3;
    }
}
@media (min-width: 1920px) {
    html {
        font-size: 20px; /* Større skrift på større skjermer */
    }
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    font-weight: 300;
    transition: all 0.5s ease;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
body.loaded {
    opacity: 1;
}

a, button, .button
{
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-duration) ease, filter var(--transition-duration) ease;
}

a:hover, a:active, #backBtn:hover, #nextBtn:hover {
  filter: brightness(1.1);
}
a video{
  transition: filter var(--transition-duration) ease;
}
a:hover video a:active video {
  filter: brightness(1.1);
}

h1, h2, h3, h4, h5 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-weight: 700;
}
h4{
  line-height: 1.3;
}

/* Typografisk skala */
h1 { font-size: 3.555rem; }
h2 { font-size: 3.111rem; }
h3 { font-size: 2.222rem; }
h4 { font-size: 1.555rem; }
h5 { font-size: 1rem; }
.lead { font-size: 2.222rem; line-height: 2.888rem;}
p { font-size: 1rem; margin-bottom: 1rem;}
small { font-size: 0.875rem; display: block; line-height: 1.4;}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 3.111rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1rem; }
  .lead { font-size: 1.75rem; line-height: 2.25rem}
}
.faded-text{
  color: var(--faded-text-color);
}
.bold{
  font-weight: 700;
}
.text-center{
  text-align: center;
}
/* Buttons */
.button {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    padding: 16px 24px;
    border-radius: var(--button-border-radius);
    cursor: pointer;
    min-width: 140px;
    display: inline-block;
    transition: filter 0.3s, min-width 0.3s ease, padding 0.3s ease;
    font-weight: 500;
}

.button-container{
  width: 100%;
  margin-top: 40px;
  text-align: center;
}
.global-contact-button{
  left: 0;
  bottom: 0;
  position: fixed;
  margin: var(--spacing-medium);
}
.page-wrapper{
  max-width: 1920px;
  margin: 0 auto;
}
.icon{width: 64px;}
@media only screen and (max-width: 900px) {
  .icon{width: 48px;}
}

.icon-lm{display:inline;}
.icon-dm{display:none;}

.logo-lm{display:inline;}
.logo-dm{display:none;}

.backtotise{
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.backtotise a{
  color: var(--faded-text-color);
}
.backtotise a:hover, .backtotise a:active{
  color: var(--primary-color);
}

header {
  width: 100%;
  margin: 0px;
  overflow: hidden;
  position: relative;
}
.hero-wrapper{
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero-wrapper{
    aspect-ratio: 4 / 5;
  }
  header{

  }
  .hero-wrapper video{
    transform: scale(1.5);
    transform-origin: center center;
  }
}
header video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* Viktig! */
}


.hero-content1{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  top: 0;
  left: 0;
  padding: var(--spacing-medium) var(--spacing-medium) var(--spacing-medium) var(--spacing-medium);
  width: 100%;
  color: var(--text-color);
  z-index: 2;
  gap: 100px;
}
.hero-content2 h4{
  font-weight: 300;
}
.logo-container {

}
.logo-container img {
    width: auto;
    height: 36px;
}
@media (max-width: 768px) {
.logo-container img {
    height: 32px;
}}
header a{
  text-decoration: underline;
  text-underline-offset: 8px;
  color: var(--text-color);
  /* color: var(--inverted-text-color); */
  cursor: pointer;
}
header a:hover, header a:active{
  color: var(--primary-color);

}

@media (max-width: 768px) {
  header .lead {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  header a{
    text-underline-offset: 5px;
  }
}



.medium-spacing{
  height: 20px;
}
@media (max-width: 768px) {
  .medium-spacing{
    height: 16px;
  }
}

.spacing{
  height: 72px;
}
.wrapper{
  padding: 0 var(--spacing-medium);
  width: 100%;
}









.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px var(--spacing-medium);
    width: 100%;
}
.grid-3-fullwidth{
  grid-column: 1 / -1;
}
.text-block {
    grid-column: 2 / 4;
}
.grid-3-item {
    width: 100%;
}
@media only screen and (max-width: 900px) {
    .text-block {
        grid-column: 1 / 4;
    }
}
@media only screen and (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px var(--spacing-medium);
    }
    .text-block {
        grid-column: auto;
    }
}








.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto; /* La rader automatisk tilpasse høyden */
  gap: var(--spacing-medium);
  width: 100%;
  transition: all 0.5s ease;
}
@media only screen and (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.grid-4 img {
  display: block;
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
  max-width: 100%;
}
.grid-4-item-large{
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  grid-template-rows: minmax(100px, auto) 32px;
}
.large-grid-image-wrapper{
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
}
.grid-4-item-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-4-item-large video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-4-item-large h5,
.grid-4-item h5 {
  margin: 10px 0 0 0;
}


/* Animation of show more function */
/* Grunnstil for alle items */
.grid-4-item,
.grid-4-item-large {
  opacity: 1;
  max-height: 1000px; /* Nok til å vise innhold */
  overflow: hidden;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 1s ease, max-height 1s ease;
}

/* Skjulte items */
.hidden {
  opacity: 0;
  max-height: 0;
  transform: translateY(20px);
  pointer-events: none;
}

















.mid-video video{
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}







.flex-horizontally{
  display: flex;
  gap: 40px;
}
.review{
  width: 33.333%;
}
.review img{
  width: 64px;
  border-radius: 1000px;
  margin-bottom: 20px;
}
@media only screen and (max-width: 801px) {
  .flex-horizontally{
    flex-direction: column;
    gap: 40px;
  }
  .review{
    width: 100%;
  }
}














.gallery-title{
  padding: 0 var(--spacing-medium);
}
@media only screen and (max-width: 801px) {

}
.gallery{
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    /* scroll-padding-left: var(--spacing-medium); */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;

    margin: auto;
    display: flex;
    padding: 0px var(--spacing-medium) 0px var(--spacing-medium);
    width: 100%;
    box-sizing: border-box;
}
.all-products{
  scroll-snap-type: x mandatory; /* fallback hvis .gallery ikke trigger */
  scroll-behavior: smooth;
  display: flex;
  gap:var(--spacing-medium);
  margin: 10px 0;
}
.product{
    scroll-snap-align: center;

    background: var(--harmony-background-color);
    -webkit-box-shadow: var(--box-shadow);
    -moz-box-shadow: var(--box-shadow);
    box-shadow: var(--box-shadow);
    padding: 48px 110px 0 110px;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 0;
    gap:30px;
    position: relative;
}
/* .product p {
  width: 395px;
} */
.product-img-wrapper{
  width: 325px;
  height: 506px;
}
.product-video{
  border-radius: 54px 54px 0 0;
  overflow: hidden;
}
.product img {
    width: 100%;
    height: auto;
}
.gallery::-webkit-scrollbar {
    display: none;
}
.gallerynav{
  display: flex;
  justify-content: flex-end;
  column-gap: 20px;
  margin: 20px var(--spacing-medium) 0 var(--spacing-medium);
  position: absolute;
  bottom: 40px;
  right: 40px;
}
@media only screen and (max-width: 768px) {
  .product{
      padding: 52px 52px 0 52px;
      gap: 20px;
  }
  .gallery div{
      column-gap: 20px;
  }
  .product-img-wrapper{
    width: 210px;
    height: 327px;
  }
  .product-video{
    border-radius: 35px 35px 0 0;
  }

.gallerynav{
  display: none;
}}
#backBtn, #nextBtn{
    width: 52px;
    height: 52px;
    cursor: pointer;
    fill: var(--text-color);
    background-color: rgba(244, 244, 244  , 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    transition: filter var(--transition-duration) ease;
}
.product-wider-text{
  width: 400px;
}
@media only screen and (max-width: 768px) {
  .product-wider-text{
    width: 210px;
  }
}
.front-gallery-wrapper, .gallery-wrapper{
  position: relative;
}
.new-rotate, .new-static{
  position: absolute;
  top: 150px;
  right: 77px;
  width: 135px !important;
}
.new-rotate{
  animation: roter 15s linear infinite;
}
.new-static{
}
@keyframes roter {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media only screen and (max-width: 768px) {
  .new-rotate, .new-static{
    top: 160px;
    right: 34px;
    width: 84px !important;
  }
}







#lottie-container{
  margin-bottom: 20px;
  width: 100%;
  height: 100px;
}







.contact{
  background: var(--harmony-background-color);
  -webkit-box-shadow: var(--box-shadow);
  -moz-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.profile-pics{
  display: flex;
  margin-left: 24px;
  margin-bottom: 20px;
}
.profile-pics img{
  border-radius: 100px;
  border: 4px solid var(--harmony-background-color);
  height: 80px;
  width: 80px;
  margin-left: -24px;
}









footer{
  width: 100%;
  padding: 250px 0;
  background: var(--footer-background-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: var(--inverted-text-color);
}
footer small {opacity: 0.5;}
.social{
  display: flex;
  gap: 40px;
}
footer nav ul{
  display: flex;
  justify-content: center;
  gap:16px;
  list-style: none;
  padding: 0;
}
footer nav ul li{
  text-indent: 0;
  padding-left: 0;
  display: block;
}
footer ul li::before {
  content: none; /* Fjerner manuelt punkt */
  margin-right: 0;
}
footer nav ul a{
  color: var(--inverted-text-color);
}
footer nav ul a:hover, footer nav ul a:active{
  color: var(--primary-color);
}
@media only screen and (max-width: 1120px) {
  footer{
    padding: 144px 0;
  }
  footer nav ul{
    flex-direction: column;
    align-items: center;
  }
}








.lazy-img,
.lazy-video {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.lazy-img.loaded,
.lazy-video.loaded {
  opacity: 1;
}
