/*
Theme Name: SVJ Vodní
Theme URI: https://nasdumonline.cz
Author: Společenství vlastníků Vodní 2–16, Krnov
Description: Čistý a přístupný vzhled informačního webu SVJ Vodní 2–16, Krnov.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: svj-vodni
*/

:root {
	--navy: #102f49;
	--navy-dark: #08243c;
	--text: #3c4f60;
	--teal: #07949c;
	--teal-dark: #067b83;
	--teal-light: #dff3f4;
	--mist: #f0f8f8;
	--line: #dce8eb;
	--white: #fff;
	--shadow: 0 12px 34px rgba(12, 48, 67, .08);
	--radius: 16px;
	--container: 1320px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: var(--teal-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

img {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4 {
	color: var(--navy-dark);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.15;
}

.svj-container {
	width: min(calc(100% - 48px), var(--container));
	margin-right: auto;
	margin-left: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 16px;
	background: white;
	color: var(--navy);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(220, 232, 235, .9);
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(12px);
}

.svj-header-inner {
	display: flex;
	min-height: 86px;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
}

.svj-brand {
	display: flex;
	flex-direction: column;
	color: var(--navy);
	line-height: 1.18;
	text-decoration: none;
	white-space: nowrap;
}

.svj-brand span {
	font-size: 13px;
	font-weight: 650;
	letter-spacing: .015em;
}

.svj-brand strong {
	font-size: 22px;
	letter-spacing: -.025em;
}

.svj-primary-nav {
	display: flex;
	align-items: center;
	gap: clamp(22px, 3.5vw, 52px);
}

.svj-menu {
	display: flex;
	align-items: center;
	gap: clamp(19px, 2.5vw, 38px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.svj-menu a {
	position: relative;
	display: block;
	padding: 30px 0 27px;
	color: var(--navy);
	font-weight: 700;
	text-decoration: none;
}

.svj-menu a:after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 18px;
	left: 0;
	height: 3px;
	border-radius: 3px;
	background: var(--teal);
	transform: scaleX(0);
	transition: transform .2s;
}

.svj-menu a:hover:after,
.svj-menu .current-menu-item > a:after,
.svj-menu .current_page_item > a:after {
	transform: scaleX(1);
}

.svj-header-login {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	gap: 9px;
	padding: 10px 17px;
	border: 1.5px solid var(--navy);
	border-radius: 9px;
	color: var(--navy);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s, color .2s;
}

.svj-header-login:hover {
	background: var(--navy);
	color: white;
}

.svj-menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: white;
	color: var(--navy);
}

.svj-menu-toggle .icon-close {
	display: none;
}

.svj-menu-toggle[aria-expanded="true"] .icon-menu {
	display: none;
}

.svj-menu-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

.svj-icon {
	display: inline-block;
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	vertical-align: middle;
}

.svj-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(112deg, #fff 0%, #f7fbfb 48%, #e9f6f6 100%);
}

.svj-hero:before {
	content: "";
	position: absolute;
	width: 480px;
	height: 480px;
	right: -100px;
	top: -190px;
	border-radius: 50%;
	background: rgba(7, 148, 156, .05);
}

.svj-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, .93fr) minmax(500px, 1.07fr);
	min-height: 590px;
	align-items: center;
	gap: 28px;
}

.svj-hero-copy {
	position: relative;
	z-index: 2;
	padding: 60px 0 120px;
}

.svj-kicker {
	color: var(--teal-dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.svj-hero h1 {
	max-width: 690px;
	margin: 13px 0 23px;
	font-size: clamp(45px, 5vw, 72px);
	letter-spacing: -.045em;
}

.svj-hero-copy > p {
	max-width: 630px;
	margin: 0;
	font-size: clamp(19px, 2vw, 25px);
	line-height: 1.5;
}

.svj-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 34px;
}

.svj-button {
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: 9px;
	font-weight: 800;
	text-decoration: none;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.svj-button:hover {
	transform: translateY(-2px);
}

.svj-button-primary {
	background: var(--teal);
	color: white;
	box-shadow: 0 11px 28px rgba(7, 148, 156, .24);
}

.svj-button-primary:hover {
	background: var(--teal-dark);
	color: white;
}

.svj-button-outline {
	border-color: var(--teal);
	background: rgba(255, 255, 255, .78);
	color: var(--teal-dark);
}

.svj-button-outline:hover {
	background: var(--teal);
	color: white;
}

.svj-hero-art {
	position: relative;
	align-self: end;
	z-index: 1;
}

.svj-hero-art svg {
	display: block;
	width: 112%;
	max-width: none;
	margin-left: -4%;
}

.svj-quick-links {
	position: relative;
	z-index: 3;
	margin-top: -83px;
}

.svj-quick-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 17px;
}

.svj-quick-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	min-height: 160px;
	align-items: center;
	gap: 17px;
	padding: 23px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: white;
	box-shadow: var(--shadow);
	color: var(--text);
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}

.svj-quick-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(12, 48, 67, .12);
}

