/**
 * Header logo + homepage hero flush (no gap, no "Home" title).
 */

/* Branded lockup in header (SVG mark + wordmark) */
.ls-site-header-chrome .ls-brand-lockup-wrap,
header .ls-brand-lockup-wrap {
	line-height: 0;
	max-width: none;
}

.ls-site-header-chrome .wp-block-site-logo .custom-logo,
header .wp-block-site-logo .custom-logo {
	width: auto !important;
	height: auto;
	max-height: 58px;
	max-width: min(240px, 48vw);
	object-fit: contain;
	display: block;
}

.ls-site-header-chrome .wp-block-site-logo,
header .wp-block-site-logo {
	line-height: 0;
	max-width: none;
}

.ls-site-header-chrome .wp-block-site-logo a,
header .wp-block-site-logo a,
.ls-site-header-chrome .ls-brand-lockup-wrap > a,
header .ls-brand-lockup-wrap > a {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

/* Logo already includes wordmark — hide duplicate title column */
.ls-site-header-chrome .wp-block-site-logo + .wp-block-group,
header .wp-block-site-logo + .wp-block-group,
.ls-site-header-chrome .wp-block-site-title,
.ls-site-header-chrome .wp-block-site-tagline,
header .wp-block-site-title,
header .wp-block-site-tagline {
	display: none !important;
}

/* Header row: single compact line (prevent wrap → extra height) */
.ls-site-header-chrome > .wp-block-group.is-content-justification-space-between,
header .has-header-background-background-color > .wp-block-group.is-content-justification-space-between {
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 0.75rem !important;
	min-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.ls-site-header-chrome .wp-block-group.is-nowrap.is-layout-flex,
header .has-header-background-background-color .wp-block-group.is-nowrap.is-layout-flex {
	flex-wrap: nowrap !important;
}

header nav.wp-block-navigation {
	flex: 0 0 auto;
	align-self: center !important;
	min-height: 0 !important;
	height: auto !important;
}

.ls-header-actions.ls-custom-header-login--group {
	flex: 0 0 auto;
	margin-left: auto !important;
}

/* Empty WooCommerce slot in header pattern */
.ls-site-header-chrome .wp-block-group.is-content-justification-right:not(:has(*)),
header .wp-block-group.is-content-justification-right:not(:has(*)) {
	display: none !important;
}

header .wp-block-navigation__responsive-container:not(.is-menu-open) {
	display: none !important;
}

header .wp-block-navigation__responsive-container-open {
	padding: 0.15rem !important;
	margin: 0 !important;
	min-height: 0 !important;
	line-height: 1 !important;
}

/* Compact header bar — override theme inline spacing--40 padding */
.ls-site-header-chrome.alignfull,
header .has-header-background-background-color.alignfull {
	padding-top: 0.35rem !important;
	padding-bottom: 0.35rem !important;
}

.ls-site-header-chrome .wp-block-navigation .wp-block-navigation-item__content,
header .has-header-background-background-color .wp-block-navigation .wp-block-navigation-item__content {
	padding-top: 0.25rem !important;
	padding-bottom: 0.25rem !important;
}

.ls-custom-header-login__link {
	padding-top: 0.15rem !important;
	padding-bottom: 0.15rem !important;
}

/* Homepage: remove gap between header and Elementor hero */
body.home main.wp-block-group.alignfull,
body.page-id-145 main.wp-block-group.alignfull {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.home .wp-block-post-title,
body.page-id-145 .wp-block-post-title {
	display: none !important;
}

body.home main > .wp-block-spacer:first-of-type,
body.page-id-145 main > .wp-block-spacer:first-of-type {
	display: none !important;
	margin: 0 !important;
	height: 0 !important;
}

body.home .entry-content.alignfull,
body.page-id-145 .entry-content.alignfull {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.home .elementor-145 > .elementor-element:first-child,
body.page-id-145 .elementor-145 > .elementor-element:first-child {
	margin-top: 0 !important;
}

/* Elementor homepage hero — taller showcase section */
body.home .elementor-element-f0ebc25,
body.page-id-145 .elementor-element-f0ebc25 {
	margin-top: 0 !important;
	min-height: clamp(360px, 44vh, 540px) !important;
	padding-top: clamp(3.25rem, 7vh, 5.5rem) !important;
	padding-bottom: clamp(3.25rem, 7vh, 5.5rem) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-size: cover !important;
	background-position: center center !important;
}

body.home .elementor-element-f0ebc25 > .e-con-inner,
body.page-id-145 .elementor-element-f0ebc25 > .e-con-inner {
	width: 100%;
}

@media (max-width: 781px) {
	.ls-site-header-chrome.alignfull,
	header .has-header-background-background-color.alignfull {
		padding-top: 0.55rem !important;
		padding-bottom: 0.55rem !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.ls-site-header-chrome > .wp-block-group.is-content-justification-space-between,
	header .has-header-background-background-color > .wp-block-group.is-content-justification-space-between {
		gap: 0.75rem !important;
		min-width: 0;
		min-height: 52px !important;
		padding-left: 1rem !important;
		padding-right: 0.75rem !important;
		width: 100%;
		box-sizing: border-box;
	}

	.ls-site-header-chrome .wp-block-group.is-nowrap.is-layout-flex {
		flex: 1 1 auto;
		min-width: 0;
		max-width: calc(100% - 56px);
	}

	.ls-site-header-chrome .wp-block-site-logo .custom-logo,
	header .wp-block-site-logo .custom-logo {
		max-height: 40px;
		max-width: min(180px, 58vw);
	}

	header nav.wp-block-navigation {
		flex: 0 0 auto;
		margin-left: auto !important;
	}

	header .wp-block-navigation__responsive-container-open {
		min-width: 44px;
		min-height: 44px;
		width: 44px;
		height: 44px;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		padding: 0 !important;
		margin: 0 !important;
		border-radius: 10px;
		background: rgba(255, 255, 255, 0.08);
		border: 1px solid rgba(255, 255, 255, 0.14);
		color: #fff !important;
	}

	header .wp-block-navigation__responsive-container-open:hover,
	header .wp-block-navigation__responsive-container-open:focus {
		background: rgba(201, 168, 76, 0.18);
		border-color: rgba(201, 168, 76, 0.45);
	}

	header .wp-block-navigation__responsive-container-open svg {
		width: 22px;
		height: 22px;
		fill: currentColor;
	}

	/* Full-screen chrome drawer */
	header .wp-block-navigation__responsive-container.is-menu-open,
	header .wp-block-navigation__responsive-container.has-modal-open {
		background: linear-gradient(180deg, #14261a 0%, #1a301f 55%, #243d2e 100%) !important;
	}

	header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
	header .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__responsive-dialog {
		background: transparent !important;
		padding: 1.25rem 1.15rem 2rem !important;
	}

	header .wp-block-navigation__responsive-container-close {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		min-height: 44px !important;
		padding: 0 !important;
		margin: 0 !important;
		line-height: 0 !important;
		box-sizing: border-box !important;
		border-radius: 10px;
		background: rgba(255, 255, 255, 0.08);
		border: 1px solid rgba(255, 255, 255, 0.14);
		color: #fff !important;
	}

	header .wp-block-navigation__responsive-container-close svg {
		display: block !important;
		width: 22px !important;
		height: 22px !important;
		margin: 0 !important;
		padding: 0 !important;
		flex-shrink: 0;
		fill: currentColor;
	}

	header .wp-block-navigation__responsive-container-content {
		padding-top: 1rem !important;
	}

	header .wp-block-navigation__responsive-container-content .wp-block-navigation-item:not(.ls-custom-header-login) .wp-block-navigation-item__content {
		display: block;
		padding: 0.95rem 0.35rem !important;
		font-size: 1.05rem !important;
		font-weight: 600 !important;
		letter-spacing: 0.04em;
		color: #fff !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		text-transform: none !important;
	}

	header .wp-block-navigation__responsive-container-content .wp-block-navigation-item:not(.ls-custom-header-login) .wp-block-navigation-item__content:hover,
	header .wp-block-navigation__responsive-container-content .wp-block-navigation-item:not(.ls-custom-header-login) .wp-block-navigation-item__content:focus {
		color: var(--ls-chrome-accent, #c9a84c) !important;
	}

	/* Single height source with hero-landflip.css — keep compact on mobile. */
	body.home .elementor-element-f0ebc25,
	body.page-id-145 .elementor-element-f0ebc25 {
		min-height: auto !important;
		padding-top: 1.75rem !important;
		padding-bottom: 2rem !important;
	}
}
