/*
Theme Name: Kontech
Theme URI: https://kontech.lt
Author: UAB Defero spot
Author URI: https://deferospot.com
Description: Individuali Kontech svetainės tema.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: kontech
*/

/* ---------------------------------------------------------------------------
   Saugiklis: be JavaScript (arba jam neužsikrovus) „reveal“ elementai
   privalo būti matomi — animacija taikoma tik kai <html> turi .js klasę.
--------------------------------------------------------------------------- */
html:not(.js) .reveal {
	opacity: 1 !important;
	clip-path: none !important;
	transform: none !important;
	transition: none !important;
}

/* ---------------------------------------------------------------------------
   Redaktoriaus turinio stiliai: „Apie mus“ tekstas
--------------------------------------------------------------------------- */
.about-body h2 {
	font-size: 1.5rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.025em;
	color: var(--industry-900);
}
@media (min-width: 1024px) {
	.about-body h2 { font-size: 1.875rem; }
}
.about-body p.accent-note {
	border-left: 2px solid var(--industry-accent);
	padding-left: 1.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--industry-900);
}

/* ---------------------------------------------------------------------------
   Redaktoriaus turinio stiliai: teisiniai puslapiai (privatumo politika)
--------------------------------------------------------------------------- */
.legal-article > * + * { margin-top: 1rem; }
.legal-article > h2 { margin-top: 3rem; }
.legal-article h2 {
	font-size: 1.5rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.025em;
	color: var(--industry-900);
}
@media (min-width: 1024px) {
	.legal-article h2 { font-size: 1.875rem; }
}
.legal-article p { line-height: 1.625; }
.legal-article strong { color: var(--industry-900); font-weight: 700; }
.legal-article a { color: var(--industry-accent); }
.legal-article a:hover { text-decoration: underline; }
.legal-article ul {
	display: grid;
	gap: 0.5rem;
	padding-left: 1.25rem;
	list-style: none;
}
.legal-article ul li { position: relative; line-height: 1.625; }
.legal-article ul li::before {
	content: "";
	position: absolute;
	left: -1.25rem;
	top: 0.6em;
	height: 0.375rem;
	width: 0.375rem;
	background: var(--industry-accent);
}
.legal-article .legal-outro {
	border-top: 1px solid var(--industry-line);
	padding-top: 2rem;
	margin-top: 3rem;
	font-size: 0.875rem;
	color: var(--industry-muted);
}

/* ---------------------------------------------------------------------------
   Poraštės widget'ų turinio stiliai (kad atitiktų numatytą dizainą)
--------------------------------------------------------------------------- */
.footer-widget {
	color: rgb(255 255 255 / 0.7);
	font-size: 0.875rem;
}
.footer-widget + .footer-widget { margin-top: 2rem; }
.footer-widget p + p,
.footer-widget li + li { margin-top: 0.75rem; }
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget a { color: inherit; }
.footer-widget a:hover { color: #fff; }

/* ---------------------------------------------------------------------------
   Modalas (sertifikatas) ir projektų galerijos peržiūra
--------------------------------------------------------------------------- */
.kt-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: color-mix(in oklab, var(--industry-900) 88%, transparent);
}
.kt-overlay.is-open { display: flex; }
.kt-overlay img {
	display: block;
	max-height: 92vh;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}
.kt-overlay-close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	display: grid;
	place-items: center;
	height: 2.75rem;
	width: 2.75rem;
	color: #fff;
	background: rgb(255 255 255 / 0.1);
	border: 1px solid rgb(255 255 255 / 0.2);
	cursor: pointer;
	transition: background-color 0.2s;
}
.kt-overlay-close:hover { background: var(--industry-accent); }
.kt-overlay-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	display: grid;
	place-items: center;
	height: 3rem;
	width: 3rem;
	color: #fff;
	background: rgb(255 255 255 / 0.1);
	border: 1px solid rgb(255 255 255 / 0.2);
	cursor: pointer;
	transition: background-color 0.2s;
}
.kt-overlay-nav:hover { background: var(--industry-accent); }
.kt-overlay-prev { left: 1.25rem; }
.kt-overlay-next { right: 1.25rem; }
@media (max-width: 640px) {
	.kt-overlay-nav { height: 2.5rem; width: 2.5rem; }
	.kt-overlay-prev { left: 0.5rem; }
	.kt-overlay-next { right: 0.5rem; }
}
.kt-overlay-title {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
