/*
Theme Name: SLZHT
Theme URI: https://slzht.pl
Author: Śląski Związek Hokeja na Trawie
Version: 2.0.0
Description: Prosty, responsywny motyw dla Śląskiego Związku Hokeja na Trawie.
*/

:root {
	--slzht-primary: #2345b8;
	--slzht-accent: #5a9867;
	--slzht-light: #f3f8f4;
	--slzht-text: #183247;
	--slzht-muted: #64748b;
	--slzht-border: #dce5eb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--slzht-text);
	background: #fff;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.site-container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: #fff; color: var(--slzht-primary); border-bottom: 1px solid var(--slzht-border); }
.site-header__inner { min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.site-brand { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 5px; }
.site-brand .custom-logo, .site-brand__logo { max-width: 82px; max-height: 82px; width: auto; }
.site-brand strong, .site-brand small { display: block; }
.site-brand strong { color: var(--slzht-accent); font-size: 1.15rem; letter-spacing: .04em; line-height: 1.1; white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav > div > ul, .site-nav > ul { display: flex; flex-wrap: nowrap; gap: 10px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.site-nav ul ul { display: none; }
.site-nav a {
	display: block;
	padding: 11px 16px;
	border: 2px solid var(--slzht-primary);
	border-radius: 7px;
	color: var(--slzht-primary);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1;
	transition: filter .18s ease;
}
.site-nav .current-menu-item a {
	border-color: var(--slzht-accent);
	color: #fff;
	background: var(--slzht-accent);
}
.site-nav a:hover, .site-nav a:focus-visible {
	border-color: var(--slzht-accent);
	color: var(--slzht-primary);
	background: color-mix(in srgb, var(--slzht-accent) 20%, #fff);
}
.site-nav a:active { background: color-mix(in srgb, var(--slzht-accent) 32%, #fff); }
.hero { color: #fff; background: linear-gradient(120deg, var(--slzht-primary), color-mix(in srgb, var(--slzht-primary) 70%, #000)); }
.hero__inner { min-height: 440px; display: flex; align-items: center; }
.hero__content { max-width: 650px; padding: 64px 0; }
.eyebrow { color: var(--slzht-accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 16px 0; font-size: clamp(2.5rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -.04em; }
.hero h1 span { color: var(--slzht-accent); }
.hero__lead { max-width: 500px; color: rgba(255,255,255,.82); font-size: 1.15rem; }
.button { display: inline-block; margin-top: 18px; padding: 13px 22px; border-radius: 5px; color: var(--slzht-primary); background: var(--slzht-accent); font-weight: 800; }
.button:hover { filter: brightness(1.08); }
.content-section { padding-top: 76px; padding-bottom: 90px; }
.single-layout { padding-top: 64px; padding-bottom: 90px; }
.single-entry { width: min(820px, 100%); margin: 0 auto; }
.single-entry__header { margin-bottom: 30px; }
.single-entry__header h1 { max-width: 760px; margin: 10px 0 8px; color: var(--slzht-primary); font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.08; }
.single-entry__header time { color: var(--slzht-muted); font-size: .9rem; }
.single-entry__image { margin: 0 0 34px; overflow: hidden; border-radius: 10px; background: var(--slzht-light); }
.single-entry__image img { width: 100%; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: 100%; }
.entry-content img,
.entry-content figure,
.entry-content figure img {
	max-width: 100%;
}
.entry-content img {
	display: block;
}
.entry-content figure img,
.entry-content > p > img,
.entry-content > img {
	width: 100% !important;
	height: clamp(220px, 38vw, 420px) !important;
	object-fit: cover;
	object-position: center;
}
.entry-content figure {
	margin: 1.5em 0;
}
.entry-content .alignleft,
.entry-content .alignright {
	float: none;
	margin: 1.5em 0;
}
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2em; color: var(--slzht-primary); line-height: 1.2; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.25em; }
.entry-content a { color: var(--slzht-primary); text-decoration: underline; text-decoration-color: var(--slzht-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content blockquote { margin: 2em 0; padding: 18px 24px; border-left: 4px solid var(--slzht-accent); background: var(--slzht-light); }
.entry-content iframe, .entry-content video { max-width: 100%; }
.page-attachments { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--slzht-border); }
.page-attachments h2 { color: var(--slzht-primary); }
.page-attachments ul { margin: 0; padding: 0; list-style: none; }
.page-attachments li { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--slzht-border); }
.page-attachments a { color: var(--slzht-primary); font-weight: 800; }
.page-attachments span { color: var(--slzht-muted); font-size: .9rem; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; border: 1px solid var(--slzht-border); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(18,59,93,.06); }
.post-card__image {
	display: block;
	width: 100%;
	height: clamp(180px, 20vw, 250px);
	overflow: hidden;
	background: var(--slzht-light);
}
.post-card__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform .2s ease;
}
.post-card__image--placeholder { display: block; background: linear-gradient(135deg, var(--slzht-primary), var(--slzht-accent)); }
.post-card:hover .post-card__image img { transform: scale(1.03); }
.post-card__body { padding: 22px; }
.post-card time { color: var(--slzht-muted); font-size: .78rem; }
.post-card h3 { margin: 8px 0; font-size: 1.3rem; line-height: 1.25; }
.post-card h3 a:hover, .text-link:hover { color: var(--slzht-primary); }
.post-card p { color: var(--slzht-muted); }
.text-link { color: var(--slzht-accent); font-weight: 800; }
.site-footer { color: #fff; background: var(--slzht-primary); }
.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(180px, 1.1fr) minmax(130px, .7fr) minmax(300px, 1.5fr) auto;
	align-items: center;
	gap: 32px;
	padding-top: 38px;
	padding-bottom: 38px;
}
.site-footer__about strong { font-size: 1.05rem; }
.site-footer p { margin: 4px 0 0; color: rgba(255,255,255,.7); }
.site-footer__col { min-width: 0; }
.site-footer__title {
	margin: 0 0 12px;
	color: rgba(255,255,255,.72);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.site-footer__logo-wrap,
.site-footer__partners { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.site-footer__logo-wrap a,
.site-footer__partners a {
	display: flex;
	min-height: 66px;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 6px;
	background: #fff;
	transition: transform .18s ease, box-shadow .18s ease;
}
.site-footer__logo-wrap a:hover,
.site-footer__partners a:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,.2); }
.site-footer__logo { width: auto; max-width: 124px; max-height: 50px; object-fit: contain; }
.site-footer__logo--main { width: 145px; height: 50px; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; white-space: nowrap; }
.site-footer__links a:hover { color: var(--slzht-accent); }
.site-footer__bar { padding: 12px 20px; color: rgba(255,255,255,.7); background: rgba(0,0,0,.16); text-align: center; font-size: .85rem; }
.nav-links { margin-top: 32px; }
@media (max-width: 900px) {
	.site-footer__inner { display: flex; align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
	.site-header__inner, .site-footer__inner { align-items: flex-start; flex-direction: column; padding-top: 20px; padding-bottom: 20px; }
	.site-nav > div > ul, .site-nav > ul { gap: 12px 18px; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
	.site-nav { width: 100%; margin-left: 0; }
	.site-nav a { padding: 10px 13px; font-size: .9rem; }
	.posts-grid { grid-template-columns: 1fr; }
	.hero__inner { min-height: 390px; }
	.site-footer__links { flex-wrap: wrap; }
	.site-footer__partners { gap: 8px; }
}
