:root {
  --nav-height: 68px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #333;
  display: flex;
  flex-direction: column; /* <- viktig */
  min-height: 100vh; /* <- viktig for sticky footer */
  padding-top: var(--nav-height);
  box-sizing: border-box;
}

.container {
  flex: 1; /* gjør at innhold tar opp resten av høyden */
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0; /* top:0; left:0; right:0 */
  height: var(--nav-height);
  background: rgba(6, 6, 6, 0.95);
  color: #fff;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 18px rgba(2, 2, 2, 0.45);
  /* Bakgrunnsbilde */
  background-image: url("bilder/nav-1.jpg"); /* legg inn din filsti */
  background-size: cover; /* fyller hele navbaren */
  background-position: center; /* sentrer bildet */
  background-repeat: no-repeat; /* unngå gjentakelser */
}

.topbar__inner {
  width: 92%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50px;
  border: solid 1px white;
  background: linear-gradient(135deg, #151515, #303030);
  font-weight: 600;
  font-family: "Times New Roman", Times, serif;
  font-size: 25px;
  letter-spacing: -2px;
}

.brand__text {
  font-family: "Courier New", Courier, monospace;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.5px;
  opacity: 0.95;
}

/* Menu (desktop) */
.topbar__menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.topbar__links a {
  color: #e6e6e6;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 4px;
  transition: color 0.18s, transform 0.12s;
}

.topbar__links a:hover,
.topbar__links a:focus {
  color: #fff;
  transform: translateY(-2px);
}

.topbar__cta {
  display: inline-block;
  padding: 8px 14px;
  background: linear-gradient(90deg, #111827, #374151);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Hamburger (hidden on desktop) */
.topbar__burger {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.burger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.18s, opacity 0.18s;
}

/* RESPONSIVE */
@media (max-width: 840px) {
  .topbar__links {
    display: none;
  } /* hide desktop links */
  .topbar__menu {
    gap: 8px;
  }
  .topbar__burger {
    display: inline-flex;
    align-items: center;
  }

  /* mobile menu (sliding dropdown) */
  .topbar__menu {
    position: fixed;
    top: var(--nav-height);
    right: 12px;
    background: rgba(8, 8, 8, 0.98);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(2, 2, 2, 0.55);
    display: none;
    flex-direction: column;
    min-width: 180px;
    align-items: stretch;
    transform-origin: top right;
  }

  .topbar__menu.open {
    display: flex;
  }

  .topbar__links.mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 6px;
  }

  .topbar__links.mobile a {
    padding: 8px 6px;
    border-radius: 6px;
  }

  .topbar__cta {
    align-self: stretch;
    text-align: center;
  }
}

/* liten polering for fokus */
a:focus,
button:focus {
  outline: 2px solid rgba(99, 102, 241, 0.14);
  outline-offset: 2px;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
}

.side {
  width: 30%;
  text-align: center;
}

.side h1 {
  font-size: 3.5rem;
  font-weight: bolder;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-family: "Courier New", Courier, monospace;
}

.side p {
  font-size: 1rem;
  color: #666;
}

.image-container {
  display: flex;
  width: 40%;
  max-width: 500px; /* juster etter behov */
  aspect-ratio: 1 / 1; /* gjør den kvadratisk, høyden følger bredden */
  margin: 50px 0px 20px 0px;
}

.image-container .half {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.image-container .half img {
  position: absolute;
  top: 0;
  height: 100%;
}

/* venstre halvdel */
.image-container .left img {
  left: 0; /* viser venstre side av bildet */
  width: auto;
  filter: saturate(1) contrast(4);
  transform: translateX(-5%);
}

/* høyre halvdel */
.image-container .right img {
  right: 0; /* viser høyre side av bildet */
  width: auto;
  filter: grayscale(100%);
  transform: translateX(0%);
}

/* Responsiv for mindre skjermer */
@media (max-width: 840px) {
  .image-container {
    width: 80%; /* tar mer plass på små skjermer */
  }
}

.pre-footer {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  background: #f2f2f2;
  color: #333;
  font-size: 1rem;
  letter-spacing: 1px;
  border: solid 1px rgb(108, 108, 108);
  border-radius: 50px;
  margin: 50px;
  background-image: url("bilder/background-1.jpg");
  background-size: cover; /* dekker hele seksjonen */
  background-position: center; /* sentrer bildet */
  background-repeat: no-repeat; /* unngå gjentakelser */
  background-attachment: fixed; /* bildet ligger stille når du scroller */
  border-radius: 12px;
}

.pre-footer__block {
  flex: 1; /* begge tar lik plass */
  max-width: 600px; /* men ikke uendelig brede */
  text-align: left;
  padding: 20px 40px; /* juster topp/bunn padding */
  position: relative;
}

.pre-footer__block:not(:last-child) {
  border-right: 1px solid #9a9a9a;
}

#info {
  background: #ffffff; /* lys bakgrunn for seksjonen */
  padding: 40px 20px;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#info ul {
  list-style: none; /* fjern punktmerking */
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; /* sentrer horisontalt */
  gap: 40px; /* avstand mellom elementene */
  flex-wrap: wrap; /* bryt til neste linje på små skjermer */
}

#info ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 8px 12px;
  transition: color 0.2s, transform 0.2s;
}

#info ul li a:hover {
  color: #95f71d; /* eksempel farge for hover */
  transform: translateY(-2px);
}

/* Responsivt for mobil */
@media (max-width: 600px) {
  #info ul {
    gap: 20px;
  }
}

.site-footer {
  text-align: center;
  padding: 10px;
  background: #111;
  color: #eee;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  margin-top: 40px;
}
