/*
Theme Name: Entergo
Author: Tomas Kazilionis, Public secrets LT
Description: UAB Entergo website.
Version: 1.0
Text Domain: entergo
*/

/* ==========================================================
   0. Šriftas Montserrat (kintamo storio, failai temoje: assets/fonts/)
   Du failai: lotyniškos raidės + papildomos (ą, č, ę, ė, į, š, ų, ū, ž).
   Naršyklė parsisiunčia tik tą, kurio raidžių puslapyje yra (unicode-range).
   ========================================================== */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================
   1. Kintamieji: visos spalvos ir pagrindiniai dydžiai vienoje vietoje
   ========================================================== */
:root {
	--entergo-primary:     #4b60ab;  /* mėlyna: antraštės, meniu, mygtukai */
	--entergo-primary-rgb: 75, 96, 171; /* ta pati mėlyna RGB formatu, permatomoms spalvoms rgba() */
	--entergo-accent:    #57b45f;  /* žalia: akcentai */
	--entergo-text:      #2f3138;
	--entergo-light-bg:  #f6f7fd;  /* šviesių sekcijų fonas */
	--entergo-dark-bg:   #101522;  /* poraštė */
	--entergo-header-h:  90px;

	/* Bootstrap kintamieji: perrašome savais, kad .btn-primary, nuorodos
	   ir kt. Bootstrap komponentai naudotų mūsų spalvas ir šriftą. */
	--bs-body-font-family: "Montserrat", sans-serif;
	--bs-body-color:       var(--entergo-text);
	--bs-primary:          var(--entergo-primary);
	--bs-primary-rgb:      var(--entergo-primary-rgb);
	--bs-link-color:       var(--entergo-primary);
	--bs-link-color-rgb:   var(--entergo-primary-rgb);
	--bs-link-hover-color: var(--entergo-accent);
	--bs-link-hover-color-rgb: 87, 180, 95;
}

/* ==========================================================
   2. Bendros taisyklės
   ========================================================== */
h1, h2, h3, h4, h5, h6 {
	color: var(--entergo-primary);
}

h2 {
	font-weight: 700;
}

/* Poraštė visada puslapio apačioje, net kai turinio mažai */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Antraštė fiksuota, todėl turinį nustumiame žemiau jos.
   flex: 1 → main užima visą likusią vietą ir nustumia poraštę žemyn */
.site-main {
	flex: 1;
	padding-top: var(--entergo-header-h);
}

.section {
	padding: 60px 0 30px;
}

.section-light {
	background: var(--entergo-light-bg);
}

/* Bootstrap mygtukai .btn-primary su mūsų spalva */
.btn-primary {
	--bs-btn-bg:                 var(--entergo-primary);
	--bs-btn-border-color:       var(--entergo-primary);
	--bs-btn-hover-bg:           var(--entergo-accent);
	--bs-btn-hover-border-color: var(--entergo-accent);
}

/* ==========================================================
   3. Antraštė ir meniu
   ========================================================== */
/* Įprasta būsena (vidiniai puslapiai, paslinkus, mobiliame):
   balta antraštė su šešėliu, mažas logotipas */
.site-header {
	/* Logotipo plotis keičiasi kartu su ekrano pločiu:
	   clamp(mažiausias, norimas, didžiausias) */
	--logo-w: clamp(170px, 15vw, 240px);

	height: var(--entergo-header-h);
	display: flex;
	align-items: center;
	background: #fff;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
	transition: background 0.3s, height 0.3s, box-shadow 0.3s, padding 0.3s;
}

.site-header.scrolled {
	--entergo-header-h: 70px;
}

.site-header .navbar {
	width: 100%;
}

.navbar-brand {
	padding: 0;
}

.logo-small {
	height: 40px;
	width: auto;
}

.logo-big,
.logo-white {
	display: none;
	width: var(--logo-w);
	height: auto;
}

.navbar-nav .nav-link {
	color: var(--entergo-primary);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	padding: 8px 10px;
	border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
	color: var(--entergo-accent);
	border-bottom-color: var(--entergo-accent);
}

/* Pradžios puslapis, kompiuteryje, nepaslinkus:
   skaidri antraštė, didelis baltas logotipas tiesiai ant video */
