/*
Theme Name: Lesný spolok Kotmanová
Theme URI: https://lesnyspolokkotmanova.sk
Author: PS Lesný spolok Kotmanová
Description: Téma pre webstránku pozemkového spoločenstva Lesný spolok Kotmanová.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: lesny-spolok
*/

/* ---------- Základ ---------- */
:root {
	--lsk-line: #E2DED2;
	--lsk-line-2: #D6D1C2;
	--lsk-radius: 10px;
}
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks > main { margin-block-start: 0; }

/* ---------- Hlavička ---------- */
.lsk-header { background: #fff; border-bottom: 1px solid var(--lsk-line); padding-top: 14px; padding-bottom: 14px; }
.lsk-header-inner { gap: 16px; align-items: center; }
.lsk-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #1B2620; }
.lsk-brand:hover { color: #1B2620; }
.lsk-brand svg { flex: 0 0 auto; }
.lsk-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.lsk-brand-name { font-family: var(--wp--preset--font-family--source-serif); font-weight: 700; font-size: 20px; }
.lsk-brand-sub { font-size: 13px; color: #5A6359; }
.lsk-nav { gap: 4px 6px; font-size: 15px; font-weight: 500; }
.lsk-nav .wp-block-navigation-item__content { padding: 10px 10px; color: #1B2620; text-decoration: none; }
.lsk-nav .wp-block-navigation-item__content:hover { color: #2F5D3A; }
.lsk-nav .current-menu-item > .wp-block-navigation-item__content { color: #2F5D3A; font-weight: 600; box-shadow: inset 0 -2px 0 #2F5D3A; }
.lsk-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 32px 24px; }
.lsk-header .wp-block-button__link { padding: 11px 18px; font-size: 15px; }
.lsk-header-actions { gap: 12px; align-items: center; }

/* ---------- Úvodný pás (hero) ---------- */
.lsk-hero {
	position: relative;
	background-color: #1E3D26;
	background-size: cover;
	background-position: center 40%;
	color: #fff;
	padding-top: clamp(80px, 11vw, 140px) !important;
	padding-bottom: clamp(88px, 11vw, 140px) !important;
}
.lsk-hero::before { content: ""; position: absolute; inset: 0; background: rgba(22, 46, 29, 0.58); }
.lsk-hero > * { position: relative; }
.lsk-hero-inner > * { margin-top: 0; margin-bottom: 0; }
.lsk-hero-inner > * + * { margin-top: 20px; }
.lsk-hero h1, .lsk-hero p { color: #fff; }
.lsk-hero h1 { max-width: 820px; margin-top: 8px; margin-bottom: 0; }
.lsk-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #E8E3D3 !important; margin-bottom: 0; }
.lsk-lead { max-width: 640px; font-size: 1.2rem; line-height: 1.6; color: #F5F3EC !important; }
.lsk-hero .wp-block-buttons { margin-top: 12px; gap: 12px; }
.lsk-hero .is-style-outline .wp-block-button__link { color: #fff; border: 1px solid #F5F3EC; background: transparent; padding: 13px 23px; }
.lsk-hero .is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,0.12); }
.lsk-hero .lsk-btn-light .wp-block-button__link { background: #F5F3EC; color: #1B2620; }
.lsk-hero .lsk-btn-light .wp-block-button__link:hover { background: #fff; color: #1B2620; }

/* ---------- Rýchle údaje ---------- */
.lsk-facts { margin-top: -52px !important; position: relative; z-index: 2; }
.lsk-facts .wp-block-columns { gap: 1px !important; background: var(--lsk-line); border: 1px solid var(--lsk-line); border-radius: var(--lsk-radius); overflow: hidden; margin: 0; }
.lsk-facts .wp-block-column { background: #fff; padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.lsk-facts .wp-block-column > * { margin: 0; }
.lsk-fact-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #5A6359; }
.lsk-fact-value { font-family: var(--wp--preset--font-family--source-serif); font-size: 24px; font-weight: 600; line-height: 1.25; }
.lsk-fact-note { font-size: 15px; color: #3E4740; }

/* ---------- Sekcie ---------- */
.lsk-section { padding-top: clamp(56px, 7vw, 88px) !important; padding-bottom: clamp(40px, 5vw, 56px) !important; }
.lsk-section-sage { background: #E9EFE4; }
.lsk-muted { color: #3E4740; }
.lsk-small { font-size: 14px; color: #3E4740; }
.lsk-more { font-weight: 600; font-size: 15px; }
.lsk-more a { text-decoration: none; }

/* ---------- Oznamy ---------- */
.lsk-news { border-top: 1px solid var(--lsk-line-2); }
.lsk-news .wp-block-post-template { margin: 0; }
.lsk-news .wp-block-post { margin: 0 !important; padding: 26px 0; border-bottom: 1px solid var(--lsk-line-2); }
.lsk-news-item { gap: 8px 24px !important; align-items: flex-start !important; }
.lsk-news-meta { flex: 0 0 140px; gap: 8px !important; align-items: flex-start !important; }
.lsk-news-meta .wp-block-post-date { font-size: 15px; font-weight: 600; color: #3E4740; }
.lsk-news-body { flex: 1 1 380px; gap: 8px !important; align-items: stretch !important; }
.lsk-news-body > * { margin: 0; }
.lsk-news-body .wp-block-post-title { font-size: 23px; font-weight: 600; }
.lsk-news-body .wp-block-post-title a { color: #1B2620; text-decoration: none; }
.lsk-news-body .wp-block-post-title a:hover { color: #2F5D3A; }
.lsk-news-body .wp-block-post-excerpt__excerpt { margin: 0; color: #3E4740; }
.lsk-news-body .wp-block-post-excerpt__more-text { display: none; }
.lsk-badge { font-size: 13px; font-weight: 600; }
.lsk-badge a { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #E8E5DC; color: #3E4740; text-decoration: none; margin: 0 4px 4px 0; }
.lsk-badge .wp-block-post-terms__separator { display: none; }

/* ---------- Karty ---------- */
.lsk-card { background: #fff; border: 1px solid var(--lsk-line); border-radius: var(--lsk-radius); padding: 26px 28px !important; }
.lsk-card > * { margin-block: 0; }
.lsk-card > * + * { margin-block-start: 10px; }
.lsk-card-green { border-color: #CFD9C6; }
.lsk-card-role { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #2F5D3A; }
.lsk-card-name { font-family: var(--wp--preset--font-family--source-serif); font-size: 22px; font-weight: 600; line-height: 1.3; }
.lsk-offer-size { font-family: var(--wp--preset--font-family--source-serif); font-size: 44px; font-weight: 700; color: #2F5D3A; line-height: 1; }
.lsk-offer-foot { padding-top: 14px; border-top: 1px solid var(--lsk-line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lsk-linkcard { position: relative; transition: border-color .15s, box-shadow .15s; }
.lsk-linkcard:hover { border-color: #9FB596; box-shadow: 0 2px 10px rgba(30, 61, 38, 0.06); }
.lsk-linkcard h3 { font-family: var(--wp--preset--font-family--inter); font-size: 18px; font-weight: 600; }
.lsk-linkcard h3 a { color: #1B2620; text-decoration: none; }
.lsk-linkcard h3 a::after { content: ""; position: absolute; inset: 0; }
.lsk-linkcard p { font-size: 15px; color: #3E4740; }
.lsk-icon svg { display: block; }

/* ---------- Obrázky ---------- */
.lsk-rounded img { border-radius: 12px; }
.lsk-about-img img { width: 100%; height: 420px; object-fit: cover; }
.lsk-about-img figcaption { font-size: 14px; color: #5A6359; text-align: left; }

/* ---------- Titulný pás podstránok ---------- */
.lsk-titleband { background: #1E3D26; color: #fff; padding-top: 56px !important; padding-bottom: 52px !important; }
.lsk-titleband h1, .lsk-titleband .wp-block-post-title { color: #fff; font-size: clamp(2.2rem, 4vw, 3rem); margin: 0; }
.lsk-titleband .lsk-crumbs { font-size: 14px; color: #C9D3C3; margin: 0 0 12px; }
.lsk-titleband .lsk-crumbs a { color: #C9D3C3; }

/* ---------- Obsah stránok ---------- */
.lsk-content { padding-top: 48px !important; padding-bottom: 80px !important; }
.lsk-content h2 { margin-top: 2.2em; }
.lsk-content h2:first-child { margin-top: 0; }
.lsk-content h3 { margin-top: 1.8em; }

/* Bloky Súbor ako zoznam dokumentov */
.wp-block-file {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-top: 0 !important; margin-bottom: 0 !important; padding: 13px 0; border-top: 1px solid #ECE9E0;
}
.wp-block-file + :not(.wp-block-file) { border-top: 1px solid #ECE9E0; padding-top: 1.5rem; }
.wp-block-file > a:first-child { color: #1B2620; text-decoration: none; font-size: 16px; }
.wp-block-file > a:first-child::before {
	content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5D3A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.wp-block-file > a:first-child:hover { color: #2F5D3A; text-decoration: underline; }
.wp-block-file .wp-block-file__button {
	flex: 0 0 auto; background: transparent !important; color: #2F5D3A !important; border: 1px solid #CFD9C6;
	font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 6px; text-decoration: none;
}
.wp-block-file .wp-block-file__button:hover { background: #E9EFE4 !important; }

/* Galérie */
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 8px; }

/* Formulár hesla */
.post-password-form { background: #fff; border: 1px solid var(--lsk-line); border-radius: var(--lsk-radius); padding: 32px; max-width: 560px; }
.post-password-form p:first-child { margin-top: 0; }
.post-password-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.post-password-form input[type="password"] { padding: 12px 14px; font-size: 16px; border: 1px solid #BDB8AA; border-radius: 6px; font-family: inherit; }
.post-password-form input[type="submit"] { margin-top: 12px; padding: 13px 26px; font-size: 16px; font-weight: 600; color: #fff; background: #2F5D3A; border: 0; border-radius: 6px; cursor: pointer; font-family: inherit; }
.post-password-form input[type="submit"]:hover { background: #1E3D26; }
.post-password-form p { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }

/* ---------- Pätička ---------- */
.lsk-footer { background: #1E3D26; color: #E8E3D3; padding-top: 56px !important; padding-bottom: 32px !important; }
.lsk-footer a { color: #E8E3D3; }
.lsk-footer a:hover { color: #fff; }
.lsk-footer .lsk-footer-title { font-family: var(--wp--preset--font-family--source-serif); font-size: 22px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 10px; }
.lsk-footer .lsk-footer-head { font-weight: 600; color: #fff; margin-bottom: 4px; }
.lsk-footer p { margin: 0; font-size: 15px; line-height: 1.7; }
.lsk-footer-bottom { border-top: 1px solid #36573F; padding-top: 22px; margin-top: 36px !important; font-size: 14px; color: #B9C2B4; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.lsk-facts { margin-top: -32px !important; }
	.lsk-news-meta { flex-basis: 100%; flex-direction: row !important; align-items: center !important; }
	.lsk-about-img img { height: 260px; }
}
