/* TopRankin public pages share the typography and palette from the homepage. */
.trm-site {
  --gold: #dfb44c;
  --navy: #131d47;
  --navy-dark: #0b1130;
  --purple: #361c5b;
  --plain: #f2f3f8;
  --rule: #dce0eb;
}

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

.trm-site :is(.page-hero, .blog-post-hero) {
  overflow: hidden;
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: var(--navy);
  color: white;
  text-align: left;
}

.trm-site :is(.page-hero, .blog-post-hero)::before { background: none; }
.trm-site :is(.page-hero, .blog-post-hero) :is(.container, .blog-post-hero-content) { position: relative; }
.trm-site :is(.page-hero, .blog-post-hero) .breadcrumb { justify-content: flex-start; }
.trm-site :is(.page-hero, .blog-post-hero) h1 {
  max-width: 20ch;
  color: white;
  font: 900 clamp(2.6rem, 6.3vw, 5.8rem)/.94 Barlow, Arial, sans-serif;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
}
.trm-site .blog-post-hero h1 { max-width: 24ch; }
.trm-site :is(.page-hero, .blog-post-hero) p { max-width: 56ch; margin-inline: 0; color: #e3e7f1; }

.trm-site .trm-page-with-photo {
  display: grid;
  grid-template-columns: 54% 46%;
  padding-block: 0;
}
.trm-page-with-photo > .container {
  align-self: center;
  padding: clamp(3.25rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5rem) clamp(3.25rem, 7vw, 7rem) max(1.5rem, calc((100vw - 1132px) / 2));
}
.trm-page-with-photo > .container h1 { font-size: clamp(2.65rem, 5.1vw, 5.3rem); }
.trm-page-photo { position: relative; min-width: 0; margin: 0; background: var(--navy-dark); }
.trm-page-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 39%; }
.trm-page-photo img[src*="team-group"] { object-position: 50% 46%; }

.trm-page-action {
  display: inline-flex;
  align-items: center;
  min-height: 3.15rem;
  padding: .72rem 1.4rem;
  margin-top: 1.35rem;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: .2rem;
  font-weight: 700;
}
.trm-page-action:hover { background: #f0cb77; }
.trm-page-action:focus-visible, .trm-cookie button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.trm-site .section:not(.section--dark) .section-headline {
  font-family: Barlow, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -.035em;
}
.trm-site :is(.section--off-white, .section--light-bg) { background: var(--plain); }
.trm-site .site-footer,
.trm-site .cta-strip { background: var(--navy-dark); }
.trm-site .cta-strip::before { background: none; }
.trm-site :is(input, textarea, select, form, .trm-page-action) { scroll-margin-top: 6rem; }

.trm-site .contact-form-wrap,
.trm-site .contact-info-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: .25rem;
  box-shadow: none;
}

.trm-form-status {
  color: #9a231d;
  font-weight: 700;
  margin-top: .8rem;
}
.trm-form-status:empty { display: none; }

.trm-message {
  min-height: 62vh;
  padding-block: clamp(4.25rem, 9vw, 8rem);
  background: var(--navy);
  color: white;
}

