/* ----------------------------------------------------------------------------
 * Service-page template — editorial Scandinavian
 * Shared design language for /alla-tjanster's category pages:
 *   /ekonomisk-forvaltning, /teknisk-forvaltning, /underhallsplaner,
 *   /fastighetsjuridik, /byggservice, /fastighetsskotsel,
 *   /hyresadministration, /avtal, /byta-forvaltare
 *
 * Scoped under .header.service-hero and .service-page so legacy per-page
 * CSS (financial_services.css, technical_services.css, etc.) becomes a
 * dead-letter office without breaking other pages.
 *
 * Design intent:
 *   - No card grids, no shadowed boxes, no purple glows
 *   - Editorial typography: Fraunces serif H1/H2, Poppins body
 *   - Cream paper bg below ink hero, brass accent throughout
 *   - Single-column prose at human reading width (≤72ch)
 *   - Generous vertical rhythm between sections
 * ------------------------------------------------------------------------- */

/* ============================================================
 * 1. Compact dark hero band (lives inside .header)
 * ============================================================ */
body.landing .header.service-hero {
  --sh-ink: #0E1014;
  --sh-cream: #F2EBDD;
  --sh-cream-soft: #C8C5BC;
  --sh-brass: #B98A4A;
  --sh-brass-bright: #D4A361;

  position: relative;
  width: 100%;
  margin-top: 70px;
  /* Override legacy .header rules — we don't want stockholm3.jpg here */
  background: var(--sh-ink);
  background-image: none;
  min-height: clamp(340px, 48vh, 460px);
  text-align: left;
  color: var(--sh-cream);
  overflow: hidden;
  isolation: isolate;
}

/* Soft hairline grid for atmosphere */
body.landing .header.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 235, 221, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 235, 221, 0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 80%, transparent 100%);
}

/* Brass diagonal accent — subtle architectural mark, top-right */
body.landing .header.service-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: clamp(24px, 5vw, 80px);
  width: 1px;
  height: clamp(80px, 14vh, 140px);
  background: linear-gradient(to bottom, var(--sh-brass-bright), transparent);
  z-index: 1;
}

body.landing .header.service-hero .service-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) clamp(24px, 5vw, 80px) clamp(80px, 10vw, 110px);
}

body.landing .header.service-hero .service-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sh-cream-soft);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.25s ease;
}

body.landing .header.service-hero .service-hero__back:hover {
  color: var(--sh-brass-bright);
  gap: 14px;
}

body.landing .header.service-hero .service-hero__back i {
  font-size: 11px;
}

/* Editorial breadcrumb trail — replaces the old back-link + eyebrow
   pattern. Block-level flex so it forces its own row above the H1
   (the previous inline-flex back link shared a line with the eyebrow's
   brass ::before mark and looked like a stray underscore). */
body.landing .header.service-hero .service-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 28px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sh-cream-soft);
}

body.landing .header.service-hero .service-hero__crumb {
  color: var(--sh-cream-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.landing .header.service-hero .service-hero__crumb:hover {
  color: var(--sh-brass-bright);
}

body.landing .header.service-hero .service-hero__crumb--current {
  color: var(--sh-cream);
  font-weight: 600;
}

body.landing .header.service-hero .service-hero__crumb-sep {
  color: var(--sh-brass);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  /* Optical alignment with uppercased neighbours */
  line-height: 1;
  transform: translateY(-1px);
}

body.landing .header.service-hero .service-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sh-brass-bright);
}

body.landing .header.service-hero .service-hero__eyebrow::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--sh-brass);
  flex-shrink: 0;
}

body.landing .header.service-hero .service-hero__title {
  margin: 0;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--sh-cream);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  max-width: 22ch;
  text-wrap: balance;
}


body.landing .header.service-hero .service-hero__lede {
  margin: 24px 0 0;
  max-width: 56ch;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  color: var(--sh-cream-soft);
}

body.landing .header.service-hero svg.wave {
  z-index: 8;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100vw;
  background: transparent;
}

body.landing .header.service-hero svg.wave path {
  fill: #FAF7F1; /* matches service-page bg below */
}

