/*!
Theme Name: EBRD
Theme URI: https://1010.lt
Author: Adeo Web
Author URI: https://www.adeoweb.com
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ebrd
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

EBRD is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*
 * Active page in the primary nav (WordPress adds .current-menu-item /
 * .current-menu-ancestor to the li).
 */
.navbar-nav .current-menu-item > a.nav-link,
.navbar-nav .current-menu-ancestor > a.nav-link,
.tkv-footer-nav .current-menu-item > a.nav-link,
.tkv-footer-nav .current-menu-ancestor > a.nav-link {
	color: #10877f;
}

/*
 * Footer: on desktop the nav links sit centered between the logo (left) and
 * the "Supported by the EU" block (right); on mobile they stay stacked and
 * centered as before.
 */
.tkv-footer .tkv-footer-logo .tkv-logo-text {
	text-align: left;
}

@media (min-width: 768px) {
	.tkv-footer .tkv-footer-main {
		flex-grow: 1;
	}
	.tkv-footer .tkv-footer-logo {
		flex-shrink: 0;
	}
	.tkv-footer .tkv-footer-nav {
		flex-grow: 1;
		flex-shrink: 1;
	}
	.tkv-footer .tkv-footer-eu-text,
	.tkv-footer .tkv-footer-eu-logo {
		flex-shrink: 0;
	}
}

/*
 * Internal pages hero (FAQ, About, Contact …) — same gradient + bg.jpg as the
 * homepage .tkv-hero, centered heading band. Use on the section element:
 * <section class="bg-img-start tkv-hero-inner">
 */
.tkv-hero-inner {
	position: relative;
	overflow: hidden;
	background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url("assets/img/bg.jpg") lightgray 50%/cover no-repeat;
	background-position-y: 28%;
}

/*
 * Linked facility card title ([gms_cards] links the h4 to facility_url — the
 * static build had a plain h4, so theme.min.css has no rule for the anchor).
 * Keep the dist heading color; hover matches the Front .text-inherit hover.
 */
.tkv-country-card .card-title a {
	color: inherit;
	text-decoration: none;
}

.tkv-country-card .card-title a:hover,
.tkv-country-card .card-title a:focus {
	color: #0f7f77;
}
/*
 * WPForms (Contact us): swap the plugin default blue (#066aab) for the theme
 * primary and size the submit button like .btn-primary. WPForms prints its
 * CSS vars on #wpforms-<id> (ID specificity, loaded after this file), hence
 * !important on the custom properties. Input focus borders also read
 * --wpforms-button-background-color, so they turn teal too. Hover needs no
 * rule: WPForms darkens the bg with 20% black → ≈#0f7f77, which matches the
 * theme's .btn-primary hover.
 */
.wpforms-container {
	--wpforms-button-background-color: #139F95 !important;
	--wpforms-button-border-color: #139F95 !important;
	--wpforms-page-break-color: #139F95 !important;
	--wpforms-button-border-radius: 0.3125rem !important;
	--wpforms-button-size-font-size: 1rem !important;
	--wpforms-button-size-height: 45px !important;
	--wpforms-button-size-padding-h: 1.5rem !important;
}

@media (min-width: 992px) {
	.wpforms-container {
		--wpforms-button-size-height: 48px !important;
		--wpforms-button-size-padding-h: 1.75rem !important;
	}
}

/* .btn-primary is font-weight 400; WPForms hardcodes 500 after this file. */
div.wpforms-container-full button[type=submit],
div.wpforms-container-full .wpforms-page-button {
	font-weight: 400 !important;
}

/* Anchor target of the header search button: keep the section clear of the fixed navbar when scrolled to. */
#tkv-select-country {
	scroll-margin-top: calc(var(--tkv-header-h, 80px) + 1rem);
}
