:root {
	--tc-yellow: #fbd816;
	--tc-yellow-hover: #f5a623;
	--tc-navy: #172b4d;
	--tc-navy-soft: #3a4256;
	--tc-blue: #2f6fed;
	--tc-blue-light: #eaf5fd;
	--tc-celeste: #2196f3;
	--tc-celeste-hover: #1976d2;
	--tc-text-medium: #616161;
	--tc-bg-light: #f5f6f7;
	--tc-border: #dddedf;
	--tc-radius: 16px;
	--tc-radius-lg: 20px;
	--tc-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--tc-ease-in: cubic-bezier(0.7, 0, 0.84, 0);
	--tc-font: "City Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tc-site-header,
.tc-site-header *,
.tc-mobile-sidebar,
.tc-mobile-sidebar *,
.tc-sidebar-overlay {
	box-sizing: border-box;
	font-family: var(--tc-font);
}

.tc-site-header {
	position: sticky;
	top: 0;
	z-index: 9000;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.35s var(--tc-ease), border-color 0.35s var(--tc-ease);
}

.tc-site-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(23, 32, 51, 0.08);
	border-bottom-color: var(--tc-border);
}

.tc-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	height: 64px;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.tc-logo {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 5px 0;
}

.tc-logo img {
	display: block;
	height: 100%;
	width: auto;
	max-width: 260px;
}

/* Desktop nav */
.tc-nav-desktop {
	flex: 1;
	display: flex;
	justify-content: center;
}

.tc-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tc-menu > .tc-menu-item {
	position: relative;
}

.tc-menu > .tc-menu-item > a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 14px;
	border-radius: 12px;
	color: var(--tc-navy);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: color 0.25s ease, background-color 0.25s ease;
}

.tc-menu > .tc-menu-item > a:hover,
.tc-menu > .tc-menu-item.is-open > a {
	color: var(--tc-blue);
	background-color: var(--tc-blue-light);
}

.tc-chevron {
	transition: transform 0.25s var(--tc-ease);
}

.tc-menu-item.is-open > a .tc-chevron {
	transform: rotate(180deg);
}

.tc-submenu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 240px;
	background: #fff;
	border-radius: var(--tc-radius-lg);
	box-shadow: 0 18px 40px rgba(23, 32, 51, 0.14);
	border: 1px solid var(--tc-border);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.22s var(--tc-ease), transform 0.22s var(--tc-ease), visibility 0.22s;
}

.tc-menu-item.has-children.is-open > .tc-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tc-submenu .tc-menu-item a {
	display: block;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--tc-navy);
	text-decoration: none;
	font-size: 14px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tc-submenu .tc-menu-item a:hover {
	background-color: var(--tc-blue-light);
	color: var(--tc-blue);
}

/* Header actions */
.tc-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tc-login-btn,
.tc-user-menu-trigger,
.tc-book-ride-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	border-radius: var(--tc-radius);
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.25s ease;
	box-sizing: border-box;
}

.tc-login-btn {
	color: var(--tc-navy);
	background: var(--tc-yellow);
}

.tc-login-btn:hover {
	background: var(--tc-yellow-hover);
}

.tc-user-menu-trigger {
	color: #fff;
	background: var(--tc-celeste);
}

.tc-user-menu-trigger:hover {
	background: var(--tc-celeste-hover);
}

.tc-book-ride-btn {
	color: var(--tc-navy);
	background: var(--tc-yellow);
}

.tc-book-ride-btn:hover {
	background: var(--tc-yellow-hover);
}

.tc-user-menu {
	position: relative;
}

.tc-user-name {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tc-user-menu-trigger[aria-expanded="true"] .tc-chevron {
	transform: rotate(180deg);
}

.tc-user-menu-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 220px;
	background: #fff;
	border-radius: var(--tc-radius-lg);
	border: 1px solid var(--tc-border);
	box-shadow: 0 18px 40px rgba(23, 32, 51, 0.16);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px) scale(0.98);
	transform-origin: top right;
	transition: opacity 0.2s var(--tc-ease), transform 0.2s var(--tc-ease), visibility 0.2s;
}

.tc-user-menu-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.tc-user-menu-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--tc-navy);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tc-user-menu-link svg {
	flex-shrink: 0;
}

.tc-user-menu-link:hover {
	background-color: var(--tc-blue-light);
	color: var(--tc-blue);
}

.tc-user-menu-link.tc-user-menu-logout {
	color: #e0334f;
}

.tc-user-menu-link.tc-user-menu-logout:hover {
	background-color: #fdecee;
	color: #e0334f;
}

.tc-user-menu-link.tc-user-menu-book {
	display: none;
	color: var(--tc-blue);
}

