/* ==========================================================================
   VenkovníStínění.eu – doplňky šablony pro WordPress
   (design.css obsahuje komponenty z návrhu, sem patří vše ostatní)
   ========================================================================== */

:root {
	--vs-navy: #0b1626;
	--vs-ink: #16283d;
	--vs-blue: #1f6fb2;
	--vs-orange: #ff6a13;
	--vs-orange-2: #ff8a3d;
	--vs-sand: #f4f1ec;
	--vs-line: #e8e3da;
	--vs-muted: #8a9bb0;
	--vs-text: #66788f;
	--vs-radius: 24px;
	--vs-shadow: 0 30px 60px -24px rgba(11, 22, 38, .35);
	--vs-font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ---------- Základ ---------- */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html.vs-modal-open, html.vs-modal-open body { overflow: hidden; }
img { max-width: 100%; height: auto; }

/* Odkazy převzaté ze <span data-href> mají barvu komponenty, ne výchozí modrou. */
:where(.vs-a), :where(.vs-a:hover) { color: inherit; text-decoration: none; }

button { font-family: inherit; }
.vs-icon-btn { background: none; border: 0; padding: 0; cursor: pointer; line-height: 1; }

.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;
}
.vs-skip {
	position: absolute; left: 12px; top: -60px; z-index: 6000; background: var(--vs-navy); color: #fff;
	padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.vs-skip:focus { top: 12px; color: #fff; }
:focus-visible { outline: 2px solid var(--vs-blue); outline-offset: 2px; }

/* Panel administrace nahoře */
.admin-bar .cb, .admin-bar .c1a { top: 32px; }
@media (max-width: 782px) { .admin-bar .cb, .admin-bar .c1a { top: 46px; } }
@media (max-width: 600px) { .admin-bar .cb, .admin-bar .c1a { top: 0; } }

/* Chybějící obrázek – neutrální plocha místo rozbité ikony */
.vs-img-placeholder { display: block; background: linear-gradient(135deg, #dce7f1, #c4d4e4); }
.c2o.vs-img-placeholder { position: absolute; inset: 0; }

.vs-logo-img { max-height: 46px; width: auto; display: block; }

/* Vyhledávací pole v hlavičce je tlačítko */
.vs-search-trigger { font: inherit; font-size: 14.5px; text-align: left; }
.vs-search-trigger .cq { text-align: left; }

/* Tlačítko Nahoru se ukáže až po odscrollování */
.vs-to-top { border: 0; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s, background .25s; }
.vs-to-top.is-visible { opacity: 1; pointer-events: auto; }
@media (max-width: 1099px) { .c5r, .c5s { bottom: 84px; } .c5r { bottom: 142px; } }

/* ==========================================================================
   Mega menu (podmenu hlavní navigace)
   ========================================================================== */
.vs-nav-item { display: flex; flex-shrink: 0; }
.vs-nav-item > .c16, .vs-nav-item > .c5t { gap: 3px; }
.vs-nav-item.is-open > .c16 { color: var(--vs-orange); }
.vs-nav-item.is-open .vs-chevron { transform: rotate(180deg); }
.vs-nav-link:hover { color: var(--vs-orange); }

.vs-mega {
	position: absolute;
	top: calc(100% - 2px);
	left: 50%;
	width: min(1316px, calc(100% - 64px));
	transform: translate(-50%, 8px);
	z-index: 950;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, transform .22s cubic-bezier(.22, .8, .28, 1), visibility 0s linear .22s;
}
.vs-nav-item.is-open .vs-mega {
	opacity: 1; visibility: visible; pointer-events: auto;
	transform: translate(-50%, 0);
	transition-delay: 0s;
}
.vs-mega__inner {
	background: #fff;
	border: 1px solid var(--vs-line);
	border-radius: 26px;
	box-shadow: 0 40px 80px -30px rgba(11, 22, 38, .4), 0 2px 6px rgba(11, 22, 38, .04);
	padding: 22px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}
.vs-mega__inner.has-promo { grid-template-columns: minmax(0, 1fr) 260px; }
.vs-mega__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 14px; }
.vs-mega__title { font-family: var(--vs-font-head); font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--vs-navy); }
.vs-mega__all { font-size: 13px; font-weight: 700; color: var(--vs-blue); white-space: nowrap; }
.vs-mega__all:hover { color: var(--vs-orange); }
.vs-mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; }
.vs-mega__item {
	display: flex; align-items: center; gap: 12px;
	padding: 10px; border-radius: 16px; color: var(--vs-navy);
	transition: background .2s;
}
.vs-mega__item:hover, .vs-mega__item.is-active { background: var(--vs-sand); color: var(--vs-navy); }
.vs-mega__thumb {
	position: relative; flex-shrink: 0; width: 58px; height: 48px;
	border-radius: 10px; overflow: hidden; background: var(--vs-sand);
	border: 1px solid var(--vs-line);
	display: flex; align-items: center; justify-content: center; color: var(--vs-blue);
}
.vs-mega__thumb.is-icon { background: #ecf1f7; border-color: #ecf1f7; }
.vs-mega__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vs-mega__text { min-width: 0; display: flex; flex-direction: column; }
.vs-mega__name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.vs-mega__sub { font-size: 12px; color: var(--vs-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-mega__promo {
	position: relative; display: block; min-height: 200px; border-radius: 20px; overflow: hidden;
	background: #dce7f1; color: #fff; isolation: isolate;
}
.vs-mega__promo .c2o { transition: transform .9s cubic-bezier(.22, .8, .28, 1); }
.vs-mega__promo:hover .c2o { transform: scale(1.05); }
.vs-mega__promo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 16, 30, .05) 25%, rgba(8, 16, 30, .85) 100%); }
.vs-mega__promo-text { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.vs-mega__promo-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vs-orange-2); }
.vs-mega__promo-title { font-family: var(--vs-font-head); font-weight: 800; font-size: 16.5px; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.vs-mega__promo:hover { color: #fff; }

@media (max-width: 1099px) {
	.vs-mega { width: calc(100% - 32px); }
	.vs-mega__inner.has-promo { grid-template-columns: minmax(0, 1fr); }
	.vs-mega__promo { display: none; }
	.vs-mega__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Popupy
   ========================================================================== */
.vs-modal__backdrop { position: absolute; inset: 0; }
.vs-modal [role="dialog"], .vs-modal .cgj { position: relative; z-index: 1; }

/* Vyhledávání */
.cg2 { padding: 0 16px; overflow-y: auto; }
.cg3 { margin-top: clamp(16px, 8vh, 64px); }
.cg5 { color: var(--vs-muted); font-size: 21px; }
.cg6 { background: transparent; font-family: inherit; font-size: 17px; padding: 6px 0; min-width: 0; }
.cg6::-webkit-search-cancel-button { display: none; }
.cg7 { color: var(--vs-muted); display: flex; }
.cg7:hover { color: var(--vs-navy); }
.cg8 { max-height: min(62vh, 520px); }
.cgb { font-family: inherit; }
.cgc { padding-top: 12px; padding-bottom: 6px; }
.cgd { color: var(--vs-navy); }
.cge { position: relative; background: var(--vs-sand); border: 1px solid var(--vs-line); }
.cge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cgh { display: block; }
.vs-search-empty { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; padding: 18px 20px; }

/* Mobilní menu */
.cgj { display: flex; flex-direction: column; animation: vsSlideIn .22s ease; }
@keyframes vsSlideIn { from { transform: translateX(-100%); } to { transform: none; } }
.cgo { display: block; }
.cgr { color: var(--vs-navy); }
.cgr + .cgr { margin-top: 10px; background: var(--vs-navy); color: #fff; }

/* Zaměření */
.cfv { line-height: 1; }
.cfz { font-family: inherit; width: 100%; }

/* Galerie */
.vs-lightbox { position: fixed; inset: 0; z-index: 3400; background: rgba(8, 16, 30, .92); display: flex; align-items: center; justify-content: center; padding: 60px 70px; animation: vsFade .18s ease; }
.vs-lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vs-lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 18px; object-fit: contain; background: #1a2638; }
.vs-lightbox__caption { color: #cfe0f2; font-size: 14px; white-space: pre; }
.vs-lightbox__btn {
	position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center;
}
.vs-lightbox__btn:hover { background: var(--vs-orange); }
.vs-lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.vs-lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.vs-lightbox__close { right: 14px; top: 14px; }
.vs-lightbox.is-single .vs-lightbox__prev, .vs-lightbox.is-single .vs-lightbox__next { display: none; }
@media (max-width: 759px) { .vs-lightbox { padding: 60px 12px; } .vs-lightbox__prev, .vs-lightbox__next { top: auto; bottom: 10px; transform: none; } }

/* ==========================================================================
   Formuláře
   ========================================================================== */
.vs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.vs-form-message { font-size: 14px; font-weight: 600; margin-top: 12px; }
.vs-form-message:empty { display: none; }
.vs-form-message.is-ok { color: #1f8a4c; }
.vs-form-message.is-error { color: #c0392b; }
.vs-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.vs-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vs-check:not(.is-checked) .c82 { background: #fff; box-shadow: inset 0 0 0 1.5px #cbd8e6; }
.vs-check input:focus-visible + .c82 { outline: 2px solid var(--vs-blue); outline-offset: 2px; }
.is-invalid { border-color: #c0392b !important; box-shadow: 0 0 0 4px rgba(192, 57, 43, .1) !important; }
.vs-notice { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; background: #e7f5ec; color: #1f8a4c; }
.vs-notice.is-error { background: #fdecea; color: #c0392b; }

/* Formuláře z jiných pluginů (Contact Form 7 apod.) */
.vs-shortcode-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.vs-shortcode-form textarea, .vs-shortcode-form select {
	width: 100%; border: 1px solid #e8e3da; border-radius: 14px; padding: 14px 16px; font: inherit; background: #faf8f5;
}
.vs-shortcode-form [type=submit] {
	background: var(--vs-orange); color: #fff; border: 0; padding: 15px 28px; border-radius: 999px;
	font-family: var(--vs-font-head); font-weight: 700; cursor: pointer;
}

/* ==========================================================================
   Obsah z editoru (obecné stránky, obchodní podmínky…)
   ========================================================================== */
.vs-content { font-size: 15px; color: #556983; line-height: 1.7; }
.vs-content > *:first-child { margin-top: 0; }
.vs-content h2 { font-size: 21px; font-weight: 700; color: #16283d; margin: 30px 0 10px; }
.vs-content h3 { font-size: 17.5px; font-weight: 700; color: #16283d; margin: 24px 0 8px; }
.vs-content p { margin: 10px 0; }
.vs-content ul, .vs-content ol { padding-left: 0; margin: 12px 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.vs-content ul li { position: relative; padding-left: 20px; color: #33475f; }
.vs-content ul li::before { content: "·"; position: absolute; left: 4px; color: var(--vs-blue); font-weight: 800; }
.vs-content ol { counter-reset: vs; }
.vs-content ol li { counter-increment: vs; padding-left: 26px; position: relative; color: #33475f; }
.vs-content ol li::before { content: counter(vs) "."; position: absolute; left: 0; color: var(--vs-blue); font-weight: 800; }
.vs-content a { color: var(--vs-blue); text-decoration: underline; text-underline-offset: 2px; }
.vs-content img { border-radius: 18px; }
.vs-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vs-content th, .vs-content td { padding: 10px 12px; border-bottom: 1px solid #f1eee8; text-align: left; }
.vs-content blockquote { margin: 18px 0; padding: 14px 20px; border-left: 3px solid var(--vs-orange); background: var(--vs-sand); border-radius: 0 14px 14px 0; }
.vs-content .wp-block-button__link { background: var(--vs-orange); color: #fff; border-radius: 999px; padding: 13px 22px; text-decoration: none; font-weight: 700; }

/* Obecná stránka */
.vs-page-head { margin-bottom: 22px; }
.vs-page-card { border: 1px solid var(--vs-line); border-radius: var(--vs-radius); padding: clamp(20px, 3vw, 34px); background: #fff; }

/* Info – postranní menu dokumentů */
.cdv, .cdw { display: block; }
.cdv:hover { background: #f4f1ec; }

/* Stránkování */
.vs-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.vs-pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid #ddd6ca; border-radius: 999px; background: #fff; color: #334a63; font-weight: 700; font-size: 14px;
}
.vs-pagination .page-numbers.current { background: var(--vs-navy); border-color: var(--vs-navy); color: #fff; }
.vs-pagination a.page-numbers:hover { border-color: var(--vs-blue); color: var(--vs-blue); }

/* Úvod – nadpis s ikonou recenzí, malé úpravy pro odkazy */
.c3l { display: block; }
.c29 { color: inherit; }
.c3v { flex-shrink: 0; }

/* Realizace – dlaždice jako odkazy */
.c6a, .c6k { display: block; }

/* Partneři – loga */
.c7i img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.c7i .vs-partner-name { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--vs-font-head); font-weight: 800; color: #556983; font-size: 15px; text-align: center; padding: 10px; }

/* Kontakt – mapa */
.c8n { display: block; }

/* Úvod – dlaždice sortimentu (celá dlaždice je odkaz, štítky pod ní také) */
.vs-tile__link { position: absolute; inset: 0; z-index: 2; }
.vs-tile .c2x { position: relative; z-index: 3; }
.vs-tile:hover .c2n { transform: scale(1.06); }

/* Vyhledávací formulář (widgety) */
.vs-searchform input { border: 0; background: transparent; font: inherit; outline: 0; color: var(--vs-ink); }
.vs-searchform .cr { border: 0; cursor: pointer; }
.cg6:focus, .cg6:focus-visible { outline: none; }

/* Obal hlavičky nesmí omezovat „sticky“ – hlavička zůstává nahoře při scrollování. */
.vs-header-wrap { display: contents; }
