/*
Theme Name: VitalZAM
Description: Motyw potomny Kadence dla strony VitalZAM – wszystko dla profesjonalnych hodowców.
Template: kadence
Version: 1.3.0
Text Domain: vitalzam
*/

:root {
	--vz-green: var(--global-palette1, #0c7f78);
	--vz-green-dark: var(--global-palette2, #007871);
	--vz-soft: #f3f8f7;
	--vz-border: #e2e8f0;
	--vz-radius: 14px;
	--vz-shadow: 0 10px 30px -12px rgba(15, 60, 56, .18);
}

/* ---------- Nagłówek ---------- */
.site-top-header-wrap .header-html,
.site-top-header-wrap .header-html a { color: #fff; text-decoration: none; }
.site-top-header-wrap .header-html p { margin: 0; }
.site-main-header-wrap .site-header-row-container-inner > .site-container { padding-left: 1.5rem; padding-right: 1.5rem; }
.main-navigation .primary-menu-container > ul > li.menu-item > a { font-weight: 700; }
/* Odstęp na <li>, nie na <a> – link ma width:100%, więc margines wypychałby go w prawo i tekst nie byłby na środku. */
.main-navigation .primary-menu-container > ul > li.menu-item:last-child { margin-left: .6em; }
.main-navigation .primary-menu-container > ul > li.menu-item:last-child > a {
	background: var(--vz-green); color: #fff; border-radius: 999px; padding-left: 1.2em; padding-right: 1.2em;
	text-align: center; white-space: nowrap;
}
.main-navigation .primary-menu-container > ul > li.menu-item:last-child > a:hover { background: var(--vz-green-dark); color: #fff; }

/* ---------- Belka tytułowa podstron ---------- */
.entry-hero.page-hero-section .entry-header,
.entry-hero.post-archive-hero-section .entry-header { min-height: 180px; }
.page-hero-section .entry-hero-container-inner,
.post-archive-hero-section .entry-hero-container-inner {
	background: linear-gradient(120deg, #0c7f78 0%, #007871 60%, #0a5c57 100%);
}
.wp-site-blocks .page-title h1,
.wp-site-blocks .post-archive-title h1 { color: #fff; font-size: 2.4rem; }

/* ---------- Sekcje ---------- */
.entry-content > .wp-block-group.alignfull { margin-top: 0; margin-bottom: 0; }
.vz-section { padding: 4rem 1.5rem; }
.vz-section > h2 { font-size: 2rem; margin-bottom: .6em; }
.vz-section > h2.has-text-align-center::after {
	content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--vz-green); margin: .5em auto 0;
}
.vz-alt { background: var(--vz-soft); }
.vz-band { background: var(--vz-green); padding-top: 3rem; padding-bottom: 3rem; }
.vz-band h2, .vz-band h3, .vz-band p { color: #fff; margin: 0; font-weight: 400; line-height: 1.6; }
.vz-band strong { font-weight: 700; }
.vz-lead p { font-size: 1.15rem; }
.vz-prose p { font-size: 1.08rem; line-height: 1.8; }
.vz-cta { background: var(--vz-green); text-align: center; padding-top: 3rem; padding-bottom: 3rem; }
.vz-cta h2 { color: #fff; }
.vz-cta h2::after { display: none !important; }
.vz-cta .wp-block-button__link, .vz-hero .wp-block-button__link { background: #fff; color: var(--vz-green); font-weight: 700; }
.vz-cta .wp-block-button__link:hover, .vz-hero .wp-block-button__link:hover { background: #edf2f7; color: var(--vz-green-dark); }
.wp-block-button__link { border-radius: 999px; padding: .7em 1.6em; font-weight: 700; }

/* ---------- Karty ---------- */
.wp-block-columns.vz-cards { gap: 1.5rem; margin-top: 1.5rem; margin-bottom: 0; }
.vz-card {
	background: #fff; border: 1px solid var(--vz-border); border-top: 4px solid var(--vz-green);
	border-radius: var(--vz-radius); padding: 1.75rem; box-shadow: var(--vz-shadow);
	display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.vz-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(15, 60, 56, .28); }
.vz-card h3, .vz-card h4 { margin-top: 0; color: var(--vz-green-dark); }
.vz-card > .wp-block-buttons { margin-top: auto; padding-top: .75rem; }
.vz-card > :last-child { margin-bottom: 0; }
.vz-card-center { text-align: center; align-items: center; }
.vz-card .vz-card-img { margin: -1.75rem -1.75rem 1.25rem; align-self: stretch; }
.vz-card .vz-card-img img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px 10px 0 0; display: block; }
.vz-checklist ul { list-style: none; padding-left: 0; }
.vz-checklist li { position: relative; padding: .45em 0 .45em 2em; border-bottom: 1px solid var(--vz-border); }
.vz-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--vz-green); font-weight: 700; }

/* ---------- Zdjęcia, ikony, loga ---------- */
.vz-rounded img, .vz-wide-img img { border-radius: var(--vz-radius); box-shadow: var(--vz-shadow); }
.vz-wide-img img { width: 100%; max-height: 420px; object-fit: cover; }
.vz-avatar img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--vz-shadow); }
.vz-avatar { margin-bottom: 1rem; }
.wp-block-columns.vz-icons, .wp-block-columns.vz-logos { flex-wrap: wrap !important; justify-content: center; align-items: center; gap: 1.5rem; }
.wp-block-columns.vz-icons > .wp-block-column { flex: 0 0 110px !important; }
.wp-block-columns.vz-logos > .wp-block-column { flex: 0 0 130px !important; }
.vz-icon img { width: 110px; height: 110px; object-fit: contain; transition: transform .2s ease; }
.vz-icon img:hover { transform: scale(1.08); }
.vz-logo img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .2s ease; }
.vz-logo img:hover { filter: none; opacity: 1; }
.vz-icons figure, .vz-logos figure { margin: 0; text-align: center; }
.vz-brands { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.vz-animals .wp-block-buttons { margin-top: 2rem; }

/* ---------- Strona główna ---------- */
.vz-hero {
	background: linear-gradient(rgba(6, 60, 56, .45), rgba(6, 60, 56, .45)), url(assets/hero.jpg) 49% 53% / cover no-repeat, linear-gradient(135deg, #0c7f78, #0a5c57);
	color: #fff; padding: 150px 20px 140px;
}
.vz-hero h1 { color: #fff; font-size: 3.2rem; line-height: 1.15; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); margin-bottom: .3em; }
.vz-hero p { font-size: 1.25rem; letter-spacing: .08em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.wp-block-columns.vz-intro-cols { align-items: center; gap: 3rem; }
.vz-intro-cols .vz-intro-img { flex-basis: 42% !important; }
.vz-quote > p:first-of-type { font-style: italic; }
.vz-quote h4 { margin-bottom: 0; }

/* ---------- O firmie: zespół ---------- */
.vz-person {
	background: #fff; border: 1px solid var(--vz-border); border-radius: var(--vz-radius); box-shadow: var(--vz-shadow);
	padding: 2rem; margin-top: 1.5rem; display: flex; gap: 2rem; align-items: flex-start;
}
.vz-person .vz-person-photo { flex: 0 0 200px; margin: 0; }
.vz-person .vz-person-photo img { border-radius: var(--vz-radius); width: 200px; height: 240px; object-fit: cover; }
.vz-person h3 { margin-top: 0; color: var(--vz-green-dark); font-size: 1.35rem; }

/* ---------- Kontakt ---------- */
.wp-block-columns.vz-contact-cols { gap: 3rem; align-items: stretch; }
.vz-map { border-radius: var(--vz-radius); box-shadow: var(--vz-shadow); display: block; min-height: 380px; }
.vz-company h3 { color: var(--vz-green-dark); }

/* ---------- Blog ---------- */
.loop-entry.entry { border-radius: var(--vz-radius); overflow: hidden; transition: transform .2s ease; }
.loop-entry.entry:hover { transform: translateY(-4px); }
.vz-news .wp-block-latest-posts li { background: #fff; border: 1px solid var(--vz-border); border-radius: var(--vz-radius); padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--vz-shadow); overflow: hidden; }
.vz-news .wp-block-latest-posts__post-title { font-size: 1.3rem; font-weight: 700; text-decoration: none; }

/* ---------- Stopka ---------- */
.site-footer { background: #0a3f3b; }
.site-footer .footer-html, .site-footer .footer-html a { color: #d7ebe9; }
.site-footer .footer-html a:hover { color: #fff; }

@media (max-width: 767px) {
	.vz-section { padding: 2.5rem 1.25rem; }
	.vz-hero { padding: 90px 20px 80px; }
	.vz-hero h1 { font-size: 2.1rem; }
	.vz-person { flex-direction: column; }
	.wp-site-blocks .page-title h1 { font-size: 1.8rem; }
}

/* ---------- Poprawki układu ---------- */
.entry-content .wp-block-group.vz-section,
.entry-content .wp-block-group.vz-hero { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.wp-block-columns.vz-intro-cols > .vz-intro-img { flex: 0 0 42% !important; }
.wp-block-columns.vz-intro-cols > .vz-intro-text { flex: 1 1 0 !important; }
.vz-intro-text p { font-size: 1.1rem; line-height: 1.8; }
.vz-card .vz-card-img img { object-position: center top; }
.vz-card a { word-break: break-word; }
@media (max-width: 767px) {
	.wp-block-columns.vz-intro-cols > .vz-intro-img { flex-basis: 100% !important; }
}
.site-top-header-wrap .mobile-html,
.site-top-header-wrap .mobile-html a { color: #fff; text-decoration: none; }
.site-top-header-wrap .mobile-html p { margin: 0; }

/* ---------- Układy ze zdjęciami ---------- */
.wp-block-columns.vz-split { align-items: center; gap: 3.5rem; margin-bottom: 0; }
.vz-split .vz-split-text h2 { font-size: 2.2rem; line-height: 1.25; }
.vz-split .vz-split-text > p { font-size: 1.12rem; line-height: 1.8; text-align: left; }
.vz-split figure { margin: 0; }
.vz-split img { width: 100%; }
.vz-band-photo {
	background: linear-gradient(rgba(6, 60, 56, .78), rgba(6, 60, 56, .78)), url(assets/band-krowy.jpg) center 60% / cover no-repeat;
	padding-top: 5rem; padding-bottom: 5rem;
}
.vz-band-photo h3 { font-size: 1.45rem; }
.entry-content .wp-block-group.vz-pano { padding: 0 !important; line-height: 0; }
.vz-pano > *, .vz-pano figure { max-width: none !important; margin: 0 !important; width: 100%; }
.vz-pano img { width: 100%; height: 320px; object-fit: cover; display: block; }

/* Numerowane karty */
.vz-section { counter-reset: vz; }
.vz-num { counter-increment: vz; position: relative; }
.vz-num::before {
	content: "0" counter(vz); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--vz-green); opacity: .22; margin-bottom: .5rem;
}

/* Inicjały zamiast zdjęcia (chowane, gdy jest zdjęcie) */
.vz-initials {
	flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; margin: 0 0 1rem;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #0c7f78, #0a5c57); color: #fff; font-size: 2rem; font-weight: 700; letter-spacing: .04em;
	box-shadow: var(--vz-shadow);
}
.vz-person:has(.vz-person-photo) .vz-initials,
.vz-card:has(.vz-avatar) .vz-initials { display: none; }
.vz-person { border-left: 4px solid var(--vz-green); }

@media (max-width: 767px) {
	.vz-pano img { height: 180px; }
	.wp-block-columns.vz-split { gap: 1.5rem; }
}
.vz-pano img[src*="palety"] { height: auto; }
