/* ==========================================================================
   TowingRankings.com — Phase 2A.1 Homepage Visual Refinement Stylesheet
   Palette: Navy Blue (#0B1F3A), Signal Orange (#CF4B0C / #F26522),
            Charcoal (#1E242B), Light Grey (#F4F6F9), Crisp White (#FFFFFF)
   WCAG AA contrast verified. Standalone preview asset only.
   ========================================================================== */

:root {
  --tr-navy-950: #071426;
  --tr-navy-900: #0b1f3a;
  --tr-navy-800: #132e54;
  --tr-navy-700: #1b4075;
  --tr-orange-700: #b53f08;
  --tr-orange-600: #c2410c;
  --tr-orange-btn: #cc4a0b;
  --tr-orange-500: #f26522;
  --tr-orange-300: #ffb68e;
  --tr-orange-100: #fff2ea;
  --tr-charcoal-900: #1a222c;
  --tr-charcoal-700: #2e3845;
  --tr-charcoal-500: #4b5563;
  --tr-grey-200: #d8e0ea;
  --tr-grey-100: #edf1f6;
  --tr-grey-50: #f6f8fb;
  --tr-white: #ffffff;
  --tr-amber-bg: #fff8e6;
  --tr-amber-border: #e5a419;
  --tr-amber-text: #5c3800;
  --tr-star: #b45309;
  --tr-shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
  --tr-shadow-md: 0 10px 26px rgba(11, 31, 58, 0.10);
  --tr-shadow-lg: 0 16px 42px rgba(7, 20, 38, 0.24);
  --tr-radius-sm: 8px;
  --tr-radius-md: 12px;
  --tr-radius-lg: 16px;
  --tr-container: 1360px;
  --tr-font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--tr-font);
  font-size: 16px;
  line-height: 1.58;
  color: var(--tr-charcoal-900);
  background-color: var(--tr-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--tr-navy-700);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

a:hover {
  color: var(--tr-orange-600);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
area:focus-visible {
  outline: 3px solid var(--tr-orange-500);
  outline-offset: 2px;
}

.tr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tr-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--tr-orange-btn);
  color: var(--tr-white);
  padding: 10px 16px;
  border-radius: var(--tr-radius-sm);
  font-weight: 700;
}

.tr-skip-link:focus {
  top: 12px;
  color: var(--tr-white);
}

.tr-container {
  width: 100%;
  max-width: var(--tr-container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Preview Mode Notice Banner ---------- */
.tr-preview-banner {
  background: var(--tr-amber-bg);
  border-bottom: 2px solid var(--tr-amber-border);
  color: var(--tr-amber-text);
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 8px 0;
}

.tr-preview-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.tr-preview-banner__badge {
  display: inline-flex;
  align-items: center;
  background: #f59e0b;
  color: #1c1300;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* ---------- Top Utility Bar & Sticky Header ---------- */
.tr-topbar {
  background: var(--tr-navy-950);
  color: #d6e1ee;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tr-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding-block: 5px;
}

.tr-topbar__tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d6e1ee;
}

.tr-topbar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tr-orange-500);
  flex-shrink: 0;
}

.tr-topbar__links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tr-topbar__links a {
  color: #edf3fa;
  font-weight: 600;
}

.tr-topbar__links a:hover {
  color: var(--tr-orange-300);
}

.tr-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--tr-white);
  border-bottom: 1px solid var(--tr-grey-200);
  box-shadow: 0 2px 10px rgba(11, 31, 58, 0.06);
}

.tr-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.tr-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tr-brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--tr-navy-900) 0%, var(--tr-navy-700) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tr-orange-500);
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.18);
}

.tr-brand__mark svg {
  display: block;
}

.tr-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.tr-brand__name {
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tr-navy-900);
}

.tr-brand__name span {
  color: var(--tr-orange-600);
}

.tr-brand__sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--tr-charcoal-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.tr-nav {
  display: flex;
  align-items: center;
}

.tr-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.tr-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tr-navy-900);
  border-radius: var(--tr-radius-sm);
  white-space: nowrap;
}

.tr-nav__link:hover {
  background: var(--tr-grey-50);
  color: var(--tr-orange-600);
}

.tr-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 17px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--tr-radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.tr-btn--primary {
  background: var(--tr-orange-btn);
  color: var(--tr-white);
  box-shadow: 0 4px 12px rgba(204, 74, 11, 0.28);
}

