/* Core business listing and detail pages */
.services-page,
.service-detail-page {
  color: var(--ink);
  background: var(--paper);
}

.services-hero,
.service-detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background-position: center 44%;
  background-size: cover;
  background-repeat: no-repeat;
}

.services-hero {
  height: 560px;
  background-image:
    linear-gradient(90deg, rgba(32, 31, 22, .96), rgba(53, 35, 6, .8)),
    url("../images/banner_02.png");
}

.service-detail-hero {
  height: 560px;
  background-image:
    linear-gradient(90deg, rgba(32, 31, 22, .96), rgba(53, 35, 6, .8)),
    url("../images/banner_02.png");
}

.services-hero::after,
.service-detail-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 60%, rgba(134, 132, 91, .28) 60% 100%);
  content: "";
  pointer-events: none;
}

.services-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.services-hero h1,
.service-detail-hero h1 {
  max-width: 900px;
  margin: 44px 0 20px;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.45;
}

.services-hero__inner > p:last-child,
.service-detail-hero__grid > div:first-child > p:last-of-type {
  max-width: 760px;
  margin: 0;
  color: rgba(246, 244, 238, .86);
  font-size: 20px;
  line-height: 2;
}

.services-intro,
.service-overview {
  padding: 120px 0;
  background: var(--paper);
}

.services-intro__layout,
.service-overview__grid {
  display: grid;
  grid-template-columns: minmax(330px, .86fr) minmax(0, 1.14fr);
  gap: clamp(72px, 10vw, 180px);
  align-items: start;
}

.services-intro__layout { margin-top: 40px; }
.service-overview__grid { margin-top: 40px; }

.services-intro h2,
.service-overview h2,
.service-section-heading h2,
.service-delivery h2 {
  margin: 40px 0 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.65;
}

.services-intro h2 {
  margin: 0;
  line-height: 1.333;
}

.service-overview h2 {
  margin: 0;
  line-height: 1.333;
}

.services-intro__layout > p {
  margin: 0;
  line-height: 2;
}

.service-richtext {
  margin: 0;
  color: var(--muted);
  line-height: 2;
  text-align: justify;
}

.service-richtext p:last-child { margin-bottom: 0; }

.services-catalog {
  padding: 0 0 120px;
  background: var(--paper);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.services-list-card {
  display: grid;
  min-height: 390px;
  grid-template-columns: 210px minmax(0, 1fr);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}

.services-list-card:hover {
  z-index: 1;
  background: var(--cream);
}

.services-list-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--cream);
}

.services-list-card__visual::before {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(134, 132, 91, .48);
  border-radius: 50%;
  content: "";
  transition: transform .5s var(--ease);
}

.services-list-card:hover .services-list-card__visual::before { transform: scale(1.12); }

.services-list-card__visual > span {
  position: absolute;
  top: 18px;
  left: 22px;
  color: rgba(53, 35, 6, .36);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
}

.services-list-card__visual .service-icon {
  z-index: 1;
  width: 72px;
  height: 72px;
  transform: scale(1.12);
}

.services-list-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 54px 48px 42px;
}

.services-list-card__label {
  margin: 0 0 18px;
  color: var(--olive);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
}

.services-list-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.45;
}

.services-list-card__content > p:nth-of-type(2) {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 2;
}

.services-list-card .text-link {
  margin-top: auto;
  font-size: 18px;
}

/* Detail page */
.service-detail-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(80px, 10vw, 170px);
  align-items: center;
  padding: 0;
}

.service-detail-hero__number {
  margin: 0;
  color: #c5c297;
  font-weight: 700;
  letter-spacing: .16em;
}

.service-detail-hero h1 { margin-top: 28px; }

.service-detail-hero__visual {
  position: relative;
  display: grid;
  width: 360px;
  height: 360px;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(246, 244, 238, .36);
  border-radius: 50%;
  background: rgba(246, 244, 238, .08);
  backdrop-filter: blur(10px);
}

