:root {
  --trm-green: #1E3A2F;
  --trm-green-deep: #16281F;
  --trm-brass: #C69B5A;
  --trm-brass-soft: #d8b985;
  --trm-ivory: #F4F0E8;
  --trm-ivory-panel: #ECE6DA;
  --trm-charcoal: #23261F;
  --trm-charcoal-soft: #4a4d43;
  --trm-line: rgba(30, 58, 47, 0.16);
  --trm-shell: 1160px;
  --trm-gutter: clamp(20px, 5vw, 56px);
  --trm-serif: "Spectral", Georgia, "Times New Roman", serif;
  --trm-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.trm-body {
  margin: 0;
  background: var(--trm-ivory);
  color: var(--trm-charcoal);
  font-family: var(--trm-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

.trm-shell {
  width: 100%;
  max-width: var(--trm-shell);
  margin-inline: auto;
  padding-inline: var(--trm-gutter);
}

.trm-skiplink {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--trm-green);
  color: var(--trm-ivory);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.trm-skiplink:focus {
  left: 0;
}

/* ---------- Masthead ---------- */
.trm-masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trm-line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.trm-masthead[data-trm-scrolled="true"] {
  box-shadow: 0 10px 30px -22px rgba(22, 40, 31, 0.55);
}

.trm-masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.trm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--trm-green);
}
.trm-brand__emblem {
  width: 46px;
  height: 29px;
  color: var(--trm-brass);
  flex: none;
}
.trm-brand__word {
  font-family: var(--trm-serif);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  color: var(--trm-green);
}
.trm-brand__word--accent {
  color: var(--trm-brass);
  margin-left: 0.28em;
  font-style: italic;
  font-weight: 500;
}

.trm-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--trm-line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.trm-burger__bar {
  height: 2px;
  width: 100%;
  background: var(--trm-green);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.trm-burger[aria-expanded="true"] .trm-burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.trm-burger[aria-expanded="true"] .trm-burger__bar:nth-child(2) {
  opacity: 0;
}
.trm-burger[aria-expanded="true"] .trm-burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.trm-nav {
  position: fixed;
  inset: 74px 0 auto 0;
  background: var(--trm-green);
  color: var(--trm-ivory);
  transform: translateY(-140%);
  transition: transform 0.38s cubic-bezier(0.22, 0.7, 0.2, 1);
  border-bottom: 3px solid var(--trm-brass);
  max-height: calc(100vh - 74px);
  overflow-y: auto;
}
.trm-nav[data-trm-open="true"] {
  transform: translateY(0);
}
.trm-nav__list {
  list-style: none;
  margin: 0;
  padding: 14px var(--trm-gutter) 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trm-nav__link {
  display: block;
  padding: 14px 4px;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--trm-ivory);
  border-bottom: 1px solid rgba(244, 240, 232, 0.14);
}
.trm-nav__link--cta {
  color: var(--trm-brass-soft);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.trm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--trm-sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.trm-btn--solid {
  background: var(--trm-green);
  color: var(--trm-ivory);
}
.trm-btn--solid:hover {
  background: var(--trm-green-deep);
  transform: translateY(-2px);
}
.trm-btn--ghost {
  background: transparent;
  color: var(--trm-green);
  border-color: var(--trm-brass);
}
.trm-btn--ghost:hover {
  background: rgba(198, 155, 90, 0.14);
  transform: translateY(-2px);
}

/* ---------- Shared type / rules ---------- */
.trm-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--trm-brass);
  font-weight: 600;
  margin: 0 0 22px;
}
.trm-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--trm-brass);
  font-weight: 600;
  margin: 0 0 16px;
}
.trm-section__title {
  font-family: var(--trm-serif);
  font-weight: 600;
  color: var(--trm-green);
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.trm-section__text {
  color: var(--trm-charcoal-soft);
  margin: 0 0 16px;
  max-width: 46ch;
}
.trm-section__text--wide {
  max-width: 62ch;
}

.trm-rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--trm-brass) 12%, var(--trm-brass) 88%, transparent);
  opacity: 0.55;
  margin: 0;
  width: 100%;
  max-width: var(--trm-shell);
  margin-inline: auto;
}
.trm-rule--footer {
  background: linear-gradient(90deg, transparent, rgba(198,155,90,0.6), transparent);
  margin: 34px 0 18px;
}

