/*
 * Amager Låseservice
 * Shared stylesheet for independently deployable HTML5 sites.
 */
:root {
  color-scheme: light;
  --ink: #132a34;
  --ink-deep: #10232c;
  --ink-alt: #193746;
  --muted: #49636f;
  --paper: #fff;
  --mist: #edf2f3;
  --line: #c5d3d8;
  --light-ink: #d8e5e9;
  --signal: #f8d35c;
  --signal-hover: #ffdf79;
  --focus: #bd4500;
  --width: 75rem;
  --gutter: clamp(1rem, 4.35vw, 3.25rem);
  --r: 0.5rem;
  --display: Arial, Helvetica, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  font-family: var(--body);
  scroll-padding-top: 1rem;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.65;
}

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

figure,
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.1;
  text-wrap: balance;
}

p + p {
  margin-top: 1em;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:is(a, button, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0.24rem;
}

.container,
.header-inner,
.hero-inner,
.contact-inner,
.footer-grid {
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  z-index: 10;
  inset: 0 auto auto 1rem;
  transform: translateY(-120%);
  padding: 0.65rem 1rem;
  border-radius: 0 0 var(--r) var(--r);
  color: var(--ink-deep);
  background: var(--signal);
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

.utility {
  color: var(--light-ink);
  background: var(--ink-deep);
  border-bottom: 1px solid #34515e;
  font-size: 0.875rem;
  font-weight: 650;
}

.utility .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.2rem 1rem;
  min-height: 2.45rem;
  padding-block: 0.33rem;
}

.utility a,
:is(.hero, .page-hero) a:not(.button),
.site-footer a:hover {
  color: var(--signal);
}

.utility a {
  font-variant-numeric: tabular-nums;
}

.site-header {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.15rem;
  min-height: 4.8rem;
  padding-block: 0.6rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  font-family: var(--display);
  font-size: clamp(1rem, 2.1vw, 1.24rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  overflow: hidden;
  border-radius: 0.32em;
  color: var(--signal);
  background: var(--ink);
  font-size: 0.875rem;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.brand-mark:empty::before {
  width: 0.74rem;
  height: 0.65rem;
  margin-top: 0.34rem;
  border: 2px solid currentColor;
  border-radius: 0.1rem;
  box-shadow: 0 -0.41rem 0 -0.12rem var(--ink), 0 -0.41rem 0 -0.015rem currentColor;
  content: "";
}

.site-nav,
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  text-decoration: underline;
}

.header-call {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 0.82rem;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header-call:hover {
  color: white;
  background: var(--ink);
}

.hero,
.page-hero {
  color: var(--paper);
  background: linear-gradient(119deg, var(--ink-deep) 12%, var(--ink-alt) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(1.75rem, 6vw, 5rem);
  padding-block: clamp(3.1rem, 7.3vw, 6.9rem);
}

.hero-copy {
  min-width: 0;
}

.hero-inner:not(:has(.hero-media img)) {
  grid-template-columns: minmax(0, 1fr);
}

.hero-media:not(:has(img)) {
  display: none;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 770;
  letter-spacing: 0.075em;
  line-height: 1.4;
  text-transform: uppercase;
}

:is(.hero, .page-hero, .contact-band) .eyebrow {
  color: var(--signal);
}

.hero h1,
.page-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.8rem, 6.15vw, 5.9rem);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
}

.hero h1 {
  margin-top: 0.9rem;
}

.hero-copy .lead,
.page-hero .lead {
  max-width: 43ch;
  margin-top: 1.25rem;
  color: var(--light-ink);
  font-size: clamp(1.02rem, 2.05vw, 1.23rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  min-height: 3.08rem;
  align-items: center;
  justify-content: center;
  padding: 0.67rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.38;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button--primary {
  border-color: var(--signal);
  color: var(--ink-deep);
  background: var(--signal);
}

.button--primary:hover {
  border-color: var(--signal-hover);
  background: var(--signal-hover);
}

.button--secondary {
  border-color: currentColor;
}

.button--secondary:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

:is(.hero, .page-hero, .contact-band) .button--secondary:hover {
  color: var(--ink-deep);
  background: var(--paper);
  border-color: var(--paper);
}

:is(.hero, .page-hero, .contact-band, .utility, .site-footer) :is(a, button, summary):focus-visible {
  outline-color: var(--signal);
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #597481;
  border-radius: var(--r);
  background: #2d4651;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: var(--hero-position, center);
}

.hero-note {
  padding: 0.57rem 0.82rem;
  color: var(--light-ink);
  background: var(--ink-deep);
  font-size: 0.875rem;
  line-height: 1.45;
}

.section {
  padding-block: clamp(2.7rem, 6vw, 5.4rem);
}

.section--muted {
  background: var(--mist);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(1.35rem, 3vw, 2.2rem);
}

.section-head h2,
.split h2,
.contact-band h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.section-head .eyebrow + h2,
.contact-band .eyebrow + h2 {
  margin-top: 0.45rem;
}

.section-head p:not(.eyebrow),
.split h2 + p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.card-grid,
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.25rem), 1fr));
  gap: 0.9rem;
}

