/*
THP Homepage 2026 - scoped stylesheet.

Every selector starts with .thp-homepage-2026 so it can never affect any
other page, post, or template on the site. No alignwide/alignfull, no
negative margins, no 100vw, no transform-based breakouts. The content is
now real Gutenberg blocks (Group/Columns/Buttons/List/Query Loop) stored
in post_content -- this file styles the actual block markup WordPress
outputs, plus a small set of custom classNames applied to those blocks.
*/

.thp-homepage-2026 {
	--thp-navy: #0f1c3f;
	--thp-navy-soft: #33406a;
	--thp-blue: #2f6fed;
	--thp-blue-dark: #1f4fc4;
	--thp-blue-bg: #eef4ff;
	--thp-blue-bg-soft: #f6faff;
	--thp-green: #16a34a;
	--thp-white: #ffffff;
	--thp-border: #dfe8f7;
	--thp-shadow: 0 10px 30px rgba(15, 28, 63, 0.08);
	--thp-shadow-sm: 0 4px 14px rgba(15, 28, 63, 0.06);
	--thp-radius: 16px;
	--thp-radius-sm: 10px;

	color: var(--thp-navy);
	background: var(--thp-white);
	font-family: inherit;
	line-height: 1.55;
	overflow-x: clip; /* final safety net only, not a layout mechanism */
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 0;
}

.thp-homepage-2026 *,
.thp-homepage-2026 *::before,
.thp-homepage-2026 *::after {
	box-sizing: border-box;
}

.thp-homepage-2026 img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ------------------------------------------------------------------ */
/* Layout primitives: full-bleed section + centered inner container     */
/* ------------------------------------------------------------------ */

.thp-homepage-2026 .thp-section {
	width: 100%;
	padding-block: clamp(48px, 6vw, 96px);
	margin: 0 !important; /* neutralize any theme default block-gap margin between sections */
}

.thp-homepage-2026 .thp-container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

/* ------------------------------------------------------------------ */
/* Reset WordPress core block defaults so our own classes fully control
   spacing and appearance, regardless of theme.json values.             */
/* ------------------------------------------------------------------ */

.thp-homepage-2026 .wp-block-heading,
.thp-homepage-2026 p {
	margin-block: 0;
}

.thp-homepage-2026 .wp-block-columns {
	gap: 24px;
	margin-bottom: 0;
}

.thp-homepage-2026 .wp-block-column {
	min-width: 0; /* prevents flex children from overflowing and causing clipping */
}

.thp-homepage-2026 .wp-block-buttons {
	gap: 14px;
}

.thp-homepage-2026 .wp-block-button__link {
	border-radius: 999px;
}

