/* ==========================================================================
   Kalneset havn
   ========================================================================== */

:root {
  --blanched-almond: #f9e4cb;
  --dark-cyan: #428c94;
  --main-brand: #6e9ebd;
  --light-shade: #f5f7f7;
  --dark-accent: #72b59d;
  --deep-blue: #2e6588;
  --dark-shade: #1a7d56;
  --forest: #13573c;
  --black: #1d1d1d;
  --sea: #2f7a5f;        /* deep green: hero + contact */
  --forest-dark: #0b3a28; /* button hover */
  --mist: #dfe6e3;       /* muted light text on --sea */
  --body-text: #2b2b2b;

  --font-display: "Playfair Display", serif;
  --font-body: "Figtree", sans-serif;

  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Base ---------- */

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #333;
}

img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
  border: 0;
}

h1,
h2,
h3,
.h1,
.h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

h1 { font-size: 38px; line-height: 44px; }
h2, h3, .h2 { font-size: 32px; line-height: 36px; }

p {
  margin-top: 0;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: 24px;
  line-height: 24px;
}

a {
  color: var(--blanched-almond);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  transition: color .35s;
}

a:hover {
  color: var(--dark-cyan);
}

/* ---------- Sections ---------- */

.section,
.herosection,
.sectionfooter {
  background-color: #fff;
  min-height: 100vh;
  position: relative;
}

.herosection.hero {
  background-color: var(--sea);
  overflow: hidden;
}

.section.of-h { overflow: hidden; }

.section.gr-nn {
  background-color: var(--dark-accent);
  overflow: hidden;
}

.section.lys { background-color: var(--light-shade); }

.section.contact {
  background-color: var(--sea);
  min-height: 0;
  padding: 96px 24px;
}

.sectionfooter.footer {
  background-color: var(--light-shade);
  min-height: 0;
}

/* ---------- Layout ---------- */

.container {
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  height: 100vh;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  position: relative;
}

