/**
 * Combined homepage — layout fixes & brand tweaks
 */

/* Top bar + header stick together as one unit (no gap when scrolling) */
.top-bar {
	position: sticky;
	top: 0;
	z-index: 1001;
}

.site-header {
	top: var(--topbar-h, 40px);
	overflow: visible;
}

@media (max-width: 640px) {
	.site-header {
		top: 0;
	}
}

/* Search overlay — must not reserve space between header and hero */
.search-bar {
	position: fixed;
	left: 0;
	right: 0;
	top: calc(var(--topbar-h, 40px) + var(--header-h, 80px));
	z-index: 1002;
	margin: 0;
}

@media (max-width: 640px) {
	.search-bar {
		top: var(--header-h, 64px);
	}
}

/* Hero flush under header — no gap */
main {
	display: block;
	margin: 0;
	padding: 0;
}

.hero {
	margin-top: 0;
}

/* Product PNG has black studio background — blend with hero */
.hero-image-wrap {
	align-items: flex-end;
}

.hero-image-wrap img {
	mix-blend-mode: normal;
}

/* Align content width with header (1320 vs 1280) */
.container {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.container {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* Hero type scale (no clamp) */
.hero-title {
	font-size: 40px;
}

@media (min-width: 768px) {
	.hero-title {
		font-size: 52px;
	}
}

@media (min-width: 1025px) {
	.hero-title {
		font-size: 62px;
	}
}

.section-title {
	font-size: 28px;
}

@media (min-width: 768px) {
	.section-title {
		font-size: 36px;
	}
}

@media (min-width: 1025px) {
	.section-title {
		font-size: 40px;
	}
}

.cw-title {
	font-size: 28px;
}

@media (min-width: 768px) {
	.cw-title {
		font-size: 36px;
	}
}

@media (min-width: 1025px) {
	.cw-title {
		font-size: 42px;
	}
}

/* Mega menu: prevent horizontal scroll on tablet */
@media (max-width: 960px) {
	.mega-industry {
		left: 0;
		transform: translateX(0) translateY(-10px);
		width: min(94vw, 900px);
	}

	.nav-item:hover .mega-menu {
		transform: translateX(0) translateY(0);
	}
}

/* Footer + page: no gap */
.ft {
	margin-top: 0;
}

/* WhatsApp float removed from static prototype (was causing white bar below footer) */
.wa-float {
	display: none !important;
}

.ccb-site.ccb-page-category,
.ccb-site {
	padding-bottom: 0;
}

/* Top bar CTA as link */
.top-bar__cta {
	text-decoration: none;
	display: inline-block;
}

/* Hide cart icon — catalog mode */
#cart-toggle {
	display: none;
}
