/* Impactory – forside. Farver og typografi jf. designbrief. */

:root {
  --blue-dark: #1F375D;
  --blue-darker: #16294A;
  --blue: #4E8AC9;
  --tint: #EEF3F9;
  --tint-dark: #DEE8F3;
  --text: #1F2A38;
  --text-muted: #5B6675;
  --white: #FFFFFF;
  --radius: 6px;
  --radius-lg: 12px;
  --container: 1560px;
  --edge: max(24px, 4vw);
  /* Instrument Sans står ind for Garnett Semibold indtil licens er afklaret */
  --font-head: "Instrument Sans", "Garnett", sans-serif;
  --font-body: "Doppio One", sans-serif;
  --section: 104px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--blue-dark);
}
h1 { font-size: 60px; }
h2 { font-size: 42px; }
h3 { font-size: 26px; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
img { display: block; max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--edge); }
.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--blue-dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue h2 { color: var(--white); }

.eyebrow { font-size: 14px; color: var(--blue-dark); margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--text-muted); max-width: 640px; }

/* Knapper */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 15px 22px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn .arrow { color: var(--blue); transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { background: var(--blue-dark); color: var(--white); }
.btn--primary:hover { background: var(--blue-darker); }
.btn--secondary { background: var(--tint); color: var(--blue-dark); }
.btn--secondary:hover { background: var(--tint-dark); }
.btn--light { background: var(--white); color: var(--blue-dark); }
.btn--light:hover { background: var(--tint); }

/* Ringen fra logoets O */
.ring { display: inline-block; width: 1em; height: 1em; }

/* Billedplaceholders (erstattes af fotos) */
.ph {
  position: relative;
  background:
    radial-gradient(120% 90% at 20% 20%, #7FA9D6 0%, transparent 60%),
    radial-gradient(90% 80% at 85% 80%, #2C4C7C 0%, transparent 55%),
    linear-gradient(160deg, #4A7AB3 0%, #1F375D 100%);
  border-radius: var(--radius);
  overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.88);
  color: var(--blue-dark);
  z-index: 3;
}

/* Scroll-reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Header */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 24px 0;
  transition: background-color .2s var(--ease), padding .2s var(--ease);
}
.header .container {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.header.is-scrolled {
  position: fixed;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tint-dark);
  padding: 14px 0;
}
.logo { display: inline-block; line-height: 0; }
.logo img { height: 22px; width: auto; }
.logo-dark { display: none; }
.header.is-scrolled .logo-light { display: none; }
.header.is-scrolled .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  color: var(--white);
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.header.is-scrolled .nav a:not(.btn) { color: var(--blue-dark); }
.header:not(.is-scrolled) .nav .btn--primary { background: var(--white); color: var(--blue-dark); }
.nav-toggle {
  display: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}
.header.is-scrolled .nav-toggle { color: var(--blue-dark); border-color: var(--tint-dark); }

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(55% 70% at 80% 35%, rgba(126,169,214,.55) 0%, transparent 60%),
    radial-gradient(40% 50% at 60% 90%, rgba(78,138,201,.35) 0%, transparent 60%),
    linear-gradient(120deg, #16294A 0%, #24446F 55%, #3A6598 100%);
  overflow: hidden;
}
.hero-video, .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(31,55,93,.94) 0%, rgba(31,55,93,.6) 45%, rgba(31,55,93,.05) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; max-width: none; padding-top: 140px; padding-bottom: 100px; width: 100%; }
.hero-inner { max-width: 680px; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero p { font-size: 19px; max-width: 560px; margin-bottom: 34px; }
.hero-inner > * { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.hero-inner h1 { animation-delay: .1s; }
.hero-inner p { animation-delay: .28s; }
.hero-inner .btn { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-ring-wrap {
  position: absolute;
  right: 7vw;
  top: 50%;
  width: min(36vw, 440px);
  aspect-ratio: 1;
  transform: translateY(-46%);
  color: rgba(255,255,255,.12);
  pointer-events: none;
  z-index: 1;
}
.hero-ring-wrap svg { width: 100%; height: 100%; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .ph-label { left: auto; right: var(--edge); bottom: 24px; }

/* Ydelser (grupperet) */
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}
.services-head h2 { margin: 0; }
.services-head .lead { max-width: 560px; justify-self: end; }
.service-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-group {
  background: var(--tint);
  border-radius: var(--radius-lg);
  padding: 36px 36px 28px;
  display: flex;
  flex-direction: column;
}
.service-group .ring { width: 30px; height: 30px; color: var(--blue); margin-bottom: 18px; }
.service-group h3 { font-size: 24px; margin-bottom: 8px; }
.service-group p { font-size: 15px; color: var(--text-muted); margin-bottom: 22px; }
.service-links { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--tint-dark); }
.service-links li { border-bottom: 1px solid var(--tint-dark); }
.service-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--blue-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: color .2s var(--ease);
}
.service-links a::after {
  content: "›";
  font-size: 22px;
  line-height: 1;
  color: var(--blue);
  transition: transform .25s var(--ease);
}
.service-links a:hover { color: var(--blue); }
.service-links a:hover::after { transform: translateX(4px); }

.funding {
  margin-top: 20px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.funding .ring { width: 40px; height: 40px; color: var(--blue); }
.funding h3 { color: var(--white); font-size: 22px; margin-bottom: 4px; }
.funding p { color: rgba(255,255,255,.82); font-size: 16px; }

/* Om os-boks */
.about-box {
  background: var(--tint);
  border-radius: var(--radius-lg);
  padding: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-box .ph { aspect-ratio: 4 / 3; box-shadow: 0 8px 28px rgba(31,55,93,.10); }
.about-box h2 { color: var(--blue); }

/* Brancher */
.who { padding: 88px 0; }
.who .container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: center; }
.who h2 { margin: 0 0 12px; }
.who .lead { color: rgba(255,255,255,.85); }
.who-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
.who-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: transform .25s var(--ease);
}
.who-list a:hover { transform: translateX(6px); }
.who-list .ring { width: 26px; height: 26px; flex: none; color: var(--white); }

/* Testimonial-slider */
.slider { position: relative; }
.slider-view { overflow: hidden; border-radius: var(--radius-lg); }
.slides { display: flex; transition: transform .55s var(--ease); }
.slide {
  flex: 0 0 100%;
  background: var(--tint);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}
.slide-body { padding: 72px; }
.quote-mark { font-family: var(--font-head); font-weight: 600; font-size: 84px; line-height: .5; color: var(--blue); margin-bottom: 26px; }
.quote-text { font-family: var(--font-head); font-weight: 500; font-size: 27px; letter-spacing: -0.015em; line-height: 1.35; color: var(--blue-dark); margin-bottom: 32px; }
.quote-person { display: flex; align-items: center; gap: 14px; }
.quote-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); flex: none; overflow: hidden; }
.quote-name { font-family: var(--font-head); font-weight: 600; color: var(--blue-dark); display: block; }
.quote-title { font-size: 15px; color: var(--text-muted); }
.slide .ph { border-radius: 0; align-self: stretch; min-height: 440px; }
.slider-nav { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }
.slider-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--tint-dark);
  background: var(--white);
  color: var(--blue-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.slider-btn:hover { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }

/* Viden */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
}
.post .ph { position: absolute; inset: 0; border-radius: 0; transition: transform .7s var(--ease); }
.post:hover .ph { transform: scale(1.05); }
.post::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,55,93,.15) 0%, rgba(31,55,93,.35) 45%, rgba(22,41,74,.9) 100%);
  z-index: 1;
}
.post-inner {
  position: absolute; inset: 0;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.post-tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.92);
  color: var(--blue-dark);
}
.post h3 { color: var(--white); font-size: 22px; margin: 0 0 6px; max-width: 92%; }
.post .more {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  gap: 6px;
  transition: transform .25s var(--ease);
}
.post:hover .more { transform: translateX(4px); }

