/* =====================================================
   Firemní – hlavní styly
   Bez CSS proměnných, hodnoty rovnou v jednotlivých pravidlech
   (malý web, přehlednost > znovupoužitelnost). Barvy a rozestupy
   se pak mění přímo tam, kde se používají - viz komentáře u
   jednotlivých bloků níže.
   ===================================================== */

/* ---------- Reset a základ ---------- */

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

body {
	margin: 0;
	font-family: "Roboto", Helvetica, Arial, Lucida, sans-serif;
	font-size: 110%;
	font-weight: 300;
	line-height: 1.35em;
	color: #333;
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: #213a8e;
}

h1,
h2,
h3 {
	font-family: "Roboto", Helvetica, Arial, Lucida, sans-serif;
	color: #213a8e;
	font-weight: 700;
	line-height: 1em;
	padding: 20px 0 0;
	margin: 0;
}

h1 { font-size: 3rem; }  /* 30px – Divi default */
h2 { font-size: 2.5rem; }  /* 26px */
h3 { font-size: 2rem; }  /* 22px */

p {
	padding-bottom: 1em;
	margin: 0;
}

p:last-of-type {
	padding-bottom: 0;
}

.container {
	width: 80%;
	max-width: 1080px;
	margin-inline: auto;
	position: relative;
}

/* Uvnitř sekcí s vlastním horizontálním odsazením (hero, kontakty)
   necháváme container bez extra paddingu – přesně jako Divi .et_pb_row. */

/* ---------- Přístupnost ---------- */



.skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 2px solid #213a8e;
	outline-offset: 2px;
}

/* ---------- Hlavička ---------- */

.site-header {
	background: #213a8e;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1rem;
	max-width: 100%;
  width: 100%;
  padding: 1rem;
}

.site-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
}

.site-title a {
	color: #ffffff;
	text-decoration: none;
}

.site-branding img {
	max-height: 44px;
	width: auto;
}

/* ---------- Navigace ---------- */

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

.site-nav a {
	display: inline-block;
	padding: 0.6em 0.4em;
	color: #ffffff;
	text-decoration: none;
	font-family: "Roboto", Helvetica, Arial, Lucida, sans-serif;
	font-weight: 400;
	font-size: 0.9rem;
	/*letter-spacing: 0.5px;*/
	text-transform: none;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
	opacity: 0.85;
	text-decoration: underline;
}

.nav-toggle {
	display: none;
}

@media (max-width: 55rem) {
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		background: none;
		border: 0;
		border-radius: 3px;
		padding: 1rem;
		cursor: pointer;
	}

	.nav-toggle__bar {
		width: 1.5rem;
		height: 2px;
		background: #ffffff;
		position: relative;
	}

	.nav-toggle__bar::before,
	.nav-toggle__bar::after {
		content: "";
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background: inherit;
	}

	.nav-toggle__bar::before { top: -8px; }
	.nav-toggle__bar::after { top: 8px; }

	.site-nav ul {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: #213a8e;
		padding: 1rem 1.5rem;
		z-index: 50;
		top: 5.3rem;
	}

	.site-nav.is-open ul {
		display: flex;
	}

	.site-nav li {
		padding-block: 0.5rem;
		border-bottom: 1px solid white;
	}
}

/* ---------- Pás technologických ikon (jako .et_pb_section) ---------- */

.tech-strip {
	background: #213a8e;
	padding-block: 4%;
}

.tech-strip__grid {
	width: 80%;
	max-width: 1080px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 2rem 1.5%; /* odpovídá et_pb_gutters3 (5.5% mezera mezi sloupci) */
}

.tech-strip__grid img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* ---------- Přehled technologií: sloupec ikon + text vedle sebe ---------- */

.tech-overview {
	display: grid;
	grid-template-columns: 17rem 1fr;
	gap: 4rem;
	align-items: start;
	margin-block: 1.5rem 2.5rem;
}

.tech-icon-list {
	display: flex;
	flex-direction: column;
}

.tech-icon-list__row {
	display: flex;
	align-items: center;
	gap: 1rem;
	text-decoration: none;
	padding-block: 0.5rem;
}

.tech-icon-list__box {
	flex-shrink: 0;
	width: 5rem;
	height: 5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	margin-top: -2px; /* sousední čtverce sdílí okraj, žádná dvojitá čára */
}

.tech-icon-list__row:first-child .tech-icon-list__box {
	margin-top: 0;
}

.tech-icon-list__box img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tech-icon-list__label {
	font-weight: 700;
	color: #213a8e;
	text-transform: uppercase;
	font-size: 0.95rem;
	line-height: 1.25;
}

