/* ==========================================================================
   TirupatiHelps v2.0.0 — layout.css
   5. Announcement ticker
   6. Header
   7. Primary navigation
   8. Breadcrumbs
   9. Footer
   10. Floating actions (WhatsApp, back to top, mobile bar)
   ========================================================================== */

/* --------------------------------------------------------------------------
   5. Announcement ticker
   -------------------------------------------------------------------------- */

.th-topbar {
	background: var(--th-bg-warm);
	border-bottom: 1px solid var(--th-line);
	font-size: 12.5px;
	color: var(--th-muted);
}

.th-topbar__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 34px;
}

.th-ticker {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.th-ticker__track {
	display: flex;
	align-items: center;
	gap: 26px;
	white-space: nowrap;
	width: max-content;
	animation: th-ticker 38s linear infinite;
}

.th-ticker:hover .th-ticker__track,
.th-ticker:focus-within .th-ticker__track {
	animation-play-state: paused;
}

@keyframes th-ticker {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.th-ticker__track {
		animation: none;
		width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

.th-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--th-body);
}

.th-ticker__item a {
	color: inherit;
}

.th-ticker__item a:hover {
	color: var(--th-red);
}

.th-ticker__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--th-red);
	flex: none;
}

.th-ticker__dot--live {
	background: var(--th-green);
	box-shadow: 0 0 0 0 rgba(27, 138, 58, .5);
	animation: th-pulse 2.2s infinite;
}

@keyframes th-pulse {
	70%  { box-shadow: 0 0 0 7px rgba(27, 138, 58, 0); }
	100% { box-shadow: 0 0 0 0 rgba(27, 138, 58, 0); }
}

.th-topbar__aside {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: none;
}

.th-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--th-body);
	font-weight: 550;
}

.th-topbar__link svg {
	width: 14px;
	height: 14px;
}

.th-topbar__link--wa {
	color: var(--th-wa-dark);
}

@media (max-width: 860px) {
	.th-topbar__aside {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.th-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--th-line);
}

.th-header.is-stuck {
	box-shadow: var(--th-sh-sm);
}

.th-header__in {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 22px;
	min-height: 72px;
}

/* Brand */
.th-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	flex: none;
}

.th-brand__logo {
	max-height: 44px;
	width: auto;
}

.th-brand__mark {
	width: 40px;
	height: 40px;
	border-radius: var(--th-r-sm);
	background: linear-gradient(145deg, var(--th-red), var(--th-red-deep));
	color: #fff;
	display: grid;
	place-items: center;
	flex: none;
}

.th-brand__mark svg {
	width: 22px;
	height: 22px;
}

.th-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.th-brand__name {
	font-family: var(--th-font-head);
	font-size: 21px;
	font-weight: 800;
	color: var(--th-red);
	letter-spacing: -.02em;
}

.th-brand__tag {
	font-size: 11px;
	color: var(--th-muted);
	letter-spacing: .01em;
}

@media (max-width: 480px) {
	.th-brand__tag { display: none; }
	.th-brand__name { font-size: 18px; }
}

/* Header search */
.th-hsearch {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
}

.th-hsearch input[type="search"],
.th-hsearch input[type="text"] {
	width: 100%;
	height: 44px;
	padding: 0 16px 0 42px;
	border: 1px solid var(--th-line);
	border-radius: var(--th-r-pill);
	background: var(--th-bg-soft);
	font-size: 14.5px;
	transition: border-color .15s var(--th-ease), background .15s var(--th-ease);
}

.th-hsearch input::placeholder {
	color: var(--th-faint);
}

.th-hsearch input:focus {
	background: #fff;
	border-color: var(--th-red);
	outline: none;
	box-shadow: 0 0 0 3px var(--th-red-soft);
}

.th-hsearch__icon {
	position: absolute;
	left: 15px;
	width: 17px;
	height: 17px;
	color: var(--th-faint);
	pointer-events: none;
}

.th-hsearch button {
	position: absolute;
	right: 5px;
	height: 34px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--th-r-pill);
	background: var(--th-red);
	color: #fff;
	font-size: 13.5px;
	font-weight: 650;
}

