/* ==========================================================================
   Meezab Gate — Elementor widget styles
   Colours, sizes and typography below are defaults; every widget exposes
   Elementor controls that override them per instance.
   ========================================================================== */

.mg-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Badge (Coming soon pill) ---------- */
.mg-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #FBEDED;
	color: #B72226;
	font-family: "Poppins", Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .18em;
	line-height: 1.5;
	text-transform: uppercase;
}
.mg-badge__dot {
	position: relative;
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}
.mg-badge__dot.is-pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: inherit;
	animation: mgPing 2s ease-out infinite;
}
@keyframes mgPing {
	0% { transform: scale(1); opacity: .6; }
	100% { transform: scale(3); opacity: 0; }
}

/* ---------- Rotating-word heading ---------- */
.mg-rotator {
	margin: 0;
	font-family: "Poppins", Arial, sans-serif;
	font-size: clamp(38px, 4.6vw, 60px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.01em;
	color: #1F1F24;
}
.mg-rotator__before { display: block; }
.mg-rotator__window {
	display: block;
	height: var(--mg-lh, 1.12em);
	overflow: hidden;
	color: #B72226;
}
.mg-rotator--inline .mg-rotator__before { display: inline; }
.mg-rotator--inline .mg-rotator__window {
	display: inline-block;
	vertical-align: bottom;
}
.mg-rotator__track { display: block; }
.mg-rotator__word {
	display: block;
	height: var(--mg-lh, 1.12em);
	line-height: var(--mg-lh, 1.12em);
	white-space: nowrap;
}

/* ---------- Animated symbol + service chips ---------- */
.mg-symbol {
	--mg-sym-w: 280px;
	--mg-sym-color: #FFFFFF;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	height: 100%;
}
.mg-symbol__float { position: relative; }
.mg-symbol__svg {
	display: block;
	width: var(--mg-sym-w);
	height: auto;
	overflow: visible;
	fill: var(--mg-sym-color);
}
.mg-symbol.is-float .mg-symbol__float { animation: mgFloat 6s ease-in-out 3.2s infinite; }
.mg-symbol.is-assemble .mg-p { transform-box: fill-box; }
.mg-symbol.is-assemble .mg-p1 { animation: mgFromB 1s cubic-bezier(.2, .8, .2, 1) var(--mg-d1, 1.7s) both; }
.mg-symbol.is-assemble .mg-p2 { animation: mgFromL 1s cubic-bezier(.2, .8, .2, 1) var(--mg-d2, 1.85s) both; }
.mg-symbol.is-assemble .mg-p3 { animation: mgFromR 1s cubic-bezier(.2, .8, .2, 1) var(--mg-d3, 2s) both; }
@keyframes mgFromB { from { opacity: 0; transform: translateY(160%); } to { opacity: 1; transform: none; } }
@keyframes mgFromL { from { opacity: 0; transform: translateX(-90%); } to { opacity: 1; transform: none; } }
@keyframes mgFromR { from { opacity: 0; transform: translateX(90%); } to { opacity: 1; transform: none; } }
@keyframes mgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.mg-chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px 7px 7px;
	border-radius: 999px;
	background: #FFFFFF;
	color: #1F1F24;
	font-family: "Poppins", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .4);
}
.mg-symbol.is-chips-animated .mg-chip { animation: mgPop .6s cubic-bezier(.3, 1.5, .5, 1) both, mgBob 5s ease-in-out infinite; }
.mg-chip__icon {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #FBEDED;
	color: #B72226;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
}
.mg-chip__icon svg { width: 14px; height: 14px; fill: currentColor; }
@keyframes mgPop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes mgBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Pattern band ---------- */
.mg-band {
	--tile-h: 88px;
	--tile-w: calc(var(--tile-h) * 3.19465);
	height: calc(var(--tile-h) * var(--mg-rows, 1));
	background-repeat: repeat;
	background-size: var(--tile-w) var(--tile-h);
	background-position: 0 0;
}
.mg-band--left { animation: mgBandL var(--mg-speed, 28s) linear infinite; }
.mg-band--right { animation: mgBandR var(--mg-speed, 28s) linear infinite; }
@keyframes mgBandL { from { background-position: 0 0; } to { background-position: calc(var(--tile-w) * -1) 0; } }
@keyframes mgBandR { from { background-position: 0 0; } to { background-position: var(--tile-w) 0; } }

