/* ================================================================
   BUTE CAPITAL CLIENT OVERRIDES
   ================================================================ */

/* Runable branding removal (comment only — no "Runable" word in selectors below) */
a[aria-label*="Runable"],button[aria-label*="Runable"],div[class*="Runable"],div[class*="runable"],[data-testid*="runable"],svg[aria-label*="Runable"]{display:none!important}

/* 1. Hero headline — remove italic from all title lines */
.hero-title-line {
	font-style: normal !important;
}

/* 2. Image grid — reduce visual dominance */
#col-1, #col-2, #col-3 {
	opacity: 0.32 !important;
}

/* 3a. Products — hide the accordion; static grid injected by JS */
.products-accordion-container {
	display: none !important;
}

/* 3b. Sectors — show the mobile (all-text-visible) layout at all sizes */
.sector-desktop {
	display: none !important;
}
.sector-mobile {
	display: block !important;
	padding: 60px 0 !important;
}

/* Convert horizontal scroll into a 3-column static grid */
.sector-scroll {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	overflow: visible !important;
	gap: 20px !important;
	padding: 0 40px 8px !important;
	scrollbar-width: unset !important;
	-webkit-overflow-scrolling: unset !important;
}
.sector-scroll > div {
	width: 100% !important;
	max-width: none !important;
	flex-shrink: unset !important;
	height: 380px !important;
}
@media (max-width: 767px) {
	.sector-scroll {
		grid-template-columns: 1fr !important;
		padding: 0 20px 8px !important;
	}
}
@media (min-width: 768px) and (max-width: 1100px) {
	.sector-scroll {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Hide old #about video section — replaced by new scroll-driven crash animation */
#about { display: none !important; }


/* 5. Introducers — distinct background + strong separator from Contact */
#introducers {
	background: #EDE9E1 !important;
	border-top: 3px solid #1A1714 !important;
	border-bottom: 3px solid #1A1714 !important;
}
#introducers > div {
	background: #EDE9E1 !important;
}

/* Static products grid — injected by JS */
#bute-products-static {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	padding-bottom: 8px;
}
@media (max-width: 1100px) {
	#bute-products-static {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (min-width: 768px) and (max-width: 900px) {
	#bute-products-static {
		grid-template-columns: repeat(2, 1fr);
	}
}
.bute-product-card {
	position: relative;
	width: 100%;
	height: 360px;
	overflow: hidden;
	border-radius: 10px;
	transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.35s ease;
}
@media (max-width: 767px) {
	#bute-products-static {
		display: none !important;
	}
}

/* Hero left padding — push content below fixed nav on desktop */
@media (min-width: 768px) {
	.hero-left {
		padding-top: 100px !important;
	}
}

/* About page — reduce visual section height on desktop so story lands without extra scroll */
@media (min-width: 768px) {
	#about .about-visual,
	#about [class*="aboutVisual"],
	#about [class*="about-image"],
	#about [class*="aboutImage"] {
		max-height: 420px !important;
		min-height: unset !important;
	}
	#about [class*="imageGrid"],
	#about [class*="image-grid"],
	#about [class*="col-"] {
		max-height: 440px !important;
	}
}

/* Sectors grid — consistent card height + hover zoom */
.sector-scroll > div {
	height: 380px !important;
	position: relative !important;
	overflow: hidden !important;
	border-radius: 12px !important;
	cursor: pointer;
	transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.35s ease !important;
}
.sector-scroll > div:hover {
	transform: translateY(-5px) !important;
	box-shadow: 0 20px 48px rgba(26,23,20,0.35) !important;
	z-index: 10;
}
/* Zoom the background image on hover */
.sector-scroll > div > img,
.sector-scroll > div [style*="object-fit"] {
	transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}
.sector-scroll > div:hover > img,
.sector-scroll > div:hover [style*="object-fit"] {
	transform: scale(1.06) !important;
}

/* Ensure Construction card injected by JS matches grid layout */
.sector-scroll > div[style*="border-radius:12px"] {
	height: 380px !important;
}

/* Sector card titles — one line, consistent height */
.sector-scroll > div h3,
.sector-scroll > div[style*="border-radius:12px"] h3 {
	font-size: 15px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	height: auto !important;
	min-height: unset !important;
	display: block !important;
}

/* Trust bar — injected by JS */
#bute-trust-bar {
	background: #EDE9E1;
	border-top: 1px solid #D4CEC4;
	border-bottom: 1px solid #D4CEC4;
	padding: 44px 40px;
}
#bute-trust-bar .trust-inner {
	max-width: 860px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 60px;
	flex-wrap: wrap;
}
#bute-trust-bar .trust-divider {
	width: 1px;
	height: 60px;
	background: #C4BEB4;
}
@media (max-width: 600px) {
	#bute-trust-bar .trust-divider { display: none; }
	#bute-trust-bar .trust-inner { gap: 32px; }
}

/* ── Product cards — subtle hover ── */
.bute-product-card {
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.35s ease !important;
}
.bute-product-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 48px rgba(26,23,20,0.35) !important;
  z-index: 10;
}
.bute-product-card img {
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}
.bute-product-card:hover img {
  transform: scale(1.06) !important;
}

