:root {
  --color-primary: #2f5a3e;
  --color-secondary: #60d874;
  --color-white: #FFFFFF;
  --color-light-grey: #E4E4E4;
  --color-text-main: #1e1e1e;
  --color-text-secondary: #575757;
  --color-background: #e2e2e2de;
  --color-input: #fafafa;
}

body {
	opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in-out;
	animation-duration: 0.4s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0.3;

  }
  100% {
    opacity: 1;


  }
}






body {
  font-family: "Archivo", sans-serif;
  font-weight: 430;
  color: var(--color-text-main);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  background: var(--color-background);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "montserrat", serif;
  color: var(--color-text-main);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

/* Valgfrit – lidt finere typografi */
h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h5 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h6 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

a {
    font-weight: 700;
    color: var(--color-text-main);
}

/* HEADER */

/* Underline animation */


header {
  background-color: rgba(255, 255, 255, 1); /* green with 50% opacity */
  position: absolute;
  top: 1; /* use 0 instead of 10 */
  left: 0;
  width: 100%;
  z-index: 999;
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease, transform 0.3s ease;
   font-weight: 700;
       color: var(--color-text-main);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;            /* Start at horizontal center */
  bottom: 0;
  height: 2px;
  width: 90%;           /* Width of the underline */
  background: var(--color-secondary);
  border-radius: 2px;
  transform: translateX(-50%) scaleX(0); /* Center and hide initially */
  transform-origin: right;             /* Grow from center */
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: translateX(-50%) scaleX(1); /* Scale from center */
}
.nav-link:hover {
  color: var(--color-text-secondary) !important;
  transform: translateX(3px);
}

/* On small screens: no animation */
@media (max-width: 991px) {
  .nav-link::after {
    display: none;
  }
  .nav-link:hover {
    transform: none;
    color: inherit;
  }
  .nav-link {
    padding: 3%;
    font-size: 1.4rem; /* bigger text */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* HEADER END */

.video-wrap iframe {
  width: 100%;
}


html, body {
  overflow-x: hidden;
}
/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  text-align: start;
  height: 70vh;
  overflow: hidden;
}
@media (max-width: 768px) {
.hero {
  padding: 5%;
}

}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  z-index: 0;
}


.hero-text {
  position: relative;
  z-index: 1;
  max-width: 600px;
  color: var(--color-input) !important;
}

/* Zigzag sections */
.zigzag, .container { max-width: 1200px; margin: auto; 
}

/* Box section */
.bg-gradient {
  background: linear-gradient(to bottom, var(--color-background), var(--color-white));
  
}

.custom-box {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  background: var(--color-white);
  border: none;
  box-shadow: rgba(17, 17, 26, 0.5) 2px 5px 2px;
  transition: box-shadow 0.3s ease;
  border-radius: 1px;  
  margin: 2%;
}


/* 🌊 BOX STYLES */
.card.custom-box {
  padding: 1.2rem;
  background: var(--color-white);
  box-shadow: rgba(0, 0, 0, 0.15) 2.4px 2.4px 3px;
  border: none;
  
}
.custom-box .box-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
  transition: transform 0.3s ease, opacity 0.6s ease;
  
}
.custom-box:hover .box-bg {
  transform: scale(1.05);
  opacity: 0.2;
}
.custom-box:hover {
  box-shadow: 0 4px 5px rgba(17, 17, 26, 0.106);

}
.card-body { position: relative; z-index: 1; }

.custom-box p {
  color: var(--color-text-main) !important;
  font-weight: 600 !important;
  text-shadow: var(--color-background);
  z-index: 1;
}

/* Small helpers */
.hr-sp {
  width: 50px;
  border: none;
  border-top: 3px solid var(--color-secondary);
  margin: 1rem auto;
}
.logo img {
  max-height: 55px;
  transition: transform .3s, filter .3s;
}
.logo:hover img {
  transform: scale(1.05);
}


/* 🌊 BOUNCY 3D BUTTON */
.button-1 {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 3px;
  transition: filter 200ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  font-family: inherit;
  font-weight: 600;
}

.button-1-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: hsl(0, 0%, 0%, 0.2); /* subtle shadow */
  will-change: transform;
  transform: translateY(2px);
  transition: transform 400ms cubic-bezier(.3,.7,.4,1);
}

