/* Fonts: self-hosted, latin + latin-ext subsets (latin-ext covers č ć đ š ž). */

@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(/fonts/source-sans-3-400-700-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(/fonts/source-sans-3-400-700-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Barlow Semi Condensed';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(/fonts/barlow-semi-condensed-600-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Barlow Semi Condensed';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(/fonts/barlow-semi-condensed-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Barlow Semi Condensed';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(/fonts/barlow-semi-condensed-700-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Barlow Semi Condensed';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(/fonts/barlow-semi-condensed-700-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brand colours come from the logo and business card. */
:root {
	--navy: #071943;
	--blue: #034ab5;
	--blue-dark: #023a8f;
	--blue-light: #80a5da;
	--tint: #f1f5fb;
	--text: #1d2638;
	--muted: #556079;
	--line: #d8e1ee;

	--font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
	--font-head: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;

	--wrap: 1160px;
	--header-h: 84px;
}

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

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

body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.6;
}

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

a { color: var(--blue); }

h1, h2, h3 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.1;
	color: var(--navy);
	margin: 0;
}

p { margin: 0 0 1em; }

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

section[id] { scroll-margin-top: var(--header-h); }

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: #fff;
	border-bottom: 1px solid var(--line);
}

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

.brand img { width: 210px; }

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
}

.site-nav a {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.0625rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--navy);
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	color: var(--blue);
	border-bottom-color: var(--blue);
}

/* Hero */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(78vh, 720px);
	padding: 96px 0;
	color: #fff;
	background: var(--navy);
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(7, 25, 67, 0.92) 0%, rgba(7, 25, 67, 0.75) 45%, rgba(7, 25, 67, 0.25) 100%);
}

.hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
}

.eyebrow {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.125rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--blue-light);
	margin-bottom: 14px;
}

.hero h1 {
	color: #fff;
	font-size: clamp(2.75rem, 7.5vw, 5.5rem);
	letter-spacing: 0.01em;
}

.hero-place {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(1.25rem, 2.6vw, 1.75rem);
	letter-spacing: 0.32em;
	text-transform: uppercase;
	margin: 12px 0 36px;
}

.button {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.1875rem;
	letter-spacing: 0.04em;
	color: #fff;
	background: var(--blue);
	text-decoration: none;
	padding: 14px 30px;
	border-radius: 3px;
	transition: background-color 0.15s;
}

.button:hover,
.button:focus-visible { background: var(--blue-dark); }

/* Sections */

.section { padding: 96px 0; }

.section-tint { background: var(--tint); }

.section-title {
	font-size: clamp(2.25rem, 4.5vw, 3rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 56px;
}

.section-title::after {
	content: '';
	display: block;
	width: 64px;
	height: 4px;
	background: var(--blue);
	margin: 18px auto 0;
}

/* O radu */

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 4px;
	overflow: hidden;
}

.card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.card-body { padding: 28px 28px 16px; }

.card h3 {
	font-size: 1.5rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.card p { color: var(--muted); }

/* O nama */

.about {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--tint);
}

.about-text {
	padding: 96px clamp(24px, 6vw, 96px);
	max-width: 680px;
	justify-self: end;
}

.about .section-title { text-align: left; }
.about .section-title::after { margin-left: 0; }

.about-name {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 2rem;
	color: var(--navy);
	margin-bottom: 8px;
}

.about-lead {
	font-size: 1.3125rem;
	font-weight: 600;
	color: var(--blue);
	margin-bottom: 24px;
}

/* Absolutely positioned so the text, not the tall photo, sets the section height. */
.about-img { position: relative; }

.about-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Stats */

.stats {
	background: var(--blue);
	color: #fff;
	padding: 56px 0;
}

.stats-inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 8px 16px;
}

.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.35); }

.stat-num {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(3rem, 6vw, 4.25rem);
	line-height: 1;
}

.stat-label {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.0625rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-top: 10px;
	color: #dce7f8;
}

/* Proizvodi i projekti */

.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.gallery figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 3px;
	background: var(--tint);
}

.gallery a { display: block; }

.gallery img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	transition: transform 0.3s;
}

.gallery a:hover img,
.gallery a:focus-visible img { transform: scale(1.03); }

.gallery figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 32px 16px 12px;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	background: linear-gradient(transparent, rgba(7, 25, 67, 0.85));
	pointer-events: none;
}

