/* Service/content hub page — modeled on thezebra.com/car-insurance-quotes/'s
   layout: split lead-gen hero, trust signals, sticky jumper + article with
   numbered steps and tip callouts, method/team cards, a repeated compact
   lead bar, a rating block, comparison table, requirements checklist, FAQ,
   related links, and a compliance/about box. Only enqueued on the
   page-hub template — see inc/enqueue.php. */

/* ---------------------------------------------------------------
 * Content infographics (article body)
 * ------------------------------------------------------------- */

.tl-content-figure { margin-block: 28px; }
.tl-content-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-card);
}

/* ---------------------------------------------------------------
 * Responsive video embed (article body)
 * ------------------------------------------------------------- */

.tl-video-embed {
	position: relative;
	height: 0;
	padding-top: 56.25%;
	margin-block: 28px;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--c-surface-2);
	box-shadow: var(--shadow-card);
}
.tl-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------------------------------------------------------------
 * Split hero with lead form + CSS device mockup
 * ------------------------------------------------------------- */

.tl-service-hero {
	position: relative;
	background: var(--c-bg);
	overflow: hidden;
	padding-block: 56px;
}
.tl-service-hero__bg {
	position: absolute;
	inset: 0;
	background: var(--c-primary);
	clip-path: polygon(58% 0, 100% 0, 100% 100%, 38% 100%);
	z-index: 0;
}
@media (max-width: 900px) {
	.tl-service-hero__bg { display: none; }
}

.tl-service-hero__row {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
}
@media (min-width: 900px) {
	.tl-service-hero__row { grid-template-columns: 1.05fr 0.95fr; }
}

.tl-service-hero__content h1 {
	font-size: clamp(34px, 4vw, 52px);
	max-width: 22ch;
	margin-bottom: 20px;
}
.tl-service-hero__points {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tl-service-hero__points li {
	position: relative;
	padding-left: 20px;
	font-size: 15px;
	color: var(--c-muted-fg);
}
.tl-service-hero__points li::before {
	content: "";
	position: absolute;
	left: 4px; top: 8px;
	width: 6px; height: 6px;
	border-radius: 999px;
	background: var(--c-accent);
}

.tl-lead-form {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	max-width: 420px;
	margin-bottom: 16px;
}
.tl-lead-form__field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--c-surface);
	border: 1px solid var(--c-border-strong);
	border-radius: var(--r-pill);
	padding: 4px 4px 4px 18px;
}
.tl-lead-form__field svg { color: var(--c-muted-fg); flex-shrink: 0; width: 16px; height: 16px; }
.tl-lead-form__field input {
	border: none;
	outline: none;
	font-size: 14px;
	width: 100%;
	padding: 10px 0;
	background: transparent;
}
.tl-lead-form .btn { flex-shrink: 0; }

.tl-service-hero__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
}

.tl-service-hero__visual { display: flex; justify-content: center; }

/* CSS-only device mockup: a "laptop" showing three stacked rate rows */
.tl-device-mockup {
	width: min(420px, 100%);
	background: var(--c-primary-deep);
	border-radius: 16px;
	padding: 14px;
	box-shadow: var(--shadow-hero);
}
.tl-device-mockup__screen {
	background: var(--c-surface);
	border-radius: 10px;
	padding: 20px;
}
.tl-device-mockup__title { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.tl-device-mockup__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--c-border);
}
.tl-device-mockup__row:first-of-type { border-top: none; }
.tl-device-mockup__carrier { font-weight: 700; font-size: 13px; }
.tl-device-mockup__price { font-family: var(--wp--preset--font-family--mono); font-weight: 700; color: var(--c-accent); font-size: 13px; }
.tl-device-mockup__cta {
	display: inline-block;
	margin-top: 2px;
	background: var(--c-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: var(--r-pill);
}

/* ---------------------------------------------------------------
 * Partner/carrier logo row
 * ------------------------------------------------------------- */

.tl-logo-row { text-align: center; padding-block: 32px; }
.tl-logo-row__label { color: var(--c-muted-fg); font-size: 14px; margin-bottom: 20px; }
.tl-logo-row__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 32px 48px;
}
.tl-logo-row__item {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: -0.01em;
	color: var(--c-muted-fg);
	opacity: 0.75;
}

/* ---------------------------------------------------------------
 * Trust box
 * ------------------------------------------------------------- */

