/* ==========================================================================
   Megatronik Core – osnova: fontovi, tokeni, dugmad, kartice, pomoćne klase.
   Boje i razmaci su CSS varijable – izmjena ovdje mijenja cijeli sajt.
   ========================================================================== */

@font-face {
	font-family: 'Outfit';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/outfit-latin-wght-normal.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Outfit';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/outfit-latin-ext-wght-normal.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(../fonts/manrope-latin-wght-normal.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* Boje sa logotipa */
	--mt-primary: #7b4498;
	--mt-primary-dark: #5e2f78;
	--mt-primary-light: #9b5dbe;
	--mt-lilac: #f3ecf7;
	--mt-lilac-2: #fbf8fd;
	--mt-lilac-3: #f5f1f8;
	--mt-ink: #2a2729;
	--mt-graphite: #363435;
	--mt-text: #4a4550;
	--mt-muted: #6b6670;
	--mt-faint: #8c8592;
	--mt-line: #ece8f0;
	--mt-line-2: #ddd6e3;
	--mt-bg: #f6f5f8;
	--mt-white: #fff;
	--mt-dark: #17121c;
	--mt-dark-2: #221a29;
	--mt-dark-3: #2f2737;
	--mt-on-dark: #cfc8d6;
	--mt-success: #2f7a4b;
	--mt-success-bg: #e7f5ec;
	--mt-warning: #9a5b07;
	--mt-danger: #b42f33;

	/* Tipografija */
	--mt-font-display: 'Outfit', ui-sans-serif, system-ui, sans-serif;
	--mt-font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;

	/* Oblik */
	--mt-radius-sm: 10px;
	--mt-radius: 12px;
	--mt-radius-lg: 18px;
	--mt-radius-xl: 24px;
	--mt-shadow: 0 10px 30px -18px rgba(70, 30, 95, .45);
	--mt-shadow-lg: 0 30px 60px -20px rgba(30, 10, 45, .45);
	--mt-container: 1320px;
	--mt-gutter: 24px;
	--mt-header-z: 900;
}

html.mt-noscroll { overflow: hidden; }

