/* Elema — base.css
   Reset + tipografija + container + osnovni chrome (header/footer/menu).
   Komponente dizajn-sustava (.esb-*) dolaze iz Elema Site Builder plugina. */

:root {
	--elema-container: 1200px;
	--elema-gutter: 24px;
	--elema-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--elema-text: #1a1a1a;
	--elema-muted: #666;
	--elema-bg: #ffffff;
	--elema-accent: #111;
	--elema-border: #e5e5e5;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--elema-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--elema-text);
	background: var(--elema-bg);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }

/* Layout */
.elema-container {
	width: 100%;
	max-width: var(--elema-container);
	margin-inline: auto;
	padding-inline: var(--elema-gutter);
}

.elema-site-content { display: block; }

/* Front/page: puni ispis, Bakery stretch redovi trebaju full-width */
.elema-entry__content--full { width: 100%; }

/* Header */
.elema-site-header {
	border-bottom: 1px solid var(--elema-border);
	background: var(--elema-bg);
}
.elema-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--elema-gutter);
	min-height: 68px;
}
.elema-site-title { font-weight: 800; font-size: 1.2rem; text-decoration: none; }

/* Menu */
.elema-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.elema-menu a { text-decoration: none; color: var(--elema-text); }
.elema-menu a:hover { color: var(--elema-muted); }
.elema-menu--footer { justify-content: center; }

/* Footer */
.elema-site-footer {
	border-top: 1px solid var(--elema-border);
	margin-top: 4rem;
	padding-block: 2rem;
	color: var(--elema-muted);
	font-size: 0.9rem;
}
.elema-site-footer__inner { text-align: center; }
.elema-copyright { margin: 1rem 0 0; }

/* Main (ne-front stranice) */
.elema-main { padding-block: 3rem; }
.elema-entry__title { margin-bottom: 1.5rem; }

/* Search form */
.elema-search-form { display: flex; gap: 0.5rem; max-width: 420px; }
.elema-search-form__field {
	flex: 1;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--elema-border);
	border-radius: 6px;
	font: inherit;
}
.elema-search-form__submit {
	padding: 0.6rem 1rem;
	border: 0;
	border-radius: 6px;
	background: var(--elema-accent);
	color: #fff;
	cursor: pointer;
	font: inherit;
}

/* A11y */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.elema-skip-link:focus {
	position: fixed;
	top: 8px; left: 8px;
	width: auto; height: auto;
	clip: auto;
	padding: 0.6rem 1rem;
	background: #fff;
	z-index: 100000;
}

@media (max-width: 640px) {
	.elema-site-header__inner { flex-direction: column; align-items: flex-start; }
}
