/*
Theme Name: Texas Debt Law Modern
Theme URI: https://texasdebtlaw.com
Author: Texas Debt Law
Description: Navy and gold redesign for Texas Debt Law. Child theme of Lawyer Firm Blocks. Replaces templates, header, footer and styles only — page/post content and every Pipedrive web form are left exactly as they are.
Template: lawyer-firm-blocks
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: texas-debt-law-modern
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--tdl-navy: #1F2A3C;
	--tdl-navy-deep: #151D2B;
	--tdl-navy-soft: #2A3850;
	--tdl-gold: #D2A84F;
	--tdl-gold-light: #F9E3A7;
	--tdl-gold-text: #8A6620;
	--tdl-ink: #1F2A3C;
	--tdl-body: #3B4352;
	--tdl-muted: #667085;
	--tdl-base: #FBFAF7;
	--tdl-tint: #F4F1EA;
	--tdl-border: #E4DFD4;
	--tdl-white: #FFFFFF;
	--tdl-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--tdl-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tdl-radius: 14px;
	--tdl-radius-sm: 8px;
	--tdl-shadow: 0 1px 2px rgba(21, 29, 43, .06), 0 12px 32px -8px rgba(21, 29, 43, .18);
	--tdl-shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, .45);
	--tdl-gutter: clamp(16px, 4vw, 40px);
	--tdl-section: clamp(56px, 8vw, 104px);
	--tdl-header-h: 84px;
}

/* ==========================================================================
   Base
   ========================================================================== */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tdl-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	background: var(--tdl-white);
	color: var(--tdl-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

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

a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--tdl-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--tdl-gold-light); color: var(--tdl-navy-deep); }

.tdl-skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	background: var(--tdl-gold);
	color: var(--tdl-navy-deep);
	padding: 10px 16px;
	border-radius: var(--tdl-radius-sm);
	font-weight: 700;
	text-decoration: none;
}
.tdl-skip-link:focus { top: 12px; }

/* Shared gutters for full-width bands */
.tdl-topbar,
.tdl-header,
.tdl-trust,
.tdl-section,
.tdl-page-hero,
.tdl-cta-band,
.tdl-footer,
.tdl-page,
.tdl-article,
.wp-block-cover.tdl-hero {
	padding-left: var(--tdl-gutter);
	padding-right: var(--tdl-gutter);
}

/* Eyebrow / small caps label */
.tdl-eyebrow {
	font-family: var(--tdl-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tdl-gold);
	margin: 0 0 .75rem;
}
.tdl-eyebrow a { color: inherit; text-decoration: none; }
.tdl-eyebrow a:hover { text-decoration: underline; }
.tdl-eyebrow--dark { color: var(--tdl-gold-text); }

/* Results badge in the hero ("Hundreds of Debt Lawsuits Dismissed") */
.tdl-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 1.25rem;
	padding: 7px 14px 7px 10px;
	border-radius: 999px;
	background: rgba(210, 168, 79, .16);
	border: 1px solid rgba(249, 227, 167, .45);
	color: var(--tdl-gold-light);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.2;
}
.tdl-badge::before {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--tdl-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23151D2B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tdl-text-link a {
	font-weight: 700;
	color: var(--tdl-navy);
	text-decoration: none;
	border-bottom: 2px solid var(--tdl-gold);
	padding-bottom: 2px;
}
.tdl-text-link a:hover { color: var(--tdl-gold-text); }

/* Buttons */
.wp-element-button,
.wp-block-button__link {
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
	line-height: 1.2;
	text-decoration: none;
}
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: var(--tdl-navy);
	padding: calc(.9em - 2px) calc(1.6em - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--tdl-navy);
	border-color: var(--tdl-navy);
	color: var(--tdl-white);
}

/* ==========================================================================
   Header
   ========================================================================== */
.tdl-site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: var(--tdl-navy);
	transition: box-shadow .2s ease;
}
.admin-bar .tdl-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tdl-site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tdl-site-header { top: 0; } }
.tdl-site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5); }

.tdl-topbar {
	background: var(--tdl-navy-deep);
	color: rgba(255, 255, 255, .78);
	font-size: 13.5px;
	overflow: hidden;
	max-height: 60px;
	transition: max-height .25s ease;
}
.tdl-site-header.is-scrolled .tdl-topbar { max-height: 0; }
.tdl-topbar__inner { gap: 8px 24px; padding: 8px 0; }
.tdl-topbar p { margin: 0; }
.tdl-topbar__contact { display: flex; gap: 20px; }
.tdl-topbar a { color: var(--tdl-white); text-decoration: none; }
.tdl-topbar a:hover { color: var(--tdl-gold-light); text-decoration: underline; }
.tdl-topbar__phone { font-weight: 700; color: var(--tdl-gold-light) !important; white-space: nowrap; }
.tdl-topbar__review { font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .tdl-topbar__review { display: none; } }
@media (max-width: 860px) {
	.tdl-topbar__note { display: none; }
	.tdl-topbar__inner { justify-content: center !important; }
}

