/*
 * 87 Bygg – gemensam grafikfix för lokala SEO-sidor
 * Laddas efter den byggda huvudstilmallen.
 */

/* Den lokala processdelen har ljus bakgrund och måste använda mörk text. */
.seo-process-section {
  background: var(--limestone);
  color: var(--carbon);
}

.seo-process-section .eyebrow,
.seo-process-section .section-lead,
.seo-process-section .process-list p {
  color: var(--oak);
}

.seo-process-section .section-intro h2,
.seo-process-section .process-list h3 {
  color: var(--carbon);
}

.seo-process-section .process-list,
.seo-process-section .process-list li {
  border-color: var(--line);
}

.seo-process-section .process-list > li > span {
  color: var(--copper);
}

/* Långa svenska sammansättningar ska aldrig flyta in i nästa kolumn. */
.seo-detail-grid > *,
.local-context-grid > *,
.seo-faq-grid > *,
.coverage-teaser-grid > *,
.seo-related-heading > *,
.page-hero-copy {
  min-width: 0;
}

.page-hero h1,
.seo-sticky-heading h2,
.local-context-grid h2,
.seo-faq-grid h2,
.municipality-section-heading h2,
.seo-related-heading h2 {
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

.local-context-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  gap: clamp(3rem, 5vw, 6rem);
}

.local-context-grid h2 {
  max-width: 100%;
  font-size: clamp(2.8rem, 4.1vw, 4.5rem);
  line-height: 1.01;
}

.local-context-section .eyebrow {
  color: var(--bronze);
}

.seo-faq-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 6vw, 6rem);
}

.seo-faq-grid h2 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 4vw, 3.9rem);
  line-height: 1.02;
}

.page-hero.has-image .page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
}

.page-hero.has-image h1 {
  font-size: clamp(3.25rem, 4.8vw, 5rem);
  line-height: 0.96;
}

@media (max-width: 1024px) {
  .page-hero.has-image .page-hero-grid,
  .coverage-teaser-grid,
  .seo-detail-grid,
  .local-context-grid,
  .seo-faq-grid {
    grid-template-columns: 1fr;
  }

  .page-hero.has-image .page-hero-copy {
    max-width: none;
    margin-left: 0;
    padding: clamp(4rem, 8vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  }

  .page-hero-image {
    min-height: min(70vw, 620px);
  }

  .seo-sticky-heading {
    position: static;
  }

  .local-context-grid h2 {
    max-width: 15ch;
  }
}

@media (max-width: 680px) {
  .page-hero.has-image h1,
  .local-context-grid h2,
  .seo-faq-grid h2 {
    max-width: 100%;
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
}
