/* =====================================================================
   UNISON BSME theme
   ===================================================================== */

:root {
	--green: #4E842E;
	--charcoal: #32312F;
	--charcoal-2: #4A4946;
	--accent: #F5C518;
	--ink: #1F1E1C;
	--muted: #5C5A56;
	--bg: #F7F6F3;
	--surface: #FFFFFF;
	--border: #E6E3DE;
	--soft: #E6E4E0;
	--tile: #ECEAE6;
	--foot-text: #D2CEC8;
	--radius: 16px;
	--shadow: 0 8px 24px rgba(32, 31, 29, 0.10);
	--font-head: "Archivo", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--charcoal); }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

.bsme-wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 48px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.bsme-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--accent);
	color: var(--ink);
	font-weight: 700;
	border-radius: 8px;
}
.bsme-skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.bsme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 28px;
	border-radius: 999px;
	border: 2px solid transparent;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.bsme-btn:hover { transform: translateY(-1px); }
.bsme-btn--sm { min-height: 44px; padding: 10px 22px; font-size: 15px; }
.bsme-btn--accent { background: var(--accent); color: var(--ink); }
.bsme-btn--accent:hover { background: #FFD23F; color: var(--ink); }
.bsme-btn--outline { border-color: #fff; color: #fff; }
.bsme-btn--outline:hover { background: #fff; color: var(--ink); }
.bsme-btn--dark { background: var(--charcoal); color: #fff; }
.bsme-btn--dark:hover { background: var(--ink); color: #fff; }

.bsme-more {
	font-weight: 700;
	font-size: 15px;
	color: var(--charcoal);
	text-decoration: none;
}
a.bsme-more:hover, a:hover .bsme-more { text-decoration: underline; text-underline-offset: 4px; }

.bsme-eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--charcoal-2);
}

.bsme-icon { width: 28px; height: 28px; flex: none; }

/* ---------- Help strip ---------- */
.bsme-strip {
	background: var(--charcoal);
	color: #fff;
	font-size: 14px;
}
.bsme-strip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 24px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.bsme-strip p { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bsme-strip a { color: #fff; font-weight: 700; text-decoration: none; }
.bsme-strip a:hover { text-decoration: underline; }
.bsme-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.bsme-strip__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.bsme-strip__links a { color: var(--soft); font-weight: 500; }

/* ---------- Header ---------- */
.bsme-header { background: var(--green); color: #fff; position: relative; z-index: 50; }
.bsme-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.bsme-logo { display: inline-flex; flex: none; }
.bsme-logo img { display: block; width: auto; }
.bsme-logo--header img { height: 64px; border-radius: 8px; }
.bsme-logo--footer img { height: 84px; border-radius: 10px; }

.bsme-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.bsme-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.bsme-menu li { position: relative; }
.bsme-menu a {
	display: block;
	padding: 12px 14px;
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border-radius: 8px;
}
.bsme-menu a:hover,
.bsme-menu .current-menu-item > a { background: rgba(0, 0, 0, 0.14); color: #fff; }

/* dropdowns */
.bsme-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border-radius: 12px;
	box-shadow: var(--shadow);
	display: none;
}
.bsme-menu li:hover > .sub-menu,
.bsme-menu li:focus-within > .sub-menu { display: block; }
.bsme-menu .sub-menu a { color: var(--ink); }
.bsme-menu .sub-menu a:hover { background: var(--tile); color: var(--ink); }

.bsme-nav__search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #fff;
	border-radius: 8px;
}
.bsme-nav__search:hover { background: rgba(0, 0, 0, 0.14); color: #fff; }
.bsme-nav__search .bsme-icon { width: 20px; height: 20px; }
.bsme-nav .bsme-btn { margin-left: 8px; }

.bsme-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 14px;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 10px;
	background: transparent;
	color: #fff;
	font: 600 15px var(--font-body);
	cursor: pointer;
}
.bsme-menu-toggle .bsme-icon { width: 22px; height: 22px; }

@media (max-width: 960px) {
	.bsme-header__inner { flex-wrap: wrap; }
	.bsme-logo--header img { height: 52px; }
	.bsme-menu-toggle { display: inline-flex; }
	.bsme-nav {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 8px 0 4px;
		border-top: 1px solid rgba(255, 255, 255, 0.25);
	}
	.bsme-nav.is-open { display: flex; }
	.bsme-menu { flex-direction: column; }
	.bsme-menu a { padding: 14px 8px; font-size: 17px; }
	.bsme-menu .sub-menu { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 0 16px; }
	.bsme-menu .sub-menu a { color: #fff; }
	.bsme-nav__search { width: auto; justify-content: flex-start; padding: 0 8px; }
	.bsme-nav .bsme-btn { margin: 12px 0 8px; align-self: flex-start; }
}

/* ---------- Hero ---------- */
.bsme-hero { background: var(--charcoal); color: #fff; }
.bsme-hero__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
	align-items: center;
	padding-top: 88px;
	padding-bottom: 120px;
}
.bsme-hero h1 {
	font-weight: 900;
	font-size: clamp(2.25rem, 5vw, 4rem);
	line-height: 1.03;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
}
.bsme-pill {
	display: inline-block;
	margin: 0 0 22px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--charcoal-2);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.bsme-hero__text { margin: 0 0 28px; font-size: 19px; line-height: 1.55; color: var(--soft); max-width: 36em; }
.bsme-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bsme-hero__img,
.bsme-hero__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 20px;
}
.bsme-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: var(--charcoal-2);
	color: var(--soft);
	text-align: center;
	font-size: 15px;
}

/* ---------- Quick links ---------- */
.bsme-quick {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: -56px;
	position: relative;
	z-index: 2;
}
.bsme-quick__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--ink);
	text-decoration: none;
	transition: transform .18s ease;
}
.bsme-quick__card:hover { transform: translateY(-3px); color: var(--ink); }
.bsme-quick__card .bsme-icon { color: var(--charcoal); margin-bottom: 4px; }
.bsme-quick__title { font-family: var(--font-head); font-weight: 800; font-size: 20px; line-height: 1.2; }
.bsme-quick__text { font-size: 15px; color: var(--muted); line-height: 1.5; }
.bsme-quick__card .bsme-more { margin-top: auto; padding-top: 6px; }

/* ---------- Sections ---------- */
.bsme-section { padding-top: 88px; padding-bottom: 40px; }
.bsme-section__head { margin-bottom: 32px; }
.bsme-section__head h2 { font-weight: 900; font-size: clamp(2rem, 3.5vw, 2.75rem); margin: 0; }
.bsme-section__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}
.bsme-section__row h2 { font-weight: 900; font-size: 32px; margin: 0; }

/* ---------- Cards ---------- */
.bsme-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bsme-cards--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsme-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .18s ease;
}
.bsme-card:hover { transform: translateY(-3px); }
.bsme-card__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.bsme-card__link:hover { color: var(--ink); }
.bsme-card__media { aspect-ratio: 16 / 10; background: var(--tile); }
.bsme-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bsme-card__body { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px 24px; flex: 1; }
.bsme-card__title { font-weight: 800; font-size: 20px; line-height: 1.25; margin: 0 0 12px; }
.bsme-card .bsme-more { margin-top: auto; }

