/* Advokatfirman Berggren
   Kall, krispig advokatbyrå. Marinblått bläck och ett brons-guld från loggan.
   Display: Newsreader (optisk storlek). UI/brödtext: Schibsted Grotesk. */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/Newsreader.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 800; font-display: swap; src: url(../fonts/Newsreader-italic.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/SchibstedGrotesk.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: italic; font-weight: 400 900; font-display: swap; src: url(../fonts/SchibstedGrotesk-italic.woff2) format('woff2'); }

:root {
  --ink: #002848;
  --ink-deep: #061a30;
  --ink-2: #0d3a66;
  --paper: #f3f5f8;
  --paper-2: #e9edf2;
  --surface: #ffffff;
  --text: #0f1f33;
  --muted: #4f5d70;
  --line: rgba(0, 40, 72, .12);
  --line-strong: rgba(0, 40, 72, .22);
  --gold: #c08a4a;
  --gold-text: #8a5f2a;
  --gold-soft: rgba(192, 138, 74, .16);
  --on-ink: #f4f6f9;
  --on-ink-muted: #b9c6d6;
  --on-ink-line: rgba(244, 246, 249, .14);

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 12px;
  --shadow-frame: 0 32px 64px -28px rgba(0, 40, 72, .45), 0 12px 24px -16px rgba(0, 40, 72, .25);
  --shadow-card: 0 20px 40px -24px rgba(0, 40, 72, .28);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --head-h: 76px;
  --noir: #070d17;   /* nattblått i stället för svart: samma valör som porträttens bakgrund, men firmans kulör */
  --noir-2: #10192a;
  --on-noir-muted: #b9c6d6;   /* samma kalla dämpade ton som övriga mörka partier */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 8px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(0, 40, 72, .35); text-underline-offset: .16em; }
a:hover { text-decoration-color: currentColor; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; color: var(--ink); text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; letter-spacing: -.012em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.5; color: var(--text); }
.muted { color: var(--muted); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .statement-dark :focus-visible, .band :focus-visible, .site-foot :focus-visible, .panel-ink :focus-visible, .dark-hero.on-dark .site-head :focus-visible { outline-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: 0 1.15rem 0 1.25rem;
  border-radius: var(--r-s); border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-2); }
.btn-gold { background: var(--gold); color: var(--ink-deep); }
.btn-gold:hover { background: #d19a58; }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(0, 40, 72, .60); }
.btn-line:hover { border-color: var(--ink); background: var(--surface); }
.btn-orb {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: -.45rem;
  border-radius: 50%; background: rgba(0, 40, 72, .08);
  transition: transform 220ms var(--ease), background-color 200ms var(--ease);
}
.btn-ink .btn-orb { background: rgba(255, 255, 255, .12); }
.btn:hover .btn-orb { transform: translateX(3px); }
.btn-orb .ic { width: 15px; height: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 245, 248, .82);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) { .site-head { background: var(--paper); backdrop-filter: none; } }
.head-row { display: flex; align-items: center; gap: 1rem; height: var(--head-h); }
.brand img { width: auto; height: 46px; }
.brand .logo-light { display: none; }
.site-head { transition: background-color 320ms var(--ease), border-color 320ms var(--ease); }
.dark-hero.on-dark .site-head { position: fixed; left: 0; right: 0; background: linear-gradient(to bottom, rgba(7, 13, 23, .72), rgba(7, 13, 23, .28)); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.dark-hero.on-dark.scrolled .site-head { background: rgba(6, 26, 48, .88); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: rgba(192, 138, 74, .22); }
.dark-hero:not(.on-dark) .site-head { position: fixed; left: 0; right: 0; }
.dark-hero.on-dark .brand .logo-dark { display: none; }
.dark-hero.on-dark .brand .logo-light { display: block; }
.dark-hero.on-dark .nav-list > li > a, .dark-hero.on-dark .nav-list > li > button { color: var(--on-ink); }
.dark-hero.on-dark .nav-list > li > a:hover, .dark-hero.on-dark .nav-list > li > button:hover { color: var(--gold); }
.dark-hero.on-dark .head-cta { background: var(--gold); color: var(--ink-deep); border-color: transparent; }
.dark-hero.on-dark .menu-bar { background: var(--on-ink); }
.dark-hero .menu-btn[aria-expanded="true"] .menu-bar { background: var(--ink); }
.dark-hero.menu-open .site-head { background: rgba(243, 245, 248, .96); border-bottom-color: var(--line); }
.dark-hero.menu-open .brand .logo-dark { display: block; }
.dark-hero.menu-open .brand .logo-light { display: none; }
.dark-hero.menu-open .menu-bar { background: var(--ink); }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-list > li { position: relative; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-list a, .nav-list button {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .55rem .8rem; border-radius: var(--r-s);
  font: 500 .95rem/1 var(--sans); color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; letter-spacing: .005em;
  transition: background-color 180ms var(--ease);
}
.nav-list > li > a:hover, .nav-list > li > button:hover { color: var(--gold-text); }
.nav-list > li > a[aria-current], .nav-list > li.is-in > button { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .55em; }
.ic-caret { width: .9em; height: .9em; transition: transform 200ms var(--ease); }
.has-sub[data-open] .ic-caret { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 232px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top left; pointer-events: none;
  transition: opacity 160ms var(--ease), transform 200ms var(--ease), visibility 0s 200ms;
}
.has-sub[data-open] .sub { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.sub a { display: block; width: 100%; padding: .6rem .75rem; font-weight: 500; color: var(--ink); }
.sub a:hover { color: var(--gold-text); }
.sub a:hover, .sub a[aria-current] { background: var(--paper); }
.head-cta { margin-left: .5rem; min-height: 40px; padding: 0 1rem; font-weight: 500; font-size: .9rem; background: transparent; color: var(--ink); border-color: var(--line-strong); }
.head-cta:hover { background: var(--surface); border-color: var(--ink); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-bar { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 280ms var(--ease-io), top 280ms var(--ease-io); }
.menu-bar:first-child { top: 17px; } .menu-bar:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] .menu-bar:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bar:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 39; overflow: auto;
  background: rgba(243, 245, 248, .96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  padding: 1.5rem 0 3rem;
}
.mobile-menu .wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu li a { display: block; padding: .6rem 0; font: 500 1.35rem/1.2 var(--serif); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mm-group { font: 600 .8rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }
.mm-top { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.mobile-menu .btn { align-self: stretch; justify-content: center; margin-top: 0; }
.mobile-menu li { opacity: 0; transform: translateY(12px); }
.mobile-menu:not([hidden]) li { animation: mm-in 480ms var(--ease) forwards; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes mm-in { to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

@media (max-width: 1023px) {
  .nav { display: none; }
  .head-cta { margin-left: auto; min-height: 44px; width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .head-cta span { display: none; }
  .head-cta .ic { width: 20px; height: 20px; }
  .menu-btn { display: block; margin-left: 0; }
}
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------------------------------------------------------------- frames */
.frame { margin: 0; padding: 11px; --ratio: 3 / 4; }
.frame-in {
  position: relative; aspect-ratio: var(--ratio); overflow: hidden;
  border-radius: 3px; background: var(--ink-deep);
  box-shadow: 0 0 0 1px rgba(0, 40, 72, .16), 0 0 0 10px var(--paper-2), 0 0 0 11px rgba(192, 138, 74, .5), var(--shadow-frame);
}
.frame-in img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: 2px; }
.bezel {
  background: var(--paper-2); border-radius: var(--r-l); padding: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.bezel > * { background: var(--surface); border-radius: calc(var(--r-l) - 6px); box-shadow: inset 0 1px 0 #fff; }

/* ---------------------------------------------------------------- hero (cinematic) */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--head-h) + 3rem) 0 4.5rem;
  background: var(--noir); color: var(--on-ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 90% at 78% 40%, rgba(255, 255, 255, .05), transparent 60%),
    radial-gradient(60% 60% at 8% 100%, rgba(192, 138, 74, .10), transparent 70%),
    linear-gradient(to bottom, rgba(7, 13, 23, 0) 70%, rgba(7, 13, 23, .6));
}
.hero .grain { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 1;
  background: linear-gradient(to right, transparent, rgba(192, 138, 74, .55) 30%, rgba(192, 138, 74, .55) 70%, transparent);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  position: absolute; top: 0; bottom: auto; right: 0; height: 100%; width: 56%; max-width: 820px;
  object-fit: cover; object-position: 50% 10%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%, #000 100%), linear-gradient(to top, transparent 0, #000 22%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 34%, #000 100%), linear-gradient(to top, transparent 0, #000 22%, #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  transform-origin: 60% 30%;
  animation: hero-zoom 1200ms var(--ease) both;
}
.hero-copy { position: relative; z-index: 2; max-width: 40rem; margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.hero-copy .crumbs { color: var(--on-noir-muted); margin-bottom: 1.5rem; }
.hero-copy .crumbs a { color: var(--on-noir-muted); }
.hero-copy .crumbs li + li::before { color: rgba(244, 246, 249, .3); }
.hero-copy .crumbs a:hover { color: #fff; }
.hero-h1 { color: #fff; }
.hero-word { font-size: clamp(3.6rem, 9vw, 7rem); line-height: .95; letter-spacing: -.035em; font-weight: 400; color: #fff; }
.hero-tag { font-family: var(--serif); margin-top: .5rem; font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.01em; color: var(--gold); }
.hero-pre { font-family: var(--serif); margin-bottom: .35rem; font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.01em; color: var(--gold); }
.hero-lede { margin-top: 1.75rem; max-width: 32rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--on-noir-muted); }
.hero .cta-row { margin-top: 2.25rem; }
.hero .btn-line { color: #fff; border-color: rgba(255, 255, 255, .44); }
.hero .btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.hero .btn-line .btn-orb { background: rgba(255, 255, 255, .12); }

/* photographic variant (ortssidor): full-bleed image with a scrim for the copy */
.hero-photo .hero-media img {
  left: 0; right: 0; top: 0; bottom: 0; width: 100%; max-width: none; height: 100%;
  object-position: 62% 45%; opacity: .92;
  -webkit-mask-image: none; mask-image: none;
}
.hero-photo::before {
  z-index: 0; /* över bilden (hero-media är -1), under texten */
  background:
    linear-gradient(to right, rgba(7, 13, 23, .84) 0%, rgba(7, 13, 23, .66) 30%, rgba(7, 13, 23, .22) 56%, rgba(7, 13, 23, 0) 100%),
    linear-gradient(to top, rgba(7, 13, 23, .6) 0%, rgba(7, 13, 23, 0) 40%),
    linear-gradient(to bottom, rgba(7, 13, 23, .5) 0%, rgba(7, 13, 23, 0) 28%);
}
.hero-photo .grain { opacity: .05; }

/* alt 1: två bilder som byter i en lugn övertoning (pappa / mamma) */
.hero-photo .hero-slides picture + picture img { opacity: 0; animation: hero-slide 18s ease-in-out 6s infinite both; }
@keyframes hero-slide { 0% { opacity: 0; } 17%, 50% { opacity: .92; } 67%, 100% { opacity: 0; } }

/* one authored moment: the room settles, she comes into focus */
.hero-copy > * { animation: rise 800ms var(--ease) both 120ms; }
.hero-copy > :nth-child(2) { animation-delay: 200ms; }
.hero-copy > :nth-child(3) { animation-delay: 280ms; }
.hero-copy > :nth-child(4) { animation-delay: 360ms; }
.hero-copy > :nth-child(5) { animation-delay: 440ms; }
.hero-copy > :nth-child(6) { animation-delay: 520ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- trust strip */
.trust { background: var(--ink-deep); color: var(--on-ink); border-bottom: 1px solid var(--on-ink-line); }
.trust-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-list li { border-left: 1px solid var(--on-ink-line); }
.trust-list li:first-child { border-left: 0; }
.trust-list li > a, .trust-list li > span { display: flex; align-items: center; gap: .9rem; padding: 1.35rem 1.5rem; text-decoration: none; color: inherit; min-height: 100%; }
.trust-list li > a:hover strong { color: var(--gold); }
.trust-list .ic { width: 26px; height: 26px; color: var(--gold); }
.trust-list strong { display: block; font: 500 1.05rem/1.2 var(--serif); color: #fff; letter-spacing: -.005em; transition: color 160ms var(--ease); }
.trust-list strong + span { display: block; font-size: .85rem; color: var(--on-ink-muted); margin-top: .15rem; }
.trust-stars { display: inline-flex; gap: 1px; color: var(--gold); flex: none; }
.trust-stars .ic-star { width: 13px; height: 13px; }
.rail-trust { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; margin-top: .75rem; font-size: .85rem; color: var(--muted); }
.rail-trust .rail-dot { display: none; }
.rail-trust a { color: var(--ink); text-decoration: none; font-weight: 500; }
.rail-trust a:hover { text-decoration: underline; text-underline-offset: .18em; }
.rail-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* ---------------------------------------------------------------- statement */
.statement { padding: clamp(3rem, 7vw, 6.5rem) 0; border-top: 1px solid var(--line); background: var(--surface); }
.statement-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.statement-h { font-size: clamp(2.2rem, 4.2vw, 3.4rem); letter-spacing: -.025em; line-height: 1.04; }
.statement-body { display: flex; flex-direction: column; gap: 1.1rem; max-width: 62ch; }
.statement-body p:not(.lede) { color: var(--muted); }
.statement-body .lede { color: var(--ink); font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.35; }
.facts { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: minmax(9rem, 12rem) 1fr; gap: .5rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.facts strong { font: 500 1.15rem/1.25 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.facts p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.office-note { display: flex; gap: .7rem; align-items: flex-start; margin-top: .25rem; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.office-note .ic { width: 20px; height: 20px; flex: none; color: var(--gold-text); margin-top: .1rem; }

.statement-dark { position: relative; background: linear-gradient(to bottom, var(--noir), #0c1420 60%, var(--ink-deep)); color: var(--on-ink); border-top: 0; padding: clamp(4rem, 8vw, 7rem) 0; }
.statement-dark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(192, 138, 74, .55) 30%, rgba(192, 138, 74, .55) 70%, transparent); }
.statement-dark .statement-grid { grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(2rem, 6vw, 7rem); }
.statement-dark .statement-h { color: #fff; font-size: clamp(2.4rem, 4.6vw, 3.8rem); margin-bottom: 1.5rem; }
.statement-dark .statement-body .lede { color: #fff; }
.statement-dark .statement-body p:not(.lede) { color: var(--on-ink-muted); }
.statement-mark { display: flex; align-items: center; justify-content: center; }
.statement-mark img { width: min(100%, 300px); height: auto; }

/* ---------------------------------------------------------------- expertise */
.expertise { padding: clamp(3rem, 7vw, 6.5rem) 0; }
.expertise-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.expertise-copy { position: sticky; top: calc(var(--head-h) + 32px); display: flex; flex-direction: column; gap: 1rem; }
.expertise-copy p { color: var(--muted); max-width: 46ch; }
.expertise-copy p:first-of-type { color: var(--text); font-size: 1.15rem; }
.area-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.area {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t o" "s o"; align-items: center; column-gap: 1.5rem;
  padding: 1.5rem .5rem; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background-color 240ms var(--ease);
}
.area:hover { background: var(--surface); }
.area-title, .area-sub { transition: transform 320ms var(--ease); }
.area:hover .area-title, .area:hover .area-sub { transform: translateX(.75rem); }
.area-title { grid-area: t; font: 500 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.area-sub { grid-area: s; color: var(--muted); margin-top: .35rem; }
.area .btn-orb { grid-area: o; width: 44px; height: 44px; margin: 0; background: var(--ink); color: var(--on-ink); }
.area .btn-orb .ic { width: 18px; height: 18px; }
.area:hover .btn-orb { transform: translateX(4px); background: var(--gold); color: var(--ink-deep); }

/* ---------------------------------------------------------------- panels */
.panels { padding: clamp(3rem, 7vw, 6.5rem) 0; }
.panels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.panel { padding: clamp(1.75rem, 3.5vw, 3rem); border-radius: var(--r-l); display: flex; flex-direction: column; gap: 1rem; }
.panel h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -.02em; margin-bottom: .25rem; }
.panel-ink { background: var(--ink); color: var(--on-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.panel-ink h3 { color: #fff; }
.panel-ink p { color: var(--on-ink-muted); }
.panel-ink a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.panel-ink .panel-call { color: #fff; }
.panel-paper { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.panel-key { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; color: var(--ink); }
.panel-ink .panel-key { color: #fff; }
.panel-fam { grid-column: 1 / -1; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.5rem, 4vw, 4rem); position: relative; }
.panel-fam::before { content: ""; position: absolute; top: 0; left: clamp(1.75rem, 3.5vw, 3rem); width: 56px; height: 2px; background: var(--gold); }
.panel-fam-sub { color: var(--muted); margin-top: .5rem; }
.panel-fam-body { display: flex; flex-direction: column; gap: 1rem; }
.panel-fam-body p:not(.panel-key) { color: var(--muted); }
.panel-fam-body .btn { align-self: flex-start; margin-top: .5rem; }
.panel-paper p { color: var(--muted); }
.panel-call { margin-top: auto; padding-top: 1.35rem; border-top: 1px solid var(--on-ink-line); display: flex; flex-wrap: wrap; gap: .6rem .75rem; align-items: center; }
.panel-ink .panel-call .btn-line { color: #fff; border-color: rgba(255, 255, 255, .32); }
.panel-ink .panel-call .btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.panel-paper .panel-call { border-top-color: var(--line); }


/* ---------------------------------------------------------------- reviews */
.reviews { padding: clamp(3rem, 7vw, 6.5rem) 0; background: var(--paper); border-top: 0; }
.reviews-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.reviews-head { position: sticky; top: calc(var(--head-h) + 32px); display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.reviews-score { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .5rem; }
.reviews-num { font: 400 clamp(3.5rem, 6vw, 5rem)/1 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.reviews-stars, .review-stars { display: inline-flex; gap: 2px; color: var(--gold); }
.ic-star { width: 18px; height: 18px; }
.reviews-stars .ic-star { width: 22px; height: 22px; }
.reviews-sub { color: var(--muted); }
.reviews-head .btn { margin-top: .75rem; }
.review-list { columns: 2; column-gap: 1.25rem; }
.review { break-inside: avoid; margin-bottom: 1.25rem; padding: 1.5rem 1.5rem 1.35rem; background: var(--paper); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: .9rem; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; color: var(--ink); display: flex; flex-direction: column; gap: .6rem; text-wrap: pretty; }
.review-by { display: flex; flex-direction: column; gap: .1rem; font-size: .92rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.review-by strong { font-weight: 600; color: var(--ink); }
.review-by span { color: var(--muted); }

/* ---------------------------------------------------------------- steps */
.steps { padding: clamp(3rem, 7vw, 6.5rem) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.steps-head .lede { color: var(--muted); margin-top: .75rem; }
.steps-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.step { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--gold); }
.step-n { display: block; font: 400 2.6rem/1 var(--serif); font-style: italic; color: var(--gold-text); letter-spacing: -.02em; margin-bottom: .75rem; }
.step h3 { margin-bottom: .6rem; }
.step p { color: var(--muted); }

/* ---------------------------------------------------------------- contact */
.contact { padding: clamp(3rem, 7vw, 6.5rem) 0; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-copy h2 { max-width: 20ch; }
.contact-list { display: flex; flex-direction: column; gap: .5rem; }
.contact-list li > a, .contact-list li > span { display: inline-flex; align-items: center; gap: .7em; padding: .35rem 0; text-decoration: none; font-weight: 500; color: var(--ink); }
.contact-list .ic { width: 20px; height: 20px; color: var(--gold-text); }
.contact-list a:hover span { text-decoration: underline; text-underline-offset: .18em; }
.contact-list-lg li > a, .contact-list-lg li > span { font-size: 1.2rem; }
.contact-art { margin-top: .5rem; }
.contact-page { padding-top: 0; scroll-margin-top: 2rem; }
.contact-page .contact-art { max-width: 240px; }
.contact-form > form, .contact-form > .form-h { padding: clamp(1.25rem, 3vw, 2.25rem); }
.contact-form > .form-h { padding-bottom: 0; border-radius: calc(var(--r-l) - 6px) calc(var(--r-l) - 6px) 0 0; font-size: 1.7rem; }
.contact-form > .form-h + form { border-radius: 0 0 calc(var(--r-l) - 6px) calc(var(--r-l) - 6px); box-shadow: none; }
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font: 600 .9rem/1.3 var(--sans); color: var(--ink); }
.field label .req { color: var(--gold-text); }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid rgba(0, 40, 72, .56); border-radius: var(--r-s);
  background: var(--paper); color: var(--text); font: 400 1rem/1.4 var(--sans);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 3px rgba(0, 40, 72, .12); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.field.is-invalid input { border-color: #a4321f; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .4rem .75rem; align-items: start; }
.field-check input { width: 22px; height: 22px; margin-top: .15em; accent-color: var(--ink); }
.field-check label { font-weight: 400; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.field-check .err { grid-column: 2; }
.field-check-opt label { font: 600 .9rem/1.3 var(--sans); color: var(--ink); align-self: center; }
.err { color: #a4321f; font-size: .9rem; }
.hp { position: absolute; left: -9999px; }
.btn-submit { align-self: flex-start; min-width: 160px; justify-content: space-between; }
.btn-submit[disabled] { opacity: .7; cursor: progress; }
.form-msg:empty { display: none; }
.form-msg { padding: .9rem 1rem; border-radius: var(--r-s); font-weight: 500; }
.form-msg.ok { background: rgba(38, 112, 72, .12); color: #1f5a3a; }
.form-msg.fail { background: rgba(164, 50, 31, .1); color: #7f2618; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--ink-deep); color: var(--on-ink); padding: clamp(3rem, 6vw, 5rem) 0 2rem; border-top: 1px solid rgba(192, 138, 74, .35); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--on-ink-line); }
.foot-brand img { width: 112px; margin: -12px 0 .5rem -8px; }
.foot-name { font: 500 1.5rem/1.1 var(--serif); letter-spacing: -.01em; color: #fff; margin: .25rem 0 1.25rem; }
.foot-contact li > a, .foot-contact li > span { display: inline-flex; align-items: center; gap: .6em; padding: .3rem 0; color: var(--on-ink); text-decoration: none; }
.foot-contact .ic { color: var(--gold); }
.foot-contact a:hover span { text-decoration: underline; text-underline-offset: .18em; }
.foot-h { font: 500 1rem/1.2 var(--serif); color: #fff; margin-bottom: .9rem; }
.foot-col li a { display: block; padding: .28rem 0; color: var(--on-ink-muted); text-decoration: none; transition: color 160ms var(--ease); }
.foot-col li a:hover { color: #fff; }
.foot-legal { display: grid; gap: .9rem; padding-top: 1.5rem; font-size: .85rem; color: var(--on-ink-muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; margin-bottom: .35rem; }
.foot-links a { color: var(--on-ink); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--gold); }
.foot-firm { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; color: var(--on-ink); }
.foot-firm strong { font-weight: 600; }
.foot-firm .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(192, 138, 74, .7); display: inline-block; }
.foot-rules { max-width: 90ch; line-height: 1.6; }
.foot-rules a { color: var(--on-ink-muted); text-decoration: underline; text-decoration-color: rgba(192, 138, 74, .6); text-underline-offset: .18em; }
.foot-rules a:hover { color: #fff; text-decoration-color: var(--gold); }

/* ---------------------------------------------------------------- subpages */
.page-head { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 4vw, 3rem); }
.page-head h1 { max-width: 18ch; font-size: clamp(1.95rem, 6.2vw, 3.6rem); overflow-wrap: break-word; hyphens: auto; }
.page-head .lede { margin-top: 1rem; max-width: 40rem; color: var(--muted); }
.page-head .cta-row { margin-top: 1.75rem; }
.crumbs { margin-bottom: 1.25rem; font-size: .85rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: rgba(0, 40, 72, .35); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.article-wrap { padding-bottom: clamp(3rem, 7vw, 6.5rem); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 1.1rem; }
.prose > .frame { margin: 0 0 1rem; max-width: 420px; padding: 9px; }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); position: relative; }
.prose h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--gold); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border: 0; }
.prose h2:first-child::before { display: none; }
.prose h3 { margin-top: 1rem; }
.prose p { color: var(--text); overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose .cta-row { margin-top: 2.5rem; }
.list, .rich-list, .checklist { display: flex; flex-direction: column; gap: .55rem; }
.list li, .checklist li { display: flex; gap: .8em; align-items: flex-start; }
.list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(192, 138, 74, .16); margin: .58em .35em 0 .2em; }
.checklist .ic { flex: none; width: 22px; height: 22px; padding: 5px; border-radius: 50%; color: var(--gold-text); background: rgba(192, 138, 74, .14); box-shadow: inset 0 0 0 1px rgba(192, 138, 74, .28); margin-top: .1em; }
.checklist li { gap: .7em; }
.rich-list { gap: 1.5rem; }
.rich-list li { padding: 0; }
.rich-list li strong { display: block; font: 500 1.2rem/1.25 var(--serif); color: var(--ink); letter-spacing: -.01em; margin-bottom: .35rem; }
.rich-list li p { color: var(--muted); }
.note { display: flex; gap: .8em; align-items: flex-start; padding: 1rem 1.1rem; background: var(--surface); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); }
.note .ic { color: var(--gold-text); margin-top: .2em; }

.rail { position: sticky; top: calc(var(--head-h) + 24px); }
.rail-card { overflow: hidden; }
.rail-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--ink-deep); }
.rail-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.rail-body { display: flex; flex-direction: column; padding: 1.25rem; }
.rail-name { font: 500 1.35rem/1.2 var(--serif); color: var(--ink); }
.rail-sub { color: var(--muted); margin-top: .2rem; font-size: .95rem; }
.rail-body .contact-list { margin: 1rem 0 .5rem; }
.rail-body .btn { margin-top: .75rem; justify-content: space-between; }

/* bio / om oss */
.bio { padding-bottom: clamp(3rem, 7vw, 6.5rem); }
.bio-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bio-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.exp-h { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.exp-h::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--gold); }
.exp { padding: clamp(3rem, 7vw, 6.5rem) 0; background: var(--surface); border-top: 1px solid var(--line); }
.exp-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.exp-h { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; }
.exp-list { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; }
.exp-list li { display: flex; gap: .8em; align-items: flex-start; padding: .9rem 0; border-top: 1px solid var(--line); }
.exp-list .ic { color: var(--gold-text); margin-top: .22em; }
.exp-foot { margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line-strong); max-width: 60rem; }
.exp-foot .lede { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--ink); }
.exp-foot .muted { margin-top: 1.5rem; font-size: .95rem; }
.offices { padding: clamp(3rem, 7vw, 6.5rem) 0; }
.office-list { display: flex; flex-direction: column; margin-top: 2rem; border-bottom: 1px solid var(--line); }
.office-list li { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 1rem 2rem; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.office-list h3 { font-size: 1.35rem; }
.office-list p { color: var(--muted); font-size: .95rem; }
.office-list p a { text-decoration: none; color: var(--ink); }

/* city pages */
.band { position: relative; background: linear-gradient(165deg, #0b355f, var(--ink) 55%, var(--ink-deep)); color: var(--on-ink); padding: clamp(3rem, 7vw, 6.5rem) 0; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(192, 138, 74, .55) 30%, rgba(192, 138, 74, .55) 70%, transparent); }
.band-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.band h2 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.4rem); letter-spacing: -.025em; line-height: 1.04; }
.band-body { display: flex; flex-direction: column; gap: 1rem; max-width: 58ch; }
.band-body p { color: var(--on-ink-muted); font-size: 1.1rem; }
.band .cta-row { margin-top: 1.5rem; }
.band .btn-line { color: #fff; border-color: rgba(255, 255, 255, .44); }
.topics-list .cta-row { padding-top: 2rem; }
.band-body p:first-child { color: #fff; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.35; }
.topics { padding: clamp(3rem, 7vw, 6.5rem) 0; }
.topics-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.topics-head { position: sticky; top: calc(var(--head-h) + 32px); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: .65rem 1rem; border-radius: var(--r-s); border: 1px solid var(--line-strong); font: 500 .9rem/1 var(--sans); color: var(--ink); text-decoration: none; transition: background-color 180ms var(--ease), border-color 180ms var(--ease); }
.chips a:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.topics-list { display: flex; flex-direction: column; }
.topic { padding: 2rem 0; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: .9rem; position: relative; }
.topic::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--gold); }
.topic:last-child { border-bottom: 1px solid var(--line-strong); }
.topic h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .25rem; }
.topic p { color: var(--muted); max-width: 62ch; }
.topic p:first-of-type { color: var(--text); }

/* press */
.press { padding-bottom: clamp(3rem, 7vw, 6.5rem); }
.press-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.press-item { display: block; text-decoration: none; color: var(--ink); }
.press-dl { display: inline-flex; align-items: center; gap: .5em; margin-top: 1rem; font-weight: 500; }
.press-item:hover .press-dl { text-decoration: underline; text-underline-offset: .18em; }

/* ---------------------------------------------------------------- nya block 2026-09-02 */
/* ingång till vårdnadstvist direkt under heron */
.hero-jump { margin-top: 1.25rem; font-size: .98rem; color: var(--on-noir-muted); }
.hero-jump a { display: inline-flex; align-items: center; gap: .45em; color: #fff; font-weight: 500; text-decoration-color: rgba(192, 138, 74, .8); text-underline-offset: .25em; }
.hero-jump a:hover { text-decoration-color: var(--gold); }
.hero-jump .ic { width: 15px; height: 15px; color: var(--gold); }

/* lugnande rad under knappraden */
.cta-note { margin-top: 1rem; max-width: 46ch; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.hero .cta-note, .band .cta-note { color: var(--on-noir-muted); }
.band .cta-note { color: var(--on-ink-muted); }

/* sekretess- och formulärupplysningar */
.contact-secrecy { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.contact-secrecy .ic { width: 18px; height: 18px; flex: none; color: var(--gold-text); margin-top: .2em; }
.contact-hours-note { font-size: .9rem; line-height: 1.55; color: var(--muted); margin-top: .35rem; }
.form-note { font-size: .85rem; line-height: 1.55; color: var(--muted); }
.form-note a { color: var(--ink); }
.reviews-note { font-size: .92rem; line-height: 1.55; color: var(--muted); }

/* faktaruta: tillägg vid sidan av byråns egen text */
.factbox { margin: .4rem 0; padding: 1.25rem 1.35rem 1.35rem; background: var(--surface); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: .6rem; }
.factbox-label { font: 600 .72rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--gold-text); display: flex; align-items: center; gap: .6em; }
.factbox-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, rgba(192, 138, 74, .55), transparent); }
.factbox-label .ic { width: 15px; height: 15px; }
.factbox h3 { font-size: 1.2rem; }
.factbox p { color: var(--muted); font-size: .98rem; line-height: 1.6; }

/* vanliga frågor */
.faq { padding: clamp(3rem, 7vw, 6.5rem) 0; background: var(--surface); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-head { position: sticky; top: calc(var(--head-h) + 32px); }
.faq-head .lede { color: var(--muted); margin-top: .9rem; max-width: 34ch; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.3; color: var(--ink); transition: color 160ms var(--ease); }
.faq-item summary:hover h3 { color: var(--gold-text); }
.faq-sign { position: relative; flex: none; width: 26px; height: 26px; margin-top: .15rem; border-radius: 50%; background: rgba(0, 40, 72, .07); transition: background-color 200ms var(--ease); }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; transition: transform 260ms var(--ease); }
.faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-sign { background: var(--gold-soft); }
.faq-item[open] .faq-sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 0 1.35rem; max-width: 62ch; }
.faq-a p { color: var(--muted); }
.faq-a p + p { margin-top: .7rem; }

/* lokalt stycke på ortssidorna */
.local { padding: clamp(3rem, 7vw, 6.5rem) 0; background: var(--surface); border-top: 1px solid var(--line); }
.local-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.local-grid h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.local-body { display: flex; flex-direction: column; gap: 1.1rem; max-width: 62ch; }
.local-body p { color: var(--muted); }
.local-note { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--paper); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); font-size: .95rem; }
.local-note .ic { width: 20px; height: 20px; flex: none; color: var(--gold-text); margin-top: .1rem; }

/* vad kostar det */
.cost { padding: clamp(3rem, 7vw, 6.5rem) 0; }
.cost-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cost-body { display: flex; flex-direction: column; gap: 1.1rem; max-width: 62ch; }
.cost-body p { color: var(--muted); }
.cost-body p:first-child { color: var(--ink); font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.35; }

/* hubbens delfrågor och ortslistan */
.spokes { padding: clamp(3rem, 7vw, 6.5rem) 0; background: var(--surface); border-top: 1px solid var(--line); }
.spokes h2, .cities h2 { max-width: 22ch; }
.spokes .area-list { margin-top: 2rem; }
.cities { padding: clamp(3rem, 7vw, 6.5rem) 0; }
.cities .lede { margin-top: .9rem; max-width: 52ch; color: var(--muted); }
.city-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.city-list a { display: inline-flex; align-items: center; min-height: 44px; padding: .7rem 1.05rem; border-radius: var(--r-s); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 .95rem/1.2 var(--sans); color: var(--ink); text-decoration: none; transition: background-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease); }
.city-list a:hover { background: var(--ink); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* syskonlänkar sist i brödtexten */
.related { margin-top: 1rem; padding: 1.1rem 1.25rem; background: var(--surface); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: .98rem; line-height: 1.6; }
.related a { color: var(--ink); font-weight: 500; text-decoration-color: rgba(192, 138, 74, .7); }

/* 404: chips vidare */
.page-404 .chips { margin-top: 2rem; }

/* sektionsfärger sätts per sida så att två lika partier aldrig möts med en ensam hårlinje */
.sec-white { background: var(--surface); border-top: 0; border-bottom: 0; }
.sec-paper { background: var(--paper); border-top: 0; border-bottom: 0; }
.sec-white .local-note, .sec-white .note { background: var(--paper); }

/* ---------------------------------------------------------------- reveal */
[data-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
[data-stagger].is-in > * { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  .article-grid { grid-template-columns: 1fr; }
  .rail { position: static; max-width: 420px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --head-h: 64px; }
  .brand img { height: 38px; }
  .hero { min-height: 100svh; align-items: flex-end; padding: calc(var(--head-h) + 34vh) 0 2.5rem; }
  .hero-lede { margin-top: 1.25rem; }
  .hero .cta-row { margin-top: 1.5rem; }
  /* mobil: bilden överst och tonar ner i mörkt, texten står på mörk botten */
  .hero-photo .hero-media img { height: 68%; object-position: 50% 40%; opacity: 1;
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 42%); mask-image: linear-gradient(to top, transparent 0, #000 42%); }
  .hero-photo::before { background: linear-gradient(to top, rgba(7, 13, 23, .85) 0%, rgba(7, 13, 23, .55) 40%, rgba(7, 13, 23, 0) 62%), linear-gradient(to bottom, rgba(7, 13, 23, .55) 0%, rgba(7, 13, 23, 0) 22%); }
  .hero-media img { top: 0; bottom: auto; width: 100%; max-width: none; height: 72%; object-position: 50% 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; }
  .hero-photo .hero-copy { position: relative; }
  .hero-photo .hero-copy::before {
    content: ""; position: absolute; z-index: -1;
    inset: -1.25rem calc(-1 * var(--gutter)) -3rem calc(-1 * var(--gutter));
    background: linear-gradient(to top, rgba(7, 13, 23, .92) 55%, rgba(7, 13, 23, .82) 78%, rgba(7, 13, 23, 0) 100%);
  }
  .hero-copy { margin-left: var(--gutter); }
  .hero-word { font-size: clamp(2.4rem, 12.5vw, 4.2rem); overflow-wrap: anywhere; }
  .statement-dark .statement-grid, .hero-grid, .statement-grid, .expertise-grid, .panels-grid, .contact-grid, .bio-grid, .exp-grid, .band-grid, .topics-grid, .press-grid, .faq-grid, .local-grid, .cost-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-head .lede { max-width: none; }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list li:nth-child(3) { border-left: 0; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid var(--on-ink-line); }
  .trust-list li > a, .trust-list li > span { padding: 1rem 1rem; gap: .7rem; }
  .trust-list strong { font-size: .95rem; }
  .trust-list strong + span { font-size: .78rem; }
  .statement-mark img { width: 180px; }
  .statement-mark { justify-content: flex-start; }
  .facts li { grid-template-columns: 1fr; gap: .3rem; }
  .panel-fam { grid-template-columns: 1fr; }
  .office-list li { grid-template-columns: 1fr; gap: .25rem; }
  .expertise-copy, .topics-head { position: static; }
  .steps-list { grid-template-columns: 1fr; }
  .frame { padding: 11px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-head { position: static; }
  .review-list { columns: 1; }
  .exp-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-row .btn, .panel-call .btn, .cookie-actions .btn { flex: 1 1 auto; justify-content: center; }
  .contact-page .contact-copy { display: contents; }
  .contact-page .contact-list { order: 1; }
  .contact-page .contact-form { order: 2; }
  .contact-page .contact-art { order: 3; margin-top: 1.5rem; }
  .btn { white-space: normal; text-align: center; }
}

@media (max-width: 420px) {
  .trust-list { grid-template-columns: minmax(0, 1fr); }
  .trust-list li { border-left: 0; border-top: 1px solid var(--on-ink-line); }
  .trust-list li:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-media img, .mobile-menu li { animation: none !important; opacity: 1; transform: none; filter: none; }
  /* en ren övertoning är ingen rörelse: bildspelet får köra, utan zoom */
  .hero-photo .hero-slides picture + picture img { animation: hero-slide 18s ease-in-out 6s infinite both !important; opacity: 0; }
  [data-stagger] > * { opacity: 1; transform: none; transition: none; }
  .btn, .btn-orb, .area, .sub { transition: none; }
}
@media print {
  .site-head, .mobile-menu, .rail, .site-foot, .cta-row, .contact-form, .hero-media { display: none !important; }
  body { background: #fff; }
  .hero, .statement-dark, .band, .panel-ink { background: #fff !important; color: #000; min-height: 0; }
  .hero *, .statement-dark *, .band *, .panel-ink * { color: #000 !important; }
  [data-stagger] > * { opacity: 1; transform: none; }
}

/* E-E-A-T: byline och källor på familjerättssidorna */
.byline { display: flex; gap: .55rem; align-items: flex-start; margin: 1rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; max-width: 60ch; }
.byline .ic { width: 18px; height: 18px; flex: none; color: var(--gold-text); margin-top: .15rem; }
.byline a { color: var(--ink); }
.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sources-h { font: 500 1.05rem/1.3 var(--serif); color: var(--ink); margin: 0 0 .6rem; letter-spacing: -.005em; }
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.sources li { font-size: .92rem; color: var(--muted); padding-left: 1rem; position: relative; }
.sources li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.sources a { color: var(--ink); text-decoration-color: var(--line-strong, var(--line)); }

/* rättsväsende-bilder */
.statement-art { max-width: 380px; margin: 0 auto; }
.statement-art .frame-in { box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 0 11px rgba(255,255,255,.05), 0 0 0 12px rgba(192,138,74,.45); }
.band-art { position: relative; isolation: isolate; overflow: clip; }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 45%; z-index: -1; opacity: .34; }
.band-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, var(--ink-deep) 0%, rgba(6,26,48,.96) 50%, rgba(6,26,48,.9) 78%, rgba(6,26,48,.55) 100%); }
@media (max-width: 767px) {
  .statement-art { max-width: none; margin: 0 0 1.75rem; }
  .band-bg { object-position: 85% 50%; opacity: .4; }
  .band-art::before { background: linear-gradient(to bottom, rgba(6,26,48,.9) 0%, rgba(6,26,48,.85) 100%); }
}
.prose .frame-wide, .article-wrap .frame-wide { max-width: none; width: 100%; margin: 0 0 2.25rem; }

/* mobilmeny: rättsområdena som fällbara undermenyer */
.mm-acc { border-bottom: 1px solid var(--line); }
.mm-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .7rem 0; background: none; border: 0; font: 500 1.35rem/1.2 var(--serif); color: var(--ink); text-align: left; cursor: pointer; }
.mm-toggle .ic-caret { width: 20px; height: 20px; color: var(--gold-text); transition: transform 200ms var(--ease); }
.mm-acc.is-open .mm-toggle .ic-caret { transform: rotate(180deg); }
.mm-toggle:hover, .mobile-menu li a:hover { color: var(--gold-text); }
.mm-acc ul { padding: 0 0 .5rem 1rem; }
.mm-acc ul, .mm-acc li { border: 0; }
.mm-acc li a { font-size: 1.1rem; padding: .75rem 0; border-bottom: 0; color: var(--ink-2); }
.mm-acc li a[aria-current="page"] { color: var(--gold-text); }
.mobile-menu .mm-top { margin-top: .5rem; padding-top: 0; border-top: 0; }
.mm-acc ul[hidden] { display: none; }

/* kakor: samtyckesruta */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; display: flex; justify-content: flex-start; pointer-events: none; }
.cookie-in { pointer-events: auto; max-width: 30rem; background: #fff; color: var(--text); border-radius: var(--r-l); padding: 1.25rem 1.35rem 1.35rem; box-shadow: 0 18px 50px -20px rgba(0, 40, 72, .45), 0 0 0 1px var(--line); display: grid; gap: .6rem; }
.cookie-h { font: 500 1.15rem/1.25 var(--serif); color: var(--ink); }
.cookie-p { font-size: .92rem; line-height: 1.55; color: var(--muted); }
.cookie-p a { color: var(--ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-top: .35rem; }
.foot-cookie { background: none; border: 0; padding: 0; font: inherit; color: var(--on-ink); font-weight: 500; cursor: pointer; }
.foot-cookie:hover { color: var(--gold); }
@media (max-width: 767px) {
  .cookie { left: .6rem; right: .6rem; bottom: .6rem; }
  .cookie-in { max-width: none; width: 100%; }
  .foot-firm { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .foot-firm .sep { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .cookie-in { animation: rise 500ms var(--ease) both; } }
.cookie[hidden] { display: none; }
.sources-sec { background: var(--surface); padding: 0 0 clamp(2rem, 4vw, 3rem); }
.sources { margin-top: 0; padding-top: 1.5rem; max-width: 62rem; }
.sources ul { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .35rem 1.5rem; }
