/* ---------- Fonts (self-hosted) ---------- */

@font-face {
	font-family: "Big Shoulders Display";
	font-style: normal;
	font-weight: 700 900;
	font-display: swap;
	src: url("../fonts/BigShouldersDisplay-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: "Big Shoulders Display";
	font-style: normal;
	font-weight: 700 900;
	font-display: swap;
	src: url("../fonts/BigShouldersDisplay-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+2113;
}
@font-face {
	font-family: "Public Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/PublicSans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: "Public Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/PublicSans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+2113;
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/IBMPlexMono-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/IBMPlexMono-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+2113;
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/IBMPlexMono-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/IBMPlexMono-500-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+2113;
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/IBMPlexMono-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/IBMPlexMono-600-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+2113;
}

/* ---------- Tokens ---------- */

:root {
	--paper: #eef0ea;
	--paper-deep: #e1e4da;
	--ink: #1b1e1c;
	--ink-muted: #52594f;
	--graphite: #2a2f30;
	--graphite-deep: #17191a;
	--steel: #9aa39a;
	/* Copper tonovi su podeljeni po nameni da bi tekst prosao WCAG AA (4.5:1):
	   --copper        pozadina dugmeta (tekst --paper)        4.80:1
	   --copper-deep   sitan tekst na svetloj podlozi          7.07:1
	   --copper-light  sitan tekst na tamnoj podlozi           5.78:1
	   --copper-bright samo za linije, ikonice i okvire (UI, prag je 3:1) */
	--copper: #a84f26;
	--copper-deep: #833a1c;
	--copper-light: #e8956a;
	--copper-bright: #cc6a37;
	--line: rgb(27 30 28 / 0.14);
	--line-dark: rgb(238 240 234 / 0.16);
	--ease: cubic-bezier(0.16, 0.8, 0.24, 1);
	/* Visina headera na vrhu stranice. Hero od nje racuna svoju visinu, pa mora
	   da bude zajednicka konstanta - ne sme da koristi --header-h, jer se ta
	   vrednost smanjuje pri skrolu i hero bi se pomerao ispod prsta. */
	--header-h-top: 4.5rem;
}

@property --bracket-l {
	syntax: "<length>";
	inherits: false;
	initial-value: 16px;
}

/* ---------- Reset ---------- */

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

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

/* Mek skrol izmedju sekcija na istoj stranici. Iskljucen kada korisnik trazi
   smanjeno kretanje - klizanje celog ekrana je cest okidac za vrtoglavicu. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: none;
	cursor: pointer;
}

svg {
	display: block;
}

* {
	scrollbar-color: var(--steel) transparent;
}

body {
	font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	background-color: var(--paper);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}

::selection {
	background: var(--copper);
	color: var(--paper);
}

:focus-visible {
	outline: 2px solid var(--copper);
	outline-offset: 3px;
	border-radius: 2px;
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
::-webkit-scrollbar-track {
	background: transparent;
}
::-webkit-scrollbar-thumb {
	background: var(--steel);
	border: 2px solid var(--paper);
	border-radius: 999px;
}

/* ---------- Layout ---------- */

.wrapper {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 76rem;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}
@media (min-width: 40rem) {
	.wrapper {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}
@media (min-width: 64rem) {
	.wrapper {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
}

.section {
	padding-block: clamp(3.5rem, 3rem + 3vw, 6rem);
}
/* Sticky header je visok 4rem - bez ovoga skok na #kontakt sakrije naslov. */
:target,
main[id],
section[id] {
	scroll-margin-top: 5rem;
}
.section--dark {
	background: var(--graphite);
	color: var(--paper);
}
.section--darkest {
	background: var(--graphite-deep);
	color: var(--paper);
}
.section--rule {
	border-block: 1px solid var(--line);
	background: #fff;
}


.stack {
	display: flex;
	flex-direction: column;
}
.cluster {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

/* ---------- Typography ---------- */

.font-display {
	font-family: "Big Shoulders Display", system-ui, sans-serif;
	letter-spacing: -0.02em;
	line-height: 0.98;
}
.font-mono {
	font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
	font-variant-numeric: tabular-nums;
}

.h1 {
	font-family: "Big Shoulders Display", system-ui, sans-serif;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 0.98;
	font-size: clamp(2.5rem, 2rem + 3vw, 4.25rem);
	color: var(--ink);
}
.h2 {
	font-family: "Big Shoulders Display", system-ui, sans-serif;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.02;
	font-size: clamp(1.875rem, 1.6rem + 1.6vw, 2.75rem);
}
.h3 {
	font-family: "Big Shoulders Display", system-ui, sans-serif;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.08;
	font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem);
}

.lede {
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
	line-height: 1.65;
	color: var(--ink-muted);
}
.on-dark .lede,
.section--dark .lede,
.section--darkest .lede {
	color: var(--steel);
}

.measure {
	max-width: 42em;
}

.eyebrow-mono {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--copper-deep);
}
.on-dark .eyebrow-mono,
.section--dark .eyebrow-mono,
.section--darkest .eyebrow-mono {
	color: var(--copper-light);
}

/* ---------- Dimension-line divider (signature motif) ---------- */

.dim-rule {
	display: block;
	width: 100%;
	height: 14px;
	color: var(--ink);
	opacity: 0.55;
}
.dim-rule svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}
.dim-rule line {
	stroke: currentColor;
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}
.dim-rule.on-dark {
	color: var(--steel);
	opacity: 0.65;
}
.dim-rule.accent {
	color: var(--copper);
	opacity: 1;
}
.dim-rule.draw line {
	stroke-dasharray: 420;
	stroke-dashoffset: 420;
}

@media (prefers-reduced-motion: no-preference) {
}
@keyframes draw-line {
	to {
		stroke-dashoffset: 0;
	}
}
@keyframes enter-up {
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */

[data-reveal] {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: no-preference) {
	/* Scoped to .js (set by scripts/reveal.js once it runs) so content
	   stays visible by default if the script never loads or fails. */
	.js [data-reveal] {
		opacity: 0;
		transform: translateY(18px);
		transition:
			opacity 0.7s var(--ease),
			transform 0.7s var(--ease);
	}
	.js [data-reveal].is-visible {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Tech panel: corner-bracket framing instead of cards ---------- */

.tech-panel {
	position: relative;
	--bracket-l: 16px;
	--bracket-c: var(--line);
}
.tech-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	transition: --bracket-l 0.25s var(--ease);
	background:
		linear-gradient(var(--bracket-c), var(--bracket-c)) top left / var(--bracket-l) 2px no-repeat,
		linear-gradient(var(--bracket-c), var(--bracket-c)) top left / 2px var(--bracket-l) no-repeat,
		linear-gradient(var(--bracket-c), var(--bracket-c)) top right / var(--bracket-l) 2px no-repeat,
		linear-gradient(var(--bracket-c), var(--bracket-c)) top right / 2px var(--bracket-l) no-repeat,
		linear-gradient(var(--bracket-c), var(--bracket-c)) bottom left / var(--bracket-l) 2px no-repeat,
		linear-gradient(var(--bracket-c), var(--bracket-c)) bottom left / 2px var(--bracket-l) no-repeat,
		linear-gradient(var(--bracket-c), var(--bracket-c)) bottom right / var(--bracket-l) 2px no-repeat,
		linear-gradient(var(--bracket-c), var(--bracket-c)) bottom right / 2px var(--bracket-l) no-repeat;
}
.tech-panel.is-interactive:hover,
.tech-panel.is-interactive:focus-within {
	--bracket-c: var(--copper);
	--bracket-l: 22px;
}
.tech-panel.on-dark {
	--bracket-c: var(--line-dark);
}
.tech-panel.on-dark.is-interactive:hover,
.tech-panel.on-dark.is-interactive:focus-within {
	--bracket-c: var(--copper-bright);
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.01em;
	padding: 0.85rem 1.35rem;
	border-radius: 3px;
	transition:
		background-color 0.2s var(--ease),
		color 0.2s var(--ease),
		border-color 0.2s var(--ease),
		transform 0.2s var(--ease);
}
.btn:active {
	transform: translateY(1px);
}
.btn-primary {
	background: var(--copper);
	color: var(--paper);
}
.btn-primary:hover {
	background: var(--copper-deep);
}
.btn-outline {
	border: 1px solid var(--line);
	color: var(--ink);
}
.btn-outline:hover {
	border-color: var(--ink);
}
.btn-outline.on-dark {
	border-color: var(--line-dark);
	color: var(--paper);
}
.btn-outline.on-dark:hover {
	border-color: var(--paper);
}
.btn--block {
	justify-content: center;
	width: 100%;
}

/* ---------- Utility ---------- */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------- Skip link (WCAG 2.4.1) ---------- */

.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	padding: 0.85rem 1.35rem;
	background: var(--copper);
	color: var(--paper);
	font-weight: 700;
	font-size: 0.875rem;
	border-radius: 0 0 3px 0;
	transform: translateY(-110%);
	transition: transform 0.2s var(--ease);
}
.skip-link:focus {
	transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
	--header-h: var(--header-h-top);
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--graphite);
	border-bottom: 1px solid var(--line-dark);
	transition:
		background-color 0.3s var(--ease),
		border-color 0.3s var(--ease),
		box-shadow 0.3s var(--ease);
}
/* Kondenzuje se i postaje providan tek kada se skroluje (klasu dodaje nav.js). */
.site-header.is-scrolled {
	--header-h: 3.75rem;
	background: rgb(42 47 48 / 0.86);
	border-bottom-color: rgb(238 240 234 / 0.1);
	box-shadow: 0 1px 24px rgb(0 0 0 / 0.3);
}
/* Zamucenje ide na pseudoelement, NE na .site-header. Element sa
   backdrop-filter postaje containing block za position:fixed potomke, pa bi
   mobilni meni (fixed) bio pozicioniran u odnosu na header umesto na ekran -
   nestao bi cim se stranica skroluje. */
@supports (backdrop-filter: blur(1px)) {
	.site-header::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		opacity: 0;
		backdrop-filter: blur(14px) saturate(1.3);
		transition: opacity 0.3s var(--ease);
	}
	.site-header.is-scrolled::before {
		opacity: 1;
	}
}
.site-header .wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: var(--header-h);
	transition: height 0.3s var(--ease);
}
.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* ---------- Logo ---------- */

