/*!
 * HWP Wallquest Landing — scoped styles.
 * All rules are namespaced under .hwp-wallquest-landing.
 */

.hwp-wallquest-landing {
	--hwp-wq-navy: #1a2340;
	--hwp-wq-navy-dark: #0f1730;
	--hwp-wq-accent: var(--wd-primary-color, var(--hwp-wq-navy));
	--hwp-wq-accent-dark: var(--wd-primary-color-hover, var(--hwp-wq-navy-dark));
	--hwp-wq-fg: #1c1c1c;
	--hwp-wq-muted: #5a5a5a;
	--hwp-wq-border: #e8e8e8;
	--hwp-wq-form-bg: #f6f7fa;
	--hwp-wq-cream: #faf7f2;
	--hwp-wq-radius: 4px;

	box-sizing: border-box;
	color: var(--hwp-wq-fg);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
}

.hwp-wallquest-landing *,
.hwp-wallquest-landing *::before,
.hwp-wallquest-landing *::after {
	box-sizing: border-box;
}

.hwp-wallquest-landing.hwp-wallquest-landing [hidden] {
	display: none;
}

.hwp-wq-container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

.hwp-wq-narrow {
	max-width: 760px;
}

.hwp-wq-section {
	padding: 72px 0;
}

.hwp-wq-section-title {
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 700;
	color: var(--hwp-wq-navy);
	line-height: 1.15;
	margin: 0 0 14px;
	text-transform: none;
	letter-spacing: -0.005em;
}

.hwp-wq-section-lead {
	color: var(--hwp-wq-muted);
	margin: 0 0 32px;
	max-width: 640px;
	font-size: 16px;
}

/* ---------- Hero ---------- */
.hwp-wq-hero {
	padding: 96px 0 64px;
	background: var(--hwp-wq-cream);
	text-align: center;
}

.hwp-wq-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hwp-wq-accent);
	margin: 0 0 18px;
}

/* Hero logo — Wallquest brand mark above the H1. Explicit intrinsic width and
 * height are set on the <img> tag (1501 × 451, aspect ratio ≈ 3.33). The
 * max-width and clamp keep it visually contained on any viewport with zero
 * layout shift. object-fit:contain preserves the artwork. mix-blend-mode is
 * NOT used here — a hero logo needs to stay crisp and un-tinted against the
 * cream background. */
.hwp-wq-hero-logo-wrap {
	margin: 0 auto 20px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
}