/* ============================================================
 * 2. Service page body — editorial cream
 * ============================================================ */
.service-page {
  --sp-paper: #FAF7F1;
  /* The deeper paper of a band (the header's --sh-paper-strong). */
  --sp-paper-deep: #F2EBDD;
  /* One step of vertical rhythm: between sections, and inside a band. */
  --sp-gap: clamp(40px, 5vw, 64px);
  --sp-ink: #1A1B1F;
  --sp-ink-muted: #4D5058;
  --sp-rule: #E5E0D2;
  --sp-rule-strong: #C9C2AF;
  --sp-brass: #B98A4A;
  --sp-brass-deep: #8E6731;

  background: var(--sp-paper);
  color: var(--sp-ink);
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  /* Cancel the .container max-width so the cream extends edge-to-edge */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

.service-page__container {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px) clamp(56px, 7vw, 88px);
}

/* ============================================================
 * 3. Section primitives
 * ============================================================ */
.service-page__section {
  /* Each section has its own vertical rhythm */
  margin-top: var(--sp-gap);
}

.service-page__section:first-child {
  margin-top: 0;
}

/* Section divider rule: brass square + faint hairline.
   Note: padding-top is the breathing room *inside* this section
   (above the heading), and margin-top above is what separates it
   from the previous section's bottom edge. */
.service-page__section--ruled {
  position: relative;
  padding-top: var(--sp-gap);
  margin-top: var(--sp-gap);
}

.service-page__section--ruled::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--sp-rule);
}

.service-page__section--ruled::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--sp-brass);
}

/* Band: a section on the deeper paper, edge to edge.
 *
 * What tells one section from the next. A page of sections parted only
 * by hairlines reads as one long column, so a page sets its inventory
 * sections ("Vad ingår", a process, the law texts) on a band and leaves
 * the narrative ones on the paper. A band's edge is the divider: the
 * section after it draws no rule. Never two bands in a row, and never
 * the last section before the contact form, which is a band itself. */
.service-page__section--band {
  /* Hairlines one step darker, to hold on the deeper paper. */
  --sp-rule: #DBD2BE;

  position: relative;
  isolation: isolate;
  margin-top: var(--sp-gap);
  padding: var(--sp-gap) 0 calc(var(--sp-gap) + 6px);
}

.service-page__section--band::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: var(--sp-paper-deep);
}

.service-page__section--band + .service-page__section--ruled,
.home-reviews-band + .service-page__section--ruled {
  padding-top: 0;
}

.service-page__section--band + .service-page__section--ruled::before,
.service-page__section--band + .service-page__section--ruled::after,
.home-reviews-band + .service-page__section--ruled::before,
.home-reviews-band + .service-page__section--ruled::after {
  display: none;
}

/* The related links keep their own rule; a band above already parted them. */
.service-page__section--band + .service-page__related {
  margin-top: var(--sp-gap);
  padding-top: 0;
  border-top: 0;
}

/* Eyebrow above a section heading */
.service-page__section-eyebrow {
  margin: 0 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sp-brass-deep);
}

/* H2 section heading */
.service-page__heading {
  margin: 0 0 20px;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--sp-ink);
  font-variation-settings: "opsz" 72, "SOFT" 50, "WONK" 0;
  text-wrap: balance;
  max-width: 26ch;
}

.service-page__heading--lg {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  letter-spacing: -0.018em;
  max-width: 22ch;
}

/* H3 within sections */
.service-page__subheading {
  margin: 0 0 12px;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--sp-ink);
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

/* H4 small label */
.service-page__label {
  margin: 0 0 6px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-brass-deep);
}

/* ============================================================
 * 4. Prose — editorial body copy
 * ============================================================ */
.service-page__prose {
  max-width: 68ch;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--sp-ink);
}

.service-page__prose p {
  margin: 0 0 1.2em;
  color: var(--sp-ink);
}

.service-page__prose p:last-child { margin-bottom: 0; }

.service-page__prose strong,
.service-page__prose b {
  font-weight: 600;
  color: var(--sp-ink);
}

