*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

nav#mainNav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  transform: none !important;
  will-change: auto !important;
}

:root {
  --black: #0a0a08;
  --deep: #111110;
  --mid: #1c1c1a;
  --surface: #242422;
  --line: rgba(255, 255, 255, 0.07);
  --line-warm: rgba(210, 185, 140, 0.15);
  --cream: #e8e0d0;
  --cream-2: #c4b99a;
  --cream-3: #7a7060;
  --gold: #c9a96e;
  --gold-lt: #e0c48a;
  --gold-dk: #8a6e3a;
  --copper: #c45c1a;
  --copper-lt: #e07030;
  --copper-dk: #8a3e0e;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
}

/* ── Custom cursor ── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 169, 110, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.3s;
}

.cursor.hover { width: 14px; height: 14px; }
.cursor-ring.hover { width: 56px; height: 56px; opacity: 0.4; }

/* ── Nav base ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  background: rgba(10, 10, 8, 0.96);
  backdrop-filter: blur(20px) saturate(120%);
  border-bottom: 1px solid var(--line-warm);
}

nav.scrolled {
  background: rgba(10, 10, 8, 0.98);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
  color: var(--cream) !important;
  letter-spacing: 0.1em;
  font-weight: 300;
}

.nav-logo-text span {
  color: var(--gold) !important;
}

/* ── Desktop nav links ── */
.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-2);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }

/* ── Dropdown ── */
.nav-has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-2);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  line-height: 1;
  vertical-align: middle;
}

.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.nav-has-dropdown:hover .nav-dropdown-trigger,
.nav-has-dropdown.open .nav-dropdown-trigger { color: var(--cream); }

.nav-has-dropdown:hover .nav-dropdown-trigger::after,
.nav-has-dropdown.open .nav-dropdown-trigger::after { width: 100%; }

.nav-chevron {
  width: 11px;
  height: 11px;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
  margin-top: 1px;
}

.nav-has-dropdown:hover .nav-chevron,
.nav-has-dropdown.open .nav-chevron { transform: rotate(180deg); }

.nav-has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 28px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 28px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 320px;
  background: rgba(16, 13, 10, 0.98);
  border: 1px solid var(--line-warm);
  backdrop-filter: blur(24px) saturate(120%);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  z-index: 9999;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 6px;
  background: rgba(16, 13, 10, 0.98);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.open .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  text-decoration: none;
  border-radius: 1px;
  transition: background 0.2s;
  border-bottom: 1px solid var(--line);
}

.nav-dropdown-item:last-child { border-bottom: none; }
.nav-dropdown-item:hover { background: rgba(201, 169, 110, 0.06); }

.ndi-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  transition: border-color 0.2s, background 0.2s;
}

.nav-dropdown-item:hover .ndi-icon {
  border-color: rgba(201, 169, 110, 0.4);
  background: rgba(201, 169, 110, 0.06);
}

.ndi-icon svg { width: 16px; }

.ndi-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ndi-title {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.2s;
}

.nav-dropdown-item:hover .ndi-title { color: var(--gold); }

.ndi-desc {
  font-size: 0.72rem;
  color: var(--cream-3);
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 300;
}

/* ── Mobile dropdown accordion ── */
.mobile-dropdown-wrap { position: relative; }

.mobile-dropdown-trigger {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--cream);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  transition: color 0.3s;
  text-align: left;
}

.mobile-dropdown-trigger:hover { color: var(--gold); }

.mobile-chevron {
  width: 24px;
  height: 24px;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.mobile-dropdown-trigger[aria-expanded="true"] .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-dropdown-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-dropdown-items.open { max-height: 400px; }

.mobile-dropdown-items a {
  font-family: var(--sans) !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-2) !important;
  text-decoration: none;
  display: block;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, background 0.2s;
}

.mobile-dropdown-items a:hover {
  color: var(--gold) !important;
  background: rgba(201, 169, 110, 0.04);
}

.mobile-dropdown-items a:last-child { border-bottom: none; }

