/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Maintaler Gardinenservice – Hello Elementor Child
Author: Maintaler Redesign
Template: hello-elementor
Version: 1.6.4
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

:root {
	--mgs-purple: #91007b;
	--mgs-teal: #40a7b4;
	--mgs-teal-deep: #1d5258;
	--mgs-teal-soft: #40a7b40f;
	--mgs-cyan: #70e3f1;
	--mgs-text: #444444;
	--mgs-text-soft: #bdf8ff;
	--mgs-white: #ffffff;
	--mgs-max: 1285px;
	--mgs-gutter: 15px;
	--mgs-font: "Roboto", "Segoe UI", sans-serif;
	/* Elementor #4318: logo absolute left 246px from full-width section */
	--mgs-logo-left: 246px;
	--mgs-logo-end: 420px;
}

/* Same boxed width as Elementor kit (1285px), centered */
.mgs-container {
	max-width: var(--mgs-max);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--mgs-gutter);
	padding-right: var(--mgs-gutter);
	box-sizing: border-box;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ========== HEADER (template 4318) ========== */
.mgs-header {
	position: relative;
	z-index: 100;
	background: var(--mgs-white);
	font-family: var(--mgs-font);
}

.mgs-header__top {
	background: var(--mgs-teal-soft);
	padding: 30px 0;
}

.mgs-header__top-inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 48px;
	/* static: logo absolute is relative to .mgs-header (full width), like Elementor */
}

/* Logo: absolute to full-width header @ left 246px (Elementor #4318) */
.mgs-header__logo {
	position: absolute;
	left: var(--mgs-logo-left);
	top: 0;
	z-index: 120;
	background: var(--mgs-white);
	padding: 15px 0;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.21);
	line-height: 0;
}

.mgs-header__logo img {
	display: block;
	width: 154px; /* 72% of 214 */
	height: auto;
}

.mgs-header__contacts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}

.mgs-header__contacts li {
	margin-inline: 25px;
}

.mgs-header__contacts a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--mgs-text);
	text-decoration: none;
	font-family: var(--mgs-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.mgs-header__contacts a:hover {
	color: var(--mgs-teal);
}

.mgs-ico {
	display: inline-block;
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	background-color: var(--mgs-purple);
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}

.mgs-ico--phone {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23000' d='M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.26 207.74 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23000' d='M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.26 207.74 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z'/%3E%3C/svg%3E");
}

.mgs-ico--mail {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23000' d='M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23000' d='M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z'/%3E%3C/svg%3E");
}

.mgs-ico--pin {
	background-color: var(--mgs-white);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23000' d='M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23000' d='M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z'/%3E%3C/svg%3E");
}

.mgs-ico--phone-vol {
	background-color: var(--mgs-white);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%23000' d='M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM459.15 151.46c-11.03-6.93-25.59-3.6-32.52 7.42-6.93 11.02-3.59 25.58 7.42 32.51C459.16 207.46 480 236.53 480 272s-20.84 64.54-45.95 80.61c-11.01 6.93-14.35 21.49-7.42 32.51 6.93 11.03 21.49 14.34 32.52 7.42C497.25 374.99 528 326.86 528 272s-30.75-102.99-68.85-120.54z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%23000' d='M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM459.15 151.46c-11.03-6.93-25.59-3.6-32.52 7.42-6.93 11.02-3.59 25.58 7.42 32.51C459.16 207.46 480 236.53 480 272s-20.84 64.54-45.95 80.61c-11.01 6.93-14.35 21.49-7.42 32.51 6.93 11.03 21.49 14.34 32.52 7.42C497.25 374.99 528 326.86 528 272s-30.75-102.99-68.85-120.54z'/%3E%3C/svg%3E");
}

.mgs-ico--clock {
	background-color: var(--mgs-white);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23000' d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23000' d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z'/%3E%3C/svg%3E");
}

.mgs-header__nav-bar {
	border-bottom: 15px solid var(--mgs-teal);
	background: var(--mgs-white);
}

.mgs-header__nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 56px;
	padding-top: 0.15rem;
	padding-bottom: 0.15rem;
}

.mgs-nav {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-width: 0;
	/* Elementor: margin-left 17%, but never under the floating logo */
	margin-left: max(17%, calc(var(--mgs-logo-end) - max(0px, (100vw - var(--mgs-max)) / 2)));
}

.mgs-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}

.mgs-nav__list > li > a {
	display: block;
	padding: 0.85rem 8px;
	color: var(--mgs-text);
	text-decoration: none;
	font-family: var(--mgs-font);
	font-size: 14px;
	font-weight: 600;
	position: relative;
	transition: color 0.3s;
	white-space: nowrap;
}

.mgs-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 6px;
	height: 2px;
	background: var(--mgs-teal);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
}

.mgs-nav__list > li.current-menu-item > a,
.mgs-nav__list > li.current_page_item > a,
.mgs-nav__list > li > a:hover {
	color: var(--mgs-teal);
}

.mgs-nav__list > li.current-menu-item > a::after,
.mgs-nav__list > li.current_page_item > a::after,
.mgs-nav__list > li > a:hover::after {
	transform: scaleX(1);
}

.mgs-nav__toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--mgs-teal);
	border-radius: 4px;
	padding: 0.45rem 0.55rem;
	cursor: pointer;
	flex-direction: column;
	gap: 4px;
}

.mgs-nav__toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--mgs-teal-deep);
}

/* Search toggle + popup panel */
.mgs-search-wrap {
	position: relative;
	flex: 0 0 auto;
}

.mgs-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--mgs-purple);
	border-radius: 50%;
	color: var(--mgs-purple);
	background: var(--mgs-white);
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, color 0.2s;
}

