/*
 * Texas Probate Real Estate — global stylesheet for component-level styles.
 * Layout, color, and typography tokens live in theme.json. Anything reused
 * across patterns (buttons, badges, header/footer chrome, accordion rules,
 * responsive overrides) lives here.
 *
 * Naming: BEM with `tpre-` prefix to avoid collision with the Twenty
 * Twenty-Five parent and any third-party plugin styles.
 */

/* ──────────────────────────────────────────────────────────────
 * Editorial type system
 * Serif (Source Serif 4) on display/headings, sans (Inter) for body
 * and UI. Keeps a calm, professional feel without italic-gold devices
 * borrowed from Kritt — the contrast itself is the brand voice.
 * ────────────────────────────────────────────────────────────── */
body {
	font-feature-settings: "ss01", "kern", "liga";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, .wp-block-heading,
.tpre-hero__title,
.tpre-hero__card-name {
	font-family: var(--wp--preset--font-family--source-serif);
	font-feature-settings: "ss01", "kern", "liga", "onum";
}

/* Eyebrows + UI labels stay sans for contrast against the serif. */
.tpre-eyebrow,
.tpre-stat__label,
.tpre-faq__group-title,
.tpre-case-study__kicker,
.tpre-hero__card-title {
	font-family: var(--wp--preset--font-family--inter);
}

/* ──────────────────────────────────────────────────────────────
 * Mobile sticky contact bar — Call + Text, anchored bottom on
 * mobile/tablet only. Desktop gets the floating call card instead.
 * ────────────────────────────────────────────────────────────── */
.tpre-mobile-bar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	height: 64px;
	padding-bottom: env(safe-area-inset-bottom);
}
.tpre-mobile-bar__btn {
	position: relative;
	overflow: hidden;
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0 16px;
	height: 100%;
	min-height: 64px;
	transition: background 0.3s ease, color 0.3s ease;
}
.tpre-mobile-bar__btn > * {
	position: relative;
	z-index: 1;
}
.tpre-mobile-bar__btn svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
.tpre-mobile-bar__btn--call {
	background: var(--wp--preset--color--gold);
	color: #fff;
}
.tpre-mobile-bar__btn--call:hover,
.tpre-mobile-bar__btn--call:focus-visible {
	background: var(--wp--preset--color--gold-hover);
	color: #fff;
	outline: none;
}
/* Subtle shimmer sweep on the call button — gentle on the lighter brand */
.tpre-mobile-bar__btn--call::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 -60%;
	width: 60%;
	background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
	pointer-events: none;
	animation: tpre-call-shimmer 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
	z-index: 0;
}
@keyframes tpre-call-shimmer {
	0%, 15%  { left: -60%; opacity: 0; }
	25%      { opacity: 1; }
	65%      { left: 110%; opacity: 0; }
	100%     { left: 110%; opacity: 0; }
}
.tpre-mobile-bar__btn--text {
	background: var(--wp--preset--color--navy);
	color: #fff;
}
.tpre-mobile-bar__btn--text:hover,
.tpre-mobile-bar__btn--text:focus-visible {
	background: var(--wp--preset--color--navy-deep);
	color: #fff;
	outline: none;
}
@media (max-width: 999px) {
	.tpre-mobile-bar {
		display: flex;
	}
	body {
		padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
	}
}

/* ──────────────────────────────────────────────────────────────
 * Desktop floating call card — appears bottom-right after the user
 * scrolls past the hero. Cream-card adaptation of the Kritt sibling
 * pattern (which is dark/dramatic). Hidden on form/legal pages.
 * ────────────────────────────────────────────────────────────── */
.tpre-call-card {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 800;
	width: 308px;
	padding: 26px 28px 28px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-top: 3px solid var(--wp--preset--color--gold);
	border-radius: 8px;
	box-shadow:
		0 32px 64px -16px rgba(20, 42, 69, 0.18),
		0 12px 32px -8px rgba(212, 168, 75, 0.18),
		0 0 0 1px rgba(212, 168, 75, 0.10);
	opacity: 0;
	transition: opacity 0.7s ease, transform 0.3s ease, box-shadow 0.3s ease;
	pointer-events: none;
	display: none;
}
.tpre-call-card.is-visible {
	opacity: 1;
	pointer-events: auto;
}
.tpre-call-card.is-visible:hover {
	transform: translateY(-2px);
	box-shadow:
		0 36px 72px -16px rgba(20, 42, 69, 0.24),
		0 16px 40px -8px rgba(212, 168, 75, 0.28),
		0 0 0 1px rgba(212, 168, 75, 0.18);
}
@media (min-width: 1000px) {
	.tpre-call-card:not([hidden]) {
		display: block;
	}
}
@media (max-width: 999px) {
	.tpre-call-card {
		display: none !important;
	}
}

