/* ==========================================================================
   TreeRemovalBusiness.com — Custom styles
   Loaded from trb-customizations.php. Nothing here belongs in Customizer.
   ========================================================================== */

:root {
	--trb-ink:        #1c2321;
	--trb-ink-soft:   #5a6360;
	--trb-ink-faint:  #8b9490;
	--trb-line:       #e4e8e6;
	--trb-line-soft:  #f0f3f2;
	--trb-green:      #2d6a4f;
	--trb-green-dark: #1b4332;
	--trb-green-tint: #f2f7f4;
	--trb-bg:         #ffffff;
	--trb-bg-alt:     #fafbfa;
	--trb-radius:     10px;
	--trb-maxw:       1180px;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.trb-section {
	padding: 72px 24px;
}

.trb-section--alt {
	background: var(--trb-bg-alt);
	border-top: 1px solid var(--trb-line-soft);
	border-bottom: 1px solid var(--trb-line-soft);
}

.trb-inner {
	max-width: var(--trb-maxw);
	margin: 0 auto;
}

.trb-section-head {
	margin-bottom: 40px;
	max-width: 660px;
}

.trb-section-head h2 {
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.2;
	margin: 0 0 12px;
	color: var(--trb-ink);
	letter-spacing: -0.02em;
}

.trb-section-head p {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	color: var(--trb-ink-soft);
}

.trb-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--trb-green);
	margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Intro / positioning
   -------------------------------------------------------------------------- */

.trb-intro {
	text-align: center;
	max-width: 780px;
	margin: 0 auto;
}

.trb-intro h1 {
	font-size: clamp(30px, 4.2vw, 46px);
	line-height: 1.15;
	letter-spacing: -0.025em;
	margin: 0 0 18px;
	color: var(--trb-ink);
}

.trb-intro p {
	font-size: clamp(17px, 1.6vw, 19px);
	line-height: 1.65;
	color: var(--trb-ink-soft);
	margin: 0;
}

/* --------------------------------------------------------------------------
   Trust strip  [trb_stats]
   -------------------------------------------------------------------------- */

.trb-stats {
	list-style: none;
	margin: 48px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 0;
}

.trb-stats li {
	flex: 1 1 0;
	min-width: 150px;
	padding: 0 28px;
	text-align: center;
	border-left: 1px solid var(--trb-line);
}

.trb-stats li:first-child {
	border-left: 0;
}

.trb-stats strong {
	display: block;
	font-size: clamp(28px, 2.6vw, 34px);
	font-weight: 700;
	color: var(--trb-green-dark);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.trb-stats span {
	display: block;
	margin-top: 6px;
	font-size: 15px;
	color: var(--trb-ink-faint);
}

/* --------------------------------------------------------------------------
   City grid  [trb_city_grid]
   -------------------------------------------------------------------------- */

.trb-state + .trb-state {
	margin-top: 48px;
}

.trb-state-name {
	font-size: 20px;
	font-weight: 700;
	color: var(--trb-ink);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--trb-line);
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.trb-state-meta {
	font-size: 13px;
	font-weight: 500;
	color: var(--trb-ink-faint);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.trb-cities {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 2px 28px;
}

.trb-cities a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 10px 10px 2px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--trb-ink);
	font-size: 16px;
	line-height: 1.35;
	overflow: hidden;
	transition: background-color 0.13s ease, color 0.13s ease;
}

.trb-cities a:hover,
.trb-cities a:focus-visible {
	background: var(--trb-green-tint);
	color: var(--trb-green-dark);
}

.trb-city-name {
	position: relative;
}

/* dotted leader between name and count */
.trb-city-name::after {
	content: "";
	position: absolute;
	bottom: 0.28em;
	left: calc(100% + 8px);
	width: 100vw;
	border-bottom: 1px dotted var(--trb-line);
}

.trb-city-count {
	position: relative;
	z-index: 1;
	flex: none;
	background: var(--trb-bg);
	padding-left: 8px;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	color: var(--trb-ink-faint);
}

/* the grid sits on the alt background, so the leader mask must match it */
.trb-section--alt .trb-city-count {
	background: var(--trb-bg-alt);
}

.trb-cities a:hover .trb-city-count,
.trb-cities a:focus-visible .trb-city-count,
.trb-section--alt .trb-cities a:hover .trb-city-count,
.trb-section--alt .trb-cities a:focus-visible .trb-city-count {
	background: var(--trb-green-tint);
	color: var(--trb-green);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.trb-paths {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
}

.trb-path {
	background: var(--trb-bg);
	border: 1px solid var(--trb-line);
	border-radius: var(--trb-radius);
	padding: 34px 32px 32px;
	display: flex;
	flex-direction: column;
}

.trb-path h3 {
	font-size: 21px;
	margin: 0 0 22px;
	color: var(--trb-ink);
	letter-spacing: -0.015em;
}

.trb-steps {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	counter-reset: trb-step;
	flex: 1;
}

.trb-steps li {
	counter-increment: trb-step;
	position: relative;
	padding-left: 44px;
	margin-bottom: 20px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--trb-ink-soft);
}

