/* Shared first block of inner pages — Figma 2440:8118 / 2453:7996. */
body:not(.home) .section-wrapper:has(> h1) {
  --inner-hero-title-size: 56px;
  --inner-hero-copy-gap: 48px;
  --inner-hero-gutter: 80px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: calc(var(--smart-header-height, 91px) + 56px) var(--inner-hero-gutter) 0;
  background: #fff;
  color: var(--es-text-primary, #212121);
}

/* Only wrappers with H1 participate; headings of later sections stay intact. */
body:not(.home) .section-wrapper:has(> h1) > h1 {
  width: 100%;
  max-width: 100%;
  margin: 24px 0 0;
  font-family: var(--es-headers-font), Arial, sans-serif;
  font-size: var(--inner-hero-title-size);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--es-text-primary, #212121);
  overflow-wrap: break-word;
}

body:not(.home) .section-wrapper:has(> h1) > :is(.intro, p) {
  max-width: none;
  margin: var(--inner-hero-copy-gap) 0 0;
  font-family: var(--es-regular-font), Garet, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--es-text-primary, #212121);
}

/* Flat WP breadcrumb markup: 16px before the square and 24px after it. */
body .breadcrumbs.breadcrumbs {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 14px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  font-family: var(--es-headers-font), Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: 0;
  color: var(--es-text-primary-80, rgba(33,33,33,.8));
}
body .breadcrumbs::-webkit-scrollbar { display: none; }
body .breadcrumbs > :is(a, span) { flex: 0 0 auto; white-space: nowrap; }
body .breadcrumbs > a { color: inherit; text-decoration: none; }
body .breadcrumbs > a:hover { text-decoration: underline; text-underline-offset: 3px; }
body .breadcrumbs > a:focus-visible { outline: 2px solid #212121; outline-offset: 3px; }
body .breadcrumbs.breadcrumbs .breadcrumbs__separator {
  display: block;
  flex: 0 0 7.052px;
  width: 7.052px;
  height: 7.052px;
  margin: 0 24px 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--es-surface-accent, #a5f50f);
  color: transparent;
  font-size: 0;
}

/* The portrait hero owns its outer grid/spacing; reuse the same text styling. */
@media (min-width: 993px) {
  body:not(.home) .service-detail__hero > .section-wrapper:has(> h1) {
    padding: 0;
    background: transparent;
  }
  body:not(.home) .service-detail__hero > .section-wrapper:has(> h1) > h1 { max-width: 100%; margin-top: 0; }
}

@media (max-width: 1199px) {
  body:not(.home) .section-wrapper:has(> h1) {
    --inner-hero-title-size: 48px;
    --inner-hero-copy-gap: 32px;
    --inner-hero-gutter: 30px;
  }
}
@media (max-width: 639px) {
  body:not(.home) .section-wrapper:has(> h1) {
    --inner-hero-title-size: 36px;
    --inner-hero-copy-gap: 24px;
    --inner-hero-gutter: 20px;
  }
  body:not(.home) .section-wrapper:has(> h1) > :is(.intro, p) { font-size: 15px; }
}