.tr-btn--primary:hover {
  background: var(--tr-orange-700);
  color: var(--tr-white);
  transform: translateY(-1px);
}

.tr-btn--navy {
  background: var(--tr-navy-900);
  color: var(--tr-white);
}

.tr-btn--navy:hover {
  background: var(--tr-navy-800);
  color: var(--tr-white);
  transform: translateY(-1px);
}

.tr-btn--outline {
  background: var(--tr-white);
  color: var(--tr-navy-900);
  border-color: var(--tr-grey-200);
}

.tr-btn--outline:hover {
  border-color: var(--tr-navy-700);
  color: var(--tr-navy-900);
  background: var(--tr-grey-50);
}

.tr-btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--tr-white);
  border-color: rgba(255, 255, 255, 0.34);
}

.tr-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--tr-white);
}

.tr-btn--sm {
  padding: 8px 13px;
  font-size: 0.85rem;
}

.tr-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--tr-radius-sm);
  border: 1.5px solid var(--tr-grey-200);
  background: var(--tr-white);
  color: var(--tr-navy-900);
  cursor: pointer;
}

/* Mobile Drawer */
.tr-mobile-drawer {
  display: none;
  background: var(--tr-white);
  border-top: 1px solid var(--tr-grey-200);
  box-shadow: var(--tr-shadow-md);
}

.tr-mobile-drawer.is-open {
  display: block;
}

.tr-mobile-drawer__inner {
  padding: 14px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr-mobile-drawer__link {
  display: block;
  padding: 11px 14px;
  font-weight: 600;
  color: var(--tr-navy-900);
  border-radius: var(--tr-radius-sm);
  background: var(--tr-grey-50);
}

.tr-mobile-drawer__link:hover {
  background: var(--tr-orange-100);
  color: var(--tr-orange-600);
}

.tr-mobile-drawer__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- Hero Section (Brighter Right-Side Tow Truck + Readable Left Scrim) ---------- */
.tr-hero {
  position: relative;
  background-color: var(--tr-navy-950);
  color: var(--tr-white);
  overflow: hidden;
  padding: 50px 0 56px;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.tr-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tr-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
  filter: brightness(1.08) contrast(1.04) saturate(1.08);
}

.tr-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      92deg,
      rgba(7, 20, 38, 0.94) 0%,
      rgba(11, 31, 58, 0.84) 36%,
      rgba(11, 31, 58, 0.34) 56%,
      rgba(11, 31, 58, 0.04) 72%,
      rgba(7, 20, 38, 0.0) 100%
    ),
    linear-gradient(180deg, rgba(7, 20, 38, 0.18) 0%, rgba(7, 20, 38, 0.32) 100%);
}

.tr-hero__grid {
  position: relative;
  z-index: 1;
  display: block;
}

.tr-hero__content {
  max-width: 740px;
}

.tr-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 101, 34, 0.18);
  border: 1px solid rgba(255, 182, 142, 0.45);
  color: #ffd0b5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tr-hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.95rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--tr-white);
  text-shadow: 0 2px 14px rgba(7, 20, 38, 0.45);
}

.tr-hero__title span {
  color: #ff8c52;
}

.tr-hero__lead {
  margin: 0 0 22px;
  font-size: 1.03rem;
  line-height: 1.6;
  color: #e4ecf6;
  max-width: 600px;
  text-shadow: 0 1px 8px rgba(7, 20, 38, 0.45);
}

/* Search Panel inside Hero */
.tr-search-card {
  background: var(--tr-white);
  color: var(--tr-charcoal-900);
  border-radius: var(--tr-radius-lg);
  padding: 16px;
  box-shadow: var(--tr-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tr-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(225px, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.tr-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.tr-field__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tr-charcoal-500);
  margin-bottom: 5px;
}

.tr-input,
.tr-select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--tr-charcoal-900);
  background-color: var(--tr-white);
}

.tr-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e242b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  text-overflow: ellipsis;
}

.tr-input:hover,
.tr-select:hover {
  border-color: #aebcd0;
}

.tr-search-submit {
  align-self: flex-end;
  height: 46px;
  padding-inline: 22px;
}

/* Accessible Autocomplete Suggestions */
.tr-autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-sm);
  box-shadow: var(--tr-shadow-md);
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}

