/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 3.3.2
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ==========================================================================
   Mobile Tyre & Recovery UK: site chrome (header, footer, floating WhatsApp
   button, phone call bar, tyre-size finder). Redesign of 2026-10-22:
   white page, black bands, one yellow action colour.
   Markup: template-parts/header.php, template-parts/footer.php and the
   inline script in functions.php. Colours follow the kit's global variables.
   ========================================================================== */
body {
	--mtr-black: #000000;
	--mtr-yellow: var(--amber, #FFD400);
	--mtr-yellow-dark: var(--amber-dark, #F0C800);
	--mtr-chalk: var(--mist, #F1F2F0);
	--mtr-line: var(--line, #C9CDD2);
	--mtr-green: #25D366;
	--mtr-green-dark: #1EBE5A;
	--mtr-bar-height: 4.5rem;
}

/* --- Header ------------------------------------------------------------- */
.site-header.mtr-header {
	display: block;
	max-width: none;
	width: auto;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 1000;
	background: #fff;
	color: var(--mtr-black);
	box-shadow: inset 0 -1px 0 var(--mtr-line);
}
.site-header.mtr-header .header-inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 1120px;
	min-height: 4rem;
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
}
.site-header.mtr-header .site-branding {
	display: flex;
	flex: 0 0 auto;
}
.site-header.mtr-header .site-title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.site-header.mtr-header .site-title a,
.site-header.mtr-header .custom-logo-link {
	color: var(--mtr-black);
	text-decoration: none;
}
.site-header.mtr-header .site-title a:hover,
.site-header.mtr-header .site-title a:focus {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.site-header.mtr-header .custom-logo-link img {
	display: block;
	width: auto;
	max-height: 2.75rem;
}
.site-header.mtr-header .site-description { display: none; }

/* Desktop menu (shown from 1024px). */
.site-header.mtr-header .site-navigation {
	display: none;
	flex: 0 1 auto;
	min-width: 0;
	align-items: center;
	margin: 0 auto;
}
.site-header.mtr-header .site-navigation ul.menu {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.125rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-header.mtr-header .site-navigation ul.menu li a {
	display: block;
	padding: 0.5rem 0.5rem;
	color: var(--mtr-black);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}
.site-header.mtr-header .site-navigation ul.menu li a:hover,
.site-header.mtr-header .site-navigation ul.menu li a:focus {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.site-header.mtr-header .site-navigation ul.menu li.current-menu-item > a,
.site-header.mtr-header .site-navigation ul.menu li.current-menu-ancestor > a {
	font-weight: 700;
	box-shadow: inset 0 -3px 0 var(--mtr-yellow);
}

/* Phone link + mobile menu toggle. */
.mtr-header-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.75rem;
}
.mtr-header-phone {
	display: none;
	align-items: center;
	gap: 0.5rem;
	color: var(--mtr-black);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
}
.mtr-header-phone:hover,
.mtr-header-phone:focus {
	color: var(--mtr-black);
	text-decoration: underline;
	text-underline-offset: 4px;
}
.mtr-icon {
	width: 1.25em;
	height: 1.25em;
	flex: 0 0 auto;
	fill: currentColor;
}
.site-header.mtr-header .site-navigation-toggle-holder {
	display: flex;
	align-items: center;
	padding: 0;
}
.site-header.mtr-header .site-navigation-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	background: #fff;
	color: var(--mtr-black);
	border: 1.5px solid var(--mtr-black);
	border-radius: 0.5rem;
	cursor: pointer;
}
.site-header.mtr-header .site-navigation-toggle:hover,
.site-header.mtr-header .site-navigation-toggle:focus-visible {
	background: var(--mtr-black);
	color: #fff;
}
.site-header.mtr-header a:focus-visible,
.site-header.mtr-header button:focus-visible,
.mtr-mobile-bar a:focus-visible,
.mtr-wa-float:focus-visible,
.site-footer.mtr-footer a:focus-visible {
	outline: 3px solid var(--mtr-yellow);
	outline-offset: 3px;
}

/* Mobile dropdown (parent JS toggles .elementor-active on the holder). */
.site-header.mtr-header .site-navigation-dropdown {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	margin: 0;
	z-index: 10000;
}
.site-header.mtr-header .site-navigation-dropdown ul.menu {
	position: absolute;
	width: 100%;
	margin: 0;
	padding: 0.25rem 0 0.5rem;
	list-style: none;
	background: #fff;
	box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16), inset 0 1px 0 var(--mtr-line);
}
.site-header.mtr-header .site-navigation-dropdown ul.menu li a {
	display: block;
	padding: 0.9rem 1.25rem;
	background: transparent;
	color: var(--mtr-black);
	font-weight: 600;
	text-decoration: none;
	box-shadow: inset 0 -1px 0 var(--mtr-line);
}
.site-header.mtr-header .site-navigation-dropdown ul.menu li a:hover,
.site-header.mtr-header .site-navigation-dropdown ul.menu li a:focus,
.site-header.mtr-header .site-navigation-dropdown ul.menu li.current-menu-item > a {
	background: var(--mtr-chalk);
	color: var(--mtr-black);
}

/* --- Footer ------------------------------------------------------------- */
.site-footer.mtr-footer {
	position: relative;
	max-width: none;
	width: auto;
	margin: 0;
	padding: 2.5rem 1.25rem 1.5rem;
	background: var(--mtr-black);
	color: var(--mtr-line);
}
.site-footer.mtr-footer .footer-inner {
	display: block;
	max-width: 1120px;
	margin: 0 auto;
}
.mtr-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
.site-footer.mtr-footer p {
	margin: 0 0 0.5rem;
	color: inherit;
	font-size: 0.95rem;
	line-height: 1.6;
}
.site-footer.mtr-footer a {
	color: var(--mtr-line);
	text-decoration: none;
}
.site-footer.mtr-footer a:hover,
.site-footer.mtr-footer a:focus {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.site-footer.mtr-footer .mtr-footer-name {
	margin-bottom: 0.25rem;
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.25;
}
.site-footer.mtr-footer .mtr-footer-name a { color: #fff; }
.site-footer.mtr-footer .mtr-footer-tagline { max-width: 36ch; }
.site-footer.mtr-footer .mtr-footer-phone {
	display: inline-block;
	margin: 0.75rem 0 0.25rem;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.site-footer.mtr-footer .mtr-footer-hours { margin-bottom: 0.75rem; }
.site-footer.mtr-footer .mtr-footer-email { display: inline-block; }
.site-footer.mtr-footer .footer-heading {
	margin: 0 0 0.75rem;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}
.mtr-footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.mtr-footer-col li {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
}
.mtr-footer-placeholder { color: #8A9099; }
/* Thirteen towns and counting: two columns in the Areas group. */
.mtr-footer-areas ul {
	columns: 2;
	column-gap: 1.5rem;
}
.mtr-footer-areas li {
	break-inside: avoid;
}
.mtr-footer-areas li:last-child {
	column-span: all;
	margin-top: 0.25rem;
}
.mtr-footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 0.5rem 1.5rem;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #333333;
}
.site-footer.mtr-footer .mtr-footer-bottom p {
	margin: 0;
	font-size: 0.85rem;
	color: inherit;
}
.mtr-footer-gap { margin-left: 1rem; }

/* --- Floating WhatsApp (tablet/desktop) + phone call bar ---------------- */
.mtr-wa-float { display: none; }
.mtr-mobile-bar { display: none; }

@media (max-width: 767px) {
	body { padding-bottom: calc(var(--mtr-bar-height) + env(safe-area-inset-bottom, 0px)); }
	.site-header.mtr-header .site-title {
		font-size: 1rem;
		line-height: 1.15;
		white-space: normal;
		max-width: 12rem;
	}
	.mtr-mobile-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		display: flex;
		padding: 0.6rem 0.75rem;
		padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
		background: #fff;
		box-shadow: inset 0 1px 0 var(--mtr-line);
	}
	body.mtr-hero-visible .mtr-mobile-bar { display: none; }
	.mtr-mobile-bar a {
		display: flex;
		flex: 1 1 50%;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		min-height: 3.25rem;
		color: var(--mtr-black);
		font-size: 1.0625rem;
		font-weight: 700;
		line-height: 1;
		text-decoration: none;
	}
	.mtr-mobile-bar .mtr-icon {
		width: 1.35rem;
		height: 1.35rem;
	}
	.mtr-mobile-call {
		background: var(--mtr-yellow);
		border-radius: 0.5rem 0 0 0.5rem;
	}
	.mtr-mobile-call:hover,
	.mtr-mobile-call:focus {
		background: var(--mtr-yellow-dark);
		color: var(--mtr-black);
	}
	.mtr-mobile-wa {
		background: var(--mtr-green);
		border-radius: 0 0.5rem 0.5rem 0;
	}
	.mtr-mobile-wa:hover,
	.mtr-mobile-wa:focus {
		background: var(--mtr-green-dark);
		color: var(--mtr-black);
	}
}

@media (min-width: 768px) {
	.site-header.mtr-header {
		position: sticky;
		top: 0;
	}
	.admin-bar .site-header.mtr-header { top: 32px; }
	.mtr-header-phone { display: inline-flex; }
	.site-footer.mtr-footer { padding: 3.5rem 1.25rem 2rem; }
	.mtr-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem 2rem;
	}
	.mtr-footer-bottom {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		margin-top: 2.75rem;
	}
	.mtr-wa-float {
		position: fixed;
		right: 1.25rem;
		bottom: 1.25rem;
		z-index: 1001;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 3.5rem;
		height: 3.5rem;
		border-radius: 50%;
		background: var(--mtr-green);
		color: var(--mtr-black);
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
	}
	.mtr-wa-float .mtr-icon {
		width: 1.75rem;
		height: 1.75rem;
	}
	.mtr-wa-float:hover,
	.mtr-wa-float:focus {
		background: var(--mtr-green-dark);
		color: var(--mtr-black);
	}
}
@media (min-width: 768px) and (max-width: 782px) {
	.admin-bar .site-header.mtr-header { top: 46px; }
}

@media (min-width: 1200px) {
	.site-header.mtr-header .site-navigation { display: flex; }
	.site-header.mtr-header .site-navigation-toggle-holder,
	.site-header.mtr-header .site-navigation-dropdown { display: none; }
}
@media (min-width: 1025px) {
	.mtr-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* --- Tyre-size finder (markup injected into .mt-finder by functions.php) -- */
.mtr-finder {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	margin: 0;
}
.mtr-finder-fields {
	display: flex;
	gap: 0.75rem;
}
.mtr-finder-field {
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	flex-direction: column;
	gap: 0.375rem;
	color: var(--mtr-line);
	font-size: 0.875rem;
	font-weight: 600;
}
.mtr-finder-field input {
	width: 100%;
	box-sizing: border-box;
	height: 3.25rem;
	margin: 0;
	padding: 0 0.875rem;
	border: 2px solid #fff;
	border-radius: 0.5rem;
	background: var(--mtr-black);
	color: #fff;
	font-family: inherit;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1;
}
.mtr-finder-field input:focus-visible {
	outline: 3px solid var(--mtr-yellow);
	outline-offset: 2px;
}
.mtr-finder-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	width: 100%;
	min-height: 3.25rem;
	padding: 0.75rem 1.375rem;
	border: 0;
	border-radius: 0.5rem;
	background: var(--mtr-green);
	color: var(--mtr-black);
	font-family: inherit;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.mtr-finder-submit .mtr-icon {
	width: 1.375rem;
	height: 1.375rem;
}
.mtr-finder-submit:hover,
.mtr-finder-submit:focus {
	background: var(--mtr-green-dark);
	color: var(--mtr-black);
}
.mtr-finder-submit:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* --- Breadcrumbs (Rank Math, printed by header.php on inner pages) --------- */
.mtr-crumbs {
	background: #fff;
	box-shadow: inset 0 -1px 0 var(--mtr-line);
}
.mtr-crumbs-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #5A5F66;
}
.mtr-crumbs .rank-math-breadcrumb p {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	align-items: center;
}
.mtr-crumbs .rank-math-breadcrumb a {
	color: #5A5F66;
	text-decoration: none;
}
.mtr-crumbs .rank-math-breadcrumb a:hover,
.mtr-crumbs .rank-math-breadcrumb a:focus {
	color: var(--mtr-black);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.mtr-crumbs .rank-math-breadcrumb .separator { color: var(--mtr-line); }
.mtr-crumbs .rank-math-breadcrumb .last { color: var(--mtr-black); font-weight: 600; }

/* --- 404 page (template-parts/404.php) ------------------------------------ */
.mtr-404 {
	max-width: none;
	width: auto;
	margin: 0;
	padding: 4rem 1.25rem 5rem;
	background: #fff;
	color: #222;
}
.mtr-404-inner {
	max-width: 40rem;
	margin: 0 auto;
}
.mtr-404-code {
	margin: 0 0 0.5rem;
	color: var(--mtr-yellow);
	font-size: 5rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}
.mtr-404-title {
	margin: 0 0 1rem;
	color: var(--mtr-black);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.mtr-404-text {
	margin: 0 0 1.5rem;
	max-width: 36rem;
	font-size: 1.125rem;
	line-height: 1.6;
}
.mtr-404-call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	min-height: 3.25rem;
	padding: 0.75rem 1.375rem;
	border-radius: 0.5rem;
	background: var(--mtr-yellow);
	color: var(--mtr-black);
	font-size: 1.0625rem;
	font-weight: 700;
	text-decoration: none;
}
.mtr-404-call:hover,
.mtr-404-call:focus {
	background: var(--mtr-yellow-dark);
	color: var(--mtr-black);
}
.mtr-404-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}
.mtr-404-links a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.5rem 1.125rem;
	border: 1.5px solid var(--mtr-black);
	border-radius: 0.5rem;
	color: var(--mtr-black);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}
.mtr-404-links a:hover,
.mtr-404-links a:focus {
	background: var(--mtr-black);
	color: #fff;
}
@media (max-width: 767px) {
	.mtr-404 { padding: 2.5rem 1.25rem 3.5rem; }
	.mtr-404-code { font-size: 3.5rem; }
	.mtr-404-title { font-size: 1.75rem; }
	.mtr-404-call { width: 100%; }
}

/* --- Page-level polish ---------------------------------------------------- */
.mt-section-dark a,
.mt-section-dark a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.mt-band-yellow a { color: var(--mtr-black); }
.elementor a:focus-visible,
.elementor button:focus-visible,
.elementor summary:focus-visible {
	outline: 3px solid var(--mtr-black);
	outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
	.mtr-header *,
	.mtr-footer *,
	.mtr-mobile-bar *,
	.mtr-wa-float { transition: none !important; }
}

/* --- Cookie consent banner (markup + script in functions.php) ------------- */
.mtr-consent {
	position: fixed;
	left: 0.75rem;
	right: 0.75rem;
	bottom: calc(var(--mtr-bar-height) + env(safe-area-inset-bottom, 0px) + 0.75rem);
	z-index: 1002;
	padding: 1rem 1.125rem 1.125rem;
	background: #fff;
	color: var(--mtr-black);
	border: 1.5px solid var(--mtr-black);
	border-radius: 0.75rem;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	transition: bottom 0.2s ease;
}
.mtr-consent[hidden] { display: none; }
.mtr-consent p {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.5;
}
.mtr-consent-title {
	font-size: 1.0625rem;
	font-weight: 700;
}
.mtr-consent-text a {
	color: var(--mtr-black);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.mtr-consent-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}
.mtr-consent-actions button {
	flex: 1 1 50%;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border: 1.5px solid var(--mtr-black);
	border-radius: 0.5rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}
.mtr-consent-accept {
	background: var(--mtr-yellow);
	color: var(--mtr-black);
}
.mtr-consent-accept:hover,
.mtr-consent-accept:focus { background: var(--mtr-yellow-dark); }
.mtr-consent-reject {
	background: #fff;
	color: var(--mtr-black);
}
.mtr-consent-reject:hover,
.mtr-consent-reject:focus {
	background: var(--mtr-black);
	color: #fff;
}
.mtr-consent button:focus-visible {
	outline: 3px solid var(--mtr-black);
	outline-offset: 2px;
}
@media (max-width: 767px) {
	body.mtr-hero-visible .mtr-consent { bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem); }
}
@media (min-width: 768px) {
	.mtr-consent {
		left: 1.25rem;
		right: auto;
		bottom: 1.25rem;
		width: 24rem;
		max-width: calc(100vw - 2.5rem);
	}
}

/* --- Plain WordPress pages (privacy policy; anything not built in Elementor) */
body.page:not(.elementor-page) main.site-main {
	max-width: 46rem;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
	color: var(--mtr-black);
	font-size: 1.0625rem;
	line-height: 1.65;
}
body.page:not(.elementor-page) main.site-main .page-header {
	margin: 0 0 1.5rem;
	padding: 0;
}
body.page:not(.elementor-page) main.site-main .entry-title {
	margin: 0;
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
}
body.page:not(.elementor-page) main.site-main h2 {
	margin: 2.25rem 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}
body.page:not(.elementor-page) main.site-main h3 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 700;
}
body.page:not(.elementor-page) main.site-main p,
body.page:not(.elementor-page) main.site-main ul,
body.page:not(.elementor-page) main.site-main ol { margin: 0 0 1rem; }
body.page:not(.elementor-page) main.site-main ul,
body.page:not(.elementor-page) main.site-main ol { padding-left: 1.25rem; }
body.page:not(.elementor-page) main.site-main li { margin-bottom: 0.375rem; }
body.page:not(.elementor-page) main.site-main a {
	color: var(--mtr-black);
	text-decoration: underline;
	text-underline-offset: 3px;
}
body.page:not(.elementor-page) main.site-main table {
	width: 100%;
	margin: 0 0 1.25rem;
	border-collapse: collapse;
	font-size: 0.9375rem;
}
body.page:not(.elementor-page) main.site-main th,
body.page:not(.elementor-page) main.site-main td {
	padding: 0.5rem 0.75rem 0.5rem 0;
	border-bottom: 1px solid var(--mtr-line);
	text-align: left;
	vertical-align: top;
}
body.page:not(.elementor-page) main.site-main th { font-weight: 700; }
.mtr-updated {
	color: var(--slate, #5A5F66);
	font-size: 0.9375rem;
}
@media (max-width: 767px) {
	body.page:not(.elementor-page) main.site-main table { display: block; overflow-x: auto; }
}
