/*
 * Icon Web Solution: legacy-page UI fixes (from services/ui-audit.md, 9 Oct 2026).
 * Every rule is scoped to legacy Techkit/Elementor templates only:
 *   - never the v2 homepage (body.home is excluded everywhere),
 *   - never content inside .iws-svc (pages that contain .iws-svc are excluded with :has()).
 * Enqueued site-wide from the child theme after the parent/child stylesheets.
 *
 * 2.4.0 note: the About (page-id-182) .elementor-invisible un-hide rule is INTENTIONALLY
 * omitted until Elementor copy is fixed ("25 YEARS", counters 109/28/35/107).
 * Careers (page-id-995) un-hide is kept.
 */

/* [UI-03] Footer "Get In Touch" intro and Office Address are near-invisible (#ccc-ish on white).
   Raise to an accessible grey (approx. 7:1 on white). Widget exists only in the legacy theme footer. */
body:not(.home) .widget_techkit_address .rtin-des,
body:not(.home) .widget_techkit_address .corporate-address li {
	color: #4a5363 !important;
}
body:not(.home) .widget_techkit_address .corporate-address li span {
	color: #14133b;
	font-weight: 600;
}

/* [UI-02] Careers only: Elementor widgets stay hidden (.elementor-invisible never removed).
   About (page-id-182) is excluded until unverified "25 YEARS" / counters are fixed in Elementor. */
body.page-id-995:not(:has(.iws-svc)) .elementor-invisible {
	visibility: visible !important;
	opacity: 1 !important;
	animation: none !important;
}

/* [UI-06] Check-circle icons overlap the first letter of list items on legacy service pages. */
body.single-techkit_service:not(:has(.iws-svc)) .elementor-widget-icon-list .elementor-icon-list-item {
	display: flex !important;
	align-items: flex-start;
	gap: 0.6em;
}
body.single-techkit_service:not(:has(.iws-svc)) .elementor-widget-icon-list .elementor-icon-list-icon {
	position: static !important;
	flex: 0 0 auto;
	margin: 0.2em 0 0 !important;
	transform: none !important;
}
body.single-techkit_service:not(:has(.iws-svc)) .elementor-widget-icon-list .elementor-icon-list-text {
	padding-left: 0 !important;
	margin-left: 0 !important;
}

/* [UI-09] Sidebar category names run into their counts ("WEBSITE DESIGN & DEVELOPMENT(1)").
   Verify selector on the live sidebar before shipping. */
body.single-techkit_service:not(:has(.iws-svc)) .sidebar-widget-area .widget ul li,
body.single-post .sidebar-widget-area .widget_categories ul li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

/* [UI-05] WhatsApp "How can I help you?" pill covers content on phones (phone numbers on /contact/,
   sidebar text on service pages). Show the icon only below 768 px on legacy pages.
   QuadLayers class names differ by version; both are covered. Homepage is left to the v2 owner. */
@media (max-width: 767px) {
	body:not(.home) .qlwapp .qlwapp__text,
	body:not(.home) .qlwapp .qlwapp-text {
		display: none !important;
	}
	body:not(.home) .qlwapp .qlwapp__button,
	body:not(.home) .qlwapp .qlwapp-toggle {
		padding: 0 !important;
		width: 52px;
		height: 52px;
		justify-content: center;
	}
}

/* [UI-14] Breadcrumb and footer links are smaller than 24 px tap targets on phones. */
@media (max-width: 767px) {
	body:not(.home) .breadcrumb-area a,
	body:not(.home) footer .widget ul li a {
		display: inline-block;
		padding: 6px 0;
	}
}