.logo {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--paper);
}
.logo__mark {
	display: block;
	transition: transform 0.3s var(--ease);
}
.logo:hover .logo__mark {
	transform: rotate(45deg);
}
.logo__inner {
	transition: stroke 0.25s var(--ease);
}
.logo:hover .logo__inner {
	stroke: var(--copper-light);
}
.logo__text {
	font-family: "Big Shoulders Display", system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}
.logo__text-alt {
	color: var(--steel);
}

/* ---------- Poziv u headeru ---------- */

.header-call {
	padding: 0.7rem 1.15rem;
	white-space: nowrap;
}
@media (max-width: 63.999rem) {
	/* Na uskom ekranu ostaje samo ikonica - tekst bi gurao logo (na telefonu)
	   ili meni (do 64rem) van ekrana. Labela ostaje u DOM-u da dugme zadrzi
	   pristupacno ime. */
	.header-call {
		width: 2.75rem;
		height: 2.75rem;
		padding: 0;
		justify-content: center;
	}
	.header-call__label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* ---------- Hamburger ---------- */

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--paper);
	border: 1px solid var(--line-dark);
	border-radius: 3px;
	transition:
		border-color 0.2s var(--ease),
		background-color 0.2s var(--ease);
}
.nav-toggle:hover {
	border-color: var(--paper);
}
.nav-toggle[aria-expanded="true"] {
	background: rgb(238 240 234 / 0.08);
	border-color: rgb(238 240 234 / 0.3);
}
.nav-toggle[hidden] {
	display: none;
}
@media (min-width: 50rem) {
	.nav-toggle {
		display: none;
	}
}
.nav-toggle__bars {
	position: relative;
	width: 18px;
	height: 12px;
}
.nav-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.8px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.3s var(--ease);
}
.nav-toggle__bars span:first-child {
	top: 0;
}
.nav-toggle__bars span:last-child {
	bottom: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
	transform: translateY(5.1px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
	transform: translateY(-5.1px) rotate(-45deg);
}

/* ---------- Navigacija ---------- */

.nav {
	display: none;
	align-items: center;
	gap: clamp(1rem, 0.4rem + 1.2vw, 1.75rem);
}

/* Ispod 50rem nav je preko celog ekrana. Dugme koje ga otvara je u HTML-u
   [hidden]; scripts/nav.js ga otkriva, pa bez JS-a nema mrtvog kontrolnog
   elementa - navigacija se tada jednostavno ne prikazuje. */
@media (max-width: 49.999rem) {
	.nav {
		display: flex;
		position: fixed;
		inset: var(--header-h) 0 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 1.25rem 1.25rem 2rem;
		background: var(--graphite-deep);
		overflow-y: auto;
		overscroll-behavior: contain;
		visibility: hidden;
		opacity: 0;
		transition:
			opacity 0.28s var(--ease),
			visibility 0.28s var(--ease);
	}
	.nav.is-open {
		visibility: visible;
		opacity: 1;
	}
	.nav .nav-link {
		display: flex;
		align-items: baseline;
		gap: 1rem;
		padding: 1.05rem 0;
		border-bottom: 1px solid rgb(238 240 234 / 0.09);
		color: var(--paper);
	}
	.nav .nav-link__index {
		font-family: "IBM Plex Mono", monospace;
		font-size: 0.7rem;
		font-weight: 600;
		letter-spacing: 0.08em;
		color: var(--copper-light);
	}
	.nav .nav-link__text {
		font-family: "Big Shoulders Display", system-ui, sans-serif;
		font-weight: 700;
		font-size: 1.75rem;
		letter-spacing: -0.01em;
		line-height: 1;
		text-transform: uppercase;
	}
	.nav .nav-link::after {
		display: none;
	}
	.nav-foot {
		margin-top: auto;
		padding-top: 2rem;
	}
	.nav-facts {
		display: grid;
		gap: 1rem;
		margin-top: 1.5rem;
		padding-top: 1.5rem;
		border-top: 1px solid rgb(238 240 234 / 0.09);
	}
	.nav-facts dt {
		font-family: "IBM Plex Mono", monospace;
		font-size: 0.65rem;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--steel);
	}
	.nav-facts dd {
		margin-top: 0.15rem;
		font-size: 0.9375rem;
		color: var(--paper);
	}
}
@media (min-width: 50rem) {
	.nav {
		display: flex;
	}
	.nav-link__index,
	.nav-foot {
		display: none;
	}
}