.service-page__prose a {
  color: var(--sp-brass-deep);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sp-brass) 50%, transparent);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.service-page__prose a:hover {
  color: var(--sp-ink);
  border-bottom-color: var(--sp-brass);
}

/* Lede — large opening paragraph */
.service-page__lead {
  max-width: 60ch;
  margin: 0 0 36px;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: clamp(1.125rem, 1.55vw, 1.3rem);
  line-height: 1.55;
  color: var(--sp-ink-muted);
}

/* ============================================================
 * 5. Two-column split
 * ============================================================ */
.service-page__split {
  --split-gap: clamp(40px, 6vw, 80px);
  --split-rule: linear-gradient(var(--sp-rule), var(--sp-rule));

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px var(--split-gap);
  margin-top: 28px;
  /* A hairline down the middle of the gap, drawn on the grid so both
     columns keep the same width and the line runs the full height
     however uneven the two texts are. It makes two columns of prose
     read as two things, not as one text that happened to wrap. */
  background: var(--split-rule) 50% 0 / 1px 100% no-repeat;
}

.service-page__split--3 {
  --split-gap: clamp(36px, 4.5vw, 60px);

  grid-template-columns: repeat(3, minmax(0, 1fr));
  background:
    var(--split-rule) calc((100% - 2 * var(--split-gap)) / 3 + var(--split-gap) / 2) 0 / 1px 100% no-repeat,
    var(--split-rule) calc((100% - 2 * var(--split-gap)) * 2 / 3 + var(--split-gap) * 1.5) 0 / 1px 100% no-repeat;
}

/* No line beside a picture or a panel: those part the columns themselves. */
.service-page__split:has(> .service-page__figure),
.service-page__split--plain {
  background: none;
}

.service-page__split > * {
  min-width: 0;
}

@media (max-width: 760px) {
  .service-page__split,
  .service-page__split--3 {
    grid-template-columns: 1fr;
    gap: 32px;
    background: none;
  }
}

/* ============================================================
 * 6. Clean checklist (no boxes, no card noise)
 * ============================================================ */
.service-page__checklist {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  /* Three across on the full column: a long "Vad ingår" then takes a
     third fewer rows, and no longer leaves the right half of the page
     empty. */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0 clamp(28px, 3.5vw, 44px);
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sp-ink);
}

.service-page__checklist--single {
  grid-template-columns: 1fr;
  max-width: 68ch;
}

/* Two or four points sit two across: three with one left over looks
   like a mistake. */
.service-page__checklist:not(.service-page__checklist--single):has(> li:first-child:nth-last-child(2)),
.service-page__checklist:not(.service-page__checklist--single):has(> li:first-child:nth-last-child(4)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 68ch;
}

.service-page__checklist li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--sp-rule);
}

.service-page__checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 12px;
  height: 1px;
  background: var(--sp-brass);
}

/* When a checklist item is just an icon + label, hide any inline icon */
.service-page__checklist li i,
.service-page__checklist li .fa,
.service-page__checklist li .fas,
.service-page__checklist li svg {
  display: none;
}

/* ============================================================
 * 7. Item list: subheaded items between hairline rules ("Vad ingår"
 *    on teknisk förvaltning, the AFF parts on avtal). Deliberately
 *    unnumbered: 01 / 02 / 03 numerals read as template design.
 * ============================================================ */
.service-page__items {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.service-page__items > li {
  padding: 28px 0;
  border-top: 1px solid var(--sp-rule);
}

.service-page__items > li:last-child {
  border-bottom: 1px solid var(--sp-rule);
}

.service-page__items .service-page__subheading {
  margin-bottom: 8px;
}

/* ============================================================
 * 8. Pull quote / callout
 * ============================================================ */
/* No bar down the side: the size and the italic set it apart. */
.service-page__quote {
  margin: 32px 0 0;
  padding: 0;
  max-width: 60ch;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.4;
  color: var(--sp-ink);
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1;
}

/* A note under a section: one hairline above it, no tinted box and no
   bar down the side. */
.service-page__callout {
  margin: 36px 0 0;
  padding: 18px 0 0;
  max-width: 68ch;
  border-top: 1px solid var(--sp-rule);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sp-ink-muted);
}