@media (min-width: 992px) {
	.home .site-header:not(.scrolled) {
		background: transparent;
		box-shadow: none;
		align-items: flex-start;
		padding-top: 25px;
	}

	.home .site-header:not(.scrolled) .logo-big {
		display: block;
	}

	.home .site-header:not(.scrolled) .logo-small {
		display: none;
	}

	/* Jei hero turi video (tamsus fonas): baltas logotipas vietoje spalvoto */
	.home:has(.intro-video) .site-header:not(.scrolled) .logo-big {
		display: none;
	}

	.home:has(.intro-video) .site-header:not(.scrolled) .logo-white {
		display: block;
	}

	/* Jei hero turi video (tamsus fonas), meniu baltas.
	   :has() = „body, kuriame yra .intro-video“ */
	.home:has(.intro-video) .site-header:not(.scrolled) .nav-link {
		color: #fff;
	}

	.home:has(.intro-video) .site-header:not(.scrolled) .nav-link:hover,
	.home:has(.intro-video) .site-header:not(.scrolled) .nav-link.active {
		color: var(--entergo-accent);
	}
}

/* Mobilus meniu: išskleistas sąrašas po antrašte */
@media (max-width: 991.98px) {
	.navbar-collapse {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		padding: 10px 20px;
		box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
	}
}

/* ==========================================================
   Vidiniai puslapiai (page.php)
   ========================================================== */
.page-hero {
	background: linear-gradient(135deg, var(--entergo-primary) 0%, #6f82c4 100%);
	padding: 60px 0 50px;
}

.page-hero h1 {
	color: #fff;
	font-size: 40px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0;
}

/* Žalia linija po pavadinimu, kaip .section-header */
.page-hero h1::after {
	content: "";
	display: block;
	width: 60px;
	height: 5px;
	margin-top: 15px;
	background: var(--entergo-accent);
}

.page-content {
	font-size: 17px;
}

.page-content .lead {
	font-size: 20px;
	font-weight: 500;
	margin-bottom: 30px;
}

.page-content h2 {
	font-size: 26px;
	margin: 40px 0 20px;
}

/* Sąrašai su žaliomis varnelėmis vietoje taškų */
.page-content ul {
	list-style: none;
	padding: 0;
}

.page-content ul li {
	position: relative;
	padding: 6px 0 6px 32px;
}

.page-content ul li::before {
	content: "\F633"; /* Bootstrap Icons: check-lg */
	font-family: "bootstrap-icons";
	position: absolute;
	left: 0;
	color: var(--entergo-accent);
	font-weight: 700;
}

/* Paryškintas blokas, pvz. serviso kontaktai */
.page-content .highlight-box {
	background: var(--entergo-light-bg);
	border-left: 5px solid var(--entergo-accent);
	padding: 25px 30px;
	margin: 30px 0;
}

.page-content .highlight-box p {
	line-height: 2;
}

.page-content .highlight-box i {
	color: var(--entergo-accent);
	margin-right: 8px;
}

.page-content .highlight-box a {
	text-decoration: none;
	font-weight: 600;
}

.page-content .highlight-box > :last-child {
	margin-bottom: 0;
}

.page-content .highlight-box h2,
.page-content .highlight-box h3 {
	margin-top: 0;
}

@media (max-width: 767.98px) {
	.page-hero h1 {
		font-size: 30px;
	}
}

/* ==========================================================
   Produktai (page-produktai.php)
   ========================================================== */
.product-card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;          /* telefone: proporcinga kortelė */
	overflow: hidden;              /* kad padidinta nuotrauka neišlįstų už kortelės */
	border-radius: 16px;
	background: var(--entergo-primary);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(16, 21, 34, 0.12);
	transition: transform 0.4s, box-shadow 0.4s;
}

/* Planšetėje ir kompiuteryje visos kortelės vienodo AUKŠČIO,
   nors plotis skiriasi (trečdalis ar pusė eilutės) */
@media (min-width: 768px) {
	.product-card {
		aspect-ratio: auto;
		height: 300px;
	}
}

@media (min-width: 1200px) {
	.product-card {
		height: 340px;
	}
}

.product-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;             /* užpildo kortelę, apkarpo kraštus */
	transition: transform 0.6s;
}

