/* ==========================================================================
   Theme-built pages: Home, About, Contact, Bulk & Trade, catalogue.
   Uses the tokens defined in shop.css.
   ========================================================================== */

.tie-wrap {
	max-width: var(--tie-wrap);
	margin-inline: auto;
	padding-inline: var(--tie-gutter);
	box-sizing: border-box;
}
.tie-section { padding-block: clamp(56px, 8vw, 96px); }
.tie-section--paper { background: var(--tie-paper); border-block: 1px solid var(--tie-rule); }
.tie-section--tight { padding-top: 0; }
.tie-section__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 40px;
	border-bottom: 1px solid var(--tie-ink);
	padding-bottom: 16px;
	margin-bottom: 28px;
}
.tie-section__head h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 0; }
.tie-section__head p { margin: 0; max-width: 460px; color: var(--tie-body); }
.tie-section__head--plain { border-bottom: 0; padding-bottom: 0; }
.tie-lead { font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--tie-body); }

/* ---------- Home hero ---------- */
.tie-hero {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 24px;
	padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 72px);
	align-items: center;
}
.tie-hero__text { grid-column: span 6; display: flex; flex-direction: column; gap: 26px; }
.tie-hero__text .tie-eyebrow { margin: 0; }
.tie-hero__title {
	margin: 0;
	font-size: clamp(3rem, 6.6vw, 5.8rem) !important;
	line-height: 0.95 !important;
	letter-spacing: -0.03em !important;
}
.tie-hero__lead { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--tie-body); max-width: 34em; }
.tie-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tie-hero__actions .tie-btn { min-height: 56px; padding: 0 1.8em; }
.tie-hero__media { grid-column: span 6; position: relative; aspect-ratio: 11 / 10; }
.tie-hero__photo { position: absolute; inset: 0; overflow: hidden; background: var(--tie-mist); }
.tie-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tie-hero__inset {
	position: absolute;
	left: -36px;
	bottom: -28px;
	width: 34%;
	aspect-ratio: 7 / 10;
	border: 8px solid var(--tie-cloud);
	overflow: hidden;
	background: var(--tie-ink);
}
.tie-hero__inset img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
	.tie-hero__text, .tie-hero__media { grid-column: 1 / -1; }
	.tie-hero__media { margin: 8px 0 20px 0; }
	.tie-hero__inset { left: 12px; bottom: -20px; width: 30%; border-width: 6px; }
}

