/* Homepage styles are scoped to the homepage, including the shared header. */
.trm-home {
  --paper: #ffffff;
  --cream: #f0f1f6;
  --ink: #131d47;
  --deep: #0b1130;
  --gold: #dfb44c;
  --gold-foil: #dfb44c;
  --gold-ink: #805908;
  --muted-ink: #4d5468;
  --hairline: #dce0eb;
  --display: "Barlow", Arial, sans-serif;
}

.trm-home :is(.site-header, .site-header.scrolled) {
  background: var(--deep);
  border-bottom: 1px solid #ffffff24;
  box-shadow: none;
}

.trm-home h1,
.trm-home main h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.035em;
}

.trm-home main h2 {
  font-size: clamp(2.35rem, 4.6vw, 4.35rem);
  line-height: .94;
}

.trm-home :is(.trm-button, .trm-text-link, .trm-service-list a):focus-visible {
  outline: 3px solid var(--gold-ink);
  outline-offset: 5px;
}

.trm-intro {
  background: var(--ink);
  color: white;
}

.trm-intro-grid {
  display: grid;
  grid-template-columns: 53% 47%;
  max-width: 1600px;
  margin: 0 auto;
}

.trm-intro-copy {
  align-self: center;
  padding: clamp(3.75rem, 6vw, 6.2rem) clamp(2rem, 4vw, 4.5rem) clamp(4rem, 7vw, 7rem) max(1.5rem, calc((min(100vw, 1600px) - 1132px) / 2));
}

.trm-intro h1 {
  margin-inline-start: -.048em;
  font-size: clamp(3.25rem, 6.05vw, 6.25rem);
  line-height: .89;
  color: #fff;
}

.trm-intro h1 span,
.trm-intro h1 em {
  display: block;
}

.trm-intro h1 em {
  color: var(--gold);
  font-style: normal;
}

.trm-intro-copy > p {
  max-width: 31rem;
  margin-block: 1.7rem 1.6rem;
  color: #e1e5f1;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  line-height: 1.5;
}

.trm-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.trm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .68rem 1.48rem;
  border: 1px solid var(--ink);
  border-radius: .2rem;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.trm-button:hover {
  background: #283b77;
  color: #fff;
}

.trm-text-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #af852d;
  text-underline-offset: .3em;
}

.trm-text-link:hover { text-decoration-thickness: 2px; }

.trm-intro .trm-button {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--deep);
}

.trm-intro .trm-button:hover { background: #efc86e; }
.trm-intro .trm-text-link { color: #fff; }
.trm-intro :is(.trm-button, .trm-text-link):focus-visible { outline-color: var(--gold); }

.trm-founder {
  position: relative;
  min-width: 0;
  margin: 0;
  background: var(--deep);
}

.trm-founder img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 41%;
}

.trm-founder figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  gap: .12rem;
  padding: .9rem 1.45rem 1rem;
  border-top: 2px solid var(--gold);
  background: var(--deep);
  color: #fff;
  line-height: 1.3;
}

.trm-founder figcaption strong { font-size: 1.1rem; }
.trm-founder figcaption span { color: #dbe0ee; font-size: .91rem; }

.trm-proof {
  background: var(--gold);
  color: var(--deep);
}

.trm-proof dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-block: 0;
  padding-block: 1.55rem;
}

.trm-proof dl div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  padding: .05rem .4rem .34rem;
  text-align: center;
}

