/* =========================
   PAGE CONTENT
========================= */

:root {
  --header-offset: 170px;
}

body {
  scroll-padding-top: var(--header-offset);
}

@media (max-width: 768px) {
  :root {
    --header-offset: 200px;
  }
}

/* Smal layout endast för vanliga sidor */
body.page-id-30623 .site-main,
body.page-id-19715 .site-main,
body.page-id-14 .site-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Rubriker */
.page.container h1 {
  margin-top: 20px;
}

.page.container h2,
.page.container h3,
.page.container h4 {
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

/* Brödtext */
.page.container p {
  margin-bottom: 1rem;
  line-height: 1.65;
}

/* Listor */
.page.container ul,
.page.container ol {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.65;
}

/* Sektion spacing */
.legal-section {
  margin-bottom: 60px;
}

/* Snabbnavigering */
.legal-nav {
  margin-top: 20px;
  margin-bottom: 30px;
}

.legal-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.about-hero {
  position: relative;
  width: 100%;
  height: 320px;
  background-image: url("https://staging.pusselavenyn.se/wp-content/uploads/2024/03/Slider-pusselbitar-01-1.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}

/* Overlay */
.about-hero__overlay {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.about-hero h1,
.about-hero p {
  position: relative;
  z-index: 2;
  color: #fff;
}

.about-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.about-hero::before {
  background: rgba(0, 45, 80, 0.65);
}

.about-hero h1 {
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* =========================
   POST HERO
========================= */

.post-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 340px;
  max-height: 560px;
  margin-bottom: 50px;

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.post-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  color: #fff;
}

.post-hero__content h1 {
  font-size: clamp(2.4rem, 3.2vw, 3.2rem);
  margin-bottom: 1rem;
}

.post-hero__excerpt {
  font-size: 1.1rem;
  opacity: .95;
}

.single-post .entry-content {
  max-width: 760px;
  margin-inline: auto;
}

.single-post article {
  margin-bottom: 60px;
}

.single-post .entry-content p {
  line-height: 1.7;
  margin-bottom: 1.2em;
}