
/* ==========================================
   BOX800 - SAMEIGINLEG VALMYND
   ========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(9, 11, 13, 0.96);
  border-bottom: 1px solid #343b42;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

/* HEADER */

.site-header .nav-wrap {
  width: min(calc(100% - 44px), 1200px);
  min-height: 80px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* LOGO */

.site-header .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .brand-logo {
  display: block;
  width: 110px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

/* VALMYND */

.site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 0;
}

.site-header .main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  text-decoration: none;

  font-family: Inter, Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-transform: uppercase;

  white-space: nowrap;
  flex-shrink: 0;
}

.site-header .main-nav a:hover {
  color: #c6ccd6;
}

/* KAUPA KORT - GRÁR TAKKI */

.site-header .main-nav .nav-cta {
  background: #c6ccd6;
  color: #090b0d;
  padding: 14px 15px;
  white-space: nowrap;
}

.site-header .main-nav .nav-cta:hover {
  background: #e6e9ef;
  color: #090b0d;
}

/* HAMBURGER FALINN Á TÖLVU */

.site-header .menu-toggle {
  display: none;
}

/* MINNI TÖLVUSKJÁIR */

@media (max-width: 900px) and (min-width: 761px) {

  .site-header .nav-wrap {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .site-header .brand-logo {
    width: 90px;
  }

  .site-header .main-nav {
    gap: 7px;
  }

  .site-header .main-nav a {
    font-size: 10.5px;
    letter-spacing: 0;
  }

  .site-header .main-nav .nav-cta {
    padding: 12px 10px;
  }
}

/* FARSÍMAR */

@media (max-width: 760px) {

  .site-header .nav-wrap {
    width: calc(100% - 32px);
    min-height: 70px;
  }

  .site-header .brand-logo {
    width: 102px;
  }

  /* HAMBURGER */

  .site-header .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 44px;
    height: 44px;
    padding: 10px;

    background: transparent;
    border: 1px solid #65707a;
    cursor: pointer;
    flex-shrink: 0;
  }

  .site-header .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
  }

  /* FELLIVALMYND */

  .site-header .main-nav {
    display: none;
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    width: 100%;
    padding: 22px 20px;

    background: #101419;
    border-bottom: 1px solid #343b42;

    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header .main-nav.is-open {
    display: flex;
  }

  .site-header .main-nav a {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: 14px 10px;

    font-size: 14px;
    letter-spacing: 0.6px;
    white-space: normal;
  }

  /* KAUPA KORT Í FARSÍMAVALMYND */

  .site-header .main-nav .nav-cta {
    justify-content: center;
    margin-top: 12px;
    padding: 16px 20px;
    text-align: center;
  }
}

/* LITLIR FARSÍMAR */

@media (max-width: 480px) {

  .site-header .nav-wrap {
    width: calc(100% - 28px);
  }

  .site-header .brand-logo {
    width: 100px;
  }
}

/* ==========================================
   BOX800 - SAMRÆMDUR HEADER Á ÖLLUM SÍÐUM
   ========================================== */

.site-header .header-container {
  padding: 0;
  max-width: none;
}

.site-header .header-container > a:first-child {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
/* ==========================================
   BOX800 - LANGUAGE SWITCH
========================================== */

.site-header .language-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  margin-left: 5px;
}

.site-header .language-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 7px 2px;
  color: #929aa5;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-header .language-switch button:hover,
.site-header .language-switch button.is-active {
  color: #ffffff;
}

.site-header .language-switch span {
  color: #65707a;
  font-size: 12px;
}

@media (max-width: 760px) {

  .site-header .language-switch {
    justify-content: flex-start;
    margin: 16px 0 0;
    padding: 12px 10px;
    border-top: 1px solid #343b42;
  }

  .site-header .language-switch button {
    font-size: 15px;
    padding: 8px 5px;
  }

}