/* Premium transparent-over-hero header with scroll state. */

.smc-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	padding: 20px 0;
	background: transparent;
	transition: background var(--sm-transition), padding var(--sm-transition), box-shadow var(--sm-transition);
}

body.header-solid .smc-header,
.smc-header.is-scrolled {
	position: fixed;
	background: rgba(8, 8, 8, 0.86);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	padding: 12px 0;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

body:not(.has-sticky-header) .smc-header { position: absolute; }
body.has-sticky-header .smc-header { position: fixed; }

body.smc-front-page:not(.header-solid) .smc-header:not(.is-scrolled) { color: #fff; }
body.smc-front-page:not(.header-solid) .smc-header:not(.is-scrolled) .smc-btn--outline { border-color: rgba(255,255,255,0.6); }

body:not(.smc-front-page) .smc-header,
body.header-solid .smc-header {
	color: var(--sm-text-on-dark);
}

.smc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.smc-header__logo img { max-height: 44px; width: auto; }
.smc-logo-text {
	font-family: var(--sm-font-heading);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: inherit;
}

.smc-header__nav { flex: 1; display: flex; justify-content: center; }
.smc-menu {
	display: flex;
	gap: 32px;
	align-items: center;
}
.smc-menu a {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	position: relative;
	padding-bottom: 4px;
}
.smc-menu a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 1px;
	background: var(--sm-accent);
	transition: right var(--sm-transition);
}
.smc-menu a:hover::after,
.smc-menu li.current-menu-item > a::after { right: 0; }

.smc-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	background: var(--sm-primary);
	color: var(--sm-text-on-dark);
	padding: 12px 0;
	min-width: 200px;
	border-radius: var(--sm-radius);
	box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.smc-menu li { position: relative; }
.smc-menu li:hover > .sub-menu { display: block; }
.smc-menu .sub-menu a { display: block; padding: 8px 20px; }

.smc-header__actions { display: flex; align-items: center; gap: 16px; }

.smc-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	transition: background var(--sm-transition);
}
.smc-icon-btn:hover { background: rgba(255,255,255,0.1); }

.smc-menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
}
.smc-menu-toggle__bars { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.smc-menu-toggle__bars span {
	display: block;
	height: 2px;
	background: currentColor;
	transition: var(--sm-transition);
}

/* Mobile full-screen nav */
.smc-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 1100;
	background: var(--sm-primary);
	color: var(--sm-text-on-dark);
	transform: translateY(-100%);
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	overflow-y: auto;
}
.smc-mobile-nav.is-open { transform: translateY(0); }

.smc-mobile-nav__inner {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 40px;
	padding: 100px 32px 60px;
}
.smc-mobile-menu { display: flex; flex-direction: column; gap: 20px; }
.smc-mobile-menu a { font-family: var(--sm-font-heading); font-size: 32px; }
.smc-mobile-menu .sub-menu { padding-left: 20px; margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.smc-mobile-menu .sub-menu a { font-size: 18px; font-family: var(--sm-font-body); opacity: 0.75; }

/* Search overlay */
.smc-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 1200;
	background: rgba(8,8,8,0.97);
	color: #fff;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease;
	padding-top: 12vh;
}
.smc-search-overlay.is-open { opacity: 1; visibility: visible; }
.smc-search-overlay__inner { width: 100%; max-width: 720px; padding: 0 24px; }
.smc-search-form { border-bottom: 1px solid rgba(255,255,255,0.25); }
.smc-search-form input {
	width: 100%;
	background: transparent;
	border: none;
	color: #fff;
	font-family: var(--sm-font-heading);
	font-size: 32px;
	padding: 16px 0;
}
.smc-search-form input:focus { outline: none; }
.smc-search-results { margin-top: 24px; max-height: 50vh; overflow-y: auto; }
.smc-search-results a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.smc-search-close {
	margin-top: 32px;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	opacity: 0.7;
}
