/* Web majstor - landing stranica Redizajn sajta (/redizajn-sajta/).
   Nadovezuje se na blog.css (pozadina, logo, head, footer, --fd/--fm/--fb/
   --text/--accent varijable). Klase .wm-wd, .wm-svc, .wm-wd-grid, .wm-wd-card
   i .wm-wd-cta su iste vrednosti kao na stranicama Web dizajn/Automatizacija
   (definisane po strani, nisu deljene). Novo ovde: klizač pre/posle (.wm-ba),
   koraci procesa, blok cene i FAQ. Klizač: assets/js/redizajn-sajta.js. */

/* ============ Hero dodatak (CTA ispod podnaslova) ============ */
.wm-rd-hero-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 26px;
	margin: 30px 0 0;
}

/* Tekstualni link sa akcentom (strelica u tekstu) */
.wm-rd-link {
	font-family: var(--fm);
	font-size: 13px;
	letter-spacing: 0.06em;
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-underline-offset: 4px;
	transition: color 0.2s;
}
.wm-rd-link:hover {
	color: var(--accent);
}

/* ============ Sekcija usluge (kontejner) ============ */
.wm-wd {
	max-width: 1080px;
	margin: 0 auto;
	padding: 12px 24px 0;
}

.wm-svc {
	padding: 64px 0 72px;
	border-bottom: 1px solid var(--border);
}
.wm-svc:last-child { border-bottom: 0; }

.wm-svc-head {
	display: flex;
	align-items: baseline;
	gap: 18px;
	margin-bottom: 28px;
}
.wm-svc-num {
	font-family: var(--fm);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--accent);
}
.wm-svc-title {
	font-family: var(--fd);
	font-size: clamp(2.2rem, 6vw, 4rem);
	line-height: 0.95;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--text);
	margin: 0;
}

.wm-svc-text p {
	font-family: var(--fm);
	font-size: clamp(0.88rem, 1.6vw, 1rem);
	line-height: 1.85;
	color: var(--text-mid);
	max-width: 62ch;
	margin: 0 0 18px;
}
.wm-svc-text strong {
	color: var(--text);
	font-weight: 500;
}

/* ============ 01 · Pre i posle (klizač) ============ */
/* --pos = položaj klizača (0-100%); levo je „pre", desno „posle". Bez JS-a
   ostaje 50% (inline stil), pa se obe verzije svejedno vide. */
.wm-ba {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--border-hi);
	border-radius: 6px;
	background: #141414;
	margin: 8px 0 0;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	touch-action: pan-y; /* vertikalno = skrol stranice, horizontalno = klizač (JS) */
	cursor: ew-resize;
}
.wm-ba-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}
.wm-ba-after {
	position: absolute;
	inset: 0;
	clip-path: inset(0 0 0 var(--pos));
}
.wm-ba-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 2px;
	margin-left: -1px;
	background: var(--accent);
	pointer-events: none;
}
.wm-ba-handle::after {
	content: "‹ ›";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--fm);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: #0a0a0a;
	background: var(--accent);
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.wm-ba-tag {
	position: absolute;
	top: 14px;
	font-family: var(--fm);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #f0ede6;
	background: rgba(10, 10, 10, 0.78);
	border: 1px solid rgba(240, 237, 230, 0.2);
	border-radius: 3px;
	padding: 6px 10px;
	pointer-events: none;
}
.wm-ba-tag--pre { left: 14px; }
.wm-ba-tag--posle {
	right: 14px;
	color: #0a0a0a;
	background: var(--accent);
	border-color: var(--accent);
}
/* Nevidljiv range preko slike: samo tastatura (strelice) i čitači ekrana.
   pointer-events: none, jer na telefonu range reaguje samo na tap, ne i na
   prevlačenje; miš i prst obrađuje JS (pointer događaji na .wm-ba). */
.wm-ba-range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
}
.wm-ba-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 44px;
	height: 100%;
	cursor: ew-resize;
}
.wm-ba-range::-moz-range-thumb {
	width: 44px;
	height: 100%;
	border: 0;
	cursor: ew-resize;
}
.wm-ba:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.wm-rd-changes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 10px 28px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}
.wm-rd-changes li {
	position: relative;
	font-family: var(--fm);
	font-size: 0.84rem;
	line-height: 1.7;
	color: var(--text-mid);
	padding-left: 22px;
}
.wm-rd-changes li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--accent);
	font-weight: 700;
}
.wm-rd-more {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin: 26px 0 0;
}

/* ============ Kartice (02 znaci, 03 šta dobijate) ============ */
.wm-wd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wm-wd-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 22px 22px 20px;
	transition: border-color 0.28s, transform 0.28s;
}
.wm-wd-card:hover {
	border-color: var(--accent);
	transform: translateY(-3px);
}
.wm-wd-card h3 {
	font-family: var(--fd);
	font-size: 1.5rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text);
	margin: 0 0 10px;
}
.wm-wd-card p {
	font-family: var(--fm);
	font-size: 0.84rem;
	line-height: 1.75;
	color: var(--text-dim);
	margin: 0;
}

