/*
Theme Name: Splentas
Theme URI: https://splentas.lt/
Author: UAB "Šiaulių plentas"
Description: Classic theme for splentas.lt (UAB "Šiaulių plentas"). Originally built by UAB "InternetSolutions"; modernised in 2026 for current WordPress and PHP.
Version: 2.0.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: splentas
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Contents
   1. Reset
   2. WordPress core classes and accessibility
   3. Base
   4. Header and menu
   5. Home: slider, Veikla, mobile call button
   6. Post grid (Projektai / Naujienos)
   7. Pages and single posts
   8. Map and contact bar
   9. Footer
   10. Search, tables, forms
   11. Plugin compatibility (Responsive Menu, Galleria, Contact Form 7)
   12. Responsive
   ========================================================================== */

/* 1. Reset
   ========================================================================== */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol,
fieldset, form, label, legend {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}

ol {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

ins {
	text-decoration: none;
}

del {
	text-decoration: line-through;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

.clearfix::after,
.container::after {
	content: "";
	display: block;
	clear: both;
}

/* 2. WordPress core classes and accessibility
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip-path: none;
	color: #000;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

:focus-visible {
	outline: 2px solid #3b3e42;
	outline-offset: 2px;
}

img.centered,
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignright {
	float: right;
}

.alignleft {
	float: left;
}

img.alignright {
	padding: 4px;
	margin: 0 0 2px 7px;
	display: inline;
}

img.alignleft {
	padding: 4px;
	margin: 0 7px 2px 0;
	display: inline;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	font-size: 14px;
}

.sticky,
.bypostauthor {
	/* Required by Theme Check; no special styling. */
}

/* 3. Base
   ========================================================================== */

html,
body {
	height: 100%;
}

body {
	font: 400 1em/1.618em Roboto, sans-serif;
}

a:hover,
a:active,
a:visited,
a:link {
	text-decoration: none;
}

#page img,
.page-content img {
	max-width: 100%;
	height: auto;
}

/* 4. Header and menu
   ========================================================================== */

header#site-header {
	width: 100%;
	height: 140px;
	position: fixed;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.31);
}

header#site-header.is-scrolled {
	height: 111px;
}

.admin-bar header#site-header {
	top: 32px;
}

header .top-bar {
	width: 100%;
	height: 30px;
	background: #f3bd1c;
	overflow: hidden;
}

header .top-bar i,
header .top-bar .fa {
	color: #a98928;
}

nav {
	transition: 0.5s all;
}

#top-email {
	margin-right: 50px;
}

#top-email,
#top-phone {
	float: left;
}

#top-email a,
#top-phone p,
#top-phone a {
	font-size: 14px;
	font-weight: 300;
	line-height: 30px;
	color: #000;
}

#top-phone .fa-mobile {
	font-size: 20px;
	position: relative;
	margin-top: 4px;
	float: left;
	margin-right: 5px;
}

#site-logo {
	float: left;
	padding-top: 10px;
}

#site-logo img {
	width: 155px;
	height: auto;
}

.is-scrolled #site-logo img {
	width: 100px;
}

/* Menu (replaces Superfish: CSS-only dropdowns, open on hover and focus) */

#primary-nav {
	z-index: 100;
	float: right;
	padding-top: 30px;
}

.primary-menu,
.primary-menu * {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu {
	line-height: 1;
}

.primary-menu li {
	float: left;
	position: relative;
}

.primary-menu a {
	display: block;
	position: relative;
}

#primary-nav li {
	line-height: 37px;
}

#primary-nav li a {
	z-index: 100;
	float: left;
	padding: 7px 20px;
	font-size: 1em;
	color: #000;
	font-weight: 300;
	transition: all 0.3s;
}

#primary-nav li a:hover,
#primary-nav li a:focus,
#primary-nav li.current-menu-item > a,
#primary-nav li.current-menu-item > a:hover {
	background: #f3bd1c;
	text-decoration: none;
}

#primary-nav li.current-menu-item li a {
	background: none;
}