.trb-steps li:last-child {
	margin-bottom: 0;
}

.trb-steps li::before {
	content: counter(trb-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--trb-green-tint);
	color: var(--trb-green-dark);
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.trb-steps strong {
	display: block;
	color: var(--trb-ink);
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 3px;
}

.trb-btn {
	display: inline-block;
	align-self: flex-start;
	padding: 13px 26px;
	border-radius: 7px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.trb-btn--solid {
	background: var(--trb-green);
	color: #fff;
	border: 1px solid var(--trb-green);
}

.trb-btn--solid:hover,
.trb-btn--solid:focus-visible {
	background: var(--trb-green-dark);
	border-color: var(--trb-green-dark);
	color: #fff;
}

.trb-btn--ghost {
	background: transparent;
	color: var(--trb-green-dark);
	border: 1px solid var(--trb-line);
}

.trb-btn--ghost:hover,
.trb-btn--ghost:focus-visible {
	border-color: var(--trb-green);
	background: var(--trb-green-tint);
	color: var(--trb-green-dark);
}

/* --------------------------------------------------------------------------
   FAQ  [trb_faq]  — native <details>, no JS
   -------------------------------------------------------------------------- */

.trb-faq {
	border-top: 1px solid var(--trb-line);
	max-width: 840px;
}

.trb-faq-item {
	border-bottom: 1px solid var(--trb-line);
}

.trb-faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 44px 22px 0;
	position: relative;
	user-select: none;
}

.trb-faq-item summary::-webkit-details-marker {
	display: none;
}

.trb-faq-item summary h3 {
	display: inline;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--trb-ink);
	margin: 0;
}

.trb-faq-item summary:hover h3,
.trb-faq-item summary:focus-visible h3 {
	color: var(--trb-green-dark);
}

/* chevron */
.trb-faq-item summary::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 28px;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--trb-ink-faint);
	border-bottom: 2px solid var(--trb-ink-faint);
	transform: rotate(45deg);
	transition: transform 0.18s ease;
}

.trb-faq-item[open] summary::after {
	transform: rotate(-135deg);
	top: 32px;
}

.trb-faq-answer {
	padding: 0 44px 26px 0;
}