.tpre-call-card__dismiss {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: var(--wp--preset--color--bg-light-alt);
	border: 1px solid var(--wp--preset--color--border-subtle);
	color: var(--wp--preset--color--text-muted);
	cursor: pointer;
	border-radius: 50%;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tpre-call-card__dismiss svg {
	width: 14px;
	height: 14px;
}
.tpre-call-card__dismiss:hover,
.tpre-call-card__dismiss:focus-visible {
	color: #fff;
	background: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold);
	transform: scale(1.08);
	outline: none;
}

.tpre-call-card__eyebrow {
	margin: 0 0 18px !important;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted) !important;
	display: flex;
	align-items: center;
	gap: 14px;
}
.tpre-call-card__eyebrow em {
	font-style: normal;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--source-serif);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	font-size: 1rem;
}
.tpre-call-card__pulse {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	background: rgba(212, 168, 75, 0.18);
	color: var(--wp--preset--color--gold);
	border-radius: 50%;
	animation: tpre-call-card-pulse 2.4s ease-in-out infinite;
	box-shadow: 0 0 0 0 rgba(212, 168, 75, 0.7);
}
.tpre-call-card__pulse svg {
	width: 16px;
	height: 16px;
}
@keyframes tpre-call-card-pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(212, 168, 75, 0.7);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 0 0 12px rgba(212, 168, 75, 0);
		transform: scale(1.08);
	}
}

.tpre-call-card__phone,
.tpre-call-card__phone:hover,
.tpre-call-card__phone:focus,
.tpre-call-card__phone:focus-visible,
.tpre-call-card__phone:active {
	text-decoration: none !important;
}
.tpre-call-card__phone {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	font-family: var(--wp--preset--font-family--source-serif);
	font-size: 1.625rem;
	letter-spacing: 0.005em;
	line-height: 1.1;
	color: var(--wp--preset--color--navy) !important;
	transition: color 0.3s ease;
}
.tpre-call-card__phone-arrow {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1.125rem;
	line-height: 1;
	color: var(--wp--preset--color--gold);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.tpre-call-card__phone:hover,
.tpre-call-card__phone:focus-visible {
	color: var(--wp--preset--color--navy-deep) !important;
}
.tpre-call-card__phone:hover .tpre-call-card__phone-arrow,
.tpre-call-card__phone:focus-visible .tpre-call-card__phone-arrow {
	transform: translateX(4px);
	color: var(--wp--preset--color--gold-hover);
}
.tpre-call-card__phone:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.tpre-call-card { transition: opacity 0.2s ease; }
	.tpre-call-card__pulse { animation: none; }
	.tpre-mobile-bar__btn--call::before { animation: none; }
}

/* ──────────────────────────────────────────────────────────────
 * Skip-link (a11y)
 * ────────────────────────────────────────────────────────────── */
.tpre-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 12px 16px;
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.tpre-skip-link:focus {
	left: 16px;
	top: 16px;
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

/* ──────────────────────────────────────────────────────────────
 * Header
 * ────────────────────────────────────────────────────────────── */
.tpre-header__title a {
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
}

/* Primary nav — plain anchors inside an <html> block, so we control styling here. */
.tpre-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 0.9375rem;
	font-weight: 500;
}
.tpre-nav a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: color 160ms ease;
	white-space: nowrap;
}
.tpre-nav a:hover,
.tpre-nav a[aria-current="page"] {
	color: var(--wp--preset--color--navy);
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1.5px;
}

