/*
Theme Name: SEO Agencija
Theme URI: https://seoagencija.rs/
Author: seoagencija.rs
Description: Svetla, moderna i brza WordPress tema za SEO agenciju. Uključuje početnu stranu, landing strane „SEO agencija Beograd” i „SEO agencija Novi Sad”, kontakt formu sa čuvanjem upita, schema markup (LocalBusiness, FAQ, Breadcrumbs) i osnovne SEO meta tagove. Strane se kreiraju automatski pri aktivaciji.
Version: 1.2.0
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seoagencija
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready, blog
*/

/* ==========================================================================
   Tokeni
   ========================================================================== */
:root {
	--bg: #fbfbf8;
	--surface: #ffffff;
	--tint: #f3f4ef;
	--ink: #0d1117;
	--ink-2: #2a313c;
	--muted: #5d6573;
	--line: #e6e6df;
	--line-strong: #d6d6cd;
	--brand: #1f4fff;
	--brand-ink: #1236c9;
	--brand-soft: #e9eeff;
	--lime: #d4f25a;
	--lime-soft: #f2fbd2;
	--success: #12805c;
	--danger: #c0362c;

	--font-head: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;

	--shadow-sm: 0 1px 2px rgba(13, 17, 23, .05);
	--shadow: 0 1px 2px rgba(13, 17, 23, .04), 0 8px 24px -8px rgba(13, 17, 23, .10);
	--shadow-lg: 0 2px 4px rgba(13, 17, 23, .04), 0 24px 60px -18px rgba(13, 17, 23, .22);

	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(64px, 9vw, 120px);
	--header-h: 72px;
}

/* ==========================================================================
   Reset i osnova
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-2);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--ink); }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* ==========================================================================
   Dugmad
   ========================================================================== */
.btn {
	--btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-strong);
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.3em; border-radius: 999px; border: 1px solid var(--btn-bd);
	background: var(--btn-bg); color: var(--btn-fg);
	font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
	white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand); box-shadow: 0 6px 18px -6px rgba(31, 79, 255, .55); }
.btn-primary:hover { --btn-bg: var(--brand-ink); --btn-bd: var(--brand-ink); box-shadow: 0 10px 24px -8px rgba(31, 79, 255, .6); }
.btn-ghost:hover { --btn-bd: var(--ink); }
.btn-sm { padding: .6em 1.05em; font-size: .92rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.04rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 251, 248, .82);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(13, 17, 23, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--brand); display: inline-flex; }
.brand-text { font-family: var(--font-head); font-size: 1.32rem; letter-spacing: -0.03em; font-weight: 600; }
.brand-text strong { font-weight: 800; }
.brand-tld { color: var(--muted); font-weight: 500; }
.custom-logo-link img { max-height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav .menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a {
	display: block; padding: .5em .85em; border-radius: 999px;
	color: var(--ink-2); font-weight: 500; font-size: .96rem; text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.site-nav .menu a:hover { background: var(--tint); color: var(--ink); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--brand); background: var(--brand-soft); }
.site-nav .menu-item-has-children { position: relative; }
.site-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 3px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg);
}
.site-nav .sub-menu {
	position: absolute; left: 50%; top: 100%; min-width: 230px; margin: 0; padding: 8px; list-style: none;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 4px); }