.tdl-header { color: var(--tdl-white); }
.tdl-topbar > .alignwide,
.tdl-header > .alignwide { max-width: 1320px !important; }
.tdl-header__inner { gap: 24px; min-height: var(--tdl-header-h); }
.tdl-logo { flex: 0 0 auto; margin: 0; }
.tdl-logo img { display: block; width: 190px; height: auto; }
@media (max-width: 600px) { .tdl-logo img { width: 150px; } }

/* Primary navigation */
.tdl-nav {
	flex: 1 1 auto;
	color: var(--tdl-white);
	font-size: 14.5px;
	font-weight: 600;
}
.tdl-nav .wp-block-navigation__container { gap: 4px 18px; }
.tdl-nav .wp-block-navigation-item__content {
	color: inherit;
	text-decoration: none;
	padding: 8px 0;
	position: relative;
}
.tdl-nav > .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 2px;
	background: var(--tdl-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}
.tdl-nav .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.tdl-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.tdl-nav .wp-block-navigation-item__content:hover { color: var(--tdl-gold-light); }

/* Dropdowns */
.tdl-nav .wp-block-navigation__submenu-container {
	background: var(--tdl-white) !important;
	color: var(--tdl-navy) !important;
	border: 1px solid var(--tdl-border) !important;
	border-radius: var(--tdl-radius);
	box-shadow: var(--tdl-shadow);
	padding: 10px !important;
	min-width: 220px !important;
	font-weight: 500;
}
.tdl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 12px !important;
	border-radius: 6px;
}
.tdl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--tdl-tint);
	color: var(--tdl-navy);
}
/* Long "Cities We Serve" list becomes a 3-column panel */
@media (min-width: 1024px) {
	.tdl-nav .wp-block-navigation__submenu-container:has(> li:nth-child(10)) {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(150px, 1fr));
		width: min(560px, 90vw) !important;
		right: -120px;
		left: auto !important;
	}
}

/* Hamburger below 1024px (core switches at 600px; 7 menu items need more room) */
.tdl-nav .wp-block-navigation__responsive-container-open {
	color: var(--tdl-white);
	padding: 8px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, .25);
}
@media (max-width: 1023px) {
	.tdl-nav { flex: 0 0 auto; order: 3; }
	.tdl-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.tdl-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.tdl-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--tdl-navy-deep) !important;
	color: var(--tdl-white) !important;
	padding: 24px var(--tdl-gutter) 120px;
}
.tdl-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.tdl-nav .is-menu-open .wp-block-navigation__container,
.tdl-nav .is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	text-align: left;
}
.tdl-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	padding-bottom: 6px;
}
.tdl-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px;
	font-size: 18px;
}
.tdl-nav .is-menu-open .wp-block-navigation__container { gap: 6px !important; }
.tdl-nav .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	color: rgba(255, 255, 255, .85) !important;
	border: 0 !important;
	box-shadow: none;
	padding: 4px 0 8px 12px !important;
	font-size: 16px;
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
	width: 100% !important;
}
.tdl-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 6px 0 !important; }
.tdl-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: transparent; color: var(--tdl-gold-light); }
.tdl-nav .wp-block-navigation__responsive-container-close { color: var(--tdl-white); top: 20px; right: 20px; }

/* Header actions */
.tdl-header__actions { gap: 16px; flex: 0 0 auto; }
.tdl-header__call {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tdl-white);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.tdl-header__call svg { color: var(--tdl-gold); }
.tdl-header__call:hover { color: var(--tdl-gold-light); }
.tdl-header__cta .wp-block-button__link { padding: .75em 1.25em; font-size: 15px; white-space: nowrap; }
/* Desktop (1024px+): the full menu stays on one row. The top bar already shows
   the phone number and a Free Case Review link, so the header can give up space. */