/* Ulazak stavki - tek kada je meni otvoren, sa kaskadom. */
@media (max-width: 49.999rem) and (prefers-reduced-motion: no-preference) {
	.nav.is-open .nav-link,
	.nav.is-open .nav-foot {
		animation: nav-item-in 0.45s var(--ease) backwards;
	}
	.nav.is-open .nav-link:nth-of-type(1) { animation-delay: 0.04s; }
	.nav.is-open .nav-link:nth-of-type(2) { animation-delay: 0.08s; }
	.nav.is-open .nav-link:nth-of-type(3) { animation-delay: 0.12s; }
	.nav.is-open .nav-link:nth-of-type(4) { animation-delay: 0.16s; }
	.nav.is-open .nav-link:nth-of-type(5) { animation-delay: 0.2s; }
	.nav.is-open .nav-foot { animation-delay: 0.24s; }
}
@keyframes nav-item-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

.nav-link {
	position: relative;
	padding-bottom: 3px;
	white-space: nowrap;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--steel);
	transition: color 0.2s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible {
	color: var(--paper);
}
.nav-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1.5px;
	background: var(--copper-bright);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--ease);
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
	transform: scaleX(1);
}
/* Stranica na kojoj se korisnik trenutno nalazi. */
.nav-link[aria-current="page"] {
	color: var(--paper);
}
.nav-link[aria-current="page"]::after {
	transform: scaleX(1);
}