.service-page__callout strong {
  font-weight: 500;
  color: var(--sp-ink);
}

.service-page__callout a {
  color: var(--sp-brass-deep);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--sp-brass);
}

/* The same class on a link is an action ("Beräkna ett uppskattat pris",
   "Visa på karta"): an outlined button. */
a.service-page__callout {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: none;
  padding: 14px 22px;
  background: #fff;
  border: 1px solid var(--sp-rule-strong);
  border-radius: 2px;
  color: var(--sp-ink);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

a.service-page__callout:hover {
  border-color: var(--sp-brass);
  color: var(--sp-brass-deep);
}

a.service-page__callout:focus-visible {
  outline: 2px solid var(--sp-brass);
  outline-offset: 3px;
}

a.service-page__callout i {
  font-size: 0.85rem;
  color: var(--sp-brass);
  transition: transform 0.25s ease;
}

a.service-page__callout:hover i:last-child {
  transform: translateX(3px);
}

/* The way into Kundportalen (/felanmalan, /kundportalen): the same
   outlined link, with a kicker, a title and a line under it. */
a.portal-login-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 0;
  padding: 28px;
}

.portal-login-card__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-brass-deep);
}

.portal-login-card__title {
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--sp-ink);
  font-variation-settings: "opsz" 48, "SOFT" 50;
}

.portal-login-card__title i {
  margin-left: 6px;
  font-size: 0.95rem;
}

.portal-login-card__sub {
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--sp-ink-muted);
}

/* ============================================================
 * 9. Definition list (e.g., AFF chapters, BBR §)
 * ============================================================ */
.service-page__defs {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.service-page__defs > li {
  display: grid;
  /* Wide enough for long labels like "BOSTADSRÄTTSLAGEN 7 KAP 4 §"
     and "BOVERKETS BYGGREGLER 2:51" with their 0.16em tracking. */
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--sp-rule);
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.55;
}

.service-page__defs > li > dt,
.service-page__defs__key {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-brass-deep);
  padding-top: 4px;
  word-break: normal;
  overflow-wrap: break-word;
}

.service-page__defs > li > dd,
.service-page__defs__val {
  margin: 0;
  color: var(--sp-ink);
}

@media (max-width: 640px) {
  .service-page__defs > li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ============================================================
 * 10. Pill chips inline (replaces inspection-grid icon cards)
 * ============================================================ */
.service-page__chips {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-family: "Poppins", sans-serif;
}

.service-page__chips li {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--sp-ink);
  background: #fff;
  border: 1px solid var(--sp-rule-strong);
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.service-page__chips li:hover {
  border-color: var(--sp-brass);
  color: var(--sp-brass-deep);
}

.service-page__chips li i,
.service-page__chips li svg {
  display: none;
}

/* ============================================================
 * 11. Photo with caption (editorial)
 * ============================================================ */
.service-page__figure {
  margin: 40px 0 0;
}

.service-page__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border-radius: 2px;
}

.service-page__figure figcaption,
.service-page__figure .photo-caption {
  margin-top: 12px;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--sp-ink-muted);
}

/* ============================================================
 * 11b. Kontakt page primitives — large Fraunces phone/email
 *      readout + tabular hours list.
 * ============================================================ */
.service-page__phone {
  display: inline-block;
  margin: 6px 0 16px;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--sp-ink);
  text-decoration: none;
  font-variation-settings: "opsz" 48, "SOFT" 50, "WONK" 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.service-page__phone:hover {
  color: var(--sp-brass-deep);
  border-bottom-color: var(--sp-brass);
}

.service-page__hours {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--sp-ink-muted);
}

.service-page__hours > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--sp-rule);
}

.service-page__hours dt {
  font-weight: 500;
  color: var(--sp-ink);
}

.service-page__hours dd {
  margin: 0;
  text-align: right;
}