.tc-user-menu-link.tc-user-menu-book:hover {
	color: var(--tc-blue);
	background-color: var(--tc-blue-light);
}

/* Hamburger */
.tc-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

.tc-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--tc-navy);
	border-radius: 2px;
	transition: transform 0.3s var(--tc-ease), opacity 0.3s var(--tc-ease);
}

.tc-hamburger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.tc-hamburger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.tc-hamburger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile sidebar */
.tc-sidebar-overlay {
	position: fixed;
	inset: 0;
	background: rgba(23, 32, 51, 0.45);
	z-index: 9100;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.5s var(--tc-ease), visibility 0s linear 0.5s;
}

.tc-sidebar-overlay.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.5s var(--tc-ease), visibility 0s linear 0s;
}

.tc-sidebar-overlay.is-closing {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s var(--tc-ease-in), visibility 0s linear 0.28s;
}

.tc-mobile-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(340px, 86vw);
	background: #fff;
	z-index: 9200;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.5s var(--tc-ease);
	box-shadow: -18px 0 40px rgba(23, 32, 51, 0.18);
}

.tc-mobile-sidebar.is-open {
	transform: translateX(0);
}

.tc-mobile-sidebar.is-closing {
	transition: transform 0.28s var(--tc-ease-in);
}

.tc-mobile-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--tc-border);
}

.tc-mobile-sidebar-header .tc-logo img {
	height: 40px;
}

.tc-sidebar-close {
	border: none;
	background: var(--tc-bg-light);
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--tc-navy);
	transition: background-color 0.2s ease;
}

.tc-sidebar-close:hover {
	background-color: var(--tc-border);
}

.tc-nav-mobile {
	flex: 1;
	overflow-y: auto;
	padding: 12px 12px 24px;
}

.tc-menu-mobile {
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
}

.tc-menu-mobile .tc-menu-item {
	width: 100%;
}

.tc-menu-mobile > .tc-menu-item > a {
	width: 100%;
	justify-content: space-between;
	padding: 14px 12px;
	font-size: 17.6px;
	font-weight: 600;
	border-radius: 12px;
}

.tc-menu-mobile .tc-submenu {
	position: static;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border: none;
	padding: 0 0 0 12px;
	margin: 0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.4s var(--tc-ease), opacity 0.3s var(--tc-ease);
}

.tc-menu-mobile .tc-submenu .tc-menu-item a {
	font-size: 15.4px;
	font-weight: 600;
	padding: 10px 12px;
}

.tc-menu-mobile .tc-menu-item.is-open > .tc-submenu {
	max-height: 480px;
	opacity: 1;
	transition: max-height 0.45s var(--tc-ease), opacity 0.35s ease 0.05s;
}

.tc-mobile-sidebar-footer {
	display: flex;
	gap: 10px;
	padding: 16px 20px;
	padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--tc-border);
}

.tc-sidebar-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 46px;
	border-radius: var(--tc-radius);
	text-decoration: none;
	font-size: 15.4px;
	font-weight: 700;
	transition: background-color 0.25s ease;
}

.tc-sidebar-btn-support {
	background: var(--tc-navy);
	color: #fff;
}

.tc-sidebar-btn-support:hover {
	background: var(--tc-navy-soft);
}

.tc-sidebar-btn-book {
	background: var(--tc-yellow);
	color: var(--tc-navy);
}

.tc-sidebar-btn-book:hover {
	background: var(--tc-yellow-hover);
}

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

	.tc-header-actions .tc-login-btn span {
		display: none;
	}

	.tc-user-name {
		max-width: 90px;
	}

	.tc-login-btn {
		padding: 10px;
	}

	.tc-user-menu-trigger {
		padding: 8px 14px 8px 10px;
	}

	.tc-book-ride-btn--user {
		display: none;
	}

	.tc-book-ride-btn--guest {
		padding: 0 14px;
	}

	.tc-user-menu-link.tc-user-menu-book {
		display: flex;
	}

	.tc-hamburger {
		display: flex;
	}

	.tc-header-inner {
		height: 58px;
		padding: 0 16px;
	}

	.tc-logo {
		padding: 7px 0;
	}
}

/* PWA installed on a phone (standalone display mode): keep the header docked
   at the top (like normal mobile), just pad it for the notch/status bar so
   it isn't obscured. */
@media (display-mode: standalone) and (max-width: 768px) {
	.tc-site-header {
		padding-top: env(safe-area-inset-top, 0px);
	}
}

/* Hide the WordPress admin bar entirely inside the installed PWA so it
   doesn't compete with our app-style bottom header. */
@media (display-mode: standalone) {
	#wpadminbar {
		display: none !important;
	}

	html {
		margin-top: 0 !important;
	}
}
