﻿/*
Theme Name: Wagner Ejendomme
Description: Unikt tema designet og udviklet af Weltklasse
Version: 1.0
Author: Weltklasse
Author URI: https://weltklasse.dk
*/

@font-face {
  font-family: 'Anek';
  src: url('/wp-content/themes/hoyer/fonts/expanded.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body, html {
	margin: 0!important;
	overflow-x: hidden;
	position: relative;
  scroll-behavior: smooth;
}
@media only screen and (max-width: 1450px) {
  header.main {
  	margin: 0px 25px;
  }
}
main {
  padding: 16px;
}
@media only screen and (max-width: 650px) {
  main {
    padding: 0;
  }
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Anek', sans-serif!important;
	color: #000;
	letter-spacing: -0.05rem;
}

button.bde-button__button,
.expanded {
  font-family: 'Anek', sans-serif!important;
}
button.bde-button__button::after,
a.bde-button__button::after {
  transition: all 800ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: scale(1);
  transform-origin: center;
  z-index: -1;
}

button.bde-button__button:hover::after,
a.bde-button__button:hover::after {
  transform: scale(36);
  color: rgb(0,0,0);
}
.new-window {
  position: relative;
  margin-left: 20px;
  margin-top: 1rem;
  text-decoration: none;
}
.new-window::before {
  content: '';
  transition: all 800ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background-image:url('/wp-content/themes/hoyer/images/new_tab.svg');
  background-size: contain;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  position: absolute;
  top: 0;
  left: -20px;
}
.footer.new-window::before {
  background-image:url('/wp-content/themes/hoyer/images/new_tab_w.svg');
}
li {
  font-size: clamp(0.9rem, 1.5vw, 1rem) !important;
}
p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem) !important;
}
.bde-text,
.bde-rich-text  {
  font-size: clamp(0.9rem, 1.5vw, 1rem) !important;
  line-height: 1.5;
}
/*a.bde-text-link {
  font-size: clamp(0.9rem, 1.5vw, 1rem) !important;
}*/
h1.bde-heading {
  font-size: clamp(2rem, 5vw, 4rem) !important;
}
h2.bde-heading {
  font-size: clamp(1.75rem, 4vw, 3rem) !important;
}
.bde-heading.large-heading {
  font-size: clamp(1.75rem, 4vw, 5rem) !important;
}

span.bde-simple-counter__digit.js-digit{
	font-size: clamp(1.75rem, 5rem, 5rem) !important;
  letter-spacing: 1px;
}
span.bde-simple-counter__suffix{	
	font-size: clamp(1.75rem, 4vw, 3rem) !important;
}
span.bde-accordion__title{
  font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;

}

h3, h2 {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
}
h3.bde-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  font-weight: 600;
}
h4.bde-heading {
  font-weight: 600;
}
h5.bde-heading {
  font-size: clamp(1.125rem, 2vw, 1.5rem) !important;
  font-weight: 600;
}
h6.bde-heading {
  font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
  font-weight: 600;
}

main .logo-wrap {
  top: 0;
  left: 0;
  z-index: 9;
}
.step {
  transition: .3s ease-in-out;
  transform: scale(1);
  opacity: 0.45;
  background: white;
  cursor: pointer;
}
.step.active {
  transform: scale(1.05);
  opacity: 1;
  background: linear-gradient(135deg,var(--bde-palette-color-1-84b37986-d104-48a2-8ccd-e712c4b67462) 20%,var(--bde-palette-color-1-80a391b9-17d2-451e-b369-8773ea30ed4d) 100%);
}



/* Prevent flash before JS sets initial state */
.reveal { visibility: hidden; }
.reveal.ready { visibility: visible; }

/* Optional: slightly crisper mask edges on all backgrounds */
.reveal .line { clip-path: inset(0 0 0 0); } /* ensures the overflow area is treated as a mask */

.my-wg-switcher {
  margin-right: 230px;
}