.th-hsearch button:hover {
	background: var(--th-red-dark);
}

/* Header actions */
.th-hactions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.th-burger {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--th-line);
	border-radius: var(--th-r-sm);
	background: #fff;
	color: var(--th-ink);
	place-items: center;
}

.th-burger svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 1024px) {
	.th-header__in {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 12px;
		min-height: 64px;
	}

	.th-burger { display: grid; }
	.th-hactions .th-btn span { display: none; }
	.th-hactions .th-btn { padding-inline: 12px; }
}

@media (max-width: 720px) {
	.th-header__in {
		grid-template-columns: auto 1fr auto;
	}

	.th-hsearch {
		order: 3;
		grid-column: 1 / -1;
		padding-bottom: 12px;
	}

	.th-hsearch input {
		height: 40px;
	}
}

/* --------------------------------------------------------------------------
   7. Primary navigation
   -------------------------------------------------------------------------- */

.th-nav {
	border-bottom: 1px solid var(--th-line);
	background: #fff;
}

.th-nav__in {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	overflow-x: auto;
	scrollbar-width: none;
}

.th-nav__in::-webkit-scrollbar {
	display: none;
}

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

.th-menu > li {
	position: relative;
	margin: 0;
}

.th-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 11px 13px;
	font-family: var(--th-font-head);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--th-body);
	white-space: nowrap;
	border-radius: var(--th-r-sm);
	position: relative;
}

.th-menu > li > a:hover,
.th-menu > li.current-menu-item > a,
.th-menu > li.current_page_item > a,
.th-menu > li.current-menu-parent > a,
.th-menu > li.current-menu-ancestor > a {
	color: var(--th-red);
	background: var(--th-red-tint);
}

.th-menu > li.current-menu-item > a::after,
.th-menu > li.current_page_item > a::after {
	content: "";
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: var(--th-red);
}

/* Highlighted menu item: add the CSS class "th-hot" to a menu item in Appearance → Menus */
.th-menu > li.th-hot > a {
	background: var(--th-red);
	color: #fff;
}

.th-menu > li.th-hot > a:hover {
	background: var(--th-red-dark);
	color: #fff;
}

/* Dropdowns */
.th-menu .sub-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 214px;
	background: #fff;
	border: 1px solid var(--th-line);
	border-radius: var(--th-r);
	box-shadow: var(--th-sh-lg);
	padding: 6px;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .16s var(--th-ease), transform .16s var(--th-ease), visibility .16s;
	z-index: 20;
}

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

.th-menu .sub-menu li {
	margin: 0;
}

.th-menu .sub-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--th-r-sm);
	font-size: 14px;
	color: var(--th-body);
}

.th-menu .sub-menu a:hover {
	background: var(--th-red-tint);
	color: var(--th-red);
}

.th-menu .sub-menu .sub-menu {
	top: -7px;
	left: 100%;
}

.th-menu__caret {
	width: 12px;
	height: 12px;
	opacity: .55;
}

/* Right-hand utility links inside the nav row */
.th-nav__aside {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
	padding-left: 14px;
}

@media (max-width: 1024px) {
	.th-nav {
		display: none;
	}
}

/* Mobile drawer */
.th-drawer {
	position: fixed;
	inset: 0;
	z-index: 90;
	visibility: hidden;
	pointer-events: none;
}

.th-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.th-drawer__veil {
	position: absolute;
	inset: 0;
	background: rgba(26, 22, 20, .5);
	opacity: 0;
	transition: opacity .22s var(--th-ease);
}

.th-drawer.is-open .th-drawer__veil {
	opacity: 1;
}

.th-drawer__panel {
	position: absolute;
	inset: 0 auto 0 0;
	width: min(330px, 86vw);
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform .24s var(--th-ease);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.th-drawer.is-open .th-drawer__panel {
	transform: translateX(0);
}

.th-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--th-line);
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;
}

.th-drawer__close {
	width: 36px;
	height: 36px;
	border: 1px solid var(--th-line);
	border-radius: var(--th-r-sm);
	background: #fff;
	display: grid;
	place-items: center;
	color: var(--th-ink);
}

