/*
Theme Name: Bulidx Aim Estimatings
Theme URI: https://aimestimating.com
Author: Aim Estimatings
Description: Custom WordPress theme based on Bulidx Construction HTML template for Aim Estimatings. Preserves demo preloader and WOW animations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: bulidx-aim
*/

/* Aim Estimatings brand overrides */
.header-logo img,
.header-logo-2 img,
.offcanvas__logo img,
.gt-footer-logo img,
.client-info img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}
.header-main .logo img { max-height: 72px; width: auto; min-width: 0; }
.header-main .main-menu #responsive-menu {
	display: flex;
	gap: 56px;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
	flex-wrap: nowrap;
}
.header-main .main-menu #responsive-menu > li {
	display: block;
	margin-inline-end: 0 !important;
}
.header-main .main-menu #responsive-menu > li > a {
	white-space: nowrap;
	padding-top: 28px;
	padding-bottom: 22px;
	padding-left: 6px;
	padding-right: 6px;
}

/* Header vertical spacing */
.header-1 .header-main {
	padding-top: 20px;
	padding-bottom: 16px;
}

/* Home hero — force white logo (not sticky) */
body.home .header-1:not(.sticky) .header-main .header-left .header-logo {
	display: block !important;
}
body.home .header-1:not(.sticky) .header-main .header-left .header-logo-2 {
	display: none !important;
}

/* Hero dark overlay — keep white menu readable on banner */
body.home .hero-1::before {
	background: linear-gradient(
		180deg,
		rgba(4, 2, 0, 0.72) 0%,
		rgba(4, 2, 0, 0.35) 28%,
		rgba(4, 2, 0, 0.25) 55%,
		rgba(4, 2, 0, 0.78) 100%
	) !important;
}
body.home .header-1.sticky .header-main ul li > a {
	text-shadow: none;
}