.trb-faq-answer p {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--trb-ink-soft);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
	.trb-section { padding: 56px 20px; }

	.trb-stats li {
		flex: 1 1 100%;
		border-left: 0;
		padding: 16px 0;
		border-top: 1px solid var(--trb-line);
	}
	.trb-stats li:first-child { border-top: 0; }

	.trb-cities { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

@media (max-width: 520px) {
	.trb-section { padding: 44px 18px; }
	.trb-path { padding: 28px 22px; }
	.trb-cities { grid-template-columns: 1fr; }
	.trb-city-name::after { display: none; }
	.trb-state-name { flex-direction: column; gap: 4px; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.trb-cities a,
	.trb-btn,
	.trb-faq-item summary::after {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   City hub taxonomy descriptions
   (migrated verbatim from Customizer → Additional CSS)
   -------------------------------------------------------------------------- */

.lp_term_archive_description {
	font-size: 18px;
	line-height: 1.7;
	color: #444;
	max-width: 800px;
	margin-bottom: 50px;
}

.lp_term_archive_description h2 {
	font-size: 22px;
	font-weight: 600;
	margin-top: 32px;
	margin-bottom: 10px;
	color: #222;
	line-height: 1.2;
}

.lp_term_archive_description p {
	margin-bottom: 15px;
}

.lp_term_archive_description ul {
	list-style: disc;
	padding-left: 24px;
	margin-bottom: 14px;
}

.lp_term_archive_description ul li {
	margin-bottom: 6px;
	font-size: 16px;
	line-height: 1.6;
}

.lp_term_archive_description a {
	color: #2c7a4b;
	text-decoration: underline;
}

/* source/disclaimer line at the foot of each hub description */
.lp_term_archive_description em {
	display: block;
	font-size: 13px;
	color: #777;
	margin-top: 20px;
	border-top: 1px solid #eee;
	padding-top: 12px;
}

/* --------------------------------------------------------------------------
   Submit Listing: hide Google address + Drop Pin tabs (Manual Coordinates only)
   -------------------------------------------------------------------------- */

.lp-coordinates a.googleAddressbtn[data-type="gaddress"],
.lp-coordinates a.googledroppin {
	display: none !important;
}



/* ==========================================================================
   BUSINESS SEARCH MODULE  [trb_search]
   Append to trb-custom.css
   ========================================================================== */

.trb-search {
	position: relative;
	max-width: 620px;
}

.trb-search--full {
	margin: 0 auto;
	text-align: center;
}

.trb-search--compact {
	max-width: 100%;
}

.trb-search-heading {
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.25;
	margin: 0 0 8px;
	color: var(--trb-ink);
	letter-spacing: -0.015em;
}

.trb-search-sub {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--trb-ink-soft);
}

/* --- field --- */

.trb-search-field {
	position: relative;
}

.trb-search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 15px 46px 15px 18px;
	font-size: 16px; /* 16px prevents iOS zoom-on-focus */
	line-height: 1.4;
	color: var(--trb-ink);
	background: var(--trb-bg);
	border: 1px solid var(--trb-line);
	border-radius: 8px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.trb-search-input::placeholder {
	color: var(--trb-ink-faint);
}

.trb-search-input:focus {
	outline: none;
	border-color: var(--trb-green);
	box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.trb-search-input::-webkit-search-cancel-button {
	cursor: pointer;
}

.trb-search--compact .trb-search-input {
	padding: 12px 42px 12px 14px;
	font-size: 16px;
}

/* --- spinner --- */

.trb-search-spinner {
	position: absolute;
	right: 16px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid var(--trb-line);
	border-top-color: var(--trb-green);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.15s ease;
	pointer-events: none;
}

.trb-search.is-loading .trb-search-spinner {
	opacity: 1;
	animation: trb-spin 0.6s linear infinite;
}

@keyframes trb-spin {
	to { transform: rotate(360deg); }
}

/* --- results --- */

.trb-search-results {
	position: absolute;
	z-index: 40;
	left: 0;
	right: 0;
	margin-top: 6px;
	background: var(--trb-bg);
	border: 1px solid var(--trb-line);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(28, 35, 33, 0.10);
	overflow: hidden;
	text-align: left;
}

.trb-search-results ul {
	list-style: none;
	margin: 0;
	padding: 6px;
	max-height: 340px;
	overflow-y: auto;
}

.trb-search-results li + li {
	border-top: 1px solid var(--trb-line-soft);
}

.trb-search-results a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 12px;
	border-radius: 6px;
	text-decoration: none;
	transition: background-color 0.12s ease;
}

.trb-search-results a:hover,
.trb-search-results a:focus-visible {
	background: var(--trb-green-tint);
}

.trb-r-title {
	font-size: 15.5px;
	line-height: 1.35;
	color: var(--trb-ink);
	font-weight: 500;
}

.trb-search-results a:hover .trb-r-title {
	color: var(--trb-green-dark);
}

.trb-r-city {
	flex: none;
	font-size: 13px;
	color: var(--trb-ink-faint);
	white-space: nowrap;
}

.trb-search-empty {
	margin: 0;
	padding: 18px 16px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--trb-ink-soft);
	text-align: left;
}

/* --- claim nudge --- */

.trb-search-hint {
	margin: 16px 0 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--trb-ink-soft);
	text-align: left;
}

.trb-search--full .trb-search-hint {
	text-align: center;
}

.trb-search-hint strong {
	color: var(--trb-green-dark);
	font-weight: 600;
}

/* --- screen-reader-only label (in case theme lacks it) --- */

.trb-search .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- reduced motion --- */

@media (prefers-reduced-motion: reduce) {
	.trb-search-input,
	.trb-search-results a,
	.trb-search-spinner { transition: none; }

	.trb-search.is-loading .trb-search-spinner { animation: none; }
}

@media (max-width: 520px) {
	.trb-search-results a {
		flex-direction: column;
		gap: 3px;
	}
}


/* --- tinted card variant --- */

.trb-search--panel {
	background: var(--trb-green-tint);
	border: 1px solid rgba(45, 106, 79, 0.12);
	border-radius: 12px;
	padding: 36px 32px;
	max-width: 700px;
	/* no overflow:hidden — the results dropdown must escape the card */
}

.trb-search--panel-neutral {
	background: var(--trb-bg-alt);
	border-color: var(--trb-line);
}

.trb-search--panel .trb-search-heading {
	margin-top: 0;
}

.trb-search--panel .trb-search-input {
	border-color: rgba(45, 106, 79, 0.18);
}

.trb-search--panel-neutral .trb-search-input {
	border-color: var(--trb-line);
}

.trb-search--panel .trb-search-hint {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(45, 106, 79, 0.14);
}

.trb-search--panel-neutral .trb-search-hint {
	border-top-color: var(--trb-line);
}

@media (max-width: 520px) {
	.trb-search--panel {
		padding: 26px 20px;
		border-radius: 10px;
	}
}

