/* =========================================================
   LUNCHPORTALEN HEADER – APPLE GLASS FINAL
========================================================= */

.lp-header{
  position:fixed;
  top:12px;
  left:10px;
  right:10px;
  z-index:99999;
  height:66px;
  width:auto;
  margin:0;
  border-radius:20px;
  overflow:visible;
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.58));
  border:1px solid rgba(255,255,255,.72);
  backdrop-filter:blur(22px) saturate(1.3);
  -webkit-backdrop-filter:blur(22px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(255,255,255,.25),
    0 18px 50px rgba(0,0,0,.14);
  transition:
    transform .3s cubic-bezier(.22,.61,.36,1),
    background-color .25s ease,
    box-shadow .25s ease;
}

.lp-header::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.74), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.32), rgba(255,255,255,.08));
  opacity:.62;
  pointer-events:none;
}

.lp-header::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:rgba(0,0,0,.07);
  pointer-events:none;
}

.lp-header.scrolled{
  background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(255,255,255,.66));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(255,255,255,.30),
    0 22px 58px rgba(0,0,0,.16);
}

.lp-header--hidden{
  transform:translateY(-120%);
}

/* =========================================================
   INNER
========================================================= */

.lp-header__inner{
  width:100%;
  max-width:1320px;
  height:66px;
  margin:0 auto;
  padding:0 clamp(20px,4vw,48px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  position:relative;
  z-index:2;
}

/* =========================================================
   LOGO
========================================================= */

.lp-header__logo,
.lp-logo{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:#111;
  font-size:16px;
  font-weight:900;
  letter-spacing:-.03em;
  white-space:nowrap;
}

.lp-logo-img{
  display:block;
  height:110px;
  width:auto;
  max-width:210px;
  object-fit:contain;
}

/* =========================================================
   NAV
========================================================= */

.lp-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1;
}

.lp-nav__list{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  list-style:none;
  margin:0;
  padding:0;
}

.lp-nav__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:38px;
  padding:0 14px;
  border-radius:10px;
  background:transparent;
  font-size:14px;
  font-weight:650;
  color:rgba(17,17,17,.68);
  text-decoration:none;
  transition:
    color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.lp-nav__link:hover{
  color:#111;
  background:rgba(255,255,255,.50);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 8px 18px rgba(0,0,0,.04);
}

.lp-nav__link.is-active{
  color:#111;
  background:rgba(255,255,255,.74);
  font-weight:800;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 8px 22px rgba(0,0,0,.08);
}

/* =========================================================
   ACTIONS
========================================================= */

.lp-header__actions,
.lp-header__right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}

.lp-header__login,
.lp-btn--ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  min-height:40px;
  padding:0 18px;
  border-radius:999px;
  background:rgba(17,17,17,.86);
  color:#fff;
  font-size:13.5px;
  font-weight:800;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 8px 22px rgba(0,0,0,.18);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.lp-header__login::before,
.lp-btn--ghost::before{
  content:"✓";
  margin-right:8px;
  font-size:11px;
  opacity:.8;
}

.lp-header__login:hover,
.lp-btn--ghost:hover{
  transform:translateY(-2px);
  background:rgba(17,17,17,.94);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 14px 30px rgba(0,0,0,.25);
}

