/* Inner pages - same tokens as startsidan */

.page-inner .site-header-next {
  background: rgba(243, 244, 246, 0.96);
}

.page-inner #main .section-next-inner {
  width: min(var(--max), 100%);
}

.page-inner .section-cta-offer .section-next-inner {
  width: min(var(--max), 100%);
  max-width: 100%;
}

.page-hero-photo {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 1.25rem clamp(2.75rem, 5vw, 4rem);
  overflow: hidden;
  background: #1a1d21;
}

.page-hero-photo-bg {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.page-hero-photo-bg img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
}

body.page-referenser .page-hero-photo-bg img {
  object-position: center 42%;
}

body.page-referenser .page-hero-photo-bg::after {
  background:
    linear-gradient(105deg, rgba(15, 40, 71, 0.92) 0%, rgba(15, 40, 71, 0.55) 42%, rgba(15, 40, 71, 0.2) 72%),
    linear-gradient(to top, rgba(20, 20, 20, 0.88), transparent 50%);
}

.page-hero-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 40, 71, 0.94) 0%, rgba(15, 40, 71, 0.72) 50%, rgba(15, 40, 71, 0.45) 100%),
    linear-gradient(to top, rgba(20, 20, 20, 0.85), transparent 55%);
}

.page-hero-photo-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.page-hero-copy {
  max-width: 54rem;
  width: 100%;
}

.page-hero-photo .hero-eyebrow {
  color: #e8edf2;
}

.page-hero-photo h1 {
  margin: 0 0 1.1rem;
  color: #fff;
  max-width: 14ch;
  font-size: var(--text-h1);
}

/* Hero-rubrik med fasta rader (t.ex. tjänstehubben) */
.page-hero-photo h1.hero-title--lines {
  max-width: min(42rem, 100%);
}

body.page-tjanster .page-hero-copy {
  max-width: min(42rem, 100%);
}

body.page-tjanster .page-hero-photo .lead {
  max-width: min(42rem, 100%);
}

.page-hero-photo .lead {
  color: #fff;
  font-weight: 400;
  margin: 0 0 1.75rem;
  max-width: 38rem;
}

.page-hero-photo .hero-actions {
  margin-top: 0;
}