.tr-autocomplete.is-open {
  display: block;
}

.tr-autocomplete__item {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--tr-charcoal-900);
  cursor: pointer;
}

.tr-autocomplete__item:hover,
.tr-autocomplete__item.is-active {
  background: var(--tr-orange-100);
  color: var(--tr-navy-900);
}

.tr-search-feedback {
  margin: 8px 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #b42318;
  display: none;
}

.tr-search-feedback.is-visible {
  display: block;
}

.tr-hero__quickstates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.84rem;
  color: #d7e3f1;
}

.tr-pill-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--tr-white);
  font-size: 0.8rem;
  font-weight: 600;
}

.tr-pill-link:hover {
  background: var(--tr-orange-btn);
  border-color: var(--tr-orange-btn);
  color: var(--tr-white);
}

/* ---------- Trust Strip ---------- */
.tr-trust-strip {
  background: var(--tr-grey-50);
  border-bottom: 1px solid var(--tr-grey-200);
  padding: 14px 0;
}

.tr-trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tr-trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.tr-trust-item .tr-trust-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  color: var(--tr-orange-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(11, 31, 58, 0.05);
}

.tr-trust-item .tr-trust-item__icon svg {
  display: block;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.tr-trust-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tr-navy-900);
}

.tr-trust-item > div > span {
  display: block;
  font-size: 0.8rem;
  color: var(--tr-charcoal-500);
}

/* ---------- Generic Section Styling (Tighter, Balanced Spacing) ---------- */
.tr-section {
  padding: 46px 0;
}

.tr-section--grey {
  background: var(--tr-grey-50);
  border-block: 1px solid var(--tr-grey-200);
}

.tr-section--navy {
  background: linear-gradient(180deg, var(--tr-navy-900) 0%, var(--tr-navy-950) 100%);
  color: var(--tr-white);
}

.tr-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.tr-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tr-orange-600);
  margin-bottom: 4px;
}

.tr-section--navy .tr-eyebrow {
  color: var(--tr-orange-300);
}

.tr-h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--tr-navy-900);
}

.tr-section--navy .tr-h2 {
  color: var(--tr-white);
}

.tr-subcopy {
  margin: 6px 0 0;
  font-size: 0.96rem;
  color: var(--tr-charcoal-500);
  max-width: 660px;
}

.tr-section--navy .tr-subcopy {
  color: #d2deec;
}

/* Placeholder Tag */
.tr-placeholder-tag {
  display: inline-flex;
  align-items: center;
  background: var(--tr-amber-bg);
  border: 1px solid var(--tr-amber-border);
  color: var(--tr-amber-text);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Equal Width & Height Top-Rated + Most Visited Panels ---------- */
.tr-rankings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.tr-panel {
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  box-shadow: var(--tr-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tr-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  background: var(--tr-navy-900);
  color: var(--tr-white);
}

.tr-panel__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--tr-white);
}

.tr-panel__more {
  color: var(--tr-orange-300);
  font-size: 0.85rem;
  font-weight: 600;
}

.tr-panel__more:hover {
  color: var(--tr-white);
}

.tr-company-list {
  flex: 1;
  display: grid;
  grid-template-rows: repeat(5, minmax(78px, 1fr));
}

.tr-company-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 98px;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--tr-grey-100);
}

.tr-company-card:last-child {
  border-bottom: 0;
}

.tr-company-card:hover {
  background: var(--tr-grey-50);
}

.tr-rank-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tr-grey-100);
  border: 1px solid var(--tr-grey-200);
  color: var(--tr-navy-900);
  font-size: 0.96rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tr-rank-badge--top {
  background: linear-gradient(135deg, var(--tr-orange-btn), var(--tr-orange-500));
  border-color: transparent;
  color: var(--tr-white);
}

.tr-company-card__name {
  margin: 0 0 4px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tr-navy-900);
}

.tr-company-card__name a {
  color: var(--tr-navy-900);
}

.tr-company-card__name a:hover {
  color: var(--tr-orange-600);
}

.tr-company-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.8rem;
  color: var(--tr-charcoal-500);
}

.tr-bbb-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e6effa;
  color: var(--tr-navy-900);
  font-weight: 600;
  font-size: 0.77rem;
}

.tr-visit-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--tr-grey-100);
  color: var(--tr-charcoal-700);
  font-size: 0.77rem;
  font-weight: 600;
}