.primary-menu ul {
	position: absolute;
	top: 2.5em;
	left: 0;
	z-index: 99;
	width: 160%;
	margin-top: 10px;
	background: #fff;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s ease, visibility 0s linear 0.45s;
}

.primary-menu ul li {
	width: 100%;
}

.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul,
.primary-menu li.is-open > ul {
	visibility: visible;
	opacity: 1;
	transition-delay: 0s;
}

.primary-menu ul ul {
	top: 0;
	left: 100%;
	margin-top: 0;
}

#primary-nav li li {
	line-height: 24px;
}

#primary-nav li li a {
	border: none;
	transition: none;
	float: none;
}

#primary-nav li li:hover {
	background: #f3bd1c;
	width: 100%;
}

.sub-menu {
	padding: 0;
}

/* 5. Home: slider, Veikla, mobile call button
   ========================================================================== */

#project-slider {
	z-index: 10;
	margin-top: 140px;
}

/* The slider fills the viewport below the fixed header. */
.carousel {
	height: calc(100vh - 140px);
	overflow: hidden;
	transition: 0.5s all;
}

.carousel .item,
.carousel .active {
	height: calc(100% - 140px);
	overflow: hidden;
	transition: 0.5s all;
}

.carousel-inner {
	height: calc(100% + 140px);
	transition: 0.5s all;
}

.slide-image {
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: cover;
}

.carousel-caption {
	position: absolute;
	right: 15%;
	bottom: 10%;
	left: 15%;
	z-index: 10;
	width: 70%;
	padding-top: 20px;
	padding-bottom: 20px;
	color: #fff;
	text-align: left;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.carousel-caption a {
	color: #fff;
	background: rgba(0, 0, 0, 0.4);
	padding: 5px;
	line-height: 1.42em;
}

.carousel-caption .carousel-title {
	font-size: 3em;
	padding: 15px;
	text-transform: uppercase;
	font-weight: 100;
}

.carousel-control .icon-prev::before {
	content: "\f053";
	font-family: FontAwesome;
}

.carousel-control .icon-next::before {
	content: "\f054";
	font-family: FontAwesome;
}

.carousel-control .icon-next,
.carousel-control .icon-prev {
	font-size: 50px;
}

.carousel-control.right,
.carousel-control.left {
	background-image: none;
}

.carousel-control {
	opacity: 0.5 !important;
}

.carousel-control:hover,
.carousel-control:focus {
	opacity: 1 !important;
}

/* Fade instead of slide */
.carousel-fade .carousel-inner .item {
	transition-property: opacity;
}

.carousel-fade .carousel-inner .item,
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
	opacity: 0;
}

.carousel-fade .carousel-inner .active,
.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
	opacity: 1;
}

.carousel-fade .carousel-inner .next,
.carousel-fade .carousel-inner .prev,
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
	left: 0;
	transform: translate3d(0, 0, 0);
}

.carousel-fade .carousel-control {
	z-index: 2;
}

.section-title,
.page-title,
.archive-title {
	position: relative;
	font-size: 36px;
	font-weight: 100;
	line-height: 100px;
	text-align: center;
}

.section-title::after,
.page-title::after,
.archive-title::after {
	content: "";
	background: #f3bd1c;
	width: 90px;
	height: 2px;
	position: absolute;
	bottom: 23px;
	left: 0;
	right: 0;
	margin: 0 auto;
}

.page-title,
.archive-title {
	margin-bottom: 20px;
}

.archive-title {
	margin-top: 135px;
}

.activities {
	background: #f6f6f6;
	position: relative;
	margin-bottom: 50px;
}

.activities::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 50px;
	background: #f1f1f1;
	top: 0;
	left: 0;
}

.activities h2 {
	background: #f1f1f1;
	line-height: 50px;
	width: 100%;
}

.activities ul {
	padding-left: 15px;
	list-style: none;
}

.activities ul li {
	padding-bottom: 10px;
	font-weight: 300;
}

