/* Base */
* { box-sizing: border-box; }

:root{
  --font-sans: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --fw-body: 300;
  --fw-body-strong: 400;
  --fw-h: 700;
  --fw-h-strong: 800;
  --fs-body: 18px;
  --fs-body-sm: 18px;
  --lh-body: 1.5;
  --lh-body-sm: 1.5;
  --fs-body-target: var(--fs-body-drom);
  --fs-body-target-sm: var(--fs-body-drom-sm);
  --lh-body-target: var(--lh-body-drom);
  --lh-body-target-sm: var(--lh-body-drom-sm);
  --fw-body-target: var(--fw-body-drom);
  --fw-body-target-sm: var(--fw-body-drom-sm);
  --fs-body-drom: 22px;
  --fs-body-drom-sm: 18px;
  --lh-body-drom: 1.6;
  --lh-body-drom-sm: 1.6;
  --fw-body-drom: var(--fw-body);
  --fw-body-drom-sm: var(--fw-body);
  --c-text: #111;
  --c-link: #e11;
  --prose-max: 760px;
  --prose-max-drom: 900px;
  --prose-gap: 18px;
  --prose-gap-sm: 16px;
  --prose-gap-drom: 26px;
  --prose-gap-drom-sm: 26px;
}

body{
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: var(--fw-body);
  line-height: 1.5;
  color: var(--c-text);
  background: #fff;
}

html{ scroll-behavior: smooth; }

img,
video{
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3{
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: var(--fw-h);
}

h1{ font-weight: var(--fw-h-strong); }
h2, h3{ font-weight: var(--fw-h); }

p{ font-weight: var(--fw-body); }

strong, b{ font-weight: var(--fw-body-strong); }

.muted{ color: #666; margin: 0; }

/* Layout */
.container{
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section{
  padding: 64px 0;
}

.section--alt{
  background: #f6f6f6;
}

.section__cta{
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.prose{
  --prose-fs: var(--fs-body-drom);
  --prose-lh: var(--lh-body);
  --prose-fw: var(--fw-body);
  --prose-gap-local: var(--prose-gap);
  margin: 0 auto;
  max-width: var(--prose-max);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose--target{
  --prose-fs: var(--fs-body-target);
  --prose-lh: var(--lh-body-target);
  --prose-fw: var(--fw-body-target);
  --prose-gap-local: var(--prose-gap);
  max-width: var(--prose-max-drom);
}

.prose--drom{
  --prose-fs: var(--fs-body-drom);
  --prose-lh: var(--lh-body-drom);
  --prose-fw: var(--fw-body-drom);
  --prose-gap-local: var(--prose-gap-drom);
  max-width: var(--prose-max-drom);
}

.prose p{
  margin: 0 0 var(--prose-gap-local);
  font-size: var(--prose-fs);
  line-height: var(--prose-lh);
  font-weight: var(--prose-fw);
  color: var(--c-text);
}

.prose p:last-child{
  margin-bottom: 0;
}

.prose a{
  color: var(--c-link, #e11);
  text-underline-offset: 3px;
}

/* HERO */
.hero{
  position: relative;
  min-height: 520px;
  aspect-ratio: 4800 / 2276;
  background: #111;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* juster 0.30-0.60 */
  z-index: 1;
}

.hero__media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) contrast(105%) brightness(85%);
}

.hero .container{
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end; /* card til hojre */
  padding: 70px 0;
}

@media (min-width: 901px){
  .hero .container{
    width: min(1360px, 98%);
  }

  .hero__media{
    object-position: 60% 45%;
  }
}

.hero__card{
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 28px;
  max-width: 760px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  margin-top: 200px;
  margin-right: 100px;
  transform: translateX(20px);
}

.hero__card h1{
  margin: 0 0 14px;
  font-size: 25px;
}

.prose .hero__cta{
  margin-top: 30px;
  margin-bottom: 0;
  font-weight: 500;
}

.prose .hero__ctaLink{
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  font-weight: 700;
  display: inline-block;
  margin-top: 6px;
  font-size: 18px; /* vælg fx 16–20px */
}

.hero__ctaLink:hover{
  opacity: 0.85;
}

.hero__ctaLink:focus-visible{
  outline: 3px solid rgba(0,0,0,0.25);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (min-width: 901px) and (max-width: 1024px){
  .hero .container{
    justify-content: center;
    padding: 60px 0;
  }

  .hero__card{
    width: min(92vw, 680px);
    max-width: 680px;
    padding: 24px;
    margin-top: 140px;
    margin-right: 0;
    transform: none;
    overflow-wrap: anywhere;
  }

  .hero__card h1{
    font-size: 26px;
  }
}

/* DROM / PLAN / MAL */
#drom-plan-mal{
  text-align: center;
  position: relative;
  overflow: hidden;
}

#drom-plan-mal .container{
  width: min(980px, 92%); /* smallere tekstfelt som paa screenshot */
  position: relative;
  z-index: 1;
}

#drom-plan-mal::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--watermark-url, url("../assets/img/watermark.svg"));
  background-repeat: no-repeat;
  background-position: 8% 20%;
  background-size: 420px;
  opacity: 0.06; /* 0.03-0.10 er typisk sweet spot */
  pointer-events: none;
  z-index: 0;
}

#drom-plan-mal h2{
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 56px);
  margin-bottom: 26px;
}