/* ============================================================
 * 11b-2. Compact contact stack — used on /kontakt to pack
 *        phone, email, address and felanmälan-info into a
 *        single column of tight rows with hairline dividers.
 * ============================================================ */
.contact-split {
  /* Tighter gap than default split — info reads as one column,
     image is a visual anchor. */
  gap: clamp(28px, 4vw, 56px);
}

.contact-stack {
  display: flex;
  flex-direction: column;
}

.contact-stack .contact-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--sp-rule);
}

.contact-stack .contact-row:first-child {
  padding-top: 0;
}

.contact-stack .contact-row:last-child {
  border-bottom: 0;
}

/* Tighter rhythm for the phone/email element when inside the stack */
.contact-stack .service-page__phone {
  display: inline-block;
  margin: 4px 0 6px;
  font-size: clamp(1.25rem, 1.7vw, 1.45rem);
}

.contact-row__meta {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--sp-ink-muted);
}

.contact-row__address {
  display: block;
  font-style: normal;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--sp-ink);
  margin: 4px 0 10px;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}

.contact-row__map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sp-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sp-brass);
  padding: 2px 0;
  transition: color 0.2s ease, gap 0.25s ease, border-color 0.2s ease;
}

.contact-row__map i:first-child {
  color: var(--sp-brass-deep);
  font-size: 0.85rem;
}

.contact-row__map i:last-child {
  color: var(--sp-brass);
  font-size: 0.78rem;
}

.contact-row__map:hover {
  gap: 12px;
  color: var(--sp-brass-deep);
  border-bottom-color: var(--sp-ink);
}

.contact-row__note {
  margin: 4px 0 0;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--sp-ink-muted);
}

.contact-row__note a {
  color: var(--sp-brass-deep);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sp-brass) 50%, transparent);
  transition: border-color 0.2s ease;
}

.contact-row__note a:hover {
  border-bottom-color: var(--sp-brass);
}

/* Office image — slightly tighter on the contact page than the default
   service-page__figure so the side-by-side ratio reads cleanly. */
.contact-figure img {
  max-height: 460px;
}

/* ============================================================
 * 11b-3. /om-oss — editorial intro on cream paper (no dark hero).
 *        Uses the same vocabulary as service-hero but adapted for
 *        the cream background, plus a clean team-grid primitive.
 * ============================================================ */
.about-intro {
  /* Push the breadcrumb down a touch on cream — without the dark hero
     it's the very first content the user sees. */
  padding-top: clamp(20px, 3vw, 44px);
}

.about-intro .service-hero__breadcrumb {
  /* Cream-paper variant of the breadcrumb. The dark hero's rules are
     scoped to .header.service-hero and never reach this one, so it
     carries the whole look itself (it used to render as a plain
     underlined link). */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 28px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sp-ink-muted);
}

.about-intro .service-hero__crumb {
  color: var(--sp-ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-intro .service-hero__crumb-sep {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1;
  transform: translateY(-1px);
}

.about-intro .service-hero__crumb:hover {
  color: var(--sp-brass-deep);
}

.about-intro .service-hero__crumb--current {
  color: var(--sp-ink);
}

.about-intro .service-hero__crumb-sep {
  color: var(--sp-brass);
}

.about-intro__title {
  margin: 8px 0 22px;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--sp-ink);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  text-wrap: balance;
  max-width: 22ch;
}

.about-intro__lede {
  margin: 0;
  max-width: 60ch;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--sp-ink-muted);
}

/* — Team grid: 4 across on desktop, 2 on tablet, 2 on phone. — */
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px) clamp(18px, 2vw, 28px);
  margin-top: clamp(28px, 3.5vw, 40px);
}

.about-team-member {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-team-member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  filter: saturate(0.92);
  transition: filter 0.3s ease, transform 0.6s ease;
}

.about-team-member:hover img {
  filter: saturate(1);
  transform: translateY(-2px);
}

.about-team-member__name {
  margin: 4px 0 0;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--sp-ink);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}

.about-team-member__role {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--sp-ink-muted);
}

