/* Top Auto Valcea – Enhancer: font, buttons, header, footer, forms.
 * Scoped to body classes (tav-font / tav-header / tav-footer) or to the
 * plugin's own markup, so switching a module off removes its styling. */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/manrope-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/manrope-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--tav-red: #e30613;
	--tav-red-d: #bf0510;
	--tav-red-soft: #fff1f2;
	--tav-ink: #111318;
	--tav-ink-2: #2b2f37;
	--tav-muted: #5b626e;
	--tav-line: #e3e5ea;
	--tav-field: #cfd3da;
	--tav-bg: #f4f5f7;
	--tav-dark: #0c0d10;
	--tav-dark-2: #16181d;
	--tav-wa: #0f8f47;
	--tav-wa-d: #0b7639;
	--tav-ok: #0f8f47;
	--tav-radius: 14px;
	--tav-shadow-sm: 0 1px 2px rgba(17, 19, 24, .06), 0 2px 8px rgba(17, 19, 24, .05);
	--tav-shadow: 0 2px 6px rgba(17, 19, 24, .06), 0 12px 32px rgba(17, 19, 24, .08);
	--tav-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tavh-h: 76px;
}

/* ---------- Font ---------- */
body.tav-font,
body.tav-font :where(h1, h2, h3, h4, h5, h6, p, a, li, dt, dd, td, th, label, input, select, textarea, button, strong, b, em, small, span, div, blockquote, figcaption, .button, .btn):not(i):not([class*="fa"]):not([class*="icon"]) {
	font-family: var(--tav-font) !important;
}
body.tav-font {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- Icons & buttons ---------- */
.tav-i {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}
.tav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1.5px solid transparent;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.tav-btn:hover {
	transform: translateY(-1px);
}
.tav-btn:focus-visible {
	outline: 3px solid rgba(227, 6, 19, .35);
	outline-offset: 2px;
}
.tav-btn--lg {
	min-height: 56px;
	font-size: 17px;
}
.tav-btn--primary,
.tav-btn--primary:hover,
.tav-btn--primary:focus {
	background: var(--tav-red);
	color: #fff !important;
}
.tav-btn--primary:hover {
	background: var(--tav-red-d);
	box-shadow: 0 8px 20px rgba(227, 6, 19, .28);
}
.tav-btn--wa,
.tav-btn--wa:hover,
.tav-btn--wa:focus {
	background: var(--tav-wa);
	color: #fff !important;
}
.tav-btn--wa:hover {
	background: var(--tav-wa-d);
	box-shadow: 0 8px 20px rgba(15, 143, 71, .28);
}
.tav-btn--ghost,
.tav-btn--ghost:hover,
.tav-btn--ghost:focus {
	background: #fff;
	border-color: var(--tav-field);
	color: var(--tav-ink) !important;
}
.tav-btn--ghost:hover {
	border-color: var(--tav-ink);
}
.tav-btn--light,
.tav-btn--light:hover,
.tav-btn--light:focus {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .22);
	color: #fff !important;
}

/* ---------- Header ---------- */
body.tav-header #header,
body.tav-header .header-above-content {
	display: none !important;
}
body.tav-header .inner-intro {
	height: auto !important;
	min-height: 0 !important;
	padding: 64px 0 !important;
}
@media (max-width: 767px) {
	body.tav-header .inner-intro {
		padding: 36px 0 !important;
	}
}