.tr-company-card__action .tr-btn {
  width: 100%;
  padding: 8px 10px;
}

/* ---------- 5 Smart Tools Showcase (Preserved Dark Navy Band) ---------- */
.tr-tools-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.tr-tool-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--tr-radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.tr-tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--tr-orange-500);
  background: rgba(255, 255, 255, 0.10);
}

.tr-tool-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(242, 101, 34, 0.18);
  color: var(--tr-orange-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tr-tool-card__icon svg {
  display: block;
}

.tr-tool-card__title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--tr-white);
}

.tr-tool-card__desc {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.52;
  color: #d4e0ee;
  flex-grow: 1;
}

.tr-tool-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tr-orange-300);
  margin-top: 2px;
}

.tr-tool-card__link:hover {
  color: var(--tr-white);
}

/* ---------- State-Wise Directory (Balanced 5x10 US Grid + Distinct Canada Block + Modern Map) ---------- */
.tr-states-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(290px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.tr-state-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.tr-state-filter {
  flex: 1 1 260px;
  max-width: 380px;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--tr-white);
  color: var(--tr-charcoal-900);
}

.tr-state-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tr-navy-900);
}

.tr-state-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.tr-state-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 11px;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-left: 3px solid transparent;
  border-radius: var(--tr-radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--tr-navy-900);
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.03);
}

.tr-state-chip:hover {
  border-color: var(--tr-orange-500);
  border-left-color: var(--tr-orange-btn);
  background: var(--tr-orange-100);
  color: var(--tr-navy-900);
  transform: translateY(-1px);
}

.tr-state-chip__count {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--tr-charcoal-500);
  background: var(--tr-grey-100);
  padding: 1px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Distinct Canada Provincial Sub-Section */
.tr-canada-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-left: 4px solid var(--tr-navy-700);
  border-radius: var(--tr-radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.tr-canada-box__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tr-canada-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e6effa;
  color: var(--tr-navy-900);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tr-canada-box__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tr-canada-box__chips .tr-state-chip {
  min-width: 210px;
}

/* Modernized USA Map Card */
.tr-map-card {
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  box-shadow: var(--tr-shadow-sm);
  overflow: hidden;
}

.tr-map-card__top {
  background: var(--tr-navy-900);
  color: var(--tr-white);
  padding: 14px 18px;
}

.tr-map-card__top h3 {
  margin: 2px 0 0;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--tr-white);
}

.tr-map-card__body {
  padding: 16px 18px 18px;
}

.tr-map-stage {
  background: linear-gradient(180deg, #f0f5fb 0%, #e6eef7 100%);
  border: 1px solid #d2deec;
  border-radius: 10px;
  padding: 14px 10px 10px;
  text-align: center;
  margin: 10px 0 12px;
}

.tr-map-stage img {
  margin: 0 auto;
  filter: drop-shadow(0 4px 10px rgba(11, 31, 58, 0.16));
}

.tr-map-hover-readout {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tr-navy-800);
  min-height: 1.3em;
}

.tr-map-card__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Latest Customer Reviews (Aligned Grid & Crisp Contrast) ---------- */
.tr-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.tr-review-card {
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  padding: 18px 20px;
  box-shadow: var(--tr-shadow-sm);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  height: 100%;
}

.tr-review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tr-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--tr-star);
  font-size: 0.96rem;
  letter-spacing: 1px;
}

.tr-stars__num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tr-charcoal-700);
  margin-left: 6px;
}

.tr-review-card__company {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tr-navy-900);
}

.tr-review-card__title {
  margin: 0;
  font-size: 0.92rem;
  color: var(--tr-charcoal-700);
  line-height: 1.55;
}

.tr-review-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--tr-grey-100);
  font-size: 0.82rem;
  color: var(--tr-charcoal-500);
}

/* ---------- News & Articles with Optimized 16:9 Towing Photographs ---------- */
.tr-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.tr-news-card {
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--tr-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--tr-shadow-sm);
  height: 100%;
}

.tr-news-card:hover {
  border-color: var(--tr-navy-700);
  transform: translateY(-2px);
  box-shadow: var(--tr-shadow-md);
}

.tr-news-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tr-navy-900);
}

.tr-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tr-news-card:hover .tr-news-card__media img {
  transform: scale(1.03);
}

.tr-news-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tr-news-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tr-orange-600);
}