.th-drawer__close svg {
	width: 17px;
	height: 17px;
}

.th-drawer__body {
	padding: 14px 18px 26px;
}

.th-drawer .th-menu {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.th-drawer .th-menu > li > a {
	padding: 12px 10px;
	border-radius: var(--th-r-sm);
	font-size: 15.5px;
	justify-content: space-between;
	width: 100%;
}

.th-drawer .th-menu .sub-menu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border: 0;
	border-left: 2px solid var(--th-line);
	border-radius: 0;
	margin: 0 0 6px 14px;
	padding: 0 0 0 6px;
	display: none;
}

.th-drawer .th-menu li.is-expanded > .sub-menu {
	display: block;
}

.th-drawer__toggle {
	background: none;
	border: 0;
	padding: 6px;
	color: var(--th-muted);
	display: grid;
	place-items: center;
}

.th-drawer__toggle svg {
	width: 14px;
	height: 14px;
	transition: transform .18s var(--th-ease);
}

.th-drawer .th-menu li.is-expanded > a .th-drawer__toggle svg {
	transform: rotate(180deg);
}

.th-drawer__cta {
	display: grid;
	gap: 9px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--th-line);
}

/* --------------------------------------------------------------------------
   8. Breadcrumbs
   -------------------------------------------------------------------------- */

.th-crumbs {
	font-size: 13px;
	color: var(--th-muted);
	padding-block: 14px;
}

.th-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.th-crumbs li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.th-crumbs li:not(:last-child)::after {
	content: "/";
	color: var(--th-faint);
}

.th-crumbs a {
	color: var(--th-muted);
}

.th-crumbs a:hover {
	color: var(--th-red);
}

.th-crumbs [aria-current="page"] {
	color: var(--th-ink);
	font-weight: 550;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */

.th-footer {
	background: var(--th-bg-warm);
	border-top: 1px solid var(--th-line);
	margin-top: 58px;
}

/* Brand column plus four link columns. */
.th-footer__top {
	display: grid;
	grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
	gap: 34px;
	padding-block: clamp(36px, 5vw, 56px);
}

@media (max-width: 1180px) {
	.th-footer__top {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 30px;
	}

	.th-footer__about {
		grid-column: 1 / -1;
		max-width: 60ch;
	}
}

@media (max-width: 1024px) {
	.th-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px;
	}
}

@media (max-width: 560px) {
	.th-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}
}

.th-footer h3,
.th-fcol__title {
	font-family: var(--th-font-head);
	font-size: 15.5px;
	font-weight: 700;
	color: var(--th-ink);
	margin: 0 0 14px;
}

.th-footer__about p {
	font-size: 14px;
	color: var(--th-muted);
	margin-bottom: 14px;
}

.th-footer__brand {
	margin-bottom: 12px;
}

.th-fmenu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}

.th-fmenu li {
	margin: 0;
}

.th-fmenu a {
	font-size: 14px;
	color: var(--th-body);
}

.th-fmenu a:hover {
	color: var(--th-red);
}

.th-footer__contact {
	display: grid;
	gap: 10px;
	margin: 14px 0 16px;
	font-size: 14px;
}

.th-footer__contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--th-body);
}

.th-footer__contact a:hover {
	color: var(--th-red);
}

.th-footer__contact svg {
	width: 15px;
	height: 15px;
	color: var(--th-red);
	flex: none;
}

.th-footer__bottom {
	border-top: 1px solid var(--th-line);
	padding-block: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	font-size: 13px;
	color: var(--th-muted);
}

.th-footer__bottom p {
	margin: 0;
}

.th-footer__legal {
	max-width: 620px;
}

.th-footer__seal {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	border: 1px solid var(--th-green);
	color: var(--th-green-dark);
	background: var(--th-green-soft);
	border-radius: var(--th-r-pill);
	font-size: 12.5px;
	font-weight: 600;
}

.th-footer__seal svg {
	width: 14px;
	height: 14px;
}

/* Newsletter form in footer column 4 */
.th-subscribe {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.th-subscribe input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	padding: 0 13px;
	border: 1px solid var(--th-line);
	border-radius: var(--th-r-sm);
	background: #fff;
	font-size: 14px;
}