.mgs-search:hover,
.mgs-search.is-open {
	background: var(--mgs-purple);
	color: var(--mgs-white);
}

.mgs-search-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 300;
	width: min(360px, calc(100vw - 2rem));
	background: var(--mgs-white);
	border: 1px solid rgba(29, 82, 88, 0.15);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
	padding: 12px;
}

/* Keep panel visible even if header scrolls slightly */
.mgs-search-panel:not([hidden]) {
	animation: mgs-search-in 0.18s ease-out;
}

@keyframes mgs-search-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mgs-search-panel[hidden] {
	display: none !important;
}

.mgs-search-form {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.mgs-search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid rgba(29, 82, 88, 0.25);
	border-radius: 4px;
	padding: 0.55rem 0.7rem;
	font-family: var(--mgs-font);
	font-size: 14px;
	color: var(--mgs-text);
}

.mgs-search-input:focus {
	outline: 2px solid var(--mgs-teal);
	outline-offset: 1px;
	border-color: var(--mgs-teal);
}

.mgs-search-submit {
	flex: 0 0 auto;
	border: 0;
	border-radius: 4px;
	background: var(--mgs-teal);
	color: var(--mgs-white);
	font-family: var(--mgs-font);
	font-size: 14px;
	font-weight: 600;
	padding: 0.55rem 0.9rem;
	cursor: pointer;
}

.mgs-search-submit:hover {
	background: var(--mgs-teal-deep);
}

/* ========== FOOTER (template 4297) ========== */
.mgs-footer {
	font-family: var(--mgs-font);
}

.mgs-footer__cta {
	background: var(--mgs-teal);
	padding: 20px 0;
}

.mgs-footer__cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.mgs-footer__cta-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 50px;
	row-gap: 10px;
}

.mgs-footer__cta-list a {
	color: var(--mgs-white);
	text-decoration: none;
	font-size: 14px;
	font-weight: 400;
}

.mgs-footer__cta-list .current-menu-item > a,
.mgs-footer__cta-list a:hover {
	color: var(--mgs-purple);
}

.mgs-footer__social-wrap {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-left: auto;
}

.mgs-footer__social-label {
	color: var(--mgs-white);
	font-size: 14px;
	font-weight: 400;
}

.mgs-footer__social {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.mgs-footer__social-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--mgs-white);
	color: var(--mgs-teal);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.mgs-footer__social-icon:hover {
	background: var(--mgs-purple);
	color: var(--mgs-white);
}

/* Elementor #4297: bg image + #1D5258 overlay @ 0.79 / mix-blend-mode:color */
.mgs-footer__main {
	position: relative;
	color: var(--mgs-white);
	background-color: var(--mgs-teal-deep);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	padding: 50px 0 0;
	isolation: isolate;
}

.mgs-footer__main-overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #1d5258;
	opacity: 0.79;
	mix-blend-mode: color;
	pointer-events: none;
}

.mgs-footer__main-inner {
	position: relative;
	z-index: 1;
}

.mgs-footer__grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
	gap: 2rem;
}

.mgs-footer__brand {
	margin: 0;
	font-size: 28px;
	font-weight: 500;
	color: var(--mgs-white);
	line-height: 1.25;
}

.mgs-footer__brand span {
	color: var(--mgs-purple);
}

.mgs-footer__owner {
	margin: 5px 0 0;
	color: var(--mgs-white);
	font-size: 14px;
	font-weight: 400;
}

.mgs-footer__text {
	margin: 20px 0 0;
	color: var(--mgs-white);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
}

.mgs-footer__heading {
	font-size: 20px;
	font-weight: 500;
	margin: 0 0 0.75rem;
	color: var(--mgs-white);
}

.mgs-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mgs-footer__menu a {
	color: var(--mgs-cyan);
	text-decoration: none;
	display: block;
	padding: 8px 0;
	font-size: 14px;
	font-weight: 400;
}

.mgs-footer__menu a:hover {
	color: var(--mgs-white);
}

.mgs-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--mgs-text-soft);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

.mgs-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin-top: 8px;
}

.mgs-footer__contact li:first-child {
	margin-top: 0;
}

/* Match Elementor #4297 icon list: FA white @ 16px */
.mgs-footer__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 16px;
	width: 16px;
	margin-top: 2px;
	line-height: 1;
}

.mgs-footer__ico i {
	color: var(--mgs-white);
	font-size: 16px;
	width: 1.25em;
	text-align: center;
}

.mgs-footer__contact a {
	color: var(--mgs-text-soft);
	text-decoration: none;
}

.mgs-footer__contact a:hover {
	color: var(--mgs-white);
}

.mgs-footer__bottom {
	margin-top: 40px;
	border-top: 1px solid rgba(210, 250, 255, 0.41);
	padding: 25px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.mgs-footer__copy {
	margin: 0;
	color: rgba(255, 255, 255, 0.67);
	font-size: 14px;
	font-weight: 300;
}

.mgs-footer__legal-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 30px;
}

.mgs-footer__legal-list a {
	color: rgba(242, 244, 248, 0.73);
	text-decoration: none;
	font-size: 14px;
	font-weight: 400;
}