@media (max-width: 760px) {
  .about-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
 * 11b-4. Price calculator (/underhallsplaner/berakna-pris)
 *
 * A .service-page__split: the fields on the left, the price on the
 * right of the hairline. No box around either. The fields look like
 * the contact form's, the button like its "Skicka".
 * ============================================================ */
.price-calc__form .service-page__heading {
  margin-bottom: 10px;
}

.price-calc__intro {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sp-ink-muted);
}

.price-calc__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.price-calc__label {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sp-ink-muted);
}

.price-calc__select {
  width: 100%;
  min-height: 46px;
  padding: 11px 40px 11px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--sp-ink);
  /* The arrow is drawn here: the native one differs on every platform. */
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238E6731' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat;
  border: 1px solid var(--sp-rule-strong);
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.price-calc__select:hover {
  border-color: var(--sp-brass);
}

.price-calc__select:focus-visible {
  outline: 2px solid var(--sp-brass);
  outline-offset: 2px;
  border-color: var(--sp-brass);
}

.price-calc__button {
  margin-top: 10px;
  padding: 14px 28px;
  background: var(--sp-ink);
  color: var(--sp-paper);
  border: 1px solid var(--sp-ink);
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.price-calc__button:hover {
  background: var(--sp-brass);
  border-color: var(--sp-brass);
  color: var(--sp-ink);
}

.price-calc__button:focus-visible {
  outline: 2px solid var(--sp-brass);
  outline-offset: 3px;
}

/* — The price. Its label lines up with the form's heading. — */
.price-calc__result .service-page__section-eyebrow {
  margin: 12px 0 18px;
}

.price-calc__figure {
  display: flex;
  align-items: baseline;
  gap: 0.22em;
  margin: 0;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--sp-ink);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

/* Before a price: the dash and its unit wait in the rule's colour. */
.price-calc__amount:not([data-priced]),
.price-calc__amount:not([data-priced]) + .price-calc__unit {
  color: var(--sp-rule-strong);
}

.price-calc__unit {
  font-size: 0.42em;
  letter-spacing: -0.01em;
  color: var(--sp-ink-muted);
}

.price-calc__vat {
  margin: 14px 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--sp-ink-muted);
}

.price-calc__note {
  max-width: 38ch;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--sp-rule);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--sp-ink-muted);
}

@media (max-width: 760px) {
  /* Stacked, the price takes the hairline the columns had between them. */
  .price-calc__result {
    padding-top: 28px;
    border-top: 1px solid var(--sp-rule);
  }

  .price-calc__result .service-page__section-eyebrow {
    margin-top: 0;
  }

  .price-calc__button {
    width: 100%;
  }
}

/* ============================================================
 * 11c. FAQ accordion — visible content paired with FAQPage
 *      JSON-LD schema for rich-result eligibility.
 *      Native <details>/<summary> for accessibility (no JS).
 * ============================================================ */
.service-page__faq {
  margin-top: clamp(28px, 3.5vw, 40px);
  max-width: 72ch;
  border-top: 1px solid var(--sp-rule);
}

/* On a wide screen the heading stands to the left of the questions (the
   homepage's Tjänster does the same), so the list has the page's width
   to itself and the right half is no longer empty. */
@media (min-width: 901px) {
  .service-page__section:has(> .service-page__faq) {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(40px, 6vw, 88px);
  }

  .service-page__section:has(> .service-page__faq) > * {
    grid-column: 1;
  }

  .service-page__section:has(> .service-page__faq) > .service-page__faq {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
    max-width: none;
  }
}

.service-page__faq-item {
  border-bottom: 1px solid var(--sp-rule);
}

.service-page__faq-item summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--sp-ink);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  transition: color 0.2s ease;
}

.service-page__faq-item summary::-webkit-details-marker { display: none; }
.service-page__faq-item summary::marker { display: none; content: ''; }

.service-page__faq-item summary:hover {
  color: var(--sp-brass-deep);
}

/* +/− toggle marker, brass, animated */
.service-page__faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--sp-brass);
  transition: transform 0.25s ease, color 0.2s ease;
}

