/*
Theme Name:   Marka Base — Hello Elementor Child
Theme URI:    https://marka.studio
Description:  Reusable Hello Elementor child theme by Marka Studio. Safe SVG uploads, media-size control, platform fingerprint reduction, sticky header, floating WhatsApp button, and a place for custom CSS that survives parent theme updates. Configure via the constants at the top of functions.php.
Author:       Marka Studio
Author URI:   https://marka.studio
Template:     hello-elementor
Version:      1.3.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  marka-base-child
Tags:         elementor, child-theme, performance
*/

/* ==========================================================================
   STICKY HEADER
   Add the class  marka-sticky-header  to the header container in the
   UAE Header Footer Builder template. The JS adds is-fixed past the
   trigger point and inserts a spacer so the page does not jump.
   ========================================================================== */

.marka-sticky-header {
	transition: box-shadow .25s ease, background-color .25s ease;
}

.marka-sticky-header.is-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 999;
	box-shadow: 0 2px 14px rgba(0, 0, 0, .12);
}

/* Keep the header clear of the WordPress admin bar when logged in. */
.admin-bar .marka-sticky-header.is-fixed { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .marka-sticky-header.is-fixed { top: 46px; }
}

.marka-sticky-spacer { width: 100%; }

@media (prefers-reduced-motion: reduce) {
	.marka-sticky-header { transition: none; }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */

.marka-wa {
	position: fixed;
	bottom: 22px;
	z-index: 998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--marka-wa-size, 58px);
	height: var(--marka-wa-size, 58px);
	border-radius: 50%;
	background: var(--marka-wa-bg, #25D366);
	color: var(--marka-wa-icon, #fff);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .24);
	transition: transform .2s ease, box-shadow .2s ease, border-radius .2s ease;
	text-decoration: none;
}

.marka-wa svg {
	display: block;
	fill: currentColor;
	flex: none;
	/* Optical centring — the glyph sits slightly high in its viewBox. */
	transform: translateY(1px);
}

.marka-wa--left  { left: 22px; }
.marka-wa--right { right: 22px; }

.marka-wa:hover,
.marka-wa:focus {
	color: var(--marka-wa-icon, #fff);
	transform: scale(1.06);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
	text-decoration: none;
}

.marka-wa:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Hover label, desktop only. Slides out from behind the circle. */
.marka-wa__label {
	position: absolute;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 9px 14px;
	border-radius: 999px;
	background: var(--marka-wa-bg, #25D366);
	color: var(--marka-wa-icon, #fff);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}

.marka-wa--left  .marka-wa__label { left: 100%; margin-left: 10px; transform: translateX(-6px); }
.marka-wa--right .marka-wa__label { right: 100%; margin-right: 10px; transform: translateX(6px); }

.marka-wa--labelled:hover .marka-wa__label,
.marka-wa--labelled:focus-visible .marka-wa__label {
	opacity: 1;
	transform: translateX(0);
}

@media (max-width: 767px) {
	.marka-wa { width: 52px; height: 52px; bottom: 16px; }
	.marka-wa--left  { left: 16px; }
	.marka-wa--right { right: 16px; }
	.marka-wa svg { width: 28px; height: 28px; }
	.marka-wa__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.marka-wa,
	.marka-wa__label { transition: none; }
	.marka-wa:hover { transform: none; }
}

/* ==========================================================================
   PROJECT CSS — per-widget overrides go below
   Add a CSS class in Elementor's Advanced tab, write the rule here.
   ========================================================================== */