/* Zakljucavanje skrola dok je meni otvoren. */
.nav-lock,
.nav-lock body {
	overflow: hidden;
}
/* overflow:hidden na <html> ukida scrollport, pa position:sticky prestaje da
   vazi i header odskoci na svoj polozaj u dokumentu - nestane sa ekrana.
   Dok je meni otvoren header se zato drzi fiksno za viewport. */
.nav-lock .site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

/* ---------- Hero slider ---------- */

.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	/* Tacno jedan ekran: header + hero. svh (a ne vh) da adresna traka na
	   telefonu ne odsece dno; na kratkim ekranima sadrzaj svejedno rasteze hero. */
	min-height: calc(100vh - var(--header-h-top));
	min-height: calc(100svh - var(--header-h-top));
	/* Razmak je namerno mali: visinu odredjuje min-height, a align-items:center
	   centrira sadrzaj. Veci razmak bi na niskim ekranima (720p) gurao hero
	   preko jednog ekrana. */
	padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
	background: var(--graphite-deep);
	color: var(--paper);
	overflow: hidden;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}
.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.9s var(--ease);
}
.hero__slide.is-active {
	opacity: 1;
}
.hero__slide picture,
.hero__slide img {
	display: block;
	width: 100%;
	height: 100%;
}
.hero__slide img {
	object-fit: cover;
	/* Kuca je u desnoj polovini kadra - drzimo je u vidnom polju dok tekst
	   pokriva levu stranu. Na uskom ekranu kadar se pomera jos vise udesno. */
	object-position: 72% 60%;
}
@media (min-width: 50rem) {
	.hero__slide img {
		object-position: 60% 58%;
	}
}