.svj-quick-icon {
	display: grid;
	width: 62px;
	height: 62px;
	place-items: center;
	border-radius: 50%;
	background: var(--teal-light);
	color: var(--teal-dark);
}

.svj-quick-icon .svj-icon {
	width: 31px;
	height: 31px;
	stroke-width: 2.2;
}

.svj-quick-card strong,
.svj-quick-card small,
.svj-quick-card em {
	display: block;
}

.svj-quick-card strong {
	margin-bottom: 5px;
	color: var(--navy-dark);
	font-size: 19px;
	line-height: 1.3;
}

.svj-quick-card small {
	font-size: 13px;
	line-height: 1.45;
}

.svj-quick-card em {
	width: fit-content;
	margin-top: 9px;
	padding: 3px 7px;
	border-radius: 4px;
	background: var(--teal-light);
	color: var(--teal-dark);
	font-size: 10px;
	font-style: normal;
	font-weight: 800;
}

.svj-card-arrow {
	width: 18px;
	color: var(--teal);
}

.svj-video-strip {
	position: relative;
	display: grid;
	min-height: clamp(280px, 25vw, 360px);
	overflow: hidden;
	place-items: center;
	background: var(--navy) url("assets/media/vodni-byty-poster.jpg") center 43% / cover no-repeat;
}

.svj-video-strip:after {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: rgba(8, 36, 60, .43);
	content: "";
}

.svj-video-strip-media {
	position: absolute;
	width: 100%;
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center 43%;
}

.svj-video-strip-content {
	position: relative;
	z-index: 2;
	display: flex;
	min-height: inherit;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	gap: 28px;
	padding-top: 42px;
	padding-bottom: 42px;
	text-align: center;
}

.svj-video-strip h2 {
	max-width: 900px;
	margin: 0;
	color: white;
	font-size: clamp(37px, 4.4vw, 61px);
	text-shadow: 0 3px 22px rgba(0, 0, 0, .24);
}

.svj-video-strip .svj-button {
	min-width: 210px;
}

.svj-news-section {
	padding: 88px 0 82px;
}

.svj-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.svj-section-head h2,
.svj-about-inner h2 {
	margin: 6px 0 0;
	font-size: clamp(31px, 3.3vw, 46px);
}

.svj-section-head > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
	text-decoration: none;
}

.svj-section-head > a .svj-icon {
	width: 17px;
}

.svj-news-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.svj-news-tile {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--radius);
	background: linear-gradient(145deg, #dff3f4, #86cdd1);
	box-shadow: var(--shadow);
	color: white;
	text-decoration: none;
}

.svj-news-tile-media,
.svj-news-tile-media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.svj-news-tile-media img {
	object-fit: cover;
	transition: transform .35s ease;
}

.svj-news-tile:hover .svj-news-tile-media img {
	transform: scale(1.045);
}

.svj-news-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 78% 18%, rgba(255,255,255,.28) 0 16%, transparent 17%),
		linear-gradient(145deg, #9ad9dc, #078b93);
}

