/*
Theme Name: Perfect Auto VYO Child
Description: Personalizările Perfect Auto VYO pentru tema Baskerville.
Template: baskerville
Version: 1.1.0
Requires at least: 6.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: perfect-auto-vyo-child
*/

/* Header and navigation */
.vyo-site-utility,
.vyo-site-header {
	--vyo-header-dark: #141924;
	--vyo-header-ink: #202532;
	--vyo-header-red: #cb182c;
	--vyo-header-line: #e8ebef;
	--vyo-header-hover: #f5f6f8;
	line-height: 1.4;
}

.vyo-header-inner {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.vyo-site-utility {
	background: var(--vyo-header-dark);
	color: #f5f6fa;
	font-size: 13px;
}

.vyo-site-utility__row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
}

.vyo-site-utility a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 7px;
	color: inherit;
	white-space: nowrap;
}

.vyo-site-utility__offer {
	justify-self: start;
	font-weight: 700;
}

.vyo-site-utility .vyo-site-utility__location {
	color: #d7dbe3;
}

.vyo-site-utility a:hover {
	color: #ffc4cc;
}

.vyo-site-utility__phone {
	justify-self: end;
	font-weight: 700;
}

.vyo-site-utility__badge {
	padding: 2px 6px;
	border-radius: 4px;
	background: #fbdde1;
	color: #901222;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.vyo-site-utility__arrow {
	font-size: 15px;
}

.vyo-site-header {
	position: relative;
	z-index: 5;
	border-bottom: 1px solid var(--vyo-header-line);
	background: #fff;
	color: var(--vyo-header-ink);
	font-size: 14px;
}

.vyo-site-header [hidden] {
	display: none;
}

.vyo-site-header__row {
	display: grid;
	grid-template: "brand navigation actions" auto / auto minmax(0, 1fr) auto;
	min-height: 76px;
	align-items: center;
	column-gap: clamp(14px, 1.7vw, 24px);
}

.vyo-site-header__brand {
	display: block;
	grid-area: brand;
}

.vyo-site-header__brand img {
	display: block;
	width: 128px;
	height: auto;
	max-height: 53px;
	object-fit: contain;
}

.vyo-site-header__actions {
	display: flex;
	grid-area: actions;
	align-items: center;
	gap: 8px;
}

.vyo-site-header__navigation {
	grid-area: navigation;
	min-width: 0;
}

.vyo-header-menu,
.vyo-header-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vyo-header-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	column-gap: clamp(10px, 1.15vw, 19px);
	font-size: 13px;
	font-weight: 700;
}

.vyo-header-menu li {
	position: relative;
}

.vyo-header-menu a {
	display: flex;
	min-height: 44px;
	align-items: center;
	gap: 7px;
	padding: 7px 0;
	color: inherit;
}

.vyo-header-menu a:hover,
.vyo-header-menu a[aria-current="page"],
.vyo-header-menu > .current-menu-ancestor > a {
	color: #b61929;
}

.vyo-header-menu .menu-item-has-children > a::after,
.vyo-header-menu .page_item_has_children > a::after {
	width: 6px;
	height: 6px;
	flex: 0 0 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	content: '';
}

.vyo-header-menu .vyo-submenu-open > a::after {
	transform: translateY(1px) rotate(225deg);
}

.vyo-header-menu .vyo-collapsible:not(.vyo-submenu-open) > ul {
	display: none;
}

.vyo-site-header .vyo-site-header__apply {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 14px;
	border-radius: 7px;
	background: var(--vyo-header-red);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}

.vyo-site-header .vyo-site-header__apply:hover {
	background: #a91122;
}

.vyo-site-header__search {
	position: relative;
}

.vyo-site-header__search > summary,
.vyo-site-header__menu-toggle {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--vyo-header-line);
	border-radius: 7px;
	background: #fff;
	color: inherit;
	cursor: pointer;
}

.vyo-site-header__search > summary {
	list-style: none;
}

.vyo-site-header__search > summary::-webkit-details-marker {
	display: none;
}

.vyo-site-header__search > summary:hover,
.vyo-site-header__menu-toggle:hover {
	background: var(--vyo-header-hover);
}

.vyo-site-header__search-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 320px;
	padding: 12px;
	border: 1px solid var(--vyo-header-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 12px 30px #14192424;
}

.vyo-site-header .searchform {
	display: flex;
	align-items: center;
	gap: 6px;
}

