/* Codeon Restaurant V2 — header (base, always loaded).
   The mobile drawer lives in mobile-menu.css — do not re-add drawer rules here.
   Variant overrides live in header-<variant>.css and load additionally. */


.nav {
	position: sticky; top: 0; z-index: 50;
	backdrop-filter: blur(20px) saturate(140%);
	-webkit-backdrop-filter: blur(20px) saturate(140%);
	background: var(--nav-bg);
	border-bottom: 1px solid var(--nav-border);
	transition: all 250ms ease;
}
.nav.scrolled {
	background: var(--nav-bg-scrolled);
	border-bottom-color: var(--line);
	box-shadow: var(--shadow-1);
}
.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
	gap: 24px;
	min-width: 0;
}
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo img,
.nav-logo .custom-logo { height: var(--logo-height, 36px); width: auto; display: block; }
.nav-logo a { font-family: var(--font-display); font-size: 24px; color: var(--heading); text-decoration: none; font-weight: 500; }

@media (max-width: 920px) {
	.nav-logo img,
	.nav-logo .custom-logo { height: var(--logo-height-mobile, 34px); }
}

.nav-center {
	display: flex; gap: 6px; align-items: center;
	min-width: 0;
	padding: 6px;
	background: var(--nav-pill);
	border-radius: 999px;
	list-style: none;
}
.nav-center .menu-item { list-style: none; display: inline-flex; }
.nav-center a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-soft);
	padding: 8px 16px;
	border-radius: 999px;
	transition: all 180ms ease;
	line-height: 1;
	white-space: nowrap;
}
.nav-center a:hover, .nav-center .current-menu-item a {
	color: var(--heading);
	background: var(--surface);
}

.nav-right { display: flex; min-width: 0; gap: 10px; justify-content: flex-end; align-items: center; flex-shrink: 0; }
.nav-phone {
	font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink-soft);
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	transition: all 180ms ease;
}
.nav-phone:hover { color: var(--brand-text); background: color-mix(in srgb, var(--brand) 6%, transparent); }

.nav-cta-btn {
	display: inline-flex; align-items: center; gap: 8px;
	min-width: 0;
	padding: 10px 16px 10px 18px;
	border-radius: 999px;
	font-size: 13px; font-weight: 600;
	background: var(--brand);
	color: #fff;
	text-decoration: none;
	transition: all 200ms ease;
}
.nav-cta-btn span:first-child,
.nav-phone span,
.nav-account .am-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.nav-cta-btn:hover { background: var(--brand-deep); transform: translateY(-1px); }
.nav-cta-btn .arr {
	width: 22px; height: 22px;
	border-radius: 50%;
	background: rgba(255,255,255,0.18);
	display: inline-grid; place-items: center;
}

.nav-account {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 5px 14px 5px 5px;
	border-radius: 999px;
	text-decoration: none;
	color: var(--ink-soft);
	font-size: 13px; font-weight: 500;
	border: 1px solid var(--line);
	background: transparent;
	transition: all 180ms ease;
	line-height: 1;
}
.nav-account:hover {
	background: color-mix(in srgb, var(--brand) 8%, transparent);
	color: var(--heading);
	border-color: color-mix(in srgb, var(--brand) 25%, transparent);
}
.nav-account .avatar {
	width: 26px; height: 26px;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	display: grid; place-items: center;
	flex-shrink: 0;
}

.nav-menu-btn {
	display: none;
	width: 40px; height: 40px;
	border: 1px solid var(--line);
	background: transparent;
	border-radius: 999px;
	cursor: pointer;
	align-items: center; justify-content: center;
	color: var(--ink);
}
.nav-menu-btn:hover { border-color: var(--brand-text); color: var(--brand-text); }

/* Light/dark switch. Both glyphs ship in the markup and CSS decides which one is
   visible, so the button cannot briefly show the wrong icon between the no-flash
   boot script and the deferred main.js. */
.theme-toggle {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.theme-toggle:hover {
	border-color: var(--brand-text);
	color: var(--brand-text);
	background: color-mix(in srgb, var(--brand) 7%, transparent);
}
.theme-toggle-ico { display: grid; place-items: center; grid-area: 1 / 1; }
/* Light theme offers the moon (what you'd switch TO); dark offers the sun. */
.theme-toggle-sun { display: none; }
html[data-theme="dark"] .theme-toggle-sun { display: grid; }
html[data-theme="dark"] .theme-toggle-moon { display: none; }

@media (max-width: 1180px) {
	.nav-center { display: none; }
	.nav-menu-btn { display: inline-flex; }
}
@media (max-width: 920px) {
	.nav-inner { height: 60px; }
	.nav-cta-btn { padding: 10px 14px; font-size: 12px; }
	.nav-phone { display: none; }
	.nav-account .am-label { display: none; }
	.nav-account { padding: 5px; }
	/* Below the drawer breakpoint the switch lives inside the drawer instead,
	   so the header keeps room for the order CTA. */
	.nav-theme-toggle { display: none; }
}
@media (max-width: 600px) {
	.nav-cta-btn { padding: 9px 12px; }
	.nav-cta-btn .arr { display: none; }
}

body.has-desktop-hamburger .nav-center {
	display: none;
}
body.has-desktop-hamburger .nav-menu-btn {
	display: inline-flex;
}