@media (min-width: 1024px) { .tdl-header__call span { display: none; } }
@media (max-width: 1365px) and (min-width: 1024px) {
	.tdl-nav { font-size: 14px; }
	.tdl-nav .wp-block-navigation__container { column-gap: 15px; }
	.tdl-header__inner { gap: 16px; }
	.tdl-logo img { width: 160px; }
	.tdl-header__call { display: none; }
}
@media (max-width: 1199px) and (min-width: 1024px) {
	.tdl-header { padding-left: 20px; padding-right: 20px; }
	.tdl-nav { font-size: 13.5px; }
	.tdl-nav .wp-block-navigation__container { column-gap: 13px; }
	.tdl-logo img { width: 145px; }
	.tdl-header .tdl-header__actions { display: none !important; } /* button lives in the top bar here */
}
@media (max-width: 1023px) { .tdl-header__actions { margin-left: auto; } }
@media (max-width: 600px) {
	.tdl-header__call span { display: none; }
	.tdl-header__call {
		width: 40px; height: 40px; justify-content: center;
		border-radius: 50%; background: var(--tdl-gold); color: var(--tdl-navy-deep);
	}
	.tdl-header__call svg { color: inherit; }
	.tdl-header .tdl-header__cta { display: none !important; } /* beats core's body .is-layout-flex */
	.tdl-header__inner { gap: 12px; min-height: 68px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.wp-block-cover.tdl-hero {
	padding-top: clamp(48px, 7vw, 96px);
	padding-bottom: clamp(48px, 7vw, 96px);
	color: var(--tdl-white);
	align-items: center;
}
.tdl-hero .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(100deg, rgba(21, 29, 43, .94) 0%, rgba(21, 29, 43, .82) 50%, rgba(21, 29, 43, .55) 100%) !important;
}
.tdl-hero .wp-block-cover__inner-container { color: var(--tdl-white); }
.tdl-hero__cols { gap: clamp(32px, 5vw, 72px); }
.tdl-hero__title {
	color: var(--tdl-white) !important;
	font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem);
	line-height: 1.05;
	letter-spacing: -.01em;
	margin: 0 0 1.25rem;
}
.tdl-hero__display {
	font-family: var(--tdl-serif);
	font-weight: 700;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
	line-height: 1.08;
	margin: 0 0 1.25rem;
	color: var(--tdl-white);
}
.tdl-hero__lead {
	font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
	color: rgba(255, 255, 255, .88);
	max-width: 36em;
	margin: 0 0 1.5rem;
}
.tdl-hero__lead strong { color: var(--tdl-gold-light); }
.tdl-hero__buttons { gap: 12px; margin-top: 1.75rem; }
.tdl-hero .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--tdl-white); }
.tdl-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--tdl-white);
	border-color: var(--tdl-white);
	color: var(--tdl-navy);
}
.tdl-hero--page.wp-block-cover { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }

@media (max-width: 781px) {
	.tdl-hero__cols { flex-direction: column; }
	.tdl-hero__cols > .wp-block-column { flex-basis: 100% !important; }
}

/* Checklists */
.tdl-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}
.tdl-checklist li {
	position: relative;
	padding-left: 32px;
	font-weight: 500;
}
.tdl-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--tdl-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23151D2B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tdl-checklist--light li { color: rgba(255, 255, 255, .92); }

/* ==========================================================================
   Form cards (wrap the Pipedrive embeds — the forms themselves are unchanged)
   ========================================================================== */
.tdl-form-card {
	background: var(--tdl-white);
	color: var(--tdl-body);
	border-radius: var(--tdl-radius);
	padding: clamp(20px, 2.4vw, 28px);
	box-shadow: var(--tdl-shadow-lg);
	border-top: 4px solid var(--tdl-gold);
}
.tdl-form-card > * + * { margin-top: .5rem; }
.tdl-form-card__title {
	font-family: var(--tdl-serif);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--tdl-navy);
	line-height: 1.2;
	margin: 0;
}
.tdl-form-card__sub { color: var(--tdl-muted); font-size: 15px; margin: 0 0 .75rem; }
.tdl-form-card__sub a { color: var(--tdl-navy); font-weight: 700; }
.tdl-form-card center > br,
.tdl-entry center > br { display: none; }

.pipedriveWebForms { max-width: 100%; min-height: 120px; box-sizing: border-box; }