.page-hero-usps {
  display: grid;
  gap: 0.85rem 1.5rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

@media (min-width: 720px) {
  .page-hero-usps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-hero-usps strong {
  display: block;
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.page-hero-usps p {
  margin: 0;
  color: #d7dee7;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.inner-hero {
  padding: 8.5rem 1.25rem 2.75rem;
  background: #f3f4f6;
}

.inner-hero-copy {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.inner-eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.inner-hero h1,
.page-hero h1 {
  margin: 0 0 0.85rem;
  font-size: var(--text-h1-inner);
  max-width: 16ch;
}

.inner-hero .lead,
.page-hero .lead {
  margin: 0;
  color: var(--muted);
}

.inner-intro {
  padding-top: 0;
}

.page-inner .why-split {
  align-items: center;
}

.page-inner .why-split-body h2 {
  margin: 0 0 0.45rem;
}

.page-inner .why-split-body .lead {
  margin: 0 0 0.55rem;
}

.page-inner .why-split-body p:not(.lead):not(.section-cta):not(.why-split-cta) {
  margin: 0 0 0.55rem;
}

.page-inner .why-split-cta {
  margin-top: 0.9rem;
}

.inner-split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 800px) {
  .inner-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .inner-split--text {
    grid-template-columns: 1fr;
  }
}

.inner-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.inner-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.inner-copy .lead {
  max-width: 38rem;
}

.inner-copy p:not(.lead):not(.inner-inline-cta):not(.section-cta) {
  margin: 0 0 1rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  text-wrap: pretty;
}

.inner-inline-cta {
  margin-top: 1.5rem;
}

.inner-facts-wrap {
  background: #eef0f2;
}

.inner-facts {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .inner-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.inner-fact,
.contact-cards li {
  padding: 1.35rem 1.4rem;
  background: var(--white);
  border: 1px solid rgba(26, 68, 112, 0.12);
  border-radius: var(--radius);
}

.inner-fact-label {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.inner-fact p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.inner-work {
  background: #fff;
}

.inner-list--wide {
  display: grid;
  gap: 0 2rem;
}

@media (min-width: 720px) {
  .inner-list--wide {
    grid-template-columns: 1fr 1fr;
  }
}

.why-split--text {
  grid-template-columns: 1fr;
}

.why-split-media.inner-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  border: 0;
  overflow: visible;
  align-items: stretch;
}

.why-split-media.inner-portraits figure {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d8dde3;
}

.why-split-media.inner-portraits img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
}

.inner-contact-main {
  background: #fff;
}

.why-split-body h3 {
  margin: 1.5rem 0 0.75rem;
}

.inner-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inner-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #dde1e6;
  color: var(--ink-soft);
  line-height: 1.45;
}

.inner-list li::before {
  content: "";
  flex: 0 0 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45em;
  background: var(--blue);
}

.inner-note {
  margin-top: 1.25rem;
  max-width: 40rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.inner-note p {
  margin: 0;
  line-height: 1.55;
}

.inner-related {
  background: #f3f4f6;
}

.page-inner .section-process {
  background: var(--surface);
}

.inner-prose {
  max-width: 46rem;
}

.inner-prose .lead {
  max-width: 46rem;
}

.inner-prose p:not(.lead):not(.section-cta) {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  text-wrap: pretty;
}

.inner-section--white,
.section-ka.inner-section {
  background: #fff;
}

.inner-section--gray {
  background: var(--surface);
}

.inner-section--blue {
  background: var(--blue-soft);
}

.inner-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0;
}

.inner-portraits img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
}

.inner-split-list {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.inner-split-list h3 {
  margin: 0 0 0.5rem;
}

.inner-section h2 {
  margin: 0 0 0.75rem;
}

.inner-copy h3 {
  margin: 1.5rem 0 0.75rem;
}

.inner-faq-wrap {
  background: var(--blue-soft);
}

.inner-faq {
  display: grid;
  gap: 0.75rem;
}

.inner-faq details {
  background: #fff;
  border: 1px solid #dde1e6;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.inner-faq summary {
  font-family: var(--font-display);
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
}

.inner-faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.inner-fallback {
  padding-bottom: 2rem;
}

.page-services {
  padding: 0 0 2rem;
}

.service-group {
  padding: 0.5rem 0 2.5rem;
}

.service-group h2 {
  margin: 0 0 1.15rem;
}

.inner-process {
  max-width: 42rem;
}

.contact-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .contact-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.contact-cards p,
.contact-cards address {
  margin: 0;
  font-style: normal;
  line-height: 1.45;
}

.contact-cards a {
  color: var(--ink);
}

.inner-contact-cards {
  background: var(--blue-soft);
}

.contact-cards a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-panel {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .contact-panel {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }
}

.contact-people h2,
.contact-panel h2 {
  margin: 0 0 0.75rem;
}

.contact-people > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 34rem;
}

.contact-people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-people-list li {
  display: grid;
  grid-template-columns: 182px 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-people-list img,
.contact-people-list .person-card-photo {
  width: 100%;
  max-width: 182px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.contact-people-list .person-card-photo--pending {
  object-fit: unset;
  font-size: 0.75rem;
  padding: 0.5rem;
}

@media (max-width: 480px) {
  .contact-people-list li {
    grid-template-columns: 146px 1fr;
    gap: 1rem;
  }

  .contact-people-list img {
    max-width: 146px;
  }
}

.contact-people-list strong,
.contact-people-list span,
.contact-people-list a {
  display: block;
}

.contact-people-list span {
  margin: 0.15rem 0 0.35rem;
  color: var(--blue-deep);
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-form p {
  margin: 0 0 1rem;
}

.contact-form label {
  display: block;
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d5d8dc;
  background: #fff;
  font: inherit;
  border-radius: var(--radius);
}

.contact-form textarea {
  min-height: 140px;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.form-notice {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  background: #e8eaed;
  border-radius: var(--radius);
}

.page-cta {
  padding: 1.5rem 0 0;
  margin: 0;
}

.page-inner .cta-next {
  margin-top: 0;
}

@media (max-width: 900px) {
  .inner-hero {
    padding-top: 7rem;
  }
}

/* Referenser - project gallery */

.ref-gallery-section .section-head {
  margin-bottom: 1.75rem;
}

.ref-gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 1.15rem;
}

.ref-gallery-item {
  margin: 0;
}

.ref-gallery-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
}

.ref-gallery-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ref-gallery-open:hover {
  box-shadow: 0 12px 28px rgba(15, 40, 71, 0.12);
  transform: translateY(-2px);
}

.ref-gallery-open:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.ref-gallery-open img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: middle;
}

.ref-gallery-card-label {
  position: absolute;
  inset: auto 0 0;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(to top, rgba(15, 40, 71, 0.88), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.ref-gallery-caption {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.ref-gallery-caption a {
  color: var(--blue-deep);
  text-decoration: none;
}

.ref-gallery-caption a:hover {
  text-decoration: underline;
}

.ref-gallery-dialog {
  width: min(96vw, 56rem);
  max-width: none;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: #0f1720;
  color: #fff;
  overflow: hidden;
}

.ref-gallery-dialog::backdrop {
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(4px);
}

.ref-gallery-dialog figure {
  margin: 0;
}

.ref-gallery-dialog img {
  display: block;
  width: 100%;
  max-height: min(78vh, 52rem);
  object-fit: contain;
  background: #0a0e14;
}

.ref-gallery-dialog figcaption {
  padding: 0.85rem 1rem 1rem;
  font-weight: 600;
}

.ref-gallery-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.ref-gallery-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ref-gallery-close:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.ref-gallery-dialog {
  position: relative;
}