/* Mobile accordion cards — tap lift */
#products [style*="height: 100px"] {
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.3s ease !important;
}
#products [style*="height: 100px"]:hover,
#products [style*="height: 100px"]:active {
  transform: scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(26,23,20,0.3) !important;
}

/* ── Crisis animation — mobile fixes ── */
@media (max-width: 767px) {
	/* Hide desktop corner panels — Safari can't handle absolute % inside sticky */
	#bc-p1, #bc-p2, #bc-p3, #bc-p4 { display: none !important; }

	/* Show mobile safe panel grid */
	#bc-mob-panels { display: grid !important; height: 172px !important; }

	/* Shorter scroll on mobile */
	#bute-crisis-section { height: 320vh !important; }

	/* Centre column: leave 180px at bottom for panel grid */
	#bc-centre {
		padding: 44px 20px 16px !important;
		justify-content: flex-start !important;
		top: 0 !important;
		bottom: 180px !important;
		height: auto !important;
	}

	/* Title */
	#bc-hl1, #bc-hl2 {
		font-size: 34px !important;
		line-height: 1.08 !important;
	}

	/* Body text */
	#bc-body {
		font-size: 13px !important;
		max-width: 100% !important;
	}

	/* Pills smaller */
	#bc-pills span { font-size: 7px !important; padding: 3px 7px !important; }

	/* Ticker smaller */
	#bc-ticker { height: 28px !important; }
	#bc-ticker > div { font-size: 8px !important; }

	/* Chart */
	#bc-chart { opacity: 0.7 !important; }
}

/* ── Products — mobile single column ── */
@media (max-width: 767px) {
	#bute-products-static {
		padding: 0 16px !important;
	}
	.bute-product-card {
		height: 300px !important;
	}
}

/* ── Sectors — mobile single column ── */
@media (max-width: 767px) {
	.sector-scroll > div {
		height: 280px !important;
	}
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
#bute-cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 10000;
	max-width: 720px;
	margin: 0 auto;
	background: #1A1714;
	color: #F5F2EC;
	border: 1px solid rgba(245, 242, 236, 0.12);
	border-radius: 14px;
	padding: 22px 26px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	font-family: 'DM Sans', -apple-system, sans-serif;
	font-size: 13.5px;
	line-height: 1.65;
	display: flex;
	align-items: center;
	gap: 22px;
	transform: translateY(140%);
	opacity: 0;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
	pointer-events: none;
}

#bute-cookie-banner.bc-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

#bute-cookie-banner .bc-cb-text {
	flex: 1 1 auto;
	min-width: 0;
}

#bute-cookie-banner .bc-cb-text p {
	margin: 0;
	color: rgba(245, 242, 236, 0.85);
}

#bute-cookie-banner .bc-cb-text a {
	color: #F5F2EC;
	text-decoration: underline;
	text-decoration-color: rgba(245, 242, 236, 0.4);
	text-underline-offset: 3px;
}

#bute-cookie-banner .bc-cb-text a:hover {
	text-decoration-color: #F5F2EC;
}

#bute-cookie-banner .bc-cb-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
}

#bute-cookie-banner .bc-cb-btn {
	font-family: 'DM Sans', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 10px 18px;
	border-radius: 8px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
	text-align: center;
}

#bute-cookie-banner .bc-cb-accept {
	background: #F5F2EC;
	color: #1A1714;
	border-color: #F5F2EC;
}

#bute-cookie-banner .bc-cb-accept:hover {
	background: #fff;
	border-color: #fff;
}

#bute-cookie-banner .bc-cb-reject {
	background: transparent;
	color: #F5F2EC;
	border-color: rgba(245, 242, 236, 0.35);
}

#bute-cookie-banner .bc-cb-reject:hover {
	border-color: rgba(245, 242, 236, 0.7);
	background: rgba(245, 242, 236, 0.06);
}

/* Mobile: stack vertically, full width */
@media (max-width: 640px) {
	#bute-cookie-banner {
		flex-direction: column;
		align-items: stretch;
		left: 10px;
		right: 10px;
		bottom: 10px;
		padding: 18px 18px;
		gap: 14px;
	}
	#bute-cookie-banner .bc-cb-actions {
		flex-direction: row;
		gap: 10px;
	}
	#bute-cookie-banner .bc-cb-btn {
		flex: 1;
		font-size: 11px;
		padding: 11px 12px;
	}
}

/* Footer "Cookie settings" link */
.bc-cookie-settings-link {
	cursor: pointer;
	color: inherit !important;
	text-decoration: none;
	opacity: 0.75;
	transition: opacity 0.2s ease;
}
.bc-cookie-settings-link:hover { opacity: 1; }

/* Hide the floating "Bubble" chat/contact widget (bottom-right, links to runable.com).
   Contact info is already covered by the footer mailto links + policy links. */
a[data-runable-badge],
a[data-runable-ignore] {
	display: none !important;
}

/* Print */
@media print {
	#bute-cookie-banner,
	#bute-policy-overlay { display: none !important; }
}