.vyo-site-header .searchform label {
	flex: 1;
	min-width: 0;
}

.vyo-site-header .searchform input {
	min-height: 44px;
}

.vyo-site-header .searchform .search-field {
	padding: 8px 10px;
	font-size: 16px;
}

.vyo-site-header__mobile-search {
	display: none;
}

.vyo-site-header__menu-icon,
.vyo-site-header__menu-icon::before,
.vyo-site-header__menu-icon::after {
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.vyo-site-header__menu-icon {
	position: relative;
}

.vyo-site-header__menu-icon::before,
.vyo-site-header__menu-icon::after {
	position: absolute;
	left: 0;
	content: '';
}

.vyo-site-header__menu-icon::before { top: -5px; }
.vyo-site-header__menu-icon::after { top: 5px; }

.vyo-site-header__menu-toggle[aria-expanded="true"] .vyo-site-header__menu-icon {
	background: transparent;
}

.vyo-site-header__menu-toggle[aria-expanded="true"] .vyo-site-header__menu-icon::before {
	top: 0;
	transform: rotate(45deg);
}

.vyo-site-header__menu-toggle[aria-expanded="true"] .vyo-site-header__menu-icon::after {
	top: 0;
	transform: rotate(-45deg);
}

.vyo-site-header :focus-visible,
.vyo-site-utility :focus-visible {
	outline: 2px solid #cb182c;
	outline-offset: 3px;
}

.vyo-site-utility :focus-visible {
	outline-color: #ffc4cc;
	outline-offset: -2px;
}

@media (min-width: 1061px) {
	html {
		scroll-padding-top: 84px;
	}

	.vyo-site-header {
		position: sticky;
		top: 0;
	}

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

	.vyo-header-menu > li > a {
		white-space: nowrap;
	}

	.vyo-header-menu > li > a[aria-current="page"]::before {
		position: absolute;
		inset: auto 0 2px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		content: '';
	}

	.vyo-header-menu li > ul {
		display: none;
	}

	.vyo-header-menu li:hover > ul,
	.vyo-header-menu li:focus-within > ul,
	.vyo-header-menu .vyo-submenu-open > ul {
		display: block;
	}

	.vyo-header-menu > li > ul {
		position: absolute;
		z-index: 1;
		top: 100%;
		left: 0;
		width: min(350px, calc(100vw - 40px));
		max-height: 65vh;
		overflow: auto;
		padding: 8px;
		border: 1px solid var(--vyo-header-line);
		border-radius: 10px;
		background: #fff;
		box-shadow: 0 12px 30px #14192424;
	}

	.vyo-header-menu > li:nth-last-child(-n+3) > ul {
		right: 0;
		left: auto;
	}

	.vyo-header-menu ul a {
		padding-inline: 10px;
		border-radius: 6px;
		font-weight: 400;
	}

	.vyo-header-menu ul a:hover {
		background: var(--vyo-header-hover);
	}

	.vyo-header-menu ul ul {
		padding-inline-start: 14px;
	}
}

@media (max-width: 1060px) {
	.vyo-site-utility__row {
		grid-template-columns: 1fr auto;
	}

	.vyo-site-utility .vyo-site-utility__location,
	.vyo-site-header__search,
	.vyo-site-header__online {
		display: none;
	}

	.vyo-site-header__row {
		grid-template: "brand actions" minmax(66px, auto) "navigation navigation" auto / minmax(0, 1fr) auto;
		column-gap: 10px;
	}

	.vyo-site-header__brand {
		justify-self: start;
	}

	.vyo-site-header__brand img {
		width: 106px;
	}

	.vyo-site-header__navigation {
		padding: 4px 0 14px;
		border-top: 1px solid var(--vyo-header-line);
	}

	.vyo-header-menu {
		display: block;
		font-size: 14px;
	}

	.vyo-header-menu a {
		justify-content: space-between;
		border-bottom: 1px solid var(--vyo-header-line);
	}

	.vyo-header-menu li:not(.vyo-collapsible) > a::after {
		content: none;
	}

	.vyo-header-menu ul {
		padding-inline-start: 14px;
		font-weight: 400;
	}

	.vyo-site-header__mobile-search {
		display: block;
		padding-top: 12px;
	}
}

@media (max-width: 380px) {
	.vyo-header-inner {
		width: calc(100% - 24px);
	}

	.vyo-site-utility {
		font-size: 12px;
	}

	.vyo-site-utility__row,
	.vyo-site-utility a {
		gap: 5px;
	}

	.vyo-site-utility__arrow {
		display: none;
	}

	.vyo-site-header .vyo-site-header__apply {
		padding-inline: 10px;
	}
}

@media (max-width: 1000px) {
	.sidebar {
		display: block;
		float: none;
		width: 100%;
		margin-top: 3%;
	}
}

@media (max-width: 600px) {
	.mobile-hidden {
		display: none;
	}
}

/* Page content and forms */
@media (min-width: 601px) {
	.post-header,
	.single .post-content {
		padding: 3% 10%;
	}
}

.post .post-header::before,
.page .post-header::before,
.post .post-header::after,
.page .post-header::after {
	content: none;
}

small {
	font-size: 75%;
}

.post-content,
.post-content label,
.textwidget label,
.textwidget input,
.textwidget textarea {
	font-family: 'Roboto', sans-serif;
	-webkit-font-smoothing: antialiased;
}

.textwidget label {
	font-size: 1rem;
	font-weight: 700;
}

.post-content input[type="text"],
.post-content input[type="email"],
.post-content input[type="tel"],
.post-content input[type="url"],
.post-content input[type="password"],
.post-content textarea,
.textwidget input:not([type="submit"]),
.textwidget textarea,
select {
	padding: 10px 12px;
}

select {
	width: 100%;
	border: 2px solid #eee;
	border-radius: 3px;
	background: #fdfdfd url('img/select-arrows.svg') no-repeat 98% 50% / auto 100%;
	color: #333;
	font-size: 0.85em;
	-webkit-appearance: none;
	appearance: none;
}

label span,
span.red {
	color: red;
	font-weight: 700;
}

.uppercase {
	font-weight: 700;
	text-transform: uppercase;
}

.post-content textarea,
.textwidget textarea {
	height: 80px;
	line-height: 140%;
}

.post-content input[type="submit"],
.post-content input[type="reset"],
.post-content input[type="button"],
.textwidget input[type="submit"] {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.textwidget input[type="submit"] {
	width: 100%;
}

.widget-content .wpcf7 p + p {
	margin-top: 0.2em;
}

span.wpcf7-list-item-label {
	color: #767676;
}

span.wpcf7-list-item {
	margin: 0;
}

.textwidget input[type="checkbox"],
.wpcf7-checkbox {
	width: auto;
	-webkit-appearance: checkbox;
}

/* Footer and cookie notice */
.widget-title {
	font-size: 1.2em;
}

.footer .widget-content p {
	margin-bottom: 10px;
	line-height: 160%;
}

.footer .widget-content h3 {
	margin-bottom: 10px;
	font-size: 22px;
	font-weight: 700;
}

@media (max-width: 800px) {
	.footer .row {
		margin-top: 0;
	}

	.footer .one-third {
		width: 100%;
	}

	.row .one-third {
		float: none;
		margin-left: 0;
	}

	.footer .one-third:first-child {
		margin-top: 0;
	}

	.footer .one-third + .one-third {
		margin-top: 2%;
	}
}

@media (max-width: 700px) {
	.row .mobile-one-whole {
		float: left;
		width: 100%;
	}
}

@media (max-width: 600px) {
	.footer .one-third + .one-third {
		margin-top: 40px;
	}
}

.btn.btn-primary {
	display: inline-block;
	margin-left: 5px;
	padding: 5px 20px;
	background: #13c4a5;
	color: #fff;
	font-weight: 700;
}

.cookies-warn {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10;
	display: none;
	padding: 8px;
	background: #1d1d1d;
	color: #fff;
	font-size: 13px;
	text-align: center;
}

@font-face {
	font-family: 'vyo';
	src: url('images/fonts/vyo.eot');
	src: url('images/fonts/vyo.eot?#iefix') format('embedded-opentype'),
		url('images/fonts/vyo.woff2') format('woff2'),
		url('images/fonts/vyo.woff') format('woff'),
		url('images/fonts/vyo.ttf') format('truetype'),
		url('images/fonts/vyo.svg#vyo') format('svg');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

[class^="icon-"]::before,
[class*=" icon-"]::before {
	display: inline-block;
	width: 1em;
	margin: 0 0.2em;
	font-family: 'vyo';
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	line-height: 1;
	text-align: center;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.icon-phone-squared::before {
	content: '\f098';
}
