/**
 * Canvas Club — site header
 */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.cc-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	min-height: 75px;
	isolation: isolate;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cc-site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(100px);
}

.cc-site-header__bg {
	position: absolute;
	inset: 0;
	background-position: center right;
	background-repeat: no-repeat;
	background-size: cover;
	filter: blur(0);
	z-index: -2;
}

.cc-site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 75px;
}

.cc-site-header__brand {
	flex: 0 0 auto;
	z-index: 2;
	position: relative;
}

.cc-site-header__logo-link {
	position: absolute;
	top: -50px;
	left: 0;
	display: inline-flex;
	line-height: 0;
	background: radial-gradient(circle, rgba(255, 255, 255, 0) -18%, /* Center: Fully transparent */ rgba(255, 255, 255, 1.8) 38%, /* Mid: Getting foggy */ transparent 60% /* Edges: Solid white */);
}

.cc-site-header__logo {
	display: block;
	width: auto;
	height: 160px;
	object-fit: contain;
}

.cc-site-header__panel {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 3vw, 2.75rem);
	margin-left: auto;
}

.cc-site-header__nav-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(1rem, 2.5vw, 2.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-site-header__nav-item,
.cc-site-header__nav-list > li {
	margin: 0;
}

.cc-site-header__nav-link,
.cc-site-header__nav-list a {
	font-family: var(--cc-font-baloo-bold);
	font-size: var(--font-size-x-large);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--cc-black);
	transition: color 0.2s ease, opacity 0.2s ease;
}