.trm-message h1 {
  color: white;
  font: 900 clamp(3rem, 8vw, 7rem)/.88 Barlow, Arial, sans-serif;
  letter-spacing: -.05em;
  margin-bottom: 1.2rem;
}
.trm-message p { max-width: 42ch; color: #e4e8f4; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.trm-message-nav { display: flex; align-items: center; gap: .7rem 1.4rem; flex-wrap: wrap; margin-top: 1.6rem; }
.trm-message-nav .trm-page-action { margin-top: 0; }
.trm-message-link { color: white; text-decoration: underline; text-underline-offset: .27em; }

.trm-cookie[hidden] { display: none; }
.trm-cookie {
  position: fixed;
  z-index: 1200;
  bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
  left: .75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem 1rem;
  width: min(38rem, calc(100% - 1.5rem));
  padding: .65rem .75rem .65rem 1rem;
  color: #131d47;
  background: white;
  border: 1px solid #dce0eb;
  border-radius: .25rem;
  box-shadow: 0 4px 18px #0b11301f;
  font: .94rem/1.3 Barlow, Arial, sans-serif;
}
.trm-cookie strong { font-size: 1rem; }
.trm-cookie p { margin-block-start: .15rem; }
.trm-cookie a, .trm-cookie-settings { text-decoration: underline; text-underline-offset: .2em; }
.trm-cookie-settings { color: inherit; font: inherit; }
.trm-cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.trm-cookie button {
  min-height: 2.75rem;
  padding: .35rem .55rem;
  border: 1px solid #dce0eb;
  border-radius: .2rem;
  color: #131d47;
  background: #f2f3f8;
  font: inherit;
  font-weight: 700;
}
.trm-cookie button:hover { border-color: #131d47; }

.trm-site .lbx-tile-icon:empty { display: none; }
.trm-site .lbx-tile { min-height: 3.35rem; }
.trm-site :is(.service-block, .area-card) { border-color: var(--rule); }
.trm-site .service-block-icon {
  background: none;
  color: var(--navy);
  border: 1px solid var(--rule);
  border-radius: .25rem;
  box-shadow: none;
}
.trm-site .team-card { border-radius: .25rem; box-shadow: none; }
.trm-site .team-photo-wrap { border-radius: 0; }

/* Shared canvas, controls and section spacing */
.trm-site {
  --page-gutter: clamp(1.125rem, 3.25vw, 2.125rem);
  --control: 3.125rem;
  --mobile-bar-height: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}
.trm-site :is(main, .site-footer, .site-header) .container { padding-inline: var(--page-gutter); }
.trm-site :is(.btn, .trm-button, .trm-page-action, .contact-submit-btn) {
  min-height: var(--control);
  text-align: center;
  justify-content: center;
  border-radius: .2rem;
  line-height: 1.2;
}
.trm-site :is(.btn, .contact-submit-btn) {
  box-shadow: none;
  font: 700 1rem/1.2 Barlow, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.trm-site :is(.btn--primary, .btn--gold, .contact-submit-btn) {
  background: var(--gold);
  color: var(--navy-dark);
}
.trm-site :is(.btn--primary, .btn--gold, .contact-submit-btn):hover {
  background: #edc468;
  color: var(--navy-dark);
  box-shadow: none;
}
.trm-site :is(.cta-strip-btns, .hero-ctas, .golf-hero-ctas) { gap: .65rem; }
.trm-site .cta-strip-btns { justify-content: center; }
.trm-site .section-label { font-size: .8125rem; color: #805908; }
.trm-site :is(.section--dark, .golf-section, .home-map-section, .reviews-section) .section-label { color: var(--gold); }
.trm-site :is(.page-hero, .blog-post-hero) .breadcrumb { color: #e0e5f4; }
.trm-site :is(.page-hero, .blog-post-hero) .breadcrumb :is(a, span) { color: inherit; }
.trm-site :is(.page-hero, .blog-post-hero) h1 { text-wrap: balance; }
.trm-site .trm-page-with-photo { grid-template-columns: minmax(0, 54%) minmax(0, 46%); }
.trm-site main .trm-page-with-photo > .container {
  padding-inline: max(var(--page-gutter), calc((100vw - 1132px) / 2)) var(--page-gutter);
}
.trm-site .blog-post-meta { padding-block: 1rem 0; }
.trm-site .blog-post-content a { text-underline-offset: .18em; }
.trm-site :is(.section--off-white, .section--light-bg) { background: #f7f8fc; }
.trm-site .section-header { margin-bottom: clamp(1.4rem, 3.5vw, 2.75rem); }
.trm-site .section-headline { text-wrap: balance; }
.trm-site :is(.step-card, .blog-card, .blog-secondary-card, .area-card, .review-card, .team-card) {
  border-radius: .2rem;
  box-shadow: none;
}
.trm-site .step-card { border-top: 2px solid var(--gold); }
.trm-site .mobile-nav {
  background: var(--navy-dark);
  overscroll-behavior: contain;
  padding-inline: var(--page-gutter);
}
.trm-site .mobile-nav:not(.open) { visibility: hidden; }
.trm-site .mobile-nav-list { gap: .15rem; }
.trm-site .mobile-nav-list :is(a, button) { min-height: 2.75rem; }

.trm-service-index {
  border-bottom: 1px solid var(--rule);
  background: #fff;
  padding-block: clamp(1.8rem, 4.5vw, 3.6rem);
}
.trm-service-index > .container { display: grid; grid-template-columns: minmax(11rem, .65fr) minmax(0, 1.7fr); gap: 1.1rem 2rem; align-items: start; }
.trm-service-index h2 {
  max-width: 14ch;
  font: 900 clamp(1.75rem, 3.4vw, 3rem)/.98 Barlow, sans-serif;
  letter-spacing: -.035em;
}
.trm-service-index ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.25rem; }
.trm-service-index li { border-top: 1px solid var(--rule); }
.trm-service-index a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding-block: .45rem;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
.trm-service-index a:hover, .trm-service-index a:focus-visible { text-decoration: underline; text-underline-offset: .22em; }
.trm-site .service-block { scroll-margin-top: 5rem; }
.trm-site .service-block-content h2 { font: 900 clamp(1.95rem, 4.3vw, 4rem)/.98 Barlow, sans-serif; letter-spacing: -.045em; }
.trm-site .service-block-list li::before {
  content: "";
  display: inline-block;
  width: .45rem;
  height: .45rem;
  background: var(--gold);
}
.trm-site .credential-badge::before { content: none; }
.trm-site .service-block-icon {
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid var(--gold);
  background: var(--navy);
  color: white;
  max-width: 100%;
}
.trm-rating-mark {
  display: inline-block;
  width: 5rem;
  height: .9rem;
  background-color: var(--gold);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5l2.5 5.4 5.9.7-4.4 4 1.2 5.9-5.2-3-5.2 3L6 11.6l-4.4-4 5.9-.7z'/%3E%3C/svg%3E") left center / 1rem 1rem repeat-x;
}

@media (max-width: 850px) {
  .trm-site .trm-page-with-photo,
  .trm-service-index > .container { grid-template-columns: minmax(0, 1fr); }
  .trm-site main .trm-page-with-photo > .container { padding: 2.35rem var(--page-gutter) 1.65rem; }
  .trm-site .trm-page-photo { aspect-ratio: 1.8; }
  .trm-site .trm-page-with-photo h1 { text-wrap: initial; }
}
@media (max-width: 768px) {
  .trm-site { padding-bottom: 0; }
  .trm-site:has(.sticky-cta-bar) { padding-bottom: var(--mobile-bar-height); }
  .trm-site .section { padding-block: 2.5rem; }
  .trm-site :is(.page-hero, .blog-post-hero) { padding-block: 2.65rem 2.25rem; }
  .trm-site .trm-page-with-photo { padding-block: 0; }
  .trm-site :is(.page-hero, .blog-post-hero) h1 { font-size: clamp(2.15rem, 8.5vw, 3.5rem); }
  .trm-site :is(.page-hero, .blog-post-hero) p { font-size: 1rem; line-height: 1.5; }
  .trm-site .trm-page-action { margin-top: 1rem; }
  .trm-site :is(.cta-strip-btns, .golf-hero-ctas) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .trm-site :is(.cta-strip-btns, .golf-hero-ctas) > a { padding-inline: .55rem; }
  .trm-site .sticky-cta-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    min-height: var(--mobile-bar-height);
    padding: .5rem var(--page-gutter) calc(.5rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #ffffff25;
  }
  .trm-site .sticky-cta-bar > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: .35rem .25rem;
    border-radius: .2rem;
    font-size: .94rem;
    line-height: 1.15;
  }
  .trm-site:has(.mobile-nav.open) .sticky-cta-bar,
  .trm-site:has(.mobile-nav.open, .lbx-overlay.open) .trm-cookie { visibility: hidden; }
  .trm-site:has(.sticky-cta-bar) .trm-cookie { bottom: calc(var(--mobile-bar-height) + .35rem); }
  .trm-cookie { grid-template-columns: 1fr; gap: .38rem; padding: .6rem .65rem; }
  .trm-cookie p { font-size: .875rem; }
  .trm-cookie button { min-height: 2.35rem; }
  .trm-service-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trm-site .contact-simple-layout { gap: 1.6rem; }
  .trm-site .contact-simple-layout > :has(form) { grid-row: 1; }
  .trm-site .contact-submit-btn { width: 100%; }
  .trm-site .service-block-visual { display: none; }
  .trm-site .service-block-inner { grid-template-columns: minmax(0, 1fr); }
  .trm-site :is(.blog-post-content, .contact-detail-info, .footer-contact) { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .trm-site .header-inner { gap: .6rem; }
  .trm-site .header-logo img { max-width: 8.65rem; height: auto; }
}

@media (max-width: 768px) {
  .trm-site :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { font-size: 1rem; }
}

.trm-site .service-card-link::after,
.trm-site .blog-read-more::after,
.trm-site .area-link::after { content: none; }

@media (max-width: 768px) {
  .trm-site .trm-page-photo img[src*="Sean_Rankin_headshot"] { object-position: center 12%; }
  .trm-cookie strong {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .trm-cookie p { margin: 0; }
  .trm-cookie button { min-height: 2.45rem; }
}
@media (max-width: 420px) {
  .trm-site .site-header .header-phone { display: none; }
  .trm-site .header-logo img { height: 40px; width: auto; max-width: 8.65rem; }
  .trm-site .menu-toggle { flex: 0 0 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; }
}
