/* ============================================================
   Header Override – come-site-header structure
   Matches comecom.app layout, adapted for twentytwentyfive palette
   ============================================================ */

/* --- Shell / Container --- */
.come-site-shell {
	width: min(var(--come-width, 1200px), calc(100% - 48px));
	margin: 0 auto;
}

/* --- Top Social Bar --- */
.come-top-social-bar {
	background: #1fd267;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.come-top-social-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 10px 0;
}

.come-top-social-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 1 auto;
}

.come-top-social-actions .come-btn {
	padding: 8px 16px;
	font-size: 13px;
	min-width: 0;
	white-space: nowrap;
}

.come-top-social-links {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.come-top-social-links span {
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: #06182b;
}

.come-top-social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.08);
	color: #06182b;
	transition: transform 0.18s ease, background 0.18s ease;
}

.come-top-social-links a:hover,
.come-top-social-links a:focus-visible {
	transform: translateY(-1px);
	background: rgba(0, 0, 0, 0.14);
}

.come-top-social-links svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* --- Site Header (sticky nav) --- */
.come-site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid #d8e3ea;
}

.come-site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
}

/* --- Brand --- */
.come-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	flex: 0 0 auto;
}

.come-brand-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.come-brand-title {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: #06182b;
}

.come-brand-subtitle {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1fd267;
}

/* --- Primary Nav --- */
.come-primary-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1 1 auto;
	justify-content: flex-end;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.come-primary-nav a {
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	color: #3a4a5c;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.come-primary-nav a:hover,
.come-primary-nav a:focus-visible {
	color: #06182b;
}

/* --- Header Actions --- */
.come-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

/* --- Buttons --- */
.come-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	cursor: pointer;
}

.come-btn:hover {
	transform: translateY(-1px);
}

.come-btn-primary {
	background: #1fd267;
	color: #06182b;
	box-shadow: 0 8px 20px rgba(31, 210, 103, 0.22);
}

.come-btn-primary:hover {
	box-shadow: 0 12px 24px rgba(31, 210, 103, 0.32);
}

.come-btn-secondary {
	background: #06182b;
	color: #ffffff;
	box-shadow: 0 8px 20px rgba(6, 24, 43, 0.18);
}

.come-btn-outline {
	border-color: #d8e3ea;
	background: rgba(255, 255, 255, 0.8);
	color: #06182b;
}

.come-btn-outline:hover,
.come-btn-outline:focus-visible {
	border-color: #1fd267;
	background: rgba(31, 210, 103, 0.06);
}

/* --- Mobile Toggle --- */
.come-mobile-toggle {
	display: none;
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
}

/* --- Mobile Panel --- */
.come-mobile-panel {
	position: fixed;
	top: 83px;
	left: 0;
	right: 0;
	z-index: 35;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-12px);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.come-mobile-panel-inner {
	padding: 18px;
	border-radius: 16px;
	margin: 0 12px;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid #d8e3ea;
	box-shadow: 0 24px 42px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(12px);
}

.come-mobile-nav {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.come-mobile-nav a {
	display: block;
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(6, 24, 43, 0.04);
	border: 1px solid rgba(216, 227, 234, 0.6);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	color: #06182b;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.come-mobile-nav a:hover,
.come-mobile-nav a:focus-visible {
	border-color: #1fd267;
	background: rgba(31, 210, 103, 0.06);
}

.come-mobile-panel-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

body.come-mobile-nav-open .come-mobile-panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

body.come-mobile-nav-open {
	overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 768px) {
	.come-primary-nav {
		display: none;
	}

	.come-mobile-toggle {
		display: flex;
	}

	.come-top-social-inner {
		flex-wrap: wrap;
	}

	.come-top-social-links span {
		display: none;
	}

	.come-brand-title {
		font-size: 18px;
	}
}

@media (min-width: 769px) {
	.come-mobile-panel {
		display: none !important;
	}
}

/* --- Mobile JS toggle support --- */
.come-mobile-toggle[aria-expanded="true"] .come-toggle-open {
	display: none;
}
.come-mobile-toggle[aria-expanded="true"] .come-toggle-close {
	display: block;
}
.come-mobile-toggle .come-toggle-close {
	display: none;
}