/* ============ 04 · Proces (koraci) ============ */
.wm-rd-steps {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.wm-rd-step {
	display: grid;
	grid-template-columns: 64px 1fr;
	grid-template-rows: auto auto;
	column-gap: 18px;
	padding: 22px 0;
	border-top: 1px solid var(--border);
}
.wm-rd-step:last-child {
	border-bottom: 1px solid var(--border);
}
.wm-rd-step-num {
	grid-row: 1 / span 2;
	font-family: var(--fd);
	font-size: 2.6rem;
	line-height: 1;
	color: var(--accent);
}
.wm-rd-step h3 {
	font-family: var(--fd);
	font-size: 1.5rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text);
	margin: 0 0 6px;
}
.wm-rd-step p {
	font-family: var(--fm);
	font-size: 0.86rem;
	line-height: 1.75;
	color: var(--text-dim);
	max-width: 70ch;
	margin: 0;
}
.wm-rd-step a {
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-underline-offset: 3px;
}

/* ============ 05 · Cena (po proceni) ============ */
.wm-rd-price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 40px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: 6px;
	padding: 28px 28px 10px;
}
.wm-rd-price .wm-svc-text {
	flex: 1 1 420px;
}
.wm-rd-price .wm-wd-cta-btn {
	margin: 0 0 18px;
}

/* ============ 06 · Česta pitanja (isti izgled kao FAQ na Cenovniku) ============ */
.wm-rd-faq-item {
	border-bottom: 1px solid var(--border);
}
.wm-rd-faq-item:first-child {
	border-top: 1px solid var(--border);
}
.wm-rd-faq-q {
	position: relative;
	list-style: none;
	cursor: pointer;
	font-family: var(--fb);
	font-size: 1.05rem;
	line-height: 1.5;
	color: var(--text);
	padding: 20px 44px 20px 0;
	transition: color 0.2s;
}
.wm-rd-faq-q::-webkit-details-marker {
	display: none;
}
.wm-rd-faq-q:hover,
.wm-rd-faq-item[open] .wm-rd-faq-q {
	color: var(--accent);
}
.wm-rd-faq-q::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 14px;
	height: 14px;
	background:
		linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat,
		linear-gradient(var(--accent), var(--accent)) center / 2px 14px no-repeat;
	transform: translateY(-50%);
	transition: transform 0.25s;
}
.wm-rd-faq-item[open] .wm-rd-faq-q::after {
	transform: translateY(-50%) rotate(45deg);
}
.wm-rd-faq-a {
	padding: 0 44px 22px 0;
}
.wm-rd-faq-a p {
	font-family: var(--fb);
	font-size: 0.98rem;
	line-height: 1.75;
	color: rgba(240, 237, 230, 0.82);
	margin: 0;
	max-width: 70ch;
}

/* ============ Finale - CTA ============ */
.wm-wd-cta {
	padding: 88px 24px 110px;
	text-align: center;
}
.wm-wd-cta-inner {
	max-width: 620px;
	margin: 0 auto;
}
.wm-wd-cta-title {
	font-family: var(--fd);
	font-size: clamp(1.9rem, 5.5vw, 3.2rem);
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--text);
	margin: 0 0 16px;
}
.wm-wd-cta-text {
	font-family: var(--fm);
	font-size: clamp(0.85rem, 1.6vw, 0.98rem);
	line-height: 1.75;
	color: var(--text-mid);
	margin: 0 0 36px;
}
.wm-wd-cta-btn {
	display: inline-block;
	font-family: var(--fm);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text);
	background: var(--accent);
	border-radius: 999px;
	padding: 16px 34px;
	transition: transform 0.24s, box-shadow 0.24s;
}
.wm-wd-cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(207, 46, 46, 0.35);
}

/* ============ Reveal (bez JS-a) ============ */
@media (prefers-reduced-motion: no-preference) {
	.wm-rd-hero-cta,
	.wm-ba,
	.wm-wd-card,
	.wm-rd-step {
		animation: wm-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
}

/* ============ Mobilno ============ */
@media screen and (max-width: 767px) {
	.wm-wd { padding-left: 20px; padding-right: 20px; }
	.wm-svc { padding: 44px 0 52px; }
	.wm-wd-cta { padding: 64px 20px 80px; }
	.wm-ba-tag { top: 10px; font-size: 10px; padding: 5px 8px; }
	.wm-ba-tag--pre { left: 10px; }
	.wm-ba-tag--posle { right: 10px; }
	.wm-ba-handle::after { width: 38px; height: 38px; font-size: 14px; }
	.wm-rd-step { grid-template-columns: 48px 1fr; column-gap: 12px; }
	.wm-rd-step-num { font-size: 2.1rem; }
	.wm-rd-price { padding: 22px 20px 6px; }
	.wm-rd-price .wm-wd-cta-btn { width: 100%; text-align: center; box-sizing: border-box; }
}