.svj-news-placeholder:before,
.svj-news-placeholder:after {
	content: "";
	position: absolute;
	left: -8%;
	width: 116%;
	height: 34%;
	border-radius: 50%;
	background: rgba(255,255,255,.13);
}

.svj-news-placeholder:before { bottom: 7%; transform: rotate(-8deg); }
.svj-news-placeholder:after { bottom: -14%; transform: rotate(6deg); }

.svj-news-placeholder .svj-icon {
	width: 68px;
	height: 68px;
	op: -30px;
	position: relative;
	color: rgba(255,255,255,.88);
}

.svj-news-tile-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	background: linear-gradient(180deg, transparent 25%, rgba(5, 30, 47, .25) 52%, rgba(5, 30, 47, .94) 100%);
}

.svj-news-tile-date {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	opacity: .9;
}

.svj-news-tile-date .svj-icon {
	width: 16px;
	height: 16px;
}

.svj-news-tile-overlay strong {
	display: block;
	color: white;
	font-size: clamp(18px, 1.55vw, 24px);
	line-height: 1.25;
}

.svj-news-tile-more {
	display: flex;
	max-height: 0;
	align-items: center;
	gap: 4px;
	margin-top: 0;
	overflow: hidden;
	font-size: 12px;
	font-weight: 800;
	opacity: 0;
	transition: opacity .2s, max-height .2s, margin .2s;
}

.svj-news-tile:hover .svj-news-tile-more {
	max-height: 30px;
	margin-top: 9px;
	opacity: 1;
}

.svj-news-tile-more .svj-icon {
	width: 15px;
	height: 15px;
}

.svj-no-news,
.svj-empty-public {
	padding: 34px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--mist);
}

.svj-no-news p {
	margin: 5px 0 0;
}

.svj-about-strip {
	padding: 70px 0;
	background: var(--mist);
}

.svj-about-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 60px;
}

.svj-about-inner p {
	max-width: 820px;
	font-size: 18px;
}

.site-footer {
	padding: 50px 0 25px;
	background: var(--navy-dark);
	color: #d8e5eb;
}

.svj-footer-contacts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px;
	padding-bottom: 38px;
	border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.svj-footer-contacts > a,
.svj-footer-contacts > div {
	display: flex;
	align-items: center;
	gap: 16px;
	color: white;
	text-decoration: none;
}

.svj-footer-contacts .svj-icon {
	width: 46px;
	height: 46px;
	padding: 11px;
	border-radius: 50%;
	background: var(--teal);
}

.svj-footer-contacts small,
.svj-footer-contacts strong {
	display: block;
}

.svj-footer-contacts small {
	color: #aabfc9;
}

.svj-footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding-top: 20px;
	font-size: 13px;
}

.svj-footer-bottom p {
	margin: 0;
}

.svj-footer-bottom a {
	color: #d8e5eb;
}