/* Blagi Ken Burns samo na aktivnom slajdu. */
@media (prefers-reduced-motion: no-preference) {
	.hero__slide img {
		transform: scale(1.06);
		transition: transform 9s linear;
	}
	.hero__slide.is-active img {
		transform: scale(1);
	}
}

/* Zastor koji nosi kontrast teksta - vertikalan na mobilnom, bocni na desktopu. */
.hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgb(23 25 26 / 0.62) 0%,
		rgb(23 25 26 / 0.76) 40%,
		rgb(23 25 26 / 0.9) 70%,
		rgb(23 25 26 / 0.96) 100%
	);
}
@media (min-width: 50rem) {
	.hero__scrim {
		background:
			linear-gradient(
				100deg,
				rgb(23 25 26 / 0.95) 0%,
				rgb(23 25 26 / 0.9) 30%,
				rgb(23 25 26 / 0.6) 55%,
				rgb(23 25 26 / 0.2) 78%,
				rgb(23 25 26 / 0.08) 100%
			),
			linear-gradient(
				0deg,
				rgb(23 25 26 / 0.72) 0%,
				rgb(23 25 26 / 0.42) 22%,
				rgb(23 25 26 / 0.12) 45%,
				transparent 62%
			);
	}
}

.hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: clamp(2.5rem, 2rem + 4vw, 4.5rem);
	width: 100%;
}
.hero__copy {
	max-width: 40rem;
}