/* Hamburger toggle — hidden on desktop, shown ≤ 880px. */
.tpre-nav-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 8px;
	cursor: pointer;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	transition: background 200ms ease, border-color 200ms ease;
}
.tpre-nav-toggle:hover,
.tpre-nav-toggle:focus-visible {
	background: var(--wp--preset--color--bg-light-alt);
	border-color: var(--wp--preset--color--gold);
	outline: none;
}
.tpre-nav-toggle__bar {
	display: block;
	width: 18px;
	height: 1.5px;
	margin: 2.5px 0;
	background: var(--wp--preset--color--text);
	border-radius: 1px;
	transition: transform 200ms ease, opacity 200ms ease, background 200ms ease;
}
.tpre-nav-toggle[aria-expanded="true"] .tpre-nav-toggle__bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}
.tpre-nav-toggle[aria-expanded="true"] .tpre-nav-toggle__bar:nth-child(2) {
	opacity: 0;
}
.tpre-nav-toggle[aria-expanded="true"] .tpre-nav-toggle__bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Mobile breakpoint: hide desktop nav + phone-CTA text, show hamburger. */
@media (max-width: 980px) {
	.tpre-nav { gap: 18px; font-size: 14px; }
}
@media (max-width: 880px) {
	.tpre-nav { display: none; }
	.tpre-nav-toggle { display: inline-flex; }
}

/* ──────────────────────────────────────────────────────────────
 * Mobile slide-in menu (full-screen overlay).
 * Triggered by .tpre-nav-toggle. Body gets `is-tpre-menu-open` class
 * when active so we can lock scroll.
 * ────────────────────────────────────────────────────────────── */
.tpre-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 1000;
}
.tpre-mobile-menu[hidden] {
	display: none !important;
}
.tpre-mobile-menu__scrim {
	position: absolute;
	inset: 0;
	background: rgba(20, 42, 69, 0.4);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity 240ms ease;
}
.tpre-mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(360px, 88vw);
	background: var(--wp--preset--color--bg-light);
	box-shadow: -16px 0 48px -16px rgba(20, 42, 69, 0.18);
	transform: translateX(100%);
	transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	padding: 20px 24px 32px;
}
.tpre-mobile-menu.is-open .tpre-mobile-menu__scrim {
	opacity: 1;
}
.tpre-mobile-menu.is-open .tpre-mobile-menu__panel {
	transform: translateX(0);
}

.tpre-mobile-menu__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 20px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
}
.tpre-mobile-menu__brand {
	margin: 0;
	font-family: var(--wp--preset--font-family--source-serif);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--wp--preset--color--text);
}
.tpre-mobile-menu__close {
	width: 36px;
	height: 36px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 50%;
	color: var(--wp--preset--color--text-soft);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.tpre-mobile-menu__close svg {
	width: 16px;
	height: 16px;
}
.tpre-mobile-menu__close:hover,
.tpre-mobile-menu__close:focus-visible {
	color: #fff;
	background: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold);
	outline: none;
}

.tpre-mobile-menu__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	margin-bottom: 24px;
}
.tpre-mobile-menu__nav a {
	display: block;
	padding: 14px 8px;
	font-family: var(--wp--preset--font-family--source-serif);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
	transition: color 200ms ease, padding-left 200ms ease;
}
.tpre-mobile-menu__nav a:hover,
.tpre-mobile-menu__nav a:focus-visible,
.tpre-mobile-menu__nav a[aria-current="page"] {
	color: var(--wp--preset--color--navy);
	padding-left: 14px;
	outline: none;
}
.tpre-mobile-menu__nav a[aria-current="page"] {
	border-bottom-color: var(--wp--preset--color--gold);
}

.tpre-mobile-menu__cta {
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--border-subtle);
}

body.is-tpre-menu-open {
	overflow: hidden;
}

/* Hide the header phone-CTA's text label on small screens to make room
 * for the hamburger; the gold pill + icon still works as a tap target. */
@media (max-width: 880px) {
	.tpre-header__phone span { display: none; }
	.tpre-header__phone {
		padding: 10px 12px !important;
	}
}

