/* MAGDIĆ DRVO Site – stilovi (boje prema logotipu: zelena 7EC702 / 52A402 / 2F8A01, siva 818484) */
:root {
	--mm-green: #2b7a00;
	--mm-green-dark: #1c5200;
	--mm-wood: #7ec702;
	--mm-light: #eef4e6;
	--mm-graphite: #3a3f41;
	--mm-radius: 12px;
}

/* Naslovnica: naslov stranice se ne prikazuje, jer hero ima vlastiti H1 */
.mm-home .hero-section,
.mm-home .entry-header,
.mm-home .page-title {
	display: none;
}

/* Ostale stranice plugina: naslov stranice vizualno skriven, ali ostaje u kodu (H1 za SEO i čitače zaslona) */
.mm-page:not(.mm-home) .hero-section {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.mm-page:not(.mm-home) .site-main > article,
.mm-page:not(.mm-home) main > article { padding-top: 40px; }

.mm-section { margin: 0 0 56px; }
.mm-section h2 { margin: 0 0 20px; color: var(--mm-green); }
.mm-lead-dark { font-size: 1.15em; line-height: 1.6; max-width: 70ch; margin-bottom: 28px; }
.mm-note { color: #5d6466; font-size: .95em; }

/* Hero */
.mm-hero {
	background: linear-gradient(135deg, var(--mm-green) 0%, var(--mm-green-dark) 100%);
	color: #fff;
	border-radius: var(--mm-radius);
	padding: clamp(36px, 8vw, 96px) clamp(20px, 5vw, 64px);
	margin: 0 0 56px;
}
.mm-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); line-height: 1.12; margin: 0 0 20px; max-width: 20ch; }
.mm-lead { font-size: clamp(16px, 2vw, 20px); line-height: 1.6; max-width: 62ch; margin: 0 0 28px; color: #eaf5dc; }
.mm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* Gumbi */
.mm-btn, button.mm-btn {
	display: inline-block;
	background: var(--mm-wood);
	color: #10200a;
	font-weight: 600;
	text-decoration: none;
	padding: 14px 26px;
	border: 2px solid var(--mm-wood);
	border-radius: 8px;
	cursor: pointer;
	line-height: 1.2;
	transition: background .15s, color .15s, border-color .15s;
}
.mm-btn:hover, .mm-btn:focus { background: #93d91f; border-color: #93d91f; color: #10200a; }
.mm-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--mm-graphite); }
.mm-btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.mm-btn-ghost:hover, .mm-btn-ghost:focus { background: #fff; border-color: #fff; color: var(--mm-green); }
.mm-btn-light { background: #fff; border-color: #fff; color: var(--mm-green); }
.mm-btn-light:hover, .mm-btn-light:focus { background: var(--mm-light); border-color: var(--mm-light); color: var(--mm-green); }
.mm-btn[disabled] { opacity: .6; cursor: progress; }

/* Kartice */
.mm-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .mm-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mm-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.mm-card, .mm-box {
	display: flex; flex-direction: column;
	background: var(--mm-light);
	border-radius: var(--mm-radius);
	border-top: 4px solid var(--mm-wood);
	padding: 24px;
	color: var(--mm-graphite);
	text-decoration: none;
}
.mm-card h3, .mm-box h3 { margin: 0 0 10px; font-size: 1.15em; color: var(--mm-green); }
.mm-card p, .mm-box p { margin: 0 0 14px; line-height: 1.55; }
.mm-card { transition: transform .15s, box-shadow .15s; }
.mm-card:hover, .mm-card:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
.mm-more { margin-top: auto; font-weight: 600; color: var(--mm-green); }

/* Poziv na suradnju */
.mm-cta {
	background: var(--mm-graphite);
	color: #fff;
	border-radius: var(--mm-radius);
	padding: clamp(28px, 5vw, 48px);
	margin: 0 0 56px;
	text-align: center;
}
.mm-cta h2 { color: #fff; margin: 0 0 12px; }
.mm-cta p { max-width: 60ch; margin: 0 auto 22px; color: #e3e6e8; }

/* Popis usluga */
.mm-points { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.mm-points li { padding-left: 28px; position: relative; }
.mm-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 3px; background: var(--mm-wood); }

/* ---------- Obrasci (upit / prijava) ---------- */
.mm-inquiry { margin: 0 0 80px; scroll-margin-top: 90px; }
/* rezerva: i ručno složen naslov u sekciji obrasca dobiva isti izgled kao ostale sekcije */
.mm-section#upit > h2 { margin: 0 0 14px; text-align: center; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; color: var(--mm-green); }
.mm-section#upit > h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--mm-wood); margin: 16px auto 0; }
.mm-section#upit > p { text-align: center; max-width: 62ch; margin: 0 auto 36px; color: #5d6466; font-size: 1.08em; line-height: 1.65; }
.mm-inquiry .mm-sec-head { margin-bottom: 36px; }

.mm-form {
	position: relative; overflow: hidden; box-sizing: border-box;
	max-width: none; width: 100%; margin: 0;
	background: #fff; border: 1px solid #e3ead9; border-radius: 20px;
	padding: clamp(24px, 4vw, 44px);
	box-shadow: 0 1px 2px rgba(20, 50, 10, .04), 0 14px 40px rgba(20, 50, 10, .09);
}
.mm-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #7ec702, #2b7a00); }

.mm-fields { display: grid; gap: 22px 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mm-fields { grid-template-columns: 1fr 1fr; } .mm-full { grid-column: 1 / -1; } }
.mm-fields > p { margin: 0; }

.mm-form label { display: block; font-weight: 600; font-size: .95em; line-height: 1.4; color: var(--mm-graphite); }
.mm-req { color: var(--mm-green); font-weight: 700; }

.mm-form input[type="text"], .mm-form input[type="email"], .mm-form input[type="tel"],
.mm-form input[type="file"], .mm-form select, .mm-form textarea {
	display: block; box-sizing: border-box; width: 100%; max-width: none; margin: 8px 0 0;
	height: auto; min-height: 52px; padding: 13px 16px;
	background: #f7faf2; color: var(--mm-graphite);
	border: 1.5px solid #d3dcc6; border-radius: 12px;
	font-size: 1rem; font-weight: 400; line-height: 1.4; box-shadow: none;
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.mm-form select {
	-webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 48px; text-overflow: ellipsis;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b7a00' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; background-size: 18px 18px;
}
.mm-form textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.mm-form input[type="file"] { padding: 11px 12px; cursor: pointer; }
.mm-form input[type="file"]::file-selector-button { margin-right: 14px; padding: 8px 16px; border: 0; border-radius: 8px; background: var(--mm-wood); color: #10200a; font-weight: 600; cursor: pointer; }
.mm-form input:hover, .mm-form select:hover, .mm-form textarea:hover { border-color: #b4c59d; }
.mm-form input:focus, .mm-form select:focus, .mm-form textarea:focus {
	outline: none; background-color: #fff; border-color: var(--mm-green);
	box-shadow: 0 0 0 4px rgba(126, 199, 2, .28);
}
.mm-form input:focus-visible, .mm-form select:focus-visible, .mm-form textarea:focus-visible { outline: none; }

.mm-consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .93em; line-height: 1.55; color: #4a5255; cursor: pointer; }
.mm-consent input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mm-green); cursor: pointer; }
.mm-consent a { color: var(--mm-green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mm-consent a:hover, .mm-consent a:focus { color: var(--mm-green-dark); }

.mm-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 8px; border-top: 1px solid #e8eedf; }
.mm-form .mm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 34px; border-radius: 12px; font-size: 1.05rem; box-shadow: 0 8px 18px rgba(126, 199, 2, .35); }
.mm-form .mm-btn svg { transition: transform .2s ease; }
.mm-form .mm-btn:hover svg, .mm-form .mm-btn:focus-visible svg { transform: translateX(5px); }
.mm-form .mm-btn:focus-visible { outline: 3px solid var(--mm-green); outline-offset: 3px; box-shadow: none; }
@media (max-width: 699px) { .mm-form .mm-btn { width: 100%; } }
.mm-form-note { margin: 0; font-size: .88em; color: #6b7376; }

.mm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mm-notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 12px; margin: 0 0 26px; font-weight: 600; line-height: 1.5; }
.mm-notice::before { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 14px; font-weight: 800; color: #fff; }
.mm-ok { background: #e6f4e8; color: #17402a; border: 1px solid #a9d3b4; }
.mm-ok::before { content: "\2713"; background: #2b7a00; }
.mm-err { background: #fbe9e6; color: #6b1d14; border: 1px solid #e5b0a8; }
.mm-err::before { content: "!"; background: #b3261e; }

@media (prefers-reduced-motion: reduce) {
	.mm-form input, .mm-form select, .mm-form textarea, .mm-form .mm-btn svg { transition: none; }
	.mm-form .mm-btn:hover svg { transform: none; }
}

/* Tablica ponude */
.mm-table-wrap { overflow-x: auto; }
.mm-table { width: 100%; border-collapse: collapse; background: #fff; }
.mm-table th { background: var(--mm-green); color: #fff; text-align: left; padding: 12px 14px; }
.mm-table td { padding: 12px 14px; border-bottom: 1px solid #d6dccb; }
.mm-table tr:nth-child(even) td { background: #f6f9f1; }

/* Natječaji */
.mm-job { background: var(--mm-light); border-radius: var(--mm-radius); padding: 22px; margin-bottom: 16px; }
.mm-job h3 { margin: 0 0 6px; color: var(--mm-green); }
.mm-job-meta { margin: 0 0 12px; color: #5d6466; font-size: .95em; }

/* Podaci o tvrtki */
.mm-data { display: grid; gap: 12px; margin: 0 0 8px; }
.mm-data > div { display: flex; flex-wrap: wrap; gap: 4px 16px; border-bottom: 1px solid #d6dccb; padding-bottom: 10px; }
.mm-data + .mm-data { margin-top: 36px; }
.mm-data dt { min-width: 140px; font-weight: 700; color: var(--mm-green); }
.mm-data dd { margin: 0; }

/* Prebacivač jezika */
.mm-lang { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.mm-lang a { display: inline-block; padding: 6px 10px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.mm-lang .is-current a { background: var(--mm-green); color: #fff; }
.mm-lang-item.current-menu-item > a { font-weight: 800; }
.mm-lang-item > a { text-transform: uppercase; letter-spacing: .03em; }
.mm-lang-item:first-of-type { margin-inline-start: 12px; }

@media (prefers-reduced-motion: reduce) {
	.mm-card, .mm-btn { transition: none; }
	.mm-card:hover { transform: none; }
}

/* Boje poveznica-gumba i kartica ne smiju ovisiti o postavkama teme */
a.mm-btn, a.mm-btn:visited { color: #10200a; }
a.mm-btn:hover, a.mm-btn:focus { color: #10200a; }
a.mm-btn-ghost, a.mm-btn-ghost:visited { color: #fff; }
a.mm-btn-ghost:hover, a.mm-btn-ghost:focus { color: var(--mm-green); }
a.mm-btn-light, a.mm-btn-light:visited, a.mm-btn-light:hover, a.mm-btn-light:focus { color: var(--mm-green); }
a.mm-card, a.mm-card:hover { color: var(--mm-graphite); }
.mm-hero h1, .mm-hero p, .mm-cta h2, .mm-cta p { color: #fff; }
.mm-hero .mm-lead { color: #eaf5dc; }
.mm-table th { color: #fff; }
.mm-lang .is-current a { color: #fff; }

/* ---------- Glavni izbornik (Blocksy zaglavlje) ---------- */
@media (min-width: 1000px) {
	header#header [data-row*="middle"] { --height: 88px; }
	header#header [data-id^="menu"] > ul { gap: 4px; }
	header#header [data-id^="menu"] > ul > li > a.ct-menu-link {
		padding: 0 16px;
		border-radius: 0;
		font-size: 15px;
		font-weight: 700;
		letter-spacing: .03em;
		color: #1f2b19;
		background: linear-gradient(var(--mm-wood), var(--mm-wood)) no-repeat 50% 100% / 0 4px;
		transition: background-size .25s ease, color .2s ease;
	}
	header#header [data-id^="menu"] > ul > li > a.ct-menu-link::after,
	header#header [data-id^="menu"] > ul > li > a.ct-menu-link::before { content: none !important; display: none !important; }
	header#header [data-id^="menu"] > ul > li:hover > a.ct-menu-link,
	header#header [data-id^="menu"] > ul > li > a.ct-menu-link:focus-visible,
	header#header [data-id^="menu"] > ul > li.ct-active > a.ct-menu-link { background-size: calc(100% - 32px) 4px; color: var(--mm-green); }
	header#header [data-id^="menu"] > ul > li.current-menu-item > a.ct-menu-link,
	header#header [data-id^="menu"] > ul > li.current-menu-ancestor > a.ct-menu-link,
	header#header [data-id^="menu"] > ul > li.current_page_item > a.ct-menu-link { background-size: calc(100% - 32px) 4px; color: var(--mm-green); }
	header#header [data-id^="menu"] .ct-toggle-dropdown-desktop { margin-inline-start: 6px; }

	/* Podizbornik: bijela kartica; hover svijetlozelena podloga s tamnozelenim tekstom */
	header#header [data-id^="menu"] .sub-menu {
		--dropdown-background-color: #fff;
		--dropdown-divider: none;
		--theme-link-initial-color: #1f2b19;
		--theme-link-hover-color: var(--mm-green-dark);
		background: #fff !important;
		border: 1px solid #e3ead8;
		border-radius: 16px !important;
		padding: 8px !important;
		box-shadow: 0 18px 44px rgba(20, 50, 10, .16), 0 2px 6px rgba(20, 50, 10, .06) !important;
		min-width: 300px;
	}
	header#header [data-id^="menu"] .sub-menu li { border: 0 !important; margin: 0; }
	header#header [data-id^="menu"] .sub-menu a.ct-menu-link {
		padding: 12px 16px !important;
		border-radius: 10px;
		font-size: 15px;
		font-weight: 600;
		letter-spacing: 0;
		text-transform: none;
		color: #1f2b19 !important;
		background: transparent;
		transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
	}
	header#header [data-id^="menu"] .sub-menu li:hover > a.ct-menu-link,
	header#header [data-id^="menu"] .sub-menu a.ct-menu-link:focus-visible {
		background: var(--mm-light) !important;
		color: var(--mm-green-dark) !important;
		padding-left: 22px !important;
	}
	header#header [data-id^="menu"] .sub-menu li.current-menu-item > a.ct-menu-link { background: var(--mm-light) !important; color: var(--mm-green) !important; }
}

/* ---------- Gornji pojas (top bar) ---------- */
.mm-topbar { position: relative; background: linear-gradient(90deg, #123600 0%, var(--mm-green-dark) 55%, #236400 100%); color: #fff; font-size: 13.5px; line-height: 1.4; }
.mm-topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--mm-wood), rgba(126, 199, 2, 0) 70%); }
.mm-topbar-in { width: min(1290px, 90%); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; padding: 0; }
.mm-topbar a { color: #fff; text-decoration: none; }
.mm-topbar-contact { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.mm-topbar-contact li { display: flex; align-items: center; margin: 0; padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .16); }
.mm-topbar-contact li:first-child { padding-left: 0; border-left: 0; }
.mm-topbar-contact a, .mm-tb-addr { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.mm-topbar-contact a { transition: color .2s ease; }
.mm-topbar-contact a:hover, .mm-topbar-contact a:focus-visible { color: var(--mm-wood); }
.mm-tb-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(126, 199, 2, .18); color: var(--mm-wood); flex: none; }
.mm-tb-ico svg { width: 14px; height: 14px; }
.mm-tb-phone .mm-tb-txt { font-weight: 700; letter-spacing: .01em; }
.mm-topbar-contact .mm-tb-addr { display: none; }
.mm-topbar-contact, .mm-topbar-contact * { white-space: nowrap; }
.mm-topbar-end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.mm-topbar a.mm-tb-cta { display: none; padding: 5px 14px; border-radius: 999px; background: var(--mm-wood); color: #10200a; font-weight: 700; font-size: 12.5px; letter-spacing: .02em; transition: background .2s ease, transform .2s ease; }
.mm-topbar a.mm-tb-cta:hover, .mm-topbar a.mm-tb-cta:focus-visible { background: #fff; color: var(--mm-green-dark); }
.mm-topbar .mm-lang { gap: 2px; margin: 0; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.mm-topbar .mm-lang a { color: rgba(255, 255, 255, .85); padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .05em; transition: background .2s ease, color .2s ease; }
.mm-topbar .mm-lang a:hover, .mm-topbar .mm-lang a:focus-visible { background: rgba(255, 255, 255, .18); color: #fff; }
.mm-topbar .mm-lang .is-current a { background: var(--mm-wood); color: #10200a; }
.mm-topbar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 700px) { .mm-topbar a.mm-tb-cta { display: inline-block; } }
@media (min-width: 1100px) { .mm-topbar-contact .mm-tb-addr { display: flex; } }
@media (max-width: 699px) {
	.mm-topbar-in { gap: 10px; min-height: 38px; }
	.mm-topbar-contact li { padding: 0 8px; border-left: 0; }
	.mm-topbar-contact li:first-child { padding-left: 0; }
	.mm-tb-mail .mm-tb-txt { display: none; }
	.mm-tb-phone .mm-tb-txt { font-size: 12.5px; }
	.mm-tb-phone2 .mm-tb-txt { display: none; }
}
@media (max-width: 479px) { .mm-tb-phone .mm-tb-txt { display: none; } .mm-topbar .mm-lang a { padding: 2px 8px; } }
@media print { .mm-topbar { display: none; } }

/* ---------- Hero slider preko cijele širine ---------- */
body.mm-page { overflow-x: clip; }
.mm-home [data-vertical-spacing*="top"] { padding-top: 0; }
.mm-slider { position: relative; left: 50%; transform: translateX(-50%); width: 100vw !important; max-width: 100vw !important; min-width: 100vw; margin: 0 0 56px !important; overflow: hidden; color: #fff; background: #143f00; box-sizing: border-box; }
.mm-slides { position: relative; min-height: calc(100vh - 190px); min-height: var(--mm-slider-h, calc(100svh - 190px)); }
.mm-slide {
	position: absolute; inset: 0; display: flex; align-items: center;
	opacity: 0; visibility: hidden;
	transition: opacity .8s ease, visibility 0s linear .8s;
	background: linear-gradient(135deg, #2b7a00, #143f00);
}
.mm-slide:nth-child(2n) { background: linear-gradient(135deg, #1f6a00, #0f3300); }
.mm-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.mm-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 32, 4, .82), rgba(10, 32, 4, .5) 55%, rgba(10, 32, 4, .2)); }
.mm-slide-in { position: relative; z-index: 2; width: min(1290px, 90%); margin-inline: auto; padding: 48px 0 76px; }
.mm-slide-title { color: #fff; font-size: clamp(30px, 5vw, 56px); line-height: 1.1; margin: 0 0 18px; max-width: 20ch; }
.mm-slide .mm-lead { max-width: 56ch; margin: 0 0 28px; color: #eaf5dc; }
.mm-slider-btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	box-sizing: border-box; appearance: none; -webkit-appearance: none;
	width: 54px; height: 54px; min-width: 0; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .94); color: #1c5200;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; line-height: 0;
	transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.mm-slider-btn svg { display: block; width: 26px; height: 26px; pointer-events: none; }
.mm-prev { left: clamp(12px, 2.5vw, 40px); }
.mm-next { right: clamp(12px, 2.5vw, 40px); }
.mm-slider-btn:hover { background: var(--mm-wood); color: #10200a; transform: translateY(-50%) scale(1.08); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.mm-slider-btn:focus-visible { background: var(--mm-wood); color: #10200a; outline: 3px solid #fff; outline-offset: 3px; }
.mm-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.mm-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.mm-dot[aria-current="true"] { background: var(--mm-wood); border-color: var(--mm-wood); }
.mm-dot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 700px) {
	.mm-slider-btn { display: none; }
	.mm-slide::before { background: rgba(10, 32, 4, .65); }
}
@media (prefers-reduced-motion: reduce) {
	.mm-slide, .mm-slide.is-active { transition: none; }
}


/* ---------- Sekcija djelatnosti (kartice) ---------- */
.mm-services { margin: 0 0 80px; }
.mm-sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.mm-sec-head h2 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; color: var(--mm-green); }
.mm-sec-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--mm-wood); margin: 16px auto 0; }
.mm-sec-head p { margin: 0; color: #5d6466; font-size: 1.08em; line-height: 1.65; }
.mm-sec-head-left { text-align: left; max-width: 72ch; margin-left: 0; }

.mm-svc-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) {
	.mm-svc-grid { grid-template-columns: repeat(2, 1fr); }
	.mm-svc:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
	.mm-svc-grid { grid-template-columns: repeat(6, 1fr); }
	.mm-svc { grid-column: span 2; }
	.mm-svc:nth-child(4), .mm-svc:nth-child(5) { grid-column: span 3; }
}

.mm-svc {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid #e3ead9; border-radius: 18px;
	padding: 30px 28px 26px; color: var(--mm-graphite); text-decoration: none;
	box-shadow: 0 1px 2px rgba(20, 50, 10, .04), 0 8px 24px rgba(20, 50, 10, .06);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mm-svc::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
	background: linear-gradient(90deg, #7ec702, #2b7a00);
	transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
a.mm-svc:hover, a.mm-svc:focus-visible { color: var(--mm-graphite); transform: translateY(-6px); border-color: #c6dab0; box-shadow: 0 2px 4px rgba(20, 50, 10, .05), 0 20px 40px rgba(20, 50, 10, .14); }
a.mm-svc:focus-visible { outline: 3px solid var(--mm-wood); outline-offset: 3px; }
.mm-svc:hover::before, .mm-svc:focus-visible::before { transform: scaleX(1); }

.mm-svc-ico {
	display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px;
	border-radius: 16px; color: #fff; background: linear-gradient(135deg, #7ec702 0%, #2b7a00 100%);
	box-shadow: 0 8px 16px rgba(43, 122, 0, .28);
	transition: transform .25s ease;
}
.mm-svc-ico svg { width: 30px; height: 30px; }
.mm-svc:hover .mm-svc-ico { transform: rotate(-6deg) scale(1.06); }
.mm-svc-num { position: absolute; top: 20px; right: 26px; font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #e9f0df; user-select: none; }
.mm-svc h3 { margin: 0 0 10px; padding-right: 44px; font-size: 1.22em; line-height: 1.25; color: var(--mm-green); }
.mm-svc p { margin: 0 0 22px; line-height: 1.65; color: #4a5255; }
.mm-svc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--mm-green); }
.mm-svc-more svg { transition: transform .2s ease; }
.mm-svc:hover .mm-svc-more svg { transform: translateX(6px); }

@media (prefers-reduced-motion: reduce) {
	.mm-svc, .mm-svc::before, .mm-svc-ico, .mm-svc-more svg { transition: none; }
	a.mm-svc:hover, .mm-svc:hover .mm-svc-ico, .mm-svc:hover .mm-svc-more svg { transform: none; }
}


/* ---------- Zašto MAGDIĆ DRVO? (traka preko cijele širine) ---------- */
.mm-why {
	position: relative; left: 50%; transform: translateX(-50%);
	width: 100vw !important; max-width: 100vw !important; box-sizing: border-box;
	margin: 0 0 64px !important; padding: clamp(48px, 7vw, 88px) 0; overflow: hidden;
	background: linear-gradient(180deg, #e8f2db 0%, #f1f7e9 100%);
}
.mm-why::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(126, 199, 2, .22), rgba(126, 199, 2, 0) 70%); pointer-events: none; }
.mm-why-in { position: relative; width: min(1290px, 90%); margin-inline: auto; }
.mm-why .mm-sec-head { margin-bottom: 44px; }
.mm-why-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .mm-why-grid { grid-template-columns: repeat(3, 1fr); } }
.mm-why-card {
	background: #fff; border: 1px solid #e1ebd4; border-radius: 20px;
	padding: 36px 30px 32px; box-shadow: 0 10px 30px rgba(20, 50, 10, .08);
	transition: transform .25s ease, box-shadow .25s ease;
}
.mm-why-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(20, 50, 10, .14); }
.mm-why-ico {
	display: grid; place-items: center; width: 64px; height: 64px; margin: 0 0 26px 7px; border-radius: 50%;
	background: #eef6e2; color: #2b7a00; box-shadow: 0 0 0 7px rgba(126, 199, 2, .18);
}
.mm-why-ico svg { width: 30px; height: 30px; }
.mm-why-card h3 { margin: 0 0 10px; font-size: 1.22em; line-height: 1.25; color: var(--mm-green); }
.mm-why-card p { margin: 0; line-height: 1.65; color: #4a5255; }

/* ---------- Poziv na suradnju ---------- */
.mm-cta2 {
	box-sizing: border-box; position: relative; overflow: hidden; text-align: center; color: #fff;
	margin: 0 0 72px; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
	border-radius: 26px; background: linear-gradient(135deg, #2b7a00 0%, #1c5200 55%, #143f00 100%);
	box-shadow: 0 24px 50px rgba(20, 63, 0, .28);
}
.mm-cta2::before { content: ""; position: absolute; right: -90px; top: -110px; width: 340px; height: 340px; border-radius: 50%; background: rgba(126, 199, 2, .28); }
.mm-cta2::after { content: ""; position: absolute; left: -70px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.mm-cta2 > * { position: relative; z-index: 1; }
.mm-cta2 h2 { margin: 0 0 14px; color: #fff; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; }
.mm-cta2 p { max-width: 58ch; margin: 0 auto 28px; color: #eaf5dc; font-size: 1.08em; line-height: 1.65; }
.mm-cta2 .mm-actions { justify-content: center; max-width: none; margin: 0 auto; }
.mm-cta2 a.mm-btn-ghost { color: #fff; }
.mm-cta2 a.mm-btn-ghost:hover, .mm-cta2 a.mm-btn-ghost:focus { color: var(--mm-green); }

@media (prefers-reduced-motion: reduce) {
	.mm-why-card { transition: none; }
	.mm-why-card:hover { transform: none; }
}


/* ---------- Footer ---------- */
/* Sakrij zadani footer teme (Blocksy), uključujući traku s copyrightom */
body.mm-hide-theme-footer footer#footer:not(.mm-footer),
body.mm-hide-theme-footer footer.ct-footer:not(.mm-footer),
body.mm-hide-theme-footer .ct-footer:not(.mm-footer):not(:has(.mm-footer)) { display: none !important; }
body.mm-hide-theme-footer footer#footer > :not(.mm-footer),
body.mm-hide-theme-footer footer.ct-footer > :not(.mm-footer) { display: none !important; }

.mm-footer {
	position: relative; overflow: hidden; box-sizing: border-box; clear: both;
	margin: 0; padding: clamp(48px, 6vw, 80px) 0 0;
	background: linear-gradient(160deg, #1c3a10 0%, #14290c 55%, #0f2008 100%);
	color: #c9d3bf; font-size: 15px; line-height: 1.6;
}
.mm-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #7ec702, #2b7a00); }
.mm-footer::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(126, 199, 2, .20), rgba(126, 199, 2, 0) 70%); pointer-events: none; }
.mm-ft-in { position: relative; z-index: 1; width: min(1290px, 90%); margin-inline: auto; }

.mm-ft-grid { display: grid; gap: 40px 48px; grid-template-columns: 1fr; padding-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 700px)  { .mm-ft-grid { grid-template-columns: 1fr 1fr; } .mm-ft-brand { grid-column: 1 / -1; } }
@media (min-width: 1050px) { .mm-ft-grid { grid-template-columns: 1.5fr 1.4fr 1fr 1.3fr; } .mm-ft-brand { grid-column: auto; } }

.mm-ft-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.mm-ft-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #7ec702 0%, #2b7a00 100%); box-shadow: 0 8px 16px rgba(0, 0, 0, .3); }
.mm-ft-brand p { margin: 18px 0 0; max-width: 38ch; color: #b4c0a8; }

.mm-footer h3 { margin: 0 0 18px; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mm-footer h3::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: #7ec702; margin-top: 10px; }
.mm-footer ul { list-style: none; margin: 0; padding: 0; }
.mm-ft-col li { margin: 0 0 10px; }
.mm-footer a { color: #c9d3bf; text-decoration: none; transition: color .15s ease; }
.mm-ft-col a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .15s ease, background-size .25s ease; }
.mm-footer a:hover, .mm-footer a:focus-visible { color: #9be21f; }
.mm-ft-col a:hover, .mm-ft-col a:focus-visible { background-size: 100% 1px; }
.mm-footer a:focus-visible { outline: 3px solid #7ec702; outline-offset: 3px; border-radius: 4px; }

.mm-ft-contact strong { color: #fff; font-weight: 600; }
.mm-ft-contact li { display: flex; gap: 12px; align-items: flex-start; }
.mm-ft-ico { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -4px; border-radius: 10px; color: #9be21f; background: rgba(126, 199, 2, .14); }
.mm-ft-ico svg { width: 18px; height: 18px; }

.mm-ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.mm-ft-copy { margin: 0; color: #9aa78f; }
.mm-ft-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.mm-footer .mm-lang { gap: 4px; }
.mm-footer .mm-lang a { display: inline-block; padding: 4px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: #c9d3bf; background: rgba(255, 255, 255, .07); }
.mm-footer .mm-lang a:hover, .mm-footer .mm-lang a:focus-visible { background: rgba(255, 255, 255, .16); color: #fff; }
.mm-footer .mm-lang .is-current a { background: #7ec702; color: #10200a; }
.mm-ft-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #10200a !important; background: #7ec702; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); transition: transform .2s ease, background .2s ease; }
.mm-ft-top:hover, .mm-ft-top:focus-visible { background: #93d91f; transform: translateY(-3px); }
.mm-ft-top svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
	.mm-ft-col a, .mm-ft-top, .mm-footer a { transition: none; }
	.mm-ft-top:hover { transform: none; }
}
@media print { .mm-footer { display: none; } }
.mm-footer a.mm-ft-logo, .mm-footer a.mm-ft-logo:hover, .mm-footer a.mm-ft-logo:focus-visible { color: #fff; }
.mm-ft-credit { white-space: nowrap; }
.mm-ft-credit a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mm-footer .mm-ft-credit a:hover, .mm-footer .mm-ft-credit a:focus-visible { color: #9be21f; }
.mm-ft-logo-img { display: block; width: auto; height: auto; max-width: min(240px, 100%); max-height: 64px; filter: brightness(0) invert(1); }


/* ---------- Stranica "O nama" ---------- */
.mm-about { margin-top: 8px; }
.mm-ab-intro { display: grid; gap: 36px 56px; grid-template-columns: 1fr; align-items: stretch; margin-bottom: 72px; }
@media (min-width: 960px) { .mm-ab-intro { grid-template-columns: 1.55fr 1fr; } }
.mm-ab-intro .mm-sec-head { margin-bottom: 24px; }
.mm-ab-intro .mm-sec-head h2 { font-size: clamp(26px, 3vw, 36px); }
.mm-about p { line-height: 1.75; color: #4a5255; margin: 0 0 18px; }
.mm-about .mm-ab-lead { font-size: 1.15em; color: var(--mm-graphite); }

.mm-ab-facts {
	position: relative; overflow: hidden; border-radius: 22px; padding: clamp(24px, 3vw, 36px);
	background: linear-gradient(135deg, #2b7a00 0%, #1c5200 60%, #143f00 100%); color: #fff;
	box-shadow: 0 24px 50px rgba(20, 63, 0, .25);
}
.mm-ab-facts::before { content: ""; position: absolute; right: -80px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(126, 199, 2, .28); }
.mm-ab-facts { display: flex; flex-direction: column; justify-content: center; }
.mm-ab-facts ul { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-evenly; gap: 28px; flex: 1 1 auto; }
.mm-ab-facts li { display: flex; align-items: center; gap: 16px; font-size: 1.12em; font-weight: 700; line-height: 1.35; color: #fff; }
.mm-ab-fico { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .14); color: #d4f59a; }
.mm-ab-fico svg { width: 28px; height: 28px; }

.mm-ab-market { margin-bottom: 72px !important; }
.mm-ab-split { display: grid; gap: 32px 56px; grid-template-columns: 1fr; align-items: stretch; }
.mm-ab-split > div:first-child { display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 900px) { .mm-ab-split { grid-template-columns: 1fr 1fr; } }
.mm-ab-market .mm-sec-head { margin-bottom: 22px; }
.mm-ab-market .mm-sec-head h2 { font-size: clamp(26px, 3vw, 36px); }
.mm-ab-panel { display: flex; flex-direction: column; justify-content: center; }
.mm-ab-panel p { margin: 0 0 16px; }
.mm-ab-panel p:last-child { margin-bottom: 0; }

.mm-ab-values { margin-bottom: 72px; }
.mm-ab-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 36px; padding: 0; }
.mm-ab-pills li { padding: 10px 22px; border-radius: 999px; background: #eaf5d6; color: var(--mm-green-dark); font-weight: 700; border: 1px solid #cfe5ad; }
.mm-ab-vgrid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .mm-ab-vgrid { grid-template-columns: repeat(2, 1fr); } }

.mm-about .mm-ab-end { text-align: center; }
.mm-about .mm-ab-end p { max-width: 62ch; margin: 0 auto 18px; text-align: center; color: #eaf5dc; }
.mm-about .mm-ab-end .mm-ab-tag { margin: 8px auto 28px; font-size: 1.2em; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.mm-ab-end .mm-actions { margin-bottom: 0; }
.mm-about .mm-ab-end p.mm-actions { max-width: none; margin: 0 auto; justify-content: center; }

.mm-sec-head-left h2::after { margin-left: 0; }


/* ---------- Zapošljavanje (moderni izgled) ---------- */
.mm-careers { margin: 0 0 72px; }
.mm-careers-lead {
	max-width: none; margin: 0 0 48px;
	font-size: clamp(1.05rem, 1.25vw, 1.45rem); line-height: 1.5; letter-spacing: -.005em; font-weight: 500; color: var(--mm-graphite);
	padding-left: 22px; border-left: 5px solid var(--mm-wood);
}
.mm-careers-head { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; }
.mm-careers-head h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; color: var(--mm-green); }
.mm-careers-head::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, #cfe3b3, rgba(207, 227, 179, 0)); }

/* Prazno stanje */
.mm-empty {
	display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px;
	padding: clamp(22px, 3.5vw, 34px); background: #fff;
	border: 1.5px dashed #bcd49d; border-radius: 20px;
}
.mm-empty-ico { display: grid; place-items: center; flex: 0 0 auto; width: 60px; height: 60px; border-radius: 18px; background: #eaf5d8; color: var(--mm-green); }
.mm-empty p { flex: 1 1 auto; margin: 0; max-width: none; font-size: 1.15rem; line-height: 1.6; color: #4a5255; }
.mm-empty .mm-btn, .mm-job .mm-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 700; }
.mm-empty .mm-btn svg, .mm-job .mm-btn svg { transition: transform .2s ease; }
.mm-empty .mm-btn:hover svg, .mm-job .mm-btn:hover svg { transform: translateX(4px); }

/* Natječaji */
.mm-jobs { display: grid; gap: 16px; }
.mm-job {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px;
	margin: 0; padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 34px) clamp(22px, 3vw, 32px) clamp(26px, 3.4vw, 38px);
	background: #fff; border: 1px solid #e1ebd4; border-radius: 20px;
	box-shadow: 0 1px 2px rgba(20, 50, 10, .04), 0 10px 28px rgba(20, 50, 10, .07);
	transition: box-shadow .25s ease, border-color .25s ease;
}
.mm-job::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 5px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #7ec702, #2b7a00); }
.mm-job:hover { border-color: #c6dab0; box-shadow: 0 2px 4px rgba(20, 50, 10, .05), 0 18px 38px rgba(20, 50, 10, .12); }
.mm-job-main { flex: 1 1 420px; min-width: 0; }
.mm-job h3 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.25; color: var(--mm-green-dark); }
.mm-job-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.mm-job-chips li { margin: 0; padding: 5px 13px; border-radius: 999px; background: #eef6e2; color: #2f5a10; font-size: .88rem; font-weight: 600; }
.mm-job-body { color: #4a5255; line-height: 1.65; max-width: 70ch; }
.mm-job-body > :last-child { margin-bottom: 0; }

/* Obrazac za prijavu: pregledniji i prozračniji */
#mm-form-posao { max-width: none; width: 100%; margin: 0; }
#mm-form-posao .mm-fields { gap: 24px; }
#mm-form-posao input[type="file"] { background: #fff; border-style: dashed; border-width: 2px; border-color: #b8d194; padding: 18px 16px; min-height: 76px; }
#mm-form-posao input[type="file"]:hover { background: #f3f9ea; border-color: var(--mm-green); }
#mm-form-posao .mm-btn { padding: 17px 38px; }
.mm-inquiry:has(#mm-form-posao) .mm-sec-head { text-align: left; max-width: none; width: 100%; margin: 0 0 28px; }
.mm-inquiry:has(#mm-form-posao) .mm-sec-head h2::after { margin-left: 0; }

@media (max-width: 699px) {
	.mm-job .mm-btn, .mm-empty .mm-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.mm-job, .mm-empty .mm-btn svg, .mm-job .mm-btn svg { transition: none; }
	.mm-empty .mm-btn:hover svg, .mm-job .mm-btn:hover svg { transform: none; }
}


/* ---------- Kontakt: isti ritam i širina kao Zapošljavanje ---------- */
.mm-section:has(.mm-data) > .mm-lead-dark {
	max-width: none; margin: 0 0 40px;
	font-size: clamp(1.05rem, 1.25vw, 1.45rem); line-height: 1.5; letter-spacing: -.005em; font-weight: 500;
	padding-left: 22px; border-left: 5px solid var(--mm-wood);
}
/* Popis podataka: izvorni izgled (retci s crtom), samo s razmakom prema obrascu */
.mm-section:has(.mm-data) .mm-data { margin-bottom: 40px; }

/* Obrazac i naslov na punu širinu sadržaja (samo stranica Kontakt) */
body:has(.mm-data) .mm-inquiry .mm-sec-head { text-align: left; max-width: none; width: 100%; margin: 0 0 28px; }
body:has(.mm-data) .mm-inquiry .mm-sec-head h2::after { margin-left: 0; }
body:has(.mm-data) .mm-inquiry .mm-form { max-width: none; width: 100%; margin: 0; }

/* Uvodne rečenice u jednom retku na širokim ekranima */
@media (min-width: 1000px) {
	.mm-careers-lead, .mm-section:has(.mm-data) > .mm-lead-dark { white-space: nowrap; }
}


/* ---------- Primarna prerada drva ---------- */
.mm-prerada { display: grid; gap: 72px; margin: 0 0 72px; }
.mm-prerada .mm-section { margin: 0; }
.mm-pr-intro { display: grid; gap: 28px 56px; align-items: start; }
@media (min-width: 900px) { .mm-pr-intro { grid-template-columns: 1.05fr 1fr; } }
.mm-eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: #eaf5d8; color: var(--mm-green-dark); font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mm-pr-intro-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; color: var(--mm-green); }
.mm-pr-intro-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--mm-wood); margin-top: 20px; }
.mm-pr-intro-text p { margin: 0 0 14px; line-height: 1.7; color: #4a5255; }
.mm-pr-intro-text .mm-pr-first { padding-left: 22px; border-left: 5px solid var(--mm-wood); font-size: 1.18rem; font-weight: 500; line-height: 1.55; color: var(--mm-graphite); margin-bottom: 20px; }

.mm-pr-sub { margin: 0 0 6px; line-height: 1.65; color: #4a5255; }
.mm-pr-list-lead { margin: 0 0 22px; font-weight: 600; color: var(--mm-graphite); }
.mm-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 700px) { .mm-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mm-steps { grid-template-columns: repeat(4, 1fr); } }
.mm-step { position: relative; margin: 0; padding: 26px 24px 26px 26px; background: #fff; border: 1px solid #e1ebd4; border-radius: 20px; box-shadow: 0 1px 2px rgba(20, 50, 10, .04), 0 10px 28px rgba(20, 50, 10, .07); transition: box-shadow .25s ease, transform .25s ease; }
.mm-step:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 50, 10, .05), 0 18px 38px rgba(20, 50, 10, .12); }
.mm-step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(135deg, #7ec702, #2b7a00); color: #fff; font-weight: 800; font-size: 1rem; }
.mm-step h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.3; color: var(--mm-green-dark); }
.mm-step p { margin: 0; line-height: 1.6; color: #4a5255; }
.mm-pr-note { margin: 0; padding: 16px 20px; border-radius: 14px; background: #eef6e2; color: #2f5a10; font-weight: 600; line-height: 1.5; }

.mm-pr-panels { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .mm-pr-panels { grid-template-columns: 1fr 1fr; } }
.mm-panel { padding: clamp(24px, 3vw, 38px); background: #fff; border: 1px solid #e1ebd4; border-radius: 22px; box-shadow: 0 1px 2px rgba(20, 50, 10, .04), 0 10px 28px rgba(20, 50, 10, .07); }
.mm-panel h3 { margin: 0 0 16px; font-size: 1.4rem; line-height: 1.25; color: var(--mm-green); }
.mm-panel h3::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--mm-wood); margin-top: 12px; }
.mm-panel p { margin: 0 0 12px; line-height: 1.7; color: #4a5255; }
.mm-panel p:last-child { margin-bottom: 0; }
.mm-panel-alt { background: #eef6e2; border-color: #d3e5bb; }

.mm-pr-cta { text-align: center; }
.mm-pr-cta p { max-width: 80ch; margin-left: auto; margin-right: auto; }
.mm-pr-cta .mm-pr-cta-q { font-weight: 700; color: #fff; font-size: 1.12em; margin-top: 8px; }
.mm-pr-cta .mm-btn { display: inline-flex; align-items: center; gap: 10px; }
.mm-pr-cta .mm-btn svg { transition: transform .2s ease; }
.mm-pr-cta .mm-btn:hover svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .mm-step, .mm-pr-cta .mm-btn svg { transition: none; } .mm-step:hover { transform: none; } }


/* ---------- Veleprodaja trupaca ---------- */
.mm-pr-split .mm-pr-intro-head h2 { font-size: clamp(26px, 3vw, 36px); }
.mm-species { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.mm-specie { position: relative; margin: 0; padding: 26px 22px 24px; background: #fff; border: 1px solid #e1ebd4; border-radius: 20px; box-shadow: 0 1px 2px rgba(20, 50, 10, .04), 0 10px 28px rgba(20, 50, 10, .07); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.mm-specie::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #7ec702, #2b7a00); }
.mm-specie:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 50, 10, .05), 0 18px 38px rgba(20, 50, 10, .12); }
.mm-specie h3 { margin: 6px 0 8px; font-size: 1.3rem; color: var(--mm-green-dark); }
.mm-specie p { margin: 0; line-height: 1.6; color: #4a5255; }
.mm-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mm-checks li { position: relative; margin: 0; padding-left: 36px; line-height: 1.6; color: var(--mm-graphite); }
.mm-checks li::before { content: ""; position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 8px; background: #7ec702 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
@media (prefers-reduced-motion: reduce) { .mm-specie { transition: none; } .mm-specie:hover { transform: none; } }


/* ---------- Veleprodaja ogrjevnog drva – višemetrica ---------- */
.mm-panel-wide { margin: 0 0 24px; }
.mm-checks-wide { grid-template-columns: 1fr; gap: 16px 40px; }
@media (min-width: 900px) { .mm-checks-wide { grid-template-columns: 1fr 1fr; } }
.mm-checks strong { color: var(--mm-green-dark); }


/* ---------- Veleprodaja drvne sječke ---------- */
@media (min-width: 1100px) { .mm-steps.mm-steps-5 { grid-template-columns: repeat(5, 1fr); } }


/* ---------- Zastupanje ---------- */
.mm-pr-sub + .mm-pr-sub { margin-top: 0; }
.mm-panel .mm-pr-list-lead { margin: 18px 0 14px; }


/* ---------- Galerija fotografija ---------- */
.mm-gallery-sec { margin: 0 0 72px; }
.mm-prerada + .mm-gallery-sec { margin-top: 0; }
.mm-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
.mm-gal-odd .mm-gal-li:first-child { grid-column: span 2; }
@media (min-width: 700px) { .mm-gallery { grid-auto-rows: 230px; } }
@media (min-width: 1100px) {
	.mm-gallery { grid-template-columns: repeat(4, 1fr); }
	.mm-gal-odd .mm-gal-li:first-child { grid-column: auto; }
	.mm-gallery-feat .mm-gal-li:first-child { grid-column: span 2; grid-row: span 2; }
	.mm-gal-few { grid-template-columns: repeat(var(--mm-cols, 3), 1fr); }
}
.mm-gal-li { margin: 0; min-height: 0; }
.mm-gal-item { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 18px; background: #dfe9d0; box-shadow: 0 1px 2px rgba(20, 50, 10, .05), 0 10px 26px rgba(20, 50, 10, .1); }
.mm-gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mm-gal-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 50, 10, 0) 55%, rgba(20, 50, 10, .35)); opacity: 0; transition: opacity .3s ease; }
.mm-gal-item:hover img, .mm-gal-item:focus-visible img { transform: scale(1.06); }
.mm-gal-item:hover::after, .mm-gal-item:focus-visible::after { opacity: 1; }
.mm-gal-item:focus-visible { outline: 3px solid var(--mm-wood); outline-offset: 3px; }

.mm-lb { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 56px 64px; background: rgba(10, 24, 6, .92); }
.mm-lb[hidden] { display: none; }
.mm-lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mm-lb-fig img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 12px; }
.mm-lb-fig figcaption { color: #eaf5dc; text-align: center; }
.mm-lb button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s ease; }
.mm-lb button:hover, .mm-lb button:focus-visible { background: var(--mm-wood); color: #0e2a00; }
.mm-lb button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.mm-lb-close { top: 14px; right: 14px; }
.mm-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.mm-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.mm-lb-open { overflow: hidden; }
@media (max-width: 699px) { .mm-lb { padding: 64px 12px; } .mm-lb-prev, .mm-lb-next { top: auto; bottom: 12px; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mm-gal-item img, .mm-gal-item::after { transition: none; } .mm-gal-item:hover img { transform: none; } }

/* Pregled djelatnosti: uvodni tekst na punu širinu (bez prijeloma na 72 znaka) */
.mm-services .mm-sec-head-left { max-width: none; width: 100%; }

/* Zastupanje: kartice usluga u 3 stupca (6 kartica = 2 reda po 3) */
.mm-zastupanje .mm-species { grid-template-columns: 1fr; }
@media (min-width: 700px) { .mm-zastupanje .mm-species { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mm-zastupanje .mm-species { grid-template-columns: repeat(3, 1fr); } }

/* v1.17: dugačke složenice (DE/HU) na proširenim stranicama djelatnosti lome se umjesto da probiju stupac. */
.mm-prerada h2, .mm-prerada h3, .mm-prerada p, .mm-prerada li { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }

/* ---------- Footer: elegantniji raspored ---------- */
.mm-ft-grid { gap: 44px 56px; padding-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 1050px) { .mm-ft-grid { grid-template-columns: 1.25fr 1.35fr .8fr 1.55fr; column-gap: clamp(40px, 5vw, 72px); align-items: start; } }
.mm-ft-brand p { max-width: 34ch; margin-top: 20px; line-height: 1.7; }
.mm-footer h3 { margin-bottom: 22px; }
.mm-ft-col li { margin: 0 0 12px; line-height: 1.45; }
.mm-ft-col li:last-child { margin-bottom: 0; }

.mm-ft-contact ul { margin: 0; }
.mm-ft-contact li { align-items: center; gap: 14px; margin: 0 0 10px; }
.mm-ft-contact .mm-ft-addr li { align-items: flex-start; margin-bottom: 18px; }
.mm-ft-contact .mm-ft-addr li:last-child { margin-bottom: 0; }
.mm-ft-contact .mm-ft-ico { margin-top: 0; }
.mm-ft-contact .mm-ft-addr strong { display: inline-block; margin-bottom: 2px; }
.mm-ft-contact .mm-ft-reach { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.mm-ft-contact .mm-ft-reach li:last-child { margin-bottom: 0; }
.mm-ft-contact .mm-ft-reach a { color: #e3ebd9; font-weight: 500; }
.mm-ft-contact .mm-ft-reach a:hover, .mm-ft-contact .mm-ft-reach a:focus-visible { color: #9be21f; }

.mm-ft-bottom { flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding: 26px 0 30px; }
.mm-ft-copy { flex: 1 1 460px; min-width: 0; display: grid; gap: 4px; line-height: 1.6; }
.mm-ft-copy p { margin: 0; }
.mm-ft-legal { color: #b4c0a8; }
.mm-ft-rights { color: #8e9b83; }
.mm-ft-firm { white-space: nowrap; }
.mm-ft-sep { margin: 0 6px; opacity: .6; }
.mm-ft-meta { flex: 0 1 auto; justify-content: flex-end; gap: 14px 22px; }
.mm-ft-privacy { color: #c9d3bf; }
/* Mobilni footer: sve centrirano, jedan element po retku. */
@media (max-width: 699px) {
	.mm-footer { text-align: center; }
	.mm-ft-grid { gap: 0; padding-bottom: 8px; }
	.mm-ft-brand { padding-bottom: 28px; }
	.mm-ft-logo { justify-content: center; }
	.mm-ft-logo-img { margin-inline: auto; max-width: min(220px, 80%); }
	.mm-ft-brand p { margin: 16px auto 0; max-width: 32ch; }
	.mm-ft-col { padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
	.mm-footer h3 { margin-bottom: 20px; }
	.mm-footer h3::after { margin: 10px auto 0; }
	.mm-ft-col li { margin-bottom: 14px; }
	.mm-ft-col li:last-child { margin-bottom: 0; }
	.mm-ft-contact li, .mm-ft-contact .mm-ft-addr li { justify-content: center; align-items: center; }
	.mm-ft-contact .mm-ft-addr li { flex-direction: column; gap: 10px; text-align: center; }
	.mm-ft-contact .mm-ft-reach { margin-top: 22px; padding-top: 22px; }
	.mm-ft-contact .mm-ft-reach li { gap: 12px; flex-wrap: wrap; overflow-wrap: anywhere; }
	.mm-ft-bottom { flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 26px 0 32px; text-align: center; }
	.mm-ft-copy { flex: 0 0 auto; width: 100%; justify-items: center; gap: 10px; }
	.mm-ft-legal { display: grid; gap: 4px; justify-items: center; }
	.mm-ft-firm { display: block; white-space: normal; }
	.mm-ft-sep { display: none; }
	.mm-ft-rights { display: grid; gap: 4px; justify-items: center; }
	.mm-ft-credit { display: block; white-space: normal; }
	.mm-ft-meta { flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; }
	.mm-footer .mm-lang { justify-content: center; flex-wrap: wrap; }
}

/* ---------- Položaj fotografije u slajderu (trupci su pri dnu fotografije) ---------- */
.mm-slide.mm-focus-top .mm-slide-bg { object-position: 50% 0; }
.mm-slide.mm-focus-center .mm-slide-bg { object-position: 50% 50%; }
.mm-slide.mm-focus-bottom .mm-slide-bg { object-position: 50% 100%; }
/* Tamni sloj za tekst blijedi prema dnu da se donji dio slike (trupci) bolje vidi. */
.mm-slide.mm-focus-bottom::before {
	background: linear-gradient(90deg, rgba(10, 32, 4, .78), rgba(10, 32, 4, .42) 55%, rgba(10, 32, 4, .1));
	-webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 82%);
	mask-image: linear-gradient(180deg, #000 40%, transparent 82%);
}
.mm-slide.mm-focus-bottom .mm-slide-in { padding-bottom: 120px; align-self: flex-start; margin-top: 8vh; }
@media (max-width: 782px) {
	.mm-slide.mm-focus-bottom .mm-slide-in { margin-top: 0; align-self: center; padding-bottom: 76px; }
}
