/*
Theme Name: Keturkojo viltis
Theme URI: https://dmnt.lt/
Author: DMNT
Author URI: https://dmnt.lt/
Description: Tema asociacijai „Keturkojo viltis“. Suderinta su Elementor.
Version: 1.2.2
Requires PHP: 8.1
Text Domain: kv
*/

/* ==========================================================================
   Tokens
   Station-sign blue + signal yellow: the dogs live at the old Alytus railway
   station, the hero board borrows the departures-board language.
   ========================================================================== */
:root {
	--ink: #1d2150;
	--ink-2: #2b3070;
	--signal: #ffcc2e;
	--signal-2: #f5b800;
	--sky: #e9f1fb;
	--paper: #fff;
	--rose: #c98f7f;
	--slate: #555b7e;
	--line: #d3dcec;

	--font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--sec: clamp(64px, 9vw, 128px);
	--r-lg: 28px;
	--r-md: 18px;
	--r-sm: 10px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--font);
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.kv-menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal-2); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; font-stretch: 82%; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5.25rem); line-height: .98; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.04; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
address { font-style: normal; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.kv-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--signal); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.kv-skip:focus { top: 12px; }

.kv-wrap, .elementor .e-con.kv-wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ==========================================================================
   Elementor bridge: theme owns typography, Elementor owns structure.
   ========================================================================== */
