/* WS48 How to Buy patterns — every rule is scoped to .ws48-htb */

.ws48-htb {
	--htb-brick: #9C3A2B;      /* Accent — Brick Red: links, labels, CTA band */
	--htb-terracotta: #C1694A; /* Secondary — Terracotta: main buttons, step numbers */
	--htb-ink: #1A1A1A;        /* Secondary — Soft Black: text, hero */
	--htb-cream: #EDE8DE;      /* Hero — Warm Cream: page ground */
	--htb-greige: #A8A296;     /* Secondary — Greige: borders only (too light for text) */
	--htb-muted: #4D4A44;      /* Body copy on cream/white (darker Greige for readability) */
	--htb-white: #FFFFFF;
	--htb-gutter: clamp(24px, 5vw, 96px); /* side space on the full-width layout */

	font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.55;
	color: var(--htb-ink);
	background: var(--htb-cream);
	max-width: none !important;
	/* Full-bleed: span the whole browser width even inside a boxed theme container */
	width: auto;
	margin-block: 0 !important;
	margin-inline: calc(50% - 50vw) !important;
}

/* 100vw includes the scrollbar on Windows; stop it causing a sideways scroll */
body:has(.ws48-htb) {
	overflow-x: clip;
}

.ws48-htb *,
.ws48-htb *::before,
.ws48-htb *::after {
	box-sizing: border-box;
}

.ws48-htb :is(h1, h2, h3, p, figure) {
	margin: 0;
}

.ws48-htb :is(h1, h2, h3) {
	font-family: inherit;
	color: inherit;
	text-transform: none;
}

.ws48-htb a {
	color: var(--htb-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.ws48-htb a:hover,
.ws48-htb a:focus-visible {
	color: var(--htb-brick);
}

.ws48-htb :is(a, button, select, input, summary):focus-visible {
	outline: 2px solid var(--htb-terracotta);
	outline-offset: 3px;
}

/* Reset block-layout spacing so the grids and stacks below control gaps */
.ws48-htb .wp-block-group > * {
	margin-block: 0;
}

.ws48-htb .ws48-htb-wrap {
	width: 100%;
	max-width: none !important;
	margin-inline: 0 !important;
	padding-inline: var(--htb-gutter);
}

/* ---------- Type ---------- */

.ws48-htb .ws48-htb-eyebrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--htb-brick);
}

.ws48-htb .ws48-htb-display {
	font-size: clamp(40px, 5.5vw, 64px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.ws48-htb .ws48-htb-h2 {
	font-size: clamp(30px, 3.4vw, 40px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.ws48-htb .ws48-htb-h2--sm {
	font-size: clamp(28px, 3vw, 36px);
}

.ws48-htb .ws48-htb-h3 {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.ws48-htb .ws48-htb-intro,
.ws48-htb .ws48-htb-muted {
	color: var(--htb-muted);
}

.ws48-htb .ws48-htb-intro {
	max-width: 620px;
}

/* ---------- Buttons ---------- */

.ws48-htb .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.ws48-htb .wp-block-button {
	margin: 0;
}

.ws48-htb .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 8px;
	border: 1.5px solid transparent;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Main CTA — Terracotta; larger bold text keeps white text readable */
.ws48-htb .ws48-htb-btn--primary .wp-block-button__link {
	background: var(--htb-terracotta);
	color: var(--htb-white);
	font-size: 19px;
	font-weight: 700;
}

.ws48-htb .ws48-htb-btn--primary .wp-block-button__link:hover {
	background: #A9573A;
	color: var(--htb-white);
}

.ws48-htb .ws48-htb-btn--ghost .wp-block-button__link {
	background: transparent;
	border-color: var(--htb-cream);
	color: var(--htb-white);
}

.ws48-htb .ws48-htb-btn--ghost .wp-block-button__link:hover {
	background: var(--htb-cream);
	color: var(--htb-ink);
}

.ws48-htb .ws48-htb-btn--light .wp-block-button__link {
	background: var(--htb-white);
	color: var(--htb-ink);
}

.ws48-htb .ws48-htb-btn--light .wp-block-button__link:hover {
	background: var(--htb-cream);
	color: var(--htb-ink);
}

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

.ws48-htb-hero {
	background: var(--htb-ink);
	color: var(--htb-white);
}

.ws48-htb-hero .ws48-htb-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px;
	padding-block: 88px 96px;
}

.ws48-htb .ws48-htb-hero__content {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ws48-htb-hero .ws48-htb-eyebrow {
	color: var(--htb-cream);
}

.ws48-htb .ws48-htb-lead {
	font-size: 20px;
	line-height: 1.5;
	color: var(--htb-cream);
	max-width: 560px;
}

.ws48-htb-hero .ws48-htb-actions {
	padding-top: 8px;
}

.ws48-htb .ws48-htb-hero__media {
	flex: 1 1 420px;
	min-width: 0;
}

.ws48-htb .ws48-htb-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 20px;
}

/* ---------- Audience cards ---------- */

.ws48-htb-audience .ws48-htb-wrap {
	padding-block: 96px 40px;
}

.ws48-htb .ws48-htb-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 40px;
}

.ws48-htb .ws48-htb-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 24px;
}

.ws48-htb .ws48-htb-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	background: var(--htb-white);
	border: 1px solid var(--htb-greige);
	border-radius: 18px;
}

.ws48-htb .ws48-htb-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
	padding-top: 8px;
}