.hwp-wq-hero-logo {
	display: block;
	width: auto;
	height: clamp(44px, 6.5vw, 76px);
	max-width: min(320px, 55vw);
	object-fit: contain;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.hwp-wq-hero-divider {
	display: block;
	width: 44px;
	height: 1px;
	background: var(--hwp-wq-accent);
	opacity: 0.55;
	margin: 0 auto 20px;
}

.hwp-wq-hero-title {
	font-size: clamp(30px, 5vw, 52px);
	font-weight: 700;
	line-height: 1.1;
	color: var(--hwp-wq-navy);
	margin: 0 auto 20px;
	max-width: 820px;
	text-transform: none;
	letter-spacing: -0.01em;
}

.hwp-wq-hero-lead {
	font-size: clamp(16px, 1.6vw, 19px);
	color: var(--hwp-wq-muted);
	line-height: 1.55;
	margin: 0 auto 32px;
	max-width: 640px;
}

.hwp-wq-cta-row {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* ---------- Buttons ---------- */
.hwp-wq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	-webkit-appearance: none;
	border-radius: var(--hwp-wq-radius);
	padding: 14px 28px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	min-height: 48px;
	border: 1px solid transparent;
	white-space: nowrap;
}

.hwp-wq-btn--primary {
	background: var(--hwp-wq-accent);
	color: #fff;
	border-color: var(--hwp-wq-accent);
}

.hwp-wq-btn--primary:hover,
.hwp-wq-btn--primary:focus {
	background: var(--hwp-wq-accent-dark);
	border-color: var(--hwp-wq-accent-dark);
	color: #fff;
	outline: none;
	text-decoration: none;
}

.hwp-wq-btn--ghost {
	background: transparent;
	color: var(--hwp-wq-navy);
	border-color: var(--hwp-wq-navy);
}

.hwp-wq-btn--ghost:hover,
.hwp-wq-btn--ghost:focus {
	background: var(--hwp-wq-navy);
	color: #fff;
	outline: none;
	text-decoration: none;
}

.hwp-wq-btn:focus-visible {
	outline: 2px solid var(--hwp-wq-accent);
	outline-offset: 3px;
}

/* ---------- Explanation ---------- */
.hwp-wq-explanation {
	padding: 56px 0;
	text-align: center;
}

.hwp-wq-explanation p {
	font-size: clamp(16px, 1.6vw, 18px);
	color: var(--hwp-wq-fg);
	line-height: 1.65;
	margin: 0 auto;
	max-width: 720px;
}

/* ---------- Brands / marquee ---------- */
.hwp-wq-brands {
	padding-top: 56px;
	padding-bottom: 56px;
	background: #fff;
	border-top: 1px solid var(--hwp-wq-border);
	border-bottom: 1px solid var(--hwp-wq-border);
	text-align: center;
}

.hwp-wq-brands .hwp-wq-section-title,
.hwp-wq-brands .hwp-wq-section-lead {
	margin-left: auto;
	margin-right: auto;
	max-width: 720px;
}

.hwp-wq-marquee {
	position: relative;
	overflow: hidden;
	margin-top: 36px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.hwp-wq-marquee-track {
	display: inline-flex;
	align-items: center;
	gap: 56px;
	white-space: nowrap;
	animation: hwp-wq-scroll 60s linear infinite;
	will-change: transform;
}

.hwp-wq-marquee:hover .hwp-wq-marquee-track,
.hwp-wq-marquee:focus-within .hwp-wq-marquee-track {
	animation-play-state: paused;
}

.hwp-wq-marquee-tile {
	flex: 0 0 auto;
	height: 72px;
	width: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hwp-wq-logo {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	/* Multiply blends white backgrounds into the light section bg. Color logos still show colored. */
	mix-blend-mode: multiply;
	opacity: 0.88;
	transition: opacity 0.2s ease, transform 0.2s ease;
	filter: grayscale(0);
}

.hwp-wq-marquee-tile:hover .hwp-wq-logo {
	opacity: 1;
}

/* Per-brand optical scaling to compensate for logos with heavy padding/glyph size differences */
.hwp-wq-logo--wallquest         { --wq-scale: 1.05; transform: scale(1.05); }
.hwp-wq-logo--york-wallcoverings { --wq-scale: 0.82; transform: scale(0.82); }
.hwp-wq-logo--sanderson         { --wq-scale: 0.9;  transform: scale(0.9); }
.hwp-wq-logo--kravet            { --wq-scale: 0.75; transform: scale(0.75); }
.hwp-wq-logo--graham-brown      { --wq-scale: 0.82; transform: scale(0.82); }
.hwp-wq-logo--phillip-jeffries  { --wq-scale: 0.9;  transform: scale(0.9); }
.hwp-wq-logo--a-street-prints   { --wq-scale: 1.05; transform: scale(1.05); }
.hwp-wq-logo--andrew-martin     { --wq-scale: 1.0;  transform: scale(1.0); }
.hwp-wq-logo--carl-robinson     { --wq-scale: 1.0;  transform: scale(1.0); }
.hwp-wq-logo--daisy-bennett     { --wq-scale: 0.9;  transform: scale(0.9); }
.hwp-wq-logo--paper-ink         { --wq-scale: 0.95; transform: scale(0.95); }

@keyframes hwp-wq-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.hwp-wq-marquee-static {
	display: none;
	flex-wrap: wrap;
	gap: 24px 40px;
	justify-content: center;
	align-items: center;
	margin-top: 36px;
}

.hwp-wq-marquee-static .hwp-wq-marquee-tile {
	width: 160px;
	height: 60px;
}

/* ---------- Steps ---------- */
.hwp-wq-how {
	background: var(--hwp-wq-cream);
	padding-top: 72px;
	padding-bottom: 80px;
}

.hwp-wq-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: hwp-wq-step;
}

.hwp-wq-step {
	background: #fff;
	padding: 28px 24px 24px;
	border: 1px solid var(--hwp-wq-border);
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: left;
}

.hwp-wq-step h3 {
	font-size: 17px;
	font-weight: 700;
	color: var(--hwp-wq-navy);
	margin: 0;
	line-height: 1.3;
	text-transform: none;
}

.hwp-wq-step p {
	color: var(--hwp-wq-muted);
	margin: 0;
	font-size: 14.5px;
}

.hwp-wq-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: var(--hwp-wq-navy);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0;
}

/* ---------- Form ---------- */
.hwp-wq-form-section {
	background: #fff;
}

.hwp-wq-form-wrap {
	background: var(--hwp-wq-form-bg);
	padding: 32px 28px;
	border-radius: 8px;
	border: 1px solid var(--hwp-wq-border);
}

.hwp-wq-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}

.hwp-wq-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hwp-wq-field--full {
	grid-column: 1 / -1;
}

.hwp-wq-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--hwp-wq-fg);
	margin: 0 0 6px;
}

.hwp-wq-input,
.hwp-wq-textarea {
	appearance: none;
	-webkit-appearance: none;
	background: #fff;
	border: 1px solid var(--hwp-wq-border);
	border-radius: var(--hwp-wq-radius);
	padding: 12px 14px;
	font-size: 15px;
	color: var(--hwp-wq-fg);
	font-family: inherit;
	width: 100%;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 0.15s ease;
	min-height: 44px;
}