/* ── Nav actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: -48px;
}

.nav-cta {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 13px 28px;
  border: 1px solid rgba(201, 169, 110, 0.35);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgba(201, 169, 110, 0.08);
  color: var(--cream);
  border-color: rgba(201, 169, 110, 0.6);
}

.nav-ring {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  padding: 10px 48px 10px 24px;
  background: var(--gold);
  border: 1px solid var(--gold);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.nav-ring svg { width: 13px; flex-shrink: 0; }
.nav-ring:hover { background: var(--gold-lt); border-color: var(--gold-lt); }

.nav-ring__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.nav-ring__number {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--black);
  opacity: 0.7;
  margin-top: 2px;
}


/* ── Mobil handlinger i header: telefon + burger ── */
.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-mobile-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201, 169, 110, 0.38);
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.07);
  flex-shrink: 0;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}

.nav-mobile-phone svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.nav-mobile-phone:hover {
  color: var(--cream);
  border-color: rgba(201, 169, 110, 0.68);
  background: rgba(201, 169, 110, 0.12);
}

.nav-mobile-phone:active {
  transform: scale(0.94);
}

/* ── Floating call-knap – tidligere mobil-FAB. Skjules, fordi telefon ligger i headeren. ── */
.mobile-call-fab {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-call-fab {
    display: none !important;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 99998;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--black);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 0 rgba(201,169,110,0.4);
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
    animation: fab-pulse 2.8s ease-in-out infinite;
  }

  .mobile-call-fab:active {
    transform: scale(0.93);
    background: var(--gold-lt);
  }

  .mobile-call-fab svg {
    width: 24px;
    height: 24px;
  }
}

@keyframes fab-pulse {
  0%   { box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 0 rgba(201,169,110,0.45); }
  60%  { box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 12px rgba(201,169,110,0); }
  100% { box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 0 rgba(201,169,110,0); }
}

/* ── Burger button ── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--cream);
  transition: all 0.4s var(--ease);
}

/* ── Mobile menu close button ── */
.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--cream-2);
  transition: color 0.3s;
  line-height: 1;
}

.mobile-menu-close:hover { color: var(--gold); }
.mobile-menu-close svg { display: block; width: 28px; height: 28px; }

/* ── Mobile menu fullscreen overlay ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999999;
  padding: 100px 48px 60px;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--cream);
  text-decoration: none;
  display: block;
  line-height: 1.3;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  transition: color 0.3s, padding 0.3s;
}

.mobile-menu a:hover {
  color: var(--gold);
  padding-left: 12px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════ */

