/*
  Maty One Car Solution LTD — styles
  Notes:
  - Pure CSS, no build step
  - Organized by: tokens → base → layout → components → forms → utilities
*/

/* =========================
   Design tokens
   ========================= */

:root {
	/* More traditional, UK-friendly palette */
	--bg: #f6f7f9; /* clean light base */
	--panel: #ffffff;
	--panel2: #ffffff;
	--text: #16202a;
	--muted: #4b5a68;
	--brand: #0b5cab;
	--brand2: #083d73;
	--ok: #1f7a3a;
	--danger: #b3261e;
	--border: #d7dde3;
	--shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
	--radius: 10px;
}

/* =========================
   Base / reset
   ========================= */

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	font-family: "Segoe UI", Tahoma, Arial, sans-serif;
	color: var(--text);
	background:
		linear-gradient(0deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.70)),
		repeating-linear-gradient(
			135deg,
			rgba(11, 92, 171, 0.07),
			rgba(11, 92, 171, 0.07) 6px,
			rgba(11, 92, 171, 0.00) 6px,
			rgba(11, 92, 171, 0.00) 18px
		),
		var(--bg);
	line-height: 1.45;
}

a {
	color: inherit;
}

/* =========================
   Layout
   ========================= */

.container {
	width: min(1100px, 92vw);
	margin: 0 auto;
}

section {
	padding: 22px 0;
}

/* =========================
   Top bar (classic)
   ========================= */

.topbar {
	background: var(--brand2);
	color: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.topbarInner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	font-size: 12.5px;
}

@media (max-width: 760px) {
	.topbarInner {
		flex-direction: column;
		align-items: flex-start;
	}
}

.topbarLinks a {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

.topbarLinks a:hover {
	text-decoration: underline;
}

.topbarSep {
	margin: 0 8px;
	opacity: 0.75;
}

/* Sticky header */
header {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(6px);
	background: rgba(245, 246, 248, 0.92);
	border-bottom: 1px solid var(--border);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
}

.navlinks {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.navlinks a {
	text-decoration: none;
	font-size: 13px;
	color: var(--muted);
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid transparent;
}

.navlinks a:hover {
	color: var(--text);
	border-color: var(--border);
	background: rgba(0, 0, 0, 0.03);
}

/* Make the header CTA clearly readable (contrast) */
.navlinks a.cta {
	background: var(--brand);
	border-color: rgba(0, 0, 0, 0.12);
	color: #fff;
	font-weight: 800;
}

.navlinks a.cta:hover {
	background: var(--brand2);
	border-color: rgba(0, 0, 0, 0.18);
	color: #fff;
}

/* Hero grid */
.hero {
	padding: 26px 0 18px;
}

.heroGrid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 22px;
	align-items: stretch;
}

@media (max-width: 900px) {
	.heroGrid {
		grid-template-columns: 1fr;
	}
}

.grid3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

@media (max-width: 900px) {
	.grid3 {
		grid-template-columns: 1fr;
	}
}

/* Services (image cards) */
.servicesGrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

@media (max-width: 980px) {
	.servicesGrid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 650px) {
	.servicesGrid {
		grid-template-columns: 1fr;
	}
}

.serviceCard {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--panel);
	box-shadow: var(--shadow);
}

.serviceCard img {
	display: block;
	width: 100%;
	height: 145px;
	object-fit: cover;
	background: #e9eef4;
}

.serviceBody {
	padding: 12px 14px;
}

.serviceBody h3 {
	margin: 0 0 6px;
	font-size: 15px;
}

.serviceBody p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

/* Footer */
footer {
	padding: 24px 0 40px;
	color: var(--muted);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: 20px;
}

.footerGrid {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr auto;
	align-items: center;
}

@media (max-width: 700px) {
	.footerGrid {
		grid-template-columns: 1fr;
	}
}

/* =========================
   Components
   ========================= */

.card {
	border: 1px solid var(--border);
	background: var(--panel);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.brand img {
	width: 62px;
	height: 62px;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--border);
	padding: 6px;
}

.brand .title {
	display: grid;
	gap: 2px;
}

.brand .title strong {
	font-size: 14px;
	letter-spacing: 0.2px;
}

.brand .title span {
	font-size: 12px;
	color: var(--muted);
}

.cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 650;
	letter-spacing: 0.2px;
	border: 1px solid #064a8c;
	background: linear-gradient(180deg, #0b5cab, #084b8f);
	text-decoration: none;
	color: #fff;
	box-shadow: var(--shadow);
}

.cta:hover {
	border-color: #053a6e;
	transform: translateY(-1px);
}

