/* =========================================================
   threadslabin - B2B / BULK ORDERS
   Save as: assets/css/b2b.css
   Loaded by the 'b2b' entry in inc/body-classes.php.

   Content lives in one Custom HTML block wrapped in .tl-b2b,
   the same pattern the policy pages use with .tl-doc.
   No form: quote buttons go to the Contact page / WhatsApp.
   FAQ uses the theme accordion (faq.css + faq.js).

   Signature detail: the dashed "running stitch" border on the
   order ticket and the checklist card. Everything else stays quiet.
   ========================================================= */

.tl-b2b {
	--bb-accent: var(--madder, #a8402f);
	--bb-accent-dark: #8c3526;
	--bb-accent-soft: #faf1ef;
	--bb-ink: var(--ink, #1a1d1a);
	--bb-text: var(--ink-soft, #5d625c);
	--bb-muted: #8a8f89;
	--bb-second: var(--indigo, #27408b);
	--bb-thread: var(--thread, #c9bea9);
	--bb-chalk: var(--chalk, #f3f2ed);
	--bb-border: rgba(26, 29, 26, 0.12);
	--bb-border-soft: rgba(26, 29, 26, 0.07);
	--bb-shadow: 0 18px 45px rgba(26, 29, 26, 0.08);
	--bb-radius: 18px;
	--bb-radius-sm: 11px;
	--bb-gap: clamp(3rem, 7vw, 5.5rem);

	color: var(--bb-text);
	font-size: 1rem;
	line-height: 1.65;
}

.tl-b2b *,
.tl-b2b *::before,
.tl-b2b *::after { box-sizing: border-box; }

/* =========================================================
   1. PAGE FRAME
   page.php = .wrap-narrow (680px). This page needs room.
   The page's own H1 comes from the content, so the theme's
   page header is hidden (one H1 on the page).
   ========================================================= */

body.custom-page-b2b-bulk-orders .site-main {
	padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

body.custom-page-b2b-bulk-orders .site-main > .wrap-narrow {
	width: min(100% - 2.5rem, 1240px);
	max-width: none;
}

body.custom-page-b2b-bulk-orders .page-header,
body.custom-page-b2b-bulk-orders .entry-thumb {
	display: none;
}

body.custom-page-b2b-bulk-orders .site-footer {
	margin-top: 0;
}

body.custom-page-b2b-bulk-orders .entry,
body.custom-page-b2b-bulk-orders .entry-content {
	max-width: none;
	margin: 0;
	padding: 0;
}

/* =========================================================
   2. SHARED TYPE + BUTTONS
   ========================================================= */

.tl-b2b h1,
.tl-b2b h2,
.tl-b2b h3 {
	color: var(--bb-ink);
	font-family: var(--display, system-ui, sans-serif);
}

.tl-b2b p { margin: 0 0 0.9rem; }
.tl-b2b p:last-child { margin-bottom: 0; }

.tl-b2b__h2 {
	margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.tl-b2b__section,
.tl-b2b__quote,
.tl-b2b__cta {
	margin-top: var(--bb-gap);
	scroll-margin-top: calc(var(--header-height, 78px) + 24px);
}

.tl-b2b__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 13px 26px;
	border: 1px solid transparent;
	border-radius: var(--bb-radius-sm);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tl-b2b__btn--primary {
	border-color: var(--bb-accent);
	background: var(--bb-accent);
	color: #fff;
}

.tl-b2b__btn--primary:hover {
	border-color: var(--bb-accent-dark);
	background: var(--bb-accent-dark);
	color: #fff;
}

.tl-b2b__btn--ghost {
	border-color: var(--rule-strong, #a9a79c);
	background: transparent;
	color: var(--bb-ink);
}

.tl-b2b__btn--ghost:hover {
	border-color: var(--bb-ink);
	background: var(--bb-ink);
	color: #fff;
}

.tl-b2b__btn--light {
	border-color: #fff;
	background: #fff;
	color: var(--bb-ink);
}

.tl-b2b__btn--light:hover {
	border-color: var(--bb-chalk);
	background: var(--bb-chalk);
	color: var(--bb-ink);
}

.tl-b2b__link {
	color: var(--bb-accent);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.tl-b2b__link:hover { color: var(--bb-accent-dark); }

/* =========================================================
   3. HERO
   ========================================================= */

.tl-b2b__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.tl-b2b__kicker {
	margin: 0 0 14px !important;
	color: var(--bb-accent);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.98rem;
	font-weight: 700;
}

.tl-b2b__title {
	max-width: 14ch;
	margin: 0 0 20px;
	font-size: clamp(2.4rem, 5.6vw, 4.2rem);
	line-height: 1;
	letter-spacing: -0.045em;
}

.tl-b2b__lead {
	max-width: 56ch;
	margin-bottom: 28px !important;
	font-size: 1.08rem;
	line-height: 1.7;
}

.tl-b2b__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* The order ticket: the one stitched element in the hero */
.tl-b2b__ticket {
	position: relative;
	padding: clamp(22px, 3vw, 32px);
	border-radius: var(--bb-radius);
	background: var(--bb-ink);
	color: #fff;
	box-shadow: var(--bb-shadow);
}

.tl-b2b__ticket::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 2px dashed rgba(201, 190, 169, 0.55);
	border-radius: calc(var(--bb-radius) - 8px);
	pointer-events: none;
}

.tl-b2b__ticket-title {
	position: relative;
	margin: 0 0 16px !important;
	color: var(--bb-thread);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 1.05rem;
	font-weight: 700;
}

.tl-b2b__ticket-list {
	position: relative;
	margin: 0;
}

.tl-b2b__ticket-list > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tl-b2b__ticket-list dt {
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.92rem;
}

.tl-b2b__ticket-list dd {
	margin: 0;
	color: #fff;
	font-family: var(--display, system-ui, sans-serif);
	font-weight: 600;
	text-align: right;
}

/* =========================================================
   4. CARDS (who it's for)
   ========================================================= */

.tl-b2b__grid {
	display: grid;
	gap: 16px;
}

.tl-b2b__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tl-b2b__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tl-b2b__card {
	padding: 22px;
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius-sm);
	background: #fff;
}

.tl-b2b__card h3,
.tl-b2b__why-item h3,
.tl-b2b__steps h3 {
	margin: 0 0 8px;
	font-size: 1.12rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.tl-b2b__card p,
.tl-b2b__why-item p,
.tl-b2b__steps p {
	font-size: 0.95rem;
	line-height: 1.6;
}

/* =========================================================
   5. DESIGNS LIST
   ========================================================= */

.tl-b2b__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.tl-b2b__head .tl-b2b__h2 { margin: 0; }

.tl-b2b__designs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--bb-ink);
	list-style: none;
}

.tl-b2b__designs li {
	margin: 0;
	border-bottom: 1px solid var(--bb-border);
}

.tl-b2b__designs li + li {
	border-left: 1px solid var(--bb-border);
}

.tl-b2b__designs a {
	display: block;
	height: 100%;
	padding: 20px 18px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.tl-b2b__designs a:hover { background: #fff; }

.tl-b2b__designs strong {
	display: block;
	margin-bottom: 4px;
	color: var(--bb-ink);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 1.05rem;
}

.tl-b2b__designs span {
	display: block;
	color: var(--bb-muted);
	font-size: 0.88rem;
	line-height: 1.45;
}

/* =========================================================
   6. STEPS
   ========================================================= */

.tl-b2b__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: b2b-step;
}

.tl-b2b__steps li {
	position: relative;
	margin: 0;
	padding: 56px 20px 22px;
	border-top: 2px solid var(--bb-ink);
	counter-increment: b2b-step;
}

.tl-b2b__steps li::before {
	content: counter(b2b-step);
	position: absolute;
	top: 16px;
	left: 20px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bb-accent);
	color: #fff;
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.9rem;
	font-weight: 700;
}

/* =========================================================
   7. WHY
   ========================================================= */

.tl-b2b__why {
	padding: clamp(24px, 5vw, 48px);
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius);
	background: #fff;
}

.tl-b2b__why-item {
	padding-left: 16px;
	border-left: 3px solid var(--bb-accent);
}

/* =========================================================
   8. QUOTE (no form - points to the Contact page)
   ========================================================= */

.tl-b2b__quote {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}

.tl-b2b__quote-intro > p {
	max-width: 52ch;
	margin-bottom: 24px !important;
}

/* Checklist card with the stitched edge */
.tl-b2b__prep {
	position: relative;
	padding: clamp(24px, 3.5vw, 36px);
	border-radius: var(--bb-radius);
	background: #fff;
	box-shadow: var(--bb-shadow);
}

.tl-b2b__prep::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 2px dashed var(--bb-thread);
	border-radius: calc(var(--bb-radius) - 8px);
	pointer-events: none;
}

.tl-b2b__prep-title {
	position: relative;
	margin: 0 0 14px !important;
	color: var(--bb-ink);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 1.1rem;
	font-weight: 700;
}

.tl-b2b__prep-list {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tl-b2b__prep-list li {
	position: relative;
	padding: 10px 0 10px 28px;
	border-top: 1px solid var(--bb-border-soft);
	color: var(--bb-ink);
	line-height: 1.5;
}

.tl-b2b__prep-list li::before {
	content: "";
	position: absolute;
	top: 17px;
	left: 2px;
	width: 12px;
	height: 7px;
	border-left: 2px solid var(--bb-accent);
	border-bottom: 2px solid var(--bb-accent);
	transform: rotate(-45deg);
}

/* =========================================================
   9. FAQ
   The accordion itself comes from faq.css + faq.js (the same
   component as the FAQ page and home page). Only width here.
   ========================================================= */

.tl-b2b__faq .faq-accordion {
	max-width: 900px;
}

/* =========================================================
   10. FINAL CTA
   ========================================================= */

.tl-b2b__cta {
	padding: clamp(32px, 6vw, 56px);
	border-radius: var(--bb-radius);
	background: var(--bb-ink);
	color: rgba(255, 255, 255, 0.75);
	text-align: center;
}

.tl-b2b__cta h2 {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(1.6rem, 3.4vw, 2.3rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.tl-b2b__cta p { margin-bottom: 22px !important; }

.tl-b2b__actions--center { justify-content: center; }

.tl-b2b__btn--outline-light {
	border-color: rgba(255, 255, 255, 0.45);
	background: transparent;
	color: #fff;
}

.tl-b2b__btn--outline-light:hover {
	border-color: #fff;
	background: #fff;
	color: var(--bb-ink);
}

/* =========================================================
   11. ACCESSIBILITY + MOTION
   ========================================================= */

.tl-b2b a:focus-visible,
.tl-b2b input:focus-visible,
.tl-b2b select:focus-visible,
.tl-b2b textarea:focus-visible {
	outline: 3px solid var(--bb-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.tl-b2b * { transition: none !important; }
}

/* =========================================================
   TABLET - up to 1024px
   ========================================================= */

@media (max-width: 1024px) {
	.tl-b2b__grid--4,
	.tl-b2b__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.tl-b2b__designs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.tl-b2b__designs li + li { border-left: 0; }
	.tl-b2b__designs li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--bb-border); }

}

/* =========================================================
   MOBILE - up to 768px
   ========================================================= */

@media (max-width: 768px) {
	body.custom-page-b2b-bulk-orders .site-main > .wrap-narrow {
		width: min(100% - 2rem, 1240px);
	}

	.tl-b2b__hero { grid-template-columns: 1fr; }

	.tl-b2b__title { max-width: none; }

	.tl-b2b__actions .tl-b2b__btn { flex: 1 1 100%; }

	.tl-b2b__grid--3 { grid-template-columns: 1fr; }

	.tl-b2b__designs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tl-b2b__designs li:not(:nth-child(3n + 1)) { border-left: 0; }
	.tl-b2b__designs li:nth-child(2n) { border-left: 1px solid var(--bb-border); }

	.tl-b2b__quote { grid-template-columns: 1fr; }
}

/* =========================================================
   SMALL PHONES - up to 480px
   ========================================================= */

@media (max-width: 480px) {
	.tl-b2b__grid--4,
	.tl-b2b__steps,
	.tl-b2b__designs { grid-template-columns: 1fr; }

	.tl-b2b__designs li:nth-child(2n) { border-left: 0; }

	.tl-b2b__ticket-list > div {
		flex-direction: column;
		gap: 2px;
	}

	.tl-b2b__ticket-list dd { text-align: left; }

}