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

:root {
  --sttbm-green:   #1f2a18;
  --sttbm-green-2: #2a3820;
  --sttbm-cream:   #f1ece1;
  --sttbm-accent:  #9bb37a;
  --sttbm-line:    rgba(241, 236, 225, 0.16);
  --sttbm-sans:    'Manrope', system-ui, Arial, sans-serif;
  --sttbm-ease:    cubic-bezier(.22, 1, .36, 1);
}

/* ===== Trigger (hamburger) ===== */
.sttbm-trigger,
.sttbm-trigger:hover,
.sttbm-trigger:focus,
.sttbm-trigger:active {
  display: -webkit-inline-flex;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  width: auto;
  height: auto;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
  color: #1f2a18 !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: transparent;
}

.sttbm-burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 28px;
}

.sttbm-burger span {
  display: block;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--sttbm-ease), width .3s var(--sttbm-ease);
}

.sttbm-burger span:nth-child(2) { width: 68%; }
.sttbm-burger span:nth-child(3) { width: 84%; }

/* Hvid variant — til transparent header på forsiden */
.sttbm-trigger.sttbm-trigger-white,
.sttbm-trigger.sttbm-trigger-white:hover,
.sttbm-trigger.sttbm-trigger-white:focus,
.sttbm-trigger.sttbm-trigger-white:active {
  color: #ffffff !important;
}

/* ===== Overlay ===== */
.sttbm-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 18, 12, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.sttbm-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== Panel ===== */
.sttbm-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background:
    radial-gradient(circle at 82% 12%, rgba(155, 179, 122, 0.10), transparent 38%),
    linear-gradient(180deg, var(--sttbm-green-2), var(--sttbm-green));
  color: var(--sttbm-cream);
  font-family: var(--sttbm-sans);
  transform: translateY(-18px) scale(.985);
  opacity: 0;
  transition: transform .48s var(--sttbm-ease), opacity .35s ease;
  overflow-y: auto;
}

.sttbm-overlay.is-open .sttbm-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ===== Topbar + luk-knap ===== */
.sttbm-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: calc(28px + env(safe-area-inset-top)) 32px 0;
}

.sttbm-close,
.sttbm-close:hover,
.sttbm-close:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(241, 236, 225, 0.22) !important;
  background: transparent !important;
  color: var(--sttbm-accent) !important;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .25s var(--sttbm-ease), background .25s var(--sttbm-ease);
}

.sttbm-close:hover { border-color: rgba(241, 236, 225, 0.45) !important; }
.sttbm-close svg { width: 26px; height: 26px; display: block; }

/* ===== Indhold ===== */
.sttbm-inner {
  flex: 1;
  padding: clamp(52px, 8vh, 78px) 28px 16px;
}

.sttbm-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--sttbm-line);
}

.sttbm-link,
.sttbm-link:hover,
.sttbm-link:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--sttbm-line);
  color: var(--sttbm-cream) !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translateY(12px);
}

.sttbm-overlay.is-open .sttbm-link { animation: sttbmIn .42s var(--sttbm-ease) forwards; }
.sttbm-overlay.is-open .sttbm-link:nth-child(1) { animation-delay: .08s; }
.sttbm-overlay.is-open .sttbm-link:nth-child(2) { animation-delay: .13s; }
.sttbm-overlay.is-open .sttbm-link:nth-child(3) { animation-delay: .18s; }
.sttbm-overlay.is-open .sttbm-link:nth-child(4) { animation-delay: .23s; }
.sttbm-overlay.is-open .sttbm-link:nth-child(5) { animation-delay: .28s; }
.sttbm-overlay.is-open .sttbm-link:nth-child(6) { animation-delay: .33s; }

@keyframes sttbmIn {
  to { opacity: 1; transform: translateY(0); }
}

.sttbm-link span {
  font-family: var(--sttbm-sans);
  font-size: clamp(34px, 9.5vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}

.sttbm-link svg {
  width: 26px;
  height: 26px;
  color: var(--sttbm-accent);
  flex: 0 0 auto;
  transition: transform .25s var(--sttbm-ease);
}

.sttbm-link:active svg { transform: translateX(5px); }

/* ===== Footer ===== */
.sttbm-footer {
  padding: 30px 28px calc(34px + env(safe-area-inset-bottom));
}

.sttbm-cta-btn,
.sttbm-cta-btn:hover,
.sttbm-cta-btn:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  background: var(--sttbm-cream) !important;
  color: var(--sttbm-green) !important;
  border: 0;
  text-decoration: none !important;
  font-family: var(--sttbm-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  -webkit-tap-highlight-color: transparent;
  transition: background .25s var(--sttbm-ease), color .25s var(--sttbm-ease);
}

.sttbm-cta-btn:hover {
  background: var(--sttbm-accent) !important;
  color: var(--sttbm-green) !important;
}

.sttbm-cta-btn svg { width: 18px; height: 18px; }

.sttbm-footer p {
  margin: 16px 0 0;
  text-align: center;
}

.sttbm-footer p a,
.sttbm-footer p a:hover,
.sttbm-footer p a:focus {
  color: rgba(241, 236, 225, 0.68) !important;
  text-decoration: none !important;
  font-size: 13px;
}

/* ===== Body-lås når menuen er åben ===== */
body.sttbm-menu-open { overflow: hidden; }

/* ===== Fuld viewport-højde på mobil ===== */
@media (max-width: 767px) {
  .sttbm-panel {
    height: 100dvh;
    min-height: 100dvh;
  }
  .sttbm-footer {
    padding: 24px 28px calc(40px + env(safe-area-inset-bottom));
  }
}
