/* DPU Bygningsentreprise – bygget fra Figma-filen "DPU Bygningsentreprise website" (2026-11-09) */

:root {
  --green: #687358;
  --green-dark: #535c46;
  --white: #ffffff;
  --black: #000000;
  --grey-bg: #f5f5f5;
  --border: #d9d9d9;
  --muted: rgba(0, 0, 0, 0.6);

  --font-head: "Orbitron", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1312px;   /* 1600 - 2 x 144 */
  --narrow: 1088px;      /* 1600 - 2 x 256 */
  --gutter: clamp(16px, 5vw, 32px);
  --radius: 16px;

  /* Typografi – skalerer ned på små skærme, så Orbitron-ord som
     "Bygningsentreprise" altid kan stå på én linje uden at blive skåret af */
  --fs-hero: clamp(1.25rem, 6.2vw, 2.5rem);     /* 40px */
  --fs-h2: clamp(1.25rem, 3.6vw, 2.75rem);      /* 44px – i to kolonner */
  --fs-h3: clamp(1.125rem, 4.6vw, 1.5rem);      /* 24px */
  --fs-sub: clamp(1rem, 4.4vw, 1.25rem);        /* 20px */
  --fs-follow: clamp(1.25rem, 6vw, 1.875rem);   /* 30px */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}
main:focus { outline: none; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
  hyphens: manual;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--green);
  padding: 12px 20px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid #f2c94c; outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn--green:hover { background: transparent; color: var(--green); }
.btn--white { background: var(--white); color: var(--green); border-color: var(--white); }
.btn--white:hover { background: transparent; color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-top: 48px;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo { display: block; flex: none; width: 200px; }
.logo img { width: 100%; height: auto; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav__list {
  display: flex; align-items: center;
  margin: 0; padding: 0; list-style: none;
}
.main-nav__list a {
  display: block;
  padding: 12px 20px;
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .2s;
}
.main-nav__list a:hover { background: var(--black); }
.main-nav__list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.btn--call { background: var(--white); color: var(--green); border-color: var(--white); }
.btn--call:hover { background: var(--green); color: var(--white); border-color: var(--green); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 0; border-radius: var(--radius);
  background: transparent; color: var(--white);
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero, .band { container-type: inline-size; }
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  background: var(--green);
  color: var(--white);
}
.hero--tall { min-height: 785px; }
.hero--project { min-height: 760px; }
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 200px 32px 96px max(var(--gutter), calc((100cqw - var(--container)) / 2));
}
.hero__text > * { max-width: 592px; }
.hero__overline { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.25; }
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}
.hero__title:last-child { margin-bottom: 0; }
.hero__lead { margin: 0; }
.hero__text .btn { align-self: flex-start; margin-top: 64px; }
.hero__facts { margin: 0; padding: 0; list-style: none; font-size: 1.125rem; }
.hero__facts li + li { margin-top: 8px; }

.hero__media { position: relative; min-height: 320px; }
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Indre skygge fra toppen (Figma: inner shadow 0/240/240 25 % sort) – giver ro bag menuen */
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 240px 240px -120px rgba(0, 0, 0, .25);
  pointer-events: none;
}

/* Kontakt-hero: kun grøn flade med to kolonner adresse/kontakt */
.hero--contact { display: block; min-height: 0; padding: 280px 0 160px; }
.contact-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 416px));
  gap: 32px;
}
.contact-cols h2 { font-size: var(--fs-sub); margin-bottom: 8px; }
.contact-cols p { margin: 0; }
.contact-cols a { text-decoration: none; }
.contact-cols a:hover { text-decoration: underline; }
.map-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-size: 1.125rem; line-height: 1.25;
  text-decoration: none;
  transition: opacity .2s;
}
.map-link img { width: 24px; height: 32px; }
.map-link:hover { opacity: .7; }

/* ---------- Sektioner ---------- */
.section { padding-block: 120px; }
.section--grey { background: var(--grey-bg); }
.section__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

/* Ydelses-kort (forsiden) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  margin: 0; padding: 0; list-style: none;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 56px;
  border: 1px solid var(--border);
}
.service-card__icon { height: 64px; display: flex; align-items: flex-end; }
.service-card__icon img { height: auto; max-height: 64px; width: auto; }
.service-card h3 { font-size: var(--fs-h3); margin: 20px 0 8px; }
.service-card p { margin: 0; }
.service-card .btn { align-self: flex-start; margin-top: auto; }
.service-card p + .btn { margin-top: 40px; }

/* To-kolonne tekstblokke (Ydelser / Om os) */
.split-list > * + * { margin-top: 120px; }
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 64px;
  align-items: start;
}
.split h2 {
  font-size: var(--fs-h2);
  letter-spacing: 0.05em;
  max-width: 592px;
}
.split__body .btn { margin-top: 40px; }

/* Fuld bredde 50/50 bånd (billede + grøn tekst) */
.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--green);
  color: var(--white);
}
.band__media { position: relative; min-height: 360px; }
.band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 160px max(var(--gutter), calc((100cqw - var(--container)) / 2)) 160px 88px;
}
.band__text > * { max-width: 568px; }
.band__text h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}
.band__text .btn { align-self: flex-start; margin-top: 40px; }