/* ---------- News + sidebar ---------- */
.bsme-news-area {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
	padding-top: 40px;
	padding-bottom: 96px;
}
.bsme-newslist {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.bsme-newslist li + li { border-top: 1px solid var(--border); }
.bsme-newslist a {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 24px;
	padding: 22px 28px;
	color: var(--ink);
	text-decoration: none;
}
.bsme-newslist a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.bsme-newslist time { width: 110px; flex: none; font-size: 14px; color: var(--muted); }
.bsme-newslist span { flex: 1 1 260px; font-weight: 600; font-size: 17px; line-height: 1.4; }
.bsme-newslist--empty { padding: 28px; color: var(--muted); }

.bsme-news-area__side { display: flex; flex-direction: column; gap: 20px; }
.bsme-support {
	padding: 32px;
	border-radius: var(--radius);
	background: var(--charcoal);
	color: #fff;
}
.bsme-support h3 { font-weight: 800; font-size: 24px; margin: 0 0 10px; }
.bsme-support p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--soft); }
.bsme-support__phone {
	display: block;
	margin-bottom: 16px;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 28px;
	color: #fff;
	text-decoration: none;
}
.bsme-support__phone:hover { color: var(--accent); }

.bsme-panel {
	padding: 24px 28px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
}
.bsme-panel__title { font-size: 18px; font-weight: 800; }
.bsme-social { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.bsme-social:hover { color: var(--ink); border-color: var(--charcoal-2); }
.bsme-social > span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); line-height: 1.4; }
.bsme-social strong { font-size: 16px; color: var(--ink); }

/* ---------- Search form ---------- */
.bsme-search label {
	display: block;
	margin-bottom: 12px;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 18px;
}
.bsme-search__row { display: flex; gap: 8px; }
.bsme-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #CFCBC4;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	color: var(--ink);
}
.bsme-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex: none;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--charcoal);
	color: #fff;
	cursor: pointer;
}
.bsme-search button:hover { background: var(--ink); }
.bsme-search .bsme-icon { width: 20px; height: 20px; }