.mgs-footer__legal-list a:hover {
	color: var(--mgs-white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
	:root {
		--mgs-logo-left: 1.25rem;
		--mgs-logo-end: 200px;
	}
}

@media (max-width: 960px) {
	.mgs-search-panel {
		position: fixed;
		top: var(--mgs-search-top, 120px);
		left: 0;
		right: 0;
		bottom: auto;
		width: auto;
		border-radius: 0;
		border-left: 0;
		border-right: 0;
		border-top: 1px solid rgba(29, 82, 88, 0.1);
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
		padding: 10px 12px;
		z-index: 500;
	}

	.mgs-search-form {
		max-width: var(--mgs-max);
		margin-inline: auto;
	}

	.mgs-header__top {
		padding: 14px 0;
	}

	.mgs-header__logo {
		position: static;
		padding: 6px 8px;
		box-shadow: 0 0 8px rgba(0, 0, 0, 0.12);
		order: 1;
	}

	.mgs-header__logo img {
		width: 100px;
	}

	.mgs-header__top-inner {
		justify-content: space-between;
		align-items: center;
		gap: 0.75rem 1rem;
		flex-wrap: nowrap;
	}

	.mgs-header__contacts {
		order: 2;
		flex-direction: column;
		align-items: flex-end;
		gap: 0.25rem;
	}

	.mgs-header__contacts li {
		margin-inline: 0;
	}

	.mgs-header__contacts a {
		font-size: 12px;
		gap: 0.35rem;
	}

	.mgs-header__nav-inner {
		flex-wrap: wrap;
		min-height: 48px;
	}

	.mgs-nav {
		width: 100%;
		order: 3;
		margin-left: 0;
		display: contents;
	}

	.mgs-nav__toggle {
		display: inline-flex;
		order: 1;
	}

	.mgs-search-wrap {
		order: 2;
		margin-left: auto;
	}

	.mgs-nav__list {
		display: none !important;
		order: 3;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 0.5rem 0 1rem;
		flex: 1 0 100%;
	}

	.mgs-nav__list.is-open {
		display: flex !important;
	}

	.mgs-nav__list > li > a {
		white-space: normal;
	}

	.mgs-nav__list > li > a::after {
		display: none;
	}

	.mgs-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.mgs-footer__cta-list {
		gap: 0 24px;
	}
}

@media (max-width: 640px) {
	.mgs-footer__grid {
		grid-template-columns: 1fr;
	}

	.mgs-header__contacts {
		width: 100%;
	}

	.mgs-header__contacts a span:last-child {
		overflow-wrap: anywhere;
	}

	.mgs-footer__social-wrap {
		width: 100%;
		justify-content: space-between;
	}

	.mgs-footer__cta-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.mgs-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Keep search as a full-width bar directly under the header */
	.mgs-search-panel {
		left: 0;
		right: 0;
		border-radius: 0;
	}

	body.mgs-search-open::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(29, 82, 88, 0.22);
		z-index: 450;
		pointer-events: none;
	}

	.mgs-wp__inner {
		padding-block: 2.25rem;
	}

	.mgs-wp__title {
		font-size: 1.65rem;
	}

	.mgs-wp__search {
		flex-direction: column;
	}

	.mgs-wp__search button {
		width: 100%;
	}
}

/* ========== GLOBAL READABILITY (kit secondary was light gray) ========== */
body,
.elementor-kit-7 {
	color: var(--mgs-text);
	font-family: var(--mgs-font);
}

.elementor-kit-7 {
	--e-global-color-text: #444444;
}

/* Content area: never inherit near-white body text */
#content.site-main,
#content .page-content,
#content .elementor,
.mgs-wp {
	color: var(--mgs-text);
}

#content a:not(.elementor-button):not(.mgs-wp__btn) {
	color: var(--mgs-teal-deep);
}

#content a:not(.elementor-button):not(.mgs-wp__btn):hover {
	color: var(--mgs-purple);
}

/*
 * Elementor kit sets `.elementor-kit-7 a { color: teal }` which beats
 * `.elementor-button { color: #fff }` and makes filled CTAs unreadable.
 * Keep specificity below per-widget Elementor button color rules so
 * outline/light buttons (e.g. white bg + teal text) still work.
 */
.elementor-kit-7 .elementor-button {
	color: #ffffff;
}

/* Keep footer / teal CTA text light */
.mgs-footer,
.mgs-footer a,
.mgs-footer__cta a {
	color: inherit;
}

.mgs-footer__cta-list a {
	color: var(--mgs-white);
}

.mgs-footer__menu a {
	color: var(--mgs-cyan);
}

.mgs-footer__contact,
.mgs-footer__contact a {
	color: var(--mgs-text-soft);
}

