/*
Theme Name: Splentas 3
Theme URI: https://splentas.lt/
Author: UAB "Šiaulių plentas"
Description: Redesigned version 3 of the splentas.lt theme; installs next to the earlier "Splentas" theme (folder splentas-v3). Classic theme for splentas.lt (UAB "Šiaulių plentas"). Originally built by UAB "InternetSolutions"; modernised in 2026 for current WordPress and PHP; redesigned in 3.0 as an industrial, photography-led corporate site.
Version: 3.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, wide-blocks
*/

/* ==========================================================================
   Contents
   1. Design tokens
   2. Reset and base
   3. WordPress core classes and accessibility
   4. Layout helpers, buttons, headings, decorations
   5. Header and menu
   6. Home: hero
   7. Home: introduction, activities, services, machinery, reasons, CTA
   8. Cards and grids (projects, news)
   9. Internal pages: page header, breadcrumbs, content
   10. Contacts and map
   11. Footer
   12. Search, 404, pagination, forms
   13. Plugin and legacy compatibility
   14. Motion
   15. Print
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */

:root {
	--c-graphite: #1c1f22;
	--c-asphalt: #26292d;
	--c-steel: #3b3e42;
	--c-concrete: #efeeea;
	--c-light: #f6f6f4;
	--c-line: #dcdbd5;
	--c-line-dark: rgba(255, 255, 255, 0.14);
	--c-text: #1c1f22;
	--c-body: #33373b;
	--c-muted: #5b6066;
	--c-muted-dark: #b5b7b4;
	--c-accent: #f3bd1c;
	--c-accent-hover: #ffd24a;
	--c-accent-dark: #a98928;
	--c-white: #fff;

	--f-body: Barlow, "Helvetica Neue", Arial, sans-serif;
	--f-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;

	--container: 1280px;
	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(72px, 9vw, 136px);
	--section-tight: clamp(48px, 6vw, 88px);
	--gap: clamp(16px, 2vw, 24px);

	--topbar-h: 38px;
	--logo-h: var(--logo-h-custom, 80px);
	--header-h: calc(var(--logo-h) + 24px);
	--header-h-scrolled: calc(var(--logo-h) * 0.72 + 18px);

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--shadow: 0 18px 40px -18px rgba(20, 22, 24, 0.35);
	--focus: var(--c-graphite);
}

@media (max-width: 699.98px) {

	:root {
		--logo-h: min(var(--logo-h-custom, 80px), 52px);
		--header-h: calc(var(--logo-h) + 18px);
		--header-h-scrolled: calc(var(--logo-h) * 0.85 + 14px);
	}
}

/* 2. Reset and base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h-scrolled) + 16px);
}

@media (prefers-reduced-motion: no-preference) {

	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-body);
	font: 400 1.0625rem/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--c-text);
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.005em;
	text-wrap: balance;
}

p,
ul,
ol,
dl,
figure,
blockquote,
address {
	margin: 0 0 1em;
}

address {
	font-style: normal;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	border: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

hr {
	height: 0;
	margin: 3em 0;
	border: 0;
	border-top: 1px solid var(--c-line);
}

table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}

.icon {
	flex: none;
	width: 1.15em;
	height: 1.15em;
	vertical-align: -0.2em;
}

/* 3. 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: var(--c-accent);
	clip-path: none;
	color: var(--c-graphite);
	display: block;
	font-size: 1rem;
	font-weight: 600;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.section--dark,
.hero,
.page-header,
.site-footer,
.top-bar,
.cta-band {
	--focus: var(--c-accent);
}

.cta-band {
	--focus: var(--c-graphite);
}

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

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

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

.wp-caption-text,
.gallery-caption,
figcaption {
	margin-top: 0.6em;
	color: var(--c-muted);
	font-size: 0.875rem;
}

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

/* 4. Layout helpers, buttons, headings, decorations
   ========================================================================== */

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-right: auto;
	margin-left: auto;
	padding-right: var(--gutter);
	padding-left: var(--gutter);
}

.section {
	padding-block: var(--section);
}

.section--tight {
	padding-block: var(--section-tight);
}

/* Two white sections in a row share one gap. */
.section--plain + .section--plain {
	padding-top: 0;
}

.section--dark {
	background: var(--c-graphite);
	color: var(--c-muted-dark);
}

.section--dark h2,
.section--dark h3 {
	color: var(--c-white);
}

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

.lead {
	font-size: clamp(1.125rem, 1.4vw, 1.3rem);
	line-height: 1.6;
}

/* Small label above titles, with a road-marking dash. */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 1rem;
	color: var(--c-muted);
	font-family: var(--f-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 32px;
	height: 4px;
	background: var(--c-accent);
}

.eyebrow--light,
.section--dark .eyebrow {
	color: rgba(255, 255, 255, 0.78);
}

.section-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 40px;
	margin-bottom: clamp(32px, 4vw, 56px);
}