/* Tamsus gradientas apačioje, kad baltas užrašas būtų įskaitomas */
.product-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(16, 21, 34, 0.9) 0%, rgba(16, 21, 34, 0.25) 50%, rgba(16, 21, 34, 0) 100%);
}

/* Eilės numeris viršuje kairėje */
.product-card-num {
	position: absolute;
	z-index: 1;
	top: 18px;
	left: 24px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.85);
}

/* Apačia: pavadinimas kairėje, rodyklė dešinėje */
.product-card-body {
	position: absolute;
	z-index: 1;
	left: 24px;
	right: 24px;
	bottom: 22px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 15px;
}

.product-card-title {
	margin: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
}

/* Žalia linija virš užrašo */
.product-card-title::before {
	content: "";
	display: block;
	width: 40px;
	height: 4px;
	margin-bottom: 12px;
	border-radius: 2px;
	background: var(--entergo-accent);
	transition: width 0.4s;
}

/* Rodyklė apskritime, matoma tik kai kortelė yra nuoroda */
.product-card-arrow {
	display: none;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(6px);
	transition: background 0.3s, transform 0.3s;
}

a.product-card .product-card-arrow {
	display: flex;
}

/* Užvedus pele: kortelė pakyla, nuotrauka priartėja, linija pailgėja, rodyklė nuspalvinama */
a.product-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(16, 21, 34, 0.22);
}

a.product-card:hover img {
	transform: scale(1.06);
}

a.product-card:hover .product-card-title::before {
	width: 80px;
}

a.product-card:hover .product-card-arrow {
	background: var(--entergo-accent);
	border-color: var(--entergo-accent);
	transform: translateX(4px);
}

/* Kortelė be nuotraukos */
.product-card.no-image {
	background:
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
		linear-gradient(135deg, var(--entergo-primary) 0%, #6f82c4 100%);
}

.no-image-badge {
	position: absolute;
	z-index: 1;
	top: 16px;
	right: 18px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.no-image-badge i {
	margin-right: 4px;
}

/* ==========================================================
   Produkto vidinis puslapis (template-produktas.php)
   ========================================================== */

/* Nuoroda atgal virš pavadinimo */
.breadcrumb-link {
	margin-bottom: 10px;
}

.breadcrumb-link a {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.breadcrumb-link a:hover {
	color: #fff;
}

.breadcrumb-link i {
	margin-right: 6px;
	transition: margin 0.3s;
}

.breadcrumb-link a:hover i {
	margin-right: 10px;
}

/* Nuotrauka kairėje */
.product-detail-image {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(16, 21, 34, 0.12);
	background: var(--entergo-light-bg);
}

.product-detail-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-detail-image.no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
		linear-gradient(135deg, var(--entergo-primary) 0%, #6f82c4 100%);
}

.no-image-icon {
	font-size: 90px;
	color: rgba(255, 255, 255, 0.35);
}

/* Kompiuteryje: aukštesnė nuotrauka, kuri „prilimpa“ slenkant tekstą */
@media (min-width: 992px) {
	.product-detail-image {
		position: sticky;
		top: calc(70px + 30px);   /* paslinktos antraštės aukštis + tarpas */
		aspect-ratio: 4 / 5;
	}
}

/* Prekės ženklų antraštės (FACE, GEZE ...) tekste */
.product-detail .page-content h2 {
	position: relative;
	padding-left: 18px;
}

.product-detail .page-content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	bottom: 0.15em;
	width: 5px;
	border-radius: 3px;
	background: var(--entergo-accent);
}

.product-detail .page-content > h2:first-child {
	margin-top: 0;
}

.product-cta {
	margin-top: 45px;
}

.product-cta .btn {
	margin-top: 10px;
	padding: 10px 26px;
	font-weight: 600;
}

/* Kiti produktai: mažesnės kortelės */
.other-products .product-card {
	height: 220px;
	aspect-ratio: auto;
}

.other-products .product-card-title {
	font-size: 16px;
}

.other-products .product-card-arrow {
	width: 36px;
	height: 36px;
}

/* ==========================================================
   Galerija: WordPress „Gallery“ blokas (pvz. Projektai puslapyje)
   Nuotraukos atsidaro GLightbox lange (functions.php)
   ========================================================== */
/* Tarpas tarp nuotraukų: WordPress pagal šį kintamąjį skaičiuoja ir stulpelių plotį */
.page-content .wp-block-gallery.has-nested-images {
	--wp--style--unstable-gallery-gap: 16px;
	gap: var(--wp--style--unstable-gallery-gap);
}

.page-content .wp-block-gallery.has-nested-images figure.wp-block-image {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(16, 21, 34, 0.08);
}

.page-content .wp-block-gallery.has-nested-images figure.wp-block-image a {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.page-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

/* Užvedus pele: mėlynas sluoksnis ir žalias didinimo ženklas */
.page-content .wp-block-gallery figure.wp-block-image a::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background: rgba(var(--entergo-primary-rgb), 0.45);
	opacity: 0;
	transition: opacity 0.3s;
}

.page-content .wp-block-gallery figure.wp-block-image a::after {
	content: "\F14D"; /* Bootstrap Icons: arrows-fullscreen */
	font-family: "bootstrap-icons";
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	width: 50px;
	height: 50px;
	margin: -25px 0 0 -25px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--entergo-accent);
	color: #fff;
	font-size: 18px;
	opacity: 0;
	transform: scale(0.7);
	transition: opacity 0.3s, transform 0.3s;
}

.page-content .wp-block-gallery figure.wp-block-image a:hover img {
	transform: scale(1.08);
}

.page-content .wp-block-gallery figure.wp-block-image a:hover::before,
.page-content .wp-block-gallery figure.wp-block-image a:hover::after {
	opacity: 1;
}

.page-content .wp-block-gallery figure.wp-block-image a:hover::after {
	transform: scale(1);
}

/* Telefone: po vieną nuotrauką eilutėje */
@media (max-width: 575.98px) {
	.page-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
		width: 100%;
	}
}