/* Kontakt */

.contact {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 32px;
	align-items: stretch;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 36px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 36px;
}

.contact-info h3 {
	font-size: 1.5rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.contact-info dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	margin: 0;
}

.contact-info dt { color: var(--muted); }
.contact-info dd { margin: 0; overflow-wrap: anywhere; }

.contact-info a {
	font-weight: 600;
	text-decoration: none;
}

.contact-info a:hover,
.contact-info a:focus-visible { text-decoration: underline; }

.contact-info address { font-style: normal; }

.map {
	width: 100%;
	min-height: 420px;
	height: 100%;
	border: 0;
	border-radius: 4px;
}

/* Ponuda */

.offer {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.offer-tile {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 32px;
	overflow: hidden;
	background: var(--navy);
	color: #fff;
	text-decoration: none;
}

.offer-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.offer-tile::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(7, 25, 67, 0.6);
}

.offer-tile p {
	position: relative;
	z-index: 2;
	margin: 0;
	max-width: 320px;
	text-align: center;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(1.5rem, 2.6vw, 2.125rem);
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.offer-tile-plain { background: var(--blue); }
.offer-tile-plain::before { display: none; }
.offer-tile-plain:hover,
.offer-tile-plain:focus-visible { background: var(--blue-dark); }

/* Footer */

.site-footer {
	background: var(--navy);
	color: #c4d0e4;
	padding: 48px 0;
	font-size: 1rem;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
}

.footer-inner img { width: 200px; }
.footer-inner p { margin: 0; }

/* Lightbox */

.lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 56px 72px;
	border: 0;
	background: transparent;
}

.lightbox::backdrop { background: rgba(7, 25, 67, 0.94); }

.lightbox figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	margin: 0;
	pointer-events: none;
}

.lightbox img {
	max-height: calc(100% - 48px);
	width: auto;
	object-fit: contain;
	pointer-events: auto;
}

.lightbox figcaption {
	color: #fff;
	font-weight: 600;
	min-height: 1.6em;
	margin-top: 14px;
	text-align: center;
}

.lightbox button {
	position: absolute;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font: 400 2.25rem/1 var(--font-body);
	cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible { background: rgba(255, 255, 255, 0.25); }

.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 8px; top: calc(50% - 28px); }
.lightbox-next { right: 8px; top: calc(50% - 28px); }

/* Responsive */

@media (max-width: 1000px) {
	.header-inner {
		flex-direction: column;
		justify-content: center;
		gap: 10px;
		padding-top: 14px;
		padding-bottom: 8px;
	}
	.site-nav { justify-content: center; gap: 0 20px; }
	.site-nav a { font-size: 0.9375rem; }
	/* The two-row header is too tall to keep on screen. */
	.site-header { position: static; }
	section[id] { scroll-margin-top: 0; }

	.cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
	.about { grid-template-columns: 1fr; }
	.about-text { max-width: none; justify-self: stretch; padding: 72px 24px; }
	.about-img { height: 420px; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.contact { grid-template-columns: 1fr; }
	.offer { grid-template-columns: 1fr; }
	.offer-tile { min-height: 220px; }
}

@media (max-width: 600px) {
	body { font-size: 1.0625rem; }
	.wrap { padding: 0 16px; }
	.brand img { width: 180px; }
	.site-nav { gap: 0 14px; }
	.site-nav a { font-size: 0.875rem; letter-spacing: 0.04em; }
	.hero { min-height: 0; padding: 72px 0; }
	.section { padding: 64px 0; }
	.section-title { margin-bottom: 40px; }
	.about-text { padding: 64px 16px; }
	.stats { padding: 40px 0; }
	.stat { padding: 4px 6px; }
	.stat-label { font-size: 0.875rem; letter-spacing: 0.06em; }
	.gallery { gap: 8px; }
	.gallery figcaption { font-size: 0.875rem; padding: 24px 10px 8px; }
	.contact-info { padding: 24px; }
	.map { min-height: 320px; }
	.lightbox { padding: 56px 8px 72px; }
	.lightbox-prev, .lightbox-next { top: auto; bottom: 8px; }
	.lightbox-prev { left: calc(50% - 64px); }
	.lightbox-next { right: calc(50% - 64px); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.gallery img, .button { transition: none; }
}