.service-page__faq-item[open] summary::after {
  content: '−';
  color: var(--sp-brass-deep);
}

.service-page__faq-answer {
  padding: 0 0 24px;
  max-width: 64ch;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--sp-ink-muted);
}

.service-page__faq-answer p {
  margin: 0 0 0.85em;
}

.service-page__faq-answer p:last-child {
  margin-bottom: 0;
}

.service-page__faq-answer a {
  color: var(--sp-brass-deep);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sp-brass) 50%, transparent);
  transition: border-color 0.2s ease;
}

.service-page__faq-answer a:hover {
  border-bottom-color: var(--sp-brass);
}

/* ============================================================
 * 12. Final CTA band — contact form on cream
 * ============================================================ */
/* The page's closing band: the contact form on the deeper paper, so
   every page ends on the same clear stop before the dark footer. */
.service-page__cta {
  padding: clamp(56px, 7vw, 92px) 0 clamp(60px, 7.5vw, 100px);
  background: var(--sp-paper-deep);
}

/* Flush variant: no band, and a tighter top, so the form sits close to
   the section before it. Used on short pages like /felanmalan where the
   form should be high on the page. */
.service-page__cta--flush {
  padding-top: clamp(24px, 3vw, 40px);
  background: transparent;
}

.service-page__cta-inner {
  /* Wider on large screens so the form can use a 2-col layout for short fields */
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  text-align: center;
}

.service-page__cta-eyebrow {
  margin: 0 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sp-brass-deep);
}

.service-page__cta-heading {
  margin: 0 0 16px;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.875rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--sp-ink);
  font-variation-settings: "opsz" 72, "SOFT" 50;
  text-wrap: balance;
}

.service-page__cta-sub {
  max-width: 50ch;
  margin: 0 auto 36px;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--sp-ink-muted);
}

/* Restyle the embedded contact_form to fit the cream paper aesthetic */
.service-page__cta #contact_today {
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
}

.service-page__cta #contact_today .contact-header {
  display: none; /* we provide our own heading via cta-heading */
}

.service-page__cta #contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 2-col row for short fields side-by-side (Namn + Telefon).
   Stacks on narrow viewports. */
.service-page__cta #contact-form .contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.service-page__cta #contact-form .contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

@media (max-width: 600px) {
  .service-page__cta #contact-form .contact-form__row {
    grid-template-columns: 1fr;
  }
}

.service-page__cta #contact-form label {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sp-ink-muted);
  text-transform: uppercase;
}

.service-page__cta #contact-form label .light {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.85;
}

.service-page__cta #contact-form input,
.service-page__cta #contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--sp-rule-strong);
  border-radius: 2px;
  color: var(--sp-ink);
  transition: border-color 0.2s ease;
}

.service-page__cta #contact-form input:focus,
.service-page__cta #contact-form textarea:focus {
  outline: none;
  border-color: var(--sp-brass);
}

.service-page__cta #contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.service-page__cta #contact-form button.button {
  margin-top: 12px;
  padding: 14px 28px;
  background: var(--sp-ink);
  color: var(--sp-paper);
  border: 1px solid var(--sp-ink);
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.service-page__cta #contact-form button.button:hover {
  background: var(--sp-brass);
  border-color: var(--sp-brass);
  color: var(--sp-ink);
}

/* Disabled state — until required fields + Turnstile token are present.
   Scoped to #contact-form so it covers every page that renders the form
   (in CTA partial or standalone /kontakt). */
#contact-form button.button:disabled,
#contact-form button.button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  /* Keep the disabled bg consistent with the resting bg, no hover swap */
  background: var(--sp-ink);
  border-color: var(--sp-ink);
  color: var(--sp-paper);
}

.service-page__cta #contact_today h5 {
  margin: 24px 0 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--sp-ink-muted);
  text-align: center;
}

/* ============================================================
 * 13. Related services strip (bottom of page, before CTA)
 * ============================================================ */
.service-page__related {
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--sp-rule);
}

.service-page__related-title {
  margin: 0 0 24px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sp-brass-deep);
}