/* ==========================================================
   Kontaktai (page-kontaktai.php)
   ========================================================== */
.contacts-intro {
	margin-bottom: 30px;
}

.contact-card {
	background: #fff;
	border: 1px solid rgba(var(--entergo-primary-rgb), 0.12);
	border-top: 4px solid var(--entergo-accent);
	box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
	padding: 30px;
	height: auto;
}

/* Dvi kortelės dešinėje viena po kita */
.contact-card + .contact-card {
	margin-top: 24px;
}

/* Kairioji kortelė užima visą stulpelio aukštį */
.contact-card-main {
	height: 100%;
	background: var(--entergo-light-bg);
}

.contact-card h2 {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 20px;
}

.contact-card h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 30px 0 15px;
}

.contact-card p {
	line-height: 2;
}

.contact-card i {
	color: var(--entergo-accent);
	margin-right: 6px;
}

.contact-card a {
	text-decoration: none;
	font-weight: 600;
}

/* Įmonės ir PVM kodai: mažesni, pilki, kad neužgožtų kontaktų */
.contact-card .company-codes {
	font-size: 14px;
	line-height: 1.8;
	color: #6c7080;
	margin-top: -10px;
}

.contact-card .company-codes strong {
	color: var(--entergo-text);
}

.contact-name {
	font-weight: 700;
	color: var(--entergo-primary);
	margin-bottom: 0;
}

/* Darbo laiko lentelė */
.hours {
	width: 100%;
	max-width: 340px;
}

.hours td {
	padding: 6px 0;
	border-bottom: 1px solid rgba(var(--entergo-primary-rgb), 0.12);
}

.hours td:last-child {
	text-align: right;
	font-weight: 600;
}

.hours .closed td {
	color: #9195a2;
}

/* Žemėlapis per visą plotį */
.contacts-map iframe {
	display: block;
	width: 100%;
	height: 450px;
	border: 0;
	filter: grayscale(30%);
}

@media (max-width: 767.98px) {
	.contact-card {
		padding: 22px;
	}

	.contacts-map iframe {
		height: 320px;
	}
}

/* ==========================================================
   Partnerių juosta (footer.php, rodoma visuose puslapiuose)
   ========================================================== */
.partners {
	background: #fff;
	padding: 50px 0 40px;
	border-top: 1px solid #eee;
}

/* flex-wrap: logotipai eina į naują eilutę, kai netelpa;
   justify-content: center: paskutinė eilutė irgi centruota */
.partners-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 25px 30px;
}