/* Kontakt-CTA med portræt */
.cta-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px 0;
}
.cta-split__text { padding-right: 88px; }
.cta-split__text > * { max-width: 568px; }
.cta-split h2 {
  font-size: var(--fs-h2);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}
.cta-split .btn { margin-top: 40px; }
.cta-split__media img { width: 100%; aspect-ratio: 656 / 492; object-fit: cover; }

/* Projektkort */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  margin: 0; padding: 0; list-style: none;
}
.project-card { display: block; text-decoration: none; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.project-card h2, .project-card h3 { font-size: var(--fs-sub); margin-top: 20px; }
a.project-card:hover img { opacity: .85; }
a.project-card:hover h2 { text-decoration: underline; text-underline-offset: 4px; }

/* Projektgalleri */
.project-intro { font-size: var(--fs-h2); letter-spacing: 0.05em; font-weight: 700; margin-bottom: 64px; }
.gallery { display: grid; gap: 64px; }
.gallery__row { display: grid; gap: 64px; }
.gallery__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { margin-top: 20px; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sub); line-height: 1.25; }

/* Kontaktformular */
.contact-intro {
  display: grid;
  grid-template-columns: minmax(0, 568px) minmax(0, 456px);
  justify-content: space-between;
  gap: 32px 64px;
  margin-bottom: 128px;
}
.contact-intro h2 { font-size: var(--fs-h2); letter-spacing: 0.05em; }
.form { display: grid; gap: 24px; }
.field label { display: block; margin-bottom: 8px; font-size: .875rem; color: var(--muted); }
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 18px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--grey-bg);
  color: var(--black);
  font: inherit;
  line-height: 1.25;
  transition: border-color .2s;
}
.field textarea { min-height: 240px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.form .btn { justify-self: start; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.turnstile { min-height: 65px; max-width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-size: .9375rem; }

/* ---------- Footer ---------- */
.site-footer__main { background: var(--grey-bg); padding: 80px 0; }
.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.site-footer h2 { font-size: var(--fs-sub); margin-bottom: 8px; }
.site-footer address { font-style: normal; }
.site-footer address a { text-decoration: none; }
.site-footer address a:hover { text-decoration: underline; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.follow h2 { font-size: var(--fs-follow); margin: 0; }
.social { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  transition: background-color .2s, color .2s;
}
.social a:hover { background: var(--white); color: var(--green); }
.social svg { width: 100%; height: 100%; fill: currentColor; }

.site-footer__legal { padding: 48px 0; font-size: .875rem; }
.site-footer__legal p { margin: 0; }
.site-footer__legal a { text-decoration: none; }
.site-footer__legal a:hover { text-decoration: underline; }

/* Til toppen */
.to-top {
  position: fixed; right: 24px; bottom: 32px; z-index: 30;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .2);
  color: var(--white);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--green); }
.to-top svg { width: 24px; height: 24px; }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 16px; }
  .main-nav__list a { padding: 12px 12px; }
  .service-card { padding: 40px; }
  .service-grid, .project-grid, .gallery, .gallery__row { gap: 32px; }
  .band__text { padding: 96px var(--gutter) 96px 56px; }
  .cta-split__text { padding-right: 48px; }
}

/* ---------- Mobil-menu ---------- */
@media (max-width: 960px) {
  .site-header { position: relative; padding: 16px 0; background: var(--green); }
  .logo { width: 140px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 32px;
    padding: 96px var(--gutter) 48px;
    background: var(--green);
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transition: opacity .2s, visibility .2s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { position: fixed; inset: 0 0 auto 0; }
  .main-nav__list { flex-direction: column; gap: 8px; }
  .main-nav__list a { font-size: 1.5rem; padding: 12px 24px; }

  .hero, .hero--tall, .hero--project { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 48px var(--gutter) 56px; }
  .hero__text .btn { margin-top: 40px; }
  .hero__media { aspect-ratio: 4 / 3; min-height: 0; }
  .hero__media::after { display: none; }
  .hero--contact { padding: 48px 0 64px; }
}

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  :root { --fs-h2: clamp(1.25rem, 6.2vw, 2.75rem); }  /* én kolonne */
  .section { padding-block: 72px; }
  .section__title { margin-bottom: 32px; }
  .service-grid, .project-grid, .gallery__row--2, .gallery__row--3 { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px; }
  .split, .cta-split, .contact-intro, .contact-cols { grid-template-columns: 1fr; }
  .split-list > * + * { margin-top: 72px; }
  .split__body .btn, .cta-split .btn, .band__text .btn { margin-top: 32px; }
  .cta-split__text { padding-right: 0; }
  .band { grid-template-columns: 1fr; }
  .band__media { aspect-ratio: 4 / 3; min-height: 0; }
  .band__text { padding: 56px var(--gutter) 64px; }
  .band--reverse-mobile .band__media { order: 0; }
  .contact-intro { margin-bottom: 56px; }
  .project-intro { margin-bottom: 40px; }
  .site-footer__main { padding: 56px 0; }
  .site-footer__legal { padding: 32px 0 96px; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 400px) {
  .btn { padding-inline: 18px; }
  .service-card { padding: 28px 20px; }
}