.section-title {
	margin: 0;
	font-size: clamp(2.25rem, 4.4vw, 3.75rem);
	line-height: 0.98;
	text-transform: uppercase;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 4px;
	border-bottom: 3px solid var(--c-accent);
	color: inherit;
	font-family: var(--f-display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.text-link .icon {
	transition: transform 0.3s var(--ease);
}

.text-link:hover .icon,
.text-link:focus-visible .icon {
	transform: translateX(4px);
}

.text-link--back:hover .icon,
.text-link--back:focus-visible .icon {
	transform: translateX(-4px);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 52px;
	padding: 0.7em 1.6em;
	border: 2px solid transparent;
	border-radius: 0;
	font-family: var(--f-display);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn .icon {
	transition: transform 0.3s var(--ease);
}

.btn:hover .icon,
.btn:focus-visible .icon {
	transform: translateX(4px);
}

.btn--sm {
	min-height: 44px;
	padding: 0.55em 1.2em;
	font-size: 1rem;
}

.btn--lg {
	min-height: 58px;
	padding: 0.8em 1.9em;
	font-size: 1.15rem;
}

.btn--primary {
	background: var(--c-accent);
	color: var(--c-graphite);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background: var(--c-accent-hover);
	color: var(--c-graphite);
}

.btn--dark {
	background: var(--c-graphite);
	color: var(--c-white);
}

.btn--dark:hover,
.btn--dark:focus-visible {
	background: var(--c-steel);
	color: var(--c-white);
}

.btn--ghost {
	border-color: rgba(255, 255, 255, 0.65);
	background: transparent;
	color: var(--c-white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
	border-color: var(--c-white);
	background: var(--c-white);
	color: var(--c-graphite);
}

.btn--outline {
	border-color: var(--c-graphite);
	background: transparent;
	color: var(--c-graphite);
}

.btn--outline:hover,
.btn--outline:focus-visible {
	background: var(--c-graphite);
	color: var(--c-white);
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--c-line);
	background: transparent;
	color: var(--c-graphite);
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.icon-button:hover,
.icon-button:focus-visible {
	border-color: var(--c-graphite);
}

.icon-button--light {
	border-color: rgba(255, 255, 255, 0.35);
	color: var(--c-white);
}

.icon-button--light:hover,
.icon-button--light:focus-visible {
	border-color: var(--c-accent);
	background: var(--c-accent);
	color: var(--c-graphite);
}

/* Link that makes its whole card clickable. */
.stretched-link {
	color: inherit;
	text-decoration: none;
}

.stretched-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.stretched-link:focus-visible {
	outline: none;
}

.stretched-link:focus-visible::after {
	outline: 3px solid var(--c-accent);
	outline-offset: -3px;
}

/* Dashed road centre line. */
.road-line {
	height: 6px;
	background: repeating-linear-gradient(90deg, var(--c-accent) 0 56px, transparent 56px 92px);
}

/* Three slanted bars, taken from the wings of the logo. */
.hero__stripes,
.page-header__stripes {
	position: absolute;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	pointer-events: none;
}

.hero__stripes span,
.page-header__stripes span {
	display: block;
	height: 14px;
	background: var(--c-accent);
	transform: skewX(-38deg);
}

.hero__stripes span:nth-child(1),
.page-header__stripes span:nth-child(1) {
	width: clamp(120px, 18vw, 300px);
}

.hero__stripes span:nth-child(2),
.page-header__stripes span:nth-child(2) {
	width: clamp(96px, 14vw, 236px);
	margin-right: 18px;
}

.hero__stripes span:nth-child(3),
.page-header__stripes span:nth-child(3) {
	width: clamp(72px, 10vw, 172px);
	margin-right: 36px;
}

.image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 180px;
	background:
		repeating-linear-gradient(-45deg, rgba(243, 189, 28, 0.12) 0 18px, transparent 18px 36px),
		var(--c-steel);
}

/* 5. Header and menu
   ========================================================================== */

/* The contact strip scrolls away; the main bar stays pinned. */
.site-header {
	position: sticky;
	top: calc(var(--topbar-h) * -1);
	z-index: 100;
}

.admin-bar .site-header {
	top: calc(32px - var(--topbar-h));
}

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

	.admin-bar .site-header {
		top: calc(46px - var(--topbar-h));
	}
}

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

	/* The admin bar scrolls with the page here. */
	.admin-bar .site-header {
		top: calc(var(--topbar-h) * -1);
	}
}

.top-bar {
	height: var(--topbar-h);
	background: var(--c-graphite);
	color: var(--c-muted-dark);
	font-size: 0.875rem;
	line-height: 1;
}

.top-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
}

.top-bar p,
.top-bar ul {
	display: flex;
	align-items: center;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-bar a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-white);
	text-decoration: none;
}

.top-bar a:hover {
	color: var(--c-accent);
}

.top-bar .icon {
	color: var(--c-accent);
	width: 16px;
	height: 16px;
}

.top-bar__address {
	gap: 8px !important;
}

.top-bar__left {
	display: flex;
	align-items: center;
	gap: 8px 28px;
	min-width: 0;
}

.top-bar__text {
	color: var(--c-muted-dark);
}

/* Top strip switched off (Customizer → Header). */
.no-top-bar {
	--topbar-h: 0px;
}

.main-bar {
	position: relative;
	background: var(--c-white);
	border-bottom: 1px solid var(--c-line);
	transition: box-shadow 0.3s;
}

.is-scrolled .main-bar {
	box-shadow: 0 10px 30px -18px rgba(20, 22, 24, 0.45);
}

.main-bar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--header-h);
	transition: height 0.3s var(--ease);
}

.is-scrolled .main-bar__inner {
	height: var(--header-h-scrolled);
}

.site-logo {
	flex: none;
	margin-right: auto;
	line-height: 0;
}

.site-logo a {
	display: inline-block;
}

.site-logo img {
	width: auto;
	height: var(--logo-h);
	transition: height 0.3s var(--ease);
}

.is-scrolled .site-logo img {
	height: calc(var(--logo-h) * 0.72);
}

.main-bar__actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 10px;
}

.header-call,
.menu-toggle {
	display: none;
}

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

.primary-menu a {
	display: block;
	text-decoration: none;
}

.primary-nav__contact {
	display: none;
}

/* Desktop menu */
@media screen and (min-width: 1100px) {

	.primary-nav {
		align-self: stretch;
	}

	.primary-menu {
		display: flex;
		height: 100%;
	}

	.primary-menu > li {
		position: relative;
		display: flex;
	}

	.primary-menu > li > a {
		position: relative;
		display: flex;
		align-items: center;
		padding: 0 clamp(10px, 1.1vw, 18px);
		color: var(--c-graphite);
		font-family: var(--f-display);
		font-size: 1.0625rem;
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		white-space: nowrap;
	}

	.primary-menu > li > a::after {
		content: "";
		position: absolute;
		right: clamp(10px, 1.1vw, 18px);
		bottom: -1px;
		left: clamp(10px, 1.1vw, 18px);
		height: 4px;
		background: var(--c-accent);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.3s var(--ease);
	}

	.primary-menu > li > a:hover::after,
	.primary-menu > li > a:focus-visible::after,
	.primary-menu > li:focus-within > a::after,
	.primary-menu > .current-menu-item > a::after,
	.primary-menu > .current-menu-ancestor > a::after,
	.primary-menu > .current-menu-parent > a::after,
	.primary-menu > .current_page_item > a::after,
	.primary-menu > .current_page_ancestor > a::after {
		transform: scaleX(1);
	}

	.primary-menu .menu-item-has-children > a {
		padding-right: clamp(22px, 2vw, 30px);
	}

	.primary-menu > .menu-item-has-children > a::before {
		content: "";
		position: absolute;
		top: 50%;
		right: clamp(8px, 0.8vw, 14px);
		width: 6px;
		height: 6px;
		margin-top: -5px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
	}

	/* Dropdowns: open on hover and keyboard focus (CSS), tap on touch (JS). */
	.primary-menu ul {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 99;
		min-width: 260px;
		padding: 10px 0;
		border-top: 4px solid var(--c-accent);
		background: var(--c-white);
		box-shadow: var(--shadow);
		visibility: hidden;
		opacity: 0;
		transform: translateY(8px);
		transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s linear 0.3s;
	}

	.primary-menu ul ul {
		top: -14px;
		left: 100%;
	}

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

	.primary-menu ul li {
		position: relative;
	}

	.primary-menu ul a {
		padding: 10px 22px;
		color: var(--c-body);
		font-size: 0.98rem;
		line-height: 1.35;
	}

	.primary-menu ul a:hover,
	.primary-menu ul a:focus-visible,
	.primary-menu ul .current-menu-item > a {
		background: var(--c-light);
		color: var(--c-graphite);
		box-shadow: inset 4px 0 0 var(--c-accent);
	}
}

