/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
*/

.green-text {
	color: green;
}

.red-text {
	color: red;
}

img.custom-logo {
	width: 100%;
}

/* hp-main-buttons: 3+2 layout, full-width stretch, orphans centered */
.wp-block-group.hp-main-buttons {
	display: grid !important;
	grid-template-columns: repeat(6, 1fr);
	gap: var(--wp--preset--spacing--30);
}
.wp-block-group.hp-main-buttons > * {
	grid-column: span 2;
}
/* 4. item začína od 2. stĺpce → 2 sirotci se vycentrují */
.wp-block-group.hp-main-buttons > *:nth-child(4) {
	grid-column: 2 / span 2;
}

/* Tablet: 2 per row (4/4 grid, each spans 2) */
@media (max-width: 900px) {
	.wp-block-group.hp-main-buttons {
		grid-template-columns: repeat(4, 1fr);
	}
	.wp-block-group.hp-main-buttons > *,
	.wp-block-group.hp-main-buttons > *:nth-child(4) {
		grid-column: span 2;
	}
	/* 1 sirotec na tabletu: vycentruj */
	.wp-block-group.hp-main-buttons > *:nth-child(odd):last-child {
		grid-column: 2 / span 2;
	}
}

/* Mobile: 1 per row */
@media (max-width: 480px) {
	.wp-block-group.hp-main-buttons {
		grid-template-columns: 1fr;
	}
	.wp-block-group.hp-main-buttons > *,
	.wp-block-group.hp-main-buttons > *:nth-child(4),
	.wp-block-group.hp-main-buttons > *:nth-child(odd):last-child {
		grid-column: span 1;
	}
}

/* Contact page — icon + label alignment in flex rows */
.wp-block-group[class*="is-layout-flex"] .wp-block-image,
.wp-block-group[class*="is-layout-flex"] .wp-block-image figure {
	margin: 0 !important;
	line-height: 0;
	display: flex;
	align-items: center;
}

/* WPForms — brand colors override (high specificity) */
body .wpforms-form .wpforms-field input[type=text],
body .wpforms-form .wpforms-field input[type=email],
body .wpforms-form .wpforms-field input[type=tel],
body .wpforms-form .wpforms-field input[type=url],
body .wpforms-form .wpforms-field input[type=number],
body .wpforms-form .wpforms-field textarea,
body .wpforms-form .wpforms-field select {
	border: 1px solid #78b833 !important;
	border-radius: 0 !important;
	color: #262626 !important;
	box-shadow: none !important;
}
body .wpforms-form .wpforms-field input:focus,
body .wpforms-form .wpforms-field textarea:focus {
	border-color: #5e9225 !important;
	outline: none !important;
	box-shadow: 0 0 0 2px rgba(120,184,51,0.25) !important;
}
body .wpforms-form .wpforms-submit-container button[type=submit],
body .wpforms-form button.wpforms-submit,
body .wpforms-form input[type=submit] {
	background-color: #78b833 !important;
	background: #78b833 !important;
	color: #ffffff !important;
	border: 1px solid #78b833 !important;
	border-radius: 0 !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.03em !important;
	transition: 0.3s ease all !important;
	padding: 10px 28px !important;
	box-shadow: none !important;
}
body .wpforms-form .wpforms-submit-container button[type=submit]:hover,
body .wpforms-form button.wpforms-submit:hover,
body .wpforms-form input[type=submit]:hover {
	background-color: #ffffff !important;
	background: #ffffff !important;
	color: #78b833 !important;
}

/* Navigation CTA button — same style as .custom-button */
.nav-cta-button .wp-block-navigation-item__content {
	background: var(--color-primary) !important;
	color: var(--color-white) !important;
	padding: var(--padding-button) !important;
	border: var(--border-primary) !important;
	font-weight: 600;
	text-decoration: none !important;
	transition: var(--transition-default);
	border-radius: 0;
}
.nav-cta-button .wp-block-navigation-item__content:hover {
	background: var(--color-base) !important;
	color: var(--color-primary) !important;
}