.activities ul li::before {
	content: "\f13a";
	font-family: FontAwesome;
	display: inline-block;
	width: 1.2em;
	margin-left: -1.2em;
}

#mobile-call {
	display: none;
	padding-top: 140px;
}

#mobile-call a {
	display: block;
	width: 100%;
	text-align: center;
	color: #000;
	background: #f3bd1c;
	border-radius: 30px;
	padding: 15px 0;
	margin-top: 15px;
	font-weight: 700;
	font-size: 26px;
	transition: all 0.3s;
}

#mobile-call a:hover,
#mobile-call a:focus {
	text-decoration: none;
	transform: translateY(3px);
}

/* 6. Post grid (Projektai / Naujienos)
   ========================================================================== */

/* Each tile is a size container, so the overlay text scales with its width
   (this replaces the old resize JavaScript). */
.project-tile {
	width: 100%;
	padding-bottom: 56.25%;
	position: relative;
	overflow: hidden;
	container-type: inline-size;
}

.project-tile-inner {
	position: absolute;
	inset: 0;
}

.project-tile-inner > div {
	position: relative;
}

.project-tile-inner > div > a {
	position: absolute;
	width: 100%;
	height: 100%;
	color: #fff;
}

.project-tile-inner img {
	width: 100%;
	height: auto;
	position: relative;
	filter: grayscale(0%);
	transition: all 0.7s;
	z-index: 1;
}

.project-tile-inner:hover img,
.project-tile-inner:focus-within img {
	filter: grayscale(100%);
}

#project-portfolio .col-md-4,
#project-portfolio .col-sm-6,
#project-portfolio .col-xs-12 {
	padding: 0 10px !important;
	margin-bottom: 20px;
}

.project-overlay {
	position: absolute;
	inset: 0;
	margin: auto;
	padding: 50px;
	z-index: 10;
	opacity: 0;
	transition: all 0.7s;
}

.project-tile-inner:hover .project-overlay,
.project-tile-inner:focus-within .project-overlay {
	opacity: 1;
}

.project-overlay-text {
	float: left;
	width: 100%;
}

.project-overlay .project-title {
	font-size: 5cqw;
	font-weight: 200;
	padding: 10px;
	background: rgba(0, 0, 0, 0.4);
}

.project-overlay p {
	font-size: 3cqw;
	line-height: 4cqw;
	font-weight: 200;
	padding: 10px;
	background: rgba(0, 0, 0, 0.4);
}

.project-overlay a,
.project-overlay a:hover {
	color: #fff;
	text-decoration: none;
}

.prev-next-posts {
	float: left;
	padding-bottom: 20px;
	width: 100%;
}

.prev-posts-link {
	float: left;
}

.next-posts-link {
	float: right;
}

.prev-next-posts a {
	color: #000;
}

/* 7. Pages and single posts
   ========================================================================== */

.page-wrap {
	min-height: 100%;
}

#page {
	padding-top: 135px;
	margin-bottom: 80px;
	min-height: 600px;
	height: 100%;
}

#page p {
	font-weight: 300;
	padding-bottom: 15px;
	font-size: 1.2rem;
}

#page p a img,
.post-hero-content p a img {
	max-width: 49.78%;
	height: auto;
	padding: 2.5px;
}

.post-hero {
	width: 100%;
	height: 500px;
	margin-top: -40px;
	background-size: cover;
	background-position: center;
	margin-bottom: 40px;
	position: relative;
}

.post-hero div {
	position: absolute;
	bottom: 215px;
	left: 0;
	right: 0;
	margin: 0 auto;
	text-align: center;
	font-size: 40px;
	color: #fff;
	font-weight: 200;
}

.post-hero div h1 {
	font-weight: 200;
	background: rgba(0, 0, 0, 0.4);
	padding: 6px;
	display: inline;
	line-height: 64px;
}

.post-hero-content {
	text-align: justify;
}

.contact-block {
	margin-bottom: 10px;
}

.contact-block h2 {
	font-size: 20px;
}

.contact-block p {
	font-size: 18px;
}