/* Mobile menu: full-screen dark panel under the header. */
@media screen and (max-width: 1099.98px) {

	.menu-toggle {
		display: inline-flex;
		position: relative;
	}

	.primary-nav {
		display: none;
	}

	.menu-open .primary-nav {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: var(--header-height, 106px);
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 98;
		padding: 12px var(--gutter) 40px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--c-graphite);
		border-top: 4px solid var(--c-accent);
		--focus: var(--c-accent);
	}

	html.menu-is-open {
		overflow: hidden;
	}

	.primary-menu > li {
		border-bottom: 1px solid var(--c-line-dark);
	}

	.primary-menu a {
		padding: 16px 0;
		color: var(--c-white);
		font-family: var(--f-display);
		font-size: 1.6rem;
		font-weight: 600;
		letter-spacing: 0.03em;
		line-height: 1.15;
		text-transform: uppercase;
	}

	.primary-menu .current-menu-item > a,
	.primary-menu .current_page_item > a {
		color: var(--c-accent);
	}

	.primary-menu ul {
		margin: -6px 0 14px;
		padding-left: 18px;
		border-left: 3px solid var(--c-accent);
	}

	.primary-menu ul a {
		padding: 9px 0;
		color: var(--c-muted-dark);
		font-family: var(--f-body);
		font-size: 1.05rem;
		font-weight: 500;
		letter-spacing: 0;
		text-transform: none;
	}

	.primary-nav__contact {
		display: flex;
		flex-direction: column;
		gap: 14px;
		margin-top: 32px;
	}

	.primary-nav__contact a {
		display: inline-flex;
		align-items: center;
		gap: 12px;
		color: var(--c-white);
		font-size: 1.1rem;
		text-decoration: none;
	}

	.primary-nav__contact .icon {
		color: var(--c-accent);
	}
}

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

	.is-scrolled .site-logo img {
		height: calc(var(--logo-h) * 0.85);
	}

	.top-bar__left,
	#top-email {
		display: none !important;
	}

	.top-bar__inner {
		justify-content: center;
	}

	.header-cta {
		display: none;
	}

	.header-call {
		display: inline-flex;
	}
}

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

	.top-bar__address {
		display: none !important;
	}
}

/* Hamburger icon */
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
	position: absolute;
	left: 12px;
	width: 22px;
	height: 2px;
	background: currentColor;
	transition: transform 0.25s var(--ease), top 0.25s var(--ease), background-color 0.25s;
}

.menu-toggle-bars {
	top: 22px;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
	content: "";
	left: 0;
}

.menu-toggle-bars::before {
	top: -7px;
}

.menu-toggle-bars::after {
	top: 7px;
}

.menu-open .menu-toggle {
	border-color: var(--c-graphite);
	background: var(--c-graphite);
	color: var(--c-white);
}

.menu-open .menu-toggle-bars {
	background: transparent;
}

.menu-open .menu-toggle-bars::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-open .menu-toggle-bars::after {
	top: 0;
	transform: rotate(-45deg);
}

/* Scroll progress: thin bar on the top edge of the screen that fills as
   the page is scrolled (width set by assets/js/theme.js). */
.scroll-progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1000;
	height: 4px;
	pointer-events: none;
}

.admin-bar .scroll-progress {
	top: 32px;
}

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

	.admin-bar .scroll-progress {
		top: 46px;
	}
}

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

	.admin-bar .scroll-progress {
		top: 0;
	}
}

.scroll-progress__bar {
	display: block;
	height: 100%;
	background: var(--c-accent);
	box-shadow: 0 0 6px rgba(243, 189, 28, 0.6);
	transform: scaleX(0);
	transform-origin: left center;
	will-change: transform;
}