#drom-plan-mal strong{
  font-weight: 800;
  color: #111;
}

/* "Hvor ved jeg saa det fra?" */
#drom-plan-mal h3{
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 26px;
  font-weight: 800;
}

/* TESTIMONIALS */
.testimonials__title{
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 22px;
}

.projects__title{
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 38px);
  margin-bottom: 22px;
}

.tcarousel{
  display: grid;
  place-items: center;
}

.tcarousel__card{
  width: min(1100px, 92%);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  padding: 34px 34px 22px;
}

.tcarousel__viewport{
  position: relative;
}

.tcarousel__slide{
  display: none;
  text-align: center;
}

.tcarousel__slide.is-active{
  display: block;
}

.tcarousel__quote{
  margin: 0 auto 26px;
  max-width: 820px;
  font-size: 20px;
  line-height: 1.9;
  color: #222;
}

.tcarousel__person{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tcarousel__avatar{
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.tcarousel__meta{
  text-align: left;
}

.tcarousel__name{
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tcarousel__role{
  color: #666;
  font-size: 14px;
  margin-top: 2px;
}

.tcarousel__dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.tcarousel__dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: #d7d7d7;
  cursor: pointer;
  padding: 0;
}

.tcarousel__dot.is-active{
  background: #2b2b2b;
}

/* TARGET */
.section-target{
  text-align: left;
}

.section-target .container{
  width: min(980px, 92%);
}

.section-target .prose{
  text-align: center;
}

.target__title{
  margin: 0 0 26px;
  line-height: 1.15;
  text-align: center;
}

.target__title-light{
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px);
}

.target__title-strong{
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 44px);
}

.section-target .target__mail{
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* PROJEKTER */
.projects{
  display: grid;
  gap: 28px;
  margin-top: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.project{
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  padding: 28px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  min-width: 0;
  width: 100%;
}

.tag{
  display: inline-flex;
  width: auto;
  max-width: max-content;
  flex: 0 0 auto;
  align-self: flex-start;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  background: rgb(0, 0, 0);
  color: #fff;
}

.project__media{
  background: #eaeaea;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #777;
  font-weight: 600;
  max-width: 100%;
}

.project__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.project__title{
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#projekter .project__desc,
#projekter .project__desc p{
  margin: 0;
  font-size: var(--fs-body-drom);
  font-weight: 300;
  line-height: 1.35;
  color: #222;
}

#projekter .project__desc{
  overflow-wrap: anywhere;
  word-break: break-word;
}

#projekter .project__desc p + p{
  margin-top: 16px;
}

.project__cta{
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 16px;
  margin-top: 16px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.project__cta:hover{
  opacity: 0.9;
}

.project__cta:focus-visible{
  outline: 3px solid rgba(0,0,0,0.25);
  outline-offset: 3px;
}

/* Placeholder (kun hvis du stadig bruger den andre steder) */
.img-placeholder{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

/* CONTACT */
.contact-form-section{
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  color: #fff;
  background: #0b0b0b;
}

.contact-form-section::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.36);
  z-index: 1;
  pointer-events: none;
}

