/* ================================
   MOBILE HEADER FIX
================================ */

/* Hide desktop search on mobile */
@media (max-width: 1023px) {
	.tq-search-toggle,
	.tq-search-dropdown {
		display: none !important;
	}
}

/* ================================
   UNIVERSAL LOGO SYSTEM (FINAL)
================================ */

.tq-logo img,
.tq-logo .custom-logo,
.tq-mobile-logo img,
.tq-mobile-logo .custom-logo {
	height: var(--tq-logo-max-height);
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

/* Mobile slight scale down (optional, safe) */
@media (max-width: 600px) {
	:root {
		--tq-logo-max-height: calc(var(--tq-logo-max-height) * 0.9);
	}
}

/* ================================
   GENESIS STICKY FULL-WIDTH HEADER
================================ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 999;

	/* 🔥 FULL WIDTH BREAKOUT */
	width: 100vw;
	margin-left: calc(50% - 50vw);

	background: #fff;
	border-bottom: 1px solid var(--color-border);
	transition: box-shadow 0.25s ease;
}

/* ================================
   FIX STICKY HEADER HEIGHT
================================ */

.site-header {
	height: 64px;          /* ✅ desktop base height */

}


/* ================================
   STICKY HEADER – HIDE / SHOW ANIMATION
================================ */

.site-header {
	will-change: transform, box-shadow;
	transition: transform 0.35s ease, box-shadow 0.25s ease;
}

/* Scroll down = hide */
.site-header.is-hidden {
	transform: translateY(-100%);
}

/* Scroll up = show */
.site-header.is-visible {
	transform: translateY(0);
}

/* Shadow when sticky */
.site-header.is-scrolled {
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
	border-bottom: none;
}


.tq-header-inner {
	max-width: 1200px;   /* tumhara container width */
	margin: 0 auto;
	padding: 0 1rem;    /* mobile breathing space */
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	}

.tq-site-title {
	font-weight: 700;
	color: var(--color-text);
	text-decoration: none;
}




/* ================================
   FIX STICKY BLOCKING (GENESIS)
================================ */

/* These parents MUST allow sticky */
.site-container,
.wrap,
.content-sidebar-wrap {
	overflow: visible !important;
}





/* Desktop Nav */
.tq-nav-desktop {
	display: none;
	align-items: center;
	gap: 1.25rem;
}

.tq-menu a {
	color: var(--color-text);
	font-weight: 500;
	text-decoration: none;
}

.tq-search-toggle {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-text);
}

/* Hamburger */
.tq-hamburger {
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tq-hamburger span {
	width: 22px;
	height: 2px;
	background: var(--color-text);
	transition: 0.3s ease;
}

/* ================================
   HAMBURGER ANIMATION
================================ */

.tq-hamburger.active span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.tq-hamburger.active span:nth-child(2) {
	opacity: 0;
}

.tq-hamburger.active span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ================================
   MOBILE OFFCANVAS – PRO
================================ */

.tq-mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 280px;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transform: translateX(-100%);
	transition: transform 0.35s ease;
	z-index: 1001;
	padding: 1.25rem;
	overflow-y: auto;
}

.tq-mobile-menu.active {
	transform: translateX(0);
}

/* Overlay */
.tq-mobile-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.35);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
	z-index: 1000;
}

.tq-mobile-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Scroll lock */
body.tq-lock {
	overflow: hidden;
}

/* Header inside offcanvas */
.tq-mobile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

.tq-mobile-header img {
	max-width: 120px;
}

.tq-mobile-close {
	background: none;
	border: none;
	font-size: 1.4rem;
	cursor: pointer;
	color:black;
}

/* Search pill */
.tq-mobile-search input[type="search"] {
	width: 100%;
	padding: 0.55rem 0.8rem;
	border-radius: 999px;
	border: 1px solid var(--color-border);
}

/* Menu list */
.tq-mobile-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tq-mobile-menu-list li {
	border-bottom: 1px solid rgba(0,0,0,0.08);
}

.tq-mobile-menu-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 0;
	text-decoration: none;
	color: var(--color-text);
	font-size: 0.95rem;
}