/* ---------- Proof bar ---------- */
.tie-proofbar {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-block: 1px solid var(--tie-ink);
}
.tie-proofbar li { padding: 24px; border-right: 1px solid var(--tie-rule); }
.tie-proofbar li:first-child { padding-left: 0; }
.tie-proofbar li:last-child { border-right: 0; }
.tie-proofbar strong { display: block; font-family: var(--tie-display); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.1; }
.tie-proofbar span { font-size: 0.9rem; color: var(--tie-body); }
@media (max-width: 800px) {
	.tie-proofbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tie-proofbar li { padding: 18px 16px; border-bottom: 1px solid var(--tie-rule); }
	.tie-proofbar li:nth-child(odd) { padding-left: 0; }
	.tie-proofbar li:nth-child(2n) { border-right: 0; }
	.tie-proofbar li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Two ways to buy ---------- */
.tie-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tie-path {
	padding: clamp(24px, 3.4vw, 44px);
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--tie-paper);
	border: 1px solid var(--tie-rule);
}
.tie-path h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.tie-path p { margin: 0; color: var(--tie-body); max-width: 32em; }
.tie-path .tie-link { margin-top: auto; }
.tie-path--drum { background: var(--tie-tea); border-color: var(--tie-tea); color: var(--tie-cloud); }
.tie-path--drum h2 { color: var(--tie-cloud) !important; }
.tie-path--drum .tie-eyebrow { color: var(--tie-mist-2); }
.tie-path--drum p { color: var(--tie-mist); }
.tie-drumform { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 12px; align-items: end; }
.tie-drumform label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--tie-mist-2); }
.tie-drumform select,
.tie-drumform input {
	height: 48px;
	box-sizing: border-box;
	border: 1px solid var(--tie-mist-2);
	border-radius: 0;
	background: transparent;
	color: var(--tie-cloud);
	padding: 0 12px;
	font: inherit;
	font-size: 1rem;
	width: 100%;
}
.tie-drumform input { font-family: var(--tie-mono); }
.tie-drumform select option { color: var(--tie-ink); }
.tie-drumform .tie-btn { min-height: 48px; }
@media (max-width: 860px) {
	.tie-paths { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.tie-drumform { grid-template-columns: 1fr 1fr; }
	.tie-drumform label:first-child, .tie-drumform .tie-btn { grid-column: 1 / -1; }
}

/* ---------- Product cards (Home, catalogue) ---------- */
.tie-range { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tie-pcard {
	display: flex;
	flex-direction: column;
	background: var(--tie-paper);
	border: 1px solid var(--tie-rule);
	text-decoration: none;
	color: var(--tie-ink) !important;
	transition: border-color 0.2s ease;
}
.tie-pcard:hover { border-color: var(--tie-ink); }
.tie-pcard__img { display: block; aspect-ratio: 1 / 1; background: var(--tie-mist); border-bottom: 1px solid var(--tie-rule); overflow: hidden; }
.tie-pcard:nth-child(even) .tie-pcard__img { background: var(--tie-stone); }
.tie-pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tie-pcard__img svg { width: 100%; height: 100%; display: block; }
.tie-pcard__body { display: flex; flex-direction: column; gap: 3px; padding: 18px; flex: 1; }
.tie-pcard__name { font-family: var(--tie-display); font-size: 1.35rem; line-height: 1.15; }
.tie-pcard__botanical { font-family: var(--tie-display); font-style: italic; font-size: 0.95rem; color: var(--tie-body); }
.tie-pcard__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; font-family: var(--tie-mono); font-size: 0.8rem; }
.tie-pcard__meta span + span { color: var(--tie-blue); }
@media (max-width: 1024px) { .tie-range { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
	.tie-range { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tie-pcard__body { padding: 12px; }
	.tie-pcard__name { font-size: 1.1rem; }
	.tie-pcard__meta { flex-direction: column; gap: 2px; }
}

/* ---------- Hill to Drum ---------- */
.tie-h2d { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--tie-ink); }
.tie-h2d li { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--tie-rule); }
.tie-h2d li:first-child { padding-left: 0; }
.tie-h2d li:last-child { border-right: 0; }
.tie-h2d__step { font-family: var(--tie-mono); color: var(--tie-gold); font-size: 0.85rem; letter-spacing: 0.06em; }
.tie-h2d h3 { margin: 0; font-size: clamp(1.4rem, 2vw, 1.7rem); }
.tie-h2d p { margin: 0; color: var(--tie-body); font-size: 0.97rem; }
@media (max-width: 900px) {
	.tie-h2d { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tie-h2d li { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--tie-rule); }
	.tie-h2d li:nth-child(2n) { border-right: 0; padding-left: 16px; }
}
@media (max-width: 520px) {
	.tie-h2d { grid-template-columns: 1fr; }
	.tie-h2d li, .tie-h2d li:nth-child(2n) { border-right: 0; padding-left: 0; }
}

/* ---------- Batch lookup ---------- */
.tie-batch { background: var(--tie-tea); color: var(--tie-cloud); scroll-margin-top: 100px; }
.tie-batch__inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 40px; padding-block: clamp(40px, 6vw, 72px); }
.tie-batch__text { flex: 1 1 360px; }
.tie-batch h2 { color: var(--tie-cloud) !important; margin: 0 0 8px; font-size: clamp(2rem, 3.4vw, 2.6rem); }
.tie-batch p { margin: 0; color: var(--tie-mist); }
.tie-batch form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.tie-batch label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--tie-mist); }
.tie-batch input {
	width: min(300px, 70vw);
	height: 52px;
	box-sizing: border-box;
	border: 1px solid var(--tie-mist);
	border-radius: 0;
	background: transparent;
	color: var(--tie-cloud);
	padding: 0 14px;
	font-family: var(--tie-mono);
	font-size: 1rem;
	text-transform: uppercase;
}
.tie-batch input::placeholder { color: rgba(220, 228, 225, 0.6); text-transform: none; }
.tie-batch__result {
	flex-basis: 100%;
	background: var(--tie-cloud);
	color: var(--tie-ink);
	padding: 20px 24px;
}
.tie-batch__result p { color: var(--tie-ink); }
.tie-batch__result .tie-docs__list { margin: 12px 0 0; }

/* ---------- CTA band ---------- */
.tie-cta-band { background: var(--tie-ink); color: var(--tie-mist); }
.tie-cta-band__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; padding-block: clamp(40px, 6vw, 72px); }
.tie-cta-band h2 { color: var(--tie-cloud) !important; margin: 0 0 8px; font-size: clamp(2rem, 3.4vw, 2.6rem); }
.tie-cta-band p { margin: 0; max-width: 40em; }
.tie-cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Quality band ---------- */
.tie-quality { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.tie-quality h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0 0 14px; }
.tie-quality p { color: var(--tie-body); margin: 0; }
.tie-quality__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--tie-ink); }
.tie-quality__list li { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--tie-rule-soft); }
.tie-quality__list strong { display: block; font-family: var(--tie-display); font-weight: 400; font-size: 1.6rem; }
.tie-quality__list span { font-size: 0.9rem; color: var(--tie-body); }
@media (max-width: 860px) { .tie-quality { grid-template-columns: 1fr; } }

