/*
 * Stilovi blokova početne stranice (učitavaju se na sajtu i u uređivaču).
 */

.front-content > * { margin-top: 0; margin-bottom: 0; }

/* Dugmad */
.wp-block-button__link { transition: transform 0.2s, filter 0.3s; }
.wp-block-button__link:hover { transform: translateY(-2px); filter: brightness(0.92); }

/* Vrh stranice (Cover blok sa klasom kt-hero) */
.wp-block-cover.kt-hero { padding: 100px 20px; }
.kt-hero h1 {
	font-size: 2.6rem;
	line-height: 1.2;
	margin: 0 0 15px;
	text-align: center;
	color: #ffffff;
}
.kt-hero .kt-hero-text {
	font-size: 1.15rem;
	max-width: 650px;
	margin: 0 auto 30px;
	color: #e2e8f0;
}

/* Sekcije */
.kt-section { padding: 70px 20px; }
.kt-section > h2,
.is-style-kt-cta h2 {
	text-align: center;
	font-size: 2rem;
	line-height: 1.25;
	margin-bottom: 10px;
}
.kt-section > .kt-subtitle {
	color: #64748b;
	max-width: 600px;
	margin: 0 auto 45px;
}
.kt-about p { font-size: 1.05rem; color: #334155; }
.kt-about > h2 { margin-bottom: 25px; }
.kt-about h3 { color: #1b5e20; }

/* Kartice usluga (Grupa, stil "Kartica") */
.wp-block-columns.kt-cards { gap: 25px; }
.is-style-kt-card {
	background: #f8fafc;
	padding: 30px 25px;
	border-radius: 10px;
	border-bottom: 4px solid #2e7d32;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
	height: 100%;
}
.is-style-kt-card h3 {
	margin: 0 0 12px;
	color: #1b5e20;
	font-size: 1.25rem;
	line-height: 1.35;
}
.is-style-kt-card p { color: #64748b; font-size: 0.95rem; margin: 0; }

/* Prednosti */
.wp-block-columns.kt-features { gap: 30px; text-align: center; }
.kt-features h3 { text-align: center; margin: 0 0 8px; font-size: 1.2rem; }
.kt-features p { margin: 0; }
.kt-features .kt-icon { font-size: 2.2rem; margin-bottom: 10px; line-height: 1.2; }

/* Galerija radova (Galerija, stil "Galerija radova") */
.wp-block-gallery.is-style-kt-radovi { gap: 20px; }
.wp-block-gallery.is-style-kt-radovi.has-nested-images figure.wp-block-image {
	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	flex-direction: column;
	justify-content: flex-start;
	transition: transform 0.3s;
	flex-grow: 0;
}
@media (min-width: 601px) {
	.wp-block-gallery.is-style-kt-radovi.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc((100% - 40px) / 3); }
	.wp-block-gallery.is-style-kt-radovi.has-nested-images.columns-2 figure.wp-block-image:not(#individual-image) { width: calc((100% - 20px) / 2); }
	.wp-block-gallery.is-style-kt-radovi.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) { width: calc((100% - 60px) / 4); }
}
@media (min-width: 601px) and (max-width: 900px) {
	.wp-block-gallery.is-style-kt-radovi.has-nested-images.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc((100% - 20px) / 2); }
}
.wp-block-gallery.is-style-kt-radovi.has-nested-images figure.wp-block-image:hover { transform: translateY(-4px); }
.wp-block-gallery.is-style-kt-radovi.has-nested-images figure.wp-block-image:has(figcaption)::before { display: none; }
.wp-block-gallery.is-style-kt-radovi.has-nested-images figure.wp-block-image:not(#individual-image) img {
	flex: none;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}
.wp-block-gallery.is-style-kt-radovi.has-nested-images figure.wp-block-image figcaption {
	position: static;
	background: none;
	color: #1e293b;
	padding: 15px;
	margin: 0;
	font-weight: 600;
	font-size: 0.95rem;
	text-align: left;
	text-shadow: none;
	max-height: none;
	overflow: visible;
	flex: 0 0 auto;
}

/* Kontakt baner (Grupa, stil "Zeleni baner") */
.wp-block-group.is-style-kt-cta {
	max-width: 1100px;
	margin: 40px auto;
	padding: 60px 20px;
	border-radius: 12px;
	text-align: center;
}
.is-style-kt-cta p { font-size: 1.1rem; opacity: 0.95; margin-bottom: 25px; }

/* Veliko bijelo dugme sa telefonom (Dugme, stil "Telefon – bijelo") */
.wp-block-button.is-style-kt-phone .wp-block-button__link {
	background: #ffffff;
	color: #1b5e20;
	font-size: 1.5rem;
	font-weight: 800;
	padding: 14px 32px;
}

@media (max-width: 768px) {
	.wp-block-cover.kt-hero { padding: 70px 20px; }
	.kt-hero h1 { font-size: 1.9rem; }
	.kt-section { padding: 50px 20px; }
	.kt-section > h2, .is-style-kt-cta h2 { font-size: 1.6rem; }
	.wp-block-group.is-style-kt-cta { margin: 30px 15px; padding: 45px 20px; }
	.wp-block-button.is-style-kt-phone .wp-block-button__link { font-size: 1.25rem; }
}

@media (max-width: 600px) {
	.wp-block-gallery.is-style-kt-radovi.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100%; }
}
