/* =====================================================================
   PACKELY HEADER & FOOTER  —  packely-header-footer.css
   Bygger udelukkende på Prompt 2's globale tokens (--pk-*). Ingen nye
   farver, fonts, radier, shadows eller knapstile. Breakpoints matcher
   Elementor/Prompt 2: desktop >=1025px, burger <=1024px.
   ===================================================================== */

/* ---------- Header shell (sticky, diskret) ---------- */
.pk-header{ position:sticky; top:0; z-index:1000; background:var(--pk-color-bg); border-bottom:1px solid var(--pk-color-border); }
.pk-header.is-stuck{ box-shadow:var(--pk-shadow-sm); }
.pk-header__inner{ display:flex; align-items:center; gap:var(--pk-space-md); min-height:68px; }
.pk-logo{ font-family:var(--pk-font-heading); font-weight:var(--pk-fw-bold); font-size:1.35rem; letter-spacing:var(--pk-ls-tight); color:var(--pk-color-brand-primary); text-decoration:none; line-height:1; margin-right:auto; }
.pk-logo:hover{ color:var(--pk-color-brand-primary-hover); }

/* ---------- Chevron (delt af trigger + caret) ---------- */
.pk-chevron{ display:inline-block; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform var(--pk-dur) var(--pk-ease); }
[aria-expanded='true'] .pk-chevron{ transform:translateY(1px) rotate(-135deg); }

/* ---------- Desktop navigation ---------- */
.pk-nav{ display:none; }
.pk-menu{ display:flex; align-items:center; gap:2px; list-style:none; margin:0; padding:0; }
.pk-menu > li{ position:relative; }
.pk-menu a,.pk-menu .pk-parent{ display:inline-flex; align-items:center; gap:6px; padding:10px 12px; color:var(--pk-color-text); text-decoration:none; font-family:inherit; font-size:0.975rem; font-weight:var(--pk-fw-medium); border-radius:var(--pk-radius-sm); white-space:nowrap; background:transparent; border:0; cursor:pointer; transition:color var(--pk-dur) var(--pk-ease); }
.pk-menu a:hover,.pk-menu .pk-parent:hover{ color:var(--pk-color-brand-primary); }
.pk-menu .current-menu-item > a,.pk-menu .current-menu-ancestor > a{ color:var(--pk-color-brand-primary); }
.pk-caret{ display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; border-radius:var(--pk-radius-sm); }
.pk-caret:hover{ color:var(--pk-color-brand-primary); }

/* Desktop dropdown */
.pk-menu .sub-menu{ position:absolute; top:calc(100% + 6px); left:0; min-width:236px; list-style:none; margin:0; padding:var(--pk-space-2xs); background:var(--pk-color-surface); border:1px solid var(--pk-color-border); border-radius:var(--pk-radius-md); box-shadow:var(--pk-shadow-lg); opacity:0; visibility:hidden; transform:translateY(6px); transition:opacity var(--pk-dur) var(--pk-ease),transform var(--pk-dur) var(--pk-ease),visibility var(--pk-dur); z-index:20; }
.pk-menu > li:hover > .sub-menu,.pk-menu > li:focus-within > .sub-menu,.pk-menu > li > .sub-menu.is-open{ opacity:1; visibility:visible; transform:translateY(0); }
.pk-menu .sub-menu a{ display:block; padding:9px 12px; font-size:0.94rem; font-weight:var(--pk-fw-regular); color:var(--pk-color-text-secondary); border-radius:var(--pk-radius-sm); }
.pk-menu .sub-menu a:hover{ background:var(--pk-color-bg-subtle); color:var(--pk-color-brand-primary); }

/* ---------- Header actions (desktop) ---------- */
.pk-header__actions{ display:none; align-items:center; gap:var(--pk-space-sm); }
.pk-util{ display:inline-flex; align-items:center; gap:6px; font-size:0.85rem; font-weight:var(--pk-fw-medium); color:var(--pk-color-text-secondary); text-decoration:none; white-space:nowrap; }
.pk-util:hover{ color:var(--pk-color-brand-primary); }
.pk-util svg{ width:16px; height:16px; flex:0 0 auto; }
.pk-header__actions .pk-btn{ white-space:nowrap; }

/* ---------- Burger (tablet + mobil) ---------- */
.pk-burger{ display:inline-flex; flex-direction:column; justify-content:center; gap:5px; width:46px; height:46px; padding:12px; margin-left:auto; border:1px solid var(--pk-color-border); border-radius:var(--pk-radius-sm); background:var(--pk-color-surface); cursor:pointer; }
.pk-burger span{ display:block; height:2px; width:100%; background:var(--pk-color-text); border-radius:2px; }

/* ---------- Breakpoint: desktop >=1025 ---------- */
@media (min-width:1025px){
  .pk-nav{ display:block; }
  .pk-header__actions{ display:flex; }
  .pk-burger{ display:none; }
  .pk-logo{ margin-right:var(--pk-space-lg); }
}

