/* Abu Karim site helpers. Colours and fonts live in Elementor Site Settings. */
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 84px; }

/* Sticky header (Hello Elementor header). */
.site-header.dynamic-header {
	position: sticky; top: 0; z-index: 999;
	background: rgba(255,255,255,.96);
	-webkit-backdrop-filter: saturate(160%) blur(8px); backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid #DCEBDD;
	transition: box-shadow .25s ease;
}
.admin-bar .site-header.dynamic-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.dynamic-header { top: 0; } }
.site-header.ak-scrolled { box-shadow: 0 6px 24px rgba(4,53,31,.08); }
.site-header .site-navigation ul.menu li a { position: relative; transition: color .2s ease; }
.site-header .site-navigation ul.menu li a::after {
	content: ""; position: absolute; inset-inline: 12px; bottom: 6px; height: 2px;
	background: #006C35; transform: scaleX(0); transition: transform .25s ease;
}
.site-header .site-navigation ul.menu li a:hover::after,
.site-header .site-navigation ul.menu li a.ak-active::after { transform: scaleX(1); }
.site-header .site-navigation-dropdown ul.menu li a { padding: 14px 20px; }

/* Soft hover for buttons and cards. */
.elementor-button { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.elementor-button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,108,53,.18); }
.ak-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ak-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(4,53,31,.10) !important; border-color: #A8CBAF !important; }
a:focus-visible, .elementor-button:focus-visible, button:focus-visible { outline: 3px solid #57936A; outline-offset: 3px; }

/* Floating WhatsApp button. */
.ak-float-wa {
	position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 998;
	width: 58px; height: 58px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #006C35; color: #fff !important; box-shadow: 0 10px 26px rgba(4,53,31,.28);
	transition: transform .2s ease, background-color .2s ease;
}
.ak-float-wa:hover, .ak-float-wa:focus-visible { background: #07542D; color: #fff; transform: translateY(-3px); }
@media (max-width: 767px) { .ak-float-wa { width: 52px; height: 52px; inset-inline-start: 14px; bottom: 14px; } }

/* Respect "Reduce motion": no entrance animations, no hover movement. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.elementor-invisible { visibility: visible !important; }
	.animated { animation: none !important; }
	.elementor-button:hover, .ak-card:hover, .ak-float-wa:hover { transform: none; }
}

/* Phone numbers read left-to-right inside Arabic text. */
.ak-ltr .elementor-icon-list-text { direction: ltr; unicode-bidi: isolate; }

/* The footer is built in Elementor inside the page; hide the theme's own footer bar. */
#site-footer.dynamic-footer { display: none; }

/* Mobile dropdown menu in the site identity. */
.site-header .site-navigation-toggle-holder .site-navigation-toggle { background: #F4F8F4; color: #07542D; border-radius: 10px; }
.site-header .site-navigation-toggle-holder .site-navigation-toggle[aria-expanded="true"] { background: #006C35; color: #fff; }
.site-header .site-navigation-dropdown { box-shadow: 0 18px 30px rgba(4,53,31,.12); }
.site-header .site-navigation-dropdown ul.menu li a { background: #fff; color: #07542D; font-weight: 600; border-bottom: 1px solid #DCEBDD; }
.site-header .site-navigation-dropdown ul.menu li a:hover,
.site-header .site-navigation-dropdown ul.menu li a.ak-active { background: #F4F8F4; color: #006C35; }

/* Services cards: equal height, buttons lined up at the bottom. */
.ak-service > .e-con { flex-grow: 1; }
.ak-service .elementor-widget-button { margin-top: auto; }
.ak-service .elementor-widget-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