/* ---------- Hero ---------- */
.trm-hero {
  padding: clamp(52px, 9vw, 108px) 0 clamp(40px, 7vw, 72px);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(198, 155, 90, 0.10), transparent 55%),
    var(--trm-ivory);
}
.trm-hero__inner {
  max-width: 960px;
}
.trm-hero__title {
  font-family: var(--trm-serif);
  font-weight: 600;
  color: var(--trm-green);
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 26px;
}
.trm-hero__lede {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--trm-charcoal-soft);
  max-width: 58ch;
  margin: 0 0 34px;
}
.trm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.trm-roofline {
  display: block;
  width: 100%;
  height: clamp(38px, 7vw, 60px);
  margin-top: clamp(40px, 7vw, 70px);
  color: var(--trm-brass);
  opacity: 0.7;
}

/* ---------- Slim hero (privacy) ---------- */
.trm-hero--slim {
  padding: clamp(46px, 7vw, 84px) 0 clamp(30px, 5vw, 54px);
}
.trm-hero--slim .trm-hero__title {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
}

/* ---------- Legal / privacy body ---------- */
.trm-legal__inner {
  max-width: 760px;
}
.trm-legal__block {
  padding: 26px 0;
  border-top: 1px solid var(--trm-line);
}
.trm-legal__block:first-child {
  border-top: 0;
  padding-top: 4px;
}
.trm-legal__heading {
  font-family: var(--trm-serif);
  font-weight: 600;
  color: var(--trm-green);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin: 0 0 12px;
}
.trm-legal__block p {
  margin: 0 0 14px;
  color: var(--trm-charcoal-soft);
  max-width: 68ch;
}
.trm-legal__block p:last-child {
  margin-bottom: 0;
}
.trm-inline-link {
  color: var(--trm-green);
  text-decoration: none;
  border-bottom: 1px solid var(--trm-brass);
  font-weight: 500;
}
.trm-inline-link:hover {
  color: var(--trm-brass);
}

/* ---------- Sections base ---------- */
.trm-section {
  padding: clamp(52px, 8vw, 92px) 0;
}
.trm-split {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
  grid-template-columns: 1fr;
  align-items: start;
}

/* ---------- Approach steps ---------- */
.trm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.trm-step {
  position: relative;
  padding: 26px 4px 26px 58px;
  border-top: 1px solid var(--trm-line);
}
.trm-step:last-child {
  border-bottom: 1px solid var(--trm-line);
}
.trm-step__index {
  position: absolute;
  left: 0;
  top: 26px;
  font-family: var(--trm-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--trm-brass);
  width: 40px;
}
.trm-step__title {
  font-family: var(--trm-serif);
  font-weight: 600;
  color: var(--trm-green);
  font-size: 1.3rem;
  margin: 0 0 8px;
}
.trm-step__text {
  margin: 0;
  color: var(--trm-charcoal-soft);
  max-width: 52ch;
}

/* ---------- Sectors ---------- */
.trm-sectors {
  background: var(--trm-green);
  color: var(--trm-ivory);
}
.trm-sectors .trm-section__title {
  color: var(--trm-ivory);
}
.trm-sectors .trm-section__text {
  color: rgba(244, 240, 232, 0.78);
}
.trm-sectors__head {
  max-width: 640px;
  margin-bottom: clamp(34px, 5vw, 54px);
}
.trm-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.trm-card {
  padding: 30px 26px 32px;
  background: rgba(244, 240, 232, 0.05);
  border: 1px solid rgba(198, 155, 90, 0.32);
  border-radius: 3px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.trm-card:hover {
  transform: translateY(-4px);
  border-color: var(--trm-brass);
  background: rgba(244, 240, 232, 0.09);
}
.trm-card__mark {
  width: 48px;
  height: 40px;
  color: var(--trm-brass);
  margin-bottom: 18px;
}
.trm-card__title {
  font-family: var(--trm-serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--trm-ivory);
  margin: 0 0 10px;
}
.trm-card__text {
  margin: 0;
  color: rgba(244, 240, 232, 0.76);
  font-size: 0.98rem;
}

/* ---------- About / details ---------- */
.trm-details {
  background: var(--trm-ivory-panel);
  border: 1px solid var(--trm-line);
  border-left: 3px solid var(--trm-brass);
  border-radius: 3px;
  padding: 30px 30px 12px;
}
.trm-details__title {
  font-family: var(--trm-serif);
  font-weight: 600;
  color: var(--trm-green);
  font-size: 1.2rem;
  margin: 0 0 12px;
}
.trm-details__list {
  margin: 0;
}
.trm-details__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--trm-line);
}
.trm-details__row dt {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--trm-brass);
  font-weight: 600;
}
.trm-details__row dd {
  margin: 0;
  color: var(--trm-charcoal);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.trm-contact {
  background:
    radial-gradient(90% 70% at 92% 0%, rgba(198, 155, 90, 0.12), transparent 60%),
    var(--trm-ivory);
}
.trm-contact__inner {
  max-width: 860px;
}
.trm-contact__grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  margin: 30px 0 34px;
}
.trm-contact__block {
  padding: 26px;
  background: var(--trm-ivory-panel);
  border: 1px solid var(--trm-line);
  border-radius: 3px;
}
.trm-contact__label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--trm-brass);
  font-weight: 600;
  margin: 0 0 12px;
}
.trm-contact__email {
  font-family: var(--trm-serif);
  font-size: 1.35rem;
  color: var(--trm-green);
  text-decoration: none;
  border-bottom: 1px solid var(--trm-brass);
  padding-bottom: 2px;
  word-break: break-word;
}
.trm-contact__email:hover {
  color: var(--trm-brass);
}
.trm-contact__address {
  font-style: normal;
  font-family: var(--trm-serif);
  font-size: 1.2rem;
  color: var(--trm-green);
  line-height: 1.5;
}
.trm-contact__note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--trm-charcoal-soft);
}