.service-page__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
}

.service-page__related-link {
  /* Flex with flex-start keeps the arrow snug to the link text
     while the link still spans the full grid cell so the top
     hairline rule remains continuous across the row. */
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--sp-rule);
  font-family: "Fraunces", "Lora", serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--sp-ink);
  text-decoration: none;
  transition: color 0.2s ease, padding 0.25s ease;
  font-variation-settings: "opsz" 36;
}

.service-page__related-link:hover {
  color: var(--sp-brass-deep);
  padding-left: 6px;
}

.service-page__related-link::after {
  content: "→";
  color: var(--sp-brass);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.service-page__related-link:hover::after {
  transform: translateX(4px);
}

/* ============================================================
 * 13b. Service list (used on /alla-tjanster)
 *      Editorial list, no card grids — each item is a row with
 *      a label, title, description and an arrow that animates on hover.
 * ============================================================ */
.service-page__service-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.service-page__service-item {
  border-top: 1px solid var(--sp-rule);
}

.service-page__service-item:last-child {
  border-bottom: 1px solid var(--sp-rule);
}

.service-page__service-link {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 0 32px;
  align-items: baseline;
  padding: 28px 0 28px 0;
  text-decoration: none;
  color: inherit;
  transition: padding 0.25s ease, color 0.25s ease;
}

.service-page__service-link:hover {
  padding-left: 8px;
  color: var(--sp-ink);
}

.service-page__service-link .service-page__label {
  margin: 0;
  padding-top: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.service-page__service-title {
  margin: 0;
  font-family: "Fraunces", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--sp-ink);
  font-variation-settings: "opsz" 48, "SOFT" 50;
}

.service-page__service-desc {
  margin: 8px 0 0;
  grid-column: 2;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--sp-ink-muted);
  max-width: 60ch;
}

.service-page__service-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  color: var(--sp-brass);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.service-page__service-link:hover .service-page__service-arrow {
  transform: translateX(8px);
  color: var(--sp-brass-deep);
}

@media (max-width: 760px) {
  .service-page__service-link {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 16px;
    padding: 22px 0;
  }
  .service-page__service-link .service-page__label {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 4px;
    padding-top: 0;
  }
  .service-page__service-title {
    grid-column: 1;
    grid-row: 2;
    font-size: 1.2rem;
  }
  .service-page__service-desc {
    grid-column: 1;
    grid-row: 3;
    margin-top: 6px;
  }
  .service-page__service-arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

/* ============================================================
 * 14. Reset legacy rules that bleed in via .header / .content
 *     when a service-page page is rendered.
 * ============================================================ */
body.landing .header.service-hero .header-text,
body.landing .header.service-hero h1.title,
body.landing .header.service-hero h1.slogan,
body.landing .header.service-hero p:not(.service-hero__lede):not(.service-hero__eyebrow) {
  /* Legacy header-text rules don't apply to our new structure; this is
     a safety net in case any partial sneaks them in */
  all: unset;
}

/* ============================================================
 * 15. Mobile
 * ============================================================ */
@media (max-width: 640px) {
  body.landing .header.service-hero {
    margin-top: 60px;
    min-height: auto;
  }
  body.landing .header.service-hero .service-hero__inner {
    padding: 48px 22px 84px;
  }
  body.landing .header.service-hero .service-hero__title {
    font-size: clamp(1.875rem, 9vw, 2.5rem);
  }
  body.landing .header.service-hero .service-hero__lede {
    font-size: 0.97rem;
    margin-top: 18px;
  }
  body.landing .header.service-hero .service-hero__back {
    margin-bottom: 22px;
  }
  body.landing .header.service-hero .service-hero__eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.2em;
    gap: 10px;
  }
  body.landing .header.service-hero .service-hero__breadcrumb {
    font-size: 10px;
    letter-spacing: 0.18em;
    gap: 4px 8px;
    margin-bottom: 20px;
  }

  .service-page__container {
    padding: 56px 22px 72px;
  }
  .service-page__checklist {
    grid-template-columns: 1fr;
  }
}
