/*
Theme Name: Viena komanda
Theme URI: https://vienakomanda.lt
Author: VšĮ „Viena komanda“
Description: Reprezentacinė vienakomanda.lt svetainės tema — sporto dokumentika.
Version: 1.0.3
Requires at least: 6.3
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: vienakomanda
*/

:root {
	--vk-ink: #111111;
	--vk-ink-soft: #4a4a4a;
	--vk-paper: #ffffff;
	--vk-paper-soft: #f4f2ee;
	--vk-night: #0d0d0e;
	--vk-night-soft: #1b1b1d;
	--vk-line: #e3e0da;
	--vk-red: #f70001;
	--vk-serif: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
	--vk-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--vk-max: 1200px;
	--vk-gutter: clamp(20px, 5vw, 56px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
	margin: 0;
	background: var(--vk-paper);
	color: var(--vk-ink);
	font-family: var(--vk-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px;
	background: var(--vk-ink); color: #fff; padding: 8px 14px;
}

/* ---------- Header ---------- */
.vk-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(160%) blur(8px);
	-webkit-backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
.vk-header.is-scrolled { border-bottom-color: var(--vk-line); }
.vk-header__inner {
	max-width: var(--vk-max); margin: 0 auto; padding: 14px var(--vk-gutter);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.vk-logo { display: inline-flex; align-items: center; }
.vk-logo img { height: 54px; width: auto; }
.vk-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 3vw, 36px); }
.vk-nav a {
	text-decoration: none; font-size: 13px; font-weight: 600;
	letter-spacing: .14em; text-transform: uppercase; color: var(--vk-ink);
	padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.vk-nav a:hover, .vk-nav a:focus-visible { border-bottom-color: var(--vk-red); }

/* ---------- Page content ---------- */
.vk-main { display: block; }
.vk-main > .entry-content > * { margin-top: 0; margin-bottom: 0; }

.vk-container {
	max-width: var(--vk-max); margin: 0 auto; padding-left: var(--vk-gutter); padding-right: var(--vk-gutter);
}
.vk-container > * { margin-top: 0; }

.vk-eyebrow {
	font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
	color: var(--vk-ink-soft); margin: 0 0 22px;
}
.vk-eyebrow::before {
	content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: var(--vk-red); margin-right: 12px; vertical-align: 1px;
}

/* Hero */
.vk-hero { padding: clamp(56px, 11vw, 150px) 0 clamp(48px, 7vw, 96px); }
.vk-hero__title {
	font-family: var(--vk-serif); font-weight: 400;
	font-size: clamp(44px, 8.4vw, 116px); line-height: .98; letter-spacing: -.02em;
	margin: 0 0 clamp(28px, 4vw, 48px); max-width: 11ch;
}
.vk-hero__title::after {
	content: ""; display: inline-block; width: .16em; height: .16em; border-radius: 50%;
	background: var(--vk-red); margin-left: .06em; vertical-align: .62em;
}
.vk-hero__lead {
	font-size: clamp(18px, 1.9vw, 23px); line-height: 1.55; color: var(--vk-ink-soft);
	max-width: 44ch; margin: 0;
}

/* Wide banner */
.vk-banner { margin: 0; }
.vk-banner img {
	width: 100%; height: clamp(260px, 46vw, 620px); object-fit: cover; object-position: center 60%;
}
.vk-banner figcaption {
	max-width: var(--vk-max); margin: 10px auto 0; padding: 0 var(--vk-gutter);
	font-size: 13px; color: var(--vk-ink-soft); text-align: left;
}

/* About */
.vk-about { padding: clamp(64px, 10vw, 130px) 0; }
.vk-about .vk-container {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px);
}
.vk-about__title {
	font-family: var(--vk-serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 54px);
	line-height: 1.05; margin: 0;
}
.vk-about__text p { margin: 0 0 1.2em; font-size: clamp(17px, 1.5vw, 19px); }
.vk-about__text p:first-child {
	font-family: var(--vk-serif); font-size: clamp(24px, 2.5vw, 32px); line-height: 1.3; color: var(--vk-ink);
}
.vk-about__text p:last-child { margin-bottom: 0; }

/* Films */
.vk-films { background: var(--vk-night); color: #f3f1ec; padding: clamp(64px, 10vw, 130px) 0; }
.vk-films .vk-eyebrow { color: #a9a6a0; }
.vk-films__title {
	font-family: var(--vk-serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 72px);
	line-height: 1; margin: 0 0 clamp(36px, 5vw, 64px);
}
.vk-films__grid {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 40px);
}
.vk-films__grid > * { margin: 0 !important; }
.vk-film { display: flex; flex-direction: column; }
.vk-film > * { margin: 0; }
.vk-film__img, .vk-film__placeholder {
	position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--vk-night-soft);
	margin: 0 0 18px !important;
}
.vk-film__img img {
	width: 100% !important; height: 100% !important; object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}
.vk-film:hover .vk-film__img img { transform: scale(1.035); }
.vk-pos-top img { object-position: center 8%; }
.vk-pos-right img { object-position: 88% center; }
.vk-pos-left img { object-position: 12% center; }
.vk-pos-bottom img { object-position: center 72%; }
.vk-film__meta {
	font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: #a9a6a0; margin: 0 0 8px !important;
}
.vk-film__title {
	font-family: var(--vk-serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.15; margin: 0 !important; color: #fff;
}

/* Film without image: typographic card */
.vk-film__placeholder {
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: clamp(20px, 3vw, 36px);
	background:
		radial-gradient(120% 90% at 85% 10%, rgba(247, 0, 1, .20), transparent 55%),
		linear-gradient(160deg, #242427 0%, #121213 70%);
	border: 1px solid #262629;
}
.vk-film__placeholder p {
	font-family: var(--vk-serif); color: #fff; margin: 0 !important;
	font-size: clamp(34px, 4.6vw, 64px); line-height: 1; letter-spacing: -.01em;
}
.vk-film__placeholder p::after {
	content: ""; display: inline-block; width: .16em; height: .16em; border-radius: 50%;
	background: var(--vk-red); margin-left: .08em;
}

/* Contact */
.vk-contact { padding: clamp(72px, 11vw, 150px) 0; background: var(--vk-paper-soft); }
.vk-contact__title {
	font-family: var(--vk-serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 60px);
	line-height: 1.05; margin: 0 0 clamp(20px, 3vw, 32px); max-width: 16ch;
}
.vk-contact__mail { margin: 0; }
.vk-contact__mail a {
	font-family: var(--vk-serif); font-size: clamp(28px, 4.4vw, 58px); line-height: 1.1;
	text-decoration: none; color: var(--vk-ink);
	background-image: linear-gradient(var(--vk-red), var(--vk-red));
	background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
	padding-bottom: 4px; transition: color .2s ease; word-break: break-word;
}
.vk-contact__mail a:hover, .vk-contact__mail a:focus-visible { color: var(--vk-red); }

/* ---------- Footer ---------- */
.vk-footer { background: var(--vk-night); color: #a9a6a0; font-size: 14px; }
.vk-footer__inner {
	max-width: var(--vk-max); margin: 0 auto; padding: 36px var(--vk-gutter);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.vk-footer img { height: 44px; width: auto; }
.vk-footer a { color: #f3f1ec; text-decoration: none; }
.vk-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--vk-red); }

/* Generic pages (not front) */
.vk-page { padding: clamp(48px, 8vw, 110px) 0; }
.vk-page .vk-container { max-width: 860px; }
.vk-page h1 { font-family: var(--vk-serif); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.vk-about .vk-container { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.vk-films__grid { grid-template-columns: 1fr; }
	.vk-logo img { height: 42px; }
	.vk-nav a { font-size: 11px; letter-spacing: .1em; }
	.vk-header__inner { padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.vk-film__img img { transition: none; }
}

/* Keep sticky header below the WordPress admin bar (logged-in users only) */
.admin-bar .vk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .vk-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .vk-header { top: 0; } }

/* Film image links + lightbox (full, uncropped originals) */
.vk-film__img a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.vk-banner a { cursor: zoom-in; }
.vk-no-scroll { overflow: hidden; }
.vk-lightbox {
	position: fixed; inset: 0; z-index: 100000; display: none;
	align-items: center; justify-content: center; padding: 56px 20px 24px;
	background: rgba(8, 8, 9, .94); cursor: zoom-out;
}
.vk-lightbox.is-open { display: flex; }
.vk-lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.vk-lightbox__fig img {
	max-width: min(1600px, 100%); max-height: calc(100vh - 120px); width: auto; height: auto;
	object-fit: contain; cursor: default; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.vk-lightbox__fig figcaption {
	margin-top: 14px; color: #f3f1ec; font-family: var(--vk-serif); font-size: 20px; text-align: center;
}
.vk-lightbox__close {
	position: absolute; top: 12px; right: 16px; width: 44px; height: 44px;
	border: 0; background: transparent; color: #fff; font-size: 36px; line-height: 1; cursor: pointer;
}
.vk-lightbox__close:focus-visible { outline: 2px solid var(--vk-red); outline-offset: 2px; }
