/* AA-BYG — service & area pages.
   Layers on top of styles.css and reuses its design tokens.

   Metrics here deliberately mirror the .lp-* rules on the badeværelse hub so
   the two page types share one visual language: a dark hero band, full-shell
   section rules, the shared .section-heading scale, and a dark closing CTA.

   Note: these pages do NOT use the .js/.reveal scroll-reveal pattern. Their
   content is visible without JavaScript. */

/* ------------------------------------------------------------- hero band */

.sp-hero {
  background: var(--blueprint-deep);
  color: var(--paper);
  padding: clamp(5.5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.sp-hero h1 {
  max-width: 16ch;
  margin: 1.5rem 0 0;
  font-family: var(--sans);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 850;
  line-height: .95;
  letter-spacing: -.03em;
}

.sp-lead {
  max-width: 46rem;
  margin: 1.75rem 0 0;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Breadcrumb sits on the dark band, so it needs the inverted rule. */
.sp-hero .sp-crumbs { padding: 0 0 1.5rem; }
.sp-hero .sp-crumbs li + li::before { color: color-mix(in srgb, var(--paper) 55%, transparent); }

/* -------------------------------------------------------------- sections */

.sp-section {
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.sp-section .section-heading { max-width: 20ch; margin: 1rem 0 0; }

.sp-prose {
  max-width: 48rem;
  margin-top: 2rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.sp-prose p { margin: 0; }
.sp-prose p + p { margin-top: 1.25rem; }
.sp-prose a { color: inherit; text-underline-offset: .18em; }
.sp-prose a:hover { color: var(--chalk); }

/* ----------------------------------------------------------------- lists */

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

.sp-list li {
  position: relative;
  padding: .85rem 0 .85rem 1.75rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}

.sp-list li::before {
  position: absolute;
  left: 0;
  top: 1.35em;
  color: var(--chalk);
  content: "■";
  font-size: .58rem;
  line-height: 0;
}

.sp-defs {
  margin: 0;
  border-top: 1px solid var(--line);
}

.sp-defs > div {
  display: grid;
  grid-template-columns: minmax(9rem, .45fr) 1fr;
  gap: .35rem 2.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.sp-defs dt {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--chalk);
}

.sp-defs dd { margin: 0; line-height: 1.6; }

/* ---------------------------------------------------- dark closing band */

.sp-cta {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
}

.sp-cta .section-heading { color: var(--paper); }
.sp-cta .sp-prose a { color: var(--paper); }
.sp-cta .sp-prose a:hover { color: var(--paper); text-decoration-thickness: 2px; }

/* ------------------------------------------------------- sitewide links */

.sp-sitelinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 3rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
}

.sp-sitelinks h2 {
  margin: 0 0 1.1rem;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--chalk);
}

.sp-sitelinks ul { margin: 0; padding: 0; list-style: none; }
.sp-sitelinks li + li { margin-top: .6rem; }

.sp-sitelinks a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.sp-sitelinks a:hover { border-bottom-color: currentColor; }
.sp-sitelinks [aria-current="page"] { font-weight: 800; opacity: .55; }

/* ---------------------------------------------------------------- mobile */

@media (max-width: 760px) {
  .sp-defs > div { grid-template-columns: 1fr; gap: .3rem; }
  .sp-actions { display: grid; }
  .sp-actions .button { width: 100%; }
}
