/* =========================================================================
   BROXAIL International — theme styles
   Global colours and fonts are set in Elementor → Site Settings; the tokens
   below read them (with fallbacks), so the header, footer, blog and
   catalogue follow any change made there. Page sections are styled in
   Elementor itself.
   ========================================================================= */

body {
	--brx-forest: var(--e-global-color-primary, #26331e);
	--brx-deep:   var(--e-global-color-secondary, #182112);
	--brx-text:   var(--e-global-color-text, #2b3127);
	--brx-lime:   var(--e-global-color-accent, #d8f784);
	--brx-ink:    var(--e-global-color-brxink, #141a10);
	--brx-muted:  var(--e-global-color-brxmuted, #5f665a);
	--brx-line:   var(--e-global-color-brxline, #dcdbd3);
	--brx-stone:  var(--e-global-color-brxstone, #f3f2ec);
	--brx-night:  var(--e-global-color-brxnight, #10150d);
	--brx-h: 'Funnel Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--brx-b: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--brx-radius: 3px;
	--brx-container: 1280px;
	--brx-gutter: 24px;
	--brx-bar: 72px;

	margin: 0;
	background: #fff;
	color: var(--brx-text);
	font-family: var(--brx-b);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) {
	body { --brx-gutter: 16px; }
}

:where(h1, h2, h3, h4, h5, h6) { font-family: var(--brx-h); color: var(--brx-forest); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
:where(h1) { font-size: 2.6rem; }
:where(h2) { font-size: 2rem; }
:where(h3) { font-size: 1.35rem; }
:where(h4) { font-size: 1.1rem; }
a { color: var(--brx-forest); text-underline-offset: 3px; }
a:hover { color: var(--brx-deep); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--brx-forest); outline-offset: 2px; }

.brx-container { width: 100%; max-width: calc(var(--brx-container) + 2 * var(--brx-gutter)); margin-inline: auto; padding-inline: var(--brx-gutter); box-sizing: border-box; }
.brx-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--brx-lime); color: var(--brx-ink); padding: 8px 14px; }
.brx-skip:focus { left: 8px; }
.brx-icon { flex-shrink: 0; }

/* ---------- Buttons & links ---------- */
.brx-btn,
.broxail-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	padding: 12px 20px; border: 1px solid transparent; border-radius: var(--brx-radius);
	font-family: var(--brx-h); font-size: 15px; font-weight: 600; line-height: 1.2;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.brx-btn--lg { padding: 15px 26px; font-size: 16px; }
.brx-btn--primary, .broxail-quote { background: var(--brx-forest); border-color: var(--brx-forest); color: #fff; }
.brx-btn--primary:hover, .broxail-quote:hover { background: var(--brx-lime); border-color: var(--brx-lime); color: var(--brx-forest); }
.brx-btn--lime { background: var(--brx-lime); border-color: var(--brx-lime); color: var(--brx-ink); }
.brx-btn--lime:hover { background: var(--brx-forest); border-color: var(--brx-forest); color: var(--brx-lime); }
.brx-btn--outline, .broxail-whatsapp { background: transparent; border-color: var(--brx-ink); color: var(--brx-ink); }
.brx-btn--outline:hover, .broxail-whatsapp:hover { background: var(--brx-ink); color: #fff; }

.brx-link {
	display: inline-flex; align-items: center; gap: 0.4em;
	font-family: var(--brx-h); font-weight: 600; color: var(--brx-forest);
	text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.brx-link::after { content: "→"; transition: transform 0.15s; }
.brx-link:hover::after { transform: translateX(3px); }
.brx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

/* ---------- Header ---------- */
.brx-header { position: sticky; top: -34px; z-index: 100; }
@media (min-width: 783px) {
	.admin-bar .brx-header { top: -2px; }
}

.brx-topbar { background: var(--brx-night); color: rgba(255, 255, 255, 0.7); font-size: 13px; }
.brx-topbar__inner { display: flex; align-items: center; gap: 24px; height: 34px; }
.brx-topbar__tag { flex: 1; margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brx-topmenu { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.brx-topbar a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.brx-topbar a:hover { color: #fff; }
.brx-topbar__contact { display: flex; gap: 20px; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.brx-topbar__contact a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.brx-mainbar { background: var(--brx-forest); }
/* Full-bleed main bar: the logo sits in the far-left corner, actions in the far-right. */
.brx-mainbar > .brx-container { max-width: 100%; padding-inline: 28px; }
@media (max-width: 767px) { .brx-mainbar > .brx-container { padding-inline: 16px; } }
.brx-mainbar__inner { display: flex; align-items: center; gap: 28px; height: var(--brx-bar); }
.brx-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brx-brand__mark { width: 40px; height: 40px; display: block; }
.brx-brand__name { font-family: var(--brx-h); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; color: #fff; }
.brx-brand__intl { font-family: var(--brx-h); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brx-lime); margin-left: 1px; }

.brx-nav { flex: 1; min-width: 0; }
.brx-menu { display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; }
.brx-menu li { position: relative; }
.brx-menu > li { display: flex; align-items: center; }
.brx-menu > li > a {
	position: relative; display: block; padding: 24px 12px;
	font-family: var(--brx-h); font-size: 15px; font-weight: 500;
	color: rgba(255, 255, 255, 0.88); text-decoration: none; white-space: nowrap;
}
.brx-menu > li:hover > a, .brx-menu > li > a:focus-visible { color: #fff; }
.brx-menu > .current-menu-item > a,
.brx-menu > .current-menu-ancestor > a,
.brx-menu > .current-menu-parent > a { color: #fff; }
.brx-menu > .current-menu-item > a::after,
.brx-menu > .current-menu-ancestor > a::after,
.brx-menu > .current-menu-parent > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--brx-lime); }

/* Submenu toggle (keyboard/touch) */
.brx-header .brx-sub-toggle {
	width: 18px; height: 18px; margin-left: -10px; margin-right: 2px; padding: 0;
	background: none; border: 0; border-radius: 0; color: rgba(255, 255, 255, 0.6); cursor: pointer;
}
.brx-header .brx-sub-toggle::before {
	content: ""; display: block; width: 6px; height: 6px; margin: 3px auto 0;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.brx-header .brx-sub-toggle:hover, .brx-header .brx-sub-toggle:focus { background: none; color: #fff; }
.brx-menu .sub-menu .brx-sub-toggle { display: none; }

/* Dropdowns */
.brx-menu .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 20; min-width: 250px;
	margin: 0; padding: 8px 0; list-style: none;
	background: #fff; border: 1px solid var(--brx-line); border-top: 3px solid var(--brx-lime);
	box-shadow: 0 16px 32px rgba(16, 21, 13, 0.12);
	opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.brx-menu > li:hover > .sub-menu,
.brx-menu > li:focus-within > .sub-menu,
.brx-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.brx-menu .sub-menu a { display: block; padding: 9px 20px; font-size: 14.5px; color: var(--brx-ink); text-decoration: none; }
.brx-menu .sub-menu a:hover { background: var(--brx-stone); color: var(--brx-forest); }
.brx-menu .sub-menu .current-menu-item > a { color: var(--brx-forest); font-weight: 600; }
.brx-menu .sub-menu .sub-menu { display: none; }

/* Mega panel: add the CSS class "brx-mega" to a top-level menu item */
.brx-menu > .brx-mega > .sub-menu {
	display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 4px 36px;
	left: 50%; width: max-content; padding: 24px 28px 20px; transform: translate(-50%, 4px);
}
.brx-menu > .brx-mega:hover > .sub-menu,
.brx-menu > .brx-mega:focus-within > .sub-menu,
.brx-menu > .brx-mega.is-open > .sub-menu { transform: translate(-50%, 0); }
.brx-menu .brx-mega > .sub-menu > li > a { padding: 0 0 8px; margin-bottom: 6px; border-bottom: 1px solid var(--brx-line); font-family: var(--brx-h); font-weight: 600; font-size: 15px; }
.brx-menu .brx-mega > .sub-menu > li > a:hover { background: none; }
.brx-menu .brx-mega .sub-menu .sub-menu { display: block; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
.brx-menu .brx-mega .sub-menu .sub-menu a { padding: 5px 0; color: var(--brx-text); }
.brx-menu .brx-mega .sub-menu .sub-menu a:hover { background: none; color: var(--brx-forest); text-decoration: underline; }

.brx-mainbar__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.brx-header .brx-mainbar__quote { gap: 0.28em; }
.brx-header .brx-burger { display: none; }
.brx-nav__mobile-extra { display: none; }

/* Catalogue bar */
.brx-catbar { background: #fff; border-bottom: 1px solid var(--brx-line); }
.brx-catbar__inner { display: flex; align-items: stretch; gap: 24px; height: 48px; }
.brx-catbar__label {
	display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding-right: 24px; border-right: 1px solid var(--brx-line);
	font-family: var(--brx-h); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--brx-forest); text-decoration: none;
}
.brx-catmenu { display: flex; flex: 1; gap: 26px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.brx-catmenu::-webkit-scrollbar { display: none; }
.brx-catmenu li { display: flex; flex-shrink: 0; }
.brx-catmenu a {
	display: flex; align-items: center; margin-bottom: -1px; border-bottom: 2px solid transparent;
	font-size: 14px; font-weight: 500; color: var(--brx-text); text-decoration: none; white-space: nowrap;
}
.brx-catmenu a:hover { color: var(--brx-ink); border-bottom-color: var(--brx-line); }
.brx-catmenu .current-menu-item > a { color: var(--brx-ink); border-bottom-color: var(--brx-forest); }
.brx-catmenu .brx-push { margin-left: auto; }
.brx-catmenu .brx-push > a { font-family: var(--brx-h); font-weight: 600; color: var(--brx-forest); }

@media (max-width: 1240px) {
	.brx-menu > li > a { padding-inline: 9px; font-size: 14.5px; }
	.brx-menu > .current-menu-item > a::after, .brx-menu > .current-menu-ancestor > a::after, .brx-menu > .current-menu-parent > a::after { left: 9px; right: 9px; }
	.brx-topbar__tag { display: none; }
	.brx-topbar__inner { justify-content: space-between; }
}

/* Drawer navigation below 1100px */
@media (max-width: 1099px) {
	body { --brx-bar: 60px; }
	.brx-header { top: 0; }
	.brx-topbar { display: none; }
	.brx-mainbar__inner { gap: 12px; }
	.brx-brand__mark { width: 34px; height: 34px; }
	.brx-brand__name { font-size: 18px; }

	.brx-header .brx-burger {
		display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
		background: none; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--brx-radius);
		color: #fff; font: 600 14px/1 var(--brx-h); cursor: pointer;
	}
	.brx-header .brx-burger:hover, .brx-header .brx-burger:focus { background: rgba(255, 255, 255, 0.08); color: #fff; }
	.brx-burger__lines, .brx-burger__lines::before, .brx-burger__lines::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform 0.2s; }
	.brx-burger__lines { position: relative; }
	.brx-burger__lines::before, .brx-burger__lines::after { content: ""; position: absolute; left: 0; }
	.brx-burger__lines::before { top: -6px; }
	.brx-burger__lines::after { top: 6px; }
	.brx-nav-open .brx-burger__lines { background: transparent; }
	.brx-nav-open .brx-burger__lines::before { transform: translateY(6px) rotate(45deg); }
	.brx-nav-open .brx-burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

	.brx-nav {
		position: fixed; top: var(--brx-bar); right: 0; bottom: 0; z-index: 5;
		width: min(400px, 100vw); overflow-y: auto; background: #fff;
		transform: translateX(100%); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s;
	}
	.admin-bar .brx-nav { top: calc(var(--brx-bar) + 46px); }
	.brx-nav-open .brx-nav { transform: none; visibility: visible; }
	.brx-nav-open .brx-header { z-index: 400; }
	.brx-nav-open::after { content: ""; position: fixed; inset: 0; z-index: 350; background: rgba(16, 21, 13, 0.5); }
	.brx-nav-open { overflow: hidden; }

	.brx-menu { flex-direction: column; }
	.brx-menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--brx-line); }
	.brx-menu > li > a { flex: 1; padding: 15px 20px; font-size: 16px; color: var(--brx-ink); }
	.brx-menu > li:hover > a { color: var(--brx-ink); }
	.brx-menu > .current-menu-item > a, .brx-menu > .current-menu-ancestor > a, .brx-menu > .current-menu-parent > a { color: var(--brx-forest); font-weight: 600; }
	.brx-menu > .current-menu-item > a::after, .brx-menu > .current-menu-ancestor > a::after, .brx-menu > .current-menu-parent > a::after { display: none; }
	.brx-header .brx-sub-toggle { width: 56px; height: auto; min-height: 52px; margin: 0; border-left: 1px solid var(--brx-line); color: var(--brx-ink); }
	.brx-header .brx-sub-toggle:hover, .brx-header .brx-sub-toggle:focus { color: var(--brx-forest); }
	.brx-menu .is-open > .brx-sub-toggle::before { transform: rotate(-135deg); margin-top: 6px; }

	.brx-menu .sub-menu,
	.brx-menu > .brx-mega > .sub-menu {
		position: static; display: none; width: 100%; min-width: 0; padding: 4px 0 12px; gap: 0;
		border: 0; box-shadow: none; background: var(--brx-stone); opacity: 1; visibility: visible; transform: none;
	}
	.brx-menu > li.is-open > .sub-menu { display: block; }
	.brx-menu > .brx-mega:hover > .sub-menu,
	.brx-menu > .brx-mega:focus-within > .sub-menu,
	.brx-menu > .brx-mega.is-open > .sub-menu { transform: none; }
	.brx-menu .sub-menu a { padding: 10px 20px 10px 32px; font-size: 15px; }
	.brx-menu .brx-mega > .sub-menu > li > a { margin: 8px 20px 4px 32px; padding: 0 0 6px; }
	.brx-menu .brx-mega .sub-menu .sub-menu { background: none; padding: 0 0 6px; }
	.brx-menu .brx-mega .sub-menu .sub-menu a { padding: 7px 20px 7px 44px; }

	.brx-nav__mobile-extra { display: flex; flex-direction: column; gap: 14px; padding: 24px 20px; }
	.brx-nav__contact { display: inline-flex; align-items: center; gap: 8px; color: var(--brx-text); text-decoration: none; font-size: 15px; }
	.brx-mainbar__quote { padding: 9px 14px; font-size: 14px; }

	.brx-catbar__inner { height: 44px; gap: 16px; }
	.brx-catbar__label { padding-right: 16px; }
	.brx-catmenu { gap: 20px; mask-image: linear-gradient(to right, #000 85%, transparent); }
	.brx-catmenu .brx-push { margin-left: 0; }
}
@media (max-width: 480px) {
	.brx-brand__intl, .brx-burger__label, .brx-hide-sm { display: none; }
	.brx-header .brx-burger { padding: 0 11px; }
	.brx-catbar__label span, .brx-catbar__label { font-size: 12px; }
}

/* ---------- Breadcrumb and chips (page heroes live in sections.css) ---------- */
.brx-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; font-size: 13px; color: var(--brx-muted); }
.brx-breadcrumb a { color: var(--brx-muted); text-decoration: none; }
.brx-breadcrumb a:hover { color: var(--brx-forest); text-decoration: underline; }
.brx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.brx-chips a {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
	background: #fff; border: 1px solid var(--brx-line); border-radius: var(--brx-radius);
	font-size: 14px; font-weight: 500; color: var(--brx-ink); text-decoration: none;
}
.brx-chips a span { font-size: 12px; color: var(--brx-muted); }
.brx-chips a:hover { border-color: var(--brx-forest); color: var(--brx-ink); }
.brx-chips a.is-active { background: var(--brx-forest); border-color: var(--brx-forest); color: #fff; }
.brx-chips a.is-active span { color: rgba(255, 255, 255, 0.7); }

/* ---------- Articles & prose ---------- */
.brx-article { padding-block: 48px 72px; }
.brx-prose { max-width: 740px; font-size: 17px; }
.brx-prose h2 { margin-top: 1.6em; font-size: 26px; }
.brx-prose h3 { margin-top: 1.4em; font-size: 20px; }
.brx-prose a, .woocommerce-Tabs-panel a { text-decoration: underline; text-decoration-thickness: 1px; }
.brx-prose ul, .brx-prose ol { padding-left: 1.2em; }
.brx-prose li { margin-bottom: 0.35em; }
.brx-single__meta { margin: 12px 0 0; font-size: 14px; color: var(--brx-muted); }
.brx-single__meta a { color: inherit; }
.brx-single__image { margin: 0 0 36px; }
.brx-single__image img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.brx-related-posts { padding-bottom: 80px; }
.brx-related-posts > h2 { margin: 0 0 24px; padding-top: 40px; border-top: 1px solid var(--brx-line); font-size: 24px; }
.brx-listing { padding-block: 48px 80px; }
.pagination .nav-links, .woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 48px 0 0; padding: 0; border: 0; }
.pagination .page-numbers, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	display: inline-block; min-width: 40px; padding: 8px 12px; border: 1px solid var(--brx-line); border-radius: var(--brx-radius);
	text-align: center; color: var(--brx-ink); text-decoration: none; box-sizing: border-box;
}
.pagination .page-numbers.current, .woocommerce nav.woocommerce-pagination ul li span.current { background: var(--brx-forest); border-color: var(--brx-forest); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0; }

/* Tables in page content (e.g. specification tables in Elementor text blocks) */
.brx-prose table, .elementor-widget-text-editor table { width: 100%; margin: 0 0 1em; border: 0; border-collapse: collapse; font-size: 15px; }
/* :nth-child(n) lifts these above Hello Elementor's striped-row reset. */
.brx-prose tr:nth-child(n) > th, .brx-prose tr:nth-child(n) > td,
.elementor-widget-text-editor tr:nth-child(n) > th, .elementor-widget-text-editor tr:nth-child(n) > td {
	padding: 12px 16px 12px 0; border: 0; border-bottom: 1px solid var(--brx-line); background: none; line-height: 1.55; text-align: left; vertical-align: top;
}
.brx-prose th, .elementor-widget-text-editor th { font-family: var(--brx-h); font-weight: 600; color: var(--brx-ink); }
.brx-prose tbody th, .elementor-widget-text-editor tbody th { width: 28%; }
.elementor-widget-text-editor thead th { font-family: var(--brx-b); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brx-muted); }
.elementor-widget-text-editor table p { margin: 0; }

/* Elementor helper classes (Advanced → CSS Classes):
   brx-measure         keeps text blocks to a readable line length
   brx-span-2          makes an item in a grid container span two columns
   brx-span-2-tablet   the same, at tablet width only
   brx-jump            a row of in-page jump links */
.brx-measure { max-width: 780px; }
.brx-jump { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 8px 0 0; }
.brx-jump a { font-family: var(--brx-h); font-weight: 600; color: var(--brx-forest); text-decoration: none; border-bottom: 1px solid var(--brx-line); }
.brx-jump a:hover { border-bottom-color: var(--brx-forest); }
[id] { scroll-margin-top: 96px; }
.brx-span-2 { grid-column: span 2; }
@media (max-width: 767px) {
	.brx-span-2 { grid-column: auto; }
}
/* brx-span-2-tablet: span two columns only at tablet width (Elementor's tablet breakpoint). */
@media (min-width: 768px) and (max-width: 1024px) {
	.brx-span-2-tablet { grid-column: span 2; }
}

/* Image captions (Elementor image widget) */
.elementor-widget-image .widget-image-caption { margin-top: 8px; font-size: 13px; font-style: normal; line-height: 1.45; color: var(--brx-muted); text-align: left; }

/* ---------- [broxail_posts] and blog listings ---------- */
.brx-posts--cards, .brx-posts--projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.brx-posts__item { display: flex; flex-direction: column; }
.brx-posts__media { display: block; aspect-ratio: 4 / 3; margin-bottom: 16px; overflow: hidden; background: var(--brx-stone); }
.brx-posts--projects .brx-posts__media { aspect-ratio: 3 / 2; }
.brx-posts__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.brx-posts__item:hover .brx-posts__media img { transform: scale(1.03); }
.brx-posts__meta { margin: 0 0 6px; font-size: 13px; color: var(--brx-muted); }
.brx-posts .brx-posts__title { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.brx-posts__title a { color: var(--brx-forest); text-decoration: none; }
.brx-posts__title a:hover { color: var(--brx-forest); text-decoration: underline; }
.brx-posts__excerpt { margin: 0; font-size: 15px; color: var(--brx-muted); }
.brx-posts--list { display: flex; flex-direction: column; border-top: 1px solid var(--brx-line); }
.brx-posts__row { display: flex; flex-direction: column; gap: 3px; padding: 16px 0; border-bottom: 1px solid var(--brx-line); text-decoration: none; }
.brx-posts__row .brx-posts__meta { margin: 0; }
.brx-posts__row .brx-posts__title { font-family: var(--brx-h); font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--brx-forest); }
.brx-posts__row:hover .brx-posts__title { color: var(--brx-forest); text-decoration: underline; }
@media (max-width: 900px) {
	.brx-posts--cards, .brx-posts--projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.brx-posts--cards, .brx-posts--projects { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- WooCommerce: catalogue ---------- */
.brx-shop { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-block: 40px 80px; }
.brx-side__block { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--brx-line); }
.brx-side .brx-side__title { margin: 0 0 12px; font-family: var(--brx-b); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brx-muted); }
.brx-side .product-categories { margin: 0; padding: 0; list-style: none; }
.brx-side .product-categories li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin: 0; }
.brx-side .product-categories a { flex: 1; padding: 6px 0; font-weight: 500; color: var(--brx-ink); text-decoration: none; }
.brx-side .product-categories a:hover { color: var(--brx-forest); text-decoration: underline; }
.brx-side .product-categories .count { font-size: 12px; color: var(--brx-muted); }
.brx-side .product-categories .children { width: 100%; margin: 0 0 6px; padding: 0 0 0 14px; list-style: none; border-left: 1px solid var(--brx-line); }
.brx-side .product-categories .children a { font-size: 14.5px; font-weight: 400; color: var(--brx-text); }
.brx-side .product-categories .current-cat > a { color: var(--brx-forest); font-weight: 600; }
.brx-side__quote p { font-size: 14.5px; color: var(--brx-muted); }
.woocommerce .woocommerce-result-count { float: none; margin: 0 0 20px; font-size: 14px; color: var(--brx-muted); }

.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; margin: 0; padding: 0; }
.woocommerce ul.products.columns-4, .woocommerce-page ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product { display: flex; flex-direction: column; float: none; width: auto; margin: 0; padding: 0; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.woocommerce ul.products li.product a img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin: 0 0 14px; background: var(--brx-stone); transition: filter 0.2s; }
.woocommerce ul.products li.product a:hover img { filter: brightness(0.94); }
.brx-card__cat { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brx-muted); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 0 0 4px; padding: 0; font-family: var(--brx-h); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--brx-forest); }
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--brx-forest); text-decoration: underline; }
.brx-card__spec { display: block; font-size: 13.5px; color: var(--brx-muted); }
.woocommerce ul.products li.product .broxail-view-details { align-self: flex-start; margin-top: 12px; font-family: var(--brx-h); font-size: 14px; font-weight: 600; color: var(--brx-forest); text-decoration: none; border-bottom: 1px solid currentColor; }
.woocommerce ul.products li.product .broxail-view-details::after { content: " →"; }

/* ---------- WooCommerce: product page — see product.css (loaded on product pages only) ---------- */
.woocommerce-info, .woocommerce-message { border-top-color: var(--brx-forest); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--brx-forest); }

@media (max-width: 1024px) {
	.brx-shop { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
	.brx-side { order: 2; margin-top: 48px; }
	.woocommerce ul.products, .woocommerce-page ul.products, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.woocommerce ul.products, .woocommerce-page ul.products, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}
@media (max-width: 380px) {
	.woocommerce ul.products, .woocommerce-page ul.products, .woocommerce ul.products.columns-4 { grid-template-columns: 1fr; }
}

/* ---------- Forms ([broxail_quote_form], [broxail_contact_form]) ---------- */
.brx-form { padding: 32px; background: #fff; border: 1px solid var(--brx-line); border-radius: 4px; }
.brx-form fieldset { margin: 0 0 8px; padding: 0; border: 0; }
.brx-form legend { margin-bottom: 14px; padding: 0; font-family: var(--brx-h); font-size: 17px; font-weight: 600; color: var(--brx-ink); }
.brx-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brx-field-row--3 { grid-template-columns: repeat(3, 1fr); }
.brx-field { margin-bottom: 16px; }
.brx-field label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--brx-ink); }
.brx-form input[type="text"], .brx-form input[type="email"], .brx-form input[type="tel"], .brx-form select, .brx-form textarea {
	width: 100%; box-sizing: border-box; padding: 11px 12px; background: #fff;
	border: 1px solid #c9c8bf; border-radius: var(--brx-radius);
	font: 15px/1.4 var(--brx-b); color: var(--brx-ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.brx-form input:focus, .brx-form select:focus, .brx-form textarea:focus { outline: none; border-color: var(--brx-forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brx-lime) 70%, transparent); }
.brx-form textarea { resize: vertical; }
.brx-consent { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 20px; font-size: 14px; color: var(--brx-muted); }
.brx-consent input { margin-top: 4px; }
.brx-form__success { margin-bottom: 20px; padding: 14px 16px; background: #eef7d6; border: 1px solid #c5e27a; color: var(--brx-forest); font-weight: 600; }
.brx-hp { position: absolute; left: -9999px; }
@media (max-width: 700px) {
	.brx-form { padding: 20px; }
	.brx-field-row, .brx-field-row--3 { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- "Read next" slide-in popup (single posts) ---------- */
.brx-nextpop {
	position: fixed; right: 24px; bottom: 24px; z-index: 300; width: 340px; max-width: calc(100vw - 32px);
	padding: 18px 18px 16px; background: #fff; color: var(--brx-ink);
	border: 1px solid var(--brx-line); border-top: 3px solid var(--brx-lime);
	box-shadow: 0 18px 48px rgba(16, 21, 13, 0.22);
	transform: translateX(calc(100% + 32px)); opacity: 0;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
}
.brx-nextpop.is-shown { transform: translateX(0); opacity: 1; }
.brx-nextpop__close {
	position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; padding: 0;
	background: none; border: 0; border-radius: 0; font-size: 22px; line-height: 1;
	color: var(--brx-muted); cursor: pointer;
}
.brx-nextpop__close:hover { color: var(--brx-forest); }
.brx-nextpop__kick {
	display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
	font-family: var(--brx-h); font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--brx-forest);
}
.brx-nextpop__link { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.brx-nextpop__thumb { flex-shrink: 0; width: 72px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--brx-stone); }
.brx-nextpop__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brx-nextpop__tag { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brx-muted); }
.brx-nextpop__title { display: block; font-family: var(--brx-h); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--brx-forest); }
.brx-nextpop__link:hover .brx-nextpop__title { color: var(--brx-deep); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
	.brx-nextpop { right: 12px; left: 12px; bottom: 12px; width: auto; }
	.brx-nextpop { transform: translateY(calc(100% + 24px)); }
	.brx-nextpop.is-shown { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.brx-nextpop { transition: opacity 0.3s; transform: none; }
}

/* ---------- Footer ---------- */
.brx-footer { background: var(--brx-forest); color: rgba(255, 255, 255, 0.66); font-size: 14.5px; }
.brx-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; padding-block: 64px 48px; }
.brx-footer__about p { max-width: 340px; margin: 16px 0 20px; }
.brx-footer .brx-footer__title { margin: 0 0 16px; font-family: var(--brx-b); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.brx-footer__menu { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.brx-footer__menu a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.brx-footer__menu a:hover { color: var(--brx-lime); }
.brx-footer__contact { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.brx-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.brx-footer__contact svg { margin-top: 4px; color: var(--brx-lime); }
.brx-footer__contact a { color: #fff; text-decoration: none; }
.brx-footer__contact a:hover { color: var(--brx-lime); }
.brx-footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }
.brx-footer__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.brx-footer__bar a { color: rgba(255, 255, 255, 0.8); }
.brx-legalmenu { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1000px) {
	.brx-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
	.brx-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.brx-footer__grid { grid-template-columns: 1fr; padding-block: 48px 32px; }
}

/* =========================================================================
   Art direction for the theme templates ("the cutting table", see
   sections.css): catalogue, product pages, blog, articles, forms, footer.
   Page heroes are printed by broxail_page_hero() and styled in sections.css.
   ========================================================================= */
.brx-btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.brx-btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--brx-ink); }
.brx-btn { transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.15s; }
.brx-btn:active, .broxail-btn:active { transform: scale(0.97); }
.brx-phero--404 .brx-actions { margin: 6px 0 0; }
.brx-phero--404 .brx-phero { min-height: min(46vh, 440px); }
.brx-phero--article .brx-phero__title .elementor-heading-title { font-size: clamp(36px, 3.2vw + 12px, 62px); }
.brx-phero__extra .brx-single__meta { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.brx-phero__extra .brx-single__meta a { color: var(--brx-lime); }

/* ---------- Catalogue ---------- */
.brx-shop { padding-block: 56px 96px; }
.brx-side .brx-side__title { display: flex; align-items: center; gap: 10px; color: var(--brx-forest); letter-spacing: 0.16em; }
.brx-side .product-categories > li > a { font-family: var(--brx-h); font-weight: 600; }
.brx-side .product-categories .current-cat > a { padding-left: 10px; box-shadow: inset 3px 0 0 var(--brx-lime); }
/* "Not in the catalogue?" as a lime swing tag */
.brx-side .brx-side__quote {
	position: relative; padding: 44px 22px 24px; border: 0; background: var(--brx-lime); color: var(--brx-ink);
	clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px); rotate: -1.5deg;
}
.brx-side .brx-side__quote::before { content: ""; position: absolute; top: 14px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px rgba(20, 26, 16, 0.3); }
.brx-side .brx-side__quote p, .brx-side .brx-side__quote .brx-link { color: var(--brx-ink); }
.brx-side .brx-side__quote .brx-side__title { color: var(--brx-forest); }

/* Product cards: garment cut-outs blend onto a stone tile (catalogue and related styles) */
.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 5; background: var(--brx-stone);
	transition: background-color 0.35s;
}
.woocommerce ul.products li.product:hover::before { background: color-mix(in srgb, var(--brx-lime) 30%, #fff); }
.woocommerce ul.products li.product a img {
	position: relative; z-index: 1; padding: 7%; box-sizing: border-box; object-fit: contain; background: none;
	mix-blend-mode: multiply; transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.woocommerce ul.products li.product a:hover img { filter: none; transform: scale(1.05); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 18px; letter-spacing: -0.01em; }
.brx-card__cat { color: var(--brx-forest); }
.woocommerce ul.products li.product .broxail-view-details { transition: color 0.2s; }
.woocommerce ul.products li.product .broxail-view-details:hover { color: var(--brx-deep); }
.woocommerce .woocommerce-result-count { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.woocommerce .woocommerce-result-count::before { content: ""; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--brx-forest) 0 5px, transparent 5px 8px); }
.pagination .page-numbers, .woocommerce nav.woocommerce-pagination ul li a { transition: border-color 0.2s, background-color 0.2s; }
.pagination a.page-numbers:hover, .woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--brx-forest); background: var(--brx-stone); }

/* ---------- Blog listing and article cards ---------- */
.brx-listing { padding-block: 64px 96px; }
.brx-posts--cards .brx-posts__media img { transition: transform 0.9s cubic-bezier(0.2, 0.75, 0.2, 1); }
.brx-posts__item:hover .brx-posts__media img { transform: scale(1.05); }
.brx-posts--cards .brx-posts__meta, .brx-posts--projects .brx-posts__meta { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brx-forest); }
/* The newest post leads the first page of the blog. */
body:not(.paged) .brx-listing .brx-posts--cards > .brx-posts__item:first-child {
	grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); grid-template-rows: auto auto 1fr;
	column-gap: 48px; align-content: center; padding-bottom: 40px; border-bottom: 1px solid var(--brx-line);
}
body:not(.paged) .brx-listing .brx-posts--cards > .brx-posts__item:first-child .brx-posts__media { grid-row: 1 / span 4; aspect-ratio: 16 / 10; margin: 0; }
body:not(.paged) .brx-listing .brx-posts--cards > .brx-posts__item:first-child .brx-posts__meta { align-self: end; }
body:not(.paged) .brx-listing .brx-posts--cards > .brx-posts__item:first-child .brx-posts__title { font-size: clamp(26px, 2vw + 8px, 38px); letter-spacing: -0.025em; line-height: 1.1; }
body:not(.paged) .brx-listing .brx-posts--cards > .brx-posts__item:first-child .brx-posts__excerpt { font-size: 17px; }
@media (max-width: 900px) {
	body:not(.paged) .brx-listing .brx-posts--cards > .brx-posts__item:first-child { display: flex; padding-bottom: 32px; }
	body:not(.paged) .brx-listing .brx-posts--cards > .brx-posts__item:first-child .brx-posts__media { margin-bottom: 16px; }
}

/* ---------- Articles and plain pages ---------- */
.brx-article { padding-block: 64px 80px; }
.brx-single__image { margin: 0 0 48px; }
.brx-single__image img { max-height: 600px; }
.brx-prose { font-size: 17.5px; line-height: 1.75; }
.brx-prose > p:first-of-type { font-size: clamp(19px, 1.4vw, 22px); line-height: 1.55; color: var(--brx-ink); }
.brx-prose h2 { margin-top: 2em; font-size: clamp(26px, 1.6vw + 10px, 34px); letter-spacing: -0.025em; }
.brx-prose h2::before { content: ""; display: block; width: 30px; height: 2px; margin-bottom: 16px; background: repeating-linear-gradient(90deg, var(--brx-forest) 0 6px, transparent 6px 10px); }
.brx-prose ul { padding-left: 0; list-style: none; }
.brx-prose ul > li { position: relative; padding-left: 26px; }
.brx-prose ul > li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 1px; background: var(--brx-lime); box-shadow: 0 0 0 1.5px var(--brx-forest); }
.brx-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--brx-lime); font-family: var(--brx-h); font-size: 22px; line-height: 1.4; color: var(--brx-ink); }
.brx-related-posts > h2 { font-size: clamp(26px, 2vw + 8px, 36px); letter-spacing: -0.025em; }

/* ---------- Forms ---------- */
.brx-form { padding: 40px; border-top: 4px solid var(--brx-lime); border-radius: 0; }
.brx-form legend { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 600 12px/1.4 var(--brx-b); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brx-forest); }
.brx-form fieldset + fieldset { margin-top: 12px; padding-top: 24px; border-top: 1px dashed var(--brx-line); }
.brx-form input[type="text"], .brx-form input[type="email"], .brx-form input[type="tel"], .brx-form select { min-height: 48px; }
.brx-form button[type="submit"]::after { content: "\2192"; transition: transform 0.3s; }
.brx-form button[type="submit"]:hover::after { transform: translateX(4px); }
@media (max-width: 700px) {
	.brx-form { padding: 24px 18px; }
}

/* ---------- Footer: the cutting mat continues underfoot ---------- */
.brx-footer {
	background-image:
		linear-gradient(rgba(216, 247, 132, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(216, 247, 132, 0.035) 1px, transparent 1px);
	background-size: 120px 120px;
	background-position: center top;
}
.brx-footer .brx-footer__title { display: flex; align-items: center; gap: 10px; }
.brx-footer .brx-footer__title::before { content: ""; width: 20px; height: 2px; background: repeating-linear-gradient(90deg, var(--brx-lime) 0 5px, transparent 5px 8px); }