.button-1-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(
    to left,
    var(--color-primary) 0%,
    var(--color-primary) 8%,
    var(--color-primary) 92%,
    var(--color-primary) 100%
  );
}

.button-1-front {
  display: block;
  position: relative;
  padding: 10px 24px; /* smaller padding */
  font-size: 1rem; /* smaller text */
  border-radius: 2px;
  color: var(--color-white);
  background: var(--color-primary);
  will-change: transform;
  transform: translateY(-3px);
  transition: transform 400ms cubic-bezier(.3,.7,.4,1);
}

@media (min-width: 768px) {
  .button-1-front {
    font-size: 1.1rem;
    padding: 10px 32px; /* smaller but still balanced on desktop */
  }
}

.button-1:hover {
  filter: brightness(110%);
}

.button-1:hover .button-1-front {
  transform: translateY(-5px);
  transition: transform 200ms cubic-bezier(.3,.7,.4,1.5);
}

.button-1:active .button-1-front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.button-1:hover .button-1-shadow {
  transform: translateY(3px);
  transition: transform 200ms cubic-bezier(.3,.7,.4,1.5);
}

.button-1:active .button-1-shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

.button-1:focus:not(:focus-visible) {
  outline: none;
}
.button-1-shadow {
  background: rgba(0, 0, 0, 0.2);
}
.button-1-edge {
  background: linear-gradient(to left, var(--color-primary) 0%, var(--color-primary) 100%);
}
.button-1-front {
  color: var(--color-white);
  background: var(--color-primary);
}


/* btn but GREY  */

.button-2 {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 3px;
  transition: filter 200ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  font-family: inherit;
}

.button-2-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: hsl(0, 0%, 0%, 0.2); /* subtle shadow */
  will-change: transform;
  transform: translateY(2px);
  transition: transform 400ms cubic-bezier(.3,.7,.4,1);
}

.button-2-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(
    to left,
    var(--color-primary) 0%,
    var(--color-primary) 8%,
    var(--color-primary) 92%,
    var(--color-primary) 100%
  );
}

.button-2-front {
  display: block;
  position: relative;
  padding: 10px 24px; /* smaller padding */
  font-size: 1rem; /* smaller text */
  border-radius: 2px;
  color: var(--color-white);
  background: var(--color-text-secondary);
  will-change: transform;
  transform: translateY(-3px);
  transition: transform 400ms cubic-bezier(.3,.7,.4,1);
}

@media (min-width: 768px) {
  .button-2-front {
    font-size: 1.1rem;
    padding: 10px 32px; /* smaller but still balanced on desktop */
  }

}

.button-2:hover {
  filter: brightness(110%);
}

.button-2:hover .button-2-front {
  transform: translateY(-5px);
  transition: transform 200ms cubic-bezier(.3,.7,.4,1.5);
}

.button-2:active .button-2-front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.button-2:hover .button-2-shadow {
  transform: translateY(3px);
  transition: transform 200ms cubic-bezier(.3,.7,.4,1.5);
}

.button-2:active .button-2-shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

.button-2:focus:not(:focus-visible) {
  outline: none;
}
.button-2-shadow {
  background: rgba(0, 0, 0, 0.2);
}
.button-2-edge {
   background: linear-gradient(to left, var(--color-text-secondary) 0%, var(--color-primary) 100%);
}
.button-2-front {
  color: var(--color-white);
background: linear-gradient(to left, var(--color-text-secondary) 0%, var(--color-primary) 100%);
}




/* Background helper */
.bg {
  background-color: var(--color-white);
  padding: 3%;
}
.boxes{
  margin-top: -10%;
  
}
@media (max-width: 768px) {
.boxes{
  margin-top: -35%;
}
}

.button-front {
  margin-right: 15px; /* adds space to the right of the first button */
}

.zig-img{
    box-shadow: 0 5px 0.5px var(--color-primary);
}
.line-top {
  box-shadow: 0 -3px 0 0px var(--color-primary);
}

footer {
  background-color: var(--color-white);
  color: var(--color-text-main);
  font-size: 0.9rem;
  padding: 3rem 1rem;
}

footer a,
footer .footer-links a {
  color: var(--color-text-main);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer a:hover,
footer .footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(2px); /* subtle hover movement */
}

