/* ============================================================================
   how-it-works.css — shared between the home page section and the dedicated
   /how-it-works/ page. Loaded on both routes.
   ============================================================================ */

/* --- Shared 3-step block (also used on home) ------------------------------ */

.dtr-hiw { background: var(--dtr-cream); }
.dtr-hiw__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 24px; counter-reset: dtr-step; }
@media (min-width: 768px) { .dtr-hiw__grid { grid-template-columns: repeat(3, 1fr); } }
.dtr-hiw__step { background: var(--dtr-white); padding: 32px 24px; border-radius: var(--dtr-radius-lg); text-align: center; box-shadow: var(--dtr-shadow-sm); position: relative; }
.dtr-hiw__num { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--dtr-gold); color: var(--dtr-primary); font-family: var(--dtr-font-heading); font-weight: 800; font-size: 1.5rem; margin-bottom: 16px; }
.dtr-hiw__title { font-size: 1.5rem; margin: 0 0 8px; }
.dtr-hiw__body { color: var(--dtr-grey-600); margin: 0; }

/* ===========================================================================
   Dedicated /how-it-works/ page only — namespace .dtr-hiw-page__*
   =========================================================================== */

.dtr-hiw-page { background: var(--dtr-cream); }
.dtr-hiw-page .dtr-container { max-width: 1120px; }

/* --- Hero ------------------------------------------------------------------ */

.dtr-hiw-page__hero {
	position: relative;
	padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px);
	background:
		radial-gradient(circle at 15% 20%, rgba(226, 160, 58, 0.18), transparent 55%),
		radial-gradient(circle at 85% 80%, rgba(32, 133, 156, 0.18), transparent 55%),
		linear-gradient(180deg, var(--dtr-primary) 0%, var(--dtr-primary-dark) 100%);
	color: var(--dtr-white);
	overflow: hidden;
}
.dtr-hiw-page__hero-inner {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}
.dtr-hiw-page__hero .dtr-eyebrow { color: var(--dtr-gold); }
.dtr-hiw-page__hero-title {
	color: var(--dtr-white);
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 1rem;
}
.dtr-hiw-page__hero-sub {
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	line-height: 1.55;
	color: rgba(253, 250, 242, 0.92);
	max-width: 620px;
	margin: 0 auto;
}

/* --- Section scaffold ----------------------------------------------------- */

.dtr-hiw-page__section { padding: clamp(48px, 7vw, 96px) 0; }
.dtr-hiw-page__section--alt { background: var(--dtr-white); }
.dtr-hiw-page__section-head {
	max-width: 720px;
	margin: 0 auto clamp(28px, 4vw, 48px);
	text-align: center;
}
.dtr-hiw-page__section-title {
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	margin: 0 0 0.75rem;
}
.dtr-hiw-page__section-lede {
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	color: var(--dtr-grey-600);
	margin: 0;
}

/* --- Prose block (single-column body copy) -------------------------------- */

.dtr-hiw-page__prose {
	max-width: 720px;
	margin: 0 auto;
}
.dtr-hiw-page__prose p {
	font-size: clamp(1rem, 1.3vw, 1.0625rem);
	line-height: 1.7;
	color: var(--dtr-grey-900);
	margin: 0 0 1.1rem;
}
.dtr-hiw-page__prose p:last-child { margin-bottom: 0; }

/* --- CTA ------------------------------------------------------------------- */

.dtr-hiw-page__cta {
	background: linear-gradient(135deg, var(--dtr-gold) 0%, var(--dtr-beige) 100%);
	padding: clamp(56px, 8vw, 96px) 0;
	text-align: center;
}
.dtr-hiw-page__cta-title {
	color: var(--dtr-primary);
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	margin: 0 0 1.5rem;
}
.dtr-hiw-page__cta-btn .wp-block-button__link,
.dtr-hiw-page__cta-btn .wp-element-button {
	background: var(--dtr-primary);
	color: var(--dtr-white);
	font-family: var(--dtr-font-heading);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.02em;
	padding: 1rem 2.25rem;
	border-radius: var(--dtr-radius-md);
	border: 2px solid transparent;
	text-decoration: none;
	line-height: 1;
	transition: background var(--dtr-transition), transform var(--dtr-transition);
}
.dtr-hiw-page__cta-btn .wp-block-button__link:hover,
.dtr-hiw-page__cta-btn .wp-element-button:hover {
	background: var(--dtr-primary-dark);
	transform: translateY(-1px);
	color: var(--dtr-white);
}
.dtr-hiw-page__cta-btn .wp-block-button__link:focus-visible,
.dtr-hiw-page__cta-btn .wp-element-button:focus-visible {
	outline: 3px solid var(--dtr-gold);
	outline-offset: 2px;
}

/* --- Override .dtr-hiw default cream bg when nested inside white page section */

.dtr-hiw-page__section--alt .dtr-hiw,
.dtr-hiw-page .dtr-hiw { background: transparent; padding: 0; }
.dtr-hiw-page .dtr-hiw .dtr-section__head { display: none; } /* heading provided by page wrapper */
