/* =========================================================================
   TexWear — Custom page templates
   Contact / Dealer Registration / Wholesale Pricing / Bulk Order Inquiry
   Uses the site-wide brand tokens defined in site.css (:root --su-*).
   ========================================================================= */

/* ---- Full-width guarantee (collapse Astra sidebar + container limits) --- */
.bp-tpl #secondary,
.bp-tpl .widget-area { display: none !important; }
.bp-tpl #primary {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}
.bp-tpl #content .ast-container,
.bp-tpl .site-content > .ast-container {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	display: block !important;
}
.bp-tpl .ast-article-single,
.bp-tpl #primary .entry-content,
.bp-tpl #primary .ast-article-post {
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}
.bp-tpl .entry-header,
.bp-tpl .ast-single-related-posts-container { display: none !important; }

.bp-page { font-family: var(--su-font-body); color: var(--su-ink); }
.bp-page * { box-sizing: border-box; }

/* Shared inner width */
.bp-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 22px;
}

/* ---- Page hero --------------------------------------------------------- */
.bp-phero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--su-navy) 0%, var(--su-navy-deep) 100%);
	color: #eaf0f8;
	padding: clamp(40px, 6vw, 78px) 0 clamp(36px, 5vw, 64px);
}
.bp-phero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--su-steel), var(--su-sky), var(--su-cta));
}
.bp-phero::after {
	content: "";
	position: absolute;
	right: -90px; top: -90px;
	width: 320px; height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(90,169,230,.20), transparent 70%);
	pointer-events: none;
}
.bp-phero .bp-crumb { margin-bottom: 16px; }
.bp-phero__title {
	font-family: var(--su-font-head);
	font-weight: 800;
	font-size: clamp(1.9rem, 4vw, 3rem);
	letter-spacing: -.02em;
	color: #fff;
	margin: 0;
}
.bp-phero__sub {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 14px 0 0;
	color: rgba(234,240,248,.84);
	font-size: clamp(.98rem, 1.4vw, 1.1rem);
	line-height: 1.7;
}

/* ---- Sections ---------------------------------------------------------- */
.bp-section { padding: clamp(38px, 5vw, 64px) 0; }
.bp-section--tint { background: var(--su-surface-2); }
.bp-section__title {
	font-family: var(--su-font-head);
	font-weight: 800;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	color: var(--su-navy);
	text-align: center;
	margin: 0 0 34px;
}

/* ---- Cards ------------------------------------------------------------- */
.bp-card {
	background: var(--su-surface);
	border: 1px solid var(--su-line);
	border-radius: 14px;
	box-shadow: var(--su-shadow-md);
	padding: clamp(24px, 3vw, 38px);
}
.bp-card--navy {
	background: linear-gradient(160deg, var(--su-navy), var(--su-navy-deep));
	border-color: transparent;
	color: #eaf0f8;
}
.bp-card__title {
	font-family: var(--su-font-head);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--su-navy);
	margin: 0 0 6px;
}
.bp-card--navy .bp-card__title { color: #fff; }
.bp-card__lead { color: var(--su-muted); margin: 0 0 22px; font-size: .95rem; }
.bp-card__note { margin: 18px 0 0; font-size: .85rem; color: rgba(234,240,248,.7); }

/* ---- Form layouts ------------------------------------------------------ */
.bp-contact__grid {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: 28px;
	align-items: start;
}
.bp-form-layout {
	display: grid;
	grid-template-columns: .8fr 1.6fr;
	gap: 28px;
	align-items: start;
}
.bp-form-narrow { max-width: 860px; }

/* ---- Forms ------------------------------------------------------------- */
.bpf { margin: 0; }
.bpf-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
}
.bpf-field { display: flex; flex-direction: column; }
.bpf-field--full { grid-column: 1 / -1; }
.bpf-field label {
	font-size: .82rem;
	font-weight: 600;
	color: var(--su-ink-soft);
	margin-bottom: 7px;
	letter-spacing: .01em;
}
.bpf-field .req { color: var(--su-cta); }