.service-card {
  display: block;
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 1.55rem);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  text-decoration: none;
}

.service-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.service-card > p {
  margin-top: 0.5rem;
  color: var(--muted);
}

a.service-card:hover,
.service-card:focus-within {
  border-top-color: #9c6b00;
  box-shadow: 0 0.25rem 0.8rem #10232c13;
}

a.service-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.area-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-grid a {
  display: block;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-weight: 670;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.35rem, 5vw, 3.8rem);
}

.prose {
  max-width: 72ch;
  overflow-wrap: anywhere;
}

.prose h2 {
  margin-block: 1.4em 0.55em;
  font-size: clamp(1.45rem, 2.85vw, 2.25rem);
  letter-spacing: -0.035em;
}

.prose h3,
.prose h4 {
  margin-block: 1.2em 0.45em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose :is(ul, ol) {
  padding-inline-start: 1.45em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose a {
  color: #20596c;
  font-weight: 660;
}

.prose details {
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.prose summary {
  cursor: pointer;
  font-weight: 750;
}

.prose details p {
  padding-block: 0.45rem;
}

.contact-band {
  color: var(--paper);
  background: var(--ink-alt);
  border-top: 3px solid var(--signal);
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 2rem;
  padding-block: clamp(1.6rem, 4.5vw, 3.85rem);
}

.contact-inner p:not(.eyebrow) {
  max-width: 50ch;
  margin-top: 0.6rem;
  color: var(--light-ink);
}

.contact-inner .actions {
  margin-top: 0;
}

.site-footer {
  color: var(--light-ink);
  background: var(--ink-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  align-items: start;
  gap: 1.35rem 2.25rem;
  padding-block: clamp(1.6rem, 5vw, 3.7rem);
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 0.6rem;
  color: var(--paper);
  font-size: 1.08rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer :is(a, p, address) {
  overflow-wrap: anywhere;
}

.site-footer a {
  display: inline-block;
  min-height: 2rem;
}

.site-footer address {
  font-style: normal;
}

.page-hero {
  padding-block: clamp(1.8rem, 4.8vw, 4.1rem);
}

.page-hero h1 {
  max-width: 23ch;
  margin-top: 0.58rem;
  font-size: clamp(2.2rem, 5.25vw, 4.55rem);
}

.breadcrumb,
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
}

.breadcrumb li + li::before {
  margin-right: 0.7rem;
  content: "/";
}

@media (max-width: 52rem) {
  .header-inner {
    justify-content: flex-start;
  }

  .header-call {
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .hero-inner {
    gap: 1.75rem;
  }
}

@media (max-width: 43rem) {
  .hero-inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    padding-block: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 8.5vw, 4rem);
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 24rem) {
  .header-inner,
  .site-nav,
  .site-nav ul {
    column-gap: 0.75rem;
  }

  .wordmark {
    gap: 0.4rem;
  }

  .brand-mark {
    flex-basis: 1.8rem;
    width: 1.8rem;
    height: 1.8rem;
  }

  .header-call {
    padding-inline: 0.45rem;
  }

  .actions .button {
    flex: 1 1 auto;
  }
}

@media (forced-colors: active) {
  .button,
  .brand-mark {
    border: 1px solid ButtonText;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

.wordmark--logo{display:inline-flex;padding:.45rem .7rem;background:#132a34;border-radius:.25rem;max-width:100%}
.wordmark--logo .brand-logo{display:block;width:clamp(8.5rem,21vw,12rem);height:auto;max-width:100%}