/* Kontakt-CTA */
.cta { text-align: center; max-width: 680px; margin: 0 auto; }
.cta h2 { margin-bottom: 10px; }
.cta .lead { margin: 0 auto 28px; }
.cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer { padding: 80px 0 32px; font-size: 15px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer .logo img { height: 24px; margin-bottom: 18px; }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer p { color: rgba(255,255,255,.8); max-width: 360px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.65); }

/* Reduceret bevægelse */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-inner > * { opacity: 1; transform: none; animation: none; }
  .hero-ring-wrap svg { animation: none; }
  .slides { transition: none; }
  * { transition-duration: 0s !important; }
}

/* Responsivt */
@media (max-width: 1100px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  .services-head { grid-template-columns: 1fr; gap: 16px; }
  .services-head .lead { justify-self: start; }
  .service-groups { grid-template-columns: 1fr; }
  .funding { grid-template-columns: auto 1fr; }
  .funding .btn { grid-column: 2; justify-self: start; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .about-box { grid-template-columns: 1fr; padding: 48px; gap: 36px; }
  .who .container { grid-template-columns: 1fr; gap: 28px; }
  .who-list { grid-template-columns: 1fr; gap: 0; }
  .who-list a { font-size: 26px; }
  .slide { grid-template-columns: 1fr; }
  .slide .ph { order: -1; min-height: 280px; }
  .slide-body { padding: 44px; }
  .hero-ring-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --section: 64px; }
  body { font-size: 16px; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }
  .hero { min-height: 0; }
  .hero .container { padding-top: 110px; padding-bottom: 64px; }
  .nav ul, .nav .btn { display: none; }
  .nav-toggle { display: inline-block; }
  .nav.is-open ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    padding: 20px var(--edge) 24px;
    border-bottom: 1px solid var(--tint-dark);
  }
  .nav.is-open a:not(.btn) { color: var(--blue-dark); }
  .service-group { padding: 28px 24px 20px; }
  .funding { grid-template-columns: 1fr; padding: 28px 24px; gap: 16px; }
  .funding .btn { grid-column: 1; }
  .card-grid { grid-template-columns: 1fr; }
  .about-box { padding: 28px; }
  .who { padding: 64px 0; }
  .who-list a { font-size: 22px; }
  .quote-text { font-size: 22px; }
  .slide-body { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