.tpre-header__phone {
	white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────
 * Buttons — gold primary, navy secondary, both with optional icon
 * ────────────────────────────────────────────────────────────── */
.wp-block-button.is-style-tpre-gold .wp-block-button__link,
.tpre-btn--gold {
	background: var(--wp--preset--color--gold);
	color: #fff;
	border-radius: 6px;
	padding: 14px 28px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: background-color 160ms ease, transform 160ms ease;
	border: none;
	cursor: pointer;
}
.wp-block-button.is-style-tpre-gold .wp-block-button__link:hover,
.tpre-btn--gold:hover {
	background: var(--wp--preset--color--gold-hover);
	color: #fff;
	transform: translateY(-1px);
}

.wp-block-button.is-style-tpre-navy .wp-block-button__link,
.tpre-btn--navy {
	background: var(--wp--preset--color--navy);
	color: #fff;
	border-radius: 6px;
	padding: 14px 28px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: background-color 160ms ease, transform 160ms ease;
	border: none;
}
.wp-block-button.is-style-tpre-navy .wp-block-button__link:hover,
.tpre-btn--navy:hover {
	background: var(--wp--preset--color--navy-deep);
	color: #fff;
	transform: translateY(-1px);
}

.tpre-btn__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────────
 * Navy circular icon badges (used in service cards, problem grid,
 * "What to Expect" rows, etc.)
 * ────────────────────────────────────────────────────────────── */
.tpre-badge {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--gold);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.tpre-badge svg {
	width: 26px;
	height: 26px;
}
.tpre-badge--sm {
	width: 44px;
	height: 44px;
}
.tpre-badge--sm svg {
	width: 20px;
	height: 20px;
}

/* ──────────────────────────────────────────────────────────────
 * Eyebrow label — small caps tag above headings.
 * Uses a gold rule on the left for editorial weight.
 * ────────────────────────────────────────────────────────────── */
.tpre-eyebrow {
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--gold);
	margin: 0 0 16px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.tpre-eyebrow::before {
	content: "";
	display: inline-block;
	width: 32px;
	height: 1px;
	background: currentColor;
	flex-shrink: 0;
}
/* Centered eyebrows (in section headers) get a rule on both sides */
[style*="text-align:center"] .tpre-eyebrow,
.has-text-align-center.tpre-eyebrow,
p.tpre-eyebrow[style*="text-align:center"] {
	display: inline-flex;
}
[style*="text-align:center"] .tpre-eyebrow::after,
p.tpre-eyebrow[style*="text-align:center"]::after {
	content: "";
	display: inline-block;
	width: 32px;
	height: 1px;
	background: currentColor;
	flex-shrink: 0;
}

/* Editorial drop accent — gold italic span for understated emphasis.
 * Use sparingly. Distinct from Kritt's italic-gold pattern (which is on
 * a black bg); here it's restrained against cream. */
.tpre-accent {
	font-style: italic;
	color: var(--wp--preset--color--gold);
	font-feature-settings: "ss01";
}

/* ──────────────────────────────────────────────────────────────
 * Section helpers — cream / cream-alt / navy ribbon
 * ────────────────────────────────────────────────────────────── */
.tpre-section {
	padding-top: var(--wp--preset--spacing--section-y);
	padding-bottom: var(--wp--preset--spacing--section-y);
}
.tpre-section--cream { background: var(--wp--preset--color--bg-light); }
.tpre-section--cream-alt { background: var(--wp--preset--color--bg-light-alt); }
.tpre-section--navy {
	background: var(--wp--preset--color--navy);
	color: #fff;
}
.tpre-section--navy h1,
.tpre-section--navy h2,
.tpre-section--navy h3,
.tpre-section--navy p {
	color: #fff;
}

/* ──────────────────────────────────────────────────────────────
 * Hero — cream backdrop, two-column on desktop, stacks on mobile
 * ────────────────────────────────────────────────────────────── */
/* ──────────────────────────────────────────────────────────────
 * Hero — editorial layout. Asymmetric two-column on desktop.
 * Light cream bg with a warm gold drift glow + navy counterpoint
 * (sibling pattern to Kritt's hero, adapted to the lighter brand).
 * ────────────────────────────────────────────────────────────── */
.tpre-hero {
	/* Always pair this class with `alignfull` so WP's constrained-layout
	 * selector lets it span the full viewport. Otherwise the parent
	 * <main class="is-layout-constrained"> caps it at content-size. */
	background: var(--wp--preset--color--bg-light);
	padding: var(--wp--preset--spacing--section-y-lg) 0;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.tpre-hero::before {
	content: "";
	position: absolute;
	inset: -20% auto auto -10%;
	width: 65%;
	height: 80%;
	background: radial-gradient(ellipse at center, rgba(212, 168, 75, 0.18) 0%, rgba(212, 168, 75, 0.05) 50%, transparent 75%);
	pointer-events: none;
	z-index: -1;
}
.tpre-hero::after {
	content: "";
	position: absolute;
	inset: auto -15% -25% auto;
	width: 55%;
	height: 70%;
	background: radial-gradient(ellipse at center, rgba(31, 55, 86, 0.06) 0%, rgba(31, 55, 86, 0) 65%);
	pointer-events: none;
	z-index: -1;
}
.tpre-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--wp--preset--spacing--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 80px;
	align-items: center;
}
.tpre-hero__title {
	font-family: var(--wp--preset--font-family--source-serif);
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	line-height: 1.04;
	font-weight: 500;
	letter-spacing: -0.022em;
	margin: 0 0 28px;
	color: var(--wp--preset--color--text);
}
.tpre-hero__title em {
	font-style: italic;
	font-weight: 500;
	color: var(--wp--preset--color--navy);
}
.tpre-hero__sub {
	font-family: var(--wp--preset--font-family--inter);
	font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
	line-height: 1.6;
	color: var(--wp--preset--color--text-soft);
	margin: 0 0 36px;
	max-width: 52ch;
}
.tpre-hero__ctas {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* Video frame — bordered with bracket corners, hover lifts the shadow */
.tpre-hero__video {
	position: relative;
	margin: 0;
	padding: 0;
}
.tpre-hero__video-frame {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	border: 1px solid rgba(212, 168, 75, 0.4);
	background: var(--wp--preset--color--navy-deep);
	transition: border-color 320ms ease, box-shadow 320ms ease, transform 320ms ease;
	box-shadow: 0 24px 48px -16px rgba(20, 42, 69, 0.18);
}
.tpre-hero__video-frame iframe,
.tpre-hero__video-frame .tpre-video-facade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.tpre-hero__video:hover .tpre-hero__video-frame {
	border-color: var(--wp--preset--color--gold);
	box-shadow: 0 32px 64px -16px rgba(20, 42, 69, 0.28);
}

/* Gold L-shape brackets at top-left + bottom-right.
 * Signature element shared with the Kritt sibling site. */
.tpre-bracket {
	position: absolute;
	width: 32px;
	height: 32px;
	pointer-events: none;
	z-index: 2;
	transition: width 320ms ease, height 320ms ease;
}
.tpre-bracket--tl {
	top: -8px;
	left: -8px;
	border-top: 1.5px solid var(--wp--preset--color--gold);
	border-left: 1.5px solid var(--wp--preset--color--gold);
}
.tpre-bracket--br {
	bottom: -8px;
	right: -8px;
	border-bottom: 1.5px solid var(--wp--preset--color--gold);
	border-right: 1.5px solid var(--wp--preset--color--gold);
}
.tpre-hero__video:hover .tpre-bracket {
	width: 40px;
	height: 40px;
}

/* Caption beneath the video — serif name with italic title */
.tpre-hero__caption {
	margin: 22px 0 0;
	text-align: center;
	font-family: var(--wp--preset--font-family--source-serif);
	font-size: 1.0625rem;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--text-soft);
}
.tpre-hero__caption em {
	font-style: italic;
	color: var(--wp--preset--color--navy);
}

/* Click-to-play video facade — thumbnail + play button, swaps to iframe
 * on click. Avoids the "We couldn't load this video" fallback users get
 * when an autoplay-muted iframe is blocked. */
.tpre-video-facade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: var(--wp--preset--color--navy-deep);
	overflow: hidden;
}
.tpre-video-facade__btn {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: block;
}
.tpre-video-facade__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tpre-video-facade__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 42, 69, 0) 35%, rgba(20, 42, 69, 0.55) 100%);
	pointer-events: none;
	transition: opacity 320ms ease;
}
.tpre-video-facade__cue {
	position: absolute;
	left: 22px;
	bottom: 20px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	transition: gap 320ms ease;
}
.tpre-video-facade__cue-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(212, 168, 75, 0.45);
	transition: transform 320ms ease, background-color 320ms ease;
}
.tpre-video-facade__cue-icon svg {
	width: 18px;
	height: 18px;
	margin-left: 3px; /* optical centering of triangle */
}
.tpre-video-facade__cue-label {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.tpre-video-facade__btn:hover .tpre-video-facade__cue,
.tpre-video-facade__btn:focus-visible .tpre-video-facade__cue {
	gap: 16px;
}
.tpre-video-facade__btn:hover .tpre-video-facade__cue-icon,
.tpre-video-facade__btn:focus-visible .tpre-video-facade__cue-icon {
	transform: scale(1.06);
	background: var(--wp--preset--color--gold-hover);
}
.tpre-video-facade__btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 4px;
}