a.tech-icon-list__row:hover .tech-icon-list__label {
	text-decoration: underline;
}

.tech-icon-list__row--static {
	cursor: default;
}

/* Aktuální technologie v postranním sloupci (na jejích vlastních podstránkách) */
.tech-icon-list__row.is-active .tech-icon-list__box {
	background: #f5f6f8;
	border-width: 3px;
}

.tech-icon-list__row.is-active .tech-icon-list__label {
	text-decoration: underline;
}

/* ---------- Drobečková navigace ---------- */

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	/*font-size: 0.875rem;*/
	/*color: #8a8a8a;*/
	margin-block: 1rem 1.5rem;
}

.breadcrumbs a {
	color: #213a8e;
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.breadcrumbs__home {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
}

.breadcrumbs__sep {
	opacity: 0.6;
}

.breadcrumbs__current {
	color: #333;
}

.tech-overview__text > :first-child {
	margin-top: 0;
}

.tech-overview__photo {
	width: 100%;
	max-width: 40rem;
	height: auto;
	border-radius: 3px;
	margin-block-start: 1.5rem;
}

@media (max-width: 55rem) {
	.tech-overview {
		grid-template-columns: 1fr;
	}

	.tech-icon-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 1.5rem;
	}

	.tech-icon-list__box {
		margin-top: 0;
	}

	.tech-icon-list__row {
		flex-direction: column;
		text-align: center;
		width: 7rem;
	}
}

@media (max-width: 980px) {
	.tech-strip {
		padding-block: 50px;
	}

	.tech-strip__grid {
		grid-template-columns: repeat(3, 1fr);
		row-gap: 1.5rem;
	}
}