/* Visi logotipai vienodo dydžio „dėžutėse“, nors failai skirtingų proporcijų */
.partner {
	width: 130px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* object-fit: contain: logotipas telpa į dėžutę neiškraipytas.
   Pilki ir šiek tiek blyškūs, užvedus pele tampa spalvoti. */
.partner a {
	display: contents;
}

.partner img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.65;
	transition: filter 0.3s, opacity 0.3s;
}

.partner:hover img {
	filter: none;
	opacity: 1;
}

@media (max-width: 575.98px) {
	.partner {
		width: 110px;
		height: 50px;
	}
}

/* ==========================================================
   4. Poraštė
   ========================================================== */
.site-footer {
	background: var(--entergo-dark-bg);
	color: #eee;
	font-size: 14px;
	padding-bottom: 25px;
}

.footer-top {
	background: #12171b;
	padding: 50px 0 20px;
}

.footer-logo {
	width: 200px;
	height: auto;
	margin-bottom: 20px;
}

.footer-info p {
	line-height: 1.8;
	max-width: 420px;   /* kad eilutės nebūtų per ilgos plačiame ekrane */
	padding-right: 20px;
}

.footer-top h4 {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--entergo-accent);
}

.footer-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Planšetėje ir telefone stulpeliai išsidėsto vienas po kito: tarpas tarp jų */
@media (max-width: 991.98px) {
	.footer-links,
	.footer-contact {
		margin-top: 40px;
	}
}

.footer-links li {
	border-bottom: 1px solid #262c44;
	padding: 8px 0;
}

.footer-links a {
	color: #eee;
	padding: 0;
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--entergo-accent);
}

.footer-contact p {
	line-height: 2;
}

.footer-contact a {
	color: #eee;
	text-decoration: none;
}

.footer-contact a:hover {
	color: var(--entergo-accent);
}

.footer-contact i {
	color: var(--entergo-accent);
	margin-right: 6px;
}

.copyright {
	text-align: center;
	padding-top: 25px;
}

/* ==========================================================
   5. Bendri komponentai
   ========================================================== */

/* Sekcijos antraštė su žalia linija apačioje */
.section-header {
	position: relative;
	margin-bottom: 40px;
	padding-bottom: 20px;
	text-align: center;
}

.section-header h2 {
	font-size: 36px;
	text-transform: uppercase;
	margin: 0;
}

.section-header::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: calc(50% - 30px);
	width: 60px;
	height: 5px;
	background: var(--entergo-accent);
}

/* „Blob“: netaisyklinga apvali forma vietoje nuotraukos.
   Įdėjus <img class="blob">, forma tiks ir nuotraukai. */