.hero__lede {
	margin-top: 1.25rem;
	max-width: 34rem;
	color: rgb(238 240 234 / 0.82);
}

.hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--paper);
}
.hero__eyebrow::before {
	content: "";
	flex: none;
	width: 1.75rem;
	height: 2px;
	background: var(--copper-light);
}
.hero__title {
	margin-top: 1rem;
	color: var(--paper);
	text-wrap: balance;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

/* ---------- Kontrole slajdera ---------- */

.hero__ui {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	max-width: 26rem;
}
.hero__ui[hidden] {
	display: none;
}
.hero__count {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	color: rgb(238 240 234 / 0.55);
}
.hero__count-now {
	font-size: 0.95rem;
	color: var(--paper);
}
.hero__bar {
	position: relative;
	flex: 1;
	height: 2px;
	background: rgb(238 240 234 / 0.18);
	overflow: hidden;
	transition: opacity 0.3s var(--ease);
}
/* Kada korisnik preuzme kontrolu strelicama, traka nema sta da odbrojava. */
.hero__bar.is-idle {
	opacity: 0.35;
}
.hero__bar span {
	position: absolute;
	inset: 0 auto 0 0;
	width: 100%;
	background: var(--copper-light);
	transform: scaleX(0);
	transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
	.hero__bar.is-running span {
		animation: hero-bar var(--hero-delay, 5.5s) linear forwards;
	}
	/* Pauza zamrzava traku tamo gde je stigla; bez ovoga bi skakala na nulu. */
	.hero__bar.is-paused span {
		animation-play-state: paused;
	}
}
@keyframes hero-bar {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}
.hero__nav {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--paper);
	border: 1px solid rgb(238 240 234 / 0.22);
	border-radius: 50%;
	transition:
		border-color 0.2s var(--ease),
		background-color 0.2s var(--ease);
}
.hero__btn:hover {
	border-color: var(--paper);
	background: rgb(238 240 234 / 0.1);
}

/* Ulazna animacija sadrzaja hero sekcije. */
@media (prefers-reduced-motion: no-preference) {
	.hero__copy > * {
		animation: enter-up 0.75s var(--ease) backwards;
	}
	.hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
	.hero__copy > *:nth-child(2) { animation-delay: 0.13s; }
	.hero__copy > *:nth-child(3) { animation-delay: 0.21s; }
	.hero__copy > *:nth-child(4) { animation-delay: 0.29s; }
	.hero__copy > *:nth-child(5) { animation-delay: 0.37s; }
}
@keyframes enter-up {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

/* ---------- Comparison panel (PVC vs ALU) ---------- */

.compare {
	display: grid;
	border: 1px solid var(--line-dark);
	margin-top: 2.5rem;
}
.compare-col {
	padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
}
.compare-divider {
	background: var(--line-dark);
	display: none;
}
/* Kolone jedna pored druge dele redove (subgrid), pa isti kriterijum stoji u istoj
   visini i kad je tekst u jednoj koloni duzi. 7 redova = oznaka + naslov + 5 redova
   poredjenja - menjati kad se doda ili ukloni red. */
@media (min-width: 50rem) {
	.compare {
		grid-template-columns: 1fr 1px 1fr;
		grid-template-rows: repeat(7, auto);
	}
	.compare-col {
		display: grid;
		grid-row: 1 / -1;
		grid-template-rows: subgrid;
	}
	.compare-divider {
		display: block;
		grid-row: 1 / -1;
	}
}
.compare-row {
	display: flex;
	gap: 0.85rem;
	padding: 0.9rem 0;
	border-top: 1px solid var(--line-dark);
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgb(238 240 234 / 0.85);
}
.compare-row:first-of-type {
	margin-top: 1.25rem;
	border-top: none;
}
.compare-row .tag {
	flex: none;
	width: 5.5rem;
	padding-top: 0.2rem;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--copper-bright);
}
/* ---------- O nama ---------- */