.tl-trust-box {
	display: flex;
	gap: 16px;
	background: var(--c-accent-soft);
	border-radius: var(--r-lg);
	padding: 24px 28px;
	max-width: 1280px;
	margin-inline: auto;
}
.tl-trust-box__icon { color: var(--c-accent); flex-shrink: 0; }
.tl-trust-box__heading { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.tl-trust-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tl-trust-box li { position: relative; padding-left: 16px; font-size: 13px; color: var(--c-fg); }
.tl-trust-box li::before { content: "•"; position: absolute; left: 0; color: var(--c-accent); }

/* ---------------------------------------------------------------
 * Byline row
 * ------------------------------------------------------------- */

.tl-service-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	padding-bottom: 20px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--c-border);
	font-size: 13px;
	color: var(--c-muted-fg);
}
.tl-service-byline__author { display: flex; align-items: center; gap: 8px; color: var(--c-fg); font-weight: 600; }
.tl-service-byline__date { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
/* Same WP block-gap margin injection as everywhere else — see the note
   in base.css — plus a plain default paragraph margin-bottom (~20px)
   on "Updated": align-items:center centers each flex item by its full
   margin box, so that phantom bottom margin alone was enough to shift
   the text upward relative to its un-margined sibling. */
.tl-service-byline > *,
.tl-service-byline__date > * {
	margin: 0 !important;
}
.tl-service-byline__avatar {
	width: 28px; height: 28px;
	border-radius: 999px;
	background: var(--c-accent-soft);
	flex-shrink: 0;
}

/* ---------------------------------------------------------------
 * Tip callout (extends .tl-callout with a heading + divider)
 * ------------------------------------------------------------- */

.tl-tip-box {
	background: var(--c-accent-soft);
	border-radius: var(--r-lg);
	padding: 24px 28px;
	margin: 28px 0;
}
.tl-tip-box__heading { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.tl-tip-box__divider { border: none; border-top: 1px solid rgba(79,70,229,.2); margin-bottom: 14px; }
.tl-tip-box p { font-size: 14px; margin-bottom: 12px; }
.tl-tip-box ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }
.tl-tip-box ul li { margin-bottom: 4px; }

/* ---------------------------------------------------------------
 * Promo CTA (mid-article, dark or tinted band with device mockup)
 * ------------------------------------------------------------- */

.tl-promo-cta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: center;
	background: var(--c-surface-2);
	border-radius: var(--r-xl);
	padding: 32px;
	margin: 32px 0;
}
@media (min-width: 700px) {
	.tl-promo-cta { grid-template-columns: 1.3fr 0.7fr; }
}
.tl-promo-cta h3 { font-size: 22px; margin-bottom: 10px; }
.tl-promo-cta p { color: var(--c-muted-fg); font-size: 14px; margin-bottom: 20px; }

/* ---------------------------------------------------------------
 * Method cards (illustrated 3-up)
 * ------------------------------------------------------------- */

.tl-method-cards {
	background: var(--c-surface-2);
	border-radius: var(--r-xl);
	padding: 28px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin: 28px 0;
}
@media (min-width: 700px) {
	.tl-method-cards { grid-template-columns: repeat(3, 1fr); }
}
.tl-method-card__icon {
	width: 56px; height: 56px;
	border-radius: 999px;
	background: var(--c-accent-soft);
	color: var(--c-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}
.tl-method-card h4 { font-size: 16px; margin-bottom: 8px; }
.tl-method-card p { font-size: 13px; color: var(--c-muted-fg); }

/* ---------------------------------------------------------------
 * Team / expert cards
 * ------------------------------------------------------------- */

.tl-team-section { text-align: center; margin: 40px 0 28px; }
.tl-team-section h3 { font-size: 24px; margin-bottom: 8px; }
.tl-team-section > p { color: var(--c-muted-fg); font-size: 14px; }

.tl-team-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-bottom: 28px;
}
@media (min-width: 700px) {
	.tl-team-cards { grid-template-columns: repeat(3, 1fr); }
}
.tl-team-card {
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	padding: 20px;
}
.tl-team-card__avatar { width: 48px; height: 48px; border-radius: 999px; background: var(--c-accent-soft); margin-bottom: 12px; }
.tl-team-card__name { font-weight: 700; font-size: 15px; }
.tl-team-card__title { font-size: 12px; color: var(--c-accent); font-weight: 600; margin-bottom: 8px; }
.tl-team-card__bio { font-size: 13px; color: var(--c-muted-fg); margin-bottom: 12px; }
.tl-team-card__credentials { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 4px; }
.tl-team-card__credentials li { font-size: 12px; color: var(--c-muted-fg); padding-left: 16px; position: relative; }
.tl-team-card__credentials li::before { content: "✓"; position: absolute; left: 0; color: var(--c-success); font-weight: 700; }