/* ---------- Footer ---------- */
.trm-footer {
  background: var(--trm-green-deep);
  color: rgba(244, 240, 232, 0.82);
  padding: clamp(44px, 6vw, 66px) 0 34px;
}
.trm-footer__roof {
  display: block;
  width: 100%;
  height: 30px;
  color: var(--trm-brass);
  opacity: 0.6;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.trm-footer__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
}
.trm-footer__name {
  display: block;
  font-family: var(--trm-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--trm-ivory);
  letter-spacing: 0.02em;
}
.trm-footer__trade {
  display: block;
  font-style: italic;
  color: var(--trm-brass-soft);
  margin-top: 2px;
}
.trm-footer__blurb {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 0.95rem;
}
.trm-footer__heading {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--trm-brass);
  font-weight: 600;
  margin: 0 0 14px;
}
.trm-footer__address {
  font-style: normal;
  line-height: 1.7;
}
.trm-footer__line {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.trm-footer__link {
  color: var(--trm-brass-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.trm-footer__link:hover {
  border-bottom-color: var(--trm-brass-soft);
}
.trm-footer__legal {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(244, 240, 232, 0.6);
  letter-spacing: 0.02em;
}

/* ---------- Reveal animation (safe: starts at 0.35, never hidden) ---------- */
.trm-reveal {
  animation: trm-rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.trm-step.trm-reveal:nth-child(2) { animation-delay: 0.06s; }
.trm-step.trm-reveal:nth-child(3) { animation-delay: 0.12s; }
.trm-step.trm-reveal:nth-child(4) { animation-delay: 0.18s; }
.trm-card.trm-reveal:nth-child(2) { animation-delay: 0.08s; }
.trm-card.trm-reveal:nth-child(3) { animation-delay: 0.16s; }

@keyframes trm-rise {
  from { opacity: 0.35; transform: translateY(20px); }
  to   { opacity: 1;    transform: translateY(0); }
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--trm-brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .trm-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .trm-details__row {
    grid-template-columns: 190px 1fr;
    gap: 18px;
    align-items: baseline;
  }
  .trm-contact__grid {
    grid-template-columns: 1fr 1fr;
  }
  .trm-footer__grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .trm-burger {
    display: none;
  }
  .trm-nav {
    position: static;
    transform: none;
    background: transparent;
    color: inherit;
    border: 0;
    max-height: none;
    overflow: visible;
  }
  .trm-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 30px;
    padding: 0;
  }
  .trm-nav__link {
    padding: 6px 0;
    color: var(--trm-green);
    border-bottom: 2px solid transparent;
    font-size: 0.96rem;
  }
  .trm-nav__link:hover {
    border-bottom-color: var(--trm-brass);
  }
  .trm-nav__link--cta {
    color: var(--trm-ivory);
    background: var(--trm-green);
    padding: 10px 20px;
    border-radius: 2px;
    border-bottom: 0;
  }
  .trm-nav__link--cta:hover {
    background: var(--trm-green-deep);
    border-bottom: 0;
  }
  .trm-split {
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(48px, 6vw, 88px);
  }
  .trm-split__aside {
    position: sticky;
    top: 108px;
  }
  .trm-split--reverse .trm-split__aside {
    order: 2;
  }
  .trm-split--reverse .trm-split__main {
    order: 1;
  }
  .trm-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .trm-reveal {
    animation: none;
  }
  .trm-btn:hover,
  .trm-card:hover {
    transform: none;
  }
  .trm-nav {
    transition: none;
  }
}