.service-detail-hero__visual::before,
.service-detail-hero__visual::after {
  position: absolute;
  border: 1px solid rgba(197, 194, 151, .35);
  border-radius: 50%;
  content: "";
}

.service-detail-hero__visual::before { inset: 34px; }
.service-detail-hero__visual::after { inset: 74px; }

.service-detail-hero__visual > span {
  position: absolute;
  right: 34px;
  bottom: 20px;
  color: rgba(246, 244, 238, .34);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}

.service-detail-hero__visual .service-icon {
  z-index: 1;
  width: 100px;
  height: 100px;
  filter: brightness(0) invert(1);
  transform: scale(1.55);
}

.service-directory {
  padding: 120px 0;
  background: var(--cream);
}

.service-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}

.service-section-heading h2 {
  margin: 0;
  line-height: 1.25;
  text-align: right;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.directory-grid article {
  display: grid;
  min-height: 164px;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 36px;
  background: rgba(255, 255, 255, .42);
  transition: background .2s ease;
}

.directory-grid article:hover { background: #fff; }

.directory-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.65;
}

.directory-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.service-delivery {
  padding: 120px 0;
  background: var(--paper);
}

.service-delivery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: clamp(70px, 9vw, 150px);
  align-items: start;
  margin-top: 40px;
}

.service-delivery h2 {
  margin: 0;
  line-height: 1.333;
}

.service-delivery__content ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
}

.service-delivery__content li {
  position: relative;
  min-height: 86px;
  border-top: 1px solid var(--line);
  padding: 22px 0 18px 28px;
  line-height: 1.9;
}

.service-delivery__content li::before {
  position: absolute;
  top: 34px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--olive);
  content: "";
  transform: rotate(45deg);
}

.service-summary {
  margin-top: 8px;
  border-top: 6px solid var(--olive);
  background: var(--night-alt);
}

.service-summary > div {
  border-bottom: 1px solid rgba(246, 244, 238, .18);
  padding: 36px 42px;
}

.service-summary span {
  display: block;
  margin-bottom: 12px;
  color: #c5c297;
  font-size: 20px;
  font-weight: 700;
}

.service-summary p {
  margin: 0;
  color: rgba(246, 244, 238, .86);
  line-height: 2;
  text-align: justify;
}

.service-summary__note { background: rgba(134, 132, 91, .16); }

.service-pager {
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.service-pager__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-pager a {
  display: flex;
  min-width: 0;
  min-height: 150px;
  flex-direction: column;
  justify-content: center;
  padding: 30px 42px;
  transition: color .2s ease, background .2s ease;
}

.service-pager a + a { border-left: 1px solid var(--line); }
.service-pager a:nth-child(2) { text-align: center; }
.service-pager a:last-child { text-align: right; }
.service-pager a:hover { color: var(--cream); background: var(--olive); }

.service-pager span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
}

.service-pager a:hover span { color: rgba(246, 244, 238, .72); }

.service-pager strong {
  overflow: hidden;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .services-list-card { grid-template-columns: 160px minmax(0, 1fr); }
  .services-list-card__content { padding-inline: 34px; }
  .service-detail-hero__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; }
  .service-detail-hero__visual { width: 290px; height: 290px; }
  .directory-grid article { grid-template-columns: 140px minmax(0, 1fr); padding-inline: 28px; }
  .service-delivery__grid { grid-template-columns: minmax(0, 1fr) 430px; gap: 60px; }
}

