/*
Theme Name: Green Agro
Theme URI: https://greenagro.cz
Author: Green Agro
Description: Šablona webu Green Agro. Vzhled vychází ze statického webu ve složce _static, texty stránek jsou v editoru bloků.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: greenagro
*/

/* Header: original 50px bar, logo file is 181×24. */
.navbar-inverse {
	min-height: 50px;
	margin-bottom: 0;
	border-width: 0;
}

.navbar-brand {
	height: 50px;
	padding: 13px 15px;
}

.navbar-brand img {
	height: 24px;
	width: auto;
}

@media (min-width: 768px) {
	.navbar-nav > li > a {
		padding-top: 15px;
		padding-bottom: 15px;
	}
}

body {
	padding-top: 50px;
}

body.admin-bar {
	padding-top: 82px;
}

body.admin-bar .navbar-fixed-top {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		padding-top: 96px;
	}

	body.admin-bar .navbar-fixed-top {
		top: 46px;
	}
}

header.carousel {
	margin-top: 0;
}

.carousel-caption h2 {
	color: #fff;
	text-transform: uppercase;
}

/* Gutenberg content inside the Bootstrap layout */
.entry-content h1.wp-block-heading.page-header,
.entry-content h2.wp-block-heading.page-header {
	margin: 40px 0 20px;
	padding-bottom: 9px;
	border-bottom: 1px solid #eee;
	color: #71cf65;
}

/* Gutenberg separator is a short thick line; match the original hr. */
.entry-content hr.wp-block-separator:not(.is-style-dots) {
	width: 100%;
	max-width: none;
	height: 0;
	margin-top: 20px;
	margin-bottom: 20px;
	margin-left: 0;
	margin-right: 0;
	border: 0;
	border-top: 1px solid #eee;
	border-bottom: 0;
	background: none;
	opacity: 1;
	color: inherit;
}

.entry-content .wp-block-columns {
	margin-bottom: 10px;
}

/* Map column is two thirds of the row after the 28px column gap. */
.entry-content {
	--ga-split-main: calc((100% - 28px) * 2 / 3);
}

@media (min-width: 782px) {
	.entry-content .ga-split > .wp-block-column:first-child {
		flex: 2 1 60% !important;
		min-width: 0;
	}

	.entry-content .ga-split > .wp-block-column:last-child {
		flex: 1 1 30% !important;
		min-width: 0;
	}

	.entry-content .ga-split > .wp-block-column:only-child {
		flex: 0 0 var(--ga-split-main) !important;
		max-width: var(--ga-split-main);
	}

	.entry-content > h3.wp-block-heading.green:has(+ span + .ga-split) {
		width: var(--ga-split-main);
	}

	.entry-content .ga-thirds > .wp-block-column,
	.entry-content .ga-third > .wp-block-column {
		flex: 0 0 31% !important;
		max-width: 33.333%;
	}
}

.entry-content h1.page-header,
.entry-content h1.wp-block-heading.page-header,
.entry-content h2.page-header,
.entry-content h2.wp-block-heading.page-header {
	color: #71cf65;
}

.entry-content .wp-block-heading.green,
.entry-content .green {
	color: #58ab4e;
}

.entry-content .wp-block-heading.greenl,
.entry-content .greenl {
	color: #71cf65;
}

.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img {
	max-width: 100%;
	height: auto;
}

.entry-content .wp-block-image.img-hover img {
	width: 100%;
}

.entry-content .wp-block-button.ga-btn .wp-block-button__link {
	background-color: #58ab4e;
	color: #fff;
	border: 1px solid #4e9a45;
	border-radius: 4px;
	padding: 8px 14px;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
}

.entry-content .wp-block-button.ga-btn .wp-block-button__link:hover,
.entry-content .wp-block-button.ga-btn .wp-block-button__link:focus {
	background-color: #4a9342;
	color: #fff;
}

.entry-content .panel.wp-block-group,
.entry-content .panel-heading.wp-block-group,
.entry-content .panel-body.wp-block-group,
.entry-content .thumbnail.wp-block-group {
	margin-top: 0;
}

.entry-content .panel.wp-block-group {
	margin-bottom: 20px;
}

.entry-content .panel-heading .wp-block-heading,
.entry-content .ga-person .wp-block-heading {
	margin-top: 0;
	margin-bottom: 0;
}

/* Panel heading is not a direct child, Gutenberg inserts an inner container. */
.entry-content .panel.panel-default {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.entry-content .panel > .wp-block-group__inner-container > .panel-heading {
	margin: 0;
	padding: 10px 15px;
	color: #fff;
	background-color: #333;
	border-bottom: 1px solid #ddd;
}

.entry-content .panel-heading .wp-block-heading {
	margin: 0;
	color: #71cf65;
	font-size: 18px;
	line-height: 1.3;
}

.entry-content .panel > .wp-block-group__inner-container > .panel-body {
	margin: 0;
	padding: 15px;
}

.entry-content .panel-body > .wp-block-group__inner-container > * {
	margin-top: 0;
	margin-bottom: 0;
}

.entry-content .panel-body > .wp-block-group__inner-container > * + * {
	margin-top: 10px;
}

.entry-content .panel > .panel-heading + .panel-body,
.entry-content .is-layout-flow.panel > * {
	margin-block-start: 0;
}

.entry-content .ga-news-card {
	overflow: hidden;
	height: 100%;
}

.entry-content .ga-news-card .wp-block-image {
	margin: 0;
}

.entry-content .ga-news-card .wp-block-image img {
	width: 100%;
	display: block;
}

.entry-content .ga-news-card .wp-block-heading,
.entry-content .ga-news-card > p,
.entry-content .ga-news-card > .wp-block-paragraph {
	margin-left: 15px;
	margin-right: 15px;
}

.entry-content .ga-person {
	padding: 16px 12px 8px;
	margin-bottom: 20px;
}

.entry-content .ga-person small {
	color: #777;
	text-transform: none;
	font-weight: 400;
}

.entry-content iframe {
	display: block;
	width: 100%;
	max-width: 100%;
}

.btn.green-bg,
.btn.green-bg:hover,
.btn.green-bg:focus,
.btn.green-bg h3,
.btn.green-bg p {
	color: #fff;
}

.btn.green-bg:hover,
.btn.green-bg:focus {
	background-color: #4a9342;
}

.well .btn h3 {
	margin-top: 8px;
	margin-bottom: 4px;
}

.well .btn p {
	margin-bottom: 8px;
}

/* Contact Form 7 */
.wpcf7 label {
	display: block;
	margin-bottom: 14px;
	font-weight: 600;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 8px 12px;
	font-weight: 400;
	line-height: 1.42857143;
	color: #555;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.wpcf7 textarea {
	min-height: 180px;
	resize: vertical;
}

.wpcf7 input[type="submit"] {
	background: #58ab4e;
	color: #fff;
	border: 1px solid #4e9a45;
	border-radius: 4px;
	padding: 10px 16px;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus {
	background: #4a9342;
	color: #fff;
}

.wpcf7-not-valid-tip {
	font-size: 13px;
	font-weight: 400;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1em 0;
}

footer.ga-footer {
	margin: 40px 0 0;
	padding: 22px 0;
	background: #222;
	color: #9d9d9d;
	font-size: 14px;
}

footer.ga-footer p {
	margin: 0;
}

footer.ga-footer a {
	color: #fff;
}