/* Native lead forms (inc/lead-forms.php) */
.tdl-form { display: grid; gap: 14px; text-align: left; font-size: 15px; color: var(--tdl-body); scroll-margin-top: calc(var(--tdl-header-h) + 56px); }
.tdl-form > * { margin: 0; }
.tdl-entry .tdl-form {
	background: var(--tdl-white);
	border: 1px solid var(--tdl-border);
	border-top: 4px solid var(--tdl-gold);
	border-radius: var(--tdl-radius);
	box-shadow: var(--tdl-shadow);
	padding: clamp(18px, 2.4vw, 26px);
	margin: 1.5rem auto;
	max-width: 760px;
}
.tdl-form__title { font-family: var(--tdl-serif); font-weight: 700; font-size: 1.4rem; color: var(--tdl-navy); line-height: 1.2; }
.tdl-form__field { display: grid; gap: 6px; }
.tdl-form__field label { font-weight: 600; color: var(--tdl-navy); font-size: 14.5px; line-height: 1.35; }
.tdl-form__req { color: var(--tdl-alert, #B42318); }
.tdl-form__opt { font-weight: 400; color: var(--tdl-muted); }
.tdl-form input[type="text"],
.tdl-form input[type="email"],
.tdl-form input[type="tel"],
.tdl-form input[type="date"],
.tdl-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 16px; /* 16px stops iOS from zooming into the field */
	color: var(--tdl-ink);
	background: var(--tdl-white);
	border: 1px solid #C9C3B6;
	border-radius: var(--tdl-radius-sm);
	padding: 11px 13px;
	min-height: 46px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tdl-form textarea { min-height: 110px; resize: vertical; }
.tdl-form input:focus,
.tdl-form textarea:focus { outline: none; border-color: var(--tdl-navy); box-shadow: 0 0 0 3px rgba(210, 168, 79, .35); }
.tdl-form__money { position: relative; }
.tdl-form__money span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--tdl-muted); pointer-events: none; }
.tdl-form__money input { padding-left: 26px !important; }
.tdl-form input[type="file"] { font-size: 14px; max-width: 100%; }
.tdl-form__hint,
.tdl-form__small { font-size: 13px; color: var(--tdl-muted); line-height: 1.45; }
.tdl-form__notice { font-size: 14px; color: var(--tdl-body); }
.tdl-form__notice a { color: var(--tdl-navy); font-weight: 600; }
.tdl-form__submit {
	width: 100%;
	border: 0;
	cursor: pointer;
	font-size: 17px !important;
	padding: 15px 20px !important;
	background: var(--tdl-navy) !important;
	color: var(--tdl-white) !important;
	border-radius: var(--tdl-radius-sm);
}
.tdl-form__submit:hover { background: var(--tdl-navy-deep) !important; }
.tdl-form__submit:disabled { opacity: .7; cursor: wait; }
.tdl-hero .tdl-form__submit { background: var(--tdl-gold) !important; color: var(--tdl-navy-deep) !important; }
.tdl-hero .tdl-form__submit:hover { background: var(--tdl-gold-light) !important; }
.tdl-form__field.has-error input,
.tdl-form__field.has-error textarea { border-color: #B42318; }
.tdl-form__error { font-size: 13px; color: #B42318; font-weight: 600; }
.tdl-form__status:empty { display: none; }
.tdl-form__status.is-error { color: #B42318; font-weight: 600; font-size: 14px; }
/* Case evaluation page (templates/page-case-evaluation.html): title + form only */
.tdl-caseeval__lead { color: rgba(255, 255, 255, .85); font-size: 1.1rem; margin: 1rem 0 0; }
.tdl-caseeval { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 88px); padding-left: var(--tdl-gutter); padding-right: var(--tdl-gutter); }
.tdl-caseeval .tdl-entry .tdl-form { margin-top: 0; }
body:has(.tdl-caseeval) .tdl-cta-band,
body:has(.tdl-caseeval) .tdl-mobile-cta__review { display: none; }
body:has(.tdl-caseeval) .tdl-mobile-cta { grid-template-columns: 1fr; }
.tdl-form__continue { font-size: 15px; color: var(--tdl-navy); background: var(--tdl-gold-light); border-radius: var(--tdl-radius-sm); padding: 12px 14px; }
.tdl-form__thanks { font-size: 16px; line-height: 1.6; color: var(--tdl-navy); background: var(--tdl-tint); border-left: 4px solid var(--tdl-gold); padding: 16px 18px; border-radius: 0 var(--tdl-radius-sm) var(--tdl-radius-sm) 0; outline: none; }
/* Honeypot: hidden from people, visible to bots */
.tdl-form__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Reserve each Pipedrive form's height before its iframe loads, so the page doesn't
   shift (CLS). Values are just under each form's measured height in every place it
   appears; if a form gains or loses fields in Pipedrive, adjust its number here. */
.pipedriveWebForms[data-pd-webforms*="/f/1r5YinzY"] { min-height: 357px; }   /* hero: Defend the Lawsuit Now */
.pipedriveWebForms[data-pd-webforms*="/f/1ys1DabZ"] { min-height: 1083px; }  /* main case evaluation */
.pipedriveWebForms[data-pd-webforms*="/f/1CtfS3Qq"],
.pipedriveWebForms[data-pd-webforms*="/f/31kNSlv5"],
.pipedriveWebForms[data-pd-webforms*="/f/1FOlxSR6"] { min-height: 1205px; } /* Austin FDCPA, business pages */
.pipedriveWebForms[data-pd-webforms*="/f/1DZA7gk5"] { min-height: 1130px; }  /* Tell Us About Your Case */
.pipedriveWebForms[data-pd-webforms*="/f/1I2fEhh4"] { min-height: 916px; }   /* post-judgment settlement */
.pipedriveWebForms[data-pd-webforms*="/f/32OBWvTd"] { min-height: 860px; }   /* FDCPA city pages */
@media (max-width: 781px) {
	.pipedriveWebForms[data-pd-webforms*="/f/1r5YinzY"] { min-height: 389px; }
	.pipedriveWebForms[data-pd-webforms*="/f/1ys1DabZ"] { min-height: 1132px; }
	.pipedriveWebForms[data-pd-webforms*="/f/32OBWvTd"] { min-height: 896px; }
}
.pipedriveWebForms iframe { max-width: 100%; }

/* site.js adds .tdl-is-sticky only when the whole form fits on screen,
   so a tall form never hides its own Submit button. */
@media (min-width: 1000px) {
	.tdl-is-sticky {
		position: sticky;
		top: calc(var(--tdl-header-h) + 24px);
		align-self: flex-start;
	}
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.tdl-trust {
	background: var(--tdl-white);
	border-bottom: 1px solid var(--tdl-border);
	padding-top: clamp(28px, 4vw, 44px);
	padding-bottom: clamp(28px, 4vw, 44px);
}
.tdl-trust__grid { gap: 0 !important; margin: 0; }
.tdl-trust__grid > .wp-block-column {
	padding: 8px clamp(12px, 2vw, 28px);
	border-left: 1px solid var(--tdl-border);
}
.tdl-trust__grid > .wp-block-column:first-child { border-left: 0; padding-left: 0; }
.tdl-trust__big {
	font-family: var(--tdl-serif);
	font-weight: 700;
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem);
	color: var(--tdl-navy);
	line-height: 1.1;
	margin: 0 0 .35rem;
}
.tdl-trust__label { margin: 0; font-size: 15px; color: var(--tdl-muted); line-height: 1.5; }
@media (max-width: 781px) {
	.tdl-trust__grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 20px 0 !important; }
	.tdl-trust__grid > .wp-block-column { border-left: 0; padding-left: 0; }
	.tdl-trust__grid > .wp-block-column:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--tdl-border); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.tdl-section { padding-top: var(--tdl-section); padding-bottom: var(--tdl-section); }
.tdl-section--tint { background: var(--tdl-tint); }
.tdl-section--navy { background: var(--tdl-navy); color: rgba(255, 255, 255, .86); }
.tdl-section--navy h2,
.tdl-section--navy h3 { color: var(--tdl-white); }
.tdl-section__head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.tdl-section__head--center { text-align: center; margin-left: auto !important; margin-right: auto !important; }
.tdl-section__head--split { max-width: none; gap: 16px; }
.tdl-section__head--split .tdl-text-link { margin: 0 0 .5rem; }
.tdl-section__title { margin: 0; }

/* Card grids */
.tdl-cards { display: grid; gap: clamp(16px, 2vw, 24px); }
.tdl-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tdl-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1099px) { .tdl-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 781px) { .tdl-cards--3, .tdl-cards--4 { grid-template-columns: 1fr; } }
.tdl-cards > * { margin: 0 !important; }