.ws48-htb .ws48-htb-links a,
.ws48-htb .ws48-htb-textlink a {
	text-decoration: none;
}

.ws48-htb .ws48-htb-links a:hover,
.ws48-htb .ws48-htb-textlink a:hover {
	text-decoration: underline;
}

/* ---------- Process ---------- */

.ws48-htb-process .ws48-htb-wrap {
	padding-block: 80px;
}

.ws48-htb .ws48-htb-head--split {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 48px;
}

.ws48-htb .ws48-htb-head__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ws48-htb .ws48-htb-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
	gap: 20px;
}

.ws48-htb .ws48-htb-step {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 20px;
	border-top: 3px solid var(--htb-terracotta);
}

.ws48-htb .ws48-htb-step__num {
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	color: var(--htb-terracotta);
}

.ws48-htb .ws48-htb-step--first {
	border-top-color: var(--htb-brick);
}

.ws48-htb .ws48-htb-step--first .ws48-htb-step__num {
	color: var(--htb-brick);
}

.ws48-htb .ws48-htb-step__title {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
}

.ws48-htb .ws48-htb-step .ws48-htb-muted {
	font-size: 16px;
}

/* ---------- Dealer finder ---------- */

.ws48-htb-finder .ws48-htb-wrap {
	padding-block: 0 80px;
}

.ws48-htb .ws48-htb-finder__box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
	padding: 48px;
	background: var(--htb-white);
	border: 1px solid var(--htb-greige);
	border-radius: 24px;
}

.ws48-htb .ws48-htb-finder__text {
	flex: 1 1 380px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ws48-htb .ws48-htb-form {
	flex: 1 1 460px;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin: 0;
}

.ws48-htb .ws48-htb-field {
	flex: 1 1 170px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ws48-htb .ws48-htb-field label {
	font-size: 14px;
	font-weight: 600;
}

.ws48-htb .ws48-htb-field :is(select, input) {
	width: 100%;
	height: 52px;
	min-height: 52px;
	line-height: normal;
	margin: 0;
	padding: 0 14px;
	font: inherit;
	color: var(--htb-ink);
	background: var(--htb-white);
	border: 1.5px solid var(--htb-greige);
	border-radius: 12px;
	box-shadow: none;
}

.ws48-htb .ws48-htb-field[hidden] {
	display: none;
}

.ws48-htb .ws48-htb-form__submit {
	height: 52px;
	min-height: 52px;
	padding: 0 26px;
	font: inherit;
	font-size: 19px;
	font-weight: 700;
	color: var(--htb-white);
	background: var(--htb-terracotta);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ws48-htb .ws48-htb-form__submit:hover {
	background: #A9573A;
}

/* Dealer finder results */
.ws48-htb .ws48-htb-results {
	flex: 1 1 100%;
	padding-top: 32px;
	border-top: 1px solid var(--htb-greige);
}

.ws48-htb .ws48-htb-results[hidden] {
	display: none;
}

.ws48-htb .ws48-htb-results__title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	outline: none;
}

.ws48-htb .ws48-htb-results__note {
	margin-top: 6px;
	color: var(--htb-muted);
	font-size: 16px;
}

.ws48-htb .ws48-htb-results__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 16px;
	margin-top: 20px;
}

.ws48-htb .ws48-htb-rep {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px;
	background: var(--htb-cream);
	border-radius: 14px;
}

.ws48-htb .ws48-htb-rep__area {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--htb-brick);
}

