/* =====================================================
   Aliscon Header v1.1.0
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;600;700;800;900&family=Inter:wght@400;500&display=swap');

:root {
  --ah-orange:    #DB8C28;
  --ah-orange-dk: #C57A1B;
  --ah-navy:      #00192F;
  --ah-border:    rgba(0,25,47,0.1);
  --ah-h:         72px;
  --ah-font:      'Albert Sans', -apple-system, sans-serif;
  --ah-ease:      0.22s ease;
}

/* ── Header ── */
.ah-header {
  width: 100%;
  height: var(--ah-h);
  border-bottom: 1px solid var(--ah-border);
  box-shadow: 0 1px 12px rgba(0,25,47,0.06);
  z-index: 9970;
  font-family: var(--ah-font);
}
.ah-header--sticky { position: sticky; top: 0; }

.ah-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ── Logo ── */
.ah-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.ah-logo__img { display: block; width: auto; object-fit: contain; }
.ah-logo__tekst { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.ah-logo__hoved { font-size: 20px; font-weight: 900; letter-spacing: .04em; line-height: 1; }
.ah-logo__sub   { font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: 0.55; }

/* ── Desktop nav ── */
.ah-nav { flex: 1; display: flex; justify-content: flex-end; }
.ah-nav__liste { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.ah-nav__link {
  display: block; padding: 8px 12px;
  font-size: 14px; font-weight: 600; font-family: var(--ah-font);
  text-decoration: none; border-radius: 8px;
  transition: background var(--ah-ease);
  white-space: nowrap;
}
.ah-nav__link:hover { background: rgba(0,25,47,0.06); }
.ah-nav__link.is-active { color: var(--ah-orange) !important; font-weight: 700; }

/* ── Højre side ── */
.ah-header__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Kurv knap */
.ah-kurv-knap {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ah-orange); color: #fff !important;
  border-radius: 30px; padding: 8px 16px 8px 12px;
  cursor: pointer; font-family: var(--ah-font); font-size: 13px; font-weight: 700;
  transition: background var(--ah-ease), transform var(--ah-ease);
  user-select: none;
}
.ah-kurv-knap svg { width: 16px; height: 16px; flex-shrink: 0; }
.ah-kurv-knap:hover { background: var(--ah-orange-dk); transform: translateY(-1px); }
.ah-kurv-count {
  min-width: 18px; height: 18px; background: #fff; color: var(--ah-orange);
  border-radius: 9px; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}

/* ── Burger — ALTID i DOM, JS og CSS styrer synlighed ──────────
   Standard: SYNLIG (til mobil/tablet som default)
   Desktop (min-width: 961px): SKJULT
   ---------------------------------------------------------------- */
.ah-burger,
.ah-burger:hover,
.ah-burger:focus,
.ah-burger:active,
.elementor .ah-burger,
.elementor .ah-burger:hover {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important; height: 40px !important; padding: 0 !important;
  background: transparent !important; background-color: transparent !important;
  border: none !important; border-radius: 8px !important; box-shadow: none !important;
  cursor: pointer !important; flex-shrink: 0 !important;
  transition: background var(--ah-ease) !important;
  color: inherit !important; text-decoration: none !important;
}
.ah-burger:hover { background: rgba(0,25,47,0.06) !important; background-color: rgba(0,25,47,0.06) !important; }
.ah-burger__bar {
  position: absolute; left: 9px; width: 22px; height: 2px;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.ah-burger__bar:nth-child(1) { top: 13px; }
.ah-burger__bar:nth-child(2) { top: 19px; }
.ah-burger__bar:nth-child(3) { top: 25px; }
.ah-burger.is-open .ah-burger__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ah-burger.is-open .ah-burger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ah-burger.is-open .ah-burger__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobil overlay ── */
.ah-mob-overlay {
  position: fixed; inset: 0; background: rgba(0,25,47,0.45);
  z-index: 9971; opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
.ah-mob-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ── Mobil panel ── */
.ah-mob-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw); background: #fff;
  z-index: 9972; display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 32px rgba(0,25,47,0.15);
  font-family: var(--ah-font);
}
.ah-mob-panel.is-open { transform: translateX(0); }

.ah-mob-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; flex-shrink: 0;
  border-bottom: 1px solid rgba(0,25,47,0.08);
}

/* Mobil luk-knap */
.ah-mob-close,
.ah-mob-close:hover,
.ah-mob-close:focus,
.elementor .ah-mob-close,
.elementor .ah-mob-close:hover {
  width: 32px !important; height: 32px !important; border-radius: 50% !important;
  border: 1.5px solid rgba(0,25,47,0.15) !important;
  background: transparent !important; background-color: transparent !important;
  cursor: pointer !important; display: flex !important;
  align-items: center !important; justify-content: center !important;
  padding: 0 !important; box-shadow: none !important; flex-shrink: 0 !important;
  transition: background 0.18s !important;
}
.ah-mob-close:hover { background: rgba(0,25,47,0.06) !important; background-color: rgba(0,25,47,0.06) !important; }
.ah-mob-close svg { width: 14px; height: 14px; color: var(--ah-navy); display: block; }