@media (max-width: 980px) {
	.tpre-hero {
		padding: var(--wp--preset--spacing--section-y) 0;
	}
	.tpre-hero__inner {
		grid-template-columns: 1fr;
		gap: 48px;
	}
	.tpre-hero__title {
		font-size: clamp(2.25rem, 7vw, 3.25rem);
	}
}

/* ──────────────────────────────────────────────────────────────
 * Problem grid — "Navigating Probate Sales Can Be Overwhelming"
 * 4 short pain points with navy icon badges
 * ────────────────────────────────────────────────────────────── */
.tpre-problem-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	max-width: 880px;
	margin: 0 auto;
}
.tpre-problem-grid--3up {
	grid-template-columns: repeat(3, 1fr);
	max-width: 1080px;
}
@media (max-width: 980px) {
	.tpre-problem-grid--3up { grid-template-columns: repeat(2, 1fr); }
}
.tpre-problem-grid__item {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 10px;
	padding: 24px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.tpre-problem-grid__item p {
	margin: 0;
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--text-soft);
}
@media (max-width: 700px) {
	.tpre-problem-grid {
		grid-template-columns: 1fr;
	}
}

/* ──────────────────────────────────────────────────────────────
 * Service cards — used on /services and homepage overview
 * ────────────────────────────────────────────────────────────── */