.thp-homepage-2026 .wp-block-list {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

/* ------------------------------------------------------------------ */
/* Grids: 3/4-column layouts built from core Columns blocks              */
/* ------------------------------------------------------------------ */

.thp-homepage-2026 .thp-grid {
	display: grid;
	margin-top: 32px;
	gap: 24px;
}

.thp-homepage-2026 .thp-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thp-homepage-2026 .thp-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.thp-homepage-2026 .thp-grid > .wp-block-column {
	width: auto;
	flex-basis: auto !important;
}

.thp-homepage-2026 .thp-grid--center {
	text-align: center;
}

@media (max-width: 1024px) {
	.thp-homepage-2026 .thp-grid--3,
	.thp-homepage-2026 .thp-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.thp-homepage-2026 .wp-block-columns:not(.thp-grid) {
		flex-direction: column;
	}

	.thp-homepage-2026 .thp-grid--3,
	.thp-homepage-2026 .thp-grid--4 {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ */
/* Typography                                                           */
/* ------------------------------------------------------------------ */

.thp-homepage-2026 .thp-eyebrow {
	color: var(--thp-blue-dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.thp-homepage-2026 .thp-eyebrow--on-dark {
	color: #9fc0ff;
}

.thp-homepage-2026 .thp-section__title {
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.2;
	font-weight: 800;
	margin-bottom: 12px;
	color: var(--thp-navy);
}

.thp-homepage-2026 .thp-section__title--on-dark {
	color: var(--thp-white);
}

.thp-homepage-2026 .thp-section__title--center {
	text-align: center;
}

.thp-homepage-2026 .thp-section__lede {
	font-size: 17px;
	color: var(--thp-navy-soft);
	max-width: 640px;
}

.thp-homepage-2026 .thp-section__lede--center {
	max-width: 560px;
	margin-inline: auto;
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Buttons -- compound selectors so our classes reliably beat core      */
/* button defaults regardless of stylesheet load order.                 */
/* ------------------------------------------------------------------ */

.thp-homepage-2026 .wp-block-button.thp-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.thp-homepage-2026 .wp-block-button.thp-btn--primary .wp-block-button__link {
	background: var(--thp-blue);
	border-color: var(--thp-blue);
	color: var(--thp-white);
}

.thp-homepage-2026 .wp-block-button.thp-btn--primary .wp-block-button__link:hover {
	background: var(--thp-blue-dark);
	border-color: var(--thp-blue-dark);
	color: var(--thp-white);
	transform: translateY(-2px);
}

.thp-homepage-2026 .wp-block-button.thp-btn--secondary .wp-block-button__link {
	background: transparent;
	border-color: var(--thp-border);
	color: var(--thp-navy);
}

.thp-homepage-2026 .wp-block-button.thp-btn--secondary .wp-block-button__link:hover {
	border-color: var(--thp-blue);
	color: var(--thp-blue-dark);
	transform: translateY(-2px);
}

.thp-homepage-2026 .wp-block-button.thp-btn--on-dark .wp-block-button__link {
	background: var(--thp-white);
	border-color: var(--thp-white);
	color: var(--thp-navy);
	white-space: nowrap;
}

.thp-homepage-2026 .wp-block-button.thp-btn--on-dark .wp-block-button__link:hover {
	background: var(--thp-blue-bg);
	border-color: var(--thp-blue-bg);
	transform: translateY(-2px);
}

.thp-homepage-2026 a:focus-visible {
	outline: 3px solid var(--thp-blue-dark);
	outline-offset: 2px;
}

.thp-homepage-2026 .thp-card__link,
.thp-homepage-2026 .thp-text-link {
	display: inline-block;
	color: var(--thp-blue-dark);
	font-weight: 700;
	text-decoration: none;
	margin-top: 4px;
}

.thp-homepage-2026 .thp-card__link a,
.thp-homepage-2026 .thp-text-link a,
.thp-homepage-2026 p.thp-card__link a {
	color: inherit;
	text-decoration: none;
}

.thp-homepage-2026 .thp-card__link:hover,
.thp-homepage-2026 .thp-text-link:hover {
	text-decoration: underline;
}

.thp-homepage-2026 .thp-featured-guides__more,
.thp-homepage-2026 .thp-trust__more {
	text-align: center;
	margin-top: 28px;
}

/* ------------------------------------------------------------------ */
/* 1. Hero                                                              */
/* ------------------------------------------------------------------ */

.thp-homepage-2026 .thp-hero {
	background: linear-gradient(180deg, var(--thp-blue-bg) 0%, var(--thp-white) 100%);
}

.thp-homepage-2026 .thp-hero__grid {
	align-items: center;
}

.thp-homepage-2026 .thp-hero__title {
	font-size: clamp(32px, 4.6vw, 52px);
	line-height: 1.12;
	font-weight: 800;
	margin-bottom: 18px;
}

.thp-homepage-2026 .thp-hero__lede {
	font-size: 18px;
	color: var(--thp-navy-soft);
	max-width: 520px;
	margin-bottom: 28px;
}

.thp-homepage-2026 .thp-hero__panel {
	background: var(--thp-white);
	border: 1px solid var(--thp-border);
	border-radius: var(--thp-radius);
	box-shadow: var(--thp-shadow);
	padding: 28px;
}

.thp-homepage-2026 .thp-panel-label {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--thp-blue-dark);
	margin-bottom: 18px;
}

.thp-homepage-2026 .thp-flow-line {
	font-size: 18px;
	font-weight: 700;
	color: var(--thp-navy);
	margin-bottom: 22px;
}

.thp-homepage-2026 .thp-flow-accent {
	color: #0f7a37;
	position: relative;
}

.thp-homepage-2026 .thp-benefits li {
	position: relative;
	padding: 6px 0 6px 26px;
	font-size: 15px;
	color: var(--thp-navy-soft);
}

.thp-homepage-2026 .thp-benefits li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 15px;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--thp-green);
}

/* ------------------------------------------------------------------ */
/* Cards (Start Here / Featured Guides)                                 */
/* ------------------------------------------------------------------ */

.thp-homepage-2026 .thp-card {
	background: var(--thp-white);
	border: 1px solid var(--thp-border);
	border-radius: var(--thp-radius);
	box-shadow: var(--thp-shadow-sm);
	padding: 28px;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.thp-homepage-2026 .thp-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--thp-shadow);
}

.thp-homepage-2026 .thp-card-tag {
	display: inline-block;
	color: var(--thp-blue-dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.thp-homepage-2026 .thp-card__title {
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 10px;
}

.thp-homepage-2026 .thp-card__desc {
	color: var(--thp-navy-soft);
}

.thp-homepage-2026 .thp-mini-card {
	background: var(--thp-blue-bg-soft);
	border: 1px solid var(--thp-border);
	border-radius: var(--thp-radius);
	padding: 24px;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.thp-homepage-2026 .thp-mini-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--thp-shadow);
}

.thp-homepage-2026 .thp-mini-card__title {
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 8px;
}

.thp-homepage-2026 .thp-mini-card__desc {
	color: var(--thp-navy-soft);
}

/* ------------------------------------------------------------------ */
/* 3. Pillar guide (dark section)                                       */
/* ------------------------------------------------------------------ */

.thp-homepage-2026 .thp-pillar-guide {
	background: var(--thp-navy);
	color: var(--thp-white);
}

.thp-homepage-2026 .thp-pillar-guide__grid {
	align-items: center;
}

.thp-homepage-2026 .thp-pillar-guide__desc {
	color: #c9d3ea;
	font-size: 17px;
	margin-bottom: 26px;
	max-width: 560px;
}

.thp-homepage-2026 .thp-pillar-guide__points {
	padding: 24px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--thp-radius);
}

.thp-homepage-2026 .thp-pillar-guide__points li {
	position: relative;
	padding: 7px 0 7px 32px;
	font-weight: 700;
	font-size: 15px;
}

.thp-homepage-2026 .thp-pillar-guide__points li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 6px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--thp-green);
	color: var(--thp-white);
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 200ms ease;
}