/* ---------- Gate doors (hero intro) ---------- */
.elementor-widget-mg-gate-doors {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100% !important;
	max-width: none !important;
	height: 100%;
	margin: 0 !important;
	z-index: 30;
	pointer-events: none;
}
.elementor-widget-mg-gate-doors > .elementor-widget-container { height: 100%; }
.elementor-widget-mg-gate-doors:has(.mg-doors-placeholder) {
	top: 10px;
	left: auto;
	right: 10px;
	width: auto !important;
	height: auto;
	pointer-events: auto;
	z-index: 40;
}
.mg-doors {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.mg-door {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50%;
	display: flex;
	align-items: center;
	background: var(--mg-door, #AC1C21);
}
.mg-door--l {
	left: 0;
	justify-content: flex-end;
	box-shadow: inset -1px 0 0 var(--mg-seam, #8E1A1D);
	animation: mgDoorL var(--mg-dur, 2.1s) cubic-bezier(.75, 0, .2, 1) var(--mg-delay, .2s) both;
}
.mg-door--r {
	right: 0;
	justify-content: flex-start;
	box-shadow: inset 1px 0 0 var(--mg-seam, #8E1A1D);
	animation: mgDoorR var(--mg-dur, 2.1s) cubic-bezier(.75, 0, .2, 1) var(--mg-delay, .2s) both;
}
.mg-door svg { display: block; height: auto; fill: var(--mg-door-sym, #FFFFFF); }
.mg-door--l svg { width: calc(var(--mg-door-sym-w, 380px) * .5633); }
.mg-door--r svg { width: calc(var(--mg-door-sym-w, 380px) * .4367); }
@keyframes mgDoorL { 0%, 30% { transform: translateX(0); } 100% { transform: translateX(-101%); } }
@keyframes mgDoorR { 0%, 30% { transform: translateX(0); } 100% { transform: translateX(101%); } }
.mg-doors-placeholder {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px dashed #B72226;
	border-radius: 8px;
	background: #FFF7F7;
	color: #8E1A1D;
	font: 500 12px/1.4 "Poppins", Arial, sans-serif;
}
.mg-doors-placeholder svg { width: 40px; height: auto; fill: #B72226; }

/* ---------- Gate shape (decorative) ---------- */
.elementor-widget-mg-gate-shape { pointer-events: none; }
.mg-shape svg { display: block; width: 100%; height: auto; }

/* ---------- Service card ---------- */
.mg-svc {
	--mg-card-h: 500px;
	position: relative;
	height: var(--mg-card-h);
	border-radius: 28px;
	overflow: hidden;
	background: #1F1F24;
	color: #FFFFFF;
	font-family: "Poppins", Arial, sans-serif;
	transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
	isolation: isolate;
}
.mg-svc:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px rgba(31, 31, 36, .7); }
.mg-svc__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
	transition: transform 1s cubic-bezier(.2, .7, .2, 1);
}
.mg-svc:hover .mg-svc__img { transform: scale(1.07); }
.mg-svc__shade,
.mg-svc__tint { position: absolute; inset: 0; pointer-events: none; }
.mg-svc__shade { background: linear-gradient(180deg, rgba(20, 20, 24, .38) 0%, rgba(20, 20, 24, 0) 26%, rgba(20, 20, 24, .1) 42%, rgba(20, 20, 24, .9) 100%); }
.mg-svc__tint {
	--mg-tint: #8E1A1D;
	background: linear-gradient(180deg, transparent 15%, color-mix(in srgb, var(--mg-tint) 55%, transparent) 50%, color-mix(in srgb, var(--mg-tint) 95%, transparent) 100%);
	opacity: 0;
	transition: opacity .45s ease;
}
.mg-svc:hover .mg-svc__tint,
.mg-svc:focus-within .mg-svc__tint { opacity: 1; }
.mg-svc__top {
	position: absolute;
	top: 22px;
	left: 22px;
	right: 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 2;
}
.mg-svc__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 40px;
	padding: 0 12px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-size: 14px;
	font-weight: 600;
}
.mg-svc__arrow {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #FFFFFF;
	color: #1F1F24;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .4s ease, background .3s ease, color .3s ease;
}
.mg-svc__arrow svg { width: 20px; height: 20px; }
.mg-svc:hover .mg-svc__arrow { background: #B72226; color: #FFFFFF; transform: rotate(45deg); }
.mg-svc__body {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 2;
}
.mg-svc__tile {
	width: 52px;
	height: 52px;
	margin-bottom: 4px;
	border-radius: 16px 4px 4px 4px;
	background: #B72226;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}
.mg-svc__tile svg { width: 24px; height: 24px; fill: currentColor; }
.mg-svc__title {
	margin: 0;
	font-size: 25px;
	line-height: 1.2;
	font-weight: 600;
	color: #FFFFFF;
}
.mg-svc__desc {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
}
.mg-svc__more {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows .45s ease, opacity .35s ease;
}
.mg-svc__more > div { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.mg-svc:hover .mg-svc__more,
.mg-svc:focus-within .mg-svc__more,
.mg-svc.is-tags-always .mg-svc__more { grid-template-rows: 1fr; opacity: 1; }
.mg-svc__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.mg-svc__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	font-size: 13px;
	font-weight: 500;
}
.mg-svc__tag svg { width: 13px; height: 13px; }
.mg-svc__link,
.mg-svc__link:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.mg-svc__link:hover { color: #FFFFFF; text-decoration: underline; }
.mg-svc__link svg { width: 18px; height: 18px; }
@media (hover: none) {
	.mg-svc__more { grid-template-rows: 1fr; opacity: 1; }
}
@supports (animation-timeline: view()) {
	.mg-reveal-yes { animation: mgReveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
}
@keyframes mgReveal { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }

/* Services grid → swipe row on phones (add class "mg-svc-grid" to a grid container) */
@media (max-width: 767px) {
	.mg-svc-grid.e-con,
	.mg-svc-grid.e-con > .e-con-inner {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		gap: 14px !important;
		padding-bottom: 18px;
	}
	.mg-svc-grid.e-con::-webkit-scrollbar { display: none; }
	.mg-svc-grid.e-con > .elementor-element,
	.mg-svc-grid.e-con > .e-con-inner > .elementor-element {
		flex: 0 0 82% !important;
		max-width: 82% !important;
		scroll-snap-align: start;
	}
}

/* ---------- Contact item ---------- */
.mg-contact,
.mg-contact:visited {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	box-sizing: border-box;
	padding: 18px 20px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, .28);
	background: rgba(255, 255, 255, .1);
	color: #FFFFFF;
	font-family: "Poppins", Arial, sans-serif;
	text-decoration: none;
	transition: background .25s ease;
}
a.mg-contact:hover { background: rgba(255, 255, 255, .18); color: #FFFFFF; text-decoration: none; }
.mg-contact__icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #FFFFFF;
	color: #B72226;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}
.mg-contact__icon svg { width: 20px; height: 20px; fill: currentColor; }
.mg-contact__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mg-contact__label { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.mg-contact__value { font-size: 18px; font-weight: 600; line-height: 1.35; }

/* ---------- Contact Form 7: Notify form ---------- */
.mg-notify { display: flex; flex-direction: column; gap: 10px; max-width: 520px; font-family: "Poppins", Arial, sans-serif; }
.mg-notify__label { font-size: 14px; font-weight: 500; color: #1F1F24; }
.mg-notify__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; position: relative; }
.mg-notify__row .wpcf7-form-control-wrap { flex: 1 1 240px; min-width: 0; }
.mg-notify__input {
	width: 100%;
	height: 52px;
	padding: 0 18px;
	box-sizing: border-box;
	border: 1.5px solid #E6E6EA;
	border-radius: 8px;
	background: #FFFFFF;
	color: #1F1F24;
	font: 400 15px "Poppins", Arial, sans-serif;
}
.mg-notify__input:focus { outline: 2px solid #4651C2; outline-offset: 1px; border-color: #4651C2; }
.mg-notify__btn {
	flex: 0 0 auto;
	height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 8px;
	background: #B72226;
	color: #FFFFFF;
	font: 500 15px "Poppins", Arial, sans-serif;
	cursor: pointer;
	transition: background .2s ease;
}
.mg-notify__btn:hover,
.mg-notify__btn:focus-visible { background: #8E1A1D; }
.mg-notify__hint { font-size: 13px; color: #6B6B72; }
.mg-notify .wpcf7-spinner { position: absolute; right: -36px; top: 14px; margin: 0; }
.mg-notify .wpcf7-not-valid-tip { font-size: 13px; margin-top: 6px; color: #B72226; }
.wpcf7 form .mg-notify ~ .wpcf7-response-output,
.mg-cf7 .wpcf7 form .wpcf7-response-output {
	max-width: 520px;
	margin: 12px 0 0;
	padding: 14px 18px;
	border-radius: 12px;
	border: 0;
	font: 500 14px/1.5 "Poppins", Arial, sans-serif;
	background: #FBEDED;
	color: #8E1A1D;
}
.mg-cf7 .wpcf7 form.sent .mg-notify { display: none; }
.mg-cf7 .wpcf7 form.sent .wpcf7-response-output {
	margin-top: 0;
	padding: 18px 20px;
	background: #EEF0FB;
	color: #2E3690;
	font-weight: 600;
}
@media (max-width: 767px) {
	.mg-notify__btn { width: 100%; }
	.mg-notify .wpcf7-spinner { right: auto; left: 50%; top: auto; bottom: -32px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.elementor-widget-mg-gate-doors { display: none !important; }
	.mg-badge__dot.is-pulse::after,
	.mg-band--left,
	.mg-band--right,
	.mg-symbol .mg-symbol__float,
	.mg-symbol .mg-p,
	.mg-chip,
	.mg-rotator__track,
	.mg-reveal-yes { animation: none !important; }
	.mg-svc,
	.mg-svc__img,
	.mg-svc__tint,
	.mg-svc__more,
	.mg-svc__arrow { transition: none !important; }
}