.tavh {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 9000;
	background: var(--tav-dark);
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.tavh-in {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 1280px;
	height: var(--tavh-h);
	margin: 0 auto;
	padding: 0 20px;
}
.tavh-logo {
	display: flex;
	align-items: center;
	flex: none;
}
.tavh-logo img {
	display: block;
	width: auto;
	height: 56px;
}
.tavh-nav {
	flex: 1;
	min-width: 0;
}
.tavh-menu,
.tavh-sub,
.tavh-mmenu,
.tavh-mmenu .tavh-sub {
	margin: 0;
	padding: 0;
	list-style: none;
}
.tavh-menu {
	display: flex;
	justify-content: center;
	gap: 2px;
}
.tavh-menu > li {
	position: relative;
}
.tavh-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	color: rgba(255, 255, 255, .8) !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
.tavh-menu a:hover,
.tavh-menu a:focus-visible {
	background: rgba(255, 255, 255, .08);
	color: #fff !important;
}
.tavh-menu > li > a[aria-current="page"] {
	color: #fff !important;
	box-shadow: inset 0 -2px 0 var(--tav-red);
	border-radius: 10px 10px 0 0;
}
.tavh-sub {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	padding: 8px !important;
	background: var(--tav-dark-2);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.tavh-menu > li:hover > .tavh-sub,
.tavh-menu > li:focus-within > .tavh-sub {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.tavh-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}
.tavh-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}
.tavh-phone .tav-i {
	width: 36px;
	height: 36px;
	padding: 9px;
	box-sizing: border-box;
	border-radius: 50%;
	background: rgba(227, 6, 19, .16);
	color: #ff4d57;
}
.tavh-cta {
	min-height: 44px;
	padding: 0 18px;
	font-size: 15px;
}
.tavh-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 12px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.tavh-drawer[hidden] {
	display: none !important;
}
.tavh-drawer {
	position: fixed;
	z-index: 99990;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 20px 32px;
	background: var(--tav-dark);
}
.tavh-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--tavh-h);
	margin-bottom: 4px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.tavh-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 12px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.tavh-mmenu a {
	display: block;
	padding: 15px 4px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	color: #fff !important;
	font-size: 19px;
	font-weight: 700;
	text-decoration: none !important;
}
.tavh-mmenu a[aria-current="page"] {
	color: #ff4d57 !important;
}
.tavh-mmenu .tavh-sub {
	position: static;
	min-width: 0;
	padding: 0 0 0 16px !important;
	background: none;
	border: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
}
.tavh-mmenu .tavh-sub a {
	font-size: 16px;
	font-weight: 600;
}
.tavh-drawer__ctas {
	display: grid;
	gap: 10px;
	margin-top: 24px;
}
.tavh-drawer__ctas .tav-btn {
	min-height: 54px;
}
html.tavh-open {
	overflow: hidden;
}

@media (max-width: 1100px) {
	.tavh-phone span {
		display: none;
	}
}
@media (max-width: 1023px) {
	:root {
		--tavh-h: 64px;
	}
	/* Phones/tablets: the header scrolls away with the page (not sticky). */
	.tavh {
		position: relative;
		top: auto;
	}
	.tavh-nav,
	.tavh-cta {
		display: none;
	}
	.tavh-logo img {
		height: 46px;
	}
	.tavh-actions {
		margin-left: auto;
	}
	.tavh-burger {
		display: inline-flex;
	}
}

