/* Sitewide refinement layer — loaded after style.css and site-polish.css.
   Goal: fewer template tells. Sentence-case headings, no scroll fade-ins,
   no decorative eyebrow dashes, flatter cards. */

/* No fade-in-on-scroll anywhere */
.reveal, .reveal.visible, .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Eyebrow labels: quieter, no dash */
.trm-site .section-label::before { display: none; }
.trm-site .section-label { letter-spacing: .08em; font-size: .78rem; }

/* Section headings: sentence-case Barlow instead of condensed caps */
.trm-site main .section-headline,
.trm-site main section > .container > h2,
.trm-site main .section-header h2 {
  font-family: Barlow, Arial, sans-serif;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -.02em;
  line-height: 1.06;
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
}

/* Inner-page heroes: strong but not shouting */
.trm-site :is(.page-hero, .blog-post-hero) h1 {
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}
.trm-page-with-photo > .container h1 { font-size: clamp(2.3rem, 4.4vw, 4.4rem); }

/* Cards: flat, consistent radius */
.trm-site :is(.card, .service-card, .blog-card, .review-card, .area-card, .faq-item, .step-card, .team-card, .calc-card) {
  border-radius: .25rem;
  box-shadow: none;
}
.trm-site :is(.card, .service-card, .blog-card, .area-card, .step-card):hover { box-shadow: none; transform: none; }

/* Gradient-heavy dark sections become flat navy */
.trm-site :is(.section--dark, .cta-strip, .reviews-section) { background-image: none; }