/* Mobil liste */
.ah-mob-panel__liste { list-style: none; margin: 0; padding: 8px 0; flex: 1; overflow-y: auto; }
.ah-mob-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; font-size: 15px; font-weight: 600;
  color: var(--ah-navy); text-decoration: none;
  border-bottom: 1px solid rgba(0,25,47,0.07);
  transition: background 0.15s, color 0.15s;
}
.ah-mob-link svg { width: 14px; height: 14px; color: rgba(0,25,47,0.3); flex-shrink: 0; }
.ah-mob-link:hover { background: #EFFAFF; color: var(--ah-orange-dk); }
.ah-mob-link:hover svg { color: var(--ah-orange); }
.ah-mob-link.is-active { color: var(--ah-orange-dk); font-weight: 700; }

/* Kurv i mobil */
.ah-mob-panel__kurv { padding: 16px 20px; border-top: 1px solid rgba(0,25,47,0.08); flex-shrink: 0; }
.ah-mob-kurv-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--ah-orange); color: #fff !important;
  border-radius: 10px; padding: 13px 18px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background 0.18s;
}
.ah-mob-kurv-link svg { width: 18px; height: 18px; }
.ah-mob-kurv-link:hover { background: var(--ah-orange-dk); color: #fff !important; }

/* =====================================================
   RESPONSIV
===================================================== */
/* Desktop: vis nav, SKJUL burger */
@media (min-width: 961px) {
  .ah-nav { display: flex; }
  .ah-burger,
  .elementor .ah-burger {
    display: none !important;
  }
}

/* Tablet/mobil: skjul nav */
@media (max-width: 960px) {
  .ah-nav { display: none; }
  .ah-header__inner { padding: 0 20px; gap: 0; }
  .ah-logo { flex: 1; }
  .ah-header__right { margin-left: auto; gap: 8px; }
  .ah-kurv-label { display: none; }
  .ah-kurv-knap { padding: 8px 10px; }
}

@media (max-width: 480px) {
  .ah-header__inner { padding: 0 16px; }
}

/* Mobil panel footer */
.ah-mob-panel__footer {
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(0,25,47,0.08);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ah-mob-kontakt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.ah-mob-kontakt a {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600;
  color: var(--ah-navy); text-decoration: none;
  font-family: var(--ah-font);
  transition: color var(--ah-ease);
}
.ah-mob-kontakt svg { width: 14px; height: 14px; color: var(--ah-orange); flex-shrink: 0; }
.ah-mob-kontakt a:hover { color: var(--ah-orange-dk); }

/* =====================================================
   DROPDOWN — DESKTOP
===================================================== */
.ah-nav__item {
  position: relative;
}
.ah-nav__link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
}
.ah-nav__caret {
  width: 11px; height: 11px;
  transition: transform var(--ah-ease);
  opacity: 0.6;
}
.ah-nav__item.has-submenu:hover .ah-nav__caret {
  transform: rotate(180deg);
}

.ah-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  list-style: none;
  margin: 0;
  padding: 8px;
  box-shadow: 0 12px 30px rgba(0,25,47,0.12);
  border: 1px solid var(--ah-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9971;
}
.ah-nav__item.has-submenu:hover .ah-dropdown,
.ah-nav__item.has-submenu:focus-within .ah-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* "Bro" mellem hovedpunkt og dropdown så hover ikke afbrydes */
.ah-nav__item.has-submenu::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.ah-dropdown li { margin: 0; }
.ah-dropdown__link {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ah-navy) !important;
  text-decoration: none;
  font-family: var(--ah-font);
  transition: background var(--ah-ease), color var(--ah-ease);
  white-space: nowrap;
}
.ah-dropdown__link:hover {
  background: #FEF3E2;
  color: #C57A1B !important;
}

/* =====================================================
   MOBIL SUBMENU — Expand/collapse
===================================================== */
.ah-mob-item__row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(0,25,47,0.07);
}
.ah-mob-item__row .ah-mob-link {
  flex: 1;
  border-bottom: none;
}
.ah-mob-toggle,
.ah-mob-toggle:hover,
.elementor .ah-mob-toggle {
  width: 52px !important;
  border: none !important;
  border-left: 1px solid rgba(0,25,47,0.07) !important;
  background: transparent !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  color: var(--ah-navy) !important;
  transition: background 0.18s, transform 0.22s !important;
}
.ah-mob-toggle:hover {
  background: rgba(0,25,47,0.04) !important;
  background-color: rgba(0,25,47,0.04) !important;
}
.ah-mob-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}
.ah-mob-toggle.is-open svg {
  transform: rotate(180deg);
}

.ah-mob-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #FAFBFC;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.ah-mob-submenu.is-open {
  max-height: 800px;
}
.ah-mob-sublink {
  display: block;
  padding: 12px 20px 12px 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ah-navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,25,47,0.06);
  transition: background var(--ah-ease), color var(--ah-ease);
  font-family: var(--ah-font);
}
.ah-mob-sublink:hover {
  background: #EFFAFF;
  color: var(--ah-orange-dk);
}