.tdl-card {
	background: var(--tdl-white);
	border: 1px solid var(--tdl-border);
	border-radius: var(--tdl-radius);
	padding: clamp(22px, 2.4vw, 30px);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tdl-card p { margin: .6rem 0 0; font-size: 16px; }
.tdl-card__title { font-size: 1.3rem; margin: 0; }
.tdl-card--link { position: relative; padding-bottom: 56px; }
.tdl-card--link .tdl-card__title a { color: var(--tdl-navy); text-decoration: none; }
.tdl-card--link .tdl-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tdl-card--link::after {
	content: "Learn more \2192";
	position: absolute;
	left: clamp(22px, 2.4vw, 30px);
	bottom: 22px;
	font-size: 15px;
	font-weight: 700;
	color: var(--tdl-gold-text);
}
.tdl-card--link::before {
	content: "";
	display: block;
	width: 40px;
	height: 4px;
	border-radius: 2px;
	background: var(--tdl-gold);
	margin-bottom: 18px;
}
.tdl-card--link:hover { border-color: var(--tdl-gold); box-shadow: var(--tdl-shadow); transform: translateY(-2px); }
.tdl-card--link:focus-within { border-color: var(--tdl-gold); box-shadow: var(--tdl-shadow); }

/* Steps */
.tdl-steps { counter-reset: tdl-step; }
.tdl-step { counter-increment: tdl-step; background: var(--tdl-base); }
.tdl-step::before {
	content: counter(tdl-step);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--tdl-navy);
	color: var(--tdl-gold-light);
	font-family: var(--tdl-serif);
	font-weight: 700;
	font-size: 1.25rem;
	margin-bottom: 18px;
}

/* Pricing */
.tdl-pricing__cols { gap: clamp(32px, 5vw, 64px); }
.tdl-note {
	background: var(--tdl-white);
	border-left: 4px solid var(--tdl-gold);
	padding: 14px 18px;
	border-radius: 0 var(--tdl-radius-sm) var(--tdl-radius-sm) 0;
	color: var(--tdl-navy);
}

/* Tables — homepage price table and tables inside page content */
.wp-block-table table,
.tdl-entry table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	background: var(--tdl-white);
	border: 1px solid var(--tdl-border);
	border-radius: var(--tdl-radius);
	overflow: hidden;
	font-size: 16px;
}
.wp-block-table thead,
.tdl-entry thead { border: 0; }
.wp-block-table th,
.tdl-entry th {
	background: var(--tdl-navy);
	color: var(--tdl-white);
	text-align: left;
	font-weight: 700;
	padding: 14px 18px;
	border: 0;
}
.wp-block-table td,
.tdl-entry td { padding: 12px 18px; border: 0; border-top: 1px solid var(--tdl-border); }
.wp-block-table tbody tr:nth-child(even) td,
.tdl-entry tbody tr:nth-child(even) td { background: var(--tdl-base); }
.wp-block-table td:last-child,
.tdl-entry td:last-child { font-weight: 700; color: var(--tdl-navy); }
.wp-block-table tbody tr:last-child td { background: var(--tdl-gold-light); }