.site-nav .sub-menu a { border-radius: 10px; padding: .6em .9em; }
.site-nav .sub-menu li:last-child { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.site-nav .sub-menu li:last-child a { color: var(--brand); font-weight: 600; }
.nav-cta { margin-left: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
	content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s;
}
.nav-toggle-bar { top: 50%; transform: translateY(-50%); }
.nav-toggle-bar::before { left: 0; right: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; right: 0; top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 20px var(--gutter) 32px; background: var(--bg);
		border-top: 1px solid var(--line);
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s ease, transform .25s ease, visibility .2s;
		overflow-y: auto;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav .menu { flex-direction: column; align-items: stretch; }
	.site-nav .menu a { font-size: 1.15rem; padding: .85em 1em; border-radius: 14px; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 16px; min-width: 0; }
	.site-nav .sub-menu::before { display: none; }
	.site-nav .sub-menu a { font-size: 1rem; padding: .6em 1em; color: var(--muted); }
	.site-nav .sub-menu li:last-child { border: 0; margin: 0; padding: 0; }
	.site-nav .menu-item-has-children > a::after { display: none; }
	.nav-cta { margin: 8px 0 0; padding: 1em; font-size: 1.05rem; }
	body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-bg {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(60% 60% at 85% 10%, rgba(31, 79, 255, .10), transparent 70%),
		radial-gradient(40% 50% at 10% 90%, rgba(212, 242, 90, .28), transparent 70%);
}
.hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(70% 60% at 70% 30%, #000 10%, transparent 75%);
	-webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000 10%, transparent 75%);
	opacity: .55;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { margin-bottom: .35em; }
.hero-copy .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; }
mark {
	background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%);
	color: inherit; padding: 0 .06em;
}
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font: 600 .78rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
	color: var(--brand); background: var(--brand-soft);
	padding: .55em .9em; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(31, 79, 255, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(31, 79, 255, 0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { width: 18px; height: 18px; color: var(--success); }
.hero-city .hero-trust .icon { color: var(--brand); }

/* SERP vizual */
.hero-visual { position: relative; padding: 24px 0 40px 20px; }
.serp-card {
	position: relative; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg);
	transform: rotate(-1deg);
}
.serp-search {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink); font-size: .98rem; margin-bottom: 14px; background: var(--bg);
}
.serp-search .icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; background: var(--brand); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.serp-result, .local-result { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; }
.serp-result > div, .local-result > div { flex: 1; display: grid; gap: 7px; }
.serp-result.is-top, .local-result.is-top { background: linear-gradient(135deg, var(--brand-soft), #f6f8ff); border: 1px solid #d5ddff; }
.serp-rank {
	flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
	background: var(--tint); color: var(--muted); font: 700 .9rem/1 var(--font-head);
}
.is-top .serp-rank { background: var(--brand); color: #fff; }
.serp-url { font-size: .8rem; color: var(--success); }
.serp-title { font: 700 1.05rem/1.2 var(--font-head); color: var(--brand-ink); }
.serp-line { display: block; height: 8px; border-radius: 6px; background: #eceee8; width: 100%; }
.serp-line.mid { width: 70%; height: 10px; background: #e3e5de; }
.serp-line.short { width: 55%; }
.stars { font-size: .85rem; color: #f5a623; letter-spacing: 1px; }
.stars em { color: var(--muted); font-style: normal; letter-spacing: 0; }
.stars.muted { color: #c9cbc4; }

.float-card {
	position: absolute; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px;
	animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.traffic-card { right: -10px; bottom: -6px; width: 240px; animation-delay: -2s; }
.float-label { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.float-label .icon { width: 16px; height: 16px; color: var(--brand); }
.spark { width: 100%; height: 64px; }
.spark-line { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.2s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.float-caption { display: block; font-size: .7rem; color: var(--muted); margin-top: 4px; }
.pos-card { left: -14px; top: -34px; display: flex; align-items: center; gap: 12px; }
.pos-card strong { display: block; font: 800 1.15rem/1.1 var(--font-head); color: var(--ink); }
.pos-card span { font-size: .78rem; color: var(--muted); }
.pos-arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.pos-arrow .icon { width: 20px; height: 20px; }

/* Mapa (lokalni SEO) */
.map { position: relative; height: 150px; border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.map svg { width: 100%; height: 100%; }
.map-pin {
	position: absolute; display: grid; place-items: center; width: 28px; height: 28px;
	border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
	background: #9aa3b2; color: #fff; font: 700 .78rem/1 var(--font-body); box-shadow: var(--shadow);
}
.map-pin b { transform: rotate(45deg); font-weight: 700; }
.map-pin.p1 { left: 46%; top: 28%; background: var(--brand); width: 34px; height: 34px; font-size: .9rem; }
.map-pin.p2 { left: 22%; top: 50%; }
.map-pin.p3 { left: 72%; top: 46%; }

@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-visual { max-width: 520px; width: 100%; margin: 8px auto 0; padding-left: 0; }
}
@media (max-width: 560px) {
	.traffic-card { width: 190px; right: -4px; }
	.pos-card { left: -4px; }
	.hero-actions .btn { width: 100%; }
}

/* ==========================================================================
   Statistike
   ========================================================================== */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font: 800 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-head); color: var(--ink); letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat { padding: 22px 16px; }
	.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Sekcije
   ========================================================================== */
.section { padding: var(--section) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head-left { text-align: left; margin-left: 0; }

/* Kartice usluga */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
	display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
	background: var(--brand-soft); color: var(--brand); margin-bottom: 22px;
	transition: background-color .25s, color .25s;
}
.card-icon .icon { width: 26px; height: 26px; }
.service-card:hover .card-icon { background: var(--brand); color: #fff; }
.service-card:nth-child(6) .card-icon { background: var(--lime-soft); color: #4d6b00; }
.service-card:nth-child(6):hover .card-icon { background: var(--lime); color: var(--ink); }
@media (max-width: 960px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-grid { grid-template-columns: 1fr; } .card { padding: 24px; } }

/* Split */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.split-copy p { color: var(--muted); font-size: 1.08rem; }
.split-copy .btn { margin-top: 10px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li {
	display: flex; gap: 18px; padding: 24px; background: var(--surface);
	border: 1px solid var(--line); border-radius: var(--radius);
}
.feature-list li > span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.feature-list li > span .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.feature-list h3 { margin-bottom: .3em; font-size: 1.15rem; }
.feature-list p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-copy { position: static; } }

/* Proces */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.process-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.process-step p { color: var(--muted); margin: 0; font-size: .97rem; }
.process-num {
	display: inline-block; font: 800 .9rem/1 var(--font-head); color: var(--brand);
	background: var(--brand-soft); padding: .55em .75em; border-radius: 10px; margin-bottom: 18px;
}
.process-step:not(:last-child)::after {
	content: ""; position: absolute; top: 46px; right: -21px; width: 22px; height: 2px;
	background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px);
}
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, 1fr); } .process-step::after { display: none; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Gradovi */
.city-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.city-grid > .city-card { grid-column: span 2; }
.city-grid.count-5 > .city-card:nth-child(-n+2),
.city-grid.count-4 > .city-card,
.city-grid.count-2 > .city-card { grid-column: span 3; }
.city-grid.count-5 > .city-card:nth-child(n+3) .city-name { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.city-card {
	position: relative; display: grid; gap: 6px; padding: clamp(28px, 4vw, 44px);
	border-radius: var(--radius-xl); text-decoration: none; color: var(--ink-2);
	background: var(--surface); border: 1px solid var(--line); overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
.city-card::before {
	content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
	background: radial-gradient(circle, rgba(31, 79, 255, .14), transparent 70%);
	transition: transform .4s ease;
}
.city-card:nth-child(2)::before { background: radial-gradient(circle, rgba(212, 242, 90, .5), transparent 70%); }
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink-2); }
.city-card:hover::before { transform: scale(1.25); }
.city-pin { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; margin-bottom: 14px; }
.city-pin .icon { width: 22px; height: 22px; }
.city-label { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.city-name { font: 800 clamp(2rem, 4vw, 2.8rem)/1.05 var(--font-head); color: var(--ink); letter-spacing: -0.035em; }
.city-text { color: var(--muted); margin-top: 6px; }
.city-areas { font-size: .88rem; color: var(--muted); opacity: .85; }
.city-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; color: var(--brand); }
.city-more .icon { width: 18px; height: 18px; transition: transform .2s; }
.city-card:hover .city-more .icon { transform: translateX(4px); }
@media (max-width: 900px) {
	.city-grid { grid-template-columns: 1fr 1fr; }
	.city-grid > .city-card, .city-grid[class] > .city-card { grid-column: span 1; }
	.city-grid.count-5 > .city-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .city-grid { grid-template-columns: 1fr; } .city-grid.count-5 > .city-card:first-child { grid-column: auto; } }

.city-all { margin-top: 36px; padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.city-all-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; }
.city-all-head h3 { margin: 0; font-size: 1.3rem; }
.city-all-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.city-all-head .icon { width: 17px; height: 17px; }
.city-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.city-links a {
	display: flex; align-items: center; gap: 8px; padding: .6em .85em; border-radius: 12px;
	color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background-color .2s, color .2s;
}
.city-links a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.city-links .icon { width: 15px; height: 15px; color: var(--brand); flex: none; }

/* Svi gradovi (hub) */
.region + .region { margin-top: clamp(40px, 5vw, 64px); }
.region-title { display: flex; align-items: center; gap: 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.region-title span { font: 600 .85rem/1 var(--font-body); color: var(--brand); background: var(--brand-soft); padding: .45em .7em; border-radius: 999px; letter-spacing: 0; }
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.region-card {
	display: grid; gap: 6px; align-content: start; padding: 20px 22px; border-radius: var(--radius); background: var(--surface);
	border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.region-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink-2); }
.region-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--brand); }
.region-card-top .icon { width: 20px; height: 20px; }
.region-card-top em { font-style: normal; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--lime); color: var(--ink); padding: .35em .6em; border-radius: 999px; }
.region-card strong { font: 700 1.12rem/1.25 var(--font-head); color: var(--ink); }
.region-card-areas { font-size: .88rem; color: var(--muted); }
.region-card.is-featured { border-color: #d5ddff; background: linear-gradient(135deg, #fff, var(--brand-soft)); }

/* Delatnosti */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.industry { background: var(--surface); padding: 30px; }
.industry h3 { font-size: 1.12rem; display: flex; align-items: center; gap: 10px; }
.industry h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.industry p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .industry-grid { grid-template-columns: 1fr; } }

/* Područja */
.area-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-tags li {
	display: inline-flex; align-items: center; gap: 6px; padding: .55em 1em;
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink);
}
.area-tags .icon { width: 15px; height: 15px; color: var(--brand); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq-item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 20px 24px; cursor: pointer; list-style: none;
	font: 600 1.08rem/1.35 var(--font-head); color: var(--ink); letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; width: 22px; height: 22px; color: var(--brand); transition: transform .25s ease; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 22px; color: var(--muted); }
.faq-answer p { margin: 0; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .section-head { position: static; } }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.section-contact { padding-top: clamp(32px, 5vw, 64px); }
.contact-panel {
	display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 64px);
	background: var(--ink); color: #c9ced8; border-radius: var(--radius-xl);
	padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden;
}
.contact-panel::before {
	content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
	background: radial-gradient(circle, rgba(31, 79, 255, .55), transparent 70%); pointer-events: none;
}
.contact-panel::after {
	content: ""; position: absolute; right: 30%; top: -140px; width: 300px; height: 300px; border-radius: 50%;
	background: radial-gradient(circle, rgba(212, 242, 90, .18), transparent 70%); pointer-events: none;
}
.contact-info { position: relative; z-index: 1; }
.contact-info h2 { color: #fff; }
.contact-info > p { font-size: 1.08rem; }
.eyebrow-light { background: rgba(212, 242, 90, .14); color: var(--lime); }
.check-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.check-list .icon { width: 20px; height: 20px; flex: none; color: var(--success); stroke-width: 2.4; }
.check-list-light li { color: #fff; }
.check-list-light .icon { color: var(--lime); }
.contact-direct { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.contact-direct a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; }
.contact-direct a:hover { color: var(--lime); }
.contact-direct .icon { width: 18px; height: 18px; color: var(--lime); }

.contact-form-wrap { position: relative; z-index: 1; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); color: var(--ink-2); box-shadow: var(--shadow-lg); }
.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	padding: .8em 1em; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg);
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa0aa; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(31, 79, 255, .14); }
.field textarea { resize: vertical; min-height: 110px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.form-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: #fdecea; color: var(--danger); font-weight: 500; }
.form-success { display: flex; gap: 14px; align-items: flex-start; padding: 8px; }
.form-success > .icon { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #e3f5ed; color: var(--success); stroke-width: 2.6; }
.form-success strong { display: block; font: 700 1.25rem/1.3 var(--font-head); color: var(--ink); margin-bottom: 4px; }
.form-success p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .contact-panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .contact-form .btn { white-space: normal; } }

/* Kancelarije */
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.office { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.office h2 { font-size: 1.5rem; }
.office p { margin: 0 0 .4em; }
.office a { font-weight: 600; text-decoration: none; display: inline-block; margin-top: 10px; }
@media (max-width: 680px) { .office-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Strane, sadržaj, blog
   ========================================================================== */
.page-hero { position: relative; padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 20em; }
.page-hero .lead, .page-hero-lead { color: var(--muted); font-size: 1.15rem; max-width: 40em; }
.page-hero-lead p:last-child { margin: 0; }
.post-meta { color: var(--muted); font-size: .95rem; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: .88rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.hero-city .breadcrumbs ol { margin-bottom: clamp(20px, 3vw, 36px); }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.content-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.aside-card h3 { font-size: 1.35rem; }
.aside-card p { color: var(--muted); font-size: .97rem; }
.aside-card .eyebrow { margin-bottom: 14px; }
@media (max-width: 960px) { .content-layout { grid-template-columns: 1fr; } .content-aside { position: static; } }

.prose { font-size: 1.07rem; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin: 1.8em 0 .55em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul { padding: 0; list-style: none; display: grid; gap: .7em; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before {
	content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
	background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1117' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.prose ol { padding-left: 1.3em; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font-size: 1.15rem; color: var(--ink); }
.prose img, .prose figure { border-radius: var(--radius); }
.prose figure { margin: 1.6em 0; }
.prose a { font-weight: 500; }
.prose code { background: var(--tint); padding: .15em .4em; border-radius: 6px; font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .97rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose .alignwide { margin-left: -60px; margin-right: -60px; }
.post-thumb { margin: 0 0 32px; }
.post-thumb img { border-radius: var(--radius-lg); width: 100%; }
.post-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.post-tags a { display: inline-block; padding: .35em .8em; border-radius: 999px; background: var(--tint); color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0; }
.post-navigation a { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; background: var(--surface); }
.post-navigation a span { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.post-navigation .nav-next { text-align: right; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink-2); }
.post-card-img { display: block; aspect-ratio: 16 / 10; background: var(--brand-soft); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-img-empty { display: grid; place-items: center; color: var(--brand); }
.post-card-img-empty .icon { width: 40px; height: 40px; opacity: .6; }
.post-card-body { display: grid; gap: 8px; padding: 22px 24px 26px; }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.post-card-cat { color: var(--brand); font-weight: 600; background: var(--brand-soft); padding: .25em .65em; border-radius: 999px; font-size: .8rem; }

/* Blog na početnoj: 1 istaknut + 4 u listi */
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; text-align: left; }
.section-head-row > div { max-width: 640px; }
.home-posts { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.post-card.is-featured .post-card-img { aspect-ratio: 16 / 9; }
.post-card.is-featured .post-card-body { padding: 26px 30px 32px; }
.post-card.is-featured h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.home-posts-list { display: grid; gap: 14px; grid-template-rows: repeat(4, 1fr); }
.post-card.is-compact .post-card-link { flex-direction: row; align-items: center; }
.post-card.is-compact .post-card-img { flex: none; width: 132px; aspect-ratio: 4 / 3; height: 100%; max-height: 112px; }
.post-card.is-compact .post-card-img-empty .icon { width: 28px; height: 28px; }
.post-card.is-compact .post-card-body { padding: 14px 20px; gap: 6px; }
.post-card.is-compact h3 { font-size: 1.04rem; line-height: 1.3; }
@media (max-width: 960px) { .home-posts { grid-template-columns: 1fr; } .home-posts-list { grid-template-rows: none; } }
@media (max-width: 480px) { .post-card.is-compact .post-card-img { width: 96px; } }

.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cat-chips a { padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .93rem; }
.cat-chips a:hover { border-color: var(--ink); }
.cat-chips a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-card-body h3 { margin: 0; font-size: 1.2rem; }
.post-card-excerpt { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.pagination .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty-state { text-align: center; max-width: 520px; margin: 0 auto; padding: 40px 0; }
.empty-state p { color: var(--muted); }

.page-404 { text-align: center; border: 0; padding: clamp(64px, 10vw, 140px) 0; }
.page-404 h1 { margin: 0 auto .4em; }
.page-404 .lead { margin: 0 auto; }
.page-404 .hero-actions { justify-content: center; }
.big-404 { display: block; font: 800 clamp(5rem, 16vw, 10rem)/1 var(--font-head); letter-spacing: -0.05em; color: var(--brand); opacity: .15; margin-bottom: -.2em; }

/* Komentari */
.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; padding: .7em 1em; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; background: var(--surface); }
.comment-form .submit { background: var(--brand); color: #fff; border: 0; padding: .8em 1.4em; border-radius: 999px; font: 600 1rem var(--font-body); cursor: pointer; }

/* Widgeti */
.widget { margin-bottom: 32px; }
.widget-title { font-size: 1.1rem; }

/* WordPress */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 8px; }
.wp-block-button__link { border-radius: 999px; background: var(--brand); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0 28px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 30em; margin: 16px 0; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.footer-social a:hover { color: var(--brand); }
.footer-col h3 { font: 600 .82rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--brand); }
.footer-col small { display: block; color: var(--muted); font-size: .85rem; }
.footer-col .footer-all { color: var(--brand); font-weight: 600; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--brand); flex: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-menu a, .to-top { color: var(--muted); text-decoration: none; }
.footer-menu a:hover, .to-top:hover { color: var(--brand); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Animacije pri skrolovanju
   ========================================================================== */
.js .reveal { opacity: 0; translate: 0 18px; }
.js .reveal.is-visible { opacity: 1; translate: none; scale: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; translate: none; scale: none; transition: none; }
	.float-card, .eyebrow .dot, .typing::after { animation: none; }
	.spark-line { animation: none; stroke-dashoffset: 0; }
}

/* ==========================================================================
   Animacije (v1.2)
   ========================================================================== */
:root { --ease-out: cubic-bezier(.2, .75, .2, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* Traka napretka */
.scroll-progress {
	position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
	background: linear-gradient(90deg, var(--brand), #6c8cff 60%, var(--lime));
	transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); pointer-events: none;
}

/* Header se sklanja pri skrolu nadole */
.site-header { transition: border-color .25s ease, box-shadow .25s ease, transform .35s var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav-open .site-header { transform: none; }

/* Ulazak hero sekcije */
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-copy > *, .page-hero .container > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > *:nth-child(2), .page-hero .container > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3), .page-hero .container > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4), .page-hero .container > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5), .page-hero .container > *:nth-child(5) { animation-delay: .32s; }
.hero-copy > *:nth-child(6) { animation-delay: .4s; }
.hero-visual { animation: slideIn 1.1s .25s var(--ease-out) both; }
.hero .breadcrumbs { animation: rise .7s var(--ease-out) both; }

/* Marker ispod reči se „iscrtava” */
mark {
	background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 86% / 0% 30%;
	animation: markDraw .9s .75s var(--ease-out) forwards;
}
@keyframes markDraw { to { background-size: 100% 30%; } }

/* 3D nagib SERP kartice prema mišu */
.hero-visual { perspective: 1200px; }
.serp-card {
	transform: rotate(-1deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform .5s var(--ease-out), box-shadow .5s;
	transform-style: preserve-3d;
}
.serp-result.is-top, .local-result.is-top { position: relative; animation: topIn .9s 1s var(--ease-spring) both; }
.serp-result.is-top::after, .local-result.is-top::after {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
	box-shadow: 0 0 0 0 rgba(31, 79, 255, .35); animation: glow 2.8s 2s infinite;
}
@keyframes topIn { from { opacity: 0; transform: translateY(130%) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(31, 79, 255, .35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(31, 79, 255, 0); } }
.serp-line { position: relative; overflow: hidden; }
.serp-line::after {
	content: ""; position: absolute; inset: 0; transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
	animation: shimmer 2.4s 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* Pinovi na mapi padaju */
.map-pin { animation: pinDrop .7s var(--ease-spring) both; }
.map-pin.p1 { animation-delay: 1.1s; }
.map-pin.p2 { animation-delay: 1.3s; }
.map-pin.p3 { animation-delay: 1.45s; }
@keyframes pinDrop { from { opacity: 0; transform: translateY(-40px) rotate(-45deg); } to { opacity: 1; transform: rotate(-45deg); } }
.map-pin.p1::after {
	content: ""; position: absolute; inset: -6px; border-radius: 50% 50% 50% 0; border: 2px solid var(--brand);
	opacity: 0; animation: ping 2.2s 2s infinite;
}
@keyframes ping { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* Pokretna traka */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; font: 700 clamp(1.1rem, 2vw, 1.45rem)/1 var(--font-head); color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.marquee li:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--ink-2); }
.marquee-star { color: var(--brand); font-size: .7em; margin: 0 28px; -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Svetlosni efekat koji prati kursor */
.spot { --mx: -500px; --my: -500px; }
.card.spot, .feature-list li.spot, .process-step.spot, .region-card.spot, .industry.spot, .office.spot, .aside-card.spot, .faq-item.spot {
	background-image: radial-gradient(420px circle at var(--mx) var(--my), rgba(31, 79, 255, .075), transparent 45%);
}
.city-card.spot { background-image: radial-gradient(520px circle at var(--mx) var(--my), rgba(31, 79, 255, .08), transparent 45%); }
.region-card.is-featured.spot { background-image: radial-gradient(420px circle at var(--mx) var(--my), rgba(31, 79, 255, .1), transparent 45%), linear-gradient(135deg, #fff, var(--brand-soft)); }

/* Mikrointerakcije */
.card-icon { transition: background-color .25s, color .25s, transform .45s var(--ease-spring); }
.card:hover .card-icon, .office:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.feature-list li { transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.feature-list li:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-list li > span { transition: transform .45s var(--ease-spring); }
.feature-list li:hover > span { transform: scale(1.12) rotate(-10deg); }
.process-step { transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.process-step:hover .process-num { background: var(--brand); color: #fff; }
.process-num { transition: background-color .25s, color .25s; }
.industry { transition: background-color .3s; }
.industry:hover { background-color: #fcfdff; }
.industry h3::before { transition: transform .35s var(--ease-spring); }
.industry:hover h3::before { transform: scale(1.8); }
.area-tags li { transition: transform .25s var(--ease-out), border-color .25s, background-color .25s; }
.area-tags li:hover { transform: translateY(-2px); border-color: var(--brand); background: var(--brand-soft); }
.city-pin { transition: transform .45s var(--ease-spring), background-color .25s; }
.city-card:hover .city-pin { transform: translateY(-3px) rotate(-8deg); background: var(--brand); }
.post-card-img img { transition: transform .7s var(--ease-out); }
.post-card-link:hover .post-card-img img { transform: scale(1.06); }
.post-card-img-empty .icon { transition: transform .45s var(--ease-spring); }
.post-card-link:hover .post-card-img-empty .icon { transform: scale(1.2) rotate(-6deg); }
.post-card.is-compact .post-card-link { transition: transform .25s var(--ease-out), box-shadow .25s; }
.post-card.is-compact .post-card-link:hover { transform: translateX(6px); }
.site-nav .menu > li > a { position: relative; }

/* Sjaj preko primarnog dugmeta */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-20deg); transition: left .7s var(--ease-out);
}
.btn-primary:hover::after { left: 120%; }
.btn:active { transform: translateY(0) scale(.98); }

/* Linije između koraka procesa se iscrtavaju */
.process-step:not(:last-child)::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s .35s var(--ease-out); }
.process-step.is-visible::after, html:not(.js) .process-step::after { transform: scaleX(1); }

/* FAQ: glatko otvaranje */
.faq-answer { overflow: hidden; }
.faq-item summary { transition: color .2s; }
.faq-item summary:hover { color: var(--brand); }

/* Kontakt panel: blobovi u pokretu */
.contact-panel::before { animation: drift1 14s ease-in-out infinite alternate; }
.contact-panel::after { animation: drift2 17s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, -80px) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-140px, 90px) scale(1.3); } }
.field input, .field textarea { transition: border-color .2s, box-shadow .2s, background-color .2s, transform .2s; }

/* Pojavljivanje pri skrolu – varijante */
.js .reveal.reveal { transition: opacity .8s var(--ease-out) calc(var(--d, 0) * 70ms), translate .8s var(--ease-out) calc(var(--d, 0) * 70ms), scale .8s var(--ease-out) calc(var(--d, 0) * 70ms), filter .8s var(--ease-out) calc(var(--d, 0) * 70ms), transform .3s var(--ease-out), box-shadow .3s, border-color .3s, background-color .3s; filter: blur(4px); }
.js .reveal.is-visible { filter: none; }
.js .reveal-scale { translate: 0 24px; scale: .96; }
.js .reveal-left { translate: -28px 0; }
.js .reveal-right { translate: 28px 0; }

/* Brojke */
.stat strong { font-variant-numeric: tabular-nums; }
.stat { transition: background-color .3s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
	mark { background-size: 100% 30%; }
	.js .reveal { filter: none; }
	.marquee-track { animation: none; }
}