/* Inner pages — dark nav + logo (white text invisible on white bg) */
body.aim-inner-page .header-1 {
	position: relative;
	background-color: var(--white);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
body.aim-inner-page .header-1 .header-main ul li > a {
	color: var(--header) !important;
	text-shadow: none;
}
body.aim-inner-page .header-1 .header-main ul li > a:hover,
body.aim-inner-page .header-1 .header-main ul li:hover > a {
	color: var(--theme) !important;
}
body.aim-inner-page .header-1 .header-main .header-left .header-logo {
	display: none;
}
body.aim-inner-page .header-1 .header-main .header-left .header-logo-2 {
	display: block;
}
body.aim-inner-page .header-1 .header-main .header__hamburger .sidebar__toggle {
	color: var(--header);
}
.page-content p { margin-bottom: 1rem; }
#preloader.loaded,
#preloader[style*="display: none"] {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Services mega menu — 5 thumbnail cards like Bulidx demo */
.header-main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.header-main .header-left {
	flex: 0 0 auto;
}
.header-main .mean__menu-wrapper {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
}
.header-main .header-right {
	flex: 0 0 auto;
	margin-left: auto;
}
.header-main .main-menu ul li.menu-thumb {
	position: static;
}
.header-main .main-menu ul li .has-servicemenu {
	width: min(1050px, calc(100vw - 48px));
	left: 50%;
	right: auto;
	inset-inline-start: 50%;
	transform: translateX(-50%) translateY(10px);
	padding: 30px 24px 20px;
}
.header-main .main-menu ul li:hover > .submenu.has-servicemenu {
	transform: translateX(-50%) translateY(0);
}
.header-main .main-menu ul li .has-servicemenu .homemenu-items {
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 20px;
}
.header-main .main-menu ul li .has-servicemenu .homemenu {
	flex: 0 0 calc(20% - 16px);
	min-width: 160px;
	max-width: 190px;
	display: flex;
	flex-direction: column;
}
.header-main .main-menu ul li .has-homemenu.has-servicemenu .homemenu-items .homemenu .homemenu-thumb {
	position: relative;
	height: 180px !important;
	min-height: 180px !important;
	max-height: 180px !important;
	overflow: hidden;
	border-radius: 4px;
	flex-shrink: 0;
	margin-bottom: 15px;
}
.header-main .main-menu ul li .has-homemenu.has-servicemenu .homemenu-items .homemenu .homemenu-thumb img {
	width: 100% !important;
	height: 180px !important;
	min-height: 180px !important;
	max-height: 180px !important;
	object-fit: cover !important;
	object-position: center center;
	display: block;
	border-radius: 4px;
}
.header-main .main-menu ul li .has-servicemenu .homemenu-content {
	flex: 1;
}
.header-main .main-menu ul li .has-servicemenu .homemenu-title {
	min-height: 3.2em;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	margin-top: 0;
}
.header-main .main-menu ul li .has-servicemenu .homemenu-title a {
	line-height: 1.35;
}
.header-main .main-menu ul li .has-servicemenu .homemenu-title a {
	color: var(--header);
	text-decoration: none;
	transition: color 0.3s ease;
}
.header-main .main-menu ul li .has-servicemenu .homemenu-title a:hover {
	color: var(--theme);
}
@media (max-width: 1199px) {
	.header-main .main-menu ul li .has-servicemenu .homemenu {
		flex: 0 0 calc(33.333% - 16px);
	}
}
@media (max-width: 767px) {
	.header-main .main-menu ul li .has-servicemenu .homemenu {
		flex: 0 0 calc(50% - 12px);
		min-width: 140px;
	}
}

/* Footer section-2 fixes */
.footer-section-2::after {
	display: none !important;
}
.footer-section-2 .container {
	position: relative;
	z-index: 2;
}
.footer-section-2 .footer-main-panel {
	position: relative;
	z-index: 2;
	background-color: var(--white);
	width: calc(100vw - 90px);
	max-width: none !important;
	margin-left: calc(50% - 50vw + 45px);
	margin-right: calc(50% - 50vw + 45px);
	padding-bottom: 10px;
}
@media (max-width: 1199px) {
	.footer-section-2 .footer-main-panel {
		width: calc(100vw - 48px);
		margin-left: calc(50% - 50vw + 24px);
		margin-right: calc(50% - 50vw + 24px);
	}
}
@media (max-width: 767px) {
	.footer-section-2 .footer-main-panel {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}
.footer-section-2 .footer-widget-wrapper.style-2 {
	padding: 70px 40px 50px;
	margin: 0;
}
@media (max-width: 991px) {
	.footer-section-2 .footer-widget-wrapper.style-2 {
		padding: 50px 24px 40px;
	}
}
.footer-section-2 .footer-widget-wrapper.style-2 .single-footer-widget {
	margin-top: 0;
}
.footer-section-2 .footer-widget-wrapper.style-2 .gt-footer-logo img {
	max-height: 56px;
	width: auto;
}
.footer-section-2 .footer-widget-wrapper.style-2 .social-icon {
	margin-top: 30px;
}
.footer-section-2 .footer-widget-wrapper.style-2 .recent-post-area .recent-items {
	align-items: flex-start;
}
.footer-section-2 .footer-widget-wrapper.style-2 .recent-post-area .recent-thumb {
	flex: 0 0 90px;
	width: 90px;
	height: 90px;
	overflow: hidden;
	border-radius: 4px;
}
.footer-section-2 .footer-widget-wrapper.style-2 .recent-post-area .recent-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.footer-section-2 .footer-widget-wrapper.style-2 .recent-post-area .recent-items .recent-content ul li {
	color: var(--text) !important;
}
.footer-section-2 .footer-bottom-2 {
	padding: 24px 40px 50px;
	margin: 0;
	border-top: 1px solid var(--border);
}
@media (max-width: 991px) {
	.footer-section-2 .footer-bottom-2 {
		padding: 24px 24px 40px;
	}
}
.footer-section-2 .footer-bottom-2 p {
	color: var(--text);
}
.footer-section-2 .footer-bottom-2 p span {
	color: var(--theme);
}

/* Footer brand text — Aim Estimatings (replaces Bulidx/BUILDX graphic) */
.footer-section-2 .text-image.aim-footer-brand-text {
	pointer-events: none;
}
.footer-section-2 .text-image.aim-footer-brand-text span {
	display: block;
	font-size: clamp(42px, 8vw, 110px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.08);
	white-space: nowrap;
}

/* Floating WhatsApp button — right side, above back-to-top */
.aim-whatsapp-float {
	position: fixed;
	right: 30px;
	bottom: 92px;
	left: auto;
	z-index: 999;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #25d366;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	transition: transform 0.3s ease, background 0.3s ease;
}
.aim-whatsapp-float:hover {
	background: #128c7e;
	color: #fff !important;
	transform: scale(1.08);
}
@media (max-width: 767px) {
	.aim-whatsapp-float {
		right: 20px;
		bottom: 82px;
		width: 48px;
		height: 48px;
		font-size: 24px;
	}
}