/* Why choose us */
.tdl-why__cols { gap: clamp(32px, 5vw, 72px); }
.tdl-why__photo { margin: 0 auto; max-width: 362px; }
.tdl-why__photo img { border-radius: var(--tdl-radius); box-shadow: var(--tdl-shadow-lg); width: 100%; }
.tdl-why .tdl-section__title { margin-bottom: 1rem; }
.tdl-feature-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 18px; }
.tdl-feature-list li { position: relative; padding-left: 34px; line-height: 1.6; }
.tdl-feature-list li::before {
	content: "";
	position: absolute; left: 0; top: .3em;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--tdl-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23151D2B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tdl-feature-list strong { color: var(--tdl-white); display: block; }
.tdl-why .tdl-text-link a { color: var(--tdl-gold-light); }


/* City grid */
.tdl-city-grid {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
}
.tdl-city-grid li { margin: 0; }
.tdl-city-grid a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 16px;
	background: var(--tdl-white);
	border: 1px solid var(--tdl-border);
	border-radius: var(--tdl-radius-sm);
	color: var(--tdl-navy);
	font-weight: 600;
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.tdl-city-grid a::after { content: "\2192"; color: var(--tdl-gold-text); }
.tdl-city-grid a:hover { border-color: var(--tdl-gold); background: var(--tdl-base); }

/* ==========================================================================
   Post cards / grids
   ========================================================================== */
.tdl-post-grid { gap: clamp(16px, 2vw, 28px) !important; }
@media (max-width: 1000px) { .tdl-post-grid.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .tdl-post-grid.is-layout-grid { grid-template-columns: 1fr !important; } }
.tdl-post-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--tdl-white);
	border: 1px solid var(--tdl-border);
	border-radius: var(--tdl-radius);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.tdl-post-card:hover { box-shadow: var(--tdl-shadow); transform: translateY(-2px); }
.tdl-post-card > * { margin: 0 !important; }
.tdl-post-card__img { margin: 0; background: var(--tdl-tint); }
/* WordPress puts the 16:9 ratio on the <figure>; the image itself must follow it,
   otherwise the square featured images render full-size on phones. */
.tdl-post-card__img,
.tdl-post-card__img a,
.wp-block-post-template .wp-block-post-featured-image,
.wp-block-post-template .wp-block-post-featured-image a { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.tdl-post-card__img img,
.wp-block-post-template .wp-block-post-featured-image img { width: 100% !important; height: 100% !important; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.tdl-post-card__body { padding: 20px 22px 24px; }
.tdl-post-card__body > * + * { margin-top: .5rem; }
.tdl-post-card__date { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tdl-gold-text); }
.tdl-post-card__title { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.tdl-post-card__title a { color: var(--tdl-navy); text-decoration: none; }
.tdl-post-card__title a:hover { color: var(--tdl-gold-text); }
.tdl-post-card__excerpt { font-size: 15px; color: var(--tdl-muted); }
.tdl-post-card__excerpt p { margin: 0; }
.tdl-post-card__excerpt .wp-block-post-excerpt__more-text { display: none; }

.tdl-pagination { margin-top: 40px; gap: 8px; font-weight: 600; }
.tdl-pagination a,
.tdl-pagination .current {
	padding: 8px 14px;
	border-radius: var(--tdl-radius-sm);
	border: 1px solid var(--tdl-border);
	text-decoration: none;
	color: var(--tdl-navy);
}
.tdl-pagination .current { background: var(--tdl-navy); color: var(--tdl-white); border-color: var(--tdl-navy); }

/* ==========================================================================
   Page / post hero bands
   ========================================================================== */
.tdl-page-hero {
	background:
		radial-gradient(1000px 300px at 85% -20%, rgba(210, 168, 79, .18), transparent 60%),
		var(--tdl-navy);
	color: rgba(255, 255, 255, .85);
	padding-top: clamp(40px, 6vw, 80px);
	padding-bottom: clamp(40px, 6vw, 72px);
}
.tdl-page-hero__title { color: var(--tdl-white) !important; margin: 0; }
.tdl-post-meta { gap: 6px 16px; margin-top: 1rem; font-size: 14px; color: rgba(255, 255, 255, .7); }
.tdl-post-meta a { color: var(--tdl-gold-light); text-decoration: none; }
.tdl-search { margin-top: 1.5rem; max-width: 520px; }
.tdl-search .wp-block-search__input { border-radius: var(--tdl-radius-sm); border: 1px solid var(--tdl-border); padding: 10px 14px; }

/* ==========================================================================
   Page & post content (existing content is styled here, never edited)
   ========================================================================== */
.tdl-page,
.tdl-article { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 88px); }

.tdl-entry { font-size: 17.5px; }
.tdl-entry > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.tdl-entry h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); margin: 0 0 1.5rem; }
.tdl-entry h1 em { font-style: normal; }
.tdl-entry h2 { margin-top: 2.25rem; }
.tdl-entry h3 { margin-top: 2rem; margin-bottom: .75rem; }
.tdl-entry h4 { margin-top: 1.5rem; margin-bottom: .5rem; }
.tdl-entry h1:first-child,
.tdl-entry h2:first-child,
.tdl-entry h3:first-child { margin-top: 0; }
.tdl-entry p,
.tdl-entry li { line-height: 1.75; }
.tdl-entry ul,
.tdl-entry ol { padding-left: 1.25em; }
.tdl-entry li + li { margin-top: .35rem; }
.tdl-entry ul li::marker { color: var(--tdl-gold); }
.tdl-entry a { color: var(--tdl-navy); font-weight: 600; }
.tdl-entry a:hover { color: var(--tdl-gold-text); }
.tdl-entry strong { color: var(--tdl-ink); }
.tdl-entry th strong,
.wp-block-table th strong { color: inherit; }
.tdl-entry .wp-block-separator {
	border: 0;
	height: 1px;
	background: var(--tdl-border);
	margin: 2.5rem auto;
	opacity: 1;
}
.tdl-entry .wp-block-quote {
	border-left: 4px solid var(--tdl-gold);
	background: var(--tdl-tint);
	border-radius: 0 var(--tdl-radius-sm) var(--tdl-radius-sm) 0;
	padding: 16px 22px;
	margin: 1.5rem 0;
	font-style: normal;
}
.tdl-entry .wp-block-quote p { margin: 0; }
.tdl-entry .wp-block-table { margin: 1.5rem 0; overflow-x: auto; }
.tdl-entry .wp-block-embed { margin: 2rem 0; }
.tdl-entry .wp-block-embed iframe { border-radius: var(--tdl-radius); }
.tdl-entry .wp-block-image img { border-radius: var(--tdl-radius); }