.tpre-service-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	max-width: 1040px;
	margin: 0 auto;
}

/* Numbered process list (used on referral + statewide pages) */
.tpre-process {
	max-width: 800px;
	margin: 24px auto;
	padding: 0;
	list-style: none;
	counter-reset: tpre-process;
}
.tpre-process li {
	counter-increment: tpre-process;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 8px;
	padding: 18px 22px 18px 64px;
	margin-bottom: 12px;
	position: relative;
	color: var(--wp--preset--color--text-soft);
	line-height: 1.55;
}
.tpre-process li::before {
	content: counter(tpre-process);
	position: absolute;
	top: 50%;
	left: 18px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold);
	color: #fff;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Case studies — long-form layout with numbered header + 4 sections + gold takeaway */
.tpre-case-study {
	max-width: 880px;
	margin: 0 auto;
}
.tpre-case-study__header {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 24px;
	align-items: start;
	margin-bottom: 32px;
}
.tpre-case-study__num {
	font-size: 56px;
	font-weight: 700;
	color: var(--wp--preset--color--gold);
	line-height: 1;
	letter-spacing: -0.02em;
}
.tpre-case-study__kicker {
	font-size: var(--wp--preset--font-size--eyebrow);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 4px;
}
.tpre-case-study__header h2 {
	font-size: var(--wp--preset--font-size--h-2-sm);
	margin: 0;
	color: var(--wp--preset--color--navy);
	line-height: 1.2;
}
.tpre-case-study__meta {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 8px;
	padding: 18px 22px;
	margin-bottom: 32px;
}
.tpre-case-study__meta dl {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.tpre-case-study__meta dt {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 600;
	color: var(--wp--preset--color--text-muted);
	margin-bottom: 2px;
}
.tpre-case-study__meta dd {
	margin: 0;
	font-weight: 600;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--body-sm);
}
.tpre-case-study__section {
	margin-bottom: 28px;
}
.tpre-case-study__section h3 {
	color: var(--wp--preset--color--gold);
	font-size: var(--wp--preset--font-size--h-3);
	margin: 0 0 8px;
	padding-left: 14px;
	border-left: 3px solid var(--wp--preset--color--gold);
}
.tpre-case-study__section p,
.tpre-case-study__section li {
	color: var(--wp--preset--color--text-soft);
	line-height: 1.65;
}
.tpre-case-study__section ul {
	padding-left: 28px;
}
.tpre-case-study__section--solution {
	background: #FBF8F0;
	border-radius: 8px;
	padding: 20px 22px;
}
.tpre-case-study__takeaway {
	background: var(--wp--preset--color--gold);
	color: #fff;
	border-radius: 8px;
	padding: 22px 26px;
	margin-top: 8px;
}
.tpre-case-study__takeaway p { color: #fff; line-height: 1.55; margin: 0; }
.tpre-case-study__takeaway-label {
	font-size: var(--wp--preset--font-size--eyebrow);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
	margin: 0 0 6px !important;
	opacity: 0.9;
}
@media (max-width: 700px) {
	.tpre-case-study__num { font-size: 40px; }
	.tpre-case-study__meta dl { grid-template-columns: 1fr; gap: 8px; }
}

/* About page belief grid (4 short principle cards, gold-rule top) */
.tpre-belief-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	max-width: 920px;
	margin: 0 auto;
}
.tpre-belief {
	background: #fff;
	border-top: 3px solid var(--wp--preset--color--gold);
	border-radius: 4px;
	padding: 24px 26px;
	box-shadow: 0 1px 0 var(--wp--preset--color--border-subtle);
}
.tpre-belief h3 {
	margin: 0 0 8px;
	color: var(--wp--preset--color--navy);
	font-size: var(--wp--preset--font-size--h-3);
}
.tpre-belief p {
	margin: 0;
	color: var(--wp--preset--color--text-soft);
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: 1.55;
}
@media (max-width: 700px) {
	.tpre-belief-grid { grid-template-columns: 1fr; }
}