.bpf input,
.bpf select,
.bpf textarea {
	width: 100%;
	font-family: var(--su-font-body);
	font-size: .95rem;
	color: var(--su-ink);
	background: var(--su-surface);
	border: 1px solid var(--su-line-strong);
	border-radius: var(--su-radius-sm);
	padding: 12px 14px;
	min-height: 48px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.bpf textarea { min-height: auto; resize: vertical; line-height: 1.6; }
.bpf input:focus,
.bpf select:focus,
.bpf textarea:focus {
	outline: none;
	border-color: var(--su-navy);
	box-shadow: 0 0 0 3px rgba(20,48,92,.12);
}
.bpf input::placeholder,
.bpf textarea::placeholder { color: var(--su-muted); }

/* Honeypot — visually hidden, off-screen */
.bpf-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
}

.bpf-submit {
	margin-top: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--su-font-body);
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--su-cta);
	border: 1px solid var(--su-cta);
	border-radius: var(--su-radius-sm);
	padding: 15px 34px;
	cursor: pointer;
	box-shadow: var(--su-shadow-sm);
	transition: transform .15s ease, background .25s ease, box-shadow .25s ease;
}
.bpf-submit:hover {
	background: var(--su-cta-deep);
	border-color: var(--su-cta-deep);
	transform: translateY(-2px);
	box-shadow: var(--su-shadow-md);
}

/* Notices (PRG success / error) */
.bpf-notice {
	border-radius: var(--su-radius-sm);
	padding: 14px 18px;
	margin: 0 0 20px;
	font-size: .92rem;
	font-weight: 600;
	border-left: 4px solid;
	box-shadow: var(--su-shadow-sm);
}
.bpf-notice--ok  { background: #eaf6ef; color: #1f5d3a; border-color: var(--su-success); }
.bpf-notice--err { background: #fbecea; color: #8e2a1f; border-color: var(--su-danger); }

/* ---- Contact info sidebar --------------------------------------------- */
.bp-info-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: var(--su-surface);
	border: 1px solid var(--su-line);
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 12px;
	box-shadow: var(--su-shadow-sm);
}
.bp-info-card__ico {
	flex: 0 0 auto;
	width: 42px; height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--su-surface-2);
	color: var(--su-navy);
}
.bp-info-card__ico svg { width: 20px; height: 20px; }
.bp-info-card h3 {
	font-family: var(--su-font-head);
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--su-muted);
	margin: 2px 0 4px;
}
.bp-info-card a,
.bp-info-card p { margin: 0; font-size: .95rem; color: var(--su-ink); text-decoration: none; font-weight: 600; }
.bp-info-card a:hover { color: var(--su-cta-deep); }
.bp-info-card p { font-weight: 500; line-height: 1.5; }