.video-background{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-background video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 75%;
  filter: grayscale(100%) contrast(105%) brightness(90%);
}

.contact-layout{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 520px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 70px 80px 0;
}

.contact-card{
  background: #0a0a0a;
  border-radius: 28px;
  padding: 40px 44px;
  max-width: 760px;
  width: 100%;
  min-width: 0;
  margin-left: 0;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

.contact-headline{
  margin: 0 0 24px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
}

.contact-form{
  display: grid;
  gap: 24px;
}

.contact-form .form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}

.contact-form .form-field label,
.contact-form .form-textarea-wrapper label{
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #d6d6d6;
}

.contact-form .form-field input,
.contact-form .textarea-field{
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 12px;
  color: #fff;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
}

.contact-form .form-field input:focus,
.contact-form .textarea-field:focus{
  border-color: #7df36a;
  box-shadow: 0 0 0 3px rgba(125,243,106,0.18);
}

.contact-form .textarea-field{
  min-height: 130px;
  resize: vertical;
}

.contact-form .form-consent{
  margin-top: -6px;
}

.contact-form .consent-label{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: #d6d6d6;
  letter-spacing: 0.01em;
}

.contact-form .consent-label span{
  min-width: 0;
}

.contact-form .consent-label input[type="checkbox"]{
  width: 16px;
  height: 16px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 4px;
  display: inline-grid;
  place-content: center;
}

.contact-form .consent-label input[type="checkbox"]::after{
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid #7df36a;
  border-bottom: 2px solid #7df36a;
  transform: rotate(45deg) scale(0);
  transition: transform 0.12s ease;
}

.contact-form .consent-label input[type="checkbox"]:checked::after{
  transform: rotate(45deg) scale(1);
}

.contact-form .consent-label input[type="checkbox"]:focus-visible{
  outline: 2px solid rgba(125,243,106,0.5);
  outline-offset: 2px;
}

.contact-form .form-submit-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: #7df36a;
  color: #0b0b0b;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form .form-submit-button:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(125,243,106,0.3);
}

.contact-form .form-submit-button:focus-visible{
  outline: 3px solid rgba(125,243,106,0.5);
  outline-offset: 3px;
}

.contact-form .contact-form-status{
  display: none;
  margin: 6px 0 0;
  padding: 0;
  background: transparent;
  color: #7df36a;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.contact-form .contact-form-status.is-visible{
  display: block;
}

@media (max-width: 900px){
  .video-background{
    display: none;
  }

  .contact-form-section::before{
    content: none;
  }

  .video-background video{
    object-position: 50% 90%;
  }

  .contact-layout{
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 40px 0 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .contact-card{
    margin-left: 0;
    padding: 32px;
  }
}

@media (prefers-reduced-motion: reduce){
  .video-background video{
    display: none;
  }

  .contact-form-section{
    background: #0b0b0b;
  }
}

@media (max-width: 720px){
  .contact-form .form-grid{
    grid-template-columns: 1fr;
  }

  .contact-form-section{
    padding: 0;
  }

  .contact-layout{
    min-height: 100vh;
    align-items: stretch;
  }

  .contact-card{
    max-width: none;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    padding: 32px 24px 40px;
  }
}

/* LOGOS (Marquee) */
.logos{
  --logo-h: 46px;
  --logo-gap: 56px;
  padding: 70px 0;
  background: #fff;
  overflow: hidden;
}

.logos__title{
  text-align: center;
  letter-spacing: 0.14em;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 26px);
  margin: 0 0 28px;
  color: #111;
}

.logos__marquee{
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  max-width: 100%;
  position: relative;
  contain: paint;
}

.logos__track{
  display: flex;
  width: max-content;
  overflow: hidden;
  will-change: transform;
  animation: logos-marquee 28s linear infinite;
}

.logos__marquee:hover .logos__track{
  animation-play-state: paused;
}

.logos__set{
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  padding-inline: 28px;
}

.logo__item{
  display: grid;
  place-items: center;
  height: 72px;
  min-width: 120px;
  text-decoration: none;
}