/* 6. Home: hero
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(560px, calc(100svh - var(--header-h)), 940px);
	overflow: hidden;
	isolation: isolate;
	background: var(--c-graphite);
	color: var(--c-white);
}

.hero--plain {
	background:
		repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.025) 0 22px, transparent 22px 44px),
		var(--c-graphite);
}

.hero__media,
.hero__slide {
	position: absolute;
	inset: 0;
}

.hero__media {
	z-index: -2;
}

.hero__slide {
	opacity: 0;
	transition: opacity 1.4s ease;
}

.hero__slide.is-active {
	opacity: 1;
}

.hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(20, 22, 24, 0.9) 0%, rgba(20, 22, 24, 0.62) 42%, rgba(20, 22, 24, 0.12) 78%),
		linear-gradient(0deg, rgba(20, 22, 24, 0.85) 0%, rgba(20, 22, 24, 0) 42%);
}

.hero__stripes {
	top: clamp(48px, 10vh, 120px);
	right: var(--gutter);
}

.hero__content {
	position: relative;
	z-index: 2;
	padding-top: clamp(96px, 16vh, 180px);
	padding-bottom: clamp(48px, 8vh, 96px);
}

.hero__title {
	max-width: 13ch;
	margin: 0 0 0.35em;
	color: var(--c-white);
	font-size: clamp(3rem, 7.4vw, 6.4rem);
	line-height: 0.92;
	letter-spacing: 0;
	text-transform: uppercase;
}

.hero__text {
	max-width: 52ch;
	margin-bottom: 2rem;
	color: rgba(255, 255, 255, 0.86);
	font-size: clamp(1.125rem, 1.5vw, 1.35rem);
	line-height: 1.55;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero__call {
	display: none;
}

.hero__bar {
	position: relative;
	z-index: 2;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(20, 22, 24, 0.55);
}

.hero__bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding-top: 18px;
	padding-bottom: 24px;
}

.hero__caption {
	display: grid;
	gap: 2px;
	min-width: 0;
	color: var(--c-white);
	text-decoration: none;
	transition: opacity 0.4s;
}

.hero__caption.is-changing {
	opacity: 0;
}

.hero__caption-title {
	font-family: var(--f-display);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.15;
	text-transform: uppercase;
}

.hero__caption:hover .hero__caption-title {
	text-decoration: underline;
	text-decoration-color: var(--c-accent);
}

.hero__caption-meta {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
}

.hero__caption-meta:empty {
	display: none;
}

.hero__controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hero__counter {
	margin-right: 8px;
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--f-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.1em;
}

.hero__counter-current {
	color: var(--c-white);
}

.hero__progress {
	position: relative;
	width: 72px;
	height: 3px;
	margin-right: 12px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.22);
}

.hero__progress span {
	position: absolute;
	inset: 0;
	background: var(--c-accent);
	transform: scaleX(0);
	transform-origin: left;
}

.hero.is-playing .hero__progress span {
	animation: hero-progress var(--hero-interval, 7s) linear forwards;
}

@keyframes hero-progress {

	to {
		transform: scaleX(1);
	}
}

.hero__icon-play,
.hero.is-paused .hero__icon-pause {
	display: none;
}

.hero.is-paused .hero__icon-play {
	display: block;
}

.road-line--hero {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
}

@media (max-width: 899.98px) {

	.hero__stripes {
		display: none;
	}
}

@media (max-width: 699.98px) {

	.hero {
		min-height: clamp(520px, 82svh, 720px);
	}

	.hero__shade {
		background:
			linear-gradient(0deg, rgba(20, 22, 24, 0.92) 0%, rgba(20, 22, 24, 0.55) 60%, rgba(20, 22, 24, 0.35) 100%);
	}

	.hero__actions .btn {
		flex: 1 1 100%;
	}

	.hero__contact {
		display: none;
	}

	.hero__call {
		display: inline-flex;
	}

	.hero__counter,
	.hero__progress {
		display: none;
	}

	.hero__bar-inner {
		flex-wrap: nowrap;
	}
}

/* 7. Home: introduction, activities, services, machinery, reasons, CTA
   ========================================================================== */

.intro__grid {
	display: grid;
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}

.intro__grid:not(.has-image) .intro__text {
	max-width: 860px;
}

@media (min-width: 1000px) {

	.intro__grid.has-image {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}
}

.intro__text .section-title {
	margin-bottom: 0.6em;
}

.intro__body {
	margin-bottom: 2rem;
	color: var(--c-body);
	font-size: clamp(1.125rem, 1.4vw, 1.25rem);
	line-height: 1.65;
}

.intro__media {
	position: relative;
	margin: 0 18px 18px 0;
}

.intro__media::before {
	content: "";
	position: absolute;
	inset: 18px -18px -18px 18px;
	z-index: -1;
	background:
		repeating-linear-gradient(-45deg, var(--c-accent) 0 10px, transparent 10px 20px);
}

.intro__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0;
	margin: clamp(56px, 7vw, 96px) 0 0;
	border-top: 1px solid var(--c-line);
}

.stats__item {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	padding: 32px 24px 0 0;
}

.stats__item + .stats__item {
	padding-left: 24px;
	border-left: 1px solid var(--c-line);
}

.stats__value {
	margin: 0 0 6px;
	color: var(--c-graphite);
	font-family: var(--f-display);
	font-size: clamp(2.75rem, 5vw, 4.25rem);
	font-weight: 700;
	line-height: 1;
}

.stats__value::after {
	content: "";
	display: block;
	width: 40px;
	height: 4px;
	margin-top: 14px;
	background: var(--c-accent);
}

.stats__label {
	color: var(--c-muted);
	font-size: 1rem;
	font-weight: 500;
}

@media (max-width: 599.98px) {

	.stats__item + .stats__item {
		padding-left: 0;
		border-left: 0;
	}
}

/* Activities (ACF "veikla" fields) */
.activity-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2px;
	background: var(--c-line-dark);
	border: 2px solid var(--c-line-dark);
}

.activity {
	position: relative;
	padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 40px);
	background: var(--c-graphite);
	transition: background-color 0.3s;
}

.activity:hover {
	background: var(--c-asphalt);
}

.activity__number {
	display: block;
	margin-bottom: 28px;
	color: transparent;
	font-family: var(--f-display);
	font-size: 4.5rem;
	font-weight: 700;
	line-height: 0.8;
	-webkit-text-stroke: 1.5px var(--c-accent);
}

.activity__title {
	margin-bottom: 20px;
	font-size: clamp(1.6rem, 2.2vw, 2rem);
	text-transform: uppercase;
}

.activity__body {
	color: var(--c-muted-dark);
	font-size: 1.0625rem;
}

.activity__body p:last-child,
.activity__body ul:last-child {
	margin-bottom: 0;
}

.activity__body ul,
.activity__body ol {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

.activity__body li {
	position: relative;
	padding: 6px 0 6px 26px;
	border-bottom: 1px solid var(--c-line-dark);
}

.activity__body li:last-child {
	border-bottom: 0;
}

.activity__body li::before {
	content: "";
	position: absolute;
	top: 1.05em;
	left: 0;
	width: 12px;
	height: 3px;
	background: var(--c-accent);
}

/* Services (child pages of the chosen Services page) */
.service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: var(--gap);
	margin-top: clamp(40px, 5vw, 64px);
}

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--c-asphalt);
}

.service-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.service-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.service-card:hover .service-card__media img {
	transform: scale(1.05);
}

.service-card__body {
	position: relative;
	flex: 1;
	padding: 22px 56px 24px 22px;
}

.service-card__title {
	margin: 0 0 8px;
	font-size: 1.45rem;
	text-transform: uppercase;
}

.service-card__body p {
	margin: 0;
	font-size: 0.98rem;
}

.service-card__arrow {
	position: absolute;
	top: 24px;
	right: 20px;
	color: var(--c-accent);
	transition: transform 0.3s var(--ease);
}

.service-card:hover .service-card__arrow {
	transform: translateX(4px);
}

/* Machinery */
.machinery {
	padding: 0;
	background: var(--c-concrete);
}

.machinery__grid {
	display: grid;
}

@media (min-width: 1000px) {

	.machinery__grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		min-height: 560px;
	}
}