.bp-info-cta {
	background: linear-gradient(160deg, var(--su-navy), var(--su-navy-deep));
	color: #eaf0f8;
	border-radius: 12px;
	padding: 22px;
	margin-top: 16px;
}
.bp-info-cta h3 { font-family: var(--su-font-head); color: #fff; margin: 0 0 6px; font-size: 1.05rem; }
.bp-info-cta p { margin: 0 0 16px; font-size: .9rem; color: rgba(234,240,248,.82); line-height: 1.6; }
.bp-info-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Buttons (generic, non-Woo) --------------------------------------- */
.bp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--su-font-body);
	font-weight: 700;
	font-size: .76rem;
	letter-spacing: .07em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--su-radius-sm);
	padding: 12px 22px;
	border: 1px solid transparent;
	transition: transform .15s ease, background .25s ease, color .2s ease, border-color .2s ease;
}
.bp-btn:hover { transform: translateY(-2px); }
.bp-btn--navy  { background: var(--su-navy); color: #fff; border-color: var(--su-navy); }
.bp-btn--navy:hover  { background: var(--su-steel); border-color: var(--su-steel); color: #fff; }
.bp-btn--cta   { background: var(--su-cta); color: #fff; border-color: var(--su-cta); }
.bp-btn--cta:hover   { background: var(--su-cta-deep); border-color: var(--su-cta-deep); color: #fff; }
.bp-btn--light { background: #fff; color: var(--su-navy); border-color: #fff; }
.bp-btn--light:hover { background: var(--su-sky); border-color: var(--su-sky); color: var(--su-navy); }
.bp-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.bp-btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ---- Checklist (dealer aside) ----------------------------------------- */
.bp-checklist { list-style: none; margin: 0; padding: 0; }
.bp-checklist li {
	position: relative;
	padding: 8px 0 8px 30px;
	font-size: .94rem;
	color: rgba(234,240,248,.92);
	border-bottom: 1px solid rgba(255,255,255,.10);
}
.bp-checklist li:last-child { border-bottom: 0; }
.bp-checklist li::before {
	content: "";
	position: absolute;
	left: 0; top: 12px;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--su-cta);
	box-shadow: inset 0 0 0 3px var(--su-navy-deep);
}

/* ---- Steps (bulk order) ------------------------------------------------ */
.bp-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.bp-step {
	background: var(--su-surface);
	border: 1px solid var(--su-line);
	border-radius: 12px;
	padding: 26px 22px;
	text-align: center;
	box-shadow: var(--su-shadow-sm);
}
.bp-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--su-navy);
	color: #fff;
	font-family: var(--su-font-head);
	font-weight: 800;
	font-size: 1.1rem;
	margin-bottom: 14px;
}
.bp-step__title { font-family: var(--su-font-head); color: var(--su-navy); font-size: 1.05rem; margin: 0 0 6px; }
.bp-step__text { margin: 0; color: var(--su-muted); font-size: .9rem; line-height: 1.6; }

/* ---- Pricing tiers ----------------------------------------------------- */
.bp-tiers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	align-items: stretch;
}
.bp-tier {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--su-surface);
	border: 1px solid var(--su-line);
	border-radius: 16px;
	padding: 30px 26px;
	box-shadow: var(--su-shadow-sm);
	transition: transform .2s ease, box-shadow .25s ease;
}
.bp-tier:hover { transform: translateY(-4px); box-shadow: var(--su-shadow-md); }
.bp-tier--featured {
	border-color: var(--su-cta);
	box-shadow: 0 24px 50px -28px rgba(255,122,47,.55);
}
.bp-tier__badge {
	position: absolute;
	top: -13px; left: 50%;
	transform: translateX(-50%);
	background: var(--su-cta);
	color: #fff;
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	white-space: nowrap;
}
.bp-tier__name {
	font-family: var(--su-font-head);
	font-weight: 700;
	color: var(--su-navy);
	font-size: 1.2rem;
	margin: 0 0 10px;
}
.bp-tier__discount {
	font-family: var(--su-font-head);
	font-weight: 800;
	font-size: 1.9rem;
	color: var(--su-cta-deep);
	line-height: 1.1;
}
.bp-tier__min {
	font-size: .85rem;
	color: var(--su-muted);
	margin: 4px 0 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--su-line);
}
.bp-tier__perks { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.bp-tier__perks li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 7px 0;
	font-size: .92rem;
	color: var(--su-ink-soft);
}
.bp-tier__tick { flex: 0 0 auto; color: var(--su-success); margin-top: 1px; }
.bp-tier__tick svg { width: 16px; height: 16px; }
.bp-tier__cta { width: 100%; margin-top: auto; }
.bp-fineprint {
	text-align: center;
	color: var(--su-muted);
	font-size: .82rem;
	margin: 26px auto 0;
	max-width: 640px;
}

/* ---- Reasons grid ------------------------------------------------------ */
.bp-reasons {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.bp-reason {
	background: var(--su-surface);
	border: 1px solid var(--su-line);
	border-top: 3px solid var(--su-cta);
	border-radius: 12px;
	padding: 24px 20px;
	box-shadow: var(--su-shadow-sm);
}
.bp-reason h3 { font-family: var(--su-font-head); color: var(--su-navy); font-size: 1.02rem; margin: 0 0 8px; }
.bp-reason p { margin: 0; color: var(--su-muted); font-size: .9rem; line-height: 1.6; }

/* ---- CTA band ---------------------------------------------------------- */
.bp-ctaband {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 22px;
	background: linear-gradient(135deg, var(--su-navy), var(--su-navy-deep));
	border-radius: 16px;
	padding: clamp(28px, 4vw, 44px);
	position: relative;
	overflow: hidden;
}
.bp-ctaband::before {
	content: "";
	position: absolute;
	right: -60px; bottom: -80px;
	width: 260px; height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(90,169,230,.22), transparent 70%);
}
.bp-ctaband__text { position: relative; z-index: 1; max-width: 620px; }
.bp-ctaband__text h2 { font-family: var(--su-font-head); color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin: 0 0 8px; }
.bp-ctaband__text p { margin: 0; color: rgba(234,240,248,.84); font-size: .98rem; line-height: 1.6; }
.bp-ctaband__btns { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================================
   ABOUT PAGE
   ========================================================================= */
.bp-eyebrow {
	display: inline-block;
	font-family: var(--su-font-body);
	font-weight: 700;
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--su-cta-deep);
	margin-bottom: 10px;
}
.bp-section__head { text-align: center; margin-bottom: 34px; }
.bp-section__head .bp-section__title { margin: 0; }
.bp-section__title--left { text-align: left; margin: 0 0 18px; }