.about {
	display: grid;
	gap: clamp(2rem, 1.5rem + 3vw, 4rem);
	align-items: start;
}
@media (min-width: 60rem) {
	.about {
		grid-template-columns: 1.15fr 0.85fr;
	}
}
.about__intro .lede {
	max-width: 38rem;
}
.about__materials {
	display: grid;
	gap: 1.25rem;
}
/* Na tabletu kartice idu jedna pored druge; na desktopu su u koloni desno. */
@media (min-width: 40rem) and (max-width: 59.999rem) {
	.about__materials {
		grid-template-columns: 1fr 1fr;
	}
}
.about-card {
	padding: 1.75rem 1.5rem;
	background: var(--paper);
}
.about-card .h3 {
	margin-top: 0.4rem;
}
.about-card__text {
	margin-top: 0.6rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--ink-muted);
}

/* ---------- Offer grid (kompletna ponuda) ---------- */

/* Sest kolona: velike kartice zauzimaju po tri, male po dve. */
.offer-grid {
	display: grid;
	gap: 3rem 1.75rem;
	margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
@media (min-width: 40rem) {
	.offer-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
	.offer-card {
		grid-column: span 2;
	}
	.offer-card--velika {
		grid-column: span 3;
	}
}

.offer-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.offer-card__slika {
	width: 100%;
	aspect-ratio: 3 / 2;
	margin-bottom: 1.25rem;
	overflow: hidden;
	background: var(--paper-deep);
}
.offer-card--velika .offer-card__slika {
	aspect-ratio: 5 / 4;
}
.offer-card__slika picture,
.offer-card__slika img {
	width: 100%;
	height: 100%;
}
.offer-card__slika img {
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}
/* Uspravna fotografija u sirokom kadru: pomeramo ga nagore da se vide kutije roletni. */
.offer-card__slika--roletne img {
	object-position: 50% 22%;
}
@media (prefers-reduced-motion: no-preference) {
	.offer-card:hover .offer-card__slika img {
		transform: scale(1.03);
	}
}

.offer-card:not(.offer-card--velika) .h3 {
	font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
}
.offer-card p {
	max-width: 32em;
	margin-top: 0.5rem;
	margin-bottom: 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--ink-muted);
}

/* Veza ka stranici. ::after pokriva celu karticu, pa je klikabilna i slika. */
.offer-card__link {
	display: inline-flex;
	gap: 0.4rem;
	margin-top: auto;
	padding-bottom: 0.2rem;
	border-bottom: 1px solid currentColor;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ink);
	transition: color 0.2s var(--ease);
}
.offer-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}
.offer-card:hover .offer-card__link,
.offer-card__link:focus-visible {
	color: var(--copper-deep);
}

.offer-icon {
	width: 3.5rem;
	height: 3.5rem;
	color: var(--ink);
	opacity: 0.9;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition:
		color 0.25s var(--ease),
		opacity 0.25s var(--ease);
}
.offer-icon .hair {
	stroke-width: 0.85;
	opacity: 0.5;
}
.offer-icon .bar {
	stroke-width: 2.4;
}
.offer-card:hover .offer-icon,
.offer-card:focus-within .offer-icon {
	color: var(--copper);
	opacity: 1;
}

/* ---------- Contact ---------- */

.contact-grid {
	display: grid;
	gap: 2.5rem;
}
@media (min-width: 64rem) {
	.contact-grid {
		grid-template-columns: 1fr 1fr;
	}
}
.contact-facts {
	margin-top: 2rem;
	display: grid;
	gap: 1.25rem;
}
@media (min-width: 30rem) {
	.contact-facts {
		grid-template-columns: 1fr 1fr;
	}
}
.contact-facts dt {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--steel);
}
.contact-facts dd {
	margin-top: 0.25rem;
	font-size: 1rem;
}
.contact-facts dd a:hover {
	color: var(--copper-bright);
}

