/* ----------------------------------------------------------------------------
 * 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;
  --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);
}

/* ============================================================
 * 3. Section primitives
 * ============================================================ */
.service-page__section {
  /* Each section has its own vertical rhythm */
  margin-top: clamp(36px, 4.5vw, 56px);
}

.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: clamp(36px, 4.5vw, 56px);
  margin-top: clamp(36px, 4.5vw, 56px);
}

.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);
}

/* 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 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: 24px;
}

.service-page__split--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 48px);
}

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

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

/* ============================================================
 * 6. Clean checklist (no boxes, no card noise)
 * ============================================================ */
.service-page__checklist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  max-width: 68ch;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px 32px;
  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;
}

.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. Numbered enumeration (replaces fa-stack circles on contracts)
 * ============================================================ */
.service-page__numbered {
  list-style: none;
  counter-reset: spnum;
  margin: 32px 0 0;
  padding: 0;
}

.service-page__numbered > li {
  counter-increment: spnum;
  position: relative;
  padding: 28px 0 28px 76px;
  border-top: 1px solid var(--sp-rule);
}

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

.service-page__numbered > li::before {
  content: counter(spnum, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 28px;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  color: var(--sp-brass);
  font-variation-settings: "opsz" 72, "SOFT" 80;
  line-height: 1;
}

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

@media (max-width: 640px) {
  .service-page__numbered > li {
    padding-left: 56px;
  }
  .service-page__numbered > li::before {
    font-size: 1.5rem;
  }
}

/* ============================================================
 * 8. Pull quote / callout
 * ============================================================ */
.service-page__quote {
  margin: 40px 0 0;
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--sp-brass);
  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;
}

.service-page__callout {
  margin: 40px 0 0;
  padding: 24px 28px;
  background: rgba(185, 138, 74, 0.07);
  border-left: 2px solid var(--sp-brass);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  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);
}

/* ============================================================
 * 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: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--sp-brass);
  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(8px, 1.5vw, 24px);
}

.about-intro .service-hero__breadcrumb {
  /* Cream-paper variant of the breadcrumb (the default styling
     targets the dark hero band). */
  margin-bottom: 28px;
  color: var(--sp-ink-muted);
}

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

.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));
  }
}

/* ============================================================
 * 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);
}

.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
 * ============================================================ */
.service-page__cta {
  margin-top: clamp(80px, 11vw, 132px);
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--sp-rule);
  position: relative;
}

.service-page__cta::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--sp-brass);
}

/* Flush variant — drops the divider rule + brass square and tightens the
   top spacing so the CTA sits close to the preceding section. Used on
   short pages like /felanmalan where the form should be high on the page. */
.service-page__cta--flush {
  margin-top: 0;
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 0;
}

.service-page__cta--flush::before {
  display: none;
}

.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: 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 {
  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: 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;
  }
}