.container.pullerter {
  width: 100%; /* 100vw includes the scrollbar → horizontal scroll */
  max-width: none;
  height: 100vh;
  position: sticky;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

.container.contact { height: auto; }

.content-wrapper.jc-c {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  display: flex;
  position: relative;
}

.content-wrapper.top-128 { padding-top: 64px; }

.content-wrapper.top-btm-128 {
  padding-top: 128px;
  padding-bottom: 128px;
}

.content-wrapper.top-btm-64 {
  padding-top: 64px;
  padding-bottom: 64px;
}

.content-wrapper.top-btm-64.bk-white {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 48px;
  background-color: var(--light-shade);
  border-radius: 20px;
  text-align: center;
}

.content-wrapper.bk-white .col {
  max-width: 100%;
  display: block;
}

/* 12 column flex grid */

._12-col {
  width: 100%;
  display: flex;
}

._12-col.jc-sb {
  justify-content: space-between;
  position: relative;
}

._12-col.jc-sa {
  justify-content: space-around;
  align-items: center;
}

._12-col.jc-c {
  justify-content: center;
  align-items: center;
}

._12-col.jc-c.btm-64 { margin-bottom: 64px; }

._12-col.jc-left {
  z-index: 1;
  position: relative;
}

.col {
  z-index: 1;
  flex: 1;
  position: relative;
}

.col.desk-1 { max-width: 8.33333%; }
.col.desk-2 { max-width: 16.6667%; }
.col.desk-3 { max-width: 25%; }
.col.desk-4 { max-width: 33.3333%; }
.col.desk-5 { max-width: 41.6667%; }
.col.desk-6 {
  max-width: 50%;
  overflow: hidden;
}

.col.desk-5.mob-10 {
  flex-direction: column;
  align-items: center;
  display: flex;
}

.col.desk-3.ac-c,
.col.loc-text {
  flex-direction: column;
  justify-content: space-around;
  display: flex;
}

.col.pad-btm-top-16 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.col.btm-line { border-bottom: 1px solid var(--dark-shade); }

/* ---------- Content blocks ---------- */

.content-block {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  display: flex;
}

.content-block._75 {
  width: 100%;
  max-width: 480px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.content-block._75 .paragraph { margin-bottom: 40px; }

@media (min-width: 992px) {
  .section.gr-nn .col.desk-5 { padding-right: 48px; }
}

/* Kai cards */
.quay-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.quay-card {
  background-color: rgba(255, 255, 255, .55);
  border-radius: 14px;
  padding: 20px 22px;
}

.quay-card .h2 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.quay-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.quay-specs dt { color: #1f4d3c; }

.quay-specs dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  color: var(--black);
}

.content-block.horizontal {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.content-block.pullert {
  max-width: 400px;
  background-color: rgba(16, 26, 32, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.content-block.pullert .paragraph.lys { color: #fff; }

.content-block.pullert .h2.lys {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.content-block.pullert .paragraph.btm-16 {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.content-block.pullert .content-block.horizontal {
  justify-content: flex-start;
  gap: 14px;
  margin-top: 12px;
}

.content-block.pullert .content-block.horizontal:first-of-type { margin-top: 0; }

.content-block.pullert .pullert-merke {
  width: 22px;
  height: 22px;
  margin-right: 0;
}

/* ---------- Typography ---------- */

.hero-header {
  z-index: 2;
  display: block;
  color: var(--light-shade);
  text-transform: uppercase;
  margin: 0;
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  position: relative;
}

.hero-header.m-rk { white-space: nowrap; }

.subheader {
  color: var(--forest);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.subheader.stor {
  color: var(--mist);
  margin-top: 20px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.h1 {
  font-size: 48px;
  line-height: 1.08;
}

.h1.big {
  font-size: 48px;
  line-height: 1.08;
}

.h1.btm-32 {
  color: var(--black);
  margin-top: 0;
  margin-bottom: 28px;
}

.h2 {
  color: var(--black);
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.2;
}

.h2.lys { color: var(--light-shade); }

.h2.btm-32 { margin-bottom: 20px; }

.h2.darkgr-nn {
  color: var(--forest);
  font-size: 44px;
  line-height: 1.1;
}

.paragraph {
  color: var(--body-text);
  text-align: left;
  font-size: 17px;
  line-height: 1.6;
}

.paragraph.darkgr-nn {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.paragraph.btm-32.darkgr-nn { margin-bottom: 36px; }

.paragraph.lys { color: var(--light-shade); }
.paragraph.btm-16 { margin-bottom: 16px; }
.paragraph.btm-32 { margin-bottom: 32px; }
.paragraph.fasilitet { margin-left: 48px; }

.paragraph.small {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #4a4a4a;
}

.paragraph.small strong { color: var(--black); }

.logotype {
  text-align: center;
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  line-height: 44px;
}

/* ---------- Links / buttons ---------- */

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 52px;
  padding: 0 32px;
  background-color: var(--forest);
  color: #fff;
  border-radius: 12px;
  transition: background-color .2s;
}

.contact-link:hover {
  background-color: var(--forest-dark);
  color: #fff;
}

.contact-link.alt {
  padding: 0 28px;
  margin-top: 40px;
}

.link-text {
  display: block;
  color: #fff;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.link-arrow { flex: none; }

.contact-div {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 40px;
  width: 100%;
  display: flex;
}

.tlf-div { text-align: left; }

.tlf-div .paragraph.small { text-align: left; }

.tlf-link {
  display: block;
  padding: 4px 0;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition-property: none;
}

.tlf-link:hover {
  color: var(--forest);
  text-decoration: underline;
}

/* ---------- Images & backgrounds ---------- */

/* Hero layout: text left, wide photo right */
.container.hero-container {
  max-width: 1400px;
  height: auto;
  min-height: 100vh;
  padding: 96px 40px;
  display: flex;
  align-items: center;
}

.hero-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 56px;
}

.hero-text {
  flex: 0 1 460px;
  min-width: 0;
}

.hero-media {
  flex: 1 1 480px;
  min-width: 0;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(10, 40, 30, .35);
}

.bkg-m-nster {
  opacity: .59;
  background-image: url("../images/monster.svg");
  background-position: 0 0;
  background-size: cover;
  width: 50%;
  position: absolute;
  inset: 0 auto 0 0;
}

.bkg-m-nster.full-width {
  opacity: .2;
  background-position: 50%;
  background-repeat: repeat;
  background-size: contain;
  width: auto;
  inset: 0;
}

.bkg-m-nster.rotate {
  z-index: 0;
  opacity: .08;
  background-position: 50%;
  background-repeat: repeat;
  background-size: auto;
  width: auto;
  inset: 0;
  transform: rotate(45deg);
}

.section-bkg { position: absolute; }

.section-bkg.right {
  width: 50%;
  height: 100%;
  inset: 0 0 0 auto;
  overflow: hidden;
}

.section-bkg.right.gr-nn {
  background-color: var(--main-brand);
  background-image: url("../images/kart-v3.svg");
  background-size: cover;
}

.section-bkg.right.kai {
  background-image: url("../images/dji_0463.jpg");
  background-position: 100%;
  background-size: cover;
}

.pullert-merke {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.div-block-2 {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 8px;
  display: flex;
}

.card-img {
  width: 32px;
  margin-right: 16px;
}

.lottie-animation {
  transform-origin: 50% 100%;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  will-change: transform;
}

.lottie-animation.mob { display: none; }

/* ---------- Language switcher ---------- */

.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  gap: 2px;
  padding: 4px;
  background-color: rgba(16, 26, 32, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  background: transparent;
  color: var(--light-shade);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.lang-switch__btn:hover { background-color: rgba(255, 255, 255, .12); }

.lang-switch__btn[aria-pressed="true"] {
  background-color: var(--light-shade);
  color: var(--black);
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--light-shade);
  outline-offset: 2px;
}

/* ==========================================================================
   Animations (start states only apply when JS is running)
   ========================================================================== */

/* Hero: fade + rise on page load */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s ease var(--reveal-delay, 0ms),
    transform 1s var(--ease-out-quart) var(--reveal-delay, 0ms);
}

/* Sections: curtains slide apart, then the content rises in */
.fade-left,
.fade-right {
  z-index: 10;
  background-color: var(--light-shade);
  width: 50%;
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
}

.fade-left { left: 0; }
.fade-right { right: 0; }

.js [data-section-reveal] > .fade-left,
.js [data-section-reveal] > .fade-right {
  display: block;
}

.js [data-section-reveal].is-visible > .fade-left {
  transform: translateX(-100%);
  transition: transform 1s var(--ease-out-quint);
}

.js [data-section-reveal].is-visible > .fade-right {
  transform: translateX(100%);
  transition: transform 1s var(--ease-out-quint);
}

.js [data-section-reveal].is-done > .fade-left,
.js [data-section-reveal].is-done > .fade-right {
  display: none;
}

.js [data-section-reveal] ._12-col {
  opacity: 0;
  transform: translateY(16px);
}

.js [data-section-reveal].is-visible ._12-col {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s ease 600ms,
    transform 1s var(--ease-out-quart) 600ms;
}

/* Pullert card opacity is scrubbed by scroll in JS (tablet & up) */
@media (min-width: 480px) {
  .js .content-block.pullert { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js [data-section-reveal] ._12-col,
  .js .content-block.pullert {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .js [data-section-reveal] > .fade-left,
  .js [data-section-reveal] > .fade-right {
    display: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 991px) {
  .section,
  .herosection,
  .sectionfooter {
    min-height: 0;
  }

  .container {
    align-items: center;
    display: flex;
  }

  .content-wrapper.jc-c { width: 100%; }

  .content-wrapper.top-btm-128 {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .col.desk-5.tab-6,
  .col.desk-4.tab-6 { max-width: 50%; }
  .col.desk-3.tab-4 { max-width: 33.3333%; }
  .col.desk-2.tab-1 { max-width: 8.33333%; }
  .col.desk-4.tab-8 { max-width: 66.6667%; }

  .hero-header { font-size: 40px; }
  .hero-text { flex-basis: 100%; }
  .container.hero-container { padding: 96px 24px 64px; }

  .col.desk-4.tab-5 { max-width: 41.6667%; }

  .h1,
  .h1.big { font-size: 40px; }

  .paragraph { font-size: 16px; }
}

@media screen and (max-width: 767px) {
  .container.pullert { align-items: flex-start; }
  .col.desk-1.mob-ls-0 { display: none; }
  .content-wrapper.top-btm-64.bk-white { padding: 40px 24px; }
  .h2.darkgr-nn { font-size: 36px; }
}

@media screen and (max-width: 479px) {
  .section,
  .herosection,
  .sectionfooter {
    flex-direction: column;
    display: flex;
  }

  .herosection.hero { justify-content: center; }
  .container.hero-container { padding: 80px 16px 48px; }
  .hero-image { border-radius: 12px; }
  .quay-cards { grid-template-columns: minmax(0, 1fr); }
  .section.contact { padding: 24px; }
  .section.pullert { flex-direction: column-reverse; }

  .container { height: auto; }

  .container.pullerter {
    height: auto;
    padding-left: 0;
    padding-right: 0;
    position: relative;
  }

  .container.pullert {
    justify-content: center;
    height: auto;
  }

  .container.contact { justify-content: center; }

  .content-wrapper.top-128 {
    padding-top: 0;
    position: relative;
  }

  ._12-col { justify-content: center; }

  ._12-col.jc-sb,
  ._12-col.jc-sa,
  ._12-col.jc-left {
    flex-direction: column;
    align-items: center;
  }

  .col.desk-5.mob-12 { max-width: 100%; }

  .col.desk-5.mob-12.ac-c {
    flex-direction: column;
    align-items: center;
    display: flex;
  }

  .col.desk-5.mob-10 {
    max-width: 83.3333%;
    margin-top: 32px;
  }

  .col.desk-5.top-32 {
    margin-top: 32px;
    display: block;
  }

  .col.desk-3.tab-4.mob-10 {
    max-width: 83.3333%;
  }

  .col.loc-text { max-width: 83.3333%; }

  .col.desk-3.tab-4.mob-10.ac-c,
  .col.loc-text {
    flex-direction: column;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .col.desk-6 {
    width: 100%;
    max-width: none;
  }

  .col.desk-6.mob-0,
  .col.desk-2.tab-1,
  .col.desk-1 {
    display: none;
  }

  .col.desk-4.mob-10 { max-width: 83.3333%; }
  .col.btm-line-mob { border-bottom: 1px solid #000; }

  .content-block._75 {
    width: 100%;
    padding-bottom: 32px;
  }

  .content-block.pullert {
    background-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
    margin-top: 16px;
    margin-bottom: 32px;
  }

  .h1,
  .h1.big { font-size: 36px; }

  .paragraph.lys,
  .content-block.pullert .paragraph.lys,
  .h2.lys {
    color: var(--black);
  }

  .section-bkg.right {
    width: 100%;
    position: relative;
  }

  .section-bkg.right.gr-nn {
    height: 60vh;
    top: auto;
    bottom: auto;
    right: auto;
  }

  .section-bkg.right.kai {
    background-position: 75%;
    height: 50vh;
  }

  .lottie-animation {
    height: auto;
    position: relative;
  }

  .lottie-animation.desk { display: none; }
  .lottie-animation.mob { display: block; }

  .contact-link { margin-bottom: 16px; }
  .contact-div { flex-direction: column; }

  .tlf-div {
    flex-direction: column;
    align-items: center;
    display: flex;
  }

  .bkg-m-nster {
    width: 100%;
    bottom: 40%;
  }

}