/* Home overview grid (4 high-level cards, vertical layout) */
.tpre-overview-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}
.tpre-overview-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 10px;
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tpre-overview-card h3 {
	font-size: var(--wp--preset--font-size--h-3);
	margin: 8px 0 0;
}
.tpre-overview-card p {
	margin: 0;
	font-size: var(--wp--preset--font-size--body-sm);
	color: var(--wp--preset--color--text-soft);
	line-height: 1.55;
}
@media (max-width: 1080px) {
	.tpre-overview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.tpre-overview-grid { grid-template-columns: 1fr; }
}
.tpre-service-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 10px;
	padding: 28px;
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 20px;
	align-items: start;
}
.tpre-service-card h3 {
	font-size: var(--wp--preset--font-size--h-3);
	margin: 0 0 8px;
	line-height: 1.25;
}
.tpre-service-card p {
	margin: 0;
	font-size: var(--wp--preset--font-size--body-sm);
	color: var(--wp--preset--color--text-soft);
	line-height: 1.55;
}
@media (max-width: 760px) {
	.tpre-service-grid {
		grid-template-columns: 1fr;
	}
}

/* ──────────────────────────────────────────────────────────────
 * Testimonial cards — Google reviews layout
 * ────────────────────────────────────────────────────────────── */
.tpre-testimonial-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
}
.tpre-testimonial {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 10px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: var(--wp--preset--font-size--body-sm);
}
.tpre-testimonial__head {
	display: flex;
	gap: 10px;
	align-items: center;
}
.tpre-testimonial__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
}
.tpre-testimonial__name {
	font-weight: 600;
	margin: 0;
	line-height: 1.2;
}
.tpre-testimonial__source {
	font-size: 13px;
	color: var(--wp--preset--color--text-muted);
}
.tpre-testimonial__stars {
	color: var(--wp--preset--color--gold);
	letter-spacing: 1px;
	font-size: 14px;
}
.tpre-testimonial__quote {
	margin: 0;
	color: var(--wp--preset--color--text-soft);
	line-height: 1.5;
}
.tpre-testimonial__more {
	color: var(--wp--preset--color--navy);
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	margin-top: auto;
}
@media (max-width: 1080px) {
	.tpre-testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
	.tpre-testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.tpre-testimonial-grid { grid-template-columns: 1fr; }
}

/* Google reviews summary card (used on Reviews page) */
.tpre-google-summary {
	background: #fff;
	border-radius: 999px;
	padding: 12px 24px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 auto;
	font-weight: 600;
	color: var(--wp--preset--color--text);
}
.tpre-google-summary__logo {
	width: 22px;
	height: 22px;
}

/* ──────────────────────────────────────────────────────────────
 * Stat row (About page: "Nearly 10 / 100s / 6")
 * ────────────────────────────────────────────────────────────── */
.tpre-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 760px;
	margin: 0 auto;
	padding: 32px 0;
	border-top: 1px solid var(--wp--preset--color--border-subtle);
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
}
.tpre-stat {
	text-align: center;
}
.tpre-stat__value {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	margin: 0 0 4px;
	letter-spacing: -0.01em;
}
.tpre-stat__label {
	font-size: var(--wp--preset--font-size--eyebrow);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--text-muted);
	font-weight: 600;
}
@media (max-width: 600px) {
	.tpre-stats { grid-template-columns: 1fr; gap: 16px; }
}

/* ──────────────────────────────────────────────────────────────
 * Strategy session 3-step plan
 * ────────────────────────────────────────────────────────────── */