.th-subscribe input:focus {
	border-color: var(--th-red);
	outline: none;
	box-shadow: 0 0 0 3px var(--th-red-soft);
}

.th-subscribe button {
	flex: none;
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--th-r-sm);
	background: var(--th-red);
	color: #fff;
	font-size: 14px;
	font-weight: 650;
}

.th-subscribe button:hover {
	background: var(--th-red-dark);
}

/* --------------------------------------------------------------------------
   10. Floating actions
   -------------------------------------------------------------------------- */

.th-float {
	position: fixed;
	right: 18px;
	bottom: 20px;
	z-index: 70;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.th-float__btn {
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	box-shadow: var(--th-sh-lg);
	border: 0;
	transition: transform .18s var(--th-ease), box-shadow .18s var(--th-ease);
}

.th-float__btn:hover,
.th-float__btn:focus-visible {
	transform: translateY(-2px) scale(1.04);
	color: #fff;
}

.th-float__btn svg {
	width: 29px;
	height: 29px;
}

.th-float__btn--wa {
	background: var(--th-wa);
}

.th-float__btn--wa:hover {
	background: #1fbe5b;
}

/* Secondary mini button (WhatsApp Channel) sits above the main one */
.th-float__btn--mini {
	width: 42px;
	height: 42px;
	background: var(--th-wa-dark);
}

.th-float__btn--mini svg {
	width: 21px;
	height: 21px;
}

.th-float__btn--mini:hover {
	background: var(--th-wa-deep);
}

/* Soft attention ring on the main WhatsApp button */
.th-float__btn--wa::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
	animation: th-ring 2.6s infinite;
}

@keyframes th-ring {
	70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.th-float__btn--wa::after { animation: none; }
}

/* Hover label */
.th-float__tip {
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	background: var(--th-bg-dark);
	color: #fff;
	padding: 8px 13px;
	border-radius: var(--th-r-sm);
	font-size: 13px;
	line-height: 1.35;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity .16s var(--th-ease), transform .16s var(--th-ease), visibility .16s;
	box-shadow: var(--th-sh);
	pointer-events: none;
}

.th-float__tip small {
	display: block;
	opacity: .72;
	font-size: 11.5px;
}

.th-float__btn:hover .th-float__tip,
.th-float__btn:focus-visible .th-float__tip {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
	.th-float__tip { display: none; }

	.th-float {
		right: 14px;
		bottom: 78px; /* clears the sticky mobile action bar */
	}

	.th-float__btn {
		width: 50px;
		height: 50px;
	}

	.th-float__btn svg {
		width: 26px;
		height: 26px;
	}

	.th-float__btn--mini {
		width: 38px;
		height: 38px;
	}
}

/* Back to top */
.th-totop {
	position: fixed;
	right: 18px;
	bottom: 86px;
	z-index: 69;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--th-line);
	color: var(--th-ink);
	display: grid;
	place-items: center;
	box-shadow: var(--th-sh);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s var(--th-ease), transform .2s var(--th-ease), visibility .2s;
}

.th-totop.is-on {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.th-totop svg {
	width: 18px;
	height: 18px;
}

.th-totop:hover {
	border-color: var(--th-red);
	color: var(--th-red);
}

/* When the floating stack has two buttons the back-to-top needs more clearance */
.th-float--stacked ~ .th-totop {
	bottom: 138px;
}

@media (max-width: 768px) {
	.th-totop {
		right: 14px;
		bottom: 136px;
	}

	.th-float--stacked ~ .th-totop {
		bottom: 182px;
	}
}

/* Sticky mobile action bar (single listing) */
.th-mobilebar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 68;
	display: none;
	gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid var(--th-line);
	box-shadow: var(--th-sh-up);
}

.th-mobilebar .th-btn {
	flex: 1 1 0;
	min-width: 0;
	justify-content: center;
}

@media (max-width: 768px) {
	.th-mobilebar {
		display: flex;
	}

	body.th-has-mobilebar {
		padding-bottom: 72px;
	}
}
