/* Transparent header at top; solid/blurred after scroll or when nav is open */
/* Always sticky above content (guard; you already have this) */
.site-header {
  	position: fixed;
  	top: 0;
  	left: 0;
  	right: 0;
  	z-index: 1000;
}

.site-header {
	background: transparent;
	border-bottom-color: transparent;
	backdrop-filter: none;
	box-shadow: none;
	transition:
		background .25s ease,
		border-color .25s ease,
		backdrop-filter .25s ease,
		box-shadow .25s ease;
	padding: 0 20px;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
}

/* Apply your existing look when scrolled or when the mobile nav is open */
.site-header.is-scrolled,
.site-header.nav-open {
	background: rgba(11, 13, 18, 0.6);
	border-bottom: 0px solid rgba(192, 192, 192, 0.2);
	backdrop-filter: blur(6px);
	box-shadow: 0 6px 12px rgba(0,0,0,.15);
}

@media (max-width: 800px) {
	.site-nav {
		position: fixed;
		/*inset: var(--header-h, 72px) 0 auto 0;   sit just under the header */
		inset: 80px 0 auto 0;
		background: rgba(11,13,18,.96);
		border-bottom: 0px solid rgba(192,192,192,.2);
		max-height: 0;                   /* fully collapsed = hidden */
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition:
			max-height .25s ease,
			opacity .25s ease,
			visibility 0s linear .25s;     /* delay visibility off until fade finishes */
		transform: translateY(-120%);
    	transition: transform .25s ease;
	}
	
	.site-nav .nav-list a { 
		border-bottom: 0 !important;
		font-size: 24px;
		line-height: 3;
		font-weight: bold;
	}

	.site-nav.open {
    	max-height: calc(100vh - var(--header-h, 72px));
		height: 100vh;
    	opacity: 1;
    	visibility: visible;
    	pointer-events: auto;
		border-bottom: 0px solid rgba(192,192,192,.2);
    	transition:
			max-height .25s ease,
      		opacity .25s ease;
		transform: translateY(0);
		align-content: center;
	}

	.nav-list {
		display: flex;
		flex-direction: column;
		gap: 0;
		justify-content: center;
		align-items: center;
	}

	.nav-list a {
		padding: 1rem;
		border-bottom: 1px solid rgba(192,192,192,.12);
	}
	
	.site-header {
    	background: #0f1320; /* dark blue */
    	border-bottom: 0px solid rgba(192,192,192,.2);
  	}
  	.site-header.nav-open { 
		background: #0f1320; 
	}
	
  	.nav-toggle { 
		display: inline-grid; 
		justify-self: end;
		z-index: 1001; 
	}

	.grid.two {
		grid-template-columns: 1fr;
	}
  	
}

/* Lock page scroll when nav is open */
html.nav-lock,
body.nav-lock { 
	overflow: hidden; 
}

/* === Desktop: full-width header, logo left, nav right === */
@media (min-width: 801px) {
	/* Make header content span the full viewport width */
	.site-header .container {
    	width: 100%;
    	max-width: none;
    	padding-left: 1rem;
   	 	padding-right: 1rem;
		padding-inline: 1rem;
	}

	/* Left/Right layout */
	.header-inner {
    	display: flex;
    	align-items: center;
    	justify-content: space-between; /* logo left, nav right */
    	gap: 1rem;
	 	padding: .8rem 0;
  	}

	.brand {
		margin-right: auto; /* keeps logo pinned left */
	}

	/* Ensure desktop nav sits inline on the right (not the mobile overlay) */
	.site-nav {
    	position: static;
    	transform: none;
    	background: transparent;
    	border: 0;
	}

	.nav-list {
		display: flex;
    	align-items: center;
    	gap: .8rem;
		font-weight: bold;
    	margin-left: auto; /* pushes links to the far right */
  	}

  	/* Hide hamburger on desktop */
  	.nav-toggle {
    	display: none;
  	}
	#site-nav.site-nav {
    	position: static !important;
    	max-height: none !important;
    	opacity: 1 !important;
    	visibility: visible !important;
    	pointer-events: auto !important;
    	transform: none !important;
    	background: transparent !important;
    	border: 0 !important;
    	display: block !important;
  	}
  	.nav-toggle {
    	display: none !important;
  	}
  	.nav-list {
    	display: flex !important;
  	}
}

/* lock background scroll when menu is open */
html.nav-lock, body.nav-lock { 
	overflow: hidden; 
}

/* Lock page scroll when menu is open */
html.nav-lock, body.nav-lock { overflow: hidden; }

/* === Nav links: text-only, gold hover, maroon active underline === */
.nav-list a {
	padding: .25rem .5rem;          /* keep a little tappable area */
  	background: none !important;
  	border: 0 !important;           /* kill the box/border */
  	color: var(--text);
  	text-decoration: none;
  	border-radius: 0;
  	transition: color .2s ease, text-decoration-color .2s ease;
}

/* Hover (desktop) */
@media (hover:hover) {
  	.nav-list a:hover { 
		color: #CEB888;
	}
}

/* Active/Current (JS adds .is-active) */
.nav-list a.is-active {
  	color: inherit;
  	text-decoration: underline;
  	text-decoration-color: #862633;  /* maroon */
  	text-underline-offset: 1em;
  	text-decoration-thickness: 5px;
	font-weight: bold;
}

/* Keyboard focus: match the active look */
.nav-list a:focus-visible {
  	outline: none;
  	color: #CEB888;
  	text-decoration: underline;
  	text-decoration-color: #862633;
  	text-underline-offset: .25em;
  	text-decoration-thickness: 2px;
}
