/*
Theme Name: Auto Jagarčec
Theme URI: http://localhost/auto-jagarcec-redizajn
Author: Redizajn
Description: Custom klasična tema za autoservis Auto Jagarčec, Zagreb Dubrava.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: auto-jagarcec
*/

/* ==========================================================================
   1. Tokeni
   ========================================================================== */

:root {
	--ink:        #0d1117;
	--ink-2:      #161c26;
	--ink-3:      #232b38;

	--blue:       #1c6fe0;
	--blue-dark:  #1557b0;
	--red:        #e0342a;
	--red-dark:   #bd2820;

	--text:       #2f343b;
	--muted:      #6c7480;
	--heading:    #10151c;

	--bg:         #ffffff;
	--bg-alt:     #f4f6f9;
	--line:       #e2e6ec;
	--line-dark:  rgba(255, 255, 255, 0.14);

	--wrap:       1160px;
	--radius:     10px;
	--radius-lg:  16px;

	--shadow-sm:  0 1px 2px rgba(13, 17, 23, 0.06), 0 2px 8px rgba(13, 17, 23, 0.05);
	--shadow-md:  0 4px 12px rgba(13, 17, 23, 0.08), 0 12px 32px rgba(13, 17, 23, 0.10);
	--shadow-lg:  0 10px 30px rgba(13, 17, 23, 0.14), 0 30px 60px rgba(13, 17, 23, 0.12);

	--header-h:   82px;

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
	        Arial, "Noto Sans", sans-serif;

	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Reset / baza
   ========================================================================== */

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

html { scroll-behavior: smooth; }

/* Sidra ne smiju završiti ispod fiksnog headera. */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

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

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
	color: var(--heading);
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: #fff;
	color: var(--ink);
	padding: 12px 20px;
	font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* ==========================================================================
   3. Layout primitivi
   ========================================================================== */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 24px;
}

.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(56px, 7vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.section--dark h2 { color: #fff; }

.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { text-align: center; max-width: 720px; margin-inline: auto; }

.eyebrow {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 12px;
}
.section--dark .eyebrow { color: #ff6a5e; }

.lead { font-size: 1.15rem; color: var(--muted); }

/* ==========================================================================
   4. Gumbi
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: 50px;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
	            color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }

.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn--outline { border-color: var(--line); color: var(--heading); background: #fff; }
.btn--outline:hover { border-color: var(--heading); color: var(--heading); }

/* ==========================================================================
   5. Header + navigacija
   ========================================================================== */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	background: var(--ink);
	transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Na naslovnici header pluta preko heroa dok se ne skrola. */
.has-hero .site-header {
	background: linear-gradient(to bottom, rgba(9, 12, 17, 0.72), transparent);
}
.has-hero .site-header.is-scrolled {
	background: var(--ink);
	box-shadow: 0 1px 0 var(--line-dark), var(--shadow-md);
}
body:not(.has-hero) .site-header { box-shadow: 0 1px 0 var(--line-dark); }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: var(--header-h);
}

.brand { text-decoration: none; display: block; padding-block: 12px; }
.brand__name {
	display: block;
	color: #fff;
	font-size: clamp(1rem, 0.85rem + 0.55vw, 1.3rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.brand__tagline {
	display: block;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	margin-top: 2px;
}

.nav-toggle {
	display: none;
	width: 46px; height: 46px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	color: #fff;
}
.nav-toggle__bar {
	display: block;
	width: 24px; height: 2px;
	margin: 5px auto;
	background: currentColor;
	transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav ul { list-style: none; margin: 0; padding: 0; }

.nav > ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nav li { position: relative; }

.nav a {
	display: block;
	padding: 10px 16px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 6px;
	transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover,
.nav .current-menu-item > a,
.nav .current-menu-ancestor > a,
.nav .current_page_item > a { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* Podizbornik */
.nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-left: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s var(--ease);
}

.nav .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 250px;
	padding: 8px;
	background: var(--ink-2);
	border: 1px solid var(--line-dark);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav .sub-menu a {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.95rem;
	font-weight: 500;
	padding: 11px 14px;
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	margin-left: 8px;
	background: var(--red);
	color: #fff;
	border-radius: 50px;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s var(--ease);
}
.header-phone:hover { background: var(--red-dark); color: #fff; }
.header-phone svg { flex: none; }

@media (max-width: 1020px) {
	.nav-toggle { display: block; }

	.nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ink);
		border-top: 1px solid var(--line-dark);
		box-shadow: var(--shadow-lg);
		max-height: 0;
		overflow: hidden;
		visibility: hidden;
		transition: max-height 0.3s var(--ease), visibility 0.3s;
	}
	.nav.is-open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; visibility: visible; }

	.nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 24px; }
	.nav a { padding: 14px 8px; font-size: 1rem; }
	.nav li + li { border-top: 1px solid var(--line-dark); }

	.nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-width: 0;
		padding: 0 0 8px 16px;
		background: none;
		border: 0;
		box-shadow: none;
	}
	.nav .sub-menu li + li { border-top: 0; }
	.nav .sub-menu a { padding: 10px 8px; color: rgba(255, 255, 255, 0.66); }
	.nav .menu-item-has-children > a::after { float: right; margin-top: 8px; }

	.header-phone { margin-left: auto; margin-right: 4px; padding: 10px 16px; }
	.header-phone span { display: none; }
}

@media (max-width: 480px) {
	.brand__tagline { display: none; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(520px, 78vh, 780px);
	padding-top: calc(var(--header-h) + 40px);
	padding-bottom: clamp(48px, 6vw, 96px);
	background: var(--ink) center / cover no-repeat;
	isolation: isolate;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to right, rgba(9, 12, 17, 0.88) 0%, rgba(9, 12, 17, 0.62) 50%, rgba(9, 12, 17, 0.5) 100%),
		linear-gradient(to top, rgba(9, 12, 17, 0.85) 0%, transparent 55%);
}

.hero__content { max-width: 720px; }

.hero__title {
	color: #fff;
	font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
	line-height: 1.06;
	letter-spacing: -0.03em;
	margin-bottom: 20px;
	text-wrap: balance;
}
.hero__title em { font-style: normal; color: #ff6a5e; }

.hero__text {
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
	max-width: 620px;
	margin-bottom: 36px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Traka pod heroom: brzi podaci */
.hero-strip {
	background: var(--ink-2);
	border-top: 1px solid var(--line-dark);
	color: rgba(255, 255, 255, 0.72);
}
.hero-strip__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line-dark);
}
.hero-strip__item {
	background: var(--ink-2);
	padding: 26px 8px;
	text-align: center;
}
.hero-strip__label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 6px;
}
.hero-strip__value { color: #fff; font-weight: 600; font-size: 1.05rem; }
.hero-strip__value a { color: #fff; text-decoration: none; }
.hero-strip__value a:hover { color: #ff6a5e; }
.hero-strip__value small {
	display: block;
	margin-top: 2px;
	font-size: 0.8rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 980px) {
	.hero-strip__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	.hero-strip__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   7. Kartice ponude
   ========================================================================== */

.cards {
	display: grid;
	grid-template-columns: repeat(var(--cards-cols, 4), 1fr);
	gap: 28px;
}

@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards { grid-template-columns: 1fr; } }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
	transform: translateY(-6px);
	border-color: transparent;
	box-shadow: var(--shadow-lg);
}

.card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--bg-alt);
}
.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }

.card__title {
	font-size: 1.1rem;
	line-height: 1.3;
	margin-bottom: 10px;
}
.card__title a {
	color: inherit;
	text-decoration: none;
}
/* Cijela kartica je klikabilna, ali fokus i dalje ide na sam link. */
.card__title a::after { content: ""; position: absolute; inset: 0; }

.card__text {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 18px;
}

.card__more {
	margin-top: auto;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--red);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.card__more::after {
	content: "";
	width: 7px; height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.2s var(--ease);
}
.card:hover .card__more::after { transform: rotate(-45deg) translate(3px, 3px); }

/* ==========================================================================
   8. Uvod + kontakt panel
   ========================================================================== */

.intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }

.info-card {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
	border-radius: var(--radius-lg);
	padding: 36px;
	box-shadow: var(--shadow-md);
}
.info-card h3 {
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding-bottom: 16px;
	margin-bottom: 24px;
	border-bottom: 2px solid var(--red);
	display: inline-block;
}

.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: 3px; color: #ff6a5e; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: #ff6a5e; text-decoration: underline; }
.contact-list strong { display: block; color: #fff; font-weight: 600; }
.contact-list span { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); }

/* ==========================================================================
   9. Karta
   ========================================================================== */

.map-embed {
	position: relative;
	/* Vlastiti stacking kontekst — Leafletove kontrole su z-index 1000 i inače
	   bi prelazile preko fiksnog headera (z-index 100). */
	z-index: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	background: var(--bg-alt);
}
.map-embed__canvas {
	display: block;
	width: 100%;
	height: clamp(300px, 42vw, 460px);
	background: var(--bg-alt);
}
.map-embed__noscript { padding: 24px; text-align: center; color: var(--muted); }
.map-embed__caption {
	padding: 14px 20px;
	font-size: 0.85rem;
	color: var(--muted);
	background: #fff;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

/* ==========================================================================
   10. CTA traka (cjenik)
   ========================================================================== */

.cta-band {
	position: relative;
	background: var(--ink) center / cover no-repeat;
	isolation: isolate;
	color: #fff;
}
.cta-band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to right, rgba(9, 12, 17, 0.93) 20%, rgba(9, 12, 17, 0.6) 100%);
}
.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-block: clamp(48px, 6vw, 84px);
}
.cta-band__text { max-width: 620px; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin: 0; }

/* ==========================================================================
   11. Stranice + sadržaj
   ========================================================================== */