footer .vertical-line {
  width: 1px;
  height: 60px;
  background-color: #ddd;
  margin: 0 auto;
}

footer .footer-links {
  list-style: none;
  padding: 0;
}

footer .footer-links li {
  margin-bottom: 0.5rem;
}

footer .footer-links li:last-child {
  margin-bottom: 0;
}

/* Responsive Footer */
@media (max-width: 767px) {
  footer .vertical-line {
    display: none;
  }

  footer .row {
    text-align: center;
    flex-direction: column;
  }

  footer .col-md-4,
  footer .col-md-3 {
    margin-bottom: 1.5rem;
  }

}



/* INITIAL HIDDEN STATES */
.fade-slide-up, .slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0s, transform 0.6s ease-out 0s;
}

.fade-in-left, .slide-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out 0s, transform 0.6s ease-out 0s;
}

.fade-in-right, .slide-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease-out 0s, transform 0.6s ease-out 0s;
}

/* VISIBLE STATE */
.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* DELAY HELPERS */
.delay-1  { transition-delay: 0.1s !important; }
.delay-2  { transition-delay: 0.2s !important; }
.delay-3  { transition-delay: 0.3s !important; }
.delay-4  { transition-delay: 0.4s !important; }
.delay-5  { transition-delay: 0.5s !important; }
.delay-6  { transition-delay: 0.6s !important; }
.delay-7  { transition-delay: 0.7s !important; }
.delay-8  { transition-delay: 0.8s !important; }
.delay-9  { transition-delay: 0.9s !important; }
.delay-10 { transition-delay: 1s !important; }






/* Fullscreen overlay for smooth transitions */
#page-transition-overlay {
  position: fixed;
  inset: 0; /* top, right, bottom, left = 0 */
  background-color: #ffffff; /* fade color */
  pointer-events: none; /* let clicks pass */
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

/* Show overlay */
#page-transition-overlay.active {
  opacity: 1;
}












/* CONTACT FORM STYLINGS */


.social-links a {
  font-size: 20px;
  transition: transform 0.3s;
}

.social-links a:hover {
  transform: scale(1.2);
}
/* Contact Form Inputs */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  background-color: var(--color-input);
  box-shadow: 0 1.5px 0px var(--color-primary);
  border: none;
  border-radius: 0;
  padding: 12px 15px;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 0px;
  transition: box-shadow 0.3s;
}

/* Change box-shadow on focus/active */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  outline: none;
  box-shadow: 0 2px 0px var(--color-secondary);
    background-color: var(--color-white);
}

.wpcf7 textarea {
  height: 120px; /* ca. 3 linjer */
  resize: none; /* valgfri – forhindrer brugeren i at trække feltet større */
}

/* Button */
.button-59 {
  align-items: center;
  background-color: var(--color-primary);
  border: none;           /* no border */
  border-radius: 0;       /* no radius */
  color: var(--color-white);
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  height: 48px;
  justify-content: center;
  letter-spacing: -.8px;
  line-height: 24px;
  min-width: 140px;
  outline: 0;
  padding: 0 17px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  user-select: none;
}

.button-59:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.button-59:active {
  opacity: 0.75;
}

@media (min-width: 768px) {
  .button-59 {
    min-width: 170px;
  }
    .kontaktme{
    padding: 0%;
  }
}


/* CARDS */
.custom-card-b {
  max-width: 380px;
  min-height: 580px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin: auto;
  padding: 3rem;
  background: var(--color-primary);
  box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px;
  border: none;
  border-radius: 0px;
}

.kt-card{
  background-color: transparent;
  
}


@media (max-width: 800px) {
.container{
  width: 100%;
  padding: 0px;
} 
/* CARDS */
.custom-card-b {
  max-width: 90%;
  margin-bottom: 8%;
  min-height: 400px;
}
}

/* Contact Form 7 Submit Button */
.wpcf7-submit {
  all: unset; /* reset default browser styles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.8px;
  height: 48px;
  min-width: 140px;
  padding: 0 17px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  user-select: none;
  border-radius: 0;
  border: none;
}

.wpcf7-submit:hover {
  opacity: 0.85;
}

.wpcf7-submit:active {
  opacity: 0.75;
}

@media (min-width: 768px) {
  .wpcf7-submit {
    min-width: 170px;
  }
}