/* ==========================================================================
   KOVČO – osnovni stilovi: varijable, reset, tipografija, gumbi, pomoćne klase
   ========================================================================== */

:root {
	/* Boje */
	--k-black: #0e0e0e;
	--k-ink: #1a1a1a;
	--k-yellow: #ffc400;
	--k-yellow-dark: #e6ad00;
	--k-bg: #eceae6;
	--k-bg-light: #f6f5f2;
	--k-grey: #5e5b57;
	--k-line: rgba(14, 14, 14, 0.14);

	/* Fontovi (lokalne datoteke se učitavaju iz assets/fonts/, vidi inc/enqueue.php) */
	--k-font-display: "Kovco Display", "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
	--k-font-sans: "Kovco Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--k-font-mono: "Kovco Mono", "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
	--k-display-stretch: 125%;
	/* Veliki natpis KOVČO u heroju – font s prve verzije stranice */
	--k-font-hero: "Arial Black", "Kovco Display", "Archivo", "Helvetica Neue", sans-serif;

	/* Razmaci i dimenzije */
	--k-container: 1680px;
	--k-gutter: clamp(1.25rem, 3vw, 3rem);
	--k-radius: 10px;
	--k-header-h: 88px;
	--k-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: var(--k-header-h);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--k-bg);
	color: var(--k-black);
	font-family: var(--k-font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	font-family: var(--k-font-display);
	font-weight: 900;
	font-style: italic;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

/* Široki (expanded) rez display fonta – Archivo ima os širine 62–125 % */
h1,
h2,
h3,
h4,
h5,
h6,
.hero__subtitle,
.hero__badge,
.site-footer__cta-title,
.error-404__code {
	font-stretch: var(--k-display-stretch);
}

p,
ul,
ol,
figure {
	margin: 0 0 1em;
}

button {
	font: inherit;
}

:focus-visible {
	outline: 3px solid var(--k-yellow);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--k-yellow);
	color: var(--k-black);
}

/* Struktura -------------------------------------------------------------- */

.site {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: clip;
}

.site-main {
	flex: 1 0 auto;
}

.container {
	width: 100%;
	max-width: var(--k-container);
	margin-inline: auto;
	padding-inline: var(--k-gutter);
}

.section {
	padding-block: clamp(3rem, 7vw, 6rem);
}

/* Gumbi ------------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 48px;
	padding: 0.7em 1.35em;
	border: 2px solid transparent;
	border-radius: var(--k-radius);
	font-family: var(--k-font-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color 0.2s var(--k-ease),
		color 0.2s var(--k-ease),
		border-color 0.2s var(--k-ease),
		transform 0.2s var(--k-ease),
		box-shadow 0.2s var(--k-ease);
}

.btn .kovco-icon {
	flex: none;
	width: 1.15em;
	height: 1.15em;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn--primary {
	background: var(--k-yellow);
	color: var(--k-black);
	box-shadow: 0 6px 18px -8px rgba(230, 173, 0, 0.7);
}

.btn--primary:hover {
	background: var(--k-yellow-dark);
}

.btn--dark {
	background: var(--k-black);
	color: #fff;
}

.btn--dark:hover {
	background: #2a2a2a;
}

.btn--outline {
	border-color: var(--k-black);
	background: transparent;
	color: var(--k-black);
	border-width: 1.5px;
}

.btn--outline:hover {
	background: var(--k-black);
	color: #fff;
}

.btn--outline .kovco-icon--arrow {
	transition: transform 0.2s var(--k-ease);
}

.btn--outline:hover .kovco-icon--arrow {
	transform: translateX(3px);
}

.btn--notice {
	border: 1.5px dashed var(--k-grey);
	color: var(--k-grey);
	font-size: 0.875rem;
}

.btn--lg {
	min-height: 56px;
	padding: 0.85em 1.6em;
	font-size: 1.0625rem;
}

.btn--block {
	display: flex;
	width: 100%;
}

/* Kosa crta u oznaci "24/7" */
.kovco-slash {
	color: var(--k-yellow);
}

/* Pristupačnost ---------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed !important;
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	margin: 0;
	clip: auto;
	clip-path: none;
	background: var(--k-black);
	color: #fff;
	border-radius: var(--k-radius);
	text-decoration: none;
}

/* WordPress klase -------------------------------------------------------- */

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
.wp-element-caption {
	color: var(--k-grey);
	font-size: 0.875rem;
}

.sticky,
.bypostauthor,
.gallery-caption {
	/* Obavezne WP klase. */
}