/* ---------- Footer ---------- */
body.tav-footer #footer,
body.tav-footer .car-top {
	display: none !important;
}
.tavf {
	background: var(--tav-dark);
	color: rgba(255, 255, 255, .72);
	font-size: 15px;
	line-height: 1.6;
}
.tavf-in {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1.3fr 1fr 1.3fr 1.3fr;
	gap: 40px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 20px 40px;
}
.tavf-logo {
	display: block;
	width: auto;
	height: 72px;
	margin-bottom: 14px;
}
.tavf p {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, .72);
}
.tavf-h {
	margin: 0 0 16px !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	letter-spacing: .01em;
	text-transform: none !important;
}
.tavf a {
	color: rgba(255, 255, 255, .85) !important;
	text-decoration: none !important;
}
.tavf a:hover {
	color: #fff !important;
}
.tavf-menu,
.tavf-menu .tavh-sub,
.tavf-contact {
	margin: 0;
	padding: 0;
	list-style: none;
}
.tavf-menu .tavh-sub {
	position: static;
	min-width: 0;
	padding: 0 0 0 12px !important;
	background: none;
	border: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
}
.tavf-menu li {
	margin: 0 0 8px;
}
.tavf-contact li {
	display: flex;
	gap: 10px;
	margin: 0 0 12px;
}
.tavf-contact .tav-i {
	margin-top: 2px;
	color: #ff4d57;
}
.tavf-col--cta .tav-btn {
	width: 100%;
	margin-bottom: 10px;
}
.tavf-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
}
.tavf-bottom {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: 13.5px;
}
.tavf-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}
@media (max-width: 1023px) {
	.tavf-in {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 639px) {
	.tavf-in {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-top: 44px;
	}
}

.tavf-company {
	display: grid;
	gap: 4px;
	color: rgba(255, 255, 255, .6);
}
.tavf-company span:first-child {
	color: rgba(255, 255, 255, .78);
}
.tavf-legal a {
	color: rgba(255, 255, 255, .72) !important;
	text-decoration: underline !important;
	text-decoration-color: rgba(255, 255, 255, .25) !important;
	text-underline-offset: 3px;
}

@media (min-width: 768px) {
	.tavf-bottom {
		flex-wrap: nowrap;
		align-items: center;
	}
	.tavf-legal {
		flex: none;
		justify-content: flex-end;
		margin-left: auto;
	}
}

/* ---------- Legal pages (privacy / cookies) ---------- */
.tav-legal {
	max-width: 820px;
	margin: 0 auto;
	color: #2b2f37;
	font-size: 16.5px;
	line-height: 1.7;
}
.tav-legal h2 {
	margin: 36px 0 12px !important;
	color: #111318 !important;
	font-size: 22px !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	text-transform: none !important;
	scroll-margin-top: 96px;
}
.tav-legal p,
.tav-legal ul {
	margin: 0 0 14px !important;
}
.tav-legal ul {
	padding-left: 22px !important;
}
.tav-legal li {
	margin-bottom: 8px;
	list-style: disc;
}
.tav-legal a {
	color: #bf0510 !important;
	text-decoration: underline !important;
}
.tav-legal__updated {
	color: #5b626e;
	font-size: 14px;
}
.tav-legal__table {
	overflow-x: auto;
	margin: 0 0 16px;
	border: 1px solid #e3e5ea;
	border-radius: 12px;
}
.tav-legal table {
	width: 100%;
	min-width: 620px;
	margin: 0 !important;
	border-collapse: collapse;
	font-size: 15px;
}
.tav-legal th,
.tav-legal td {
	padding: 12px 14px !important;
	border: 0 !important;
	border-bottom: 1px solid #e3e5ea !important;
	text-align: left;
	vertical-align: top;
}
.tav-legal th {
	background: #f4f5f7;
	color: #111318;
	font-weight: 800;
}
.tav-legal tr:last-child td {
	border-bottom: 0 !important;
}

/* ---------- Contact Form 7 (forms rendered with html_class="tav-cf7" or inside the car page) ---------- */
.tav-cf7,
.tavc-lead__form .wpcf7-form {
	color: var(--tav-ink);
}
.tav-cf7 p {
	margin: 0;
}
.tav-cf7 br {
	display: none;
}
.tav-cf7 .tav-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 16px;
}
.tav-cf7 .tav-f--full {
	grid-column: 1 / -1;
}
.tav-cf7 .tav-f > label,
.tav-cf7 .tav-l {
	display: block;
	margin: 0 0 7px;
	color: var(--tav-ink);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.3;
}
.tav-cf7 .wpcf7-form-control-wrap {
	display: block;
}
.tav-cf7 input[type="text"],
.tav-cf7 input[type="tel"],
.tav-cf7 input[type="email"],
.tav-cf7 input[type="number"],
.tav-cf7 select,
.tav-cf7 textarea {
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 14px;
	border: 1.5px solid var(--tav-field) !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: var(--tav-ink) !important;
	font-size: 16px !important;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tav-cf7 select {
	padding-right: 44px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23111318' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	font-weight: 600;
	cursor: pointer;
}
.tav-cf7 select:invalid,
.tav-cf7 select option[value=""] {
	color: #9aa0aa !important;
}
.tav-cf7 select option {
	color: var(--tav-ink);
}
.tav-cf7 textarea {
	height: auto;
	min-height: 92px;
	padding: 12px 14px;
	line-height: 1.5;
	resize: vertical;
}
.tav-cf7 input:focus,
.tav-cf7 select:focus,
.tav-cf7 textarea:focus {
	border-color: var(--tav-red) !important;
	box-shadow: 0 0 0 4px rgba(227, 6, 19, .12) !important;
	outline: none;
}
.tav-cf7 ::placeholder {
	color: #9aa0aa;
	opacity: 1;
}
.tav-cf7 .wpcf7-radio,
.tav-cf7 .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tav-cf7 .wpcf7-list-item {
	margin: 0 !important;
}
.tav-cf7 .wpcf7-radio label,
.tav-cf7 .wpcf7-checkbox label {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}
.tav-cf7 .wpcf7-radio input,
.tav-cf7 .wpcf7-checkbox input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.tav-cf7 .wpcf7-list-item-label {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 18px;
	border: 1.5px solid var(--tav-field);
	border-radius: 12px;
	background: #fff;
	color: var(--tav-ink);
	font-size: 15px;
	font-weight: 700;
	transition: border-color .15s ease, background-color .15s ease;
}
.tav-cf7 .wpcf7-list-item-label::before,
.tav-cf7 .wpcf7-list-item-label::after {
	display: none !important;
}
.tav-cf7 label:hover .wpcf7-list-item-label {
	border-color: var(--tav-ink-2);
}
.tav-cf7 input:checked + .wpcf7-list-item-label {
	border-color: var(--tav-red);
	background: var(--tav-red-soft);
	color: var(--tav-red-d);
}
.tav-cf7 input:focus-visible + .wpcf7-list-item-label {
	outline: 3px solid rgba(227, 6, 19, .3);
	outline-offset: 2px;
}
.tav-cf7 input[type="submit"],
.tav-cf7 .wpcf7-submit {
	box-sizing: border-box;
	width: 100%;
	min-height: 58px;
	margin: 4px 0 0;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--tav-red) !important;
	color: #fff !important;
	font-size: 17px !important;
	font-weight: 800 !important;
	letter-spacing: .01em;
	text-transform: none !important;
	cursor: pointer;
	transition: background-color .15s ease, box-shadow .15s ease;
}
.tav-cf7 .wpcf7-submit:hover {
	background: var(--tav-red-d) !important;
	box-shadow: 0 10px 24px rgba(227, 6, 19, .28);
}
.tav-cf7 .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}
.tav-cf7 .tav-note {
	margin: 12px 0 0;
	color: var(--tav-muted);
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}
.tav-cf7 .tav-note a {
	color: var(--tav-ink-2) !important;
	text-decoration: underline !important;
}
.tav-cf7 .wpcf7-not-valid {
	border-color: var(--tav-red) !important;
}
.tav-cf7 .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: var(--tav-red-d);
	font-size: 13px;
	font-weight: 600;
}
.tav-cf7 .wpcf7-response-output {
	margin: 16px 0 0 !important;
	padding: 12px 14px !important;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
}
.tav-cf7.sent .wpcf7-response-output {
	border-color: var(--tav-ok) !important;
	background: #ecfdf3;
	color: #075e2c;
}
@media (max-width: 639px) {
	.tav-cf7 .tav-form {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tav-btn,
	.tavh-sub {
		transition: none;
	}
	.tav-btn:hover {
		transform: none;
	}
}