@media (max-width: 900px) {
  .services-hero h1,
  .service-detail-hero h1 { font-size: 46px; }
  .services-intro__layout,
  .service-overview__grid { grid-template-columns: 1fr; gap: 32px; }
  .services-intro__layout > p,
  .service-richtext { margin-top: 0; }
  .services-list { grid-template-columns: 1fr; }
  .service-detail-hero__grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 40px; }
  .service-detail-hero__visual { width: 240px; height: 240px; }
  .service-detail-hero__visual > span { right: 20px; font-size: 52px; }
  .directory-grid { grid-template-columns: 1fr; }
  .service-delivery__grid { grid-template-columns: 1fr; }
  .service-summary { width: min(100%, 660px); margin-top: 0; }
}

@media (max-width: 767px) {
  .services-hero { height: 500px; }
  .services-hero__inner { height: 100%; min-height: 0; padding: 0; }
  .service-detail-hero { height: 500px; }
  .services-hero h1,
  .service-detail-hero h1 { margin-top: 30px; font-size: 36px; line-height: 1.5; }
  .services-hero__inner > p:last-child,
  .service-detail-hero__grid > div:first-child > p:last-of-type { font-size: 17px; line-height: 1.9; }
  .services-intro,
  .service-overview,
  .service-directory,
  .service-delivery { padding: 76px 0; }
  .services-intro h2,
  .service-overview h2,
  .service-section-heading h2,
  .service-delivery h2 { margin-top: 28px; font-size: 34px; line-height: 1.55; }
  .services-intro__layout { margin-top: 28px; }
  .services-intro h2 { margin-top: 0; }
  .service-overview__grid,
  .service-delivery__grid { margin-top: 28px; }
  .service-overview h2,
  .service-delivery h2 { margin-top: 0; }
  .services-list-card { min-height: 340px; grid-template-columns: 140px minmax(0, 1fr); }
  .services-list-card__visual::before { width: 108px; height: 108px; }
  .services-list-card__visual .service-icon { transform: none; }
  .services-list-card__content { padding: 42px 28px 34px; }
  .services-list-card h2 { font-size: 24px; }
  .service-detail-hero__grid { height: 100%; min-height: 0; grid-template-columns: 1fr; gap: 36px; padding: 0; }
  .service-detail-hero__visual { display: none; }
  .service-section-heading { display: block; margin-bottom: 44px; }
  .service-section-heading h2 { margin-top: 28px; text-align: left; }
  .directory-grid article { min-height: 0; grid-template-columns: 1fr; gap: 10px; padding: 28px; }
  .service-delivery__content ul { grid-template-columns: 1fr; margin-top: 40px; }
  .service-summary > div { padding: 30px; }
  .service-pager__grid { grid-template-columns: 1fr 1fr; }
  .service-pager a { min-height: 120px; padding: 24px; }
  .service-pager a:nth-child(2) { display: none; }
  .service-pager a:nth-child(3) { border-left: 1px solid var(--line); }
  .service-pager strong { font-size: 17px; }
}

@media (max-width: 500px) {
  .services-hero h1 br,
  .services-intro h2 br,
  .service-overview h2 br,
  .service-delivery h2 br { display: none; }
  .services-hero h1,
  .service-detail-hero h1 { font-size: 32px; }
  .services-intro h2,
  .service-overview h2,
  .service-section-heading h2,
  .service-delivery h2 { font-size: 31px; }
  .services-list-card { grid-template-columns: 1fr; }
  .services-list-card__visual { min-height: 170px; border-right: 0; border-bottom: 1px solid var(--line); }
  .services-list-card__visual > span { top: 14px; left: 18px; }
  .services-list-card__content { min-height: 280px; padding: 32px 24px 28px; }
  .services-list-card__label { margin-bottom: 12px; }
  .services-list-card h2 { font-size: 23px; }
  .service-detail-hero .button { width: 100%; }
  .directory-grid article { padding: 24px 22px; }
  .directory-grid h3 { font-size: 20px; }
  .service-summary > div { padding: 27px 22px; }
  .service-pager a { padding: 20px 16px; }
  .service-pager span { font-size: 12px; }
  .service-pager strong { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .services-list-card,
  .services-list-card__visual::before { transition: none; }
}