.blob {
	display: inline-block;
	width: 100%;
	max-width: 350px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 58% 42% 38% 62% / 42% 55% 45% 58%;
	background: linear-gradient(135deg, #6f82c4, var(--entergo-primary));
}

.blob-lg {
	max-width: 420px;
}

.blob-alt {
	border-radius: 42% 58% 62% 38% / 55% 42% 58% 45%;
	background: linear-gradient(135deg, var(--entergo-accent), #2e8c4a);
}

/* ==========================================================
   6. Pradžios puslapis (front-page.php)
   ========================================================== */

/* Hero: užima visą ekrano aukštį, atėmus antraštę */
.intro {
	position: relative;
	height: calc(100vh - var(--entergo-header-h));
	min-height: 520px;
	background: linear-gradient(160deg, #e9eef6 0%, #c9dcf2 100%);
	overflow: hidden;
}

.intro .container {
	position: relative; /* kad turinys būtų virš formos ir video */
}

@media (min-width: 992px) {
	/* Antraštė skaidri, todėl hero prasideda nuo pat viršaus */
	.home .site-main {
		padding-top: 0;
	}

	.intro {
		height: 100vh;
		min-height: 640px;
	}

	/* Tekstas apačioje, kad neužliptų ant „blyno“ su logotipu */
	.intro .row {
		align-items: flex-end !important;
		padding-bottom: 12vh;
	}
}

.intro h1 {
	font-size: 42px;
	font-weight: 400;
	text-transform: uppercase;
}

.intro h1 span {
	font-weight: 800;
}

.intro .lead {
	color: var(--entergo-primary);
	font-size: 20px;
	text-transform: uppercase;
	margin-bottom: 30px;
}

/* Trispalvė linija po antrašte */
.intro-line {
	display: flex;
	gap: 6px;
	margin: 20px 0;
}

.intro-line span {
	height: 5px;
	width: 40px;
	background: var(--entergo-primary);
}

.intro-line span:nth-child(2) { background: var(--entergo-accent); width: 20px; }
.intro-line span:nth-child(3) { background: #d1d2d4; width: 10px; }

.intro-btn {
	display: inline-block;
	padding: 12px 32px;
	margin: 0 10px 10px 0;
	border: 2px solid var(--entergo-accent);
	color: var(--entergo-primary);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	transition: 0.3s;
}

.intro-btn:hover,
.intro-btn-solid {
	background: var(--entergo-accent);
	color: #fff;
}

.intro-btn-solid:hover {
	background: var(--entergo-primary);
	border-color: var(--entergo-primary);
}

/* Hero su video fonu (kai įkeltas assets/video/hero.mp4) */
.intro-video {
	background: var(--entergo-dark-bg); /* matosi, kol video dar neįsikrovė */
}

.intro-video::before {
	display: none; /* įstrižos formos nereikia */
}

/* Video išsitempia per visą sekciją; object-fit: cover apkarpo kraštus,
   kad neliktų juodų juostų (kaip background-size: cover paveikslui) */
.intro-video-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Tamsus permatomas sluoksnis, kad baltas tekstas būtų įskaitomas */
.intro-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(16, 21, 34, 0.85) 0%, rgba(var(--entergo-primary-rgb), 0.45) 100%);
}

.intro-video h1,
.intro-video .lead {
	color: #fff;
}

.intro-video .intro-btn {
	color: #fff;
}

/* Mėlyna linijos dalis ant tamsaus fono nesimato, todėl ji tampa balta */
.intro-video .intro-line span:first-child {
	background: #fff;
}

/* Žmonėms, kurie sistemoje išjungė animacijas, video nerodomas */
@media (prefers-reduced-motion: reduce) {
	.intro-video-bg {
		display: none;
	}
}

/* Didelis pilkas numeris: #1, #2 ... */
.big-number {
	font-size: 160px;
	font-weight: 700;
	line-height: 0.8;
	color: #d1d2d4;
	margin: 0;
}

/* „Apie“ sekcija po baneriu (tekstas iš Pages → Pradžia) */
#about {
	padding: 90px 0 70px;          /* buvo 60px 0 30px */
}

#about h2 {
	margin-bottom: 30px;           /* buvo 8px */
}

#about p {
	line-height: 1.8;              /* buvo 1.5 (24px) */
	margin-bottom: 22px;           /* buvo 16px */
}

@media (max-width: 767.98px) {
	#about {
		padding: 60px 0 40px;
	}
}

/* Nuotrauka „blob“ formoje su žalia dekoratyvine forma už jos */
.about-image {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 350px;
}

.about-image::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 42% 58% 62% 38% / 55% 42% 58% 45%;
	background: var(--entergo-accent);
	opacity: 0.25;
	transform: translate(18px, 16px) rotate(8deg);
}

.about-image .blob {
	position: relative;   /* virš žalios formos */
	display: block;
	height: auto;
	box-shadow: 0 15px 35px rgba(16, 21, 34, 0.18);
}

/* Technologijų akcentų juosta: mėlynas fonas, baltos ikonos */
.tech-strip {
	background: linear-gradient(135deg, var(--entergo-primary) 0%, #6f82c4 100%);
	color: #fff;
	padding: 60px 0;
	text-align: center;
}

.tech-item i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 15px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.3);
	font-size: 28px;
	color: #fff;
	transition: background 0.3s, transform 0.3s;
}

.tech-item:hover i {
	background: var(--entergo-accent);
	border-color: var(--entergo-accent);
	transform: translateY(-4px);
}

.tech-item h3 {
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 6px;
}

.tech-item p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

/* Tarpai tarp #1, #2 ... blokų */
#advantages .advantage {
	padding: 50px 0;
}

/* Plona linija tarp blokų, kad jie aiškiau atsiskirtų */
#advantages .advantage + .advantage {
	border-top: 1px solid rgba(var(--entergo-primary-rgb), 0.12);
}

