/* Delta Facility – fælles stylesheet. Farver fra logoet: blå, sort og hvid. */

@font-face { font-family: "Archivo Black"; src: url("../fonts/archivo-black.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-600.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --hvid: #ffffff;
  --lys: #eef4f9;        /* lyse paneler */
  --brand: #0083ca;      /* logoets blå – striber og detaljer */
  --brand-dark: #00669e; /* mørkere blå til knapper og flader med hvid tekst */
  --sort: #111111;       /* tekst og overskrifter, som logoets sorte */
  --graa: #555d63;
  --linje: #d3dde5;

  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Fira Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--sort);
  background: var(--hvid);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
p { margin: 0 0 1em; max-width: 38em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--brand-dark); color: var(--hvid); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--hvid); border-bottom: 1px solid var(--linje); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
.logo { display: inline-block; line-height: 0; }
.logo img { height: 88px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin: 0; padding: 0; list-style: none; font-weight: 500; }
.nav a { text-decoration: none; padding: .3rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--brand); }
.nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand-dark); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; padding: .85rem 1.4rem; border-radius: 4px; border: 2px solid transparent;
}
.btn-primary { background: var(--brand-dark); color: var(--hvid); }
.btn-primary:hover { background: #00578a; }
.btn-line { border-color: var(--sort); }
.btn-line:hover { background: var(--lys); }

/* ---------- Hero med logoets striber ---------- */
.hero { background: var(--hvid); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero .wrap > * { grid-column: 1; }
.hero h1 { max-width: 13ch; }
.hero .lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--graa); margin: 1.5rem 0 0; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Fem blå striber – samme rytme som i logoet: smalle øverst, bredere nederst */
.hero .bars { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 12px; }
.bars span { display: block; background: var(--brand); border-radius: 4px; transform-origin: left center; animation: bar-in .7s cubic-bezier(.2,.7,.2,1) both; }
.bars span:nth-child(1) { height: 44px; animation-delay: .15s; }
.bars span:nth-child(2) { height: 44px; animation-delay: .25s; }
.bars span:nth-child(3) { height: 56px; animation-delay: .35s; }
.bars span:nth-child(4) { height: 82px; animation-delay: .45s; }
.bars span:nth-child(5) { height: 104px; animation-delay: .55s; }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .bars span { animation: none; } }

/* Undersidernes topsektion med tre striber som bundkant */
.page-head { background: var(--hvid); }
.page-head .wrap { padding-top: clamp(2.8rem, 7vw, 5rem); padding-bottom: clamp(2rem, 5vw, 3rem); }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); max-width: 16ch; }
.page-head .lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--graa); margin-top: 1.25rem; }
.stripes { display: flex; flex-direction: column; gap: 6px; }
.stripes span { display: block; background: var(--brand); }
.stripes span:nth-child(1) { height: 8px; }
.stripes span:nth-child(2) { height: 12px; }
.stripes span:nth-child(3) { height: 18px; }

/* ---------- Sektioner ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-lys { background: var(--lys); }
.hero + .section { background: var(--lys); }
.section h2 { margin-bottom: 1.25rem; }
.intro { font-size: 1.2rem; max-width: 36em; }

/* Ydelser som brede rækker */
.services { margin-top: 2.5rem; border-top: 3px solid var(--sort); }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 3rem;
  padding: 2.2rem 0; border-bottom: 1px solid #bfcdd8;
}
.service h3 a { text-decoration: none; }
.service h3 a:hover { color: var(--brand-dark); }
.service p { color: var(--graa); }
.service .more { font-weight: 600; color: var(--brand-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.service ul { margin: 0 0 1rem; padding-left: 1.1rem; }

/* Indholdsrækker på undersider */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem 4rem; align-items: start; }
.split a { color: var(--brand-dark); }
.facts { background: var(--lys); border-left: 6px solid var(--brand); padding: 1.6rem 1.8rem; }
.facts h3 { font-size: 1.3rem; margin-bottom: .8rem; }
.facts ul { margin: 0; padding-left: 1.1rem; }
.facts li + li { margin-top: .35rem; }

.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: trin; }
.steps li { counter-increment: trin; position: relative; padding: 0 0 1.2rem 3rem; max-width: 36em; }
.steps li::before {
  content: counter(trin); position: absolute; left: 0; top: -.1rem;
  font-family: var(--display); font-size: 1.1rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand-dark); color: var(--hvid); display: grid; place-items: center;
}

/* ---------- Ring-bånd ---------- */
.callband { background: var(--brand-dark); color: var(--hvid); }
.callband .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding-top: 2.6rem; padding-bottom: 2.6rem; }
.callband p { margin: 0; font-size: 1.2rem; font-weight: 500; }
.callband .phone { font-family: var(--display); font-size: clamp(1.8rem, 4.5vw, 2.8rem); text-decoration: none; line-height: 1; white-space: nowrap; }
.callband .phone:hover { text-decoration: underline; text-decoration-thickness: 3px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem 3rem; margin-top: 2rem; }
.contact-grid h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.contact-grid p { margin: 0 0 .3rem; }
.big-link { font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: var(--brand-dark); text-decoration: none; line-height: 1.15; overflow-wrap: anywhere; }
.big-link:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.hours { border-collapse: collapse; }
.hours td { padding: .15rem 1.5rem .15rem 0; }
.person { margin-top: 2.5rem; padding-top: 2rem; border-top: 3px solid var(--sort); }
.person .role { color: var(--graa); margin-bottom: .6rem; }
.person a { color: var(--brand-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sort); color: #c9c9c9; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
.site-footer strong { color: var(--hvid); font-weight: 600; display: block; margin-bottom: .4rem; }
.site-footer p { margin: 0 0 .25rem; }
.site-footer a { color: var(--hvid); }
.site-footer .legal { grid-column: 1 / -1; max-width: none; border-top: 1px solid #333; padding-top: 1.2rem; color: #9a9a9a; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .bars { grid-column: 1; grid-row: auto; margin-top: 2.5rem; gap: 8px; }
  .bars span:nth-child(1), .bars span:nth-child(2) { height: 18px; }
  .bars span:nth-child(3) { height: 24px; }
  .bars span:nth-child(4) { height: 32px; }
  .bars span:nth-child(5) { height: 40px; }
  .service, .split { grid-template-columns: 1fr; }
  .service { gap: .6rem; }
  .nav { gap: .2rem 1.1rem; font-size: 1rem; }
  .callband .wrap { flex-direction: column; align-items: flex-start; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .logo img { height: 72px; }
}

/* ---------- Midlertidig side og kodelås ---------- */
.soon { min-height: 100vh; display: grid; place-items: center; background: var(--hvid); }
.soon-main { width: 100%; max-width: 44rem; padding: 3rem var(--gutter); }
.soon-logo { height: 120px; width: auto; margin-bottom: 2.5rem; }
.soon h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: 14ch; }
.soon .lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--graa); margin: 1.25rem 0 0; }
.soon .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.5rem; }
.soon .stripes { margin-top: 2.5rem; }
.soon-legal { margin-top: 1.25rem; font-size: .9rem; color: var(--graa); }
.gate { margin: 2rem 0 0; }
.gate label { display: block; font-weight: 600; margin-bottom: .4rem; }
.gate-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.gate input {
  flex: 1 1 14rem; font: inherit; font-size: 1.1rem; padding: .8rem 1rem;
  border: 2px solid var(--sort); border-radius: 4px; background: var(--hvid);
}
.gate input[aria-invalid="true"] { border-color: #b3261e; }
.gate .btn { cursor: pointer; }
.gate-error { color: #b3261e; font-weight: 600; margin: .8rem 0 0; }