.machinery__media {
	position: relative;
	min-height: 320px;
	margin: 0;
	overflow: hidden;
}

.machinery__media img,
.machinery__media .image-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.machinery__text {
	align-self: center;
	max-width: 620px;
	padding: clamp(48px, 6vw, 96px) var(--gutter);
}

@media (min-width: 1000px) {

	.machinery__text {
		padding-left: clamp(48px, 6vw, 96px);
	}
}

.machinery__text .section-title {
	margin-bottom: 0.5em;
}

.machinery__text .lead {
	margin-bottom: 2rem;
}

/* Why choose us */
.reason-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1000px) {

	.reason-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.reason-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.reason {
	position: relative;
	padding: clamp(28px, 3vw, 40px);
	border: 1px solid var(--c-line);
	background: var(--c-white);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.reason:hover {
	border-color: var(--c-graphite);
	box-shadow: var(--shadow);
}

.reason__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 24px;
	background: var(--c-accent);
	color: var(--c-graphite);
}

.reason__icon .icon {
	width: 26px;
	height: 26px;
	stroke-width: 2.25;
}

.reason__title {
	margin-bottom: 10px;
	font-size: 1.55rem;
	text-transform: uppercase;
}

.reason__text {
	margin: 0;
	color: var(--c-muted);
}

/* Contact call to action band */
.cta-band {
	padding-block: clamp(48px, 6vw, 80px);
	background:
		repeating-linear-gradient(-55deg, rgba(0, 0, 0, 0.045) 0 16px, transparent 16px 32px),
		var(--c-accent);
	color: var(--c-graphite);
}

.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px 48px;
}

.cta-band__title {
	max-width: 22ch;
	margin-bottom: 0.3em;
	font-size: clamp(2rem, 3.6vw, 3rem);
	line-height: 1;
	text-transform: uppercase;
}

.cta-band__text p {
	max-width: 56ch;
	margin: 0;
	font-size: 1.15rem;
	font-weight: 500;
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
}

.cta-band__phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--f-display);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.cta-band__phone:hover {
	text-decoration: underline;
}

/* 8. Cards and grids (projects, news)
   ========================================================================== */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: var(--gap);
}

@media (min-width: 1100px) {

	.card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.card-grid--featured .is-featured {
		grid-row: span 2;
		grid-column: span 2;
	}
}

@media (min-width: 700px) and (max-width: 1099.98px) {

	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.card-grid--featured .is-featured {
		grid-column: span 2;
	}
}

/* Project card: photo with the title over a dark fade */
.project-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--c-graphite);
	color: var(--c-white);
}

.project-card.is-featured {
	aspect-ratio: auto;
	min-height: 420px;
}

@media (min-width: 700px) and (max-width: 1099.98px) {

	.project-card.is-featured {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}
}

/* Phones: the first project looks like all the others. */
@media (max-width: 699.98px) {

	.project-card.is-featured {
		aspect-ratio: 4 / 3;
		min-height: 0;
	}

	.project-card.is-featured .project-card__title {
		font-size: clamp(1.35rem, 1.8vw, 1.65rem);
	}

	.project-card.is-featured .project-card__excerpt {
		display: none;
	}
}

.project-card__media {
	position: absolute;
	inset: 0;
}

.project-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}

.project-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(20, 22, 24, 0.92) 0%, rgba(20, 22, 24, 0.45) 45%, rgba(20, 22, 24, 0) 75%);
}

.project-card::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	height: 5px;
	background: var(--c-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--ease);
}

.project-card:hover .project-card__media img,
.project-card:focus-within .project-card__media img {
	transform: scale(1.05);
}

.project-card:hover::after,
.project-card:focus-within::after {
	transform: scaleX(1);
}

.project-card__body {
	position: relative;
	z-index: 1;
	padding: clamp(20px, 2.4vw, 32px);
}

.project-card__type {
	margin: 0 0 8px;
	color: var(--c-accent);
	font-family: var(--f-display);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.project-card__title {
	margin: 0;
	color: var(--c-white);
	font-size: clamp(1.35rem, 1.8vw, 1.65rem);
	line-height: 1.05;
	text-transform: uppercase;
}

.project-card.is-featured .project-card__title {
	max-width: 22ch;
	font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.project-card__location {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.95rem;
}

.project-card__location .icon {
	color: var(--c-accent);
}

.project-card__excerpt {
	max-width: 60ch;
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.82);
}

.project-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	color: var(--c-accent);
	font-family: var(--f-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.35s, transform 0.35s var(--ease);
}

.project-card:hover .project-card__more,
.project-card:focus-within .project-card__more {
	opacity: 1;
	transform: none;
}

@media (hover: none) {

	.project-card__more {
		opacity: 1;
		transform: none;
	}
}

/* News card */
.news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--c-line);
	background: var(--c-white);
	transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.news-card:hover,
.news-card:focus-within {
	border-color: var(--c-graphite);
	box-shadow: var(--shadow);
	transform: translateY(-4px);
}

.news-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--c-concrete);
}

.news-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.news-card:hover .news-card__media img {
	transform: scale(1.04);
}

.news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(20px, 2.2vw, 28px);
}

.news-card__date {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	color: var(--c-muted);
	font-size: 0.9rem;
	font-weight: 500;
}

.news-card__date .icon {
	color: var(--c-accent-dark);
}

.news-card__title {
	margin-bottom: 12px;
	font-size: clamp(1.3rem, 1.7vw, 1.5rem);
	line-height: 1.1;
	text-transform: uppercase;
}

.news-card__excerpt {
	color: var(--c-muted);
	font-size: 1rem;
}

.news-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: auto;
	padding-bottom: 3px;
	border-bottom: 3px solid var(--c-accent);
	color: var(--c-graphite);
	font-family: var(--f-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.related .card-grid--news .news-card,
.section--light .news-card {
	background: var(--c-white);
}

/* 9. Internal pages: page header, breadcrumbs, content
   ========================================================================== */

/* Banner height: small (default), medium, large (Customizer → Site-wide
   parts → Page title banners). */
.page-header {
	--ph-min: clamp(150px, 16vw, 210px);
	--ph-min-photo: clamp(220px, 30vh, 320px);
	--ph-pad-top: clamp(28px, 3.5vw, 48px);
	--ph-pad-bottom: clamp(24px, 3vw, 40px);
	--ph-title: clamp(2rem, 3.8vw, 3.1rem);
	--ph-bar: 9px;
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: var(--ph-min);
	overflow: hidden;
	isolation: isolate;
	background:
		repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.025) 0 22px, transparent 22px 44px),
		var(--c-graphite);
	color: var(--c-white);
}