.trm-proof dl div + div { border-inline-start: 1px solid #131d4740; }
.trm-proof dt { font-size: .96rem; }
.trm-proof dd { font: 900 clamp(1.85rem, 3.15vw, 2.95rem)/1 var(--display); letter-spacing: -.045em; }
.trm-proof dd span { font: .57em/1 var(--display); vertical-align: 18%; }

.trm-services {
  background: var(--paper);
  color: var(--ink);
}

.trm-services-grid,
.trm-team-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(2rem, 7.5vw, 7.4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.trm-services-grid p,
.trm-team-copy p {
  max-width: 30rem;
  margin-block: 1.15rem 1.3rem;
  font-size: 1.12rem;
  color: var(--muted-ink);
}

.trm-service-list li { border-block-start: 1px solid var(--hairline); }
.trm-service-list li:last-child { border-block-end: 1px solid var(--hairline); }

.trm-service-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .12rem 1rem;
  align-items: center;
  padding: .95rem .15rem;
  color: var(--ink);
}

.trm-service-list a::after {
  grid-area: 1 / 2 / span 2;
  width: .55rem;
  height: .55rem;
  margin-inline-end: .35rem;
  border: solid var(--gold-ink);
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
  content: "";
}

.trm-service-list strong { font-size: 1.23rem; line-height: 1.25; }
.trm-service-list span { color: var(--muted-ink); line-height: 1.35; }
.trm-service-list a:hover strong { text-decoration: underline; text-underline-offset: .2em; }

.trm-team { background: var(--deep); color: white; }

.trm-team-grid {
  grid-template-columns: 1.22fr .95fr;
  gap: clamp(2rem, 6.25vw, 6rem);
}

.trm-team figure {
  position: relative;
  margin: 0;
  border-bottom: .25rem solid var(--gold);
}

.trm-team img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
  object-position: center 39%;
}

.trm-team h2 { color: white; }
.trm-team-copy p { color: #dce1f0; }

.trm-team .trm-button {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--deep);
}

.trm-team .trm-button:hover { background: #efc86e; }

.trm-team .trm-text-link {
  display: inline-block;
  margin-inline-start: 1rem;
  margin-block-start: .65rem;
  color: white;
}

.trm-team :is(.trm-button, .trm-text-link):focus-visible { outline-color: var(--gold); }

.trm-home .reviews-section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: var(--ink);
}