/* Story: text + media */
.bp-about__story {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 44px;
	align-items: center;
}
.bp-about__story-text p {
	color: var(--su-ink-soft);
	font-size: 1rem;
	line-height: 1.8;
	margin: 0 0 16px;
}
.bp-about__edit-note { font-size: .85rem; color: var(--su-muted); }
.bp-about__story-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.bp-about__media {
	position: relative;
	min-height: 340px;
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(150deg, var(--su-navy) 0%, var(--su-navy-deep) 70%, #060d18 100%);
	box-shadow: var(--su-shadow-md);
	display: flex;
	align-items: center;
	justify-content: center;
}
.bp-about__media::before {
	content: "";
	position: absolute;
	right: -60px; top: -60px;
	width: 220px; height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(90,169,230,.28), transparent 70%);
}
.bp-about__media::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--su-steel), var(--su-sky), var(--su-cta));
}
.bp-about__media-logo {
	position: relative;
	font-family: var(--su-font-head);
	font-weight: 800;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	letter-spacing: -.01em;
	color: #fff;
	opacity: .92;
}
.bp-about__media-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Stats band */
.bp-section--navy {
	background: linear-gradient(135deg, var(--su-navy), var(--su-navy-deep));
}
.bp-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	text-align: center;
}
.bp-stat { padding: 8px 10px; position: relative; }
.bp-stat + .bp-stat::before {
	content: "";
	position: absolute;
	left: -11px; top: 50%;
	transform: translateY(-50%);
	width: 1px; height: 56px;
	background: rgba(255,255,255,.14);
}
.bp-stat__num {
	display: block;
	font-family: var(--su-font-head);
	font-weight: 800;
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	color: #fff;
	line-height: 1.1;
}
.bp-stat__label {
	display: block;
	margin-top: 6px;
	font-size: .82rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--su-sky);
}

/* Mission quote */
.bp-mission {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}
.bp-mission__ico {
	display: inline-flex;
	width: 56px; height: 56px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--su-surface-2);
	color: var(--su-navy);
	margin-bottom: 20px;
}
.bp-mission__ico svg { width: 28px; height: 28px; }
.bp-mission__text {
	font-family: var(--su-font-head);
	font-weight: 600;
	font-size: clamp(1.25rem, 2.4vw, 1.7rem);
	line-height: 1.6;
	color: var(--su-navy);
	margin: 0 0 16px;
}
.bp-mission__by { font-weight: 600; color: var(--su-muted); letter-spacing: .02em; }

/* Ghost button on light background (About story) */
.bp-btn--ghost { background: transparent; color: var(--su-navy); border-color: var(--su-line-strong); }
.bp-btn--ghost:hover { background: var(--su-navy); border-color: var(--su-navy); color: #fff; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 992px) {
	.bp-contact__grid,
	.bp-form-layout { grid-template-columns: 1fr; }
	.bp-form-layout .bp-form-aside { order: 2; }
	.bp-reasons { grid-template-columns: repeat(2, 1fr); }
	.bp-about__story { grid-template-columns: 1fr; gap: 30px; }
	.bp-about__media { min-height: 240px; order: -1; }
	.bp-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; }
	.bp-stat + .bp-stat::before { display: none; }
}

@media (max-width: 760px) {
	.bpf-grid { grid-template-columns: 1fr; }
	.bp-steps { grid-template-columns: 1fr; }
	.bp-tiers { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
	.bp-tier--featured { order: -1; }
	.bp-ctaband { flex-direction: column; align-items: flex-start; }
	.bp-ctaband__btns { width: 100%; }
	.bp-ctaband__btns .bp-btn { flex: 1; }
}

@media (max-width: 460px) {
	.bp-reasons { grid-template-columns: 1fr; }
	.bpf-submit { width: 100%; }
}