/* Centered phone-number headings that appear throughout existing content */
.tdl-entry center { display: block; }
.tdl-entry center h2,
.tdl-entry center h3,
.tdl-entry center h4,
.tdl-entry h4.has-text-align-center {
	font-family: var(--tdl-serif);
	color: var(--tdl-navy);
}

.tdl-entry .wp-block-columns { gap: clamp(28px, 4vw, 56px); }

/* Photos added by tdlm_content_photos() */
.tdl-entry .tdl-photo { margin: 0 0 1.5rem; }
.tdl-entry .tdl-photo img {
	width: 100%;
	height: auto;
	border-radius: var(--tdl-radius);
	box-shadow: var(--tdl-shadow);
	display: block;
}
.tdl-entry .tdl-photo--attorney { max-width: 420px; margin-left: auto; margin-right: auto; }
.tdl-entry .tdl-photo--attorney img { aspect-ratio: 362 / 498; object-fit: cover; }
.tdl-entry .tdl-photo--team { margin: 2rem auto; max-width: 900px; }
.tdl-entry .tdl-photo figcaption {
	margin-top: .6rem;
	font-size: 14px;
	color: var(--tdl-muted);
	text-align: center;
}
.tdl-entry .tdl-photo a:hover img { box-shadow: var(--tdl-shadow-lg); }


/* Every Pipedrive form inside content gets the same card treatment */
.tdl-entry .pipedriveWebForms {
	background: var(--tdl-white);
	border: 1px solid var(--tdl-border);
	border-top: 4px solid var(--tdl-gold);
	border-radius: var(--tdl-radius);
	box-shadow: var(--tdl-shadow);
	padding: clamp(14px, 2vw, 22px);
	margin: 1.5rem auto;
	max-width: 760px;
	text-align: left;
}

/* Single post layout */
.tdl-article__cols { gap: clamp(32px, 5vw, 64px); margin-bottom: 0; }
.tdl-article__img { margin: 0 0 2rem; }
.tdl-article__img img { border-radius: var(--tdl-radius); width: 100%; object-fit: cover; }
.tdl-post-nav {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--tdl-border);
	gap: 16px;
	font-weight: 600;
}
.tdl-post-nav a { color: var(--tdl-navy); text-decoration: none; }
.tdl-post-nav a:hover { color: var(--tdl-gold-text); }
.tdl-aside-card {
	background: var(--tdl-navy);
	color: rgba(255, 255, 255, .86);
	border-radius: var(--tdl-radius);
	padding: 28px;
	border-top: 4px solid var(--tdl-gold);
}
@media (min-width: 782px) {
	.tdl-aside-card { position: sticky; top: calc(var(--tdl-header-h) + 24px); }
}
.tdl-aside-card__title { font-family: var(--tdl-serif); font-size: 1.5rem; font-weight: 700; color: var(--tdl-white); line-height: 1.2; margin: 0 0 .5rem; }
.tdl-aside-card p { font-size: 16px; }
.tdl-aside-card__buttons { gap: 10px; margin: 1.25rem 0; }
.tdl-aside-card .is-style-outline > .wp-block-button__link { color: var(--tdl-white); }
.tdl-aside-card .is-style-outline > .wp-block-button__link:hover { background: var(--tdl-white); color: var(--tdl-navy); border-color: var(--tdl-white); }
.tdl-aside-card__links { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 15px; }
.tdl-aside-card__links li + li { margin-top: 8px; }
.tdl-aside-card__links a { color: var(--tdl-gold-light); text-decoration: none; }
.tdl-aside-card__links a:hover { text-decoration: underline; }
.tdl-related { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--tdl-border); }
.tdl-related .tdl-section__title { margin-bottom: 28px; }