/* ========== STANDARD WP TEMPLATES ========== */
.mgs-wp {
	background: linear-gradient(180deg, #f4fafb 0%, #ffffff 42%);
	font-family: var(--mgs-font);
}

.mgs-wp__inner {
	width: min(100% - 2rem, 820px);
	margin-inline: auto;
	padding-block: 3rem 4rem;
}

.mgs-wp--archive .mgs-wp__inner,
.mgs-wp--search .mgs-wp__inner {
	width: min(100% - 2rem, 920px);
}

.mgs-wp__eyebrow {
	margin: 0 0 0.5rem;
	color: var(--mgs-teal);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mgs-wp__title {
	margin: 0 0 1rem;
	color: var(--mgs-teal-deep);
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	font-weight: 600;
	line-height: 1.25;
}

.mgs-wp__title span {
	color: var(--mgs-purple);
}

.mgs-wp__lead {
	margin: 0 0 1.5rem;
	color: #555;
	font-size: 1.05rem;
	line-height: 1.65;
	max-width: 42rem;
}

.mgs-wp__header {
	margin-bottom: 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 2px solid rgba(64, 167, 180, 0.25);
}

.mgs-wp__search {
	display: flex;
	gap: 0.6rem;
	margin: 1.25rem 0 0;
}

.mgs-wp__search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid rgba(29, 82, 88, 0.22);
	border-radius: 4px;
	padding: 0.7rem 0.85rem;
	font: inherit;
	color: var(--mgs-text);
	background: #fff;
}

.mgs-wp__search input[type="search"]:focus {
	outline: 2px solid var(--mgs-teal);
	outline-offset: 1px;
	border-color: var(--mgs-teal);
}

.mgs-wp__search button,
.mgs-wp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 4px;
	padding: 0.7rem 1.1rem;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.mgs-wp__search button,
.mgs-wp__btn--primary {
	background: var(--mgs-teal);
	color: #fff !important;
}

.mgs-wp__search button:hover,
.mgs-wp__btn--primary:hover {
	background: var(--mgs-teal-deep);
	color: #fff !important;
}

.mgs-wp__btn--ghost {
	background: transparent;
	color: var(--mgs-teal-deep) !important;
	border: 1px solid var(--mgs-teal);
}

.mgs-wp__btn--ghost:hover {
	background: var(--mgs-teal);
	color: #fff !important;
}

.mgs-wp__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.mgs-wp__results {
	display: grid;
	gap: 1.25rem;
}

.mgs-wp__card {
	background: #fff;
	border: 1px solid rgba(29, 82, 88, 0.12);
	border-radius: 8px;
	padding: 1.25rem 1.35rem;
	box-shadow: 0 6px 18px rgba(29, 82, 88, 0.05);
}

.mgs-wp__card-title {
	margin: 0 0 0.65rem;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.35;
}

.mgs-wp__card-title a {
	color: var(--mgs-teal-deep) !important;
	text-decoration: none;
}

.mgs-wp__card-title a:hover {
	color: var(--mgs-purple) !important;
}

.mgs-wp__thumb {
	display: block;
	margin: 0 0 0.85rem;
	overflow: hidden;
	border-radius: 6px;
}

.mgs-wp__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.mgs-wp__excerpt {
	color: #555;
	line-height: 1.6;
	font-size: 0.98rem;
}

.mgs-wp__excerpt p:last-child {
	margin-bottom: 0;
}

.mgs-wp__more {
	display: inline-block;
	margin-top: 0.75rem;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--mgs-teal) !important;
	text-decoration: none;
}

.mgs-wp__more:hover {
	color: var(--mgs-purple) !important;
}

.mgs-wp__empty {
	padding: 1.5rem;
	background: #fff;
	border: 1px dashed rgba(29, 82, 88, 0.25);
	border-radius: 8px;
}

.mgs-wp__pagination {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(29, 82, 88, 0.12);
}

.mgs-wp__pagination a {
	font-weight: 600;
	text-decoration: none;
}

.mgs-wp__content,
.mgs-wp--single .page-content {
	line-height: 1.7;
	font-size: 1.02rem;
}

.mgs-wp__content h2,
.mgs-wp__content h3,
.mgs-wp--single .page-content h2,
.mgs-wp--single .page-content h3 {
	color: var(--mgs-teal-deep);
	margin-top: 1.75rem;
}

.mgs-wp__content p,
.mgs-wp--single .page-content p {
	margin-bottom: 1rem;
}

.mgs-wp__tags {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(29, 82, 88, 0.12);
	font-size: 0.92rem;
	color: #666;
}

/* Elementor pages: full width — do not box to 920px */
.site-main > .page-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Classic Hello page-header fallback (non-Elementor archives etc.) */
.site-main > .page-header {
	width: min(100% - 2rem, 920px);
	margin-inline: auto;
	padding-top: 2.5rem;
}

.site-main .entry-title {
	color: var(--mgs-teal-deep);
	font-family: var(--mgs-font);
}

.site-main .post {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(29, 82, 88, 0.1);
}

.site-main .pagination {
	width: min(100% - 2rem, 920px);
	margin: 0 auto 3rem;
}

/* Comments */
.comments-area {
	width: min(100% - 2rem, 820px);
	margin: 0 auto 3rem;
	color: var(--mgs-text);
}

.comments-area .comment-reply-title,
.comments-area .comments-title {
	color: var(--mgs-teal-deep);
}

/* Forms inside content */
#content input[type="text"],
#content input[type="email"],
#content input[type="url"],
#content input[type="tel"],
#content input[type="number"],
#content textarea,
#content select {
	max-width: 100%;
	border: 1px solid rgba(29, 82, 88, 0.22);
	border-radius: 4px;
	padding: 0.65rem 0.8rem;
	font-family: var(--mgs-font);
	color: var(--mgs-text);
	background: #fff;
}

#content button,
#content input[type="submit"] {
	font-family: var(--mgs-font);
}