.tpre-plan {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 1040px;
	margin: 0 auto;
}
.tpre-plan__step {
	text-align: center;
	padding: 8px;
}
.tpre-plan__num {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold);
	color: #fff;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	font-size: 18px;
}
.tpre-plan__step h3 {
	font-size: var(--wp--preset--font-size--h-3);
	margin: 0 0 8px;
}
.tpre-plan__step p {
	margin: 0;
	color: var(--wp--preset--color--text-soft);
	font-size: var(--wp--preset--font-size--body-sm);
}
@media (max-width: 760px) {
	.tpre-plan { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────
 * Contact CTA card (cream bg block with gold + navy buttons)
 * ────────────────────────────────────────────────────────────── */
.tpre-contact-cta {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}
.tpre-contact-cta__buttons {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 24px 0 16px;
	flex-wrap: wrap;
}
.tpre-contact-cta__phone {
	font-weight: 700;
	color: var(--wp--preset--color--text);
	letter-spacing: 0.02em;
}

/* ──────────────────────────────────────────────────────────────
 * FAQ accordion — uses native <details>/<summary>
 * ────────────────────────────────────────────────────────────── */
.tpre-faq {
	max-width: 880px;
	margin: 0 auto;
}
.tpre-faq__group {
	margin-bottom: 32px;
}
.tpre-faq__group-title {
	font-size: var(--wp--preset--font-size--eyebrow);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: var(--wp--preset--color--gold);
	margin: 0 0 12px;
}
.tpre-faq details {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 8px;
	margin-bottom: 10px;
	transition: box-shadow 160ms ease;
}
.tpre-faq details[open] {
	box-shadow: 0 4px 16px rgba(20, 42, 69, 0.06);
}
.tpre-faq summary {
	padding: 18px 22px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}
.tpre-faq summary::-webkit-details-marker { display: none; }
.tpre-faq summary::after {
	content: "+";
	color: var(--wp--preset--color--gold);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
}
.tpre-faq details[open] summary::after {
	content: "−";
}
.tpre-faq__body {
	padding: 0 22px 20px;
	color: var(--wp--preset--color--text-soft);
	line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────
 * Footer
 * ────────────────────────────────────────────────────────────── */
.tpre-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 32px;
	max-width: 1200px;
	margin: 0 auto;
	flex-wrap: wrap;
}
.tpre-footer__name {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--body-lg);
	margin: 0 0 4px;
	color: var(--wp--preset--color--text);
}
.tpre-footer__tag {
	margin: 0 0 8px;
	color: var(--wp--preset--color--text-soft);
	font-style: italic;
}
.tpre-footer__service-area {
	margin: 0;
	font-size: var(--wp--preset--font-size--body-sm);
	color: var(--wp--preset--color--text-muted);
}
.tpre-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: right;
}
.tpre-footer__phone {
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	letter-spacing: 0.01em;
}
.tpre-footer__sms {
	font-size: var(--wp--preset--font-size--body-sm);
	color: var(--wp--preset--color--text-muted);
	text-decoration: none;
}
.tpre-footer__sms:hover { color: var(--wp--preset--color--navy); }

.tpre-footer__rule {
	max-width: 1200px;
	margin: 32px auto;
	border-top: 1px solid var(--wp--preset--color--border-subtle);
}

.tpre-footer__bottom {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: var(--wp--preset--font-size--body-sm);
	color: var(--wp--preset--color--text-muted);
}
.tpre-footer__legal { margin: 0; }
.tpre-footer__compliance { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tpre-footer__compliance a {
	color: var(--wp--preset--color--text-soft);
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
}
.tpre-footer__compliance a:hover {
	color: var(--wp--preset--color--navy);
	border-bottom-color: var(--wp--preset--color--navy);
}
.tpre-footer__eho { white-space: nowrap; }

@media (max-width: 700px) {
	.tpre-footer__contact { text-align: left; }
}

/* ──────────────────────────────────────────────────────────────
 * Service area page — map block
 * ────────────────────────────────────────────────────────────── */
.tpre-service-area {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}
.tpre-service-area p {
	font-size: var(--wp--preset--font-size--body-lg);
	color: var(--wp--preset--color--text-soft);
}
.tpre-service-area__map {
	margin-top: 32px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(20, 42, 69, 0.08);
}

/* ──────────────────────────────────────────────────────────────
 * Singular post (blog article) typography rhythm
 * ────────────────────────────────────────────────────────────── */
.single-post .wp-block-post-content > p,
.single-post .wp-block-post-content > ul,
.single-post .wp-block-post-content > ol {
	margin-bottom: 1.2em;
	line-height: 1.7;
}
.single-post .wp-block-post-content h2 {
	margin-top: 2em;
	font-size: var(--wp--preset--font-size--h-2-sm);
}
.single-post .wp-block-post-content h3 {
	margin-top: 1.6em;
	font-size: var(--wp--preset--font-size--h-3-lg);
}