@media (max-width: 35.99rem) {
	.tech-strip__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- Hero (velká fotografie na pozadí, přesně dle et_pb_section_0) ---------- */

.hero {
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
	padding-block: 21vh;
	position: relative;
}

.hero__inner {
	position: relative;
	z-index: 1;
}

.hero__title {
	/* Na originále je fotka čistá bez viditelného textu - nadpis
	   necháváme jen pro přístupnost a SEO (potřebujeme jeden H1 na stránce). */
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------- Střídavé sekce (obrázek / text), jako .et_pb_section + .et_pb_row ---------- */

.feature-row {
	width: 80%;
	max-width: 1080px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 5.5%;
	padding-block: 2%;
	/*border-top: 1px solid #e2e2e2;*/
}

.feature-row:first-of-type {
	border-top: none;
}

.feature-row--reverse .feature-row__media {
	order: 2;
}


.feature-row__media img {
	border-radius: 3px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.feature-row__content h2 {
	margin-bottom: 1rem;
}

.feature-row__content .button {
	margin-top: 1rem;
}

@media (max-width: 55rem) {
	.feature-row,
	.feature-row--reverse .feature-row__media {
		grid-template-columns: 1fr;
		order: initial;
	}

	.feature-row {
		display: flex;
		flex-direction: column;
		text-align: center;
	}

	.feature-row--reverse {
		flex-direction: column;
	}
}

/* ---------- Obsah ---------- */

.site-main {
	padding-block: 0rem;
}

.entry-title,
.page-title {
	font-size: 1.625rem;
}

.entry-meta,
.post-card__meta {
	/*color: #8a8a8a;*/
	font-size: 0.875rem;
}

.entry-content {
	max-width: 44rem;
}

.entry-content > * + * {
	margin-block-start: 1rem;
}

.entry-thumbnail {
	margin-block: 1.5rem;
}

.entry-thumbnail img {
	border-radius: 3px;
}

/* ---------- Výpisy ---------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: 2.5rem;
	margin-block: 2.5rem;
}

.post-card__thumb img {
	border-radius: 3px;
	margin-block-end: 1rem;
}

.post-card__title {
	font-size: 1.125rem;
	margin: 0 0 0.5rem;
}

.post-card__title a {
	color: #666666;
	text-decoration: none;
}

.post-card__title a:hover {
	color: #213a8e;
}

/* ---------- Tlačítka ---------- */

.button,
.wp-block-button__link {
	display: inline-block;
	background: #213a8e;
	color: white;
	border: 0;
	font-size: 1rem;      /* 20px – Divi .et_pb_button */
	font-weight: 300;
	padding: 0.3em 1em;
	border-radius: 3px;
	text-decoration: none;
}

.button:hover,
.wp-block-button__link:hover {
	background-color: #3f70f4; /* et_pb_bg_layout_light hover */
	text-decoration: underline;
}

/* Tlačítko na tmavém pozadí (patička) – plné, ne obrysové */
.contact-section .button {
	background: #213a8e;
	color: #ffffff;
	border-color: #213a8e;
}

.contact-section .button:hover {
	background: #3f70f4;
	border-radius: 0;
}

/* ---------- Kontaktní sekce (šedá patička) ---------- */

.contact-section {
	background: #58595c;
	color: #ffffff;
	padding-block: 4rem;
}

.contact-section__grid {
	width: 80%;
	max-width: 1080px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 2.5rem;
}

.contact-section h3 {
	color: #ffffff;
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.contact-section ul {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.contact-section li {
	margin-bottom: 0.5rem;
}

.contact-section a {
	color: #ffffff;
	text-decoration: none;
	opacity: 0.85;
	font-size: 0.9rem;
	font-weight: 400;
}

.contact-section a:hover {
	opacity: 1;
	text-decoration: underline;
}

.contact-section__logo img {
	max-width: 180px;
	margin-bottom: 1.5rem;
	display: inline-block;
}

.contact-section__social {
	display: flex;
	gap: 1.5rem;
	margin-top: 0.5rem;
	list-style: none;
	padding: 0;
}

@media (max-width: 55rem) {
	.contact-section__grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.contact-section__social {
		justify-content: center;
	}
}

/* ---------- Dotační banner (bílý pruh s logy EU/OPPI) ---------- */

.grant-banner {
	background: #58595c;
	padding-bottom: 4rem;
}

.grant-banner__text {
	width: 80%;
	max-width: 1080px;
	margin-inline: auto;
	text-align: center;
	color: #ffffff;
	opacity: 0.85;
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.grant-banner__logos {
	background: #ffffff;
	padding: 1rem 0;
}

.grant-banner__logos-inner {
	width: 80%;
	max-width: 1080px;
	margin-inline: auto;
	text-align: center;
}

.grant-banner__logos img {
	height: auto;
	max-height: 3.5rem;
}

/* ---------- Patička (copyright) ---------- */

.site-footer {
	background: #ffffff;
	border-top: 1px solid #e2e2e2;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	padding-block: 1.5rem;
	text-align: center;
}

.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-footer__copy {
	margin: 0;
	font-size: 0.8rem;
}

/* ---------- Obsah běžných podstránek ---------- */

.page-header {
	background: #f5f6f8;
	padding-block: 2.5rem;
	margin-bottom: 2.5rem;
}

/* Fotobanner v hlavičce podstránky (alternativa k .page-header) */
.page-banner {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #58595c; /* fallback, než se fotka načte */
	padding-block: 7rem;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	min-height: 12rem;
}

.page-banner__title {
	color: #ffffff;
	font-size: 3.5rem;
	font-weight: 700;
	margin: 0;
	text-shadow: 0.08em 0.08em 0.08em rgba(0,0,0,0.6);
}

.page-content {
	padding: 0 4rem 2.5rem;
}

.page-content .container {
	max-width: 44rem;
	padding-top: 1rem;
}

.page-content .container.container--wide {
	max-width: 1080px;
}

.cert-grid {
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 1.5rem;
	margin-block: 1.5rem;
}

.cert-card {
	border: 1px solid transparent;
	border-radius: 3px;
	padding: 1.5rem;
	clear: both;
	min-height: 330px;
}

.cert-card h3 {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.cert-card__thumb {
	height: auto;
	border-radius: 3px;
	margin-bottom: 1rem;
	float: left;
	margin-right: 1rem;  padding: 0.25rem;
  border: 1px solid silver;
}

.cert-card__thumb:hover {
  border: 1px solid #213a8e;
}
.cert-card p {
	margin-bottom: 1rem;
}

/* ---------- Blog ---------- */

.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: 2.5rem;
	margin-block: 1.5rem;
}

.blog-card h2 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.blog-card h2 a {
	color: #333333;
	text-decoration: none;
}

.blog-card h2 a:hover {
	color: #213a8e;
}

.blog-card__date {
	font-size: 0.8rem;
	/*color: #8a8a8a;*/
	margin-bottom: 1rem;
}

.blog-card__more {
	font-weight: 600;
	text-decoration: none;
}

.page-content > .container > * + * {
	margin-block-start: 1rem;
}

.page-content h2 {
	color: #213a8e;
	font-size: 2.5rem;
	font-weight: 700;
	margin-block-start: 2.5rem;
	margin-block-end: 1rem;
}

.page-content h2:first-child {
	margin-block-start: 0;
}

.page-content h3 {
	font-size: 1.75rem;
	font-weight: 700;
	color: #333333;
}
.page-content h3 a{
	text-decoration: none;
}
.page-content h3 a:hover{
	text-decoration: underline;
}

.page-content ol {
	padding-left: 1.4em;
}

.page-content ol li,
.page-content ul li {
	margin-bottom: 0.5rem;
}

.page-content ol ul {
	margin-block: 0.5rem;
}

/* ---------- Reference: testimoniály ---------- */

.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
	gap: 2.5rem;
	margin-block: 1.5rem 4rem;
}

.testimonial-card {
	margin: 0;
	padding: 1.5rem;
	border: 1px solid #e2e2e2;
	border-radius: 3px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.testimonial-card__photo {
	width: 100%;
	height: 10rem;
	object-fit: cover;
	border-radius: 3px;
}

.testimonial-card blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: italic;
	color: #666666;
}

.testimonial-card figcaption {
	font-size: 0.875rem;
}

/* ---------- Reference: loga klientů ---------- */

.client-logos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	align-items: center;
	gap: 1.5rem;
	margin-block: 1.5rem 4rem;
}

.client-logos img {
	width: 100%;
	height: auto;
}

.client-logos img:hover {
	filter: grayscale(0%);
	opacity: 1;
}

/* ---------- Reference: fotogalerie výrobků ---------- */


/* Skip link (přístupnost) */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #213a8e;
	color: #ffffff;
	padding: 0.5rem 1rem;
	z-index: 100;
}

.skip-link:focus {
	left: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Tři sloupce na stránce Kontakty (Kontakty / Sídlo firmy / Provozovny) */

.contact-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	margin-block: 1.5rem;
}

.contact-block {
	margin-bottom: 1.5rem;
}

.contact-block h3 {
	margin-bottom: 0.5rem;
}


.contact-columns a {
	color: #213a8e;
}

@media (max-width: 55rem) {
	.contact-columns {
		grid-template-columns: 1fr;
	}
}

.factory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1.5rem;
	margin-block: 1.5rem 2.5rem;
}

.factory-grid__item {
	margin: 0;
}

.factory-grid__item img {
	width: 100%;
	height: auto;
	border-radius: 3px;
	margin-bottom: 0.5rem;
}

.factory-grid__item figcaption {
	font-size: 0.875rem;
}

/* ---------- Fotogalerie (obecná mřížka náhledů) ----------
   Pokud tyhle třídy už ve vašem main.css máte (z dřívějška, ze
   stránky Reference), tenhle blok přeskočte - jen se ujistěte,
   že se ve vašem souboru nevyskytuje dvakrát. */

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 1rem;
	margin-block: 1.5rem;
}


.gallery-grid__item:hover {
	border-color: #3f70f4;
}

.gallery-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/* ---------- Novinky: střídavé bloky text + galerie ---------- */

.news-event {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: flex-start;
	padding-block: 2.5rem;
	border-top: 1px solid #e2e2e2;
}

.news-event:first-of-type {
	border-top: none;
	padding-top: 0;
}

.news-event__text {
	flex: 1 1 32rem;
}

.news-event__gallery {
	flex: 2 1 32rem;
	display: grid;
	/* Pevný horní limit (12rem), NE 1fr - jinak by se osamocená
	   fotka v galerii s málo položkami roztáhla přes celou šířku. */
	grid-template-columns: repeat(auto-fill, minmax(9rem, 12rem));
	gap: 0.5rem;
}

.news-event--reverse {
	flex-direction: row-reverse;
}

@media (max-width: 55rem) {
	.news-event,
	.news-event--reverse {
		flex-direction: column;
	}
}


/* Prvních 6 fotek – normální výška */
.news-event__gallery > .gallery-grid__item {
	aspect-ratio: 3 / 2;
}

/* Oddělovač před malými fotkami */
.news-event__gallery-more {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.4rem;
	padding-top: 0.4rem;
	border-top: 1px solid transparent;
}

/* Malé fotky od 7. pořadí */
.gallery-grid__item--small {
	aspect-ratio: 1 / 1;
}

.gallery-grid__item {
	display: block;
	overflow: hidden;
	border-radius: 3px;
	border: 2px solid transparent;
}

.gallery-grid__item:hover {
	border-color: #213a8e;
}

.gallery-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 55rem) {
	.news-event__gallery {
		flex: 0 0 100%;
	}
}
@media (max-width: 55rem) {
    .tech-icon-list {
        display: none;
    }
    .page-content {
	  padding: 0 0rem 2.5rem;
	}


}