.svj-page-hero {
	padding: clamp(62px, 8vw, 105px) 0;
	background: linear-gradient(120deg, var(--mist), #fff);
}

.svj-page-hero h1 {
	max-width: 900px;
	margin: 11px 0 12px;
	font-size: clamp(40px, 5vw, 64px);
}

.svj-page-hero p {
	max-width: 700px;
	margin: 0;
	font-size: 20px;
}

.svj-content-layout,
.svj-entry-content {
	padding-top: 64px;
	padding-bottom: 84px;
}

.svj-entry-content {
	max-width: 940px;
	font-size: 18px;
}

.svj-entry-content h2 {
	margin-top: 2.2em;
	font-size: 31px;
}

.svj-entry-content h3 {
	margin-top: 1.8em;
	font-size: 24px;
}

.svj-entry-content li {
	margin: 7px 0;
}

.svj-entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.svj-entry-content th,
.svj-entry-content td {
	padding: 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.svj-post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.svj-post-card {
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.svj-post-date {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--teal-dark);
	font-size: 13px;
	font-weight: 750;
}

.svj-post-date .svj-icon {
	width: 18px;
}

.svj-post-card h2 {
	margin: 12px 0;
	font-size: 27px;
}

.svj-post-card h2 a {
	color: var(--navy);
	text-decoration: none;
}

.svj-text-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 800;
	text-decoration: none;
}

.svj-text-link .svj-icon {
	width: 17px;
}

.navigation.pagination {
	margin-top: 40px;
}

.nav-links {
	display: flex;
	gap: 8px;
}

.nav-links .page-numbers {
	padding: 8px 13px;
	border: 1px solid var(--line);
	border-radius: 7px;
	text-decoration: none;
}

.nav-links .current {
	background: var(--teal);
	color: white;
}

.svj-article-content {
	max-width: 900px;
}

.svj-featured-image {
	margin: 0 0 38px;
}

.svj-featured-image img {
	border-radius: var(--radius);
}

.svj-article-back {
	margin-top: 50px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-weight: 800;
}

.svj-404 {
	padding-top: 120px;
	padding-bottom: 140px;
	text-align: center;
}

.svj-404 h1 {
	margin: 10px 0;
	font-size: clamp(42px, 6vw, 72px);
}

@media (max-width: 1120px) {
	.svj-header-inner {
		min-height: 74px;
	}
	.svj-menu-toggle {
		display: grid;
	}
	.svj-primary-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		align-items: stretch;
		gap: 15px;
		padding: 20px 24px 28px;
		border-bottom: 1px solid var(--line);
		background: white;
		box-shadow: var(--shadow);
	}
	.svj-primary-nav.is-open {
		display: flex;
	}
	.svj-menu {
		flex: 1;
		align-items: stretch;
		gap: 14px;
	}
	.svj-menu a {
		padding: 12px 0;
	}
	.svj-menu a:after {
		bottom: 4px;
	}
	.svj-header-login {
		align-self: center;
	}
	.svj-hero-inner {
		grid-template-columns: minmax(0, 1fr) minmax(390px, .85fr);
		min-height: 540px;
	}
	.svj-quick-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.svj-quick-links {
		margin-top: -60px;
	}
	.svj-quick-card {
		min-height: 140px;
	}
	.svj-news-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	body.admin-bar .site-header {
		top: 46px;
	}
	.svj-primary-nav.is-open {
		flex-direction: column;
	}
	.svj-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.svj-menu a {
		border-bottom: 1px solid var(--line);
	}
	.svj-header-login {
		align-self: stretch;
		justify-content: center;
	}
	.svj-hero-inner {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.svj-hero-copy {
		padding: 68px 0 10px;
	}
	.svj-hero-art {
		max-width: 650px;
		margin: 0 auto;
	}
	.svj-hero-art svg {
		width: 100%;
		margin-left: 0;
	}
	.svj-quick-links {
		margin-top: -18px;
	}
	.svj-footer-contacts {
		grid-template-columns: 1fr;
	}
	.svj-about-inner {
		grid-template-columns: 1fr;
		gap: 25px;
	}
	.svj-post-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.svj-container {
		width: min(calc(100% - 30px), var(--container));
	}
	.svj-brand span {
		font-size: 11px;
	}
	.svj-brand strong {
		font-size: 18px;
	}
	.svj-hero h1 {
		font-size: clamp(39px, 12vw, 54px);
	}
	.svj-hero-actions,
	.svj-hero-actions .svj-button {
		width: 100%;
	}
	.svj-quick-grid {
		grid-template-columns: 1fr;
	}
	.svj-quick-card {
		min-height: 128px;
	}
	.svj-video-strip {
		min-height: 300px;
	}
	.svj-video-strip-content {
		gap: 22px;
	}
	.svj-section-head {
		align-items: flex-start;
		flex-direction: column;
	}
	.svj-news-tiles {
		grid-template-columns: 1fr;
	}
	.svj-footer-bottom {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *:before, *:after { transition-duration: .01ms !important; }
	.svj-video-strip-media { display: none; }
}
