/**
 * Services page.
 *
 * Replaces the services rules that were spread across refinements v34, v35,
 * v36, v37, v41 and v42 — 58 conflict groups, 81 losing declarations, one h1
 * selector carrying ten different font sizes. One authority now, one scale,
 * and the measure back on theme.json's 1120px instead of the 1440px drift.
 *
 * Structure: hero -> proof strip -> three named groups of two -> closing ask.
 */

.trinity-services-page-v34__hero,
.trinity-services-page-v34__proof,
.trinity-services-page-v34__services,
.trinity-services-page-v34__cta {
  width: 100%;
  margin: 0;
  padding-inline: 0;
}

.trinity-services-page-v34__hero-grid,
.trinity-services-page-v34__proof-inner,
.trinity-services-page-v34__container,
.trinity-services-page-v34__cta-inner {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}

/* ------------------------------------------------------------------- hero */

.trinity-services-page-v34__hero {
  padding-block: clamp(56px, 6vw, 96px);
  background: var(--cream);
}

.trinity-services-page-v34__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.trinity-services-page-v34__hero-copy h1 {
  margin: 0 0 20px;
  max-width: 18ch;
  font-size: clamp(38px, 3.1vw, 54px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--espresso);
  text-wrap: balance;
}

.trinity-services-page-v34__lead {
  margin: 0 0 28px;
  max-width: 46ch;
  font-size: clamp(17px, 1.1vw, 19px);
  line-height: 1.62;
  color: #56463D;
}

.trinity-services-page-v34__hero-figure {
  margin: 0;
  height: clamp(340px, 32vw, 480px);
  overflow: hidden;
  border-radius: 2px;
}

.trinity-services-page-v34__hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* ------------------------------------------------------- proof strip */
/* The page sells six things and used to carry no evidence of any kind. */

.trinity-services-page-v34__proof {
  padding-block: clamp(30px, 3.2vw, 44px);
  background: var(--anchor);
}

.trinity-services-page-v34__proof-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(28px, 4vw, 64px);
  align-items: baseline;
  justify-content: space-between;
}

.trinity-services-page-v34__proof-lead {
  flex: 1 1 30ch;
}

.trinity-services-page-v34__proof-unis {
  flex: 1 1 32ch;
}

.trinity-services-page-v34__proof-lead {
  margin: 0;
  max-width: 40ch;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.35vw, 23px);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.trinity-services-page-v34__proof-unis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sage);
}

.trinity-services-page-v34__proof-unis > span {
  white-space: nowrap;
}

.trinity-services-page-v34__proof-label {
  width: 100%;
  font-size: 13px;
  color: rgba(253, 245, 235, 0.66);
}

/* -------------------------------------------------------------- services */

.trinity-services-page-v34__services {
  padding-block: clamp(64px, 6vw, 104px);
  background: var(--cream);
}

.trinity-services-page-v34__intro {
  max-width: 680px;
  margin-bottom: clamp(40px, 4vw, 64px);
}

.trinity-services-page-v34__intro h2 {
  margin: 0 0 16px;
  font-size: clamp(29px, 2.4vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--espresso);
  text-wrap: balance;
}

.trinity-services-page-v34__intro p {
  max-width: 52ch;
  margin: 0;
  font-size: clamp(17px, 1.05vw, 19px);
  line-height: 1.62;
  color: #56463D;
}

/* Three named stages of two, rather than one flat six. */
.trinity-services-page-v34__group + .trinity-services-page-v34__group {
  margin-top: clamp(44px, 4.4vw, 68px);
}

.trinity-services-page-v34__group-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: baseline;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(50, 34, 26, 0.14);
}

.trinity-services-page-v34__group-title {
  margin: 0;
  font-size: clamp(21px, 1.6vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--espresso);
}

.trinity-services-page-v34__group-lead {
  flex: 1 1 22ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #6B5A4E;
}

.trinity-services-page-v34__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 1.8vw, 26px);
}

.trinity-services-page-v34__card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.1vw, 32px);
  border: 1px solid rgba(50, 34, 26, 0.12);
  border-top: 2px solid var(--sage-deep);
  background: rgba(255, 255, 255, 0.62);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.trinity-services-page-v34__card:hover,
.trinity-services-page-v34__card:focus-within {
  border-color: rgba(50, 34, 26, 0.2);
  background: #FFFFFF;
  box-shadow: 0 10px 26px rgba(50, 34, 26, 0.07);
}

/* Replaces the decorative 01–06 numbering: the reader needs to know when a
   stage applies to their child, not what order we list it in. */
.trinity-services-page-v34__stage {
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 5px 11px;
  border-radius: 2px;
  background: #E3EFE5;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--forest);
}

