/*
  IndeklimaTest – FORCE-inspireret hero
  Denne fil indlæses EFTER style.css og ændrer kun topmenu/hero.
*/

/* ---------- TOPMENU OVER HERO ---------- */
body {
  margin-top: 0 !important;
}

.site-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;

  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;

  transition:
    background-color .32s ease,
    box-shadow .32s ease,
    backdrop-filter .32s ease !important;
}

/* Gør hele menuområdet let at ramme med musen */
.site-header nav {
  min-height: 82px !important;
  width: min(1440px, calc(100% - 64px)) !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
}

/* Logo */
.site-header .logo {
  flex: 0 0 auto !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  transition: color .32s ease !important;
}

/* Desktop-menu */
.site-header .nav-list {
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(12px, 1.35vw, 24px) !important;
  list-style: none !important;
}

.site-header .nav-list > li {
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .nav-list > li > a {
  color: rgba(255,255,255,.96) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-weight: 600 !important;
  font-size: .96rem !important;
  transition:
    color .32s ease,
    opacity .2s ease,
    background-color .2s ease !important;
}

.site-header .nav-list > li > a:hover {
  opacity: .72 !important;
}

/* Book-knappen i menuen */
.site-header .nav-list > li > a.btn--primary {
  padding: .72rem 1.05rem !important;
  border-radius: 999px !important;
  background: rgba(137, 191, 165, .94) !important;
  color: #12342b !important;
  border: 1px solid rgba(255,255,255,.22) !important;
}

/* FORCE-effekten: hvid bjælke når musen/fokus er over menuen */
.site-header:hover,
.site-header:focus-within {
  background: rgba(255,255,255,.97) !important;
  box-shadow: 0 8px 28px rgba(10, 28, 25, .08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.site-header:hover .logo,
.site-header:focus-within .logo,
.site-header:hover .nav-list > li > a,
.site-header:focus-within .nav-list > li > a {
  color: #172b28 !important;
}

.site-header:hover .nav-list > li > a.btn--primary,
.site-header:focus-within .nav-list > li > a.btn--primary {
  color: #12342b !important;
  background: #9bcbb2 !important;
}

/* Dropdown skal være læsbar både før og efter hover */
.site-header .dropdown-menu {
  background: rgba(255,255,255,.98) !important;
  border: 1px solid rgba(20,50,45,.10) !important;
  box-shadow: 0 16px 36px rgba(10,28,25,.12) !important;
  border-radius: 10px !important;
}

.site-header .dropdown-menu a {
  color: #172b28 !important;
}

/* ---------- HERO ---------- */
.hero {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;

  min-height: clamp(650px, 78vh, 850px) !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;

  background-image: url("Images/hero-indeklima.png") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;

  color: #fff !important;
}

/* Toningen gør både menu og hero-tekst tydelige uden at ødelægge billedet */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      90deg,
      rgba(4, 31, 27, .74) 0%,
      rgba(5, 40, 34, .55) 31%,
      rgba(12, 48, 41, .25) 58%,
      rgba(5, 27, 24, .08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 26, 23, .27) 0%,
      rgba(4, 26, 23, .04) 28%,
      rgba(4, 26, 23, .08) 100%
    );
  pointer-events: none;
}

/* Slår den gamle 2-kolonne hero fra, hvis den stadig findes i style.css */
.hero .hero-grid,
.hero .hero-image {
  display: none !important;
}

.hero .hero-content {
  position: relative !important;
  z-index: 2 !important;

  width: min(1180px, calc(100% - 64px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 130px 0 70px !important;

  display: block !important;
  text-align: left !important;
}

.hero-label {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 0 26px !important;
  padding: 8px 14px !important;

  border-radius: 999px !important;
  background: rgba(190, 225, 207, .90) !important;
  color: #183b31 !important;

  font-size: .9rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.hero .hero-content h1 {
  max-width: 820px !important;
  margin: 0 0 25px !important;

  color: #fff !important;
  font-size: clamp(3.1rem, 5vw, 5.25rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -.035em !important;
  font-weight: 500 !important;
  text-shadow: 0 2px 22px rgba(0,0,0,.10) !important;
}

.hero .hero-content .lead {
  max-width: 650px !important;
  margin: 0 0 34px !important;

  color: rgba(255,255,255,.94) !important;
  font-size: clamp(1.05rem, 1.25vw, 1.25rem) !important;
  line-height: 1.65 !important;
}

.hero-actions {
  display: flex !important;
  align-items: center !important;
  gap: 30px !important;
  flex-wrap: wrap !important;
}

.hero-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 15px !important;

  padding: .92rem 1.35rem !important;
  border-radius: 999px !important;

  background: #9bcbb2 !important;
  color: #12342b !important;
  border: 0 !important;
  box-shadow: none !important;

  font-weight: 700 !important;
  text-decoration: none !important;
}

.hero-primary:hover {
  transform: translateY(-1px) !important;
  background: #add8c1 !important;
}

.hero-secondary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 13px !important;

  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,.34) !important;
  padding-bottom: 4px !important;
}

.hero-secondary:hover {
  border-color: #fff !important;
}

/* ---------- TABLET ---------- */
@media (max-width: 1100px) {
  .site-header nav {
    width: min(100% - 36px, 1440px) !important;
  }

  .site-header .nav-list {
    gap: 13px !important;
  }

  .site-header .nav-list > li > a {
    font-size: .88rem !important;
  }

  .hero .hero-content {
    width: min(100% - 48px, 1180px) !important;
  }
}

/* ---------- MOBIL ---------- */
@media (max-width: 899px) {
  /* Telefoner har ingen rigtig hover, så headeren er lys og tydelig */
  .site-header,
  .site-header:hover,
  .site-header:focus-within {
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 3px 18px rgba(10,28,25,.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  .site-header nav {
    min-height: 72px !important;
    width: calc(100% - 32px) !important;
  }

  .site-header .logo,
  .site-header:hover .logo,
  .site-header:focus-within .logo {
    color: #172b28 !important;
  }

  .mobile-menu-toggle {
    margin-left: auto !important;
    color: #172b28 !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 1.6rem !important;
    cursor: pointer !important;
  }

  /* Bevar din eksisterende .open-funktion til mobilmenuen */
  .site-header .nav-list {
    display: none !important;
  }

  .site-header .nav-list.open {
    position: absolute !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;

    padding: 14px 22px 22px !important;
    background: rgba(255,255,255,.99) !important;
    box-shadow: 0 15px 30px rgba(10,28,25,.10) !important;
  }

  .site-header .nav-list.open > li > a {
    display: block !important;
    padding: 12px 0 !important;
    color: #172b28 !important;
  }

  .site-header .nav-list.open > li > a.btn--primary {
    display: inline-block !important;
    margin-top: 8px !important;
    padding: .8rem 1rem !important;
    text-align: center !important;
  }

  .hero {
    min-height: 680px !important;
    background-position: 58% center !important;
  }

  .hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(4,31,27,.78) 0%,
        rgba(4,31,27,.63) 55%,
        rgba(4,31,27,.35) 100%
      ),
      linear-gradient(
        180deg,
        rgba(4,31,27,.16) 0%,
        rgba(4,31,27,.05) 100%
      ) !important;
  }

  .hero .hero-content {
    width: calc(100% - 38px) !important;
    padding: 130px 0 55px !important;
  }

  .hero .hero-content h1 {
    max-width: 620px !important;
    font-size: clamp(2.45rem, 10vw, 3.4rem) !important;
  }

  .hero .hero-content h1 br {
    display: none !important;
  }

  .hero .hero-content .lead {
    max-width: 520px !important;
    font-size: 1.05rem !important;
  }
}

/* ---------- SMÅ MOBILER ---------- */
@media (max-width: 520px) {
  .hero {
    min-height: 650px !important;
    background-position: 61% center !important;
  }

  .hero-actions {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .hero .hero-content h1 {
    font-size: 2.35rem !important;
  }
}

/* Respektér brugere der ønsker færre animationer */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header *,
  .hero * {
    transition: none !important;
  }
}


/* ---------- INDEKLIMATEST LOGO ---------- */
.site-header .brand-logo {
  width: 205px !important;
  min-width: 205px !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;

  color: #fff !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.brand-logo-main {
  display: block !important;
  font-size: 1.58rem !important;
  font-weight: 700 !important;
  letter-spacing: .055em !important;
  line-height: .92 !important;
  color: #fff !important;
}

.brand-logo-bottom {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  gap: 10px !important;
}

.brand-logo-line {
  display: block !important;
  width: 112px !important;
  height: 3px !important;
  background: #fff !important;
  border-radius: 3px !important;
}

.brand-logo-test {
  display: block !important;
  margin-top: -1px !important;
  color: #83b99c !important;
  font-size: 1.08rem !important;
  font-weight: 500 !important;
  letter-spacing: .34em !important;
  line-height: 1 !important;
}

/* Ved hover over headeren skifter den hvide del til mørk,
   mens TEST beholder den grønne identitet. */
.site-header:hover .brand-logo-main,
.site-header:focus-within .brand-logo-main {
  color: #172b28 !important;
}

.site-header:hover .brand-logo-line,
.site-header:focus-within .brand-logo-line {
  background: #172b28 !important;
}

.site-header:hover .brand-logo-test,
.site-header:focus-within .brand-logo-test {
  color: #5d9879 !important;
}

/* Logo og menu lidt længere ud mod siderne, som på reference-sitet */
@media (min-width: 900px) {
  .site-header nav {
    width: calc(100% - 96px) !important;
    max-width: none !important;
  }
}

@media (max-width: 899px) {
  .site-header .brand-logo {
    width: 158px !important;
    min-width: 158px !important;
  }

  .brand-logo-main,
  .site-header:hover .brand-logo-main,
  .site-header:focus-within .brand-logo-main {
    font-size: 1.18rem !important;
    color: #172b28 !important;
  }

  .brand-logo-line,
  .site-header:hover .brand-logo-line,
  .site-header:focus-within .brand-logo-line {
    width: 84px !important;
    height: 2px !important;
    background: #172b28 !important;
  }

  .brand-logo-test,
  .site-header:hover .brand-logo-test,
  .site-header:focus-within .brand-logo-test {
    font-size: .82rem !important;
    color: #5d9879 !important;
  }
}


/* =========================================================
   MOBIL: FAST TOPBJÆLKE VED SCROLL
   ========================================================= */
@media (max-width: 899px) {
  .site-header,
  .site-header:hover,
  .site-header:focus-within {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 2000 !important;

    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 3px 18px rgba(10, 28, 25, .08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  .site-header nav {
    min-height: 72px !important;
  }

  /* Heroen får plads til den faste bjælke, så teksten ikke gemmer sig under den */
  .hero .hero-content {
    padding-top: 150px !important;
  }

  /* Når mobilmenuen åbnes, ligger den direkte under den faste topbjælke */
  .site-header .nav-list.open {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    max-height: calc(100vh - 72px) !important;
    overflow-y: auto !important;
  }
}


/* =========================================================
   DESKTOP: TRANSPARENT HEADER + HOVER PÅ MENUPUNKTER
   Headeren bliver ikke længere hvid, når musen føres over den.
   Kun det enkelte menupunkt fremhæves.
   ========================================================= */
@media (min-width: 900px) {

  .site-header:hover,
  .site-header:focus-within {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Logoet forbliver som i normal hero-tilstand */
  .site-header:hover .logo,
  .site-header:focus-within .logo,
  .site-header:hover .brand-logo-main,
  .site-header:focus-within .brand-logo-main {
    color: #fff !important;
  }

  .site-header:hover .brand-logo-line,
  .site-header:focus-within .brand-logo-line {
    background: #fff !important;
  }

  .site-header:hover .brand-logo-test,
  .site-header:focus-within .brand-logo-test {
    color: #83b99c !important;
  }

  /* Alle almindelige menupunkter forbliver hvide */
  .site-header:hover .nav-list > li > a,
  .site-header:focus-within .nav-list > li > a {
    color: rgba(255,255,255,.96) !important;
  }

  /* Det menupunkt man faktisk holder musen over, lyser op */
  .site-header .nav-list > li > a:not(.btn--primary):hover,
  .site-header .nav-list > li > a:not(.btn--primary):focus-visible {
    color: #b8ddc9 !important;
    opacity: 1 !important;
    text-shadow:
      0 0 10px rgba(184,221,201,.48),
      0 0 22px rgba(184,221,201,.26) !important;
  }

  /* Book-knappen får sin egen tydelige hover */
  .site-header .nav-list > li > a.btn--primary:hover,
  .site-header .nav-list > li > a.btn--primary:focus-visible,
  .site-header:hover .nav-list > li > a.btn--primary:hover,
  .site-header:focus-within .nav-list > li > a.btn--primary:focus-visible {
    background: #b8ddc9 !important;
    color: #102e27 !important;
    opacity: 1 !important;
    box-shadow: 0 8px 24px rgba(12,44,35,.18) !important;
  }

  /* Dropdown-menuen skal fortsat være lys og læsbar */
  .site-header .dropdown-menu a:hover,
  .site-header .dropdown-menu a:focus-visible {
    color: #173b34 !important;
    background: #e6f1eb !important;
    text-shadow: none !important;
  }
}


/* =========================================================
   DESKTOP: TYDELIG HOVER PÅ MENUPUNKTER
   ========================================================= */
@media (min-width: 900px) {

  .site-header .nav-list > li > a:not(.btn--primary) {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 40px !important;
    padding: 8px 13px !important;
    margin: -8px -13px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    transition:
      background-color .18s ease,
      color .18s ease,
      border-color .18s ease,
      box-shadow .18s ease,
      transform .18s ease !important;
  }

  .site-header .nav-list > li > a:not(.btn--primary):hover,
  .site-header .nav-list > li > a:not(.btn--primary):focus-visible,
  .site-header:hover .nav-list > li > a:not(.btn--primary):hover,
  .site-header:focus-within .nav-list > li > a:not(.btn--primary):focus-visible {
    color: #d9f2e4 !important;
    background: rgba(139, 196, 164, .24) !important;
    border-color: rgba(190, 231, 208, .42) !important;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.04) inset,
      0 7px 22px rgba(6, 30, 23, .20),
      0 0 20px rgba(148, 211, 176, .22) !important;
    text-shadow: 0 0 12px rgba(217, 242, 228, .40) !important;
    transform: translateY(-1px) !important;
  }

  /* Aktivér også tydelig markering på dropdown-parenten */
  .site-header .nav-list > li.nav-dropdown:hover > a:not(.btn--primary),
  .site-header .nav-list > li.nav-dropdown:focus-within > a:not(.btn--primary) {
    color: #d9f2e4 !important;
    background: rgba(139, 196, 164, .24) !important;
    border-color: rgba(190, 231, 208, .42) !important;
    box-shadow:
      0 7px 22px rgba(6, 30, 23, .20),
      0 0 20px rgba(148, 211, 176, .22) !important;
    text-shadow: 0 0 12px rgba(217, 242, 228, .40) !important;
  }

  /* Book-knappen bliver mere tydelig ved hover */
  .site-header .nav-list > li > a.btn--primary:hover,
  .site-header .nav-list > li > a.btn--primary:focus-visible,
  .site-header:hover .nav-list > li > a.btn--primary:hover,
  .site-header:focus-within .nav-list > li > a.btn--primary:focus-visible {
    background: #c3e5d1 !important;
    color: #0e3026 !important;
    box-shadow:
      0 8px 26px rgba(7, 36, 27, .24),
      0 0 22px rgba(184, 221, 201, .25) !important;
    transform: translateY(-1px) !important;
  }
}
