/* ============================================================
   Kairos Mind Wellness — Header Styles
   Brand: Steel blue #4A6B8A | Gold #C9A545 | White #FFFFFF
   ============================================================ */

/* ── Global overflow guard + fluid type scale ── */
html {
	overflow-x: hidden;
	/* Scales from 16px @ ≤1280px up to 20px @ 2560px+, smoothly */
	font-size: clamp(16px, 0.83vw, 20px);
}
body { overflow-x: hidden; }

/* ── Sticky header ── */
.kairos-header-wrap {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	box-sizing: border-box;
	z-index: 1000;
	background: #ffffff;
	border-bottom: 3px solid #C9A545;
	box-shadow: 0 2px 12px rgba(74, 107, 138, 0.10);
	transition: box-shadow 0.3s ease;
	overflow: visible;
}

.kairos-header-wrap.scrolled {
	box-shadow: 0 4px 20px rgba(74, 107, 138, 0.18);
}

/* ── Inner layout ── */
.kairos-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1340px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 48px);
	height: 120px;
}

/* ── Logo ── */
.kairos-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
	gap: 14px;
}

.kairos-logo-link img {
	height: 68px;
	width: auto;
	display: block;
	transition: opacity 0.2s ease;
}

.kairos-logo-link:hover img {
	opacity: 0.88;
}

.kairos-logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	gap: 3px;
}

.kairos-logo-name {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	color: #4A6B8A;
	text-transform: uppercase;
}

.kairos-logo-sub {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 0.72rem;
	font-weight: 300;
	letter-spacing: 0.32em;
	color: #C9A545;
	text-transform: uppercase;
}

/* ── Navigation ── */
.kairos-nav {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kairos-nav li {
	margin: 0;
	padding: 0;
}

.kairos-nav a {
	display: inline-block;
	padding: 10px 20px;
	color: #4A6B8A;
	font-family: 'Raleway', sans-serif;
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	position: relative;
	transition: color 0.25s ease;
}

.kairos-nav a::after {
	content: '';
	position: absolute;
	bottom: 4px;
	left: 20px;
	right: 20px;
	height: 2px;
	background: #C9A545;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
	border-radius: 1px;
}

.kairos-nav a:hover,
.kairos-nav a:focus,
.kairos-nav a.current {
	color: #C9A545;
}

.kairos-nav a:hover::after,
.kairos-nav a:focus::after,
.kairos-nav a.current::after {
	transform: scaleX(1);
}

/* ── Contact / CTA button ── */
.kairos-nav .kairos-cta a {
	background: #4A6B8A;
	color: #ffffff;
	border-radius: 4px;
	padding: 10px 22px;
	margin-left: 12px;
	transition: background 0.25s ease, color 0.25s ease;
}

.kairos-nav .kairos-cta a::after {
	display: none;
}

.kairos-nav .kairos-cta a:hover,
.kairos-nav .kairos-cta a:focus {
	background: #C9A545;
	color: #ffffff;
}

/* ── Mobile hamburger ── */
.kairos-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 4px;
}

.kairos-hamburger span {
	display: block;
	height: 2px;
	background: #4A6B8A;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Mobile nav drawer ── */
@media (max-width: 768px) {
	.kairos-header-inner {
		height: 80px;
		width: 100%;
		box-sizing: border-box;
		position: relative;
	}

	.kairos-logo-link img {
		height: 56px;
	}

	.kairos-hamburger {
		display: flex;
		position: absolute;
		right: clamp(20px, 4vw, 48px);
		top: 50%;
		transform: translateY(-50%);
		margin-left: 0;
	}

	.kairos-nav {
		display: none;
		position: absolute;
		top: 80px;
		left: 0;
		right: 0;
		width: 100%;
		box-sizing: border-box;
		background: #ffffff;
		flex-direction: column;
		align-items: center;
		border-top: 1px solid #e8e8e8;
		border-bottom: 3px solid #C9A545;
		box-shadow: 0 8px 20px rgba(74, 107, 138, 0.12);
		gap: 0;
	}

	.kairos-nav.is-open {
		display: flex;
	}

	.kairos-nav a {
		padding: 16px 24px;
		border-bottom: 1px solid #f0f0f0;
		font-size: 1rem;
		text-align: center;
		width: 100%;
		box-sizing: border-box;
	}

	.kairos-nav a::after {
		display: none;
	}

	.kairos-nav li.kairos-cta {
		width: 100%;
		display: flex;
		justify-content: center;
		padding: 8px 24px 16px;
	}
	.kairos-nav .kairos-cta a {
		width: auto;
		margin: 0;
		text-align: center;
		border-radius: 4px;
		padding: 12px 36px;
	}

	/* hamburger → X when open */
	.kairos-hamburger.is-open span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.kairos-hamburger.is-open span:nth-child(2) {
		opacity: 0;
	}
	.kairos-hamburger.is-open span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}
