/* =====================================================================
   hero-futuristic.css — den futuristiske 3D-hero (feature flag — kan fjernes)
   ---------------------------------------------------------------------
   HVER regel her er scoped til .hero-futuristic eller #hero-flag-knap.
   Filen må ALDRIG style noget globalt — styles.css og theme-alpine.css
   er bevidst urørte. Rollback: se kommentaren i kode/hero-flag.js.
   ===================================================================== */

/* `display` på sektionen ville ellers vinde over hidden-attributten */
.hero-futuristic[hidden] { display: none !important; }

.hero-futuristic {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #eef7f1;
  padding: 72px 0 120px;
  min-height: min(86vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Nattehimmel over alperne: dyb grøn-blå — guldet får lov at lyse */
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(212, 175, 55, .16), transparent 60%),
    linear-gradient(180deg, #06131a 0%, #0a1f24 42%, #0f3d33 100%);
}

/* ---------- Baggrund: parallakse-lag (alper fra Higgsfield) ---------- */
.hf-baggrund { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hf-lag {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -2%;
  height: 62%;
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}
/* Fotorealistiske alper fra Higgsfield (assets/hero3d/alper.webp, 93 KB).
   Stien er relativ til DENNE fil (kode/), derfor ../assets — uafhængig af
   base-tag. Toppen af fotoet tones ind i heroens egen himmel. */
.hf-lag-foto {
  height: 78%;
  background-image: url("../assets/hero3d/alper.webp");
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%);
  mask-image: linear-gradient(180deg, transparent 0, #000 26%);
}
/* nær, mørk silhuet-ryg som ekstra parallakse-dybde over fotoet */
.hf-lag-3 { height: 24%; opacity: .9;
  background-image: linear-gradient(180deg, transparent 45%, #060f13 56%); }
@media (max-width: 720px) {
  .hf-lag-foto { background-image: url("../assets/hero3d/alper-mobil.webp"); }
}
/* Atmosfærisk dis mellem bjergene */
.hf-dis {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, transparent, rgba(158, 195, 183, .14) 55%, rgba(158, 195, 183, .22));
  filter: blur(2px);
  pointer-events: none;
}

/* ---------- Scenen: 3D-mønten ---------- */
.hf-scene {
  position: relative;
  width: min(340px, 74vw);
  height: min(300px, 62vw);
  margin: 0 auto 6px;
}
.hf-scene canvas { display: block; width: 100%; height: 100%; }
/* Fallback-billedet (mobil / prefers-reduced-motion / ingen WebGL) */
.hf-scene .hf-moent-fallback {
  width: min(220px, 52vw);
  margin: 22px auto 0;
  filter: drop-shadow(0 18px 40px rgba(212, 175, 55, .38));
}

/* ---------- Indhold ---------- */
.hf-inder { position: relative; z-index: 2; }
.hero-futuristic h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.4rem);
  color: #fff;
  text-shadow: 0 2px 26px rgba(212, 175, 55, .25);
}
.hero-futuristic .hf-firma {
  font-family: var(--font-head); font-weight: 600;
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-300); margin-top: 8px;
}
.hero-futuristic .hf-slogan {
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: var(--gold-50); letter-spacing: .02em; margin-top: 14px;
}
.hero-futuristic .hf-lead {
  max-width: 640px; margin: 20px auto 0;
  font-size: 1.06rem; line-height: 1.65; color: #cfe2d8;
}
.hero-futuristic .hf-lead strong { color: #fff; }
.hero-futuristic .hf-cta {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px;
}
/* Ghost-knappen har mørk tekst i styles.css — usynlig på mørk bund.
   Scoped override (samme fælde som headerens knapper i Alpine-temaet). */
.hero-futuristic .btn-ghost {
  color: #eef7f1;
  border-color: rgba(238, 247, 241, .45);
}
.hero-futuristic .btn-ghost:hover {
  color: #fff;
  border-color: rgba(238, 247, 241, .8);
  background: rgba(255, 255, 255, .06);
}
.hero-futuristic .hf-note {
  margin-top: 18px; font-size: .86rem; color: #9db8ad;
}

/* ---------- Indglidning (Apple-agtig, kun når .hf-klar er sat) ---------- */
.hero-futuristic .hf-inder > * {
  opacity: 0;
  transform: translateY(18px);
}
.hero-futuristic.hf-klar .hf-inder > * {
  opacity: 1;
  transform: none;
  transition: opacity .8s cubic-bezier(.22, .61, .21, 1), transform .8s cubic-bezier(.22, .61, .21, 1);
}
.hero-futuristic.hf-klar .hf-inder > :nth-child(2) { transition-delay: .08s; }
.hero-futuristic.hf-klar .hf-inder > :nth-child(3) { transition-delay: .16s; }
.hero-futuristic.hf-klar .hf-inder > :nth-child(4) { transition-delay: .24s; }
.hero-futuristic.hf-klar .hf-inder > :nth-child(5) { transition-delay: .32s; }
.hero-futuristic.hf-klar .hf-inder > :nth-child(6) { transition-delay: .40s; }
.hero-futuristic.hf-klar .hf-inder > :nth-child(7) { transition-delay: .48s; }
/* Stille tilstand (reduced motion / mobil / ingen WebGL): alt vises straks */
.hero-futuristic.hf-stille .hf-inder > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-futuristic .hf-inder > * { opacity: 1; transform: none; transition: none; }
  .hero-futuristic .hf-lag { transform: none !important; }
}

@media (max-width: 720px) {
  .hero-futuristic { padding: 48px 0 90px; min-height: 0; }
}

/* ---------- Dev-toggle-knappen (kun localhost — indsættes af hero-flag.js) ---------- */
#hero-flag-knap {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 9999;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--gold-300);
  background: var(--gold-50);
  color: var(--gold-800);
  font: 600 .78rem var(--font-head);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 61, 51, .25);
}
#hero-flag-knap:hover { background: var(--gold-300); color: var(--green-900); }