/* ---------- Page head (inner pages) ---------- */
.tie-pagehead {
	padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px);
	background: linear-gradient(var(--tie-ink), var(--tie-ink)) no-repeat center bottom / calc(100% - 2 * var(--tie-gutter)) 1px;
}
.tie-pagehead p.tie-eyebrow { font-size: 0.75rem; margin: 0 0 0.75rem; color: var(--tie-blue); }
.tie-page-trade-bulk .tie-quote { margin: 0; max-width: none; }
.tie-page-trade-bulk .tie-cols { align-items: start; }
.tie-pagehead h1 { font-size: clamp(2.8rem, 6vw, 5rem) !important; line-height: 0.98 !important; margin: 0; max-width: 14em; }
.tie-pagehead p { margin: 20px 0 0; max-width: 40em; font-size: 1.15rem; color: var(--tie-body); }
.tie-pagehead--photo { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.tie-pagehead__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tie-mist); }
.tie-pagehead__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .tie-pagehead--photo { grid-template-columns: 1fr; } }

/* ---------- Prose, split, timeline ---------- */
.tie-prose { max-width: 760px; }
.tie-prose p { margin: 0 0 1.1em; }
.tie-cols { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 72px); }
.tie-cols h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0; }
@media (max-width: 860px) { .tie-cols { grid-template-columns: 1fr; } }
.tie-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); align-items: center; }
.tie-split__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tie-ink); }
.tie-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tie-split h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0 0 20px; }
@media (max-width: 860px) { .tie-split { grid-template-columns: 1fr; } .tie-split__media { aspect-ratio: 4 / 3; } }
.tie-timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tie-ink); }
.tie-timeline li { display: grid; grid-template-columns: 6rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--tie-rule-soft); }
.tie-timeline strong { font-family: var(--tie-mono); font-weight: 400; color: var(--tie-gold); }
.tie-timeline span { color: var(--tie-body); }

/* ---------- Bulk & Trade ---------- */
.tie-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--tie-rule); }
.tie-points li { padding: 22px 24px 22px 0; border-right: 1px solid var(--tie-rule); display: flex; flex-direction: column; gap: 8px; }
.tie-points li + li { padding-left: 24px; }
.tie-points li:last-child { border-right: 0; }
.tie-points strong { font-family: var(--tie-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.tie-points span { color: var(--tie-body); font-size: 0.97rem; }
@media (max-width: 860px) {
	.tie-points { grid-template-columns: 1fr; }
	.tie-points li, .tie-points li + li { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--tie-rule-soft); }
}

/* ---------- Contact ---------- */
.tie-contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.tie-contact__details { border-top: 1px solid var(--tie-ink); }
.tie-contact__details > div { padding: 16px 0; border-bottom: 1px solid var(--tie-rule-soft); }
.tie-contact__details p { margin: 0; font-size: 1.05rem; }
.tie-contact__details p.tie-eyebrow { margin: 0 0 4px; font-size: 0.75rem; }
.tie-contact__details a { text-decoration: none; font-weight: 600; }
.tie-contact__form { background: var(--tie-paper); border: 1px solid var(--tie-rule); padding: clamp(20px, 3vw, 36px); }
.tie-contact__form h2 { font-size: 2rem; margin: 0 0 16px; }
.tie-contact__form .wpforms-container { margin: 0 !important; }
.tie-contact__form .wpforms-field-label { font-family: var(--tie-sans) !important; font-weight: 600 !important; color: var(--tie-ink) !important; }
.tie-contact__form input[type="text"],
.tie-contact__form input[type="email"],
.tie-contact__form input[type="tel"],
.tie-contact__form select,
.tie-contact__form textarea {
	border: 1px solid var(--tie-rule) !important;
	border-radius: 0 !important;
	background: #fff !important;
	min-height: 48px;
	font-family: var(--tie-sans) !important;
	box-shadow: none !important;
}
.tie-contact__form .wpforms-submit {
	background: var(--tie-tea) !important;
	color: var(--tie-cloud) !important;
	border: 0 !important;
	border-radius: 0 !important;
	min-height: 52px;
	padding: 0 1.8em !important;
	font-family: var(--tie-sans) !important;
	font-weight: 600 !important;
}
@media (max-width: 860px) { .tie-contact { grid-template-columns: 1fr; } }