.trm-home .reviews-section::before { display: none; }
.trm-home .reviews-header h2 { color: #fff; text-align: center; }
.trm-review-summary { margin-top: .8rem; color: #fff; text-align: center; }
.trm-review-summary > span:first-child { color: var(--gold-foil); letter-spacing: .1em; margin-inline-end: .35em; }
.trm-home .review-card { border-radius: .25rem; }

.trm-home .section--off-white { background: var(--cream); }
.trm-home .section--light-bg { background: var(--paper); }
.trm-home .cta-strip { background: var(--ink); }
.trm-home .cta-strip::before { display: none; }

@media (max-width: 760px) {
  .trm-intro-grid,
  .trm-services-grid,
  .trm-team-grid { grid-template-columns: minmax(0, 1fr); }
  .trm-intro-copy { padding: 2.65rem 1.5rem 2.4rem; }
  .trm-intro h1 { font-size: clamp(2.8rem, 11vw, 5.15rem); }
  .trm-intro-copy > p { margin-block: 1.15rem 1.2rem; }
  .trm-founder { aspect-ratio: 1.15; }
  .trm-founder img { object-position: center 37%; }
  .trm-founder figcaption { padding: .62rem 1.1rem .72rem; }
  .trm-proof dl { grid-template-columns: repeat(2, 1fr); padding-block: .65rem; }
  .trm-proof dl div { padding-block: .7rem; }
  .trm-proof dl div:nth-child(3) { border-inline-start: 0; }
  .trm-proof dl div:nth-child(n+3) { border-block-start: 1px solid #131d4740; }
  .trm-team-grid figure { order: 1; }
}

.trm-home .trm-actions { gap: .65rem; align-items: stretch; }
.trm-home :is(.trm-intro, .trm-team) .trm-button-secondary {
  background: transparent;
  color: white;
  border-color: #ffffff60;
}
.trm-home :is(.trm-intro, .trm-team) .trm-button-secondary:hover {
  background: #ffffff14;
  color: white;
}
.trm-team-actions { margin-top: 1.4rem; }
.trm-home .trm-review-summary > span:first-child { font-size: .9rem; }
.trm-home .review-card { padding: clamp(1.05rem, 2.3vw, 1.65rem); }
@media (max-width: 768px) {
  .trm-home .trm-intro-grid { grid-template-columns: minmax(0, 1fr); }
  .trm-home .trm-intro-copy { padding: 1.85rem var(--page-gutter) 1.6rem; }
  .trm-home .trm-intro h1 { font-size: clamp(2.55rem, 10.5vw, 4.75rem); }
  .trm-home .trm-intro-copy > p { margin-block: .95rem 1.15rem; line-height: 1.45; }
  .trm-home .trm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trm-home .trm-actions .trm-button { padding: .5rem .45rem; font-size: clamp(.83rem, 3.8vw, 1rem); }
  .trm-home .trm-founder { aspect-ratio: 1.58; }
  .trm-home .trm-founder img { object-position: center 40%; }
  .trm-home .trm-founder figcaption { padding: .45rem .65rem; }
  .trm-home .trm-founder figcaption span { font-size: .82rem; }
  .trm-home .trm-proof dl { padding-block: .15rem; }
  .trm-home .trm-proof dt { font-size: .88rem; }
  .trm-home :is(.trm-services-grid, .trm-team-grid) { gap: 1.5rem; padding-block: 2.65rem; }
  .trm-home main h2 { font-size: clamp(2rem, 8.1vw, 3.2rem); }
  .trm-home .trm-team img { aspect-ratio: 1.44; }
}

/* ── Refinement pass (Nov 2026) ─────────────────────────────── */
/* Condensed caps only for the hero; section headings in sentence case. */
.trm-home main h2 {
  font-weight: 800;
  text-transform: none;
  letter-spacing: -.025em;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.04;
}
.trm-home .section-header .section-sub { color: var(--muted-ink); }

.trm-section-head { max-width: 36rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.trm-section-head p { margin-top: .9rem; color: var(--muted-ink); font-size: 1.1rem; }

.trm-process { background: var(--cream); color: var(--ink); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.trm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); counter-reset: none; }
.trm-steps li { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.trm-step-n { display: block; font: 700 .85rem/1 var(--display); letter-spacing: .08em; color: var(--gold-ink); margin-bottom: .9rem; }
.trm-steps h3 { font: 700 1.3rem/1.2 var(--display); color: var(--ink); margin-bottom: .5rem; }
.trm-steps p { color: var(--muted-ink); line-height: 1.55; }

.trm-areas { background: var(--paper); color: var(--ink); border-top: 1px solid var(--hairline); }
.trm-areas p { max-width: 30rem; margin-block: 1.15rem 1.3rem; font-size: 1.12rem; color: var(--muted-ink); }
.trm-area-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.trm-area-list li { border-top: 1px solid var(--hairline); }
.trm-area-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--hairline); }
.trm-area-list a { display: flex; justify-content: space-between; align-items: center; padding: .95rem .15rem; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.trm-area-list a::after { content: ""; width: .5rem; height: .5rem; border: solid var(--gold-ink); border-width: 1px 1px 0 0; transform: rotate(45deg); margin-right: .35rem; }
.trm-area-list a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* Blog teaser: flatter cards */
.trm-home .blog-card { border-radius: .25rem; box-shadow: none; }
.trm-home .blog-feature-watermark { display: none; }

/* Golf keeps its photo; just calmer type */
.trm-home .golf-section h2 { font-size: clamp(2rem, 3.6vw, 3rem); }

/* FAQ: five questions on the homepage, the rest live on /faq */
.trm-home [data-render="homepage-faq"] .faq-item:nth-child(n+6) { display: none; }
.trm-home .faq-item { border-radius: .25rem; box-shadow: none; }

.trm-home .cta-strip h2 { font-size: clamp(2rem, 3.6vw, 3rem); }

@media (max-width: 760px) {
  .trm-steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .trm-area-list { grid-template-columns: 1fr 1fr; column-gap: 1.1rem; }
  .trm-area-list a { font-size: 1rem; }
  .trm-home main h2 { font-size: clamp(1.8rem, 7.4vw, 2.4rem); }
}
.trm-steps h3 { text-transform: none; }
.trm-home .blog-card--feature { min-height: 0; }
/* Hero uses the original desk portrait (landscape) — keep Sean framed */
.trm-founder img { object-position: 66% 30%; }
@media (max-width: 768px) { .trm-home .trm-founder img { object-position: 64% 28%; } }

/* Guides: three equal cards in a row, no stretched empty feature card */
.trm-home .blog-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.trm-home .blog-card-stack { display: contents; }
.trm-home .blog-card--feature { min-height: 0; padding: 1.75rem; justify-content: flex-start; }
.trm-home .blog-card--feature .blog-card-title { font-size: 1.35rem; }
.trm-home .blog-card { display: flex; flex-direction: column; }
.trm-home .blog-card .blog-card-link { margin-top: auto; padding-top: 1rem; }
.trm-home .blog-feature-rule { display: none; }
@media (max-width: 900px) { .trm-home .blog-featured-grid { grid-template-columns: 1fr; } }

/* ── Mobile cleanup (Nov 2026) ──────────────────────────────── */
@media (max-width: 768px) {
  .trm-home .header-inner { height: 60px; }
  .trm-home .header-logo img { height: 36px; width: auto; }
  .trm-home .site-header .header-phone { display: none; }
  .trm-home .trm-intro-copy { padding: 1.6rem var(--page-gutter) 1.5rem; }
  .trm-home .trm-intro h1 { font-size: clamp(2.4rem, 11.2vw, 3.6rem); line-height: .9; }
  .trm-home .trm-intro-copy > p { font-size: 1rem; line-height: 1.45; margin-block: .85rem 1.1rem; max-width: 22rem; }
  .trm-home .trm-actions { gap: .55rem; }
  .trm-home .trm-actions .trm-button,
  .trm-home .sticky-cta-bar > a { min-height: 2.85rem; font-size: .95rem; }
  .trm-home .trm-founder { aspect-ratio: 1.75; }
  .trm-home .trm-founder img { object-position: 68% 24%; }
  .trm-home .trm-founder figcaption { padding: .4rem .7rem .45rem; gap: 0; }
  .trm-home .trm-founder figcaption strong { font-size: .95rem; }
  .trm-home .trm-founder figcaption span { font-size: .75rem; }
  .trm-home .trm-proof dd { font-size: 1.9rem; }
  .trm-home .trm-proof dl div { padding-block: .55rem; }
  .trm-home .trm-services-grid p { font-size: 1rem; line-height: 1.5; }
  .trm-home .sticky-cta-bar { padding-block: .45rem calc(.45rem + env(safe-area-inset-bottom, 0px)); transition: transform .22s ease; }
  .trm-home .sticky-cta-bar.is-tucked { transform: translateY(110%); }
}
@media (max-width: 768px) {
  /* 3 reviews on phones; "See all" covers the rest */
  .trm-home .reviews-grid .review-card:nth-child(n+4) { display: none; }
  /* One alignment down the page */
  .trm-home :is(.section-header, .reviews-section .section-header, .cta-strip .container) { text-align: left; }
  .trm-home .section-header .section-sub { margin-inline: 0; }
  .trm-home .trm-review-summary { justify-content: flex-start; }
  .trm-home .blog-card { padding: 1.25rem; }
  .trm-home .blog-card .blog-card-link { padding-top: .6rem; }
  .trm-home .cta-strip { padding-block: 2.5rem; }
}
@media (max-width: 768px) {
  .trm-home .blog-card .blog-card-title { margin-bottom: .45rem; }
  .trm-home .blog-card .blog-card-excerpt { margin: 0; flex: 0 0 auto; }
  .trm-home .blog-card .blog-card-link { margin-top: .75rem; padding-top: 0; }
}
