/*
Theme Name: Ervoltas 2026
Template: twentytwentyfive
Description: Lengva UAB „Ervoltas“ svetainės tema.
Version: 1.0.0
Text Domain: ervoltas-2026
*/

html { scroll-behavior: smooth; }
img { height: auto; max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; }

.ev-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .ev-header { top: 32px; }
.ev-header .wp-block-navigation a { text-decoration: none; }
.ev-header .wp-block-navigation__submenu-container { color: var(--wp--preset--color--ink) !important; }
.ev-logo img { display: block; width: 150px; }
.ev-phone a { white-space: nowrap; }

.ev-card { background: var(--wp--preset--color--white); border: 1px solid #e6e6e6; border-radius: 4px; overflow: hidden; height: 100%; }
.ev-card .wp-block-image { margin: 0; }
.ev-card .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ev-card-body { padding: 1.25rem; }
.ev-card h3 a { color: inherit; text-decoration: none; }
.ev-card h3 a:hover { text-decoration: underline; }

.ev-checklist { list-style: none; padding-left: 0; }
.ev-checklist li { padding-left: 1.6em; position: relative; margin-bottom: .45em; }
.ev-checklist li::before { color: var(--wp--preset--color--gold-dark); content: "✓"; font-weight: 700; left: 0; position: absolute; }

.ev-partners img { max-height: 56px; object-fit: contain; width: auto; }
.ev-partners .wp-block-image { margin: 0; }
.ev-partners .wp-block-gallery { align-items: center; justify-content: center; }

.wp-block-gallery .wp-block-image img { aspect-ratio: 5 / 4; object-fit: cover; }
.wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 0; }
.wp-block-details { border-bottom: 1px solid #e6e6e6; padding: .8rem 0; }
.wp-block-details summary { cursor: pointer; font-family: var(--wp--preset--font-family--heading); font-weight: 600; }

.wpcf7 input:not([type=submit]):not([type=hidden]), .wpcf7 textarea { background: #f4f4f4; border: 1px solid #d5d5d5; border-radius: 3px; box-sizing: border-box; font: inherit; padding: .75em 1em; width: 100%; }
.wpcf7 textarea { height: 9em; }
.wpcf7 .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.wpcf7 .form-group.col-lg-12 { grid-column: 1 / -1; }
.wpcf7 input[type=submit] { background: var(--wp--preset--color--gold); border: 0; border-radius: 3px; color: var(--wp--preset--color--ink); cursor: pointer; font-family: var(--wp--preset--font-family--heading); font-weight: 700; padding: .9em 2em; }
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--gold-dark); color: #fff; }
.wpcf7 .ev-consent { font-size: .875rem; grid-column: 1 / -1; margin: 0; }
.wpcf7-not-valid-tip { font-size: .875rem; }

.ev-cta { background: var(--wp--preset--color--gold); }
.ev-cta a:not(.wp-element-button) { color: var(--wp--preset--color--ink); font-weight: 600; }
.ev-cta .wp-element-button { background: var(--wp--preset--color--ink); color: #fff; }

@media (max-width: 781px) {
	.wpcf7 .row { grid-template-columns: 1fr; }
	.ev-logo img { width: 125px; }
	.ev-phone { font-size: .875rem; }
	.admin-bar .ev-header { top: 46px; }
}
