/* ==========================================================================
   Prime Security Group
   ========================================================================== */

:root {
  --bg:        #12151A;
  --bg-2:      #171B21;
  --bg-3:      #1D222A;
  --ink:       #E8EBED;
  --ink-dim:   #A8B0B8;
  --muted:     #7E868E;
  --blue:      #2E5C8A;
  --blue-lt:   #4A82BE;
  --line:      rgba(232, 235, 237, 0.10);
  --line-soft: rgba(232, 235, 237, 0.06);

  --wrap: 1240px;
  --gut: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--blue); color: #fff; }

/* --- Typografi ------------------------------------------------------------ */

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--blue-lt);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lead {
  color: var(--ink-dim);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

section { padding: clamp(80px, 10vw, 140px) 0; }

/* --- Knapper -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-lt);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(232, 235, 237, 0.22);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(232, 235, 237, 0.05);
}

.btn-sm { padding: 11px 22px; font-size: 0.82rem; }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 21, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  color: var(--ink-dim);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--ink);
  cursor: pointer;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(18, 21, 26, 0.72) 42%, rgba(18, 21, 26, 0.32) 100%),
    linear-gradient(to right, rgba(18, 21, 26, 0.80) 0%, rgba(18, 21, 26, 0.15) 65%);
}

.hero .wrap { position: relative; z-index: 1; }

.hero h1 { max-width: 15ch; }

.hero .lead {
  max-width: 46ch;
  margin-top: 26px;
  color: #C9D0D6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* --- Trust-strip ---------------------------------------------------------- */

.strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding: 0;
}

.strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 44px 28px;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; padding-left: 0; }

.stat b {
  display: block;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* --- Sektionshoved -------------------------------------------------------- */

.sec-head {
  max-width: 62ch;
  margin-bottom: clamp(48px, 5vw, 72px);
}

/* --- Ydelser -------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-3);
  isolation: isolate;
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.1s var(--ease);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 13, 17, 0.94) 8%, rgba(11, 13, 17, 0.55) 48%, rgba(11, 13, 17, 0.18) 100%);
  transition: background 0.5s var(--ease);
}

.card:hover img { transform: scale(1.05); }
.card:hover::after {
  background: linear-gradient(to top, rgba(11, 13, 17, 0.96) 8%, rgba(24, 50, 80, 0.62) 55%, rgba(11, 13, 17, 0.25) 100%);
}

.card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 28px;
}

.card-num {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-lt);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.card p {
  margin: 10px 0 0;
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

.card-rule {
  width: 34px;
  height: 2px;
  margin-top: 18px;
  background: var(--blue);
  transition: width 0.5s var(--ease);
}
.card:hover .card-rule { width: 64px; }

/* --- Split ---------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 6vw, 90px);
  align-items: center;
}

.split-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid var(--line);
  pointer-events: none;
}

.split.reverse .split-media { order: 2; }

/* --- Punktliste ----------------------------------------------------------- */

.points {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: 22px 0 22px 26px;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
.points li:last-child { border-bottom: 1px solid var(--line-soft); }

.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 32px;
  width: 8px;
  height: 1px;
  background: var(--blue-lt);
}

.points b {
  display: block;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.points span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* --- Fuldbredde-bånd ------------------------------------------------------ */

.band {
  position: relative;
  padding: clamp(100px, 12vw, 170px) 0;
  overflow: hidden;
}

.band-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(18, 21, 26, 0.94) 12%, rgba(18, 21, 26, 0.62) 60%, rgba(18, 21, 26, 0.38) 100%);
}

.band .wrap { position: relative; z-index: 1; }
.band-inner { max-width: 54ch; }

/* --- CTA ------------------------------------------------------------------ */

.cta {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  text-align: center;
}
.cta .wrap { max-width: 720px; }
.cta .lead { margin: 22px auto 0; }
.cta .hero-actions { justify-content: center; }

/* --- Kontakt -------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-list li:first-child { border-top: 1px solid var(--line-soft); }

.info-list span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.info-list a, .info-list b {
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.info-list a { border-bottom: 1px solid var(--line); transition: border-color 0.2s var(--ease); }
.info-list a:hover { border-color: var(--blue-lt); }

.form {
  padding: clamp(30px, 3.5vw, 46px);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-lt);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 21px, calc(100% - 15px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.form-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-status {
  padding: 26px 30px;
  margin-bottom: 22px;
  background: var(--bg-2);
  border: 1px solid var(--blue);
  border-left-width: 3px;
}

.form-status.fejl { border-color: #A8503C; }

.form-status b {
  display: block;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.form-status span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-top img { height: 38px; width: auto; margin-bottom: 20px; }

.footer-top p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.fcol h4 {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.fcol ul { margin: 0; padding: 0; list-style: none; }
.fcol li { margin-bottom: 11px; }
.fcol a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}
.fcol a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* --- Reveal --------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Responsivt ----------------------------------------------------------- */

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line-soft); padding: 32px 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line-soft); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  :root { --gut: 22px; }
  body { font-size: 16px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px var(--gut) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav.open a { padding: 15px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav.open .btn { margin-top: 16px; border-bottom: 0; }
  .nav-toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .card { aspect-ratio: 3 / 2; }
  .hero { min-height: 76vh; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