.cc-site-header__nav-link:hover,
.cc-site-header__nav-link:focus-visible,
.cc-site-header__nav-list a:hover,
.cc-site-header__nav-list a:focus-visible {
	color: var(--cc-purple);
	outline: none;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.cc-site-header__cta {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.35rem;
	border-radius: 100px;
	background: var(--cc-purple);
	color: var(--cc-white);
	font-family: var(--cc-font-baloo-bold);
	font-size: var(--font-size-medium);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.cc-site-header__cta:hover,
.cc-site-header__cta:focus-visible {
	background: var(--cc-purple-hover);
	color: var(--cc-white);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(122, 59, 154, 0.45);
	outline: 2px solid var(--cc-white);
	outline-offset: 2px;
}

.cc-site-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.5rem;
	border: 0;
	border-radius: 0.5rem;
	background: rgba(122, 59, 154, 0.9);
	cursor: pointer;
	z-index: 3;
}

.cc-site-header__toggle-icon {
	display: none;
}

.cc-site-header__panel-head,
.cc-site-header__backdrop {
	display: none;
}

/* Mobile — drawer menu (desktop header layout unchanged above) */
@media (max-width: 900px) {
	.cc-site-header {
		--cc-mobile-drawer-width: min(20rem, 86vw);
	}

	.cc-site-header__inner {
		min-height: 4.5rem;
		z-index: 1002;
	}

	.cc-site-header__brand {
		max-width: calc(100% - 3.5rem);
		width: 200px;
	}

	.cc-site-header__logo {
		width: auto;
		max-width: 100%;
	}

	.cc-site-header__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		flex-direction: row;
		gap: 0;
		width: 2.75rem;
		height: 2.75rem;
		padding: 0;
		border-radius: 50%;
		background: var(--cc-purple);
		box-shadow: 0 4px 14px rgba(95, 63, 159, 0.35);
		z-index: 1003;
	}

	.cc-site-header__toggle-icon {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 1.2rem;
		height: 0.95rem;
	}

	.cc-site-header__toggle-bar {
		width: 100%;
		height: 2.5px;
		background: var(--cc-white);
		transform-origin: center;
		transition: transform 0.28s ease, opacity 0.2s ease;
	}

	.cc-site-header__backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1001;
		border: 0;
		padding: 0;
		margin: 0;
		background: rgba(26, 34, 56, 0.5);
		backdrop-filter: blur(3px);
		opacity: 0;
		visibility: hidden;
		cursor: pointer;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.cc-site-header.is-menu-open .cc-site-header__backdrop {
		opacity: 1;
		visibility: visible;
	}

	.cc-site-header__panel {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		z-index: 1002;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: var(--cc-mobile-drawer-width);
		max-width: 100%;
		margin: 0;
		padding: 0;
		background: var(--cc-white);
		box-shadow: -10px 0 36px rgba(26, 34, 56, 0.16);
		transform: translateX(105%);
		visibility: hidden;
		overflow: hidden;
		transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.34s ease;
	}

	.cc-site-header.is-menu-open .cc-site-header__panel {
		transform: translateX(0);
		visibility: visible;
	}

	.cc-site-header__panel-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-shrink: 0;
		padding: 1.1rem 1.25rem;
		border-bottom: 1px solid #ece8f2;
		background: linear-gradient(180deg, #faf7fc 0%, #fff 100%);
	}

	.cc-site-header__panel-title {
		margin: 0;
		font-family: var(--cc-font-baloo-bold);
		font-size: var(--font-size-large);
		font-weight: 700;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--cc-navy);
	}

	.cc-site-header__panel-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.35rem;
		height: 2.35rem;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: rgba(95, 63, 159, 0.12);
		color: var(--cc-purple);
		cursor: pointer;
	}

	.cc-site-header__panel-close svg {
		width: 1rem;
		height: 1rem;
	}

	.cc-site-header__panel-close:hover,
	.cc-site-header__panel-close:focus-visible {
		background: var(--cc-purple);
		color: var(--cc-white);
		outline: none;
	}

	.cc-site-header__nav {
		flex: 1 1 auto;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		padding: 0.35rem 0;
	}

	.cc-site-header__nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.cc-site-header__nav-item,
	.cc-site-header__nav-list > li {
		width: 100%;
		margin: 0;
		border-bottom: 1px solid #f2f2f2;
	}

	.cc-site-header__nav-item:last-child,
	.cc-site-header__nav-list > li:last-child {
		border-bottom: 0;
	}

	.cc-site-header__nav-link,
	.cc-site-header__nav-list a {
		display: block;
		width: 100%;
		padding: 0.95rem 1.25rem;
		font-size: var(--font-size-large);
		font-weight: 700;
		letter-spacing: 0.05em;
		color: var(--cc-navy);
		text-decoration: none;
		transition: background 0.2s ease, color 0.2s ease;
	}

	.cc-site-header__nav-link:hover,
	.cc-site-header__nav-link:focus-visible,
	.cc-site-header__nav-list a:hover,
	.cc-site-header__nav-list a:focus-visible {
		background: #f6f1fa;
		color: var(--cc-purple);
		text-decoration: none;
	}

	.cc-site-header__cta {
		flex-shrink: 0;
		width: auto;
		margin: 0.85rem 1.25rem 1.35rem;
		padding: 0.85rem 1.25rem;
		text-align: center;
		box-shadow: 0 6px 18px rgba(95, 63, 159, 0.32);
	}

	.cc-site-header.is-menu-open .cc-site-header__toggle-bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.cc-site-header.is-menu-open .cc-site-header__toggle-bar:nth-child(2) {
		opacity: 0;
	}

	.cc-site-header.is-menu-open .cc-site-header__toggle-bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.admin-bar .cc-site-header__panel {
		top: 32px;
	}

	.admin-bar .cc-site-header__backdrop {
		top: 32px;
		right: 0;
		bottom: 0;
		left: 0;
	}
}

@media (max-width: 782px) {
	.admin-bar .cc-site-header__panel,
	.admin-bar .cc-site-header__backdrop {
		top: 46px;
	}
}

body.cc-mobile-menu-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.cc-site-header__panel,
	.cc-site-header__backdrop,
	.cc-site-header__toggle-bar {
		transition: none;
	}
}

/* Hide duplicate block theme header spacing when custom header is active */
.cc-has-custom-header .wp-site-blocks > header.wp-block-template-part {
	display: none;
}