.lp-header__cta,
.lp-btn--primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  height:40px;
  min-height:40px;
  padding:0 18px;
  border-radius:999px;
  background:var(--ds-accent,#f5b400);
  color:#111;
  font-size:13.5px;
  font-weight:850;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 14px 32px rgba(245,180,0,.28);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.lp-header__cta:hover,
.lp-btn--primary:hover{
  transform:translateY(-2px);
  background:var(--ds-accent-hover,#e2a600);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 16px 36px rgba(245,180,0,.38);
}

.lp-header__cta svg{
  opacity:.75;
  transition:
    transform .18s ease,
    opacity .18s ease;
}

.lp-header__cta:hover svg{
  transform:translateX(2px);
  opacity:1;
}

/* =========================================================
   HAMBURGER + MOBILMENY – skjult på desktop
========================================================= */

.lp-hamburger{
  display:none;
}

.lp-mobile-menu{
  display:none;
}

/* =========================================================
   HERO COMPENSATION
========================================================= */

body{
  padding-top:0 !important;
  margin-top:0 !important;
}

main,
.ds-page{
  padding-top:0 !important;
  margin-top:0 !important;
}

.ds-hero{
  margin-top:-82px !important;
  padding-top:82px !important;
}

.ds-hero__content{
  padding-top:calc(var(--ds-hero-y) + 76px) !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:860px){

  .lp-header{
    top:calc(env(safe-area-inset-top) + 10px);
    left:16px;
    right:16px;
    height:62px;
    border-radius:28px;
  }

  .lp-header::before{
    border-radius:28px;
  }

  .lp-header__inner{
    height:62px;
    padding:0 14px 0 18px;
    gap:14px;
  }

  .lp-logo-img{
    height:110px;
    max-width:180px;
  }

  /* Skjul desktop-nav og knapper */
  .lp-nav,
  .lp-header__login,
  .lp-btn--ghost,
  .lp-header__cta,
  .lp-btn--primary{
    display:none;
  }

  .lp-header__actions,
  .lp-header__right{
    margin-left:auto;
    gap:0;
  }

  /* ── Hamburger ── */
  .lp-hamburger{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    width:43px;
    height:43px;
    padding:0;
    border-radius:13px;
    border:1px solid rgba(255,255,255,.72);
    background:rgba(255,255,255,.24);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.78),
      0 8px 24px rgba(0,0,0,.10);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
  }

  .lp-hamburger span{
    display:block;
    width:18px;
    height:2px;
    border-radius:999px;
    background:#111;
    transition:
      transform .22s ease,
      opacity .18s ease;
  }

  /* Animasjon når åpen */
  .lp-hamburger[aria-expanded="true"] span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }

  .lp-hamburger[aria-expanded="true"] span:nth-child(2){
    opacity:0;
  }

  .lp-hamburger[aria-expanded="true"] span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }

  /* ── Mobilmeny ── */
  .lp-mobile-menu{
    display:block;
    position:fixed;
    top:calc(env(safe-area-inset-top) + 84px);
    left:16px;
    right:16px;
    z-index:99998;
    padding:18px;
    border-radius:26px;
    background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(245,245,242,.92));
    border:1px solid rgba(255,255,255,.72);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.92),
      0 24px 70px rgba(0,0,0,.22);
    backdrop-filter:blur(24px) saturate(1.45);
    -webkit-backdrop-filter:blur(24px) saturate(1.45);
    /* Lukket tilstand */
    opacity:0;
    pointer-events:none;
    transform:translateY(-8px) scale(.98);
    transform-origin:top center;
    transition:
      opacity .22s ease,
      transform .22s ease;
  }

  /* Åpen tilstand – trigges av JS via is-menu-open på header */
  .lp-header.is-menu-open .lp-mobile-menu{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0) scale(1);
  }

  .lp-mobile-menu__nav{
    display:grid;
    gap:8px;
  }

  .lp-mobile-menu__link{
    display:flex;
    align-items:center;
    min-height:48px;
    padding:0 14px;
    border-radius:16px;
    color:#111;
    text-decoration:none;
    font-size:17px;
    font-weight:780;
    letter-spacing:-.02em;
    transition:
      background-color .16s ease,
      color .16s ease,
      transform .16s ease;
  }

  .lp-mobile-menu__link:hover{
    background:rgba(17,17,17,.04);
  }

  .lp-mobile-menu__link:active{
    transform:scale(.985);
    background:rgba(245,180,0,.14);
  }

  .lp-mobile-menu__link.is-active{
    color:#111;
    background:rgba(245,180,0,.18);
  }

  .lp-mobile-menu__login,
  .lp-mobile-menu__cta{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    margin-top:8px;
    padding:0 18px;
    border-radius:999px;
    text-decoration:none;
    font-size:16px;
    font-weight:850;
    letter-spacing:-.02em;
  }

  .lp-mobile-menu__login{
    margin-top:16px;
    background:rgba(17,17,17,.08);
    color:#111;
  }

  .lp-mobile-menu__login::before{
    content:"✓";
    margin-right:8px;
    font-size:12px;
    opacity:.75;
  }

  .lp-mobile-menu__cta{
    background:var(--ds-accent,#f5b400);
    color:#111;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.34),
      0 14px 32px rgba(245,180,0,.28);
  }

  /* Hero-kompensasjon mobil */
  .ds-hero{
    margin-top:-78px !important;
    padding-top:78px !important;
  }

  .ds-hero__content{
    padding-top:calc(var(--ds-hero-y) + 62px) !important;
  }
}

/* =========================================================
   DESKTOP SAFETY
========================================================= */

@media(min-width:861px){
  .lp-hamburger,
  .lp-mobile-menu{
    display:none !important;
  }
}
.lp-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(247, 245, 241, 0) 0%,
        rgba(247, 245, 241, 0.94) 78%,
        rgba(247, 245, 241, 1.00) 100%
    );
}