.error-404-title {
	font-size: 26px;
	font-weight: 400;
	text-align: center;
	margin: 300px 0 30px;
}

.error-404 .searchform {
	margin: 0 auto;
}

/* 8. Map and contact bar
   ========================================================================== */

.map {
	width: 100%;
	height: 400px;
	position: relative;
}

#map {
	width: 100%;
	height: 400px;
}

.map-overlay {
	width: 100%;
	height: 70px;
	position: absolute;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
}

.map-overlay p a {
	color: #fff;
	margin-top: 10px;
	float: left;
}

.map-overlay p a:hover {
	text-decoration: none;
}

.map-overlay i {
	font-size: 50px;
	display: block;
	float: left;
	padding-top: 10px;
}

.map-overlay #map-icon-phone {
	font-size: 60px;
	padding-top: 5px;
}

.map-overlay p {
	font-size: 14px;
	line-height: 18px;
	display: block;
	float: left;
	padding-left: 7px;
}

.map-overlay p:nth-child(2) {
	padding-top: 17px;
}

#contact-button {
	display: block;
	width: 200px;
	padding: 5px 0;
	color: #fff;
	background: rgba(0, 0, 0, 0.8);
	border: 2px solid #fff;
	text-align: center;
	transition: all 0.5s;
	margin-top: 15px;
	float: right;
}

#contact-button:hover,
#contact-button:focus {
	text-decoration: none;
	background: rgba(255, 255, 255, 0.9);
	color: #000;
	border-color: #000;
}

/* 9. Footer
   ========================================================================== */

footer#site-footer {
	width: 100%;
	margin: 0;
}

.footer-bottom {
	width: 100%;
	height: 70px;
	line-height: 70px;
	font-size: 14px;
	background: #3b3e42;
	color: #fff;
	overflow: hidden;
	font-weight: 300;
}

.footer-bottom a {
	font-size: 14px;
	font-weight: 300;
}

/* 10. Search, tables, forms
   ========================================================================== */

.searchform {
	width: 260px;
	height: 30px;
}

.searchform .search-field {
	float: left;
	width: 209px;
	height: 29px;
	padding-left: 8px;
	border: 1px solid #ccc;
	border-right: none;
	border-bottom: none;
	background: #eee;
	color: #555;
	font: 12px/26px Arial, sans-serif;
}

.searchform .search-submit {
	float: left;
	width: 39px;
	height: 29px;
	border: none;
	border-top: 1px solid #2d880e;
	border-right: 1px solid #2d880e;
	background: #63b049 url("assets/images/search.png") center no-repeat;
	cursor: pointer;
}

.search-results li {
	padding-bottom: 10px;
}

table {
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	font-size: 1.2rem;
}

table td,
table th {
	text-align: left;
	border: none;
	padding: 0.4em 0.8em 0.4em 0;
}

table th {
	background-color: #63b9f8;
	color: #fff;
	text-transform: uppercase;
	font-weight: 700;
	border-bottom: 1px solid #666;
}

table td,
table tr.even td {
	background-color: #fff;
}

table th a {
	color: #000;
}

table th a:hover {
	color: #f2f2f2;
}

table.nostyle td,
table.nostyle th,
table.nostyle tr.even td,
table.nostyle tr:hover td {
	border: 0;
	background: none;
	background-color: transparent;
}

/* 11. Plugin compatibility
   ========================================================================== */

/* Responsive Menu */
#click-menu #RMX {
	font-size: 40px !important;
}

#responsive-menu-title {
	margin-bottom: 20px;
}

#responsive-menu .appendLink {
	display: none;
}

.appendLink img {
	width: 100% !important;
}

.responsive-menu-subarrow.responsive-menu-subarrow-active {
	display: none !important;
}

/* Galleria */
#galleria {
	background: rgba(0, 0, 0, 0.6) !important;
}

.galleria-container {
	background: rgba(0, 0, 0, 0.8) !important;
}

.galleria-thumbnails {
	height: 80px !important;
}