.my-wg-switcher .country-selector.weglot-dropdown {
  background-color: #ffff3a!important;
  border-radius: 20px;
  font-family: 'Anek', sans-serif;
  width: 80px;
  text-align: center;
}
.country-selector.weglot-dropdown .wgcurrent::after {
  display: none;
}
.country-selector.weglot-dropdown .wgcurrent a, .country-selector.weglot-dropdown .wgcurrent span {
  padding: 0!important;
  height: 44px;
  line-height: 44px;
}
.country-selector.weglot-dropdown .wgcurrent {
  border: none!important;
}
.country-selector.weglot-dropdown ul {
  top: 115%;
  background: #000;
  border: none;
  border-radius: 20px;
}
.country-selector a {
  color: #fff;
  text-align: center;
}

@media only screen and (max-width: 600px) {
    .my-wg-switcher {
      margin-right: 120px;
    }
    .country-selector.weglot-dropdown .wgcurrent a, .country-selector.weglot-dropdown .wgcurrent span {
      height: 35px;
      line-height: 35px;
    }
}
/* Active Campaign - Form overwrites */
/* Base placeholder styling */
._form_element._inline-style input::placeholder {
  font-family: 'Anek Latin', sans-serif;
  color: #fff;
  opacity: 1;          /* ensure full opacity (Firefox) */
}
.alternate ._form_element input::placeholder {
  color: #000;
}

._form_element._inline-style {
  width: 100%;
  text-align: left;
  margin-bottom: 1rem;
}
._form-label {
  visibility: hidden;
  position: absolute;
}
._form-element label {
  color: #fff;
}
._form_element input[type='text'] {
  border-radius: 8px;
  width: 100%;
  color: #fff;
  padding: 0.7rem 1rem;
  background: rgba(0,0,0, 0.0);
  border: 1px solid #ffff3a;
  transition: .3s ease-in-out;
}
.alternate ._form_element input[type='text'] {
  border: 1px solid #6ab256;
  color: #000;
}
._form_element input[type='text']:focus-visible,
._form_element input[type='text']:focus {
  background: rgba(0,0,0, 0.3);
  border: 1px solid #ffff3a;
  box-shadow: none;
  outline: none;
}
.alternate ._form_element input[type='text']:focus-visible,
.alternate ._form_element input[type='text']:focus {
  border: 1px solid #6ab256;
  background: rgba(255,255,255, 0.3);
}
._button-wrapper {
  text-align: left;
}
._form-fieldset {
  margin: 0;
  padding: 0;
  border: none;
}
/* ===== Custom Checkbox (works with: input + span > label) ===== */
._checkbox-radio {
  --cb-size: 20px;
  --cb-radius: 6px;
  --cb-bg: rgba(0,0,0,0);
  --cb-border: #ffff3a;
  --cb-border-hover: #ffff3a;
  --cb-fill: #ffff3a;
  --cb-tick: #121212;
  --cb-focus: 2px solid #ffff3a;

  display: inline-flex;
  align-items: center;
  gap: .5rem;
  position: relative;
  cursor: pointer;
  user-select: none;
}
.alternate ._checkbox-radio {
  --cb-size: 20px;
  --cb-radius: 6px;
  --cb-bg: rgba(0,0,0,0);
  --cb-border: #6ab256;
  --cb-border-hover: #6ab256;
  --cb-fill: #6ab256;
  --cb-tick: #121212;
  --cb-focus: 2px solid #6ab256;

  display: inline-flex;
  align-items: center;
  gap: .5rem;
  position: relative;
  cursor: pointer;
  user-select: none;
}

/* Visually hide the native input but keep it accessible */
._checkbox-radio > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

