/* Taimers – Subaru autoserviss
   Vienkārša, viegla lapa bez ārējām atkarībām (fonti un attēli no sava servera). */

@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('../fonts/source-sans-3-latin-ext-wght-normal.woff2') format('woff2-variations');
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('../fonts/source-sans-3-latin-wght-normal.woff2') format('woff2-variations');
	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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--red: #e4003a;
	--red-dark: #b8002f;
	--wa: #25d366;		/* WhatsApp green */
	--wa-dark: #1fb457;
	--wa-ink: #072b14;	/* dark text on green: high contrast */
	--ink: #131418;
	--ink-2: #1c1e24;
	--ink-3: #262932;
	--line-dark: rgba(255, 255, 255, 0.12);
	--on-dark: #eef0f4;
	--on-dark-muted: #a9aebb;
	--paper: #ffffff;
	--paper-2: #f3f4f7;
	--line: #e2e4ea;
	--text: #1a1c22;
	--text-muted: #5b6070;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(16, 18, 24, 0.06), 0 8px 24px rgba(16, 18, 24, 0.08);
	--wrap: 1160px;
	--gutter: 20px;
	--header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--red);
	color: #fff;
	padding: 10px 16px;
	z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 48px;
	padding: 0 1.4em;
	border-radius: 999px;
	border: 2px solid transparent;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
	white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: var(--wa-dark); }
.icon-fill { fill: currentColor; stroke: none; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-outline { border-color: var(--line); color: var(--text); background: var(--paper); }
.btn-outline:hover { border-color: var(--text); }
.btn-dark-outline { border-color: var(--line-dark); color: var(--on-dark); }
.btn-dark-outline:hover { border-color: var(--on-dark); }

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: rgba(19, 20, 24, 0.92);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line-dark);
	color: var(--on-dark);
}
.site-header .wrap {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 24px;
}
.logo img { height: 30px; width: auto; }
.site-nav {
	display: flex;
	gap: 4px;
	margin-left: auto;
}
.site-nav a {
	text-decoration: none;
	color: var(--on-dark-muted);
	font-weight: 500;
	padding: 8px 12px;
	border-radius: 8px;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.header-contact {
	display: flex;
	align-items: center;
	gap: 16px;
}
.header-wa { min-height: 42px; padding: 0 1.1em; }

@media (max-width: 860px) {
	.site-nav { display: none; }
	.header-contact { margin-left: auto; }
}
/* On small screens the bottom action bar has WhatsApp and the call button */
@media (max-width: 760px) {
	.header-contact { display: none; }
}

/* ---------- Hero ----------
   The photo shows the badge on the left and soft empty space on the right.
   The text goes on the right, so the badge stays visible.
   Cinematic look: colour grade, slow zoom to the badge, blue and red glow. */

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: #fff;
	background: var(--ink);
	min-height: min(88svh, 860px);
	display: flex;
	align-items: center;
}
.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: url('../images/header-1600.webp') 18% 45% / cover no-repeat;
	filter: saturate(1.25) contrast(1.12) brightness(0.72);
	transform-origin: 18% 47%;
	animation: hero-zoom 22s ease-out both;
}
.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 45% 55% at 18% 47%, rgba(30, 90, 255, 0.18), transparent 70%),
		radial-gradient(ellipse 40% 60% at 85% 60%, rgba(228, 0, 58, 0.22), transparent 70%),
		linear-gradient(90deg, rgba(8, 10, 18, 0.15) 25%, rgba(8, 10, 18, 0.7) 55%, rgba(8, 10, 18, 0.95) 100%),
		linear-gradient(180deg, rgba(8, 10, 18, 0.5) 0%, rgba(8, 10, 18, 0) 30%, rgba(8, 10, 18, 0) 70%, rgba(28, 30, 36, 1) 100%);
}
@keyframes hero-zoom {
	from { transform: scale(1.0); }
	to   { transform: scale(1.09); }
}
@media (prefers-reduced-motion: reduce) {
	.hero-bg { animation: none; }
}