.thp-homepage-2026 .thp-pillar-guide__points li:hover::before {
	transform: scale(1.12);
}

/* ------------------------------------------------------------------ */
/* 6. Premium product (accent section)                                  */
/* ------------------------------------------------------------------ */

.thp-homepage-2026 .thp-product {
	background: linear-gradient(135deg, var(--thp-blue-dark), var(--thp-blue));
	color: var(--thp-white);
}

.thp-homepage-2026 .thp-product__grid {
	align-items: center;
}

.thp-homepage-2026 .thp-product__cta {
	flex-grow: 0;
}

.thp-homepage-2026 .thp-product__desc {
	color: #e3ecff;
	max-width: 560px;
	margin-bottom: 14px;
}

.thp-homepage-2026 .thp-product__item {
	color: #f4f8ff;
	max-width: 560px;
}

/* ------------------------------------------------------------------ */
/* 7. Trust                                                             */
/* ------------------------------------------------------------------ */

.thp-homepage-2026 .thp-trust {
	background: var(--thp-blue-bg-soft);
}

.thp-homepage-2026 .thp-trust__item {
	padding: 8px 12px;
	text-align: center;
}

.thp-homepage-2026 .thp-trust__title {
	font-size: 19px;
	font-weight: 800;
	margin-bottom: 8px;
}