/* ========== MOBILE HEADER POLISH ========== */
@media (max-width: 960px) {
	body.mgs-nav-open {
		overflow: hidden;
	}

	.mgs-header__top-inner {
		align-items: center;
	}

	.mgs-header__nav-bar {
		position: relative;
		z-index: 130;
	}

	.mgs-nav__list.is-open {
		background: #fff;
		border-top: 1px solid rgba(29, 82, 88, 0.1);
		margin-top: 0.35rem;
		padding: 0.35rem 0 0.85rem;
		max-height: min(70vh, 480px);
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	.mgs-nav__list > li > a {
		padding: 0.85rem 0.35rem;
		border-bottom: 1px solid rgba(29, 82, 88, 0.08);
		font-size: 15px;
	}

	.mgs-footer__cta-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.55rem;
		width: 100%;
	}

	.mgs-footer__cta-list a {
		padding: 0.15rem 0;
	}

	.mgs-footer__main {
		padding-top: 36px;
	}

	.mgs-footer__brand {
		font-size: 24px;
	}

	/* Elementor sections: reduce cramped padding on phones */
	.elementor-section.elementor-section-boxed > .elementor-container {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.mgs-header__contacts li:last-child {
		display: none; /* email: save space; phone stays */
	}

	.mgs-header__logo img {
		width: 88px;
	}

	.mgs-container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.elementor-button {
		white-space: normal !important;
		line-height: 1.25 !important;
		padding-inline: 14px !important;
	}

	.elementor-widget-button .elementor-button-content-wrapper {
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.25rem;
	}
}

/* ========== Blog cards (kavakerp Elementor Pro posts.cards, free stack) ========== */
.elementor-element-3ce5bf0 .elementor-element-d15616a {
	align-self: center !important;
	width: auto !important;
	max-width: 100%;
}

.elementor-element-3ce5bf0 .elementor-element-d15616a .elementor-icon-box-wrapper {
	justify-content: center;
}

.elementor-element-44bcb1a .mgs-posts.elementor-posts--skin-cards,
.mgs-posts.elementor-posts--skin-cards {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px;
	width: 100%;
}

.mgs-posts .elementor-post {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mgs-posts .elementor-post__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mgs-posts .elementor-post__card:hover {
	box-shadow: 0 6px 22px rgba(29, 82, 88, 0.18);
	transform: translateY(-2px);
}

.mgs-posts .elementor-post__thumbnail__link {
	display: block;
	position: relative;
	overflow: hidden;
}

.mgs-posts .elementor-post__thumbnail {
	position: relative;
	width: 100%;
	padding-bottom: 50%;
	overflow: hidden;
	background: #e8eef0;
}

.mgs-posts .elementor-post__thumbnail img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.mgs-posts .elementor-post__card:hover .elementor-post__thumbnail img {
	transform: scale(1.04);
}

.mgs-posts .elementor-post__text {
	padding: 22px 30px 10px;
	flex: 1 1 auto;
}

.mgs-posts .elementor-post__title {
	margin: 0 0 10px;
	font-family: var(--mgs-font);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

.mgs-posts .elementor-post__title a,
.mgs-posts .elementor-post__title a:visited {
	color: #40a7b4 !important;
	text-decoration: none;
}

.mgs-posts .elementor-post__title a:hover,
.mgs-posts .elementor-post__title a:focus {
	color: #1d5258 !important;
}

.mgs-posts .elementor-post__excerpt {
	margin: 0 0 14px;
	color: #777777 !important;
	font-size: 15px;
	line-height: 1.55;
}

.mgs-posts .elementor-post__excerpt p {
	margin: 0;
	color: inherit !important;
}

.mgs-posts .elementor-post__read-more,
.mgs-posts .elementor-post__read-more:visited {
	display: inline-block;
	color: #91007b !important;
	font-family: var(--mgs-font);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.mgs-posts .elementor-post__read-more:hover,
.mgs-posts .elementor-post__read-more:focus {
	color: #1d5258 !important;
}

.mgs-posts .elementor-post__meta-data {
	padding: 15px 30px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	color: #999999;
	font-family: "Roboto Slab", "Roboto", serif;
	font-size: 12px;
	line-height: 1.4;
}

.mgs-posts-empty {
	text-align: center;
	color: var(--mgs-text);
	margin: 1.5rem 0;
}

@media (max-width: 1024px) {
	.elementor-element-44bcb1a .mgs-posts.elementor-posts--skin-cards,
	.mgs-posts.elementor-posts--skin-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.elementor-element-44bcb1a .mgs-posts.elementor-posts--skin-cards,
	.mgs-posts.elementor-posts--skin-cards {
		grid-template-columns: 1fr;
	}

	.mgs-posts .elementor-post__text {
		padding: 18px 20px 8px;
	}

	.mgs-posts .elementor-post__meta-data {
		padding: 12px 20px;
	}
}

/* ========== Feedback (kavakerp layout + synced photo slider) ========== */
.elementor-element-33c0e52 > .e-con-inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.elementor-element-33c0e52 .elementor-element-4e4ce46 {
	flex: 0 0 266px;
	width: 266px;
	max-width: 28%;
}

/* Static decorative photo replaced by per-slide avatars */
.elementor-element-33c0e52 .elementor-element-dfd8d6b {
	display: none !important;
}

.elementor-element-33c0e52,
.elementor-element-33c0e52 > .e-con-inner,
.elementor-element-33c0e52 .elementor-element-ce67579,
.elementor-element-33c0e52 .elementor-element-ce67579 .elementor-widget-container,
.elementor-element-33c0e52 .elementor-element-mgsrev01 {
	overflow: visible !important;
}

.elementor-element-33c0e52 .elementor-element-ce67579 {
	flex: 1 1 auto;
	width: auto;
	max-width: none;
	min-width: 0;
	position: relative;
}

.elementor-element-33c0e52 .elementor-element-61a1527 .elementor-heading-title {
	font-size: clamp(2rem, 3vw, 2.75rem);
	font-weight: 700;
	color: #242424;
	line-height: 1.15;
}

.elementor-element-33c0e52 .elementor-element-387f9e8 {
	color: #777777;
	font-size: 15px;
	line-height: 1.55;
}

.elementor-element-33c0e52 .elementor-element-5637549 .elementor-heading-title {
	font-size: 41px;
	font-weight: 700;
	color: #242424;
	line-height: 1;
}

.elementor-element-33c0e52 .elementor-element-2621018 {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 16px;
	margin-top: 0.35rem;
}

.elementor-element-33c0e52 .elementor-element-694aa6b {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start;
	gap: 4px;
	border-left: 1px solid rgba(0, 0, 0, 0.12);
	padding-left: 16px;
}

/* Replace old 4.8 half-star screenshot with five full stars */
.elementor-element-33c0e52 .elementor-element-9e72f88 img {
	display: none !important;
}

.elementor-element-33c0e52 .elementor-element-9e72f88 .elementor-widget-container::before {
	content: "★★★★★";
	display: block;
	color: #f5b301;
	font-size: 22px;
	line-height: 1;
	letter-spacing: 0.12em;
}

.elementor-element-33c0e52 .elementor-element-334f50a {
	color: #999999;
	font-size: 16px;
}

.mgs-reviews {
	position: relative;
	width: 100%;
	font-family: var(--mgs-font);
	padding: 0 52px;
	box-sizing: border-box;
	overflow: visible;
}

.mgs-reviews__viewport {
	position: relative;
	overflow: hidden;
	min-height: 260px;
}

.mgs-reviews__slide {
	display: flex;
	align-items: center;
	gap: 28px;
	animation: mgs-review-in 0.4s ease;
}

.mgs-reviews__slide[hidden] {
	display: none !important;
}

@keyframes mgs-review-in {
	from {
		opacity: 0;
		transform: translateX(14px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.mgs-reviews__media {
	position: relative;
	flex: 0 0 220px;
	width: 220px;
	height: 220px;
}

.mgs-reviews__ring {
	position: absolute;
	inset: 8px 18px 18px 8px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 50%;
	pointer-events: none;
}

.mgs-reviews__photo {
	position: absolute;
	inset: 18px 8px 8px 18px;
	border-radius: 50%;
	overflow: hidden;
	background: #e8eef0;
	box-shadow: 0 8px 24px rgba(29, 82, 88, 0.12);
}

.mgs-reviews__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mgs-reviews__badge {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--mgs-teal);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1;
	box-shadow: 0 4px 12px rgba(64, 167, 180, 0.35);
	z-index: 2;
}

.mgs-reviews__content {
	flex: 1 1 auto;
	min-width: 0;
}

.mgs-reviews__quote {
	margin: 0 0 1.1rem;
	padding: 0;
	border: 0;
}

.mgs-reviews__quote p {
	margin: 0;
	color: #444444;
	font-size: 22px;
	font-weight: 600;
	line-height: 34px;
}

.mgs-reviews__name {
	margin: 0 0 0.35rem;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.15;
	color: #000000;
}

.mgs-reviews__role {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--mgs-purple);
}

/* Side arrows: vertically centered left / right of slider */
.mgs-reviews__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(64, 167, 180, 0.45);
	background: #fff;
	color: var(--mgs-teal-deep);
	border-radius: 50%;
	font-size: 1.65rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(29, 82, 88, 0.12);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mgs-reviews__nav--prev {
	left: 0;
}

.mgs-reviews__nav--next {
	right: 0;
}

.mgs-reviews__nav:hover,
.mgs-reviews__nav:focus {
	background: var(--mgs-teal);
	border-color: var(--mgs-teal);
	color: #fff;
	outline: none;
	box-shadow: 0 6px 18px rgba(64, 167, 180, 0.28);
}

.mgs-reviews__dots {
	display: flex;
	gap: 0.4rem;
	align-items: center;
	justify-content: center;
	margin-top: 1.15rem;
}

.mgs-reviews__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(29, 82, 88, 0.2);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.mgs-reviews__dot.is-active {
	background: var(--mgs-teal);
	transform: scale(1.15);
}

@media (max-width: 1024px) {
	.elementor-element-33c0e52 > .e-con-inner {
		flex-wrap: wrap;
		justify-content: center;
	}

	.elementor-element-33c0e52 .elementor-element-4e4ce46,
	.elementor-element-33c0e52 .elementor-element-ce67579 {
		flex: 1 1 100%;
		width: 100%;
		max-width: 640px;
	}

	.mgs-reviews__slide {
		flex-direction: column;
		text-align: center;
		gap: 1.25rem;
	}

	.mgs-reviews__quote p,
	.mgs-reviews__name {
		font-size: 18px;
		line-height: 1.45;
	}

	.mgs-reviews__viewport {
		min-height: 0;
	}
}

@media (max-width: 767px) {
	.elementor-element-33c0e52 .elementor-element-2621018 {
		justify-content: flex-start;
	}

	.mgs-reviews {
		padding: 0 40px;
	}

	.mgs-reviews__media {
		flex-basis: 180px;
		width: 180px;
		height: 180px;
	}

	.mgs-reviews__nav {
		width: 36px;
		height: 36px;
		font-size: 1.4rem;
	}
}

/* ========== Contact Form 7 (Kontakt section) ========== */
.elementor-element-dab95b5 {
	width: 100%;
}

.elementor-element-dab95b5 .elementor-widget-container {
	padding: 1.5rem 1.25rem;
}

.mgs-cf7 {
	font-family: var(--mgs-font);
	color: var(--mgs-text);
}

.mgs-cf7__row {
	display: grid;
	gap: 0.85rem;
	margin-bottom: 0.15rem;
}

.mgs-cf7__row--2 {
	grid-template-columns: 1fr 1fr;
}

.mgs-cf7__field {
	margin: 0 0 0.85rem;
}

.mgs-cf7__field label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 13px;
	font-weight: 600;
	color: #333333;
}

.mgs-cf7 .wpcf7-form-control-wrap {
	display: block;
}

.mgs-cf7 input.wpcf7-form-control,
.mgs-cf7 textarea.wpcf7-form-control,
.mgs-cf7 select.wpcf7-form-control {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(29, 82, 88, 0.18);
	border-radius: 8px;
	background: #f7fbfc;
	color: #333333;
	font-family: var(--mgs-font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	padding: 0.7rem 0.85rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mgs-cf7 textarea.wpcf7-form-control {
	min-height: 120px;
	resize: vertical;
}

.mgs-cf7 input.wpcf7-form-control:focus,
.mgs-cf7 textarea.wpcf7-form-control:focus,
.mgs-cf7 select.wpcf7-form-control:focus {
	outline: none;
	border-color: var(--mgs-teal);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(64, 167, 180, 0.18);
}

.mgs-cf7__consent {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	color: #666666;
}

.mgs-cf7__consent .wpcf7-list-item {
	margin: 0;
}

.mgs-cf7__consent .wpcf7-list-item label {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 400;
	font-size: 12px;
	color: #666666;
}

.mgs-cf7__consent a {
	color: var(--mgs-teal-deep);
	text-decoration: underline;
}

.mgs-cf7__submit {
	margin: 1rem 0 0;
}

.mgs-cf7 input.wpcf7-submit {
	appearance: none;
	border: 0;
	border-radius: 50px;
	background: var(--mgs-teal);
	color: #fff !important;
	font-family: var(--mgs-font);
	font-size: 15px;
	font-weight: 600;
	padding: 0.85rem 1.6rem;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	width: auto;
	min-width: 180px;
}

.mgs-cf7 input.wpcf7-submit:hover,
.mgs-cf7 input.wpcf7-submit:focus {
	background: var(--mgs-teal-deep);
	outline: none;
}

.mgs-cf7 .wpcf7-not-valid-tip {
	font-size: 12px;
	color: #c0392b;
	margin-top: 0.25rem;
}

.mgs-cf7 .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.75rem 0.9rem;
	border-radius: 8px;
	font-size: 14px;
}

.mgs-cf7 .wpcf7-mail-sent-ok,
.mgs-cf7 form.sent .wpcf7-response-output {
	border-color: var(--mgs-teal);
	background: rgba(64, 167, 180, 0.08);
	color: var(--mgs-teal-deep);
}

@media (max-width: 767px) {
	.mgs-cf7__row--2 {
		grid-template-columns: 1fr;
	}

	.elementor-element-dab95b5 .elementor-widget-container {
		padding: 1rem 0.5rem;
	}

	.mgs-cf7 input.wpcf7-submit {
		width: 100%;
	}
}

/* ========== SITE-WIDE RESPONSIVE / UI UX ========== */
html {
	overflow-x: clip;
	scroll-behavior: smooth;
}

body {
	overflow-x: clip;
}

#content img,
#content video,
#content iframe,
#content embed,
#content object,
.mgs-wp img,
.mgs-wp video,
.mgs-wp iframe {
	max-width: 100%;
	height: auto;
}

#content iframe,
.mgs-wp iframe {
	width: 100%;
}

#content table,
.mgs-wp table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

#content pre,
.mgs-wp pre {
	max-width: 100%;
	overflow-x: auto;
}

/* Elementor: prevent flex children from forcing horizontal scroll */
#content .e-con,
#content .elementor-section,
#content .elementor-column,
#content .elementor-widget {
	min-width: 0;
	max-width: 100%;
}

#content .elementor-widget-container {
	max-width: 100%;
}

/* Contact card: stack info + form cleanly */
.elementor-element-fb61560 > .e-con-inner {
	gap: 0;
}

.elementor-element-5995901,
.elementor-element-48c578f {
	border-radius: 16px;
}

.elementor-element-48c578f {
	background: #ffffff;
}

@media (max-width: 1024px) {
	#content .e-con.e-parent > .e-con-inner {
		row-gap: 1.25rem;
	}

	#content .elementor-icon-list-items {
		justify-content: flex-start;
	}

	.mgs-posts .elementor-post__text {
		padding: 18px 20px 10px;
	}

	.mgs-posts .elementor-post__meta-data {
		padding: 12px 20px;
	}

	.mgs-posts .elementor-post__title {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	/* Stack Elementor columns full-width on phones */
	#content .e-con.e-parent > .e-con-inner > .e-con,
	#content .e-con.e-parent > .e-con {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100% !important;
	}

	/* Compact vertical rhythm — less empty space */
	#content {
		--widgets-spacing: 10px 10px;
	}

	#content .e-con.e-parent > .e-con-inner,
	#content .elementor-section > .elementor-container {
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

	#content .e-con.e-parent > .e-con-inner {
		padding-top: 20px !important;
		padding-bottom: 20px !important;
		row-gap: 12px !important;
		gap: 12px !important;
	}

	#content .e-con.e-parent,
	#content .e-con.e-parent > .e-con-inner {
		min-height: 0 !important;
	}

	#content .elementor-widget:not(:last-child) {
		margin-bottom: 0 !important;
	}

	#content .elementor-heading-title {
		margin-bottom: 0.35em !important;
	}

	#content .elementor-widget-text-editor p {
		margin-bottom: 0.65em;
	}

	#content .elementor-widget-text-editor p:last-child {
		margin-bottom: 0;
	}

	#content .elementor-heading-title {
		word-wrap: break-word;
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	#content .elementor-widget-text-editor,
	#content .elementor-widget-theme-post-content {
		font-size: 15px;
		line-height: 1.65;
	}

	#content .elementor-button-wrapper {
		width: 100%;
	}

	#content .elementor-button {
		min-height: 44px;
		justify-content: center;
		text-align: center;
	}

	#content .elementor-widget-button .elementor-button {
		width: auto;
		max-width: 100%;
	}

	/* Hero / intro cards: use available width, less empty air */
	#content .elementor-element-21bbbb9,
	#content .elementor-element-c21598d {
		width: 100% !important;
		max-width: 100% !important;
	}

	#content .elementor-element-1bc4782 > .e-con-inner {
		padding-top: 16px !important;
		padding-bottom: 16px !important;
	}

	#content .elementor-element-21bbbb9 {
		padding: 1rem 0.95rem !important;
	}

	#content .elementor-element-21bbbb9 .elementor-widget-icon-box .elementor-icon-box-wrapper {
		margin-bottom: 0;
	}

	#content .elementor-icon-list-item {
		padding-block: 2px;
	}

	#content .elementor-widget-button {
		margin-top: 0.15rem;
	}

	/* Contact block */
	.elementor-element-fb61560 > .e-con-inner {
		padding-left: 10px !important;
		padding-right: 10px !important;
		padding-top: 16px !important;
		padding-bottom: 16px !important;
		gap: 10px;
	}

	.elementor-element-5995901,
	.elementor-element-48c578f {
		border-radius: 12px;
	}

	.elementor-element-5995901 {
		padding: 1.15rem 1rem !important;
	}

	.elementor-element-dab95b5 .elementor-widget-container {
		padding: 0.85rem 0.65rem;
	}

	.mgs-cf7__field {
		margin-bottom: 0.65rem;
	}

	.mgs-cf7 textarea.wpcf7-form-control {
		min-height: 96px;
	}

	.mgs-cf7__consent .wpcf7-list-item label {
		font-size: 12.5px;
		line-height: 1.5;
	}

	/* Reviews: keep nav clear of content */
	.mgs-reviews {
		padding: 0 40px;
		margin-top: 0.25rem;
	}

	.mgs-reviews__media {
		flex-basis: 140px;
		width: 140px;
		height: 140px;
	}

	.mgs-reviews__quote p {
		font-size: 15px;
		line-height: 1.45;
	}

	.mgs-reviews__slide {
		gap: 0.85rem;
	}

	.mgs-posts.elementor-posts--skin-cards {
		gap: 14px;
	}

	.mgs-posts .elementor-post__text {
		padding: 14px 16px 8px;
	}

	.mgs-posts .elementor-post__meta-data {
		padding: 10px 16px;
	}

	/* Compact header — more content above the fold */
	.mgs-header__top {
		padding: 6px 0;
	}

	.mgs-header__logo {
		padding: 4px 6px;
	}

	.mgs-header__logo img {
		width: 82px;
	}

	.mgs-header__nav-bar {
		border-bottom-width: 6px;
	}

	.mgs-header__nav-inner {
		min-height: 44px;
		gap: 0.5rem;
	}

	.mgs-nav__toggle,
	.mgs-search {
		min-width: 40px;
		min-height: 40px;
	}

	.mgs-search {
		width: 40px;
		height: 40px;
	}

	.mgs-nav__list > li > a {
		padding: 0.7rem 0.25rem;
	}

	/* Standard WP / legal / blog readability */
	.mgs-wp__inner {
		width: min(100% - 1.5rem, 820px);
		padding-block: 1.75rem 2.5rem;
	}

	.mgs-wp__content,
	.mgs-wp--single .page-content,
	.site-main .page-content,
	.site-main .entry-content {
		font-size: 15.5px;
		line-height: 1.7;
	}

	.mgs-wp__content h2,
	.mgs-wp--single .page-content h2,
	.site-main .entry-content h2 {
		font-size: 1.35rem;
		line-height: 1.3;
		margin-top: 1.5rem;
	}

	.mgs-wp__content h3,
	.mgs-wp--single .page-content h3,
	.site-main .entry-content h3 {
		font-size: 1.15rem;
		line-height: 1.35;
	}

	.comments-area {
		width: min(100% - 1.5rem, 820px);
		margin-bottom: 2rem;
	}

	.site-main > .page-header {
		width: min(100% - 1.5rem, 920px);
		padding-top: 1.5rem;
	}
}