/* ---------- Join band ---------- */
.bsme-join { background: var(--accent); }
.bsme-join__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 64px;
	padding-bottom: 64px;
}
.bsme-join h2 { max-width: 640px; margin: 0; font-weight: 900; font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--ink); }
.bsme-join .bsme-btn { font-size: 17px; padding: 18px 32px; }

/* ---------- Footer ---------- */
.bsme-footer { background: var(--ink); color: var(--foot-text); font-size: 14px; }
.bsme-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	padding-top: 56px;
	padding-bottom: 40px;
}
.bsme-footer p { margin: 0 0 8px; }
.bsme-footer__brand p { margin-top: 14px; }
.bsme-footer a { color: var(--foot-text); text-decoration: none; }
.bsme-footer a:hover { color: #fff; text-decoration: underline; }
.bsme-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bsme-footer__phone { color: #fff !important; font-weight: 700; }
.bsme-footer__base { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid #3A3936; color: #A7A39C; }
.bsme-footer__base p { margin: 0; }

/* ---------- Inner pages ---------- */
.bsme-pagehead { background: var(--charcoal); color: #fff; }
.bsme-pagehead .bsme-wrap { padding-top: 64px; padding-bottom: 64px; }
.bsme-pagehead h1 { font-weight: 900; font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0; max-width: 20em; }
.bsme-pagehead__meta { margin: 0 0 12px; font-size: 14px; color: var(--soft); }
.bsme-pagehead__meta a { color: var(--accent); }
.bsme-pagehead__search { max-width: 520px; margin-top: 24px; }
.bsme-pagehead__search label { color: #fff; }

.bsme-prose-wrap { padding-top: 56px; padding-bottom: 96px; }
.bsme-prose {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 48px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.bsme-prose > :first-child { margin-top: 0; }
.bsme-prose h2 { font-size: 28px; margin-top: 1.6em; }
.bsme-prose h3 { font-size: 22px; margin-top: 1.4em; }
.bsme-prose a { color: var(--green); font-weight: 600; }
.bsme-prose img { border-radius: 12px; }
.bsme-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); }
.bsme-prose__image { margin: 0 0 28px; }
.bsme-prose__image img { width: 100%; }

.bsme-postnav { max-width: 760px; margin: 32px auto 0; }
.bsme-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bsme-postnav a {
	display: block;
	height: 100%;
	padding: 20px 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-weight: 600;
	text-decoration: none;
	color: var(--ink);
}
.bsme-postnav .nav-next { text-align: right; }
.bsme-postnav .bsme-eyebrow { display: block; }

.bsme-pagination { margin-top: 40px; }
.bsme-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bsme-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 10px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
}
.bsme-pagination .page-numbers.current { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* Elementor pages: let Elementor control the full width */
.bsme-elementor { display: block; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.bsme-quick, .bsme-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bsme-cards--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bsme-news-area { grid-template-columns: minmax(0, 1fr); }
	.bsme-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	body { font-size: 16px; }
	.bsme-wrap { padding-left: 16px; padding-right: 16px; }
	.bsme-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 96px; }
	.bsme-quick, .bsme-cards, .bsme-cards--archive { grid-template-columns: minmax(0, 1fr); }
	.bsme-section { padding-top: 64px; }
	.bsme-newslist a { padding: 18px 20px; }
	.bsme-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.bsme-prose { padding: 28px 20px; }
	.bsme-postnav .nav-links { grid-template-columns: 1fr; }
	.bsme-postnav .nav-next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ---------- Elementor "Site menu" widget ---------- */
.bsme-elnav { display: flex; align-items: center; justify-content: flex-end; }
.bsme-elnav .bsme-nav { flex-wrap: wrap; }
.elementor-widget-bsme-logo .bsme-logo img { display: block; }
.elementor-widget-bsme-cards .bsme-cards,
.elementor-widget-bsme-news .bsme-newslist { margin: 0; }

@media (max-width: 960px) {
	.bsme-elnav .bsme-nav.is-open {
		position: fixed;
		inset: 0;
		z-index: 9998;
		width: auto;
		padding: 88px 24px 32px;
		overflow-y: auto;
		border-top: 0;
		background: var(--green);
		justify-content: flex-start !important;
		align-items: flex-start;
	}
	.bsme-elnav .bsme-menu-toggle[aria-expanded="true"] {
		position: fixed;
		top: 16px;
		right: 16px;
		z-index: 9999;
	}
	html.bsme-menu-open { overflow: hidden; }
}