.form {
	display: grid;
	gap: 1.25rem;
	padding: 1.5rem;
}
@media (min-width: 40rem) {
	.form {
		padding: 1.75rem;
	}
}
.field {
	display: grid;
	gap: 0.4rem;
}
.field-label {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--steel);
}
.field-input {
	background: var(--paper);
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 2px;
	padding: 0.8rem 1rem;
	font-size: 0.9375rem;
	transition: border-color 0.2s var(--ease);
}
.field-input::placeholder {
	color: var(--ink-muted);
	opacity: 0.7;
}
.field-input:focus {
	border-color: var(--copper);
}
textarea.field-input {
	min-height: 7rem;
	resize: vertical;
}
/* Mamac za botove (Web3Forms botcheck) - ljudi ga ne vide. */
.form-honeypot {
	display: none;
}
.form-status {
	min-height: 1.5em;
	font-size: 0.9375rem;
}
.form-status.is-error {
	color: var(--copper-light);
}
.form-status.is-ok {
	color: #a8d5b0;
}

/* ---------- Cesta pitanja ---------- */

.faq {
	display: grid;
	gap: clamp(2rem, 1.5rem + 3vw, 4rem);
	align-items: start;
}
@media (min-width: 60rem) {
	.faq {
		grid-template-columns: 0.8fr 1.2fr;
	}
	.faq__intro {
		position: sticky;
		top: 6rem;
	}
}
.faq__more {
	margin-top: 1.5rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--ink-muted);
}
/* Link u tekstu (koriste ga pocetna i stranice proizvoda). */
.text-link {
	font-weight: 600;
	color: var(--copper-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.section--dark .text-link {
	color: var(--copper-light);
}

.faq__more a,
.faq__a a {
	color: var(--copper-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.faq__list {
	border-top: 1px solid var(--line);
}
.faq__item {
	border-bottom: 1px solid var(--line);
}
.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 0;
	cursor: pointer;
	list-style: none;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	transition: color 0.2s var(--ease);
}
.faq__q::-webkit-details-marker {
	display: none;
}
/* Plus koji se okrene u "x" kada je odgovor otvoren. */
.faq__q::after {
	content: "";
	flex: none;
	width: 0.8rem;
	height: 0.8rem;
	background:
		linear-gradient(var(--copper), var(--copper)) center / 100% 1.5px no-repeat,
		linear-gradient(var(--copper), var(--copper)) center / 1.5px 100% no-repeat;
	transition: transform 0.25s var(--ease);
}
.faq__item[open] .faq__q::after {
	transform: rotate(45deg);
}
.faq__q:hover {
	color: var(--copper-deep);
}
.faq__a {
	max-width: 40rem;
	padding-bottom: 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--ink-muted);
}

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--line-dark);
	background: var(--graphite-deep);
	color: var(--steel);
	padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) 1.5rem;
}
.site-footer .wrapper {
	display: grid;
	gap: 2.5rem;
	font-size: 0.875rem;
}
/* Stranice u tri grupe (stolarija, dodaci, pomoc pri izboru): na telefonu dve kolone,
   na sirem ekranu tri kolone uz levu ivicu. */
.footer-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 2rem 1.5rem;
}
@media (min-width: 50rem) {
	.footer-nav {
		grid-template-columns: repeat(3, max-content);
		column-gap: clamp(3rem, 7vw, 7rem);
	}
}
.footer-nav__naslov {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--copper-light);
}
.footer-nav ul {
	display: grid;
	gap: 0.6rem;
	margin-top: 0.9rem;
}
.footer-nav a:hover,
.footer-nav [aria-current] {
	color: var(--paper);
}
.footer-copy {
	padding-top: 1.25rem;
	border-top: 1px solid var(--line-dark);
	font-size: 0.8125rem;
}