.page-titles-medium .page-header {
	--ph-min: clamp(200px, 24vw, 300px);
	--ph-min-photo: clamp(300px, 44vh, 480px);
	--ph-pad-top: clamp(40px, 5.5vw, 80px);
	--ph-pad-bottom: clamp(32px, 4.5vw, 60px);
	--ph-title: clamp(2.25rem, 4.6vw, 3.9rem);
	--ph-bar: 11px;
}

.page-titles-large .page-header {
	--ph-min: clamp(260px, 34vw, 400px);
	--ph-min-photo: clamp(400px, 62vh, 680px);
	--ph-pad-top: clamp(56px, 8vw, 112px);
	--ph-pad-bottom: clamp(48px, 6vw, 80px);
	--ph-title: clamp(2.5rem, 5.6vw, 4.75rem);
	--ph-bar: 14px;
}

.page-header--large.has-image {
	min-height: var(--ph-min-photo);
}

.page-header__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.page-header__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-header.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(20, 22, 24, 0.88) 0%, rgba(20, 22, 24, 0.5) 60%, rgba(20, 22, 24, 0.25) 100%),
		linear-gradient(0deg, rgba(20, 22, 24, 0.8) 0%, rgba(20, 22, 24, 0) 55%);
}

.page-header__stripes {
	top: 50%;
	right: var(--gutter);
	gap: calc(var(--ph-bar) * 0.85);
	opacity: 0.95;
	transform: translateY(-50%);
}

.page-header__stripes span {
	height: var(--ph-bar);
}

.page-header__stripes span:nth-child(1) {
	width: calc(var(--ph-bar) * 18);
}

.page-header__stripes span:nth-child(2) {
	width: calc(var(--ph-bar) * 14);
	margin-right: calc(var(--ph-bar) * 1.3);
}

.page-header__stripes span:nth-child(3) {
	width: calc(var(--ph-bar) * 10);
	margin-right: calc(var(--ph-bar) * 2.6);
}

.page-header__inner {
	position: relative;
	z-index: 2;
	padding-top: var(--ph-pad-top);
	padding-bottom: var(--ph-pad-bottom);
}

.page-title {
	max-width: 22ch;
	margin: 0;
	color: var(--c-white);
	font-size: var(--ph-title);
	line-height: 0.95;
	text-transform: uppercase;
}

.page-header__subtitle {
	max-width: 62ch;
	margin: 0.7rem 0 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.page-header__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 1.25rem;
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.05rem;
}

.meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.meta-item .icon {
	color: var(--c-accent);
}

.page-header .road-line {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
}

@media (max-width: 899.98px) {

	.page-header__stripes {
		display: none;
	}
}