.page-hero {
	position: relative;
	padding-top: calc(var(--header-h) + clamp(48px, 6vw, 88px));
	padding-bottom: clamp(40px, 5vw, 72px);
	background: var(--ink) center / cover no-repeat;
	isolation: isolate;
	color: #fff;
}
.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to right, rgba(9, 12, 17, 0.9), rgba(9, 12, 17, 0.66));
}
.page-hero--plain { background: var(--ink); }
.page-hero h1 { color: #fff; margin-bottom: 0; }
.page-hero p { color: rgba(255, 255, 255, 0.75); margin-top: 16px; max-width: 640px; }

.breadcrumbs {
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 18px;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs span { margin-inline: 8px; opacity: 0.5; }

.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 {
	margin-top: 2em;
	padding-top: 1.4em;
	border-top: 1px solid var(--line);
}
.entry-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.entry-content h3 { margin-top: 1.8em; color: var(--heading); }
.entry-content ul { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; text-align: center; }

.entry-content .alignright {
	float: right;
	margin: 0.4em 0 1.4em 2em;
	max-width: 42%;
	border-radius: var(--radius);
}
@media (max-width: 700px) {
	.entry-content .alignright { float: none; margin: 2em 0; max-width: 100%; }
}

.note {
	background: var(--bg-alt);
	border-left: 4px solid var(--blue);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 20px 24px;
	color: var(--muted);
	font-size: 0.98rem;
}

/* ==========================================================================
   12. Cjenik
   ========================================================================== */

.pricelist { display: grid; gap: 0; margin: 0; padding: 0; }
.pricelist__row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 18px 4px;
	border-bottom: 1px solid var(--line);
}
.pricelist__row:first-child { border-top: 1px solid var(--line); }
.pricelist__name { font-weight: 600; color: var(--heading); }
.pricelist__name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.pricelist__dots {
	flex: 1;
	border-bottom: 1px dotted var(--line);
	transform: translateY(-4px);
	min-width: 20px;
}
.pricelist__price { font-weight: 700; color: var(--red); white-space: nowrap; font-size: 1.05rem; }

@media (max-width: 520px) {
	.pricelist__row { flex-wrap: wrap; }
	.pricelist__dots { display: none; }
	.pricelist__price { width: 100%; }
}

/* ==========================================================================
   13. Kontakt forma
   ========================================================================== */

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 22px; }

.form__field { display: grid; gap: 8px; }

.form__label { font-weight: 600; color: var(--heading); font-size: 0.95rem; }
.form__label .req { color: var(--red); margin-left: 2px; }

.form input[type="text"],
.form input[type="email"],
.form input[type="number"],
.form textarea {
	width: 100%;
	padding: 14px 16px;
	font: inherit;
	font-size: 1rem;
	color: var(--text);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form input:focus,
.form textarea:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 4px rgba(28, 111, 224, 0.14);
}
.form textarea { min-height: 170px; resize: vertical; }

.form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form__captcha {
	background: var(--bg-alt);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
}
.form__captcha .form__label { display: block; margin-bottom: 8px; }
.form__captcha input { max-width: 140px; }
.form__captcha-hint { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

.form .error-text { color: var(--red-dark); font-size: 0.88rem; font-weight: 600; }
.form .has-error input,
.form .has-error textarea { border-color: var(--red); }

.alert {
	padding: 18px 22px;
	border-radius: var(--radius);
	margin-bottom: 28px;
	font-weight: 500;
	border: 1px solid transparent;
}
.alert--ok { background: #e8f6ed; border-color: #b9e2c8; color: #17603a; }
.alert--err { background: #fdecea; border-color: #f6c9c4; color: #96261d; }
.alert strong { display: block; margin-bottom: 4px; }

/* ==========================================================================
   14. Footer
   ========================================================================== */

.site-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.95rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	padding-block: clamp(48px, 6vw, 80px);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h2 {
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 22px;
}

.footer-brand__name { color: #fff; font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.footer-brand__tagline { color: rgba(255, 255, 255, 0.5); font-size: 0.88rem; margin-bottom: 20px; }

.services-list {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 32px;
}
@media (max-width: 520px) { .services-list { columns: 1; } }
.services-list li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 10px;
	break-inside: avoid;
	line-height: 1.5;
}
.services-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 6px; height: 6px;
	background: var(--red);
	border-radius: 50%;
}

/* Izbornik u footeru: jedna kolona, uvučene podstavke. */
.footer-menu,
.footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 11px; }
.footer-menu a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	transition: color 0.2s var(--ease);
}
.footer-menu a:hover { color: #fff; text-decoration: underline; }

.footer-menu .sub-menu {
	margin: 11px 0 0 2px;
	padding-left: 16px;
	border-left: 1px solid var(--line-dark);
}
.footer-menu .sub-menu a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); }

.social-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
	padding: 11px 20px;
	border: 1px solid var(--line-dark);
	border-radius: 50px;
	color: #fff;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social-link:hover { background: #1877f2; border-color: #1877f2; color: #fff; }

.footer-bottom {
	border-top: 1px solid var(--line-dark);
	padding-block: 26px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   15. 404
   ========================================================================== */

.error-404 { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.error-404__code {
	font-size: clamp(5rem, 3rem + 10vw, 10rem);
	font-weight: 800;
	line-height: 1;
	color: var(--bg-alt);
	letter-spacing: -0.04em;
}