/* ---------------------------------------------------------------
 * Compact inline lead bar (repeated CTA)
 * ------------------------------------------------------------- */

.tl-lead-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: var(--c-surface-2);
	border-radius: var(--r-lg);
	padding: 24px 28px;
	margin: 32px 0;
}
.tl-lead-bar h4 { font-size: 16px; margin: 0; flex: 1 1 240px; }
.tl-lead-bar .tl-lead-form { margin-bottom: 0; }

/* ---------------------------------------------------------------
 * Rating block
 * ------------------------------------------------------------- */

.tl-rating-block { text-align: center; padding-block: 28px; }
.tl-rating-block h3 { font-size: 22px; margin-bottom: 16px; }
.tl-rating-block__number { font-size: 40px; font-weight: 800; }
.tl-rating-block__stars { display: flex; gap: 4px; justify-content: center; margin: 10px 0; color: #F59E0B; }
.tl-rating-block__count { font-size: 13px; color: var(--c-muted-fg); }
.tl-rating-block__link { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; }

/* ---------------------------------------------------------------
 * Prose aside card (floats right within article text, like the
 * "Do you have any claims" sidebar card)
 * ------------------------------------------------------------- */

.tl-prose-aside {
	background: var(--c-surface-2);
	border-radius: var(--r-lg);
	padding: 20px 24px;
	margin: 0 0 20px 0;
}
.tl-prose-aside h4 { font-size: 15px; margin-bottom: 10px; }
.tl-prose-aside ul { margin: 0; padding-left: 16px; font-size: 13px; }
.tl-prose-aside ul li { margin-bottom: 6px; }
@media (min-width: 900px) {
	.tl-prose-aside {
		float: right;
		width: 300px;
		margin: 4px 0 20px 28px;
	}
}

/* ---------------------------------------------------------------
 * Requirements checklist
 * ------------------------------------------------------------- */

.tl-requirement-list { display: flex; flex-direction: column; gap: 20px; margin: 24px 0; }
.tl-requirement-item { display: flex; gap: 16px; }
.tl-requirement-item__icon {
	width: 40px; height: 40px;
	border-radius: var(--r-md);
	background: var(--c-accent-soft);
	color: var(--c-accent);
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.tl-requirement-item h4 { font-size: 15px; margin-bottom: 6px; }
.tl-requirement-item p { font-size: 14px; color: var(--c-muted-fg); }

/* ---------------------------------------------------------------
 * Related content links
 * ------------------------------------------------------------- */

.tl-related-links {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px;
	margin: 24px 0;
}
@media (min-width: 700px) {
	.tl-related-links { grid-template-columns: 1fr 1fr; }
}
/* !important: see the note on .btn--accent in components.css — same
   WP global link-color override, same fix. */
.tl-related-links a {
	display: block;
	padding: 12px 16px;
	border-radius: var(--r-md);
	font-size: 14px;
	font-weight: 600;
	color: var(--c-fg) !important;
	text-decoration: none !important;
	border: 1px solid var(--c-border);
}
.tl-related-links a:hover { border-color: var(--c-accent); color: var(--c-accent) !important; text-decoration: none !important; }

/* ---------------------------------------------------------------
 * About / compliance disclosure box
 * ------------------------------------------------------------- */

.tl-about-box {
	background: var(--c-primary-deep);
	color: #CBD3E1;
	border-radius: var(--r-xl);
	padding: 32px;
}
.tl-about-box h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.tl-about-box p { font-size: 14px; margin-bottom: 14px; }
.tl-about-box ul { margin: 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; color: #A8B1C4; }

/* Section jumper header treatment to match the reference's indigo
   "Jump to" box (default section-jumper styles are a plain left-border
   list — this page wants the boxed, colored variant). */
/* The "Jump to" label lives as a sibling before the section-jumper
   block, not inside it (the block itself stays generic/reusable) — so
   stickiness has to be on this outer wrapper, not the block's own root,
   or the label would scroll away while the link list stayed pinned. */
@media (min-width: 1024px) {
	.tl-service-jumper {
		position: sticky;
		top: 96px;
	}
}
.tl-service-jumper .tl-section-jumper {
	position: static;
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	overflow: hidden;
}
.tl-service-jumper .tl-section-jumper__label {
	display: block;
	background: var(--c-primary);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	padding: 14px 20px;
}
.tl-service-jumper .tl-section-jumper__list {
	border-left: none;
	padding: 8px 0;
}
.tl-service-jumper .tl-section-jumper__list a {
	padding-inline: 20px;
}