.galleria-thumbnails-container {
	height: 100px !important;
}

.galleria-image > img {
	max-height: 85% !important;
	width: auto !important;
}

.galleria-thumbnails > .galleria-image > img {
	width: 100px !important;
	height: 80px !important;
}

.galleria-thumbnails > .galleria-image,
.galleria-thumbnails .active {
	width: 100px !important;
	height: 100px !important;
}

/* Contact Form 7 */
div.wpcf7 input[type="text"],
div.wpcf7 input[type="tel"],
div.wpcf7 input[type="email"] {
	padding: 4px;
}

div.wpcf7 label {
	font-weight: 400;
}

/* 12. Responsive
   ========================================================================== */

@media screen and (max-width: 1200px) {

	#page p a img,
	.post-hero-content p a img {
		max-width: 49.73%;
	}
}

@media screen and (max-width: 1025px) {

	.project-overlay {
		opacity: 1;
	}
}

@media screen and (max-width: 992px) {

	.map-overlay i {
		display: none;
	}

	.footer-bottom,
	.footer-bottom a {
		font-size: 12px;
	}

	.carousel-inner {
		height: calc(100% + 100px);
	}

	.carousel-caption {
		width: 74%;
	}

	.carousel-caption a {
		font-size: 30px;
		line-height: 32px;
	}

	#page p a img,
	.post-hero-content p a img {
		max-width: 100%;
	}

	#primary-nav li a {
		font-size: 15px;
	}

	.galleria-image-nav {
		margin-top: 0 !important;
		top: 60%;
	}
}

@media screen and (max-width: 768px) {

	nav {
		height: 75px;
	}

	#site-logo img {
		width: 100px;
		margin-left: 20px;
	}

	#click-menu .threeLines {
		width: 34px !important;
	}

	.carousel-caption {
		width: 70%;
		bottom: 0;
	}

	.carousel {
		margin-top: 140px;
	}

	.carousel,
	.carousel .item,
	.carousel .active {
		height: 400px;
		min-height: 400px;
		max-height: 400px;
	}

	.carousel-inner {
		height: 400px;
	}

	.map-overlay i {
		display: block;
		padding-right: 10px;
	}

	.map-overlay {
		height: 140px;
	}

	.map-overlay p {
		float: none;
	}

	.footer-bottom {
		line-height: 35px;
	}

	.project-tile-inner .project-title {
		text-align: center;
	}

	.project-tile-inner p {
		display: none;
	}

	#contact-button {
		float: none;
	}

	.section-title {
		font-size: 30px;
	}

	.contact-block {
		text-align: center;
	}

	.post-hero-content p a {
		visibility: hidden;
	}

	#page p a img,
	.post-hero-content p a img {
		max-width: 100%;
		visibility: visible;
	}

	.post-hero {
		height: 300px;
	}

	.post-hero div {
		bottom: 120px;
		width: 90%;
		font-size: 23px;
	}

	.post-hero div h1 {
		line-height: 42px;
	}
}

@media screen and (max-width: 782px) {

	.admin-bar header#site-header {
		top: 46px;
	}
}

@media screen and (max-width: 480px) {

	.carousel {
		display: none !important;
	}

	#mobile-call {
		display: block;
	}

	.map-overlay i {
		display: none;
	}

	#contact-button {
		width: 100%;
	}

	.project-overlay {
		padding: 20px;
	}

	#activities h2 {
		font-size: 15px;
	}

	#activities ul li {
		font-size: 15px;
		line-height: 17px;
	}

	#top-phone {
		display: none;
	}

	.project-tile-inner .project-title {
		font-size: 20px !important;
		margin-top: 15% !important;
	}
}

@media screen and (max-width: 360px) {

	.map-overlay p,
	.map-overlay a {
		font-size: 12px;
	}

	#activities h2 {
		font-size: 14px;
	}

	#activities ul li {
		font-size: 14px;
		line-height: 16px;
	}

	.project-tile-inner .project-title {
		font-size: 17px !important;
		line-height: 19px !important;
	}
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
