/* ----------------------------------
   HEADER – Sørsia Fysioterapi
----------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Header inner */
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem; /* kun horisontal padding */
}

/* ----------------------------------
   LOGO
----------------------------------- */

.logo a {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  display: block;
  height: 42px;
  width: auto;
}

/* ----------------------------------
   DESKTOP NAVIGATION
----------------------------------- */

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative; /* VIKTIG */
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: var(--blue-dark);
}

.main-nav a.active {
  color: var(--blue);
  font-weight: 600;
}
.main-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:100%;
  height:2px;
  background:transparent;
  border-radius:2px;
}

.main-nav a.active::after{
  background: var(--blue);
}

/* "Bestill time"-knapp i header */
.btn-nav {
  padding: 0.55rem 1.1rem;
  background: var(--blue);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.btn-nav::after {
  display: none;
}

.btn-nav:hover {
  background: var(--blue-dark);
}

/* ----------------------------------
   MOBILE MENU TOGGLE
----------------------------------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 999px;
  transition: 0.2s ease;
}

/* ----------------------------------
   MOBILE NAVIGATION
----------------------------------- */

@media (max-width: 800px) {

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  }

  .main-nav.open {
    display: block;
    animation: fadeSlide 0.25s ease forwards;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }

  .btn-nav {
    width: 100%;
    text-align: center;
  }
}

/* Mobil logo-størrelse */
@media (max-width: 768px) {
  .logo img {
    height: 36px;
  }
}

/* ----------------------------------
   HAMBURGER → X
----------------------------------- */

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