@media (max-width: 1100px) {
  nav { padding: 0 32px; }
  .nav-actions { margin-right: -32px; }
  .nav-links { gap: 28px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }

  .nav-inner {
    height: 74px;
    gap: 12px;
  }

  .nav-logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-logo-text {
    font-size: 1.18rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .nav-links,
  .nav-actions { display: none !important; }

  .nav-mobile-actions { display: flex !important; }

  .nav-burger {
    display: flex !important;
    margin-left: 0;
    flex-shrink: 0;
  }

  .mobile-menu { padding: 90px 24px 48px; }
}

/* ── reCAPTCHA footer-tekst ── */
.footer-recaptcha {
  text-align: center;
  font-size: 0.68rem;
  color: var(--cream-3);
  opacity: 0.6;
  padding: 12px 24px 16px;
  letter-spacing: 0.04em;
}
.footer-recaptcha a {
  color: var(--cream-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-recaptcha a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════
   RECAPTCHA – skjul badge (tekst-alternativ i footer)
══════════════════════════════════════════════ */
.grecaptcha-badge,
[class*="grecaptcha-badge"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* ══════════════════════════════════════════════
   COMPLIANZ – "Administrer samtykke" knap
══════════════════════════════════════════════ */

#cmplz-manage-consent {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 99990 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  pointer-events: auto !important;
}

#cmplz-manage-consent .cmplz-manage-consent,
button.cmplz-manage-consent {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  background: #2b2b29 !important;
  color: #b3b3b3 !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
  font-family: var(--sans) !important;
  font-size: 0.64rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: initial !important;
  transform: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease !important;
}

#cmplz-manage-consent .cmplz-manage-consent:hover,
button.cmplz-manage-consent:hover {
  background: #353533 !important;
  color: #d2d2d2 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Mobil / iPhone */
@media (max-width: 768px) {
  #cmplz-manage-consent {
    right: 10px !important;
    left: auto !important;
    top: auto !important;
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
  }

  #cmplz-manage-consent .cmplz-manage-consent,
  button.cmplz-manage-consent {
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    min-height: 0 !important;
    padding: 6px 14px !important;
    font-size: 0.55rem !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.30) !important;
  }
}

/* Små mobiler */
@media (max-width: 420px) {
  #cmplz-manage-consent {
    right: 8px !important;
    bottom: max(4px, env(safe-area-inset-bottom)) !important;
    max-width: calc(100vw - 16px) !important;
  }

  #cmplz-manage-consent .cmplz-manage-consent,
  button.cmplz-manage-consent {
    max-width: calc(100vw - 16px) !important;
    padding: 5px 12px !important;
    font-size: 0.53rem !important;
    letter-spacing: 0.12em !important;
  }
}

/* Små mobiler */
@media (max-width: 420px) {
  #cmplz-manage-consent {
    right: 12px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  #cmplz-manage-consent .cmplz-manage-consent,
  button.cmplz-manage-consent {
    max-width: calc(100vw - 24px) !important;
    padding: 11px 13px !important;
    font-size: 0.54rem !important;
    letter-spacing: 0.12em !important;
  }
}

/* ══════════════════════════════════════════════
   V5 FINAL – mobil header + reCAPTCHA badge
   Formål:
   1) Kun ét telefonikon på mobil
   2) Telefonikonet placeres centreret mellem logo og burgermenu
   3) Gammel fallback-telefon skjules hvis browsercache stadig har markup
   4) Kun Google reCAPTCHA badge skjules
   5) Complianz "Administrer samtykke" bevares og styles af eksisterende CSS ovenfor
══════════════════════════════════════════════ */

/* Gammel fallback fra tidligere version må aldrig vises */
.jc-header-phone-fallback {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Skjul kun Google reCAPTCHA badge. Complianz-knappen må ikke skjules. */
.grecaptcha-badge,
[class*="grecaptcha-badge"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -999999px !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  transform: none !important;
}

/* Desktop/tablet over mobil: telefonikonet i mobil-headeren skjules */
.nav-mobile-actions,
.nav-mobile-phone {
  display: none;
}

@media (max-width: 768px) {
  nav#mainNav,
  nav {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .nav-inner {
    display: grid !important;
    grid-template-columns: auto minmax(120px, 1fr) !important;
    align-items: center !important;
    height: 80px !important;
    gap: 0 !important;
  }

  .nav-logo {
    grid-column: 1 !important;
    justify-self: start !important;
    min-width: 0 !important;
  }

  .nav-logo-text {
    white-space: nowrap !important;
  }

  .nav-links,
  .nav-actions {
    display: none !important;
  }

  .nav-mobile-actions {
    grid-column: 2 !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    justify-self: stretch !important;
    width: 100% !important;
    margin-left: 18px !important;
    gap: 0 !important;
  }

  .nav-mobile-phone {
    display: inline-flex !important;
    justify-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    color: var(--gold) !important;
    text-decoration: none !important;
    border: 1px solid rgba(201, 169, 110, 0.38) !important;
    border-radius: 50% !important;
    background: rgba(201, 169, 110, 0.07) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .nav-mobile-phone svg {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    flex-shrink: 0 !important;
  }

  .nav-mobile-phone:active {
    transform: scale(0.94) !important;
  }

  .nav-burger {
    display: flex !important;
    justify-self: end !important;
    align-self: center !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .mobile-call-fab {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 420px) {
  nav#mainNav,
  nav {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .nav-mobile-actions {
    margin-left: 12px !important;
  }

  .nav-mobile-phone {
    width: 40px !important;
    height: 40px !important;
  }

  .nav-mobile-phone svg {
    width: 18px !important;
    height: 18px !important;
  }
}
