/*
 * Loaded on every front-end page: bundled fonts and the sticky header fix.
 */

/* Bundled fonts (Elementor is told these are system fonts, so it will not load them from Google). */
@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(fonts/font-0.ttf) format('truetype');
}
@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(fonts/font-1.ttf) format('truetype');
}
@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(fonts/font-2.ttf) format('truetype');
}
@font-face {
	font-family: 'Fredoka';
	font-style: normal;
	font-weight: 400;
	font-stretch: normal;
	font-display: swap;
	src: url(fonts/font-3.ttf) format('truetype');
}
@font-face {
	font-family: 'Fredoka';
	font-style: normal;
	font-weight: 500;
	font-stretch: normal;
	font-display: swap;
	src: url(fonts/font-4.ttf) format('truetype');
}

/*
 * Sticky header offsets.
 *
 * The kit makes the Elementor header sticky at top: 0 and pushes it down by
 * 32px when the WordPress admin bar is showing. That 32px offset was never
 * reset on phones, so logged-in users saw a gap above the stuck header.
 *
 * WordPress core's admin bar is:
 *   - 32px tall and fixed above 782px,
 *   - 46px tall and fixed from 601px to 782px,
 *   - 46px tall but NOT fixed at 600px and below (it scrolls away).
 *
 * The header offset now follows those exact breakpoints. This file loads on
 * every front-end page, even when the mobile app menu is turned off.
 */
.elementor-location-header,
.ue-kit-header {
	position: sticky;
	top: 0;
	z-index: 9990;
}

body.admin-bar .elementor-location-header,
body.admin-bar .ue-kit-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .elementor-location-header,
	body.admin-bar .ue-kit-header {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	body.admin-bar .elementor-location-header,
	body.admin-bar .ue-kit-header {
		top: 0;
	}
}

/* A sticky child inside the sticky header must not add a second offset. */
.elementor-location-header .ue-kit-header {
	top: 0 !important;
}