/* Label layout */
._checkbox-radio > span > label {
  position: relative;
  line-height: 1.2;
  cursor: pointer;
  padding-left: calc(var(--cb-size) + 10px);
  color: #fff;
  display: block;
}
.alternate ._checkbox-radio > span > label {
  color: #000;
}
/* Box */
._checkbox-radio > span > label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--cb-size);
  height: var(--cb-size);
  transform: translateY(-50%);
  border-radius: var(--cb-radius);
  background: var(--cb-bg);
  border: 1.5px solid var(--cb-border);
  box-sizing: border-box;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

/* Tick */
._checkbox-radio > span > label::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: calc(var(--cb-size) - 14px);
  height: calc(var(--cb-size) - 6px);
  transform: translateY(-55%) scale(0.6) rotate(45deg);
  border-right: 2px solid var(--cb-tick);
  border-bottom: 2px solid var(--cb-tick);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

/* Hover */
._checkbox-radio:hover > span > label::before,
._checkbox-radio > span > label:hover::before {
  border-color: var(--cb-border-hover);
}

/* Checked */
._checkbox-radio > input:checked + span > label::before {
  background: var(--cb-fill);
  border-color: var(--cb-fill);
}
._checkbox-radio > input:checked + span > label::after {
  opacity: 1;
}

/* Indeterminate */
._checkbox-radio > input:indeterminate + span > label::before {
  background: var(--cb-fill);
  border-color: var(--cb-fill);
}
._checkbox-radio > input:indeterminate + span > label::after {
  left: 5px;
  width: calc(var(--cb-size) - 10px);
  height: 2px;
  transform: translateY(-50%) scale(1);
  background: var(--cb-tick);
  border: 0;
  opacity: 1;
}

/* Focus ring (keyboard) */
._checkbox-radio > input:focus-visible + span > label::before {
  outline: var(--cb-focus);
  outline-offset: 2px;
}

._checkbox-radio > span > label {
  padding-left: 36px;
}
._checkbox-radio .field-required {
  position: absolute;
  top: 0;
  left: 25px;
}

._submit {
  font-family: 'Anek Latin', sans-serif;
  background: #ffff3a;
  color: #121212;
  border: none;
  box-shadow: none;
  border-radius: 8px;
  transition: .3s ease-in-out;
  font-size: 16px;
  padding: 0.7rem 2rem;
  cursor: pointer;
}
._submit:hover {
  background: #000;
  color: #fff;
}
.alternate ._submit {
  background: #6ab256;
  color: #fff;
}
.alternate ._submit:hover {
  background: #000;
  color: #fff;
}
._form-thank-you {
  background: linear-gradient(135deg, var(--bde-palette-color-1-84b37986-d104-48a2-8ccd-e712c4b67462) 20%, var(--bde-palette-color-1-80a391b9-17d2-451e-b369-8773ea30ed4d) 100%);
  border-radius: 12px;
  padding: 0.5rem 2rem;
  font-weight: 600;
  color: #000;
}
._error-inner {
  color: #d30000;
}
/* Core styles */
.scroll-next{
  background: transparent;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  margin: 0 auto;/* keeps arrow fully inside */
  position: absolute!important;
  bottom: 45px;
}
@media only screen and (max-width: 600px) {
  .scroll-next {
    bottom: 120px;
  }
}

/* Arrow icon */
.scroll-next .icon{
  width: auto;
  stroke: #fff;
  stroke-width: 2.25;
  fill: none;
  animation: scroll-bounce 1s 
  ease-in-out infinite alternate;
  position: absolute;
  bottom: 25px;
  left: 4px;
}

@keyframes scroll-bounce{
  from{ transform: translateY(-50%); }
  to{   transform: translateY( 50%); }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce){
  .scroll-next svg{ animation: none; }
}
body.single p {
  margin-top: 0;
}
body.single p.has-medium-font-size {
  margin-bottom: 0.5rem;
}
body.single ul {
  margin-top: 0.5rem;
  list-style: none;
  padding-left: 16px;
}
body.single ul li {
  position: relative;
  margin-bottom: 0.5rem;
}
body.single ul li::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #ffff3a;
  border-radius: 3px;
}