/* Breadcrumbs (theme, Yoast or Rank Math markup) */
.breadcrumbs {
	margin-bottom: 1.5rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li + li::before {
	content: "/";
	margin: 0 10px;
	color: var(--c-accent);
}

.breadcrumbs a {
	color: var(--c-white);
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
	text-decoration-color: var(--c-accent);
}

.breadcrumbs [aria-current],
.breadcrumbs .breadcrumb_last,
.breadcrumbs .last {
	color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs p {
	margin: 0;
}

/* Post and page content */
.entry-content {
	max-width: 780px;
	margin-right: auto;
	margin-left: auto;
	color: var(--c-body);
	font-size: 1.125rem;
	line-height: 1.75;
}

.entry-content::after {
	content: "";
	display: block;
	clear: both;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.25em;
}

.entry-content > .alignwide {
	width: min(var(--container), 100vw - 2 * var(--gutter));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content > .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.8em;
	text-transform: uppercase;
}

.entry-content h2 {
	font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.entry-content h3 {
	font-size: clamp(1.5rem, 2.2vw, 1.85rem);
}

.entry-content h4 {
	font-size: 1.3rem;
}

.entry-content a {
	color: var(--c-graphite);
	text-decoration-color: var(--c-accent);
}

.entry-content a:hover {
	text-decoration-color: currentColor;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content ul li::marker {
	color: var(--c-accent-dark);
}

.entry-content blockquote {
	padding: 4px 0 4px 28px;
	border-left: 5px solid var(--c-accent);
	color: var(--c-graphite);
	font-size: 1.3rem;
	font-weight: 500;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

/* Linked photos inside paragraphs show two per row (Galleria posts). */
.entry-content p > a > img {
	display: inline-block;
	max-width: calc(50% - 4px);
	margin: 2px;
	vertical-align: top;
	transition: opacity 0.3s;
}

.entry-content p > a:hover > img {
	opacity: 0.85;
}

@media (max-width: 767.98px) {

	.entry-content p > a > img {
		max-width: 100%;
		margin: 0 0 6px;
	}
}

.entry-content table,
.table-scroll table {
	font-size: 1rem;
	line-height: 1.5;
}

.table-scroll {
	max-width: 100%;
	margin-bottom: 1.5em;
	overflow-x: auto;
}

.entry-content th,
.entry-content td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--c-line);
	text-align: left;
	vertical-align: top;
}

.entry-content th,
.entry-content thead td {
	background: var(--c-graphite);
	color: var(--c-white);
	font-family: var(--f-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.entry-content th a {
	color: var(--c-white);
}

.entry-content tbody tr:nth-child(even) td {
	background: var(--c-light);
}

table.nostyle td,
table.nostyle th,
table.nostyle tr:nth-child(even) td {
	border: 0;
	background: none;
}

.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img {
	display: block;
}

.entry-content .wp-block-button__link {
	border-radius: 0;
	background: var(--c-graphite);
	color: var(--c-white);
	font-family: var(--f-display);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.listing-intro {
	margin-bottom: 48px;
}

.post-back {
	max-width: 780px;
	margin: clamp(40px, 5vw, 64px) auto 0;
	padding-top: 28px;
	border-top: 1px solid var(--c-line);
}

.empty-state {
	padding: 48px 0;
	color: var(--c-muted);
	font-size: 1.2rem;
}

/* 10. Contacts and map
   ========================================================================== */

.contacts-top {
	display: grid;
	gap: var(--gap);
	margin-bottom: var(--gap);
}

@media (min-width: 900px) {

	.contacts-top {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	}
}

.contact-block h2 {
	margin-bottom: 14px;
	font-size: 1.3rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.contact-block p {
	margin: 0 0 0.4em;
}

.contact-block a {
	color: var(--c-graphite);
	text-decoration-color: var(--c-accent);
}

.contact-block--company {
	padding: clamp(28px, 3vw, 44px);
	border-left: 6px solid var(--c-accent);
	background: var(--c-light);
	font-size: 1.1rem;
}

.contact-block--company h2 {
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.contact-block--quick {
	display: grid;
	gap: 12px;
	align-content: start;
}

.quick-contact {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 !important;
	padding: 18px 20px;
	border: 1px solid var(--c-line);
	color: var(--c-graphite) !important;
	font-size: 1.15rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.25s;
}

a.quick-contact:hover {
	border-color: var(--c-graphite);
}

.quick-contact .icon {
	width: 46px;
	height: 46px;
	padding: 11px;
	background: var(--c-accent);
	color: var(--c-graphite);
}

.quick-contact__label {
	display: block;
	color: var(--c-muted);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: var(--gap);
	margin-bottom: var(--gap);
}

.contact-person {
	padding: 24px;
	border: 1px solid var(--c-line);
	border-top: 4px solid var(--c-graphite);
}

.contact-person h2 {
	font-size: 1.15rem;
}

.contacts-content {
	max-width: none;
	margin-top: clamp(40px, 5vw, 64px);
}

/* Map with contact card */
.contact-map {
	position: relative;
	background: var(--c-concrete);
}

.contact-map__map,
#map {
	width: 100%;
	height: clamp(420px, 46vw, 560px);
	background: var(--c-concrete);
}

.contact-map__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	pointer-events: none;
}

.contact-card {
	width: 100%;
	max-width: 400px;
	padding: clamp(28px, 3vw, 40px);
	border-top: 5px solid var(--c-accent);
	background: var(--c-white);
	box-shadow: var(--shadow);
	pointer-events: auto;
}

.contact-card__title {
	margin-bottom: 20px;
	font-size: 1.6rem;
	text-transform: uppercase;
}

.contact-list p {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 14px;
	line-height: 1.45;
}

.contact-list .icon {
	margin-top: 1px;
	color: var(--c-accent-dark);
}

.contact-list a {
	color: inherit;
	text-decoration: none;
}

.contact-list a:hover {
	text-decoration: underline;
	text-decoration-color: var(--c-accent);
}

.contact-card .btn {
	width: 100%;
	margin-top: 10px;
}

@media (max-width: 799.98px) {

	.contact-map__map,
	#map {
		height: 320px;
	}

	.contact-map__overlay {
		position: static;
		padding-top: 0;
		padding-bottom: 0;
	}

	.contact-card {
		max-width: none;
		margin: -48px 0 0;
		position: relative;
		z-index: 2;
	}

	.contact-map {
		padding-bottom: var(--section-tight);
	}
}

/* 11. Footer
   ========================================================================== */

.site-footer {
	background: var(--c-graphite);
	color: var(--c-muted-dark);
	font-size: 1rem;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px 48px;
	padding-top: clamp(36px, 4vw, 52px);
	padding-bottom: clamp(28px, 3vw, 40px);
}

@media (min-width: 1100px) {

	.site-footer__grid--4 {
		grid-template-columns: 1.15fr 1.1fr 0.9fr 1.15fr;
	}

	.site-footer__grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.site-footer__grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__grid--1 {
		grid-template-columns: minmax(0, 1fr);
	}
}

.site-footer__name {
	margin-bottom: 8px;
	color: var(--c-white);
	font-family: var(--f-display);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.site-footer__tagline {
	max-width: 32ch;
}

.site-footer__title {
	margin-bottom: 20px;
	color: var(--c-white);
	font-size: 1.15rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.site-footer .contact-list p {
	margin-bottom: 8px;
}

.site-footer__cta p {
	margin-bottom: 14px;
}

.site-footer .contact-list .icon {
	color: var(--c-accent);
}

.site-footer .contact-list strong {
	color: var(--c-white);
	font-weight: 600;
}

.site-footer a {
	color: var(--c-white);
}

.footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: 24px;
}

.footer-menu li {
	margin-bottom: 6px;
	break-inside: avoid;
}

.footer-menu a {
	text-decoration: none;
	transition: color 0.2s;
}

.footer-menu a:hover {
	color: var(--c-accent);
}

.site-footer__cta .btn {
	color: var(--c-graphite);
}

.site-footer__bottom {
	border-top: 1px solid var(--c-line-dark);
	font-size: 0.9rem;
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-footer__bottom p {
	margin: 0;
}

.back-to-top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.back-to-top:hover {
	color: var(--c-accent);
}

/* 12. Search, 404, pagination, forms
   ========================================================================== */

.searchform {
	display: flex;
	width: 100%;
	max-width: 560px;
	margin-bottom: 40px;
}

.searchform .search-field {
	flex: 1;
	min-width: 0;
	height: 56px;
	padding: 0 18px;
	border: 2px solid var(--c-line);
	border-right: 0;
	border-radius: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-size: 1.05rem;
	-webkit-appearance: none;
	appearance: none;
}

.searchform .search-field:focus {
	border-color: var(--c-graphite);
	outline: none;
}

.searchform .search-submit {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	background: var(--c-graphite);
	color: var(--c-white);
	transition: background-color 0.25s, color 0.25s;
}

.searchform .search-submit:hover,
.searchform .search-submit:focus-visible {
	background: var(--c-accent);
	color: var(--c-graphite);
}

.search-layout {
	display: grid;
	gap: 48px;
}

@media (min-width: 1000px) {

	.search-layout:has(.widget-area) {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

.search-results {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--c-line);
}

.search-result {
	padding: 28px 0;
	border-bottom: 1px solid var(--c-line);
}

.search-result__title {
	margin-bottom: 6px;
	font-size: 1.6rem;
	text-transform: uppercase;
}

.search-result__title a {
	text-decoration: none;
}

.search-result__title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--c-accent);
}

.search-result__meta {
	margin-bottom: 8px;
	color: var(--c-muted);
	font-size: 0.95rem;
}

.search-result__excerpt {
	margin: 0;
}

.widget-area .widget {
	margin-bottom: 40px;
}

.widget-title {
	font-size: 1.2rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.error-404 .searchform {
	margin-bottom: 32px;
}

.error-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.pagination {
	margin-top: clamp(40px, 5vw, 64px);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 12px;
	border: 1px solid var(--c-line);
	color: var(--c-graphite);
	font-family: var(--f-display);
	font-size: 1.1rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
	border-color: var(--c-accent);
	background: var(--c-accent);
}

.pagination .page-numbers.current {
	border-color: var(--c-graphite);
	background: var(--c-graphite);
	color: var(--c-white);
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

/* Forms in content (Contact Form 7 and others) */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content input[type="number"],
.entry-content input[type="date"],
.entry-content select,
.entry-content textarea {
	width: 100%;
	max-width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 2px solid var(--c-line);
	border-radius: 0;
	background: var(--c-white);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.2s;
}

.entry-content textarea {
	min-height: 160px;
}

.entry-content input:focus,
.entry-content select:focus,
.entry-content textarea:focus {
	border-color: var(--c-graphite);
	outline: none;
}

.entry-content input[type="submit"],
.entry-content button[type="submit"] {
	min-height: 52px;
	padding: 0.7em 1.8em;
	border: 0;
	border-radius: 0;
	background: var(--c-accent);
	color: var(--c-graphite);
	font-family: var(--f-display);
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s;
}

.entry-content input[type="submit"]:hover,
.entry-content button[type="submit"]:hover {
	background: var(--c-accent-hover);
}

/* 13. Plugin and legacy compatibility
   ========================================================================== */

/* Responsive Menu plugin shows its own menu: hide the theme menu and the
   theme's toggle (class set by assets/js/theme.js). */
.has-plugin-mobile-menu .primary-nav,
.has-plugin-mobile-menu .menu-toggle {
	display: none !important;
}

#click-menu #RMX {
	font-size: 40px !important;
}

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

/* Contact Form 7 */
.wpcf7 label {
	display: block;
	margin-bottom: 4px;
	color: var(--c-graphite);
	font-weight: 600;
}

.wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 0.9rem;
}

.wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 14px 18px;
	border-width: 2px;
}

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

.galleria-container {
	background: rgba(0, 0, 0, 0.85) !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;
}

@media (max-width: 991.98px) {

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

/* Bootstrap 3 grid classes in old post content (Bootstrap itself is no
   longer loaded). */
.entry-content .row {
	display: flex;
	flex-wrap: wrap;
	margin-right: -12px;
	margin-left: -12px;
}

.entry-content [class*="col-xs-"],
.entry-content [class*="col-sm-"],
.entry-content [class*="col-md-"],
.entry-content [class*="col-lg-"] {
	width: 100%;
	padding-right: 12px;
	padding-left: 12px;
}

.entry-content .col-xs-3 { width: 25%; }
.entry-content .col-xs-4 { width: 33.3333%; }
.entry-content .col-xs-6 { width: 50%; }
.entry-content .col-xs-12 { width: 100%; }

@media (min-width: 768px) {

	.entry-content .col-sm-3 { width: 25%; }
	.entry-content .col-sm-4 { width: 33.3333%; }
	.entry-content .col-sm-6 { width: 50%; }
	.entry-content .col-sm-8 { width: 66.6667%; }
	.entry-content .col-sm-9 { width: 75%; }
	.entry-content .col-sm-12 { width: 100%; }
}

@media (min-width: 992px) {

	.entry-content .col-md-3 { width: 25%; }
	.entry-content .col-md-4 { width: 33.3333%; }
	.entry-content .col-md-6 { width: 50%; }
	.entry-content .col-md-8 { width: 66.6667%; }
	.entry-content .col-md-9 { width: 75%; }
	.entry-content .col-md-12 { width: 100%; }
}

@media (min-width: 1200px) {

	.entry-content .col-lg-3 { width: 25%; }
	.entry-content .col-lg-4 { width: 33.3333%; }
	.entry-content .col-lg-6 { width: 50%; }
	.entry-content .col-lg-8 { width: 66.6667%; }
	.entry-content .col-lg-9 { width: 75%; }
	.entry-content .col-lg-12 { width: 100%; }
}

.entry-content .img-responsive {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Decorations switched off (Customizer → Decorations). */
.no-header-pattern .page-header,
.no-header-pattern .hero--plain {
	background: var(--c-graphite);
}

/* Customizer preview: keep the edit (pencil) buttons of full-width parts
   inside the screen. */
.site-footer,
.cta-band {
	position: relative;
}

.site-footer > .customize-partial-edit-shortcut button,
.cta-band > .customize-partial-edit-shortcut button {
	top: 14px;
	left: 14px;
}

/* 14. Motion
   ========================================================================== */

/* Scroll reveal: only when JavaScript runs and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {

	.js [data-reveal] {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	}

	.js [data-reveal].is-revealed {
		opacity: 1;
		transform: none;
	}

	.js .card-grid [data-reveal]:nth-child(3n+2) {
		transition-delay: 0.08s;
	}

	.js .card-grid [data-reveal]:nth-child(3n) {
		transition-delay: 0.16s;
	}

	/* Hero: text rises in on load (not tied to scrolling). */
	.hero__content > * {
		animation: hero-in 1s var(--ease) both;
	}

	.hero__content > :nth-child(2) {
		animation-delay: 0.08s;
	}

	.hero__content > :nth-child(3) {
		animation-delay: 0.16s;
	}

	.hero__content > :nth-child(4) {
		animation-delay: 0.24s;
	}

	.hero__slide.is-active img {
		animation: hero-zoom 9s ease-out both;
	}

	@keyframes hero-in {

		from {
			opacity: 0;
			transform: translateY(24px);
		}
	}

	@keyframes hero-zoom {

		from {
			transform: scale(1.06);
		}
	}
}

/* Customizer preview: parts redrawn live must not wait for scrolling. */
.is-customize-preview [data-reveal] {
	opacity: 1 !important;
	transform: none !important;
}

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

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

/* 15. Print
   ========================================================================== */

@media print {

	.top-bar,
	.main-bar__actions,
	.primary-nav,
	.hero__bar,
	.hero__stripes,
	.page-header__stripes,
	.road-line,
	.cta-band,
	.contact-map__map,
	.site-footer__cta,
	.back-to-top {
		display: none !important;
	}

	.site-header {
		position: static;
	}

	.hero,
	.page-header {
		min-height: 0;
		background: none;
		color: #000;
	}

	.hero__title,
	.page-title {
		color: #000;
	}

	.js [data-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}
}
