/* Services pages (built by tools/build_services.py). Loaded after style.css and hm.css.
   Nothing new is designed here: the old site's long copy is set in the theme's own text styles,
   with the sizes, weights and colours copied from the service-details rules in style.css. */

/* ---- Long copy in the right-hand column of the theme's approach grid ---- */
.hm-prose .section-title {
  max-width: none;
  margin-top: 70px;
  margin-bottom: 30px;
}
.hm-prose .title {                      /* same type as .hero-area-service-details .section-content .title */
  font-size: 30px;
  font-weight: 400;
  line-height: 35px;
  letter-spacing: -1.5px;
  margin-top: 50px;
  margin-bottom: 20px;
}
.hm-prose h4.title {
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.5px;
  margin-top: 35px;
  margin-bottom: 12px;
}
.hm-prose > .section-title:first-child,
.hm-prose > .title:first-child,
.hm-prose > h4.title:first-child {
  margin-top: 0;
}
.hm-prose .text {                       /* same type as .hero-area-service-details .section-content .text */
  font-size: 18px;
  line-height: 26px;
  color: var(--secondary);
  margin-bottom: 20px;
}
.hm-prose .text a,
.hm-prose .list a {
  color: var(--primary);
  text-decoration: underline;
}
.hm-prose .list {                       /* same type as .blog-details .list li */
  margin: 0 0 20px;
  padding-left: 22px;
}
.hm-prose .list li {
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  list-style: disc;
  color: var(--secondary);
  margin-bottom: 8px;
}
.hm-prose .feature-list {               /* the hero's pill list, reused for short lists inside the copy */
  margin: 5px 0 30px;
}
.hm-prose .feature-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
}
.hm-prose .feature-list ul li {
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  display: inline-flex;
  padding: 11px 19px;
  align-items: center;
  list-style: none;
  color: var(--primary);
  border-radius: 500px;
  border: 1px solid var(--border);
}
.hm-process-intro {                    /* paragraph between a steps heading and its steps */
  margin-top: -40px;
  margin-bottom: 50px;
}
@media only screen and (max-width: 1199px) {
  .hm-process-intro { margin-top: -25px; margin-bottom: 40px; }
}
@media only screen and (max-width: 991px) {
  .hm-prose .title { letter-spacing: 0; }
  .hm-prose .section-title { margin-top: 50px; }
}

/* ---- Heading above the theme's feature boxes (dark band); same type as the approach heading ---- */
.feature-area .hm-feature-head {
  margin-bottom: 70px;
}
.feature-area .hm-feature-head .section-title {
  max-width: 658px;
  font-size: 50px;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: -2.5px;
  color: var(--white);
}
.feature-area .hm-feature-head .text {
  max-width: 790px;
  margin-top: 30px;
  font-size: 18px;
  line-height: 26px;
  color: #999999;
}
.feature-area .feature-box .title a {
  color: inherit;
  text-decoration: underline;
}
@media only screen and (max-width: 1199px) {
  .feature-area .hm-feature-head { margin-bottom: 50px; }
  .feature-area .hm-feature-head .section-title { font-size: 38px; line-height: 45px; letter-spacing: 0; }
}
@media only screen and (max-width: 767px) {
  .feature-area .hm-feature-head .section-title { font-size: 30px; line-height: 40px; max-width: 100%; }
}
@media (max-width: 575px) {
  .feature-area .hm-feature-head .section-title { font-size: 22px; line-height: 35px; }
}

/* ---- Numbered lists inside the copy (new service pages) ---- */
.hm-prose ol.list li {
  list-style: decimal;
}
.hm-prose .list .list {
  margin: 8px 0 0;
}

/* ---- Service pages have no photo: the hero column the photo had holds the intro and the tag row.
        The intro keeps the theme's default paragraph size. ---- */
.hero-area-service-details .hm-hero-lead {
  padding-top: 50px;                    /* same offset as .section-thumb and .section-content */
}
.hero-area-service-details .hm-hero-lead > p {
  max-width: 790px;
}
.hero-area-service-details .hm-hero-lead > .feature-list:first-child {
  margin-top: 0;
}
.hero-area-service-details .hm-hero-lead > .title {    /* same type as .section-content .title */
  font-size: 30px;
  font-weight: 400;
  line-height: 35px;
  letter-spacing: -1.5px;
}
/* A page with no tagline (or nothing to set beside one): one column under the title, in the title's own
   column. The widths are the theme's for .section-header, and the 834px step is hm-parity.css's. */
.hero-area-service-details .section-content-wrapper.hm-hero-one {
  grid-template-columns: 792px;
  justify-content: flex-end;
}
@media (min-width: 1600px) and (max-width: 1919px) {
  .hero-area-service-details .section-content-wrapper.hm-hero-one { grid-template-columns: 834px; }
}
@media only screen and (max-width: 991px) {
  .hero-area-service-details .hm-hero-lead { padding-top: 30px; }
  .hero-area-service-details .section-content + .hm-hero-lead { padding-top: 0; }
  .hero-area-service-details .section-content-wrapper.hm-hero-one { grid-template-columns: 1fr; }
  .hero-area-service-details .hm-hero-lead > .title { letter-spacing: 0; }
}

/* ---- FAQ on service pages: the theme spaces a second paragraph 30px down; a one-paragraph answer has none ---- */
.faq-area .accordion-body p:only-child {
  margin-top: 0;
}

/* ---- Services index: rows in groups, each under a service-2.html heading ---- */
.our-expertise-7 .section-2-title-wrapper {
  margin-bottom: 60px;
}
.our-expertise-7 .hm-group + .hm-group {
  margin-top: 120px;
}
@media only screen and (max-width: 1199px) {
  .our-expertise-7 .section-2-title-wrapper { margin-bottom: 40px; }
  .our-expertise-7 .hm-group + .hm-group { margin-top: 80px; }
}