.hero .wrap {
	display: flex;
	justify-content: flex-end;
	padding-top: 72px;
	padding-bottom: 72px;
}
.hero-inner { max-width: 540px; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ff9db5;
	margin-bottom: 16px;
}
.eyebrow::before {
	content: '';
	width: 22px;
	height: 2px;
	background: var(--red);
}
.hero h1 {
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	font-weight: 700;
	margin-bottom: 0.4em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero h1 span { color: #ff2d5f; }
.hero .lead {
	font-size: clamp(1.1rem, 2vw, 1.25rem);
	color: #dfe3ea;
	margin-bottom: 28px;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}
.hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: #d0d4dc;
	font-size: 0.98rem;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { color: var(--red); width: 1.1em; height: 1.1em; }

/* Phones and small tablets: the photo on top, the text under it */
@media (max-width: 900px) {
	.hero {
		display: block;
		min-height: 0;
	}
	.hero-bg {
		position: relative;
		height: min(58svh, 480px);
		min-height: 300px;
		background-image: url('../images/header-900.webp');
		background-position: 12% 50%;
		transform-origin: 20% 50%;
	}
	.hero::after {
		background:
			radial-gradient(ellipse 60% 30% at 25% 25%, rgba(30, 90, 255, 0.18), transparent 70%),
			linear-gradient(180deg, rgba(8, 10, 18, 0.1) 0, rgba(8, 10, 18, 0.1) min(26svh, 210px), var(--ink) min(58svh, 480px));
	}
	.hero .wrap {
		display: block;
		margin-top: -96px;
		padding-top: 0;
		padding-bottom: 48px;
		position: relative;
	}
	.hero-inner { max-width: none; }
}
@media (max-width: 480px) {
	.hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Strengths strip ---------- */

.strengths {
	background: var(--ink-2);
	color: var(--on-dark);
	border-top: 1px solid var(--line-dark);
}
.strengths ul {
	list-style: none;
	margin: 0;
	padding: 28px 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px 32px;
}
.strengths li { display: flex; gap: 14px; align-items: flex-start; }
.strengths .badge {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: rgba(228, 0, 58, 0.14);
	color: #ff5c83;
}
.strengths strong { display: block; font-size: 1.05rem; }
.strengths span { color: var(--on-dark-muted); font-size: 0.95rem; line-height: 1.45; }
@media (max-width: 860px) {
	.strengths ul { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }
.kicker {
	display: block;
	color: var(--red);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

/* ---------- Services ---------- */

.services {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 960px) {
	.services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.services { grid-template-columns: 1fr; }
}
.card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}
.card-media {
	aspect-ratio: 16 / 9;
	background: var(--ink-3);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.3rem;
	font-weight: 700;
}
.card h3 .icon { color: var(--red); }
.card p { color: var(--text-muted); font-size: 0.98rem; }

.ticks {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}
.ticks li {
	position: relative;
	padding: 6px 0 6px 28px;
	border-top: 1px solid var(--line);
	font-size: 0.98rem;
	line-height: 1.45;
}
.ticks li:first-child { border-top: 0; }
.ticks li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.72em;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--red);
	border-bottom: 2px solid var(--red);
	transform: rotate(-45deg);
}

.more { margin-top: auto; }
.services-note {
	margin: 16px 0 0;
	font-size: 0.9rem;
	color: var(--text-muted);
	text-align: right;
}
@media (max-width: 640px) {
	.services-note { text-align: left; }
}
.more summary {
	list-style: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--red);
	padding: 8px 0;
	min-height: 44px;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
	content: '';
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.15s;
}
.more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.more[open] summary .when-closed,
.more:not([open]) summary .when-open { display: none; }

.models {
	margin-top: 24px;
	padding: 22px 24px;
	border-radius: var(--radius);
	background: var(--paper);
	border: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}
.models strong { margin-right: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--paper-2);
	border: 1px solid var(--line);
	font-size: 0.92rem;
	font-weight: 600;
}

/* ---------- About ---------- */

.about {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
@media (max-width: 860px) {
	.about { grid-template-columns: 1fr; }
}
.about-media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.about p { color: var(--text-muted); }
.about p strong { color: var(--text); }

.steps {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	counter-reset: step;
	display: grid;
	gap: 14px;
}
.steps li {
	counter-increment: step;
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 14px;
	align-items: start;
}
.steps li::before {
	content: counter(step);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--text);
	color: #fff;
	font-weight: 700;
}
.steps strong { display: block; }
.steps span { color: var(--text-muted); font-size: 0.96rem; }
.steps span a { color: var(--text); font-weight: 600; }

/* ---------- Contact ---------- */

.contact {
	background: var(--ink);
	color: var(--on-dark);
}
.contact .section-head p { color: var(--on-dark-muted); }
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	gap: 24px;
	align-items: stretch;
}
@media (max-width: 900px) {
	.contact-grid { grid-template-columns: 1fr; }
}
.info {
	background: var(--ink-2);
	border: 1px solid var(--line-dark);
	border-radius: var(--radius);
	padding: 8px 24px 24px;
}
.info-wa { width: 100%; margin-top: 16px; }
.info-wa-note {
	margin: 8px 0 4px;
	text-align: center;
	font-size: 0.9rem;
	color: var(--on-dark-muted);
}
.info dl { margin: 0; }
.info-row {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line-dark);
}
.info-row .icon { color: var(--red); margin-top: 3px; }
.info dt {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--on-dark-muted);
}
.info dd { margin: 2px 0 0; font-size: 1.08rem; }
.info dd a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.info dd a:hover { border-color: #fff; }
.info dd small { display: block; color: var(--on-dark-muted); font-size: 0.9rem; }
.info .actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}
.info .actions .btn { flex: 1 1 160px; }
.company {
	margin-top: 18px;
	color: var(--on-dark-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.map {
	position: relative;
	min-height: 380px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line-dark);
	background:
		radial-gradient(circle at 50% 42%, rgba(228, 0, 58, 0.18), transparent 55%),
		repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.04) 39px 40px),
		repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.04) 39px 40px),
		var(--ink-2);
	display: grid;
	place-items: center;
	text-align: center;
	padding: 24px;
}
.map .pin { color: var(--red); width: 44px; height: 44px; margin: 0 auto 12px; }
.map p { color: var(--on-dark-muted); max-width: 30em; margin: 0 auto 18px; font-size: 0.95rem; }
.map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Footer ---------- */

.site-footer {
	background: #0c0d10;
	color: var(--on-dark-muted);
	font-size: 0.92rem;
	padding: 28px 0;
}
.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
}
.site-footer a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.site-footer a:hover { color: #fff; }

/* ---------- Mobile action bar ---------- */

.action-bar { display: none; }
@media (max-width: 760px) {
	.action-bar {
		display: grid;
		grid-template-columns: 1.3fr 1fr 1fr;
		gap: 8px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(19, 20, 24, 0.96);
		border-top: 1px solid var(--line-dark);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}
	.action-bar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		min-height: 48px;
		border-radius: 12px;
		text-decoration: none;
		font-weight: 600;
		font-size: 0.95rem;
		color: #fff;
		background: var(--ink-3);
	}
	.action-bar a.wa { background: var(--wa); color: var(--wa-ink); }
	body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