.elementor-widget-heading .elementor-heading-title { font-family: inherit; color: inherit; }
.elementor-widget-heading h3.elementor-heading-title { line-height: 1.2; }
.elementor-widget-heading h1.elementor-heading-title { line-height: .98; }
.elementor-widget-heading h2.elementor-heading-title { line-height: 1.04; }
.elementor-widget-text-editor { color: inherit; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
/* Elementor containers get their spacing from theme classes, not the 10px default. */
:root { --container-default-padding-top: 0; --container-default-padding-right: 0; --container-default-padding-bottom: 0; --container-default-padding-left: 0; }
.elementor-widget-button .elementor-button { all: unset; }
.elementor-widget-button .elementor-button { cursor: pointer; box-sizing: border-box; } /* `all: unset` resets box-sizing */

/* ==========================================================================
   Buttons, chips, status
   ========================================================================== */
.kv-btn,
.elementor .kv-btn-w .elementor-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 52px; padding: 0 28px;
	border: 2px solid transparent; border-radius: 999px;
	font: 700 1rem/1 var(--font); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
	cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.kv-btn:active, .elementor .kv-btn-w .elementor-button:active { transform: translateY(1px); }
.kv-btn--primary, .elementor .kv-btn-w--primary .elementor-button { background: var(--signal); color: var(--ink); }
.kv-btn--primary:hover, .elementor .kv-btn-w--primary .elementor-button:hover { background: var(--signal-2); }
.kv-btn--dark, .elementor .kv-btn-w--dark .elementor-button { background: var(--ink); color: #fff; }
.kv-btn--dark:hover, .elementor .kv-btn-w--dark .elementor-button:hover { background: var(--ink-2); }
.kv-btn--ghost, .elementor .kv-btn-w--ghost .elementor-button { border-color: currentColor; color: var(--ink); }
.kv-btn--ghost:hover, .elementor .kv-btn-w--ghost .elementor-button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.kv-btn--ghost-light, .elementor .kv-btn-w--ghost-light .elementor-button { border-color: rgba(255,255,255,.5); color: #fff; }
.kv-btn--ghost-light:hover, .elementor .kv-btn-w--ghost-light .elementor-button:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.kv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.elementor .e-con.kv-actions { --display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; }
.elementor .e-con.kv-actions > .elementor-widget { width: auto; }

.kv-chip {
	display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
	border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px;
	color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
	transition: background-color .2s, border-color .2s;
}
.kv-chip:hover { border-color: #fff; }
.kv-chip.is-on { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.kv-status {
	display: inline-block; margin: 0; padding: 5px 12px; border-radius: 999px;
	background: var(--sky); color: var(--ink); font-size: .85rem; font-weight: 700;
}
.kv-status--rezervuotas { background: var(--signal); }
.kv-status--namuose { background: var(--rose); color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
/* Solid white in every state: the logo file has a white background, so it always blends in. */
.kv-header {
	position: sticky; top: 0; z-index: 50;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s;
}
.kv-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(29,33,80,.35); }
.kv-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto;
	padding: 14px var(--gutter);
	transition: padding .25s var(--ease);
}
.kv-header.is-scrolled .kv-header__inner { padding-block: 8px; }

.kv-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.kv-logo img { max-height: 48px; width: auto; }
.kv-logo__mark { width: 38px; height: 38px; flex: none; }
.kv-logo__text { font-weight: 800; font-stretch: 78%; font-size: 1.3rem; letter-spacing: -.02em; }

.kv-nav { display: flex; align-items: center; gap: 28px; }
.kv-nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.kv-nav__list > li { position: relative; }
.kv-nav__list a {
	display: block; padding: 10px 14px; border-radius: 999px;
	text-decoration: none; font-weight: 600; font-size: .98rem;
	transition: background-color .2s;
}
.kv-nav__list a:hover, .kv-nav__list .current-menu-item > a, .kv-nav__list .current-menu-ancestor > a { background: var(--sky); }
.kv-nav__list .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px; margin: 0; padding: 8px; list-style: none;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
	box-shadow: 0 18px 40px -18px rgba(29,33,80,.35);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.kv-nav__list li:hover > .sub-menu, .kv-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.kv-nav__list .sub-menu a { border-radius: var(--r-sm); }
.kv-nav__cta { min-height: 46px; padding: 0 24px; }

.kv-nav-toggle { display: none; }

@media (max-width: 1020px) {
	.kv-nav-toggle {
		display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
		border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; z-index: 2;
	}
	.kv-nav-toggle__bars, .kv-nav-toggle__bars::before, .kv-nav-toggle__bars::after {
		content: ""; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
		transition: transform .25s var(--ease), opacity .2s;
	}
	.kv-nav-toggle__bars { position: relative; }
	.kv-nav-toggle__bars::before { position: absolute; top: -6px; }
	.kv-nav-toggle__bars::after { position: absolute; top: 6px; }
	.kv-menu-open .kv-nav-toggle__bars { background: transparent; }
	.kv-menu-open .kv-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.kv-menu-open .kv-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.kv-nav {
		position: fixed; inset: 0; z-index: 1;
		flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
		padding: 96px var(--gutter) 32px; overflow-y: auto;
		background: var(--ink); color: #fff;
		opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
	}
	.kv-menu-open .kv-nav { opacity: 1; visibility: visible; }
	.kv-menu-open .kv-logo { position: relative; z-index: 2; color: #fff; }
	.kv-nav__list { flex-direction: column; gap: 0; }
	.kv-nav__list a { padding: 12px 0; border-radius: 0; font-size: 1.6rem; font-weight: 700; font-stretch: 82%; }
	.kv-nav__list a:hover, .kv-nav__list .current-menu-item > a, .kv-nav__list .current-menu-ancestor > a { background: none; color: var(--signal); }
	.kv-nav__list .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		padding: 0 0 8px 16px; background: none; border: 0; box-shadow: none;
	}
	.kv-nav__list .sub-menu a { font-size: 1.1rem; font-weight: 500; padding: 6px 0; }
	.kv-nav__cta { align-self: flex-start; min-height: 52px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.kv-sec { padding-block: var(--sec); }
.elementor .e-con.kv-sec { padding-block: var(--sec); }
.kv-sec--sky { background: var(--sky); }
.kv-sec--ink { background: var(--ink); color: #fff; }
.kv-sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.elementor .e-con.kv-sec__head { --display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.elementor .e-con.kv-sec__head > .elementor-widget { width: auto; max-width: 720px; }
.kv-sec__head h2 { margin: 0; }
.kv-lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 60ch; }
.kv-muted { color: var(--slate); }
.kv-sec--ink .kv-muted, .kv-card-box--ink .kv-muted { color: rgba(255,255,255,.72); }

.elementor .e-con.kv-stack { --display: flex; flex-direction: column; gap: 20px; }

/* ---------- Hero ---------- */
.kv-hero { background: var(--ink); color: #fff; overflow: hidden; }
.elementor .e-con.kv-hero { padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 120px); }
.elementor .e-con.kv-hero__grid {
	--display: grid;
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 88px);
}
.elementor .e-con.kv-hero__text { --display: flex; flex-direction: column; gap: 24px; }
.kv-hero h1 { margin: 0; font-size: clamp(2.8rem, 6.6vw, 5.75rem); font-stretch: 76%; }
.kv-hero .kv-lead { color: rgba(255,255,255,.8); margin: 0; }
.kv-hero__note { color: rgba(255,255,255,.66); font-size: .95rem; }
.kv-hero__note strong { color: var(--signal); font-weight: 700; }

@media (max-width: 900px) {
	.elementor .e-con.kv-hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Split-flap board ---------- */
.kv-board {
	background: #11143a; border-radius: var(--r-lg); padding: clamp(16px, 2.4vw, 28px);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 40px 80px -40px rgba(0,0,0,.6);
	color: #fff;
}
.kv-board__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 6px 16px; }
.kv-board__head span { color: var(--signal); font-weight: 700; font-size: 1.05rem; }
.kv-board__head a { color: rgba(255,255,255,.75); font-size: .95rem; }
.kv-board__head a:hover { color: #fff; }
.kv-board__table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.kv-board__table thead th { padding: 0 8px 4px; color: rgba(255,255,255,.5); font-size: .8rem; font-weight: 500; text-align: left; }
.kv-board__table th[scope=row], .kv-board__table td { padding: 0; text-align: left; }
.kv-board__table td { padding: 0 8px; color: rgba(255,255,255,.72); font-size: .92rem; white-space: nowrap; }
.kv-board__table th[scope=row] a { display: block; text-decoration: none; }
.kv-flap {
	display: inline-flex; gap: 3px;
	font: 700 clamp(1.05rem, 2vw, 1.5rem)/1 var(--font); font-stretch: 75%; letter-spacing: .02em;
	color: var(--signal);
	font-variant-numeric: tabular-nums;
}
.kv-board__table tbody tr { background: rgba(255,255,255,.04); }
.kv-board__table tbody tr > * { padding-block: 14px; }
.kv-board__table tbody tr > :first-child { padding-left: 14px; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.kv-board__table tbody tr > :last-child { padding-right: 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.kv-board__table tbody tr:hover { background: rgba(255,204,46,.1); }
.kv-board__table th[scope=row] a:hover .kv-flap { text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 480px) {
	.kv-board__table thead th:nth-child(3), .kv-board__table td:nth-child(3) { display: none; }
	.kv-board__table tbody tr > :nth-child(2) { padding-right: 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
}

/* ---------- Page head (inner pages) ---------- */
.kv-pagehead { background: var(--ink); color: #fff; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.elementor .e-con.kv-pagehead { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.kv-pagehead h1 { margin: 0 0 .35em; max-width: 18ch; font-stretch: 78%; }
.kv-pagehead p { max-width: 62ch; color: rgba(255,255,255,.78); font-size: 1.15rem; }
.kv-pagehead .kv-actions { margin-top: 24px; }

/* ---------- Prose (classic content, animal story) ---------- */
.kv-prose { max-width: 72ch; }
.kv-wrap.kv-prose { max-width: calc(72ch + var(--gutter) * 2); padding-block: var(--sec); }
.kv-prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 1.4em; }
.kv-prose h3 { margin-top: 1.4em; }
.kv-prose ul, .kv-prose ol { padding-left: 1.3em; }
.kv-prose li { margin-bottom: .4em; }
.kv-prose li::marker { color: var(--slate); }
.kv-prose a { color: var(--ink); text-decoration-color: var(--signal-2); text-decoration-thickness: 2px; }

/* ==========================================================================
   Animal cards
   ========================================================================== */
.kv-cards {
	display: grid; gap: clamp(20px, 2.4vw, 32px) clamp(14px, 2vw, 24px);
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1020px) { .kv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kv-card__link { display: block; text-decoration: none; }
.kv-card__img {
	position: relative; aspect-ratio: 4 / 5; overflow: hidden;
	border-radius: var(--r-md); background: var(--sky);
}
.kv-card .kv-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
@media (hover: hover) { .kv-card__link:hover .kv-card__img img { transform: scale(1.04); } }
.kv-card__img .kv-status { position: absolute; left: 12px; top: 12px; }
.kv-card__name { margin: 14px 0 2px; font-size: 1.35rem; font-stretch: 82%; }
.kv-card__link:hover .kv-card__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.kv-card__meta { margin: 0; color: var(--slate); font-size: .95rem; }

@media (max-width: 560px) {
	.kv-card__name { font-size: 1.15rem; }
	.kv-card__meta { font-size: .85rem; }
}

/* Catalogue */
.kv-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.kv-filter--sub { margin-top: 12px; }
.kv-filter--sub .kv-chip { min-height: 36px; font-size: .88rem; border-color: rgba(255,255,255,.2); }
.kv-catalogue { padding-block: clamp(40px, 6vw, 80px) var(--sec); }
.kv-empty { font-size: 1.15rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 56px; }
.nav-links .page-numbers {
	display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px;
	border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600;
}
.nav-links .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.nav-links a.page-numbers:hover { border-color: var(--ink); }

/* ==========================================================================
   Single animal
   ========================================================================== */
.kv-animal { padding-top: clamp(24px, 3vw, 40px); }
.kv-crumbs { display: flex; gap: 8px; color: var(--slate); font-size: .95rem; margin-bottom: 20px; }
.kv-crumbs a { color: var(--slate); }
.kv-animal__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }

.kv-gallery__main { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--sky); }
.kv-gallery .kv-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.kv-gallery__thumbs {
	display: flex; gap: 10px; margin: 12px 0 0; padding: 0 0 4px; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.kv-gallery__thumbs li { flex: 0 0 84px; scroll-snap-align: start; }
.kv-gallery__thumbs a { display: block; border-radius: var(--r-sm); overflow: hidden; outline-offset: 2px; opacity: .7; transition: opacity .2s; }
.kv-gallery__thumbs a:hover, .kv-gallery__thumbs a[aria-current] { opacity: 1; }
.kv-gallery__thumbs a[aria-current] { outline: 3px solid var(--signal-2); }
.kv-gallery__thumbs img { width: 84px; height: 84px; object-fit: cover; }

.kv-animal__panel { position: sticky; top: 96px; }
.kv-animal__name { margin: 12px 0 20px; font-size: clamp(3rem, 6vw, 4.75rem); font-stretch: 76%; }
.kv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 16px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.kv-facts > div { background: #fff; padding: 12px 16px; }
.kv-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.kv-facts dt { color: var(--slate); font-size: .82rem; }
.kv-facts dd { margin: 0; font-weight: 700; }
.kv-animal__facts { color: var(--slate); font-size: .98rem; }
.kv-animal__panel .kv-actions { margin: 20px 0 28px; }

.kv-animal__donate { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 32px); }
.kv-animal__donate h2 { font-size: 1.7rem; margin-bottom: .3em; }
.kv-animal__donate > p { color: rgba(255,255,255,.75); font-size: .98rem; }

.kv-animal__story { padding-block: clamp(48px, 7vw, 96px); }
.kv-animal__story > h2 { margin-top: 0; }
.kv-related { background: var(--sky); padding-block: var(--sec); }

@media (max-width: 900px) {
	.kv-animal__top { grid-template-columns: minmax(0, 1fr); }
	.kv-animal__panel { position: static; }
	.kv-gallery__main { aspect-ratio: 1; }
}

/* ==========================================================================
   Donation form (dark surfaces)
   ========================================================================== */
.kv-donate { display: grid; gap: 14px; }
.kv-donate fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.kv-donate input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.kv-donate__freq { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.1); }
.kv-donate__freq span { display: grid; place-items: center; min-height: 44px; border-radius: 999px; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.kv-donate__freq input:checked + span { background: #fff; color: var(--ink); }
.kv-donate__amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kv-donate__amounts label > span {
	display: grid; place-items: center; min-height: 52px; border-radius: var(--r-sm);
	border: 1.5px solid rgba(255,255,255,.3); font-weight: 700; font-size: 1.1rem; cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.kv-donate__amounts label > span:hover { border-color: #fff; }
.kv-donate__amounts input:checked + span { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.kv-donate input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.kv-donate__custom { grid-column: 1 / -1; }
.kv-donate__custom input {
	width: 100%; min-height: 52px; padding: 0 18px; border-radius: var(--r-sm);
	border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff;
	font: 600 1.05rem var(--font);
}
.kv-donate__custom input::placeholder { color: rgba(255,255,255,.6); }
.kv-donate__custom input:focus { border-color: var(--signal); outline: none; }
.kv-donate__submit { width: 100%; min-height: 58px; font-size: 1.1rem; }
.kv-donate__note { margin: 0; color: rgba(255,255,255,.62); font-size: .85rem; line-height: 1.45; }
.kv-donate__error { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--rose); color: #fff; font-weight: 600; }

/* ==========================================================================
   Home: bento "how to help"
   ========================================================================== */
.elementor .e-con.kv-bento {
	--display: grid;
	display: grid; gap: clamp(12px, 1.6vw, 20px);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: minmax(220px, auto);
}
.elementor .e-con.kv-tile {
	--display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
	padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-lg);
	background: #fff; border: 1px solid var(--line);
}
.elementor .e-con.kv-tile > .elementor-widget { width: 100%; }
.kv-tile h3 { margin: 0 0 .35em; font-size: clamp(1.35rem, 2vw, 1.75rem); font-stretch: 80%; }
.kv-tile p { margin: 0; color: var(--slate); }
.elementor .e-con.kv-tile--donate { grid-column: span 2; grid-row: span 2; background: var(--ink); color: #fff; border: 0; justify-content: flex-start; }
.kv-tile--donate h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.kv-tile--donate p { color: rgba(255,255,255,.75); }
.elementor .e-con.kv-tile--signal { background: var(--signal); border: 0; }
.kv-tile--signal p { color: var(--ink); }
.elementor .e-con.kv-tile--wide { grid-column: span 2; }
.kv-tile .kv-big { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; font-stretch: 75%; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.kv-tile a.kv-tile__link { font-weight: 700; }

@media (max-width: 1020px) {
	.elementor .e-con.kv-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.elementor .e-con.kv-bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
	.elementor .e-con.kv-tile--donate, .elementor .e-con.kv-tile--wide { grid-column: auto; grid-row: auto; }
}

/* ---------- Adoption steps (a real sequence, so numbered) ---------- */
.kv-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.kv-steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--ink); }
.kv-steps li::before { content: counter(step); display: block; margin-bottom: 14px; font-weight: 800; font-size: 2.6rem; font-stretch: 75%; line-height: 1; color: var(--signal-2); }
.kv-steps h3 { margin-bottom: .3em; }
.kv-steps p { margin: 0; color: var(--slate); }
.kv-sec--ink .kv-steps li { border-color: rgba(255,255,255,.3); }
.kv-sec--ink .kv-steps p { color: rgba(255,255,255,.72); }
@media (max-width: 900px) { .kv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 520px) { .kv-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Adoptions per year chart ---------- */
.kv-chart { margin: 0; }
.kv-chart__bars { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 16px); align-items: end; height: clamp(220px, 30vw, 340px); padding: 0; margin: 0; list-style: none; border-bottom: 2px solid var(--ink); }
.kv-chart__bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.kv-chart__bar i { display: block; }
.kv-chart__bar .c { background: var(--ink); height: calc(var(--c) / var(--max) * 100%); border-radius: 6px 6px 0 0; }
.kv-chart__bar .d { background: var(--signal); height: calc(var(--d) / var(--max) * 100%); }
.kv-chart__bar b { position: absolute; left: 0; right: 0; bottom: calc((var(--c) + var(--d)) / var(--max) * 100% + 6px); text-align: center; font-size: .9rem; font-weight: 700; }
.kv-chart__years { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 16px); margin: 8px 0 0; padding: 0; list-style: none; text-align: center; color: var(--slate); font-size: .9rem; }
.kv-chart__legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; font-size: .95rem; }
.kv-chart__legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 3px; background: var(--ink); vertical-align: -1px; }
.kv-chart__legend span + span::before { background: var(--signal); }
@media (max-width: 560px) { .kv-chart__bar b { font-size: .7rem; } .kv-chart__years { font-size: .75rem; } }

/* ---------- Two-column layouts in Elementor pages ---------- */
.elementor .e-con.kv-split {
	--display: grid;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start;
}
.elementor .e-con.kv-split--wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 900px) { .elementor .e-con.kv-split, .elementor .e-con.kv-split--wide-left { grid-template-columns: minmax(0, 1fr); } }

.elementor .e-con.kv-card-box { --display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--sky); }
.elementor .e-con.kv-card-box--ink { background: var(--ink); color: #fff; }
.kv-card-box h3 { margin: 0; }
.elementor .e-con.kv-sticky { position: sticky; top: 100px; }
@media (max-width: 900px) { .elementor .e-con.kv-sticky { position: static; } }

.kv-rounded img, .kv-rounded .elementor-widget-container img { border-radius: var(--r-lg); width: 100%; object-fit: cover; }

/* Bank details */
.kv-bank { display: grid; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.kv-bank > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; background: #fff; padding: 12px 16px; color: var(--ink); }
.kv-bank dt { color: var(--slate); }
.kv-bank dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; word-break: break-word; }

/* Contact lines */
.kv-contacts { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.kv-contacts a { font-weight: 700; }

/* ==========================================================================
   Footer
   ========================================================================== */
.kv-footer { background: var(--ink); color: rgba(255,255,255,.78); padding-top: clamp(56px, 7vw, 96px); font-size: .98rem; }
.kv-footer a { color: #fff; }
.kv-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.kv-footer__title { color: #fff; font-weight: 800; font-stretch: 78%; font-size: 1.8rem; letter-spacing: -.02em; line-height: 1.1; margin-bottom: .5em; }
.kv-footer__head { color: var(--signal); font-weight: 700; margin-bottom: .6em; }
.kv-footer p { margin-bottom: .5em; }
.kv-social, .kv-footer__menu { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.kv-footer__menu { flex-direction: column; gap: 6px; }
.kv-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	margin-top: clamp(40px, 5vw, 72px); padding-block: 24px;
	border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: rgba(255,255,255,.6);
}
.kv-footer__bottom p { margin: 0; }
.kv-credit a { color: rgba(255,255,255,.85); }
@media (max-width: 900px) { .kv-footer__grid { grid-template-columns: 1fr 1fr; } .kv-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .kv-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Old-site content blocks
   ========================================================================== */
.kv-logo img { height: 64px; width: auto; max-height: none; }
.kv-header.is-scrolled .kv-logo img { height: 52px; }
.kv-menu-open .kv-logo img { background: #fff; border-radius: 12px; padding: 4px; }

/* Homepage group cards (images + labels from the old homepage) */
.elementor .e-con.kv-groups {
	--display: grid;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px);
}
.elementor .e-con.kv-group { --display: flex; flex-direction: column; gap: 12px; }
.kv-group__img a { display: block; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 4 / 3.4; background: #fff; }
.elementor .kv-group__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
@media (hover: hover) { .kv-group__img a:hover img { transform: scale(1.04); } }
.kv-group__name .elementor-heading-title { font-size: 1.2rem; line-height: 1.25; }
.kv-group__name a { text-decoration: none; }
.kv-group__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
@media (max-width: 1020px) { .elementor .e-con.kv-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Bento photo tile */
.elementor .e-con.kv-tile--photo { padding: 0; border: 0; overflow: hidden; background: var(--ink); }
.elementor .kv-tile--photo .elementor-widget-image,
.elementor .kv-tile--photo .elementor-widget-container { height: 100%; }
.elementor .kv-tile--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* "Kiekvienas nusipelno namų" – not a sequence, so no numbers */
.kv-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 32px; padding: 0; list-style: none; }
.kv-features li { padding: 22px; border-radius: var(--r-md); background: rgba(255,255,255,.06); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.kv-features span { display: block; font-size: 1.8rem; margin-bottom: 12px; }
@media (max-width: 900px) { .kv-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kv-sec--ink a:not(.elementor-button) { color: var(--signal); }

/* Old "Namus surado" table */
.kv-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.kv-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.kv-table td:first-child { font-weight: 700; padding-left: 0; }
.kv-table td:nth-child(2) { font-weight: 700; }
.kv-table td:nth-child(n+3) { color: var(--slate); }
@media (max-width: 480px) { .kv-table td { padding: 10px 6px; font-size: .9rem; } }

.kv-code { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; font-stretch: 75%; line-height: 1; margin: 0; }
.kv-pagehead__text p { max-width: 70ch; }
.kv-footer__list { margin: 0 0 .5em; padding: 0; list-style: none; }
.kv-footer__list li { margin-bottom: .3em; }

/* ---------- Hero with background video + donation card ---------- */
.elementor .e-con.kv-hero--video { padding-block: clamp(56px, 9vw, 128px) clamp(64px, 9vw, 136px); }
.kv-hero--video .elementor-background-video-container { z-index: 0; }
.kv-hero--video > .kv-wrap { position: relative; z-index: 1; }
.kv-hero--video .kv-lead { color: rgba(255,255,255,.88); }
@media (prefers-reduced-motion: reduce) {
	.kv-hero--video .elementor-background-video-container { display: none; } /* poster image stays as background */
}

.elementor .e-con.kv-card-box--glass {
	background: rgba(17, 20, 58, .55);
	-webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
	border: 1px solid rgba(255,255,255,.16);
	color: #fff;
	box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
	max-width: 520px; justify-self: end; width: 100%;
}
.kv-card-box--glass h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0; }
@media (max-width: 900px) { .elementor .e-con.kv-card-box--glass { justify-self: stretch; max-width: none; } }

/* Board tile in the Parama bento */
.elementor .e-con.kv-tile--board { grid-column: span 2; grid-row: span 2; padding: 0; border: 0; background: transparent; justify-content: stretch; }
.kv-tile--board .kv-board { height: 100%; }
@media (max-width: 640px) { .elementor .e-con.kv-tile--board { grid-column: auto; grid-row: auto; } }

/* Thank-you page: light band so it separates from the white header and dark footer */
.elementor .e-con.kv-thanks {
	background: var(--sky); color: var(--ink); text-align: center;
	min-height: 60vh; justify-content: center;
	padding-block: clamp(72px, 12vw, 160px);
}
.kv-thanks h1 { max-width: 16ch; margin-inline: auto; }
.kv-thanks .kv-lead { margin-inline: auto; color: var(--slate); }
.elementor .kv-thanks .e-con.kv-actions { justify-content: center; margin-top: 12px; }

/* Payment method logos under the donate button */
.kv-donate__methods { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.kv-donate__methods li { display: grid; place-items: center; height: 34px; min-width: 54px; padding: 0 10px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.kv-donate__methods svg { height: 22px; width: auto; display: block; }
.kv-donate__methods li[title="Visa"] svg { height: 26px; }
.kv-donate__methods li[title="Apple Pay"] svg { height: 26px; }
.kv-donate__methods .kv-donate__more { background: transparent; box-shadow: none; min-width: 0; padding: 0 2px; color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 600; }

/* ==========================================================================
   Small screens & touch
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
button, .kv-btn, .kv-chip, .elementor-button { touch-action: manipulation; }

/* A blurred header becomes the containing block of the fixed menu – drop it while the menu is open. */
.kv-menu-open .kv-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); border-bottom-color: transparent; }

/* Notch / rounded-corner phones */
.kv-header__inner { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.kv-footer__bottom { padding-bottom: max(24px, env(safe-area-inset-bottom)); }

/* Touch: every tappable thing at least 44px high */
@media (pointer: coarse) {
	.kv-chip, .kv-filter--sub .kv-chip { min-height: 44px; }
	.kv-board__head a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
	.kv-board__table th[scope=row] a { padding: 14px 0; margin: -14px 0; }
	.kv-group__name a { display: block; padding: 10px 0; margin: -10px 0; }
	.kv-crumbs a { display: inline-block; padding: 10px 0; margin: -10px 0; }
	.kv-footer a { display: inline-block; padding: 6px 0; }
}

/* Long button labels wrap instead of running off narrow phones */
@media (max-width: 480px) {
	.kv-btn, .elementor .kv-btn-w .elementor-button { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; max-width: 100%; }
	.elementor .e-con.kv-actions > .elementor-widget { max-width: 100%; }
}

/* Donation form on narrow phones: 2 × 2 amounts, compact logos */
@media (max-width: 380px) {
	.kv-donate__amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kv-donate__freq span { font-size: .95rem; }
	.kv-donate__methods li { min-width: 46px; padding: 0 7px; height: 30px; }
	.kv-donate__methods svg { height: 18px; }
	.kv-donate__methods li[title="Visa"] svg, .kv-donate__methods li[title="Apple Pay"] svg { height: 22px; }
}

/* Fold / very narrow phones: one card per row */
@media (max-width: 300px) {
	.kv-cards { grid-template-columns: minmax(0, 1fr); }
}

/* Sticky donate bar on phone animal pages */
.kv-stickybar { display: none; }
@media (max-width: 900px) {
	.kv-stickybar {
		display: flex; align-items: center; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
		padding: 10px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
		background: rgba(29, 33, 80, .96); color: #fff;
		-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
		box-shadow: 0 -10px 30px -12px rgba(0,0,0,.4);
		transform: translateY(110%); transition: transform .3s var(--ease);
	}
	.kv-stickybar.is-on { transform: none; }
	.kv-menu-open .kv-stickybar { display: none; }
	.kv-stickybar__name { flex: 1; min-width: 0; font-weight: 700; font-stretch: 82%; font-size: 1.15rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.kv-stickybar__name small { display: block; font-weight: 500; font-stretch: 100%; font-size: .8rem; color: rgba(255,255,255,.7); }
	.kv-stickybar .kv-btn { min-height: 48px; padding: 0 24px; flex: none; }
	.single-gyvunas .kv-footer { padding-bottom: 72px; }
}

/* In-page jumps (#parama, #forma) stop below the sticky header */
[id] { scroll-margin-top: 96px; }

/* Phone menu accordion (+ / −) */
.kv-sub-toggle { display: none; }
@media (max-width: 1020px) {
	.kv-nav__list > .menu-item-has-children { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
	.kv-nav__list > .menu-item-has-children > .sub-menu { grid-column: 1 / -1; display: none; }
	.kv-nav__list > .menu-item-has-children.is-open > .sub-menu { display: block; animation: kv-sub-in .22s var(--ease); }
	.kv-sub-toggle {
		display: grid; place-items: center; position: relative; width: 48px; height: 48px; padding: 0;
		border: 1.5px solid rgba(255,255,255,.3); border-radius: 50%; background: none; color: #fff; cursor: pointer;
	}
	.kv-sub-toggle::before, .kv-sub-toggle::after { content: ""; position: absolute; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
	.kv-sub-toggle::after { transform: rotate(90deg); }
	.is-open > .kv-sub-toggle { background: var(--signal); border-color: var(--signal); color: var(--ink); }
	.is-open > .kv-sub-toggle::after { transform: rotate(0deg); }
	.kv-sub-toggle:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
	.is-open > a { color: var(--signal); }
}
@keyframes kv-sub-in { from { opacity: 0; transform: translateY(-6px); } }

/* Thank-you page on phones: one button per line, equal width */
@media (max-width: 600px) {
	.elementor .kv-thanks .e-con.kv-actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 320px; margin-inline: auto; }
	.elementor .kv-thanks .e-con.kv-actions > .elementor-widget { width: 100%; max-width: none; margin: 0; }
	.elementor .kv-thanks .kv-btn-w .elementor-button { display: flex; width: 100%; min-height: 54px; padding-block: 0; white-space: nowrap; }
}


/* Compact header on phones and tablets */
@media (max-width: 1020px) {
	.kv-header__inner { padding-block: 8px; }
	.kv-header.is-scrolled .kv-header__inner { padding-block: 5px; }
	.kv-logo img { height: 48px; }
	.kv-header.is-scrolled .kv-logo img { height: 40px; }
	.kv-nav-toggle { width: 44px; height: 44px; }
	.kv-nav { padding-top: 84px; }
	[id] { scroll-margin-top: 76px; }
}

/* Homepage: agency credit card above the footer */
.elementor .e-con.kv-sec--credit { padding-block: 0 clamp(48px, 6vw, 88px); }
.elementor .e-con.kv-credit-card {
	--display: grid;
	display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px clamp(20px, 3vw, 40px);
	padding: clamp(20px, 2.6vw, 28px) clamp(22px, 3vw, 36px); border-radius: var(--r-lg);
	background: var(--ink); color: rgba(255,255,255,.82);
}
.elementor .kv-credit-card__logo img { width: clamp(96px, 10vw, 132px); height: auto; display: block; }
.kv-credit-card p { margin: 0; max-width: 62ch; font-size: 1.02rem; }
.kv-credit-card a { color: var(--signal); font-weight: 600; }
@media (max-width: 560px) {
	.elementor .e-con.kv-credit-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
}
@media (pointer: coarse) { .kv-credit-card__logo a { display: block; padding: 4px 0; } }