/* All content headings in normal case (hero h1 keeps its caps) */
.trm-site main :is(h2, h3, h4):not(.golf-section *) {
  text-transform: none;
  font-family: Barlow, Arial, sans-serif;
}
.trm-site main :is(h2, h3, h4) { letter-spacing: -.015em; }
.trm-site main .service-block-content h2 {
  font-weight: 800;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.trm-site .blog-post-content h2 { font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.15; }
.trm-site .blog-post-content h3 { font-weight: 700; }
.trm-site main :is(.blog-card-title, .blog-card-title a) { text-transform: none; font-family: Barlow, Arial, sans-serif; letter-spacing: -.01em; }

/* Service side panels: no icon tile — a navy "good to know" callout */
.trm-site .service-block-icon { display: none !important; }
.trm-site .service-block-visual {
  background: var(--navy) !important;
  color: #fff;
  text-align: left !important;
  align-items: flex-start !important;
  justify-content: center;
  padding: clamp(1.75rem, 3vw, 2.5rem) !important;
  border: 0 !important;
  border-top: 3px solid var(--gold) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
.trm-site .service-block-visual::before {
  content: "Good to know";
  display: block;
  margin-bottom: .75rem;
  color: var(--gold);
  font: 700 .78rem/1 Barlow, Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.trm-site .service-block-visual h3 { color: #fff !important; font-size: clamp(1.3rem, 2vw, 1.6rem) !important; line-height: 1.2; margin-bottom: .6rem !important; }
.trm-site .service-block-visual p { color: #dfe3f0 !important; font-size: 1.02rem !important; line-height: 1.6; }

/* ── One button shape everywhere: 4px corners ── */
.trm-site :is(
  .btn, .trm-button, .trm-page-action, .contact-submit-btn,
  .nav-apply a, .nav-cta a, .header-phone, .team-contact-link,
  .area-start-btn, .blog-filter-btn, .map-legend-item, .donate-tile,
  .mm-dl a, .mm-lang, .sticky-cta-bar a, .lbx-btn, .lbx-btn-back, .lbx-tile,
  .calc-tab, .trm-cookie button, button[type="submit"], input[type="submit"]
) { border-radius: 4px !important; }
/* Small labels/chips match (no pills) */
.trm-site :is(.blog-card-tag, .credential-badge, .section-badge, .hero-badge, .post-tag, .blog-post-tag, .area-tag, .golf-badge, .blog-cover-tag, .golf-hero-badge, .golf-soldout-badge) { border-radius: 3px !important; }

/* Reviews: newest first across rows; each card only as tall as its text (no empty boxes) */
.trm-site .reviews-grid { align-items: start; }
.trm-site .reviews-grid .review-card { height: auto !important; }
.trm-site .reviews-grid .review-card > :last-child { margin-top: 1rem; }

/* Blog listing cards: full-bleed cover, single layer of padding */
.trm-site .blog-grid .blog-card { padding: 0; gap: 0; overflow: hidden; }
.trm-site .blog-grid .blog-body { padding: 1.25rem 1.35rem 1.4rem; }
.trm-site .blog-grid .blog-card p { margin-bottom: 1rem; }

/* Tighter vertical rhythm */
.trm-site main .section { padding-block: clamp(2.75rem, 6vw, 4.25rem); }
.trm-site .section-header { margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }
@media (max-width: 760px) {
  .trm-site main .section { padding-block: 2.5rem; }
}

/* Area pages: four service cards in one row instead of 3 + orphan */
@media (min-width: 1000px) {
  .trm-site .services-grid:has(> .service-card:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none !important; width: 100%; }
}
.trm-site .service-card { text-align: left; }
.trm-site .container:has(> .services-grid > .service-card:nth-child(4):last-child) { max-width: 1180px !important; }

/* Services page notes: navy "good to know" panel, optionally with a photo on top */
.trm-site .service-note {
  align-self: center;
  min-width: 0;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  border-top: 3px solid var(--gold);
  border-radius: 4px;
}
.trm-site .service-note--photo { border-top: 0; }
.trm-site .service-note--photo img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 460; object-fit: cover; }
.trm-site .service-note--photo .service-note-copy { border-top: 3px solid var(--gold); }
.trm-site .service-note > h3, .trm-site .service-note-copy { padding: 0 clamp(1.4rem, 2.6vw, 2rem); }
.trm-site .service-note > h3:first-child, .trm-site .service-note-copy { padding-top: clamp(1.4rem, 2.6vw, 1.9rem); }
.trm-site .service-note > p:last-child, .trm-site .service-note-copy { padding-bottom: clamp(1.4rem, 2.6vw, 1.9rem); }
.trm-site .service-note > p { padding: 0 clamp(1.4rem, 2.6vw, 2rem); }
.trm-site .service-note > h3:first-child::before, .trm-site .service-note-copy::before {
  content: "Good to know"; display: block; margin-bottom: .7rem; color: var(--gold);
  font: 700 .78rem/1 Barlow, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
.trm-site .service-note h3 { margin: 0 0 .55rem; color: #fff; font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.2; text-transform: none; }
.trm-site .service-note p { margin: 0; color: #dfe3f0; font-size: 1.02rem; line-height: 1.6; }
@media (min-width: 860px) {
  .trm-site .service-block-inner:has(.service-note) { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
  .trm-site .service-block:nth-child(even) .service-block-inner:has(.service-note) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}
.trm-site .service-block:nth-child(even) .service-note { order: -1; }
@media (max-width: 859px) {
  .trm-site .service-block:nth-child(even) .service-note { order: 0; }
  .trm-site .service-note--photo img { aspect-ratio: 16 / 9; }
}

/* ── Quote popup: match the site (flat, 4px corners, sentence-case headings) ── */
.lbx-overlay { background: rgba(11, 17, 48, .72); backdrop-filter: blur(3px); }
.lbx-panel {
  border-radius: 4px !important;
  border-top: 4px solid var(--gold, #dfb44c);
  box-shadow: 0 24px 60px rgba(11, 17, 48, .35);
  padding: 2.25rem 2.25rem 1.5rem !important;
}
.lbx-close { border-radius: 4px !important; color: #4d5468; }
.lbx-progress { justify-content: flex-start !important; gap: 6px !important; margin-bottom: 1.5rem !important; }
.lbx-dot { width: 28px !important; height: 3px !important; border-radius: 0 !important; background: #dce0eb !important; }
.lbx-dot.active { background: #dfb44c !important; width: 28px !important; }
.lbx-dot.done { background: #131d47 !important; }
.lbx-step-tag {
  color: #805908 !important; font: 700 .78rem/1 Barlow, Arial, sans-serif !important;
  letter-spacing: .08em !important; text-transform: uppercase; margin-bottom: .6rem !important;
}
.lbx-question {
  font-family: Barlow, Arial, sans-serif !important; font-weight: 800 !important;
  text-transform: none !important; letter-spacing: -.02em !important;
  font-size: clamp(1.45rem, 3vw, 1.8rem) !important; line-height: 1.15 !important; color: #131d47 !important;
  margin-bottom: 1.25rem !important;
}
.lbx-input {
  border-radius: 4px !important; border: 1px solid #c9cfdf !important; background: #fff !important;
  font: 400 1rem/1.4 Barlow, Arial, sans-serif !important; color: #131d47;
}
.lbx-input:focus { border-color: #131d47 !important; box-shadow: 0 0 0 3px rgba(223, 180, 76, .35) !important; outline: none; }
.lbx-btn {
  background: #dfb44c !important; background-image: none !important; color: #0b1130 !important;
  border-radius: 4px !important; box-shadow: none !important;
  font: 700 1.02rem/1.2 Barlow, Arial, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important;
  min-height: 3.25rem; margin-top: 1rem;
}
.lbx-btn:hover { background: #edc468 !important; transform: none !important; box-shadow: none !important; }
.lbx-btn-back { color: #4d5468 !important; font-weight: 600 !important; }
.lbx-hint { color: #6b7185 !important; }
.lbx-tiles { gap: .5rem !important; }
.lbx-tile {
  border-radius: 4px !important; border: 1px solid #c9cfdf !important; background: #fff !important;
  min-height: 3.25rem !important; padding: .75rem .9rem !important;
  justify-content: center !important; align-items: center !important; text-align: center !important;
  box-shadow: none !important; transform: none !important;
}
.lbx-tile-icon:empty { display: none; }
.lbx-tile-text { font: 700 .95rem/1.2 Barlow, Arial, sans-serif !important; color: #131d47; }
.lbx-tile:hover { border-color: #131d47 !important; }
.lbx-tile.selected { border-color: #131d47 !important; background: #131d47 !important; }
.lbx-tile.selected .lbx-tile-text { color: #fff; }
.lbx-success-ring { border-radius: 4px !important; background: #131d47 !important; color: #dfb44c !important; box-shadow: none !important; }
.lbx-success h3 { font-family: Barlow, Arial, sans-serif !important; font-weight: 800 !important; text-transform: none !important; letter-spacing: -.02em; }
.lbx-brand { border-top: 1px solid #e6e9f2; }
.lbx-brand span { letter-spacing: .06em; color: #8a90a3 !important; }
@media (max-width: 600px) {
  .lbx-panel { border-radius: 4px 4px 0 0 !important; padding: 1.75rem 1.25rem 1.25rem !important; }
}

/* ── Areas page: neighbourhood index + two-column editorial grid (no map) ── */
.trm-area-index { background: #fff; border-bottom: 1px solid var(--rule); padding-block: clamp(1.75rem, 3.5vw, 2.5rem); }
.trm-area-index-label { color: #805908; font: 700 .78rem/1 Barlow, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.trm-area-index ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; }
.trm-area-index li { border-top: 1px solid var(--rule); }
.trm-area-index a { display: flex; justify-content: space-between; align-items: center; padding: .8rem .1rem; color: var(--navy); font-weight: 700; }
.trm-area-index a::after { content: ""; width: .45rem; height: .45rem; border: solid #805908; border-width: 0 1px 1px 0; transform: rotate(45deg); margin: -.2rem .3rem 0 0; }
.trm-area-index a:hover { text-decoration: underline; text-underline-offset: .2em; }

.trm-site .areas-page-layout { display: block; }
.trm-site .areas-cards-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem); }
.trm-site .areas-cards-list .area-card {
  background: none; border: 0; border-top: 2px solid var(--navy); border-radius: 0; box-shadow: none;
  padding: 1.25rem 0 0; scroll-margin-top: 6rem; display: flex; flex-direction: column;
}
.trm-site .areas-cards-list .area-card:hover { transform: none; box-shadow: none; }
.trm-site .areas-cards-list .area-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem) !important; font-weight: 800; margin-bottom: .75rem; }
.trm-site .areas-cards-list .area-card p { font-size: 1rem; line-height: 1.65; margin-bottom: 1rem; }
.trm-site .areas-cards-list .area-cta-row { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.trm-site .area-start-btn {
  background: var(--gold); color: var(--navy-dark); border: 0; min-height: 2.9rem; padding: .6rem 1.2rem;
  font: 700 .98rem/1.2 Barlow, Arial, sans-serif; cursor: pointer; box-shadow: none;
}
.trm-site .area-start-btn:hover { background: #edc468; transform: none; }
.trm-site .area-link { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: #af852d; text-underline-offset: .3em; }
@media (max-width: 860px) {
  .trm-area-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.1rem; }
  .trm-site .areas-cards-list { grid-template-columns: 1fr; }
}

/* Stats strip: more breathing room between characters */
.trm-home .trm-proof dd { letter-spacing: .025em !important; font-weight: 900 !important; }
.trm-home .trm-proof dd span { letter-spacing: 0; }

/* Page-hero photos: keep faces in frame */
.trm-page-photo img[src*="/team/"] { object-position: 50% 26%; }
.trm-page-photo img[src*="team-group-steps"] { object-position: 50% 45%; }
.trm-page-photo img[src*="sean-eric-laughing"], .trm-page-photo img[src*="sean-archway"], .trm-page-photo img[src*="katherine-street"] { object-position: 50% 40%; }

/* Mobile footer: two-column link lists, less scrolling */
@media (max-width: 768px) {
  .trm-site .site-footer { padding-top: 2.25rem; }
  .trm-site .footer-grid { gap: 1.75rem; }
  .trm-site .footer-col > ul:not(.footer-col-sublist) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .trm-site .footer-col-sublist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .trm-site .footer-col li { margin-bottom: .1rem; }
  .trm-site .footer-col a { display: inline-block; padding-block: .3rem; }
}
.trm-site .site-footer .btn--sm { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