/* ---------- Osnovni reset (zamjenjuje reset teme Hello Elementor; niska specifičnost preko :where) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body { margin: 0; }
:where(img, video) { max-width: 100%; height: auto; }
:where(a) { color: var(--mt-primary); text-decoration: none; }
:where(a:hover) { color: var(--mt-primary-dark); }
:where(h1, h2, h3, h4, h5, h6) { font-family: var(--mt-font-display); line-height: 1.2; margin: 0 0 .5em; }
:where(p) { margin: 0 0 1em; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(button) { background: none; border: 0; padding: 0; cursor: pointer; }
:where(input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], select, textarea) {
	width: 100%; border: 1px solid var(--mt-line-2); border-radius: 10px; padding: .65rem .9rem; background: #fff; color: var(--mt-graphite);
	transition: border-color .15s, box-shadow .15s;
}
:where(input, select, textarea):focus { outline: 0; border-color: var(--mt-primary); box-shadow: 0 0 0 3px rgba(123, 68, 152, .15); }
:where(table) { border-collapse: collapse; width: 100%; }
:where(hr) { border: 0; border-top: 1px solid var(--mt-line); }

body {
	font-family: var(--mt-font-body);
	color: var(--mt-graphite);
	background: var(--mt-bg);
	-webkit-font-smoothing: antialiased;
}

.mt-h1, .mt-h2, .mt-h3, .mt-display { font-family: var(--mt-font-display); color: var(--mt-ink); font-weight: 700; letter-spacing: -.01em; margin: 0; }
.mt-h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.08; }
.mt-h2 { font-size: clamp(24px, 2.6vw, 28px); line-height: 1.15; }
.mt-h3 { font-size: 20px; line-height: 1.25; }
.mt-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mt-primary); }
.mt-muted { color: var(--mt-muted); }

.mt-container { max-width: var(--mt-container); margin-inline: auto; padding-inline: var(--mt-gutter); box-sizing: border-box; }

/* ---------- Dugmad ---------- */
.mt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 46px; padding: 0 20px; border-radius: var(--mt-radius); border: 0;
	font: 700 14px/1.2 var(--mt-font-body); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
	box-sizing: border-box;
}
.mt-btn:focus-visible, .mt-iconbtn:focus-visible { outline: 2px solid var(--mt-primary); outline-offset: 2px; }
.mt-btn--primary { background: var(--mt-primary); color: #fff; }
.mt-btn--primary:hover { background: var(--mt-primary-dark); color: #fff; }
.mt-btn--dark { background: var(--mt-graphite); color: #fff; }
.mt-btn--dark:hover { background: var(--mt-ink); color: #fff; }
.mt-btn--light { background: #fff; color: var(--mt-graphite); }
.mt-btn--light:hover { background: var(--mt-lilac); color: var(--mt-primary-dark); }
.mt-btn--outline { background: transparent; color: var(--mt-graphite); border: 1px solid var(--mt-line-2); }
.mt-btn--outline:hover { border-color: var(--mt-primary); color: var(--mt-primary); }
.mt-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.mt-btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.mt-btn--lg { min-height: 54px; padding: 0 26px; font-size: 15px; }
.mt-btn--block { display: flex; width: 100%; }
.mt-btn svg { flex: none; }

.mt-iconbtn {
	width: 44px; height: 44px; border-radius: var(--mt-radius); border: 0; background: transparent;
	display: inline-flex; align-items: center; justify-content: center; color: var(--mt-graphite);
	cursor: pointer; position: relative; text-decoration: none;
}
.mt-iconbtn:hover { background: #f1eaf6; color: var(--mt-primary); }

.mt-link { color: var(--mt-primary); font-weight: 700; font-size: 14px; text-decoration: none; }
.mt-link:hover { color: var(--mt-primary-dark); }

/* ---------- Oznake ---------- */
.mt-badge {
	display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800;
	padding: 4px 9px; border-radius: 7px; background: var(--mt-primary); color: #fff; line-height: 1.2;
}
.mt-badge--dark { background: var(--mt-graphite); }
.mt-badge--soft { background: var(--mt-lilac); color: var(--mt-primary-dark); }
.mt-badge--pill { border-radius: 999px; padding: 6px 12px; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }

/* ---------- Kartice ---------- */
.mt-card { background: #fff; border: 1px solid var(--mt-line); border-radius: var(--mt-radius-lg); }
.mt-card--hover { transition: border-color .15s, box-shadow .15s; }
.mt-card--hover:hover { border-color: #cdb6da; box-shadow: var(--mt-shadow); }

.mt-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

/* ---------- Forme ---------- */
.mt-input, .mt-select {
	height: 48px; width: 100%; box-sizing: border-box; border: 1px solid var(--mt-line-2); border-radius: var(--mt-radius);
	padding: 0 14px; font: 400 15px var(--mt-font-body); color: var(--mt-graphite); background: #faf8fc;
}
.mt-input:focus, .mt-select:focus { outline: 2px solid var(--mt-primary); outline-offset: 1px; background: #fff; }
.mt-input::placeholder { color: var(--mt-faint); }

.mt-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin: 0; background: var(--mt-lilac-3); border-radius: 14px; padding: 8px 20px; font-size: 14px; }
.mt-dl dt { padding: 10px 0; color: var(--mt-muted); }
.mt-dl dd { margin: 0; padding: 10px 0; font-weight: 700; color: var(--mt-ink); }

/* Dugme koje izgleda kao link (npr. „Postavke kolačića“ u podnožju). */
.mt-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mt-linkbtn:hover { color: var(--mt-primary); }

/* ---------- Prelom teksta: bez „siročadi“ (jedno slovo/riječ u novom redu) ---------- */
h1, h2, h3, h4, .mt-h1, .mt-h2, .mt-h3, .mt-display, [class*="__title"] { text-wrap: balance; }
p, li, [class*="__text"], [class*="__spec"] { text-wrap: pretty; }
.mt-nw { white-space: nowrap; }

/* ---------- Elementor Pro forme (upit za ponudu, povrat) u stilu sajta ---------- */
.elementor-form .elementor-field-group > label, .elementor-form .elementor-field-label { font-size: 13px; font-weight: 700; color: var(--mt-ink); margin-bottom: 6px; }
.elementor-form .elementor-field-textual, .elementor-form select.elementor-field {
	min-height: 48px; border: 1px solid var(--mt-line-2) !important; border-radius: 12px !important; background: #faf8fc !important; padding: 0 14px; font: 400 15px var(--mt-font-body); color: var(--mt-graphite);
}
.elementor-form textarea.elementor-field-textual { padding: 12px 14px; }
.elementor-form .elementor-field-textual:focus, .elementor-form select.elementor-field:focus { outline: 0; border-color: var(--mt-primary) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(123, 68, 152, .15); }
.elementor-form .elementor-button { min-height: 50px; border-radius: 12px; background: var(--mt-primary); color: #fff; font: 700 15px var(--mt-font-body); }
.elementor-form .elementor-button:hover { background: var(--mt-primary-dark); }
.elementor-form .elementor-field-type-acceptance label { font-size: 13px; font-weight: 500; color: var(--mt-text); }
.mt-h2-el .elementor-heading-title { font: 700 clamp(24px, 2.6vw, 28px)/1.15 var(--mt-font-display); color: var(--mt-ink); letter-spacing: -.01em; margin: 0; }

/* Česta pitanja (<details>) */
.mt-faq { display: flex; flex-direction: column; }
.mt-faq details { border-top: 1px solid var(--mt-line); }
.mt-faq details:last-child { border-bottom: 1px solid var(--mt-line); }
.mt-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 700 16px var(--mt-font-body); color: var(--mt-ink); }
.mt-faq summary::-webkit-details-marker { display: none; }
.mt-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--mt-lilac); color: var(--mt-primary); display: grid; place-items: center; font-size: 20px; font-weight: 500; transition: transform .2s; }
.mt-faq details[open] summary::after { transform: rotate(45deg); }
.mt-faq details p { margin: 0 0 18px; color: var(--mt-text); font-size: 15px; line-height: 1.65; max-width: 760px; }

/* ---------- Pristupačnost ---------- */
.screen-reader-text, .mt-sr {
	border: 0 !important; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px !important; margin: -1px; min-width: 0 !important;
	overflow: hidden; padding: 0 !important; position: absolute !important; width: 1px !important; max-width: 1px !important; word-wrap: normal !important;
}
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Elementor kontejneri: naši widgeti i kolone u kojima su ne smiju se „skupiti“ ispod visine sadržaja
   (na mobilnom, kad red postane kolona, Elementor im daje flex-shrink: 1). */
.e-con > [class*="elementor-widget-mt-"],
.e-con > .e-con-inner > [class*="elementor-widget-mt-"] { flex-shrink: 0; width: var(--container-widget-width, 100%); max-width: 100%; }
.e-con.e-child:has(> [class*="elementor-widget-mt-"]) { flex-shrink: 0; }