.hwp-wq-textarea {
	min-height: 100px;
	resize: vertical;
}

.hwp-wq-input:focus,
.hwp-wq-textarea:focus {
	border-color: var(--hwp-wq-accent);
	outline: 2px solid rgba(26, 35, 64, 0.15);
	outline-offset: 0;
}

.hwp-wq-hint {
	font-size: 12.5px;
	color: var(--hwp-wq-muted);
	margin: 6px 0 0;
}

.hwp-wq-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.hwp-wq-error {
	grid-column: 1 / -1;
	color: #a10000;
	font-size: 13px;
	margin: 0;
}

.hwp-wq-submit-row {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.hwp-wq-consent-note {
	font-size: 12.5px;
	color: var(--hwp-wq-muted);
}

.hwp-wq-success {
	text-align: center;
	padding: 12px 0;
}

.hwp-wq-success h3 {
	font-size: 22px;
	font-weight: 700;
	color: var(--hwp-wq-navy);
	margin: 0 0 8px;
	text-transform: none;
}

.hwp-wq-success p {
	color: var(--hwp-wq-muted);
	margin: 0;
}

/* ---------- Showroom / contact ---------- */
.hwp-wq-contact {
	background: var(--hwp-wq-cream);
	padding-top: 72px;
	padding-bottom: 80px;
}

.hwp-wq-two-col {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 48px;
	align-items: flex-start;
}

.hwp-wq-contact-list {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--hwp-wq-fg);
	font-size: 15.5px;
}

.hwp-wq-contact-list a {
	color: var(--hwp-wq-accent);
	text-decoration: none;
}

.hwp-wq-contact-list a:hover {
	text-decoration: underline;
}

.hwp-wq-showroom-note {
	margin-top: 20px;
	color: var(--hwp-wq-muted);
	font-size: 14px;
}

.hwp-wq-contact-cta {
	background: #fff;
	border: 1px solid var(--hwp-wq-border);
	border-radius: 8px;
	padding: 28px 24px;
}

.hwp-wq-contact-cta h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--hwp-wq-navy);
	margin: 0 0 8px;
	text-transform: none;
}

.hwp-wq-contact-cta p {
	color: var(--hwp-wq-muted);
	margin: 0 0 16px;
	font-size: 14.5px;
}

/* ---------- FAQ ---------- */
.hwp-wq-faq {
	background: #fff;
	padding-top: 72px;
	padding-bottom: 96px;
}

.hwp-wq-faq-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 1px solid var(--hwp-wq-border);
}

.hwp-wq-faq-item {
	border-bottom: 1px solid var(--hwp-wq-border);
	padding: 4px 0;
}

.hwp-wq-faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 40px 18px 0;
	position: relative;
	font-size: 16px;
	font-weight: 600;
	color: var(--hwp-wq-navy);
	line-height: 1.4;
}

.hwp-wq-faq-item summary::-webkit-details-marker { display: none; }

.hwp-wq-faq-item summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	line-height: 1;
	color: var(--hwp-wq-accent);
	font-weight: 300;
	transition: transform 0.15s ease;
}

.hwp-wq-faq-item[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.hwp-wq-faq-answer {
	padding: 0 0 20px;
	color: var(--hwp-wq-muted);
	font-size: 15px;
}

.hwp-wq-faq-answer p {
	margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hwp-wq-section {
		padding: 56px 0;
	}
	.hwp-wq-hero {
		padding: 72px 0 48px;
	}
	.hwp-wq-two-col {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.hwp-wq-steps {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

@media (max-width: 640px) {
	.hwp-wq-container {
		padding: 0 18px;
	}
	.hwp-wq-hero {
		padding: 48px 0 40px;
	}
	.hwp-wq-hero-title {
		font-size: clamp(26px, 8vw, 34px);
	}
	.hwp-wq-cta-row {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.hwp-wq-btn {
		width: 100%;
	}
	.hwp-wq-form {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.hwp-wq-form-wrap {
		padding: 20px 16px;
	}
	.hwp-wq-input,
	.hwp-wq-textarea {
		font-size: 16px; /* prevent iOS zoom */
	}
	.hwp-wq-marquee-tile {
		height: 60px;
		width: 140px;
	}
	.hwp-wq-marquee-track {
		gap: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hwp-wq-marquee {
		-webkit-mask-image: none;
		mask-image: none;
	}
	.hwp-wq-marquee-track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		white-space: normal;
	}
	.hwp-wq-btn {
		transition: none;
	}
	.hwp-wq-faq-item summary::after {
		transition: none;
	}
}