.logo__img{
  height: var(--logo-h);
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) contrast(110%) brightness(88%);
  opacity: 0.78;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.logo__item:hover .logo__img{
  opacity: 1;
  filter: grayscale(100%) contrast(115%) brightness(95%);
}

@keyframes logos-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .logos__track{
    animation: none;
    transform: none;
  }
  .logos__marquee{
    overflow: auto;
  }
}

@media (max-width: 720px){
  .logos{ --logo-h: 38px; --logo-gap: 38px; }
  .logos__marquee{ padding-inline: 12px; }
  .logos__set{ padding-inline: 20px; }
  .logo__item{ height: 64px; min-width: 100px; }
}

/* FOOTER */
.footer{
  padding: 32px 0;
  border-top: 1px solid #e6e6e6;
}

.footer p{
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Responsive */
@media (min-width: 1101px){
  .hero .container{
    justify-content: flex-end;
  }

  .hero__card{
    margin-left: 0;
    margin-right: 140px;
    transform: none;
  }
}

@media (max-width: 900px){
  body{
    overflow-x: clip;
  }

  .hero{
    min-height: 420px;
  }

  .hero .container{
    justify-content: center; /* card centreret paa mobil */
    padding: 40px 0;
  }

  .hero__card{
    padding: 20px;
    margin-top: 0;
    margin-right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
  }

  .tcarousel__card{
    padding: 22px 18px 18px;
    width: 100%;
    max-width: 100%;
  }

  .tcarousel__quote{
    font-size: 18px;
    line-height: 1.75;
  }

  .tcarousel__meta{
    text-align: left;
  }

  .project{
    padding: 22px;
  }
}

@media (min-width: 721px) and (max-width: 1100px){
  .hero{
    padding-left: 0;
    padding-right: 0;
  }

  .hero .container{
    width: min(1100px, 92%);
    justify-content: center;
  }

  .hero__card{
    position: relative;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: min(760px, calc(100vw - 32px));
    margin-inline: auto;
    overflow: hidden;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 600px){
  :root{
    --fs-body: var(--fs-body-sm);
    --lh-body: var(--lh-body-sm);
    --fs-body-target: var(--fs-body-target-sm);
    --lh-body-target: var(--lh-body-target-sm);
    --fw-body-target: var(--fw-body-target-sm);
    --prose-gap: var(--prose-gap-sm);
    --fs-body-drom: var(--fs-body-drom-sm);
    --lh-body-drom: var(--lh-body-drom-sm);
    --fw-body-drom: var(--fw-body-drom-sm);
    --prose-gap-drom: var(--prose-gap-drom-sm);
  }

  .hero{
    aspect-ratio: auto;
    min-height: clamp(360px, 60vh, 640px);
  }

  .hero__media{
    object-position: 70% 40%;
  }

  .hero .container{
    padding: 24px 0;
  }

  .hero__card{
    max-width: 100%;
  }

  .hero__card h1{
    font-size: 28px;
  }
}

/* =========================
   STICKY CTA
   Desktop: bottom-left button
   Mobile: minimal bottom bar
========================= */

.sticky-cta{
  position: fixed;
  z-index: 9999;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 999px;

  background: #111;
  color: #fff;
  text-decoration: none;

  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;

  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transform: translateZ(0);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.sticky-cta--accent{
  background: #7df36a;
  color: #0b0b0b;
}

.sticky-cta--hidden{
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.sticky-cta:hover{
  opacity: 0.92;
}

.sticky-cta:focus-visible{
  outline: 3px solid rgba(0,0,0,0.25);
  outline-offset: 4px;
}

/* Mobile: keep it as low as we can, but still tappable */
@media (max-width: 768px){
  .sticky-cta{
    left: 8px;
    right: 8px;
    width: auto;

    height: 44px;
    padding: 0 14px;

    border-radius: 14px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));

    white-space: nowrap;
  }

  .sticky-cta__label{
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce){
  .sticky-cta{
    transition: none;
  }

  .sticky-cta--hidden{
    transform: none;
  }
}

/* Body space so CTA never covers content */
body.has-sticky-cta{
  padding-bottom: var(--sticky-cta-space, 0px);
}
