/*
Theme Name:   TroveMart
Theme URI:    https://trovemart.co.uk
Description:  TroveMart child theme for Kadence. The design matches the original static site.
Author:       Momin Khan Ltd t/a TroveMart
Template:     kadence
Version:      0.2.1
Text Domain:  trovemart
*/

/* Brand tokens, taken from the static site (migration/static-site/assets/css/style.css) */
:root {
	--tm-brand: #16234d;
	--tm-brand-2: #223766;
	--tm-accent: #f0a500;
	--tm-accent-dark: #cf8c00;
	--tm-bg: #f5f7fb;
	--tm-card: #ffffff;
	--tm-cream: #faf6ec;
	--tm-ink: #141c33;
	--tm-muted: #67718a;
	--tm-line: #e6e9f2;
	--tm-radius: 16px;
	--tm-shadow: 0 6px 24px rgba(20, 28, 51, .08);
	--tm-shadow-lg: 0 18px 44px rgba(20, 28, 51, .16);
	--tm-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tm-display: "Plus Jakarta Sans", var(--tm-sans);
}

/*
 * Compatibility between the static site's stylesheet (assets/css/static.css) and WordPress/Kadence.
 * static.css does the design. These rules only undo clashes.
 */

/* WordPress puts class="page" on <body>; static.css's .page rule is meant for <main class="page"> only */
body.page { padding: 0; max-width: none; }

/* Kadence page background and wrapper: let the static design own the full width */
body { background: var(--tm-bg); }
#wrapper.site { background: transparent; }

/* Cart/checkout/account pages: a wider column than the 840px prose column */
main.page--wide { max-width: 1100px; }

/* Kadence colours h1–h6 directly; the static design lets headings inherit (e.g. white on dark bands) */
body h1, body h2, body h3, body h4, body h5, body h6 { color: inherit; }

/* ── Careers: Simple Job Board listing styled like the static site's role cards ── */
.sjb-page { max-width: 820px; margin: 0 auto; font-family: var(--tm-sans); }
.sjb-page .sjb-filters { display: none; }                 /* small team: no search filters, as on the static page */
.sjb-page .sjb-listing .list-data,
.sjb-page .sjb-listing .sjb-list-row { border: 0 !important; }
.sjb-page article[class*="sjb-job-"],
.sjb-page .v1[class*="sjb-job-"] {
	background: var(--tm-card); border: 1px solid var(--tm-line); border-radius: var(--tm-radius);
	box-shadow: var(--tm-shadow); padding: 22px 24px; margin-bottom: 18px;
}
.sjb-page .sjb-img-responsive, .sjb-page .company-logo { display: none !important; }
.sjb-page h4, .sjb-page h3 { font-family: var(--tm-display); color: var(--tm-brand); }
.sjb-page a.btn, .sjb-page .sjb-apply-now-btn a, .sjb-page a.sjb-apply-now-btn, .sjb-page input[type="submit"], .sjb-page button {
	background: var(--tm-accent) !important; color: #20160a !important; border: 0 !important; border-radius: 999px !important;
	font-family: var(--tm-display); font-weight: 700; padding: .55em 1.2em !important; box-shadow: none !important;
}
.sjb-page a.btn:hover, .sjb-page .sjb-apply-now-btn a:hover { background: var(--tm-accent-dark) !important; }
.sjb-page .sjb-apply-now-btn { display: flex; gap: 10px; flex-wrap: wrap; background: none !important; padding: 0 !important; }
.sjb-page .sjb-list-row > [class*="col-"]:first-child:has(.sjb-img-responsive) { display: none; }
.sjb-page .job-info, .sjb-page .job-description, .sjb-page p { color: #39465f; }
.sjb-page i.fa, .sjb-page .fa { color: var(--tm-accent-dark); }

/* Header: Staff portal login (pill on wide screens, icon-only circle when space is tight) */
.staff-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45em; flex: none;
	height: 42px; padding: 0 14px 0 12px; margin-left: 14px; border-radius: 999px;
	border: 1px solid var(--line); background: #fff; color: var(--brand);
	font-family: var(--display); font-weight: 700; font-size: .86rem; white-space: nowrap; transition: .15s;
}
.staff-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
@media (max-width: 1140px) {
	.staff-btn { width: 42px; padding: 0; }
	.staff-btn-label { display: none; }
}
@media (max-width: 820px) { .staff-btn { margin-left: 10px; } }