.tdl-404 { text-align: left; }
.tdl-404 .wp-block-buttons { gap: 12px; margin: 2rem 0; }

/* ==========================================================================
   CTA band + footer
   ========================================================================== */
.tdl-cta-band {
	background: var(--tdl-gold);
	color: var(--tdl-navy-deep);
	padding-top: clamp(36px, 5vw, 56px);
	padding-bottom: clamp(36px, 5vw, 56px);
}
.tdl-cta-band__inner { gap: 24px; }
.tdl-cta-band .tdl-eyebrow { color: var(--tdl-navy); margin-bottom: .4rem; }
.tdl-cta-band__title {
	font-family: var(--tdl-serif);
	font-weight: 700;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	line-height: 1.2;
	margin: 0;
	max-width: 22em;
}
.tdl-cta-band__buttons { gap: 12px; }
.tdl-cta-band .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--tdl-navy); color: var(--tdl-white); }
.tdl-cta-band .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--tdl-navy-deep); }
.tdl-cta-band .is-style-outline > .wp-block-button__link { color: var(--tdl-navy-deep); }

.tdl-footer {
	background: var(--tdl-navy-deep);
	color: rgba(255, 255, 255, .72);
	font-size: 15px;
	padding-top: clamp(48px, 6vw, 80px);
	padding-bottom: 32px;
}
.tdl-footer__cols { gap: clamp(28px, 4vw, 56px); }
.tdl-footer .wp-block-site-logo img { width: 230px; height: auto; }
.tdl-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.tdl-footer a:hover { color: var(--tdl-gold-light); text-decoration: underline; }
.tdl-footer__heading {
	font-family: var(--tdl-sans);
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tdl-gold) !important;
	margin: 0 0 1rem;
}
.tdl-footer__links ul { list-style: none; padding: 0; margin: 0; }
.tdl-footer__links li + li { margin-top: 10px; }
.tdl-footer__contact { line-height: 1.8; }
.tdl-footer__contact a:first-child { font-family: var(--tdl-serif); font-size: 1.5rem; font-weight: 700; color: var(--tdl-white); }
.tdl-footer__contact span { font-size: 14px; color: rgba(255, 255, 255, .6); }
.tdl-footer__small { font-size: 14px; color: rgba(255, 255, 255, .55); }
.tdl-footer__legal {
	margin-top: clamp(40px, 5vw, 56px);
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}
.tdl-footer__disclaimer { font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .55); max-width: 1000px; margin: 0 0 12px; }
.tdl-footer__copy { font-size: 13px; color: rgba(255, 255, 255, .55); margin: 0; }

@media (max-width: 781px) {
	.tdl-footer__cols { display: grid !important; grid-template-columns: 1fr 1fr; }
	.tdl-footer__brand,
	.tdl-footer__office { grid-column: 1 / -1; }
}

/* Mobile quick-contact bar */
.tdl-mobile-cta { display: none; }
@media (max-width: 781px) {
	.tdl-mobile-cta {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 95;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		background: var(--tdl-navy-deep);
		box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, .4);
	}
	.tdl-mobile-cta a {
		display: flex; align-items: center; justify-content: center; gap: 8px;
		min-height: 48px;
		border-radius: var(--tdl-radius-sm);
		font-weight: 700; font-size: 16px; text-decoration: none;
	}
	.tdl-mobile-cta__call { background: transparent; color: var(--tdl-white); border: 2px solid rgba(255, 255, 255, .35); }
	.tdl-mobile-cta__review { background: var(--tdl-gold); color: var(--tdl-navy-deep); }
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

	/* Pipedrive LeadBooster chat bubble: sit above the bar instead of covering it.
	   (Its own CSS pins it to bottom: 0 on phones; the open chat stays full-screen.) */
	html body iframe#LeadboosterContainer:not(.openedChat) {
		bottom: calc(76px + env(safe-area-inset-bottom)) !important; /* bar is 68px + 8px gap */
	}
}

/* Old theme helpers that no longer apply */
.wow { visibility: visible !important; }