/* ---------- Mobile offcanvas (<=1024) ---------- */
.pk-overlay{ position:fixed; inset:0; background:rgba(15,27,42,.45); opacity:0; visibility:hidden; transition:opacity var(--pk-dur) var(--pk-ease); z-index:1050; }
.pk-overlay.is-open{ opacity:1; visibility:visible; }
.pk-mobile{ position:fixed; top:0; right:0; bottom:0; width:min(92vw,400px); background:var(--pk-color-bg); border-left:1px solid var(--pk-color-border); box-shadow:var(--pk-shadow-lg); transform:translateX(100%); transition:transform var(--pk-dur-slow) var(--pk-ease); z-index:1100; display:flex; flex-direction:column; overflow-y:auto; overscroll-behavior:contain; padding:var(--pk-space-md); visibility:hidden; }
.pk-mobile.is-open{ transform:translateX(0); visibility:visible; }
.pk-mobile__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:var(--pk-space-sm); }
.pk-mobile__brand{ font-family:var(--pk-font-heading); font-weight:var(--pk-fw-bold); font-size:1.2rem; color:var(--pk-color-brand-primary); text-decoration:none; }
.pk-mobile__close{ width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--pk-color-border); border-radius:var(--pk-radius-sm); background:var(--pk-color-surface); color:var(--pk-color-text); font-size:1.4rem; line-height:1; cursor:pointer; }
.pk-mnav{ list-style:none; margin:0 0 var(--pk-space-md); padding:0; }
.pk-mnav > li{ display:flex; flex-wrap:wrap; align-items:center; border-bottom:1px solid var(--pk-color-border); }
.pk-mnav > li > a{ flex:1 1 auto; }
.pk-mnav a{ display:block; padding:14px 4px; color:var(--pk-color-text); text-decoration:none; font-size:1.05rem; font-weight:var(--pk-fw-medium); min-height:44px; }
.pk-mnav .pk-parent{ flex:1 1 100%; display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; padding:14px 4px; min-height:44px; background:transparent; border:0; cursor:pointer; color:var(--pk-color-text); font-family:inherit; font-size:1.05rem; font-weight:var(--pk-fw-medium); text-align:left; }
.pk-mnav .pk-caret{ width:44px; height:44px; }
.pk-mnav .sub-menu{ flex-basis:100%; list-style:none; margin:0; padding:0 0 var(--pk-space-2xs) var(--pk-space-md); display:none; }
.pk-mnav .sub-menu.is-open{ display:block; }
.pk-mnav .sub-menu a{ font-size:0.98rem; padding:11px 4px; color:var(--pk-color-text-secondary); min-height:44px; }
.pk-mobile__util{ display:flex; flex-direction:column; margin-bottom:var(--pk-space-md); }
.pk-mobile__util a{ display:flex; align-items:center; gap:8px; padding:12px 4px; min-height:44px; color:var(--pk-color-text-secondary); text-decoration:none; font-weight:var(--pk-fw-medium); }
.pk-mobile__util a:hover{ color:var(--pk-color-brand-primary); }
.pk-mobile__util svg{ width:18px; height:18px; }
.pk-mobile__cta{ display:flex; flex-direction:column; gap:var(--pk-space-2xs); margin-top:auto; padding-top:var(--pk-space-sm); }
body.pk-nav-open{ overflow:hidden; }

/* ---------- Footer ---------- */
.pk-footer{ background:var(--pk-color-bg-dark); color:var(--pk-color-on-dark); padding-block:var(--pk-space-3xl) var(--pk-space-lg); }
.pk-footer a{ color:var(--pk-color-on-dark-secondary); text-decoration:none; transition:color var(--pk-dur) var(--pk-ease); }
.pk-footer a:hover{ color:#FFFFFF; }
.pk-footer__top{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 0.9fr; gap:var(--pk-space-xl); }
.pk-footer__brand p{ color:var(--pk-color-on-dark-secondary); font-size:var(--pk-fs-body-sm); max-width:36ch; margin:var(--pk-space-sm) 0; line-height:1.6; }
.pk-footer__logo{ font-family:var(--pk-font-heading); font-weight:var(--pk-fw-bold); font-size:1.35rem; letter-spacing:var(--pk-ls-tight); color:#FFFFFF; }
.pk-footer address{ font-style:normal; color:var(--pk-color-on-dark-secondary); font-size:var(--pk-fs-body-sm); line-height:1.7; }
.pk-footer__col h3{ font-size:0.78rem; text-transform:uppercase; letter-spacing:var(--pk-ls-label); color:var(--pk-color-on-dark); margin:0 0 var(--pk-space-sm); font-weight:var(--pk-fw-semibold); }
.pk-footer__col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.pk-footer__col a{ font-size:var(--pk-fs-body-sm); }
.pk-footer__bottom{ display:flex; align-items:center; justify-content:space-between; gap:var(--pk-space-md); flex-wrap:wrap; margin-top:var(--pk-space-2xl); padding-top:var(--pk-space-lg); border-top:1px solid rgba(255,255,255,.12); }
.pk-footer__legal{ display:flex; gap:var(--pk-space-md); flex-wrap:wrap; list-style:none; margin:0; padding:0; }
.pk-footer__legal a{ font-size:var(--pk-fs-caption); }
.pk-footer__copy{ font-size:var(--pk-fs-caption); color:var(--pk-color-on-dark-secondary); }

@media (max-width:1024px){
  .pk-footer__top{ grid-template-columns:1fr 1fr 1fr; }
  .pk-footer__brand{ grid-column:1 / -1; }
}
@media (max-width:767px){
  .pk-footer__top{ grid-template-columns:1fr 1fr; gap:var(--pk-space-lg); }
  .pk-footer__brand{ grid-column:1 / -1; }
  .pk-footer__bottom{ flex-direction:column; align-items:flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .pk-menu .sub-menu,.pk-mobile,.pk-overlay,.pk-chevron,.pk-header{ transition:none !important; }
}