.tq-mobile-menu-list a:hover {
	color: var(--tq-primary-color);
}

/* Submenu */
.tq-mobile-menu-list .sub-menu {
	list-style: none;
	padding-left: 0.75rem;
	display: none;
}

.tq-mobile-menu-list .sub-menu.open {
	display: block;
}

/* Chevron */
.tq-mobile-menu-list .menu-item-has-children > a::after {
	content: "›";
	transition: transform 0.3s ease;
}

.tq-mobile-menu-list .menu-item-has-children.open > a::after {
	transform: rotate(90deg);
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
	.tq-nav-desktop {
		display: flex;
	}
	.tq-hamburger,
	.tq-mobile-menu {
		display: none;
	}
}

/* ================================
   DESKTOP MENU – SPACING & HOVER
================================ */

.tq-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
}

.tq-menu > li > a {
	position: relative;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--color-text);
	text-decoration: none;
	padding: 0.25rem 0;
	transition: color 0.25s ease;
}

.tq-menu > li > a:hover {
	color: var(--tq-primary-color);
}

/* ================================
   DESKTOP SUBMENU (HOVER DROPDOWN)
================================ */

.tq-menu li {
	position: relative;
}

.tq-menu,
.tq-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tq-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	padding: 0.5rem 0;
	box-shadow: 0 12px 30px rgba(0,0,0,0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 999;
}

.tq-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tq-menu .sub-menu a {
	display: block;
	padding: 0.45rem 1rem;
	font-size: 0.85rem;
	color: var(--color-text);
	text-decoration: none;
	white-space: nowrap;
}

.tq-menu .sub-menu a:hover {
	background: rgba(0,0,0,0.04);
	color: var(--tq-primary-color);
}

/* Parent menu link */
.tq-menu > li.menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	position: relative;
}

/* Chevron arrow */
.tq-menu > li.menu-item-has-children > a::after {
	content: "›";
	font-size: 1rem;
	line-height: 1;
	color: var(--tq-primary-color);
	transform: translateX(0);
	transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover effect */
.tq-menu > li.menu-item-has-children:hover > a::after {
	transform: translateX(4px);
	color: var(--tq-primary-color);
}

/* ================================
   DESKTOP SEARCH UX
================================ */

.tq-search-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 280px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 0.9rem;
	box-shadow: 0 12px 32px rgba(0,0,0,0.12);
	display: none;
	z-index: 999;
	animation: searchFade 0.18s ease;
}

.tq-search-dropdown.active {
	display: block;
}

@keyframes searchFade {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tq-search-dropdown input[type="search"] {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border-radius: 8px;
	border: 1px solid var(--color-border);
	font-size: 0.9rem;
	outline: none;
}

.tq-search-dropdown input[type="search"]:focus {
	border-color: var(--tq-primary-color);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--tq-primary-color) 25%, transparent);
}

.tq-search-dropdown input[type="submit"] {
	background: var(--tq-primary-color);
	color: #fff;
	border: none;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.tq-search-dropdown input[type="submit"]:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.tq-search-dropdown input[type="submit"]:active {
	transform: translateY(0);
}

/* ================================
   MOBILE SEARCH – PERFECT CAPSULE JOIN
================================ */

/* Pill wrapper (same as before) */
.tq-mobile-search form {
	position: relative;
	display: flex;
	align-items: center;
	height: 44px;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	overflow: hidden;
	margin-bottom: 1rem;
	background: #fff;
}

/* Input */
.tq-mobile-search input[type="search"] {
	flex: 1;
	height: 100%;
	border: none;
	padding: 0 0.9rem;
	font-size: 0.9rem;
	outline: none;
	background: transparent;
}

/* ICON BUTTON – FIXED (COLOR ONLY UPDATED) */
.tq-mobile-search input[type="submit"] {
	height: 100%;
	width: 48px;
	border-radius: 0 999px 999px 0;
	border: none;
	background-color: var(--tq-primary-color);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px;
	cursor: pointer;
	color: transparent;
	padding: 0;
}