.ws48-htb .ws48-htb-rep__name {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.ws48-htb .ws48-htb-rep__contact {
	color: var(--htb-muted);
}

.ws48-htb .ws48-htb-rep__details {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 16px;
}

.ws48-htb .ws48-htb-rep__details li {
	margin: 0;
	overflow-wrap: anywhere;
}

.ws48-htb .ws48-htb-rep__address {
	color: var(--htb-muted);
}

.ws48-htb .ws48-htb-rep__badge {
	align-self: flex-start;
	margin-top: 6px !important;
	padding: 3px 10px;
	font-size: 13px;
	font-weight: 600;
	background: var(--htb-white);
	border: 1px solid var(--htb-greige);
	border-radius: 6px;
}

/* ---------- Good to know ---------- */

.ws48-htb-know {
	background: var(--htb-white);
	border-block: 1px solid var(--htb-greige);
}

.ws48-htb-know .ws48-htb-wrap {
	padding-block: 88px;
}

.ws48-htb-know .ws48-htb-h2 {
	margin-bottom: 40px;
}

.ws48-htb .ws48-htb-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 20px;
}

.ws48-htb .ws48-htb-tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	background: var(--htb-cream);
	border-radius: 16px;
}

.ws48-htb .ws48-htb-tile__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.ws48-htb .ws48-htb-tile .ws48-htb-muted {
	font-size: 16px;
}

.ws48-htb .ws48-htb-tile__link {
	margin-top: auto;
}

.ws48-htb .ws48-htb-tile__link a {
	color: var(--htb-brick);
	text-decoration: none;
}

.ws48-htb .ws48-htb-tile__link a:hover {
	text-decoration: underline;
}

.ws48-htb .ws48-htb-note {
	margin-top: 24px;
	font-size: 15px;
	color: var(--htb-muted);
}

/* ---------- FAQ ---------- */

.ws48-htb-faq .ws48-htb-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	padding-block: 96px;
}

.ws48-htb .ws48-htb-faq__intro {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ws48-htb .ws48-htb-faq__list {
	flex: 2 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ws48-htb .ws48-htb-faq__item {
	padding: 22px 0;
	border-top: 1px solid var(--htb-greige);
}

.ws48-htb .ws48-htb-faq__item:last-child {
	border-bottom: 1px solid var(--htb-greige);
}

.ws48-htb .ws48-htb-faq__item summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}

.ws48-htb .ws48-htb-faq__item summary::-webkit-details-marker {
	display: none;
}

.ws48-htb .ws48-htb-faq__item summary::after {
	content: "+";
	flex: none;
	font-size: 26px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.ws48-htb .ws48-htb-faq__item[open] summary::after {
	transform: rotate(45deg);
}

.ws48-htb .ws48-htb-faq__item > p {
	margin-top: 12px;
	color: var(--htb-muted);
}

/* ---------- Closing CTA band ---------- */

.ws48-htb-cta {
	padding: 0 var(--htb-gutter) 96px;
}

.ws48-htb .ws48-htb-band {
	max-width: none !important;
	margin-inline: 0 !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 64px 48px;
	background: var(--htb-brick);
	color: var(--htb-white);
	border-radius: 28px;
}

.ws48-htb .ws48-htb-band__text {
	flex: 1 1 460px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ws48-htb .ws48-htb-band__title {
	font-size: clamp(32px, 3.8vw, 44px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.ws48-htb .ws48-htb-band__sub {
	font-size: 19px;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
	.ws48-htb-hero .ws48-htb-wrap {
		padding-block: 56px 64px;
		gap: 40px;
	}

	.ws48-htb-audience .ws48-htb-wrap {
		padding-top: 64px;
	}

	.ws48-htb-process .ws48-htb-wrap,
	.ws48-htb-know .ws48-htb-wrap,
	.ws48-htb-faq .ws48-htb-wrap {
		padding-block: 64px;
	}

	.ws48-htb .ws48-htb-card,
	.ws48-htb .ws48-htb-finder__box {
		padding: 28px 24px;
	}

	.ws48-htb .ws48-htb-band {
		padding: 40px 24px;
	}

	.ws48-htb-cta {
		padding-bottom: 64px;
	}
}