.heroCard {
	padding: 26px;
	position: relative;
	overflow: hidden;
}

.heroCard:before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
		repeating-linear-gradient(90deg, rgba(11, 92, 171, 0.07), rgba(11, 92, 171, 0.07) 1px, transparent 1px, transparent 16px),
		repeating-linear-gradient(0deg, rgba(11, 92, 171, 0.05), rgba(11, 92, 171, 0.05) 1px, transparent 1px, transparent 16px);
	opacity: 0.65;
	pointer-events: none;
}

.heroCard > * {
	position: relative;
	z-index: 1;
}

h1 {
	margin: 0 0 10px;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.lede {
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 15px;
	max-width: 60ch;
}

.pillRow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 18px;
}

.pill {
	font-size: 12px;
	color: #183044;
	border: 1px solid var(--border);
	background: var(--panel2);
	padding: 7px 10px;
	border-radius: 999px;
}

.heroActions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 8px;
	padding: 10px 14px;
	border: 1px solid var(--border);
	background: var(--panel2);
	text-decoration: none;
	color: var(--text);
	font-weight: 650;
}

.btn:hover {
	background: rgba(0, 0, 0, 0.03);
	border-color: #bfc8d2;
}

.btn.primary {
	border-color: #064a8c;
	background: linear-gradient(180deg, #0b5cab, #084b8f);
	color: #fff;
}

.mini {
	font-size: 12px;
	color: var(--muted);
	margin-top: 10px;
}

.infoCard {
	padding: 22px;
	display: grid;
	gap: 13px;
	background: var(--panel2);
}

.infoTitle {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.infoTitle strong {
	font-size: 14px;
}

.infoTitle span {
	font-size: 12px;
	color: var(--muted);
}

.kv {
	display: grid;
	gap: 6px;
}

.kv b {
	font-size: 12px;
	color: var(--muted);
	font-weight: 650;
	letter-spacing: 0.2px;
}

.kv div {
	font-size: 14px;
}

.sectionTitle {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 10px;
}

.sectionTitle h2 {
	margin: 0;
	font-size: 18px;
	letter-spacing: -0.01em;
}

.sectionTitle p {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}

.service {
	padding: 18px;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.service h3 {
	margin: 0 0 6px;
	font-size: 15px;
}

.service p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.banner {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px dashed #a8b3bf;
	background: #f2f5f8;
	font-size: 12px;
	color: var(--muted);
}

/* Trust strip */
.trust {
	padding: 12px 0 18px;
}

.trustInner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

@media (max-width: 900px) {
	.trustInner {
		grid-template-columns: 1fr;
	}
}

.trustItem {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--panel2);
	padding: 12px 14px;
}

.trustItem strong {
	display: block;
	font-size: 14px;
}

.trustItem span {
	display: block;
	font-size: 12.5px;
	color: var(--muted);
	margin-top: 2px;
}

/* =========================
   Form
   ========================= */

.formWrap {
	padding: 18px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--panel);
}

form {
	display: grid;
	gap: 10px;
}

.row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

@media (max-width: 700px) {
	.row2 {
		grid-template-columns: 1fr;
	}
}

label {
	display: grid;
	gap: 6px;
	font-size: 12px;
	color: var(--muted);
}

input,
select,
textarea {
	width: 100%;
	padding: 11px 12px;
	border-radius: 8px;
	border: 1px solid var(--border);
	outline: none;
	background: var(--panel2);
	color: var(--text);
	font-size: 14px;
}

/* =========================
   Map embed
   ========================= */

.mapWrap {
	margin-top: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--panel2);
	overflow: hidden;
}

.mapWrap iframe {
	display: block;
	width: 100%;
	height: 320px;
	border: 0;
}

.mapNote {
	padding: 10px 12px;
	font-size: 12px;
	color: var(--muted);
	border-top: 1px solid var(--border);
}

input:focus,
select:focus,
textarea:focus {
	border-color: rgba(11, 92, 171, 0.6);
	box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.12);
}

textarea {
	min-height: 96px;
	resize: vertical;
}

.submitRow {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
}

button {
	appearance: none;
	border: 1px solid #064a8c;
	background: linear-gradient(180deg, #0b5cab, #084b8f);
	color: #fff;
	padding: 11px 14px;
	border-radius: 8px;
	font-weight: 750;
	cursor: pointer;
}

button:hover {
	border-color: rgba(121, 192, 255, 0.45);
	transform: translateY(-1px);
}

.hint {
	font-size: 12px;
	color: var(--muted);
}

/* =========================
   Utilities
   ========================= */

.tiny {
	font-size: 12px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}