@media (max-width: 480px) {
	#content .e-con.e-parent > .e-con-inner,
	#content .elementor-section > .elementor-container {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	#content .elementor-button-wrapper {
		display: flex;
		justify-content: center;
	}

	#content .elementor-widget-button .elementor-button {
		width: 100%;
	}

	/* Stack button groups vertically when tight */
	#content .elementor-widget-button + .elementor-widget-button {
		margin-top: 0.35rem;
	}

	.mgs-header__contacts a {
		font-size: 11.5px;
	}

	.mgs-reviews {
		padding: 0 36px;
	}

	.mgs-reviews__nav {
		width: 34px;
		height: 34px;
		font-size: 1.25rem;
	}

	.elementor-element-5995901 {
		padding: 1.25rem 1rem !important;
		text-align: left;
	}
}

/* Tablet: keep two-up layouts breathing room */
@media (min-width: 768px) and (max-width: 1024px) {
	#content .e-con.e-parent > .e-con-inner {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	.elementor-element-fb61560 > .e-con-inner {
		gap: 16px;
	}

	.mgs-cf7__row--2 {
		grid-template-columns: 1fr 1fr;
	}
}

/* Touch-friendly focus states */
#content a:focus-visible,
#content button:focus-visible,
.mgs-nav__toggle:focus-visible,
.mgs-search-toggle:focus-visible,
.mgs-cf7 input:focus-visible,
.mgs-cf7 textarea:focus-visible,
.mgs-cf7 select:focus-visible {
	outline: 2px solid var(--mgs-teal);
	outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.mgs-posts .elementor-post__card,
	.mgs-posts .elementor-post__thumbnail img,
	.mgs-cf7 input.wpcf7-submit,
	.mgs-reviews__dot {
		transition: none !important;
	}
}