.trinity-services-page-v34__card-title {
  margin: 0 0 12px;
  font-size: clamp(19px, 1.35vw, 22px);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.014em;
  color: var(--espresso);
  text-wrap: balance;
}

/* The data model always separated the skim line from the depth line; the two
   used to render as identical paragraphs. */
.trinity-services-page-v34__summary {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: #3F3128;
}

.trinity-services-page-v34__detail {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.62;
  color: #6B5A4E;
}

.trinity-services-page-v34__resource {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.trinity-services-page-v34__resource:hover {
  color: var(--espresso);
}

.trinity-services-page-v34__resource-arrow {
  transition: transform 180ms ease;
}

.trinity-services-page-v34__resource:hover .trinity-services-page-v34__resource-arrow {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------- cta */

.trinity-services-page-v34__cta {
  padding-block: clamp(64px, 6.5vw, 104px);
  background: var(--anchor);
}

.trinity-services-page-v34__cta-inner {
  max-width: 660px;
  text-align: center;
}

.trinity-services-page-v34__cta-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 2.9vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--cream);
  text-wrap: balance;
}

.trinity-services-page-v34__cta-inner p {
  margin: 0 auto 30px;
  max-width: 48ch;
  font-size: clamp(17px, 1.1vw, 19px);
  line-height: 1.62;
  color: rgba(253, 245, 235, 0.9);
}

.trinity-services-page-v34__cta-inner .wp-block-buttons {
  justify-content: center;
}

/* Buttons: cream on espresso in the closing band, forest on cream in the hero.
   Both replace white-on-moss, which measured 2.77:1. */
.trinity-services-page-v34__hero .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 3px;
  background: var(--forest);
  color: var(--cream);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.trinity-services-page-v34__hero .wp-block-button__link:hover {
  background: #182F26;
}

.trinity-services-page-v34__cta .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 3px;
  background: var(--cream);
  color: var(--espresso);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.trinity-services-page-v34__cta .wp-block-button__link:hover {
  background: var(--sage);
}

/* ---------------------------------------------------------- Vietnamese */
/* Stacked diacritics need vertical room and neutral-to-positive tracking.
   No refinement layer ever carried a Vietnamese counterpart for this page,
   so its headings inherited the English clamps and leading. */

body.trinity-lang-vi .trinity-services-page-v34__hero-copy h1 {
  max-width: 20ch;
  font-size: clamp(33px, 2.7vw, 45px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

body.trinity-lang-vi .trinity-services-page-v34__intro h2 {
  max-width: 26ch;
  font-size: clamp(27px, 2.2vw, 37px);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

body.trinity-lang-vi .trinity-services-page-v34__group-title {
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1.28;
  letter-spacing: -0.014em;
}

body.trinity-lang-vi .trinity-services-page-v34__card-title {
  font-size: clamp(18px, 1.28vw, 21px);
  line-height: 1.34;
  letter-spacing: -0.008em;
}

body.trinity-lang-vi .trinity-services-page-v34__cta-inner h2 {
  font-size: clamp(27px, 2.5vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

body.trinity-lang-vi .trinity-services-page-v34__summary,
body.trinity-lang-vi .trinity-services-page-v34__detail,
body.trinity-lang-vi .trinity-services-page-v34__lead,
body.trinity-lang-vi .trinity-services-page-v34__group-lead {
  line-height: 1.7;
  letter-spacing: 0;
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .trinity-services-page-v34__hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .trinity-services-page-v34__hero-copy h1 {
    max-width: 22ch;
  }

  .trinity-services-page-v34__hero-figure {
    height: clamp(260px, 44vw, 380px);
  }
}

/* The old set jumped from two columns straight to 700px, so iPad portrait
   carried two ~280px columns of body copy. */
@media (max-width: 840px) {
  .trinity-services-page-v34__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trinity-services-page-v34__intro,
  .trinity-services-page-v34__proof-lead {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .trinity-services-page-v34__hero-grid,
  .trinity-services-page-v34__proof-inner,
  .trinity-services-page-v34__container,
  .trinity-services-page-v34__cta-inner {
    width: min(100% - 32px, 1120px);
  }

  .trinity-services-page-v34__hero-copy h1 {
    font-size: clamp(31px, 8.4vw, 40px);
  }

  .trinity-services-page-v34__cta-inner {
    text-align: left;
  }

  .trinity-services-page-v34__cta-inner p {
    margin-inline: 0;
  }

  .trinity-services-page-v34__cta-inner .wp-block-buttons {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trinity-services-page-v34__card,
  .trinity-services-page-v34__resource-arrow {
    transition: none;
  }

  .trinity-services-page-v34__resource:hover .trinity-services-page-v34__resource-arrow {
    transform: none;
  }
}