.thp-homepage-2026 .thp-trust__desc {
	color: var(--thp-navy-soft);
}

/* ------------------------------------------------------------------ */
/* 8. Latest articles -- native Query Loop block                        */
/* ------------------------------------------------------------------ */

.thp-homepage-2026 .thp-latest__query {
	margin-top: 32px;
}

.thp-homepage-2026 .wp-block-post-template.thp-latest__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 1024px) {
	.thp-homepage-2026 .wp-block-post-template.thp-latest__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.thp-homepage-2026 .wp-block-post-template.thp-latest__grid {
		grid-template-columns: 1fr;
	}
}

.thp-homepage-2026 .wp-block-post-template > li {
	background: var(--thp-white);
	border: 1px solid var(--thp-border);
	border-radius: var(--thp-radius);
	box-shadow: var(--thp-shadow-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.thp-homepage-2026 .thp-post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--thp-blue-bg);
	overflow: hidden;
	margin: 0;
}

.thp-homepage-2026 .thp-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms ease;
}

.thp-homepage-2026 .wp-block-post-template > li:hover .thp-post-card__media img {
	transform: scale(1.06);
}

.thp-homepage-2026 .wp-block-post-template > li > * {
	padding-inline: 22px;
}

.thp-homepage-2026 .wp-block-post-template > li > .thp-post-card__media {
	padding-inline: 0;
}

.thp-homepage-2026 .thp-post-category {
	color: var(--thp-blue-dark);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 20px;
}

.thp-homepage-2026 .thp-post-category a {
	color: inherit;
	text-decoration: none;
}

.thp-homepage-2026 .thp-post-card__title {
	font-size: 19px;
	font-weight: 800;
	margin-top: 8px;
	line-height: 1.3;
}

.thp-homepage-2026 .thp-post-card__title a {
	color: var(--thp-navy);
	text-decoration: none;
}

.thp-homepage-2026 .thp-post-card__title a:hover {
	color: var(--thp-blue-dark);
}

.thp-homepage-2026 .thp-post-card__date {
	color: #6b7694;
	font-size: 13px;
	margin-top: 6px;
}

.thp-homepage-2026 .thp-post-card__excerpt {
	color: var(--thp-navy-soft);
	margin-top: 10px;
}

.thp-homepage-2026 .wp-block-post-excerpt__more-link {
	display: inline-block;
	color: var(--thp-blue-dark);
	font-weight: 700;
	text-decoration: none;
	margin-top: 8px;
	margin-bottom: 22px;
}

.thp-homepage-2026 .wp-block-post-excerpt__more-link:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* 9. Final CTA                                                         */
/* ------------------------------------------------------------------ */

.thp-homepage-2026 .thp-final-cta {
	background: var(--thp-blue-bg);
}

.thp-homepage-2026 .thp-final-cta__inner {
	max-width: 640px;
	text-align: center;
	margin-inline: auto;
}

.thp-homepage-2026 .thp-final-cta__actions {
	justify-content: center;
	margin-top: 8px;
}

/* ------------------------------------------------------------------ */
/* Accessibility + motion preferences                                   */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.thp-homepage-2026 * {
		transition: none !important;
		animation: none !important;
	}
}

/* ------------------------------------------------------------------ */
/* Small-screen safety (360px / 390px)                                  */
/* ------------------------------------------------------------------ */

@media (max-width: 480px) {
	.thp-homepage-2026 .thp-container {
		width: calc(100% - 32px);
	}

	.thp-homepage-2026 .wp-block-buttons .wp-block-button {
		width: 100%;
	}

	.thp-homepage-2026 .wp-block-button .wp-block-button__link {
		width: 100%;
	}
}