.tr-news-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tr-navy-900);
}

.tr-news-card__excerpt {
  margin: 0;
  font-size: 0.89rem;
  color: var(--tr-charcoal-500);
  line-height: 1.52;
  flex-grow: 1;
}

.tr-news-card__cta {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--tr-navy-700);
  margin-top: 2px;
}

/* ---------- Evaluation Criteria & Trust Pillars ---------- */
.tr-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tr-pillar-card {
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-left: 4px solid var(--tr-orange-btn);
  border-radius: var(--tr-radius-md);
  padding: 18px 20px;
  box-shadow: var(--tr-shadow-sm);
}

.tr-pillar-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--tr-navy-900);
}

.tr-pillar-card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--tr-charcoal-700);
  line-height: 1.58;
}

/* Compact Action CTA Band */
.tr-cta-band {
  margin-top: 24px;
  background: linear-gradient(115deg, var(--tr-navy-900) 0%, var(--tr-navy-800) 100%);
  border-radius: var(--tr-radius-lg);
  padding: 24px 28px;
  color: var(--tr-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tr-cta-band h3 {
  margin: 0 0 4px;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--tr-white);
}

.tr-cta-band p {
  margin: 0;
  color: #d6e2f0;
  font-size: 0.93rem;
  max-width: 560px;
}

.tr-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Compact, High-Contrast Navy Footer ---------- */
.tr-footer {
  background: var(--tr-navy-950);
  color: #d0dceb;
  padding: 40px 0 22px;
}

.tr-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tr-footer__brand-desc {
  margin: 12px 0 0;
  font-size: 0.87rem;
  line-height: 1.56;
  color: #c4d2e4;
}

.tr-footer__col-title {
  margin: 0 0 11px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tr-white);
}

.tr-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tr-footer__list a {
  font-size: 0.87rem;
  color: #d4e0ee;
}

.tr-footer__list a:hover {
  color: var(--tr-orange-300);
}

.tr-footer__bottom {
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 0.82rem;
  color: #b7c7db;
}

.tr-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tr-footer__legal-links a {
  color: #e2ebf6;
  font-weight: 600;
}

.tr-footer__legal-links a:hover {
  color: var(--tr-orange-300);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1160px) {
  .tr-nav {
    display: none;
  }
  .tr-menu-toggle {
    display: inline-flex;
  }
  .tr-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tr-state-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tr-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .tr-rankings-layout,
  .tr-states-layout {
    grid-template-columns: 1fr;
  }
  .tr-company-list {
    grid-template-rows: none;
  }
  .tr-trust-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tr-state-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tr-reviews-grid,
  .tr-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tr-hero__scrim {
    background: linear-gradient(180deg, rgba(7, 20, 38, 0.82) 0%, rgba(11, 31, 58, 0.72) 55%, rgba(7, 20, 38, 0.86) 100%);
  }
}

@media (max-width: 680px) {
  .tr-topbar__tagline {
    display: none;
  }
  .tr-topbar__inner {
    justify-content: flex-end;
  }
  .tr-header__inner {
    min-height: 68px;
  }
  .tr-brand__mark {
    width: 42px;
    height: 42px;
  }
  .tr-brand__name {
    font-size: 1.2rem;
  }
  .tr-header__actions .tr-btn {
    display: none;
  }
  .tr-hero {
    padding: 36px 0 40px;
    min-height: auto;
  }
  .tr-hero__img {
    object-position: 68% center;
  }
  .tr-hero__scrim {
    background: linear-gradient(180deg, rgba(7, 20, 38, 0.85) 0%, rgba(11, 31, 58, 0.80) 55%, rgba(7, 20, 38, 0.90) 100%);
  }
  .tr-search-form {
    grid-template-columns: 1fr;
  }
  .tr-search-submit {
    width: 100%;
  }
  .tr-trust-strip__grid,
  .tr-tools-grid,
  .tr-reviews-grid,
  .tr-news-grid,
  .tr-pillars-grid,
  .tr-footer__grid {
    grid-template-columns: 1fr;
  }
  .tr-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tr-company-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .tr-company-card__action {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .tr-company-card__action .tr-btn {
    width: auto;
    padding: 8px 14px;
  }
  .tr-section {
    padding: 36px 0;
  }
  .tr-cta-band {
    padding: 20px 18px;
  }
}
