/* Mille Medical – styles for the custom (non-WordPress) behaviour in main.js */

/* hero background slideshow: stacked slides, cross-fade */
.mm-slideshow { overflow: hidden; }
.mm-slideshow .elementor-background-slideshow__slide {
	position: absolute;
	inset: 0;
	overflow: hidden;
	opacity: 0;
	transition: opacity var(--mm-fade, 500ms) ease;
}
.mm-slideshow .elementor-background-slideshow__slide.is-active { opacity: 1; }

/* background parallax layer (positioned by main.js) */
.mm-parallax {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: -100;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
	pointer-events: none;
}
.mm-parallax__image {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	pointer-events: none;
	transform-style: preserve-3d;
	backface-visibility: hidden;
	will-change: transform;
}

/* ElementsKit "stylish list" base styles (Rólunk section check-list).
   On the WordPress site this stylesheet was never loaded (broken plugin dependency),
   so the list showed bullets and the icons sat on their own line. */
.ekit-wid-con .ekit-stylish-list { display: flex; flex-direction: column; list-style: none; }
.ekit-wid-con .ekit-stylish-list-content-wrapper { display: flex; position: relative; transition: all .3s ease-in-out; }
.ekit-wid-con .ekit-stylish-list-content { display: flex; width: 100%; justify-content: left; }
.ekit-wid-con .ekit-stylish-list-content-text { order: 5; display: flex; }
.ekit-wid-con .ekit-stylish-list-content-icon { order: 4; display: flex; justify-content: center; align-items: center; }
.ekit-wid-con .ekit-stylish-list-content-icon > i { transition: all .3s ease; }

/* in-page links stop below the sticky header (height set by main.js) */
html { scroll-padding-top: var(--mm-header-h, 0px); }

/* Szakrendeléseink – cards with care type and opening hours */
.mm-svc { flex-grow: 1; display: flex; flex-direction: column; }
.mm-svc > .ekit-wid-con,
.mm-svc .elementskit-infobox { height: 100%; }
.mm-svc .elementskit-info-box-title { margin-bottom: 4px; }
.mm-svc .box-body p { margin: 0; }
.mm-svc__sub { font-size: 14px; line-height: 1.5; opacity: .7; }
.mm-svc__time { margin-top: 14px !important; font-size: 14px; line-height: 1.55; }
.mm-svc__time span {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--e-global-color-primary);
}
.mm-svc--soon .elementskit-info-box-icon img { filter: grayscale(1); opacity: .45; }
.mm-svc--soon .elementskit-info-box-title { color: #9b9b96; }
.mm-svc .box-body .mm-svc__soon {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #9b9b96;
}
@media (min-width: 768px) and (max-width: 1024px) {
	.mm-svc-row--soon { flex-wrap: wrap; }
	.mm-svc-row--soon > .e-con { flex: 1 1 calc(50% - 15px); }
}

/* Elérhetőségeink – phone numbers */
.mm-phone-box a { color: inherit; text-decoration: none; }
.mm-phone-box a:hover { color: var(--e-global-color-primary); }
.mm-phone-box .box-body .mm-phones { margin-top: 10px; }
.mm-phones span,
.mm-phones-list span { opacity: .75; }
.mm-phones-list {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.75;
}
.mm-phones a,
.mm-phones-list a { white-space: nowrap; font-weight: 500; }

/* Elérhetőségeink – entrance photo */
.mm-entrance { margin: 6px 0 0; max-width: 560px; }
/* the "Írjon nekünk!" form box keeps its own height and stays in view
   (below the sticky header) while the longer contact column scrolls past */
@media (min-width: 1025px) {
	.elementor-23962 .elementor-element.elementor-element-8133cff {
		align-self: flex-start;
		position: sticky;
		top: calc(var(--mm-header-h, 97px) + 30px);
	}
}
.mm-entrance a { display: block; overflow: hidden; border-radius: var(--global-border-radius, 20px); cursor: zoom-in; }
.mm-entrance img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .5s ease;
}
.mm-entrance a:hover img { transform: scale(1.03); }
.mm-entrance figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; opacity: .75; }

/* photo gallery (Magnific Popup look) */
.mm-gallery-popup.mfp-ready.mfp-bg { opacity: .92; }
.mm-gallery-popup .mfp-image-holder .mfp-close {
	width: 44px;
	height: 44px;
	right: -6px;
	padding: 0;
	font: 400 40px/44px Arial, sans-serif;
	text-align: center;
	color: #fff;
	opacity: .8;
}
.mm-gallery-popup .mfp-image-holder .mfp-close:hover { opacity: 1; }
.mm-gallery-popup .mfp-counter { color: #ddd; font-size: 13px; }

/* contact form spam trap – invisible to people */
.mm-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