@media (max-width: 767.98px) {
	#advantages .advantage {
		padding: 35px 0;
	}
}

#advantages h3 {
	font-weight: 700;
}

#advantages .bi {
	color: var(--entergo-accent);
}

/* Citata */
.quote {
	border-left: 5px solid var(--entergo-accent);
	padding-left: 25px;
}

.quote p {
	font-size: 22px;
	font-weight: 600;
	color: var(--entergo-primary);
}

.quote footer {
	color: #9195a2;
}

/* Atsiliepimai: tarpai tarp jų */
.testimonial {
	padding: 30px 0;
}

/* Atsiliepimo nuotrauka (Featured image) blob formoje */
.blob-photo {
	height: auto;
	background: var(--entergo-light-bg);
}

/* Mažesnis „blynas“ atsiliepimams */
.blob-sm {
	max-width: 240px;
}

/* Kai blynas dešinėje, citata lygiuojama į dešinę, linija dešinėje pusėje */
@media (min-width: 768px) {
	.testimonial-right .quote {
		border-left: 0;
		border-right: 5px solid var(--entergo-primary);
		padding-left: 0;
		padding-right: 25px;
		text-align: right;
	}
}

/* Planšetės ir telefonai */
@media (max-width: 991.98px) {
	.intro::before {
		clip-path: polygon(85% 0, 100% 0, 100% 100%, 70% 100%);
	}

	.intro h1 {
		font-size: 32px;
	}

	.big-number {
		font-size: 100px;
	}
}

/* ==========================================================
   Slapukai: sutikimo juosta, žemėlapio blokavimas, nuorodos poraštėje
   ========================================================== */
.cookie-banner {
	position: fixed;
	z-index: 1050;               /* virš antraštės (fixed-top = 1030) */
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 0;
	background: #fff;
	border-top: 4px solid var(--entergo-accent);
	box-shadow: 0 -8px 30px rgba(16, 21, 34, 0.15);
}

.cookie-banner-inner {
	display: flex;
	align-items: center;
	gap: 20px 30px;
}

.cookie-banner p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

.cookie-banner-buttons {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.cookie-banner .btn {
	min-width: 120px;           /* abu mygtukai vienodo dydžio */
	font-weight: 600;
}

@media (max-width: 767.98px) {
	.cookie-banner-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.cookie-banner-buttons .btn {
		flex: 1;
	}
}

/* Žemėlapis, kol nėra sutikimo: vietoje jo pranešimas */
.consent-map {
	position: relative;
	background: var(--entergo-light-bg);
}

.consent-map iframe {
	display: none;
}

.consent-map.is-loaded iframe {
	display: block;
}

.consent-map.is-loaded .consent-map-notice {
	display: none;
}

.consent-map-notice {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 320px;
	padding: 40px 20px;
	text-align: center;
	background:
		repeating-linear-gradient(45deg, rgba(var(--entergo-primary-rgb), 0.04) 0 12px, transparent 12px 24px),
		var(--entergo-light-bg);
}

.consent-map-notice > i {
	font-size: 42px;
	color: var(--entergo-primary);
}

.consent-map-notice p {
	max-width: 460px;
	margin: 0;
	color: var(--entergo-text);
}

.consent-map-notice a {
	font-size: 14px;
	text-decoration: none;
}

/* Teisinės nuorodos poraštėje */
.footer-legal {
	display: block;
	margin-top: 8px;
	font-size: 13px;
}

.footer-legal a {
	color: #aab0c0;
	text-decoration: none;
}

.footer-legal a:hover {
	color: var(--entergo-accent);
}

/* Lentelės turinyje (pvz. Slapukų politikoje) */
.page-content .wp-block-table {
	overflow-x: auto;
	margin: 20px 0 30px;
}

.page-content .wp-block-table table {
	width: 100%;
	font-size: 15px;
	border-collapse: collapse;
}

.page-content .wp-block-table th,
.page-content .wp-block-table td {
	padding: 10px 12px;
	border: 1px solid rgba(var(--entergo-primary-rgb), 0.15);
	vertical-align: top;
}

.page-content .wp-block-table thead th {
	background: var(--entergo-light-bg);
	color: var(--entergo-primary);
	text-align: left;
}
