/*
 * Yaghoot Kavir — Elementor compatibility layer.
 * Converted design sections carry the class "yk-c". Elementor's container
 * defaults (flex, padding, gap, position…) are reset for them so the design
 * stylesheet alone decides their layout — exactly like the original HTML.
 * Containers you add yourself in Elementor (without "yk-c") behave normally.
 */

.yk-c.e-con {
	--flex-direction: row;
	--flex-wrap: nowrap;
	--justify-content: normal;
	--align-items: normal;
	--align-content: normal;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--margin-top: 0px;
	--margin-right: 0px;
	--margin-bottom: 0px;
	--margin-left: 0px;
	--width: auto;
	--min-height: auto;
	--height: auto;
	--position: static;
	--z-index: auto;
	--overflow: visible;
	--flex-grow: 0;
	--flex-shrink: 1;
	--flex-basis: auto;
	--container-widget-width: auto;
	--container-widget-flex-grow: 0;
	--background-overlay: none;
	min-width: auto;
	text-align: inherit;
	transition: none;
}
/* Elementor writes "--display:flex" for every container; restore normal flow. */
:root:root .yk-c.e-con { --display: block; }
:root:root :is(a, span, label, b, strong, small, i, em).yk-c.e-con { --display: inline; }
:root:root li.yk-c.e-con { --display: list-item; }
:root:root .page.yk-c.e-con:not(.active) { --display: none; }

/* Elementor's container overlay pseudo-element must not disturb design pseudo-elements. */
.yk-c.e-con::before {
	display: inline;
	position: static;
	mix-blend-mode: normal;
	opacity: 1;
	transition: none;
	border-radius: 0;
	border-style: none;
	border-width: 0;
	top: auto;
	left: auto;
	width: auto;
	height: auto;
}

/* Design pages are full width; Elementor must not box them. */
:is(.elementor-section-wrap, [data-elementor-id]) > .yk-c.e-con { max-width: none; }

/* Custom logo image (when a logo is uploaded in the Customizer). */
.logo .yk-custom-logo { width: 43px; height: 43px; object-fit: contain; flex: 0 0 auto; }

/* Phone links keep the surrounding text style. */
.top a, footer p a { color: inherit; }

/* Contact form helpers */
.yk-form-notice { padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.yk-form-notice.is-success { background: rgba(7, 23, 59, .08); color: #07173b; }
.yk-form-notice.is-error { background: rgba(176, 32, 32, .08); color: #8a1c1c; }

/* Accessibility: skip link */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; right: 8px; z-index: 100000;
	padding: 10px 16px; background: #f4f4f4; color: #07173b; border-radius: 8px;
}

/* Plain (non-Elementor) pages and article body content */
.yk-entry > * + * { margin-top: 1em; }
.yk-entry img, .yk-mag-text img { height: auto; border-radius: 12px; }
.yk-mag-text h2, .yk-mag-text h3 { margin: 1.4em 0 .5em; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.nav-links .page-numbers { padding: 6px 14px; border: 1px solid rgba(7, 23, 59, .15); border-radius: 7px; }
.nav-links .current { background: #07173b; color: #f4f4f4; }

/* WordPress admin bar: keep the sticky header below it. */
body.admin-bar header { top: 32px; }
@media (max-width: 782px) { body.admin-bar header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar header { top: 0; } }
