/* ===== Prohyb s.r.o. — industrial theme ===== */
:root,
[data-theme="dark"] {
	color-scheme: dark;
	--bg: #15181c;
	--bg-2: #1b1f24;
	--bg-3: #22272e;
	--steel: #2c333c;
	--line: #323a44;
	--text: #e7ebef;
	--muted: #9aa6b2;
	--accent: #2e90fa;
	--accent-2: #5aa9ff;
	--accent-dark: #1f6fd0;
	--accent-rgb: 46, 144, 250;
	--on-accent: #ffffff;
	--shadow: 0 12px 30px rgba(0, 0, 0, .45);
	--header-bg: rgba(21, 24, 28, .82);
	--header-bg-scrolled: rgba(18, 21, 24, .96);
	--hero-1: #181c21;
	--hero-2: #14171b;
	--footer-bg: #101316;
	--radius: 10px;
	--maxw: 1180px;
}

[data-theme="light"] {
	color-scheme: light;
	--bg: #f4f6f9;
	--bg-2: #eaeef3;
	--bg-3: #ffffff;
	--steel: #e3e8ef;
	--line: #d6dde5;
	--text: #1a2128;
	--muted: #5c6873;
	--accent: #1769c0;
	--accent-2: #1257a3;
	--accent-dark: #0f4c8f;
	--accent-rgb: 23, 105, 192;
	--on-accent: #ffffff;
	--shadow: 0 12px 30px rgba(40, 55, 75, .14);
	--header-bg: rgba(244, 246, 249, .85);
	--header-bg-scrolled: rgba(255, 255, 255, .97);
	--hero-1: #eef1f6;
	--hero-2: #e3e8ef;
	--footer-bg: #e7ebf0;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 78px;
}

body {
	margin: 0;
	font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3 {
	font-family: "Oswald", "Segoe UI", Arial, sans-serif;
	font-weight: 600;
	letter-spacing: .5px;
	line-height: 1.15;
	margin: 0 0 .5em;
}

a {
	color: var(--accent-2);
	text-decoration: none;
}

a:hover {
	color: var(--accent);
}

img {
	max-width: 100%;
	display: block;
}

.container {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 22px;
}

.accent {
	color: var(--accent);
}

/* ===== Header / nav ===== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--header-bg);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: background .3s, border-color .3s, box-shadow .3s;
}

.site-header.scrolled {
	background: var(--header-bg-scrolled);
	border-bottom-color: var(--line);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: "Oswald", sans-serif;
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--text);
	text-transform: uppercase;
}

.brand:hover {
	color: var(--text);
}

.brand .mark {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	color: var(--on-accent);
	font-weight: 800;
	font-size: 1.1rem;
	box-shadow: 0 4px 12px rgba(var(--accent-rgb), .35);
}

.brand small {
	display: block;
	font-family: "Inter", sans-serif;
	font-size: .58rem;
	letter-spacing: 2px;
	color: var(--muted);
	font-weight: 500;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0 0 0 auto;
	padding: 0;
}

.nav-links a {
	display: block;
	padding: 9px 14px;
	color: var(--text);
	font-size: .92rem;
	font-weight: 500;
	border-radius: 6px;
	transition: color .2s, background .2s;
}

.nav-links a:hover {
	color: var(--accent);
	background: rgba(var(--accent-rgb), .08);
}

.nav-cta {
	background: var(--accent);
	color: var(--on-accent) !important;
	font-weight: 700 !important;
}

.nav-cta:hover {
	background: var(--accent-2);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}

.nav-toggle span {
	width: 26px;
	height: 3px;
	background: var(--text);
	border-radius: 2px;
	transition: transform .3s, opacity .3s;
}

.nav-toggle.open span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
	opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* ===== Theme toggle ===== */
.nav-ctrls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: 8px;
}

.theme-toggle {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background: var(--bg-3);
	border: 1px solid var(--line);
	color: var(--text);
	cursor: pointer;
	transition: color .2s, border-color .2s, background .2s;
}

.theme-toggle:hover {
	color: var(--accent);
	border-color: var(--accent);
}

.theme-toggle svg {
	width: 20px;
	height: 20px;
}

.theme-toggle .icon-moon {
	display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
	display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
	display: block;
}

/* ===== Buttons ===== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 26px;
	border-radius: 8px;
	font-weight: 600;
	font-size: .98rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s, background .2s, box-shadow .2s;
}

.btn:active {
	transform: translateY(1px);
}

.btn-primary {
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: 0 8px 22px rgba(var(--accent-rgb), .3);
}

.btn-primary:hover {
	background: var(--accent-2);
	color: var(--on-accent);
	box-shadow: 0 10px 26px rgba(var(--accent-rgb), .42);
}

.btn-ghost {
	background: transparent;
	color: var(--text);
	border-color: var(--line);
}

.btn-ghost:hover {
	color: var(--accent);
	border-color: var(--accent);
}

/* ===== Hero ===== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 110px 0 70px;
	overflow: hidden;
	background:
		radial-gradient(900px 500px at 78% 18%, rgba(var(--accent-rgb), .14), transparent 60%),
		linear-gradient(180deg, var(--hero-1) 0%, var(--hero-2) 100%);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 54px 54px;
	opacity: .06;
	mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 80%);
}

.hero-inner {
	position: relative;
	max-width: 760px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 15px;
	border: 1px solid var(--line);
	border-radius: 100px;
	background: rgba(var(--accent-rgb), .06);
	color: var(--accent-2);
	font-size: .78rem;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 26px;
}

.eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .2);
}

.hero h1 {
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	text-transform: uppercase;
	margin-bottom: 22px;
}

.hero h1 span {
	color: var(--accent);
}

.hero p.lead {
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	color: var(--muted);
	max-width: 620px;
	margin: 0 0 36px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 46px;
}

.hero-phone {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
	font-size: 1.05rem;
}

.hero-phone .ico {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bg-3);
	border: 1px solid var(--line);
	font-size: 1.2rem;
}

.hero-phone small {
	display: block;
	color: var(--muted);
	font-size: .76rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hero-phone strong {
	font-size: 1.2rem;
	font-family: "Oswald", sans-serif;
	letter-spacing: .5px;
}

/* ===== Sections ===== */
.section {
	padding: 92px 0;
}

.section.alt {
	background: var(--bg-2);
}

.section-head {
	max-width: 720px;
	margin: 0 auto 56px;
	text-align: center;
}

.section-head .kicker {
	color: var(--accent);
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	font-size: .82rem;
}

.section-head h2 {
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	text-transform: uppercase;
	margin: 12px 0 14px;
}

.section-head p {
	color: var(--muted);
	margin: 0;
	font-size: 1.05rem;
}

/* ===== About / services ===== */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 22px;
}

.service-card {
	background: var(--bg-3);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px 26px;
	transition: transform .25s, border-color .25s, box-shadow .25s;
}

.service-card:hover {
	transform: translateY(-6px);
	border-color: var(--accent);
	box-shadow: var(--shadow);
}

.service-card .ico {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(var(--accent-rgb), .18), rgba(var(--accent-rgb), .04));
	border: 1px solid rgba(var(--accent-rgb), .25);
	font-size: 1.6rem;
	margin-bottom: 20px;
}

.service-card h3 {
	font-size: 1.25rem;
	margin-bottom: 10px;
}

.service-card p {
	color: var(--muted);
	margin: 0;
	font-size: .96rem;
}

/* ===== Parts categories ===== */
.parts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

.part-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--bg-3);
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	padding: 18px 20px;
	transition: transform .2s, background .2s, box-shadow .2s;
}

.part-card:hover {
	transform: translateX(4px);
	background: var(--steel);
	box-shadow: var(--shadow);
}

.part-card .num {
	font-family: "Oswald", sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--accent);
	min-width: 34px;
}

.part-card .name {
	font-weight: 600;
	color: var(--text);
}

/* ===== Service detail list ===== */
.svc-detail {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}

.svc-item {
	background: var(--bg-3);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
}

.svc-item h3 {
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.svc-item h3::before {
	content: "\25B6";
	color: var(--accent);
	font-size: .7rem;
}

.svc-item ul {
	margin: 0;
	padding-left: 20px;
	color: var(--muted);
}

.svc-item li {
	margin-bottom: 6px;
}

/* ===== Gallery ===== */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}

.gallery figure {
	position: relative;
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--bg-3);
	cursor: pointer;
	aspect-ratio: 4 / 3;
}

.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}

.gallery figure:hover img {
	transform: scale(1.08);
}

.gallery figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 26px 14px 12px;
	font-size: .85rem;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, .82));
	transform: translateY(8px);
	opacity: 0;
	transition: transform .25s, opacity .25s;
}

.gallery figure:hover figcaption {
	transform: translateY(0);
	opacity: 1;
}

/* ===== Lightbox ===== */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(8, 9, 11, .92);
	backdrop-filter: blur(6px);
	padding: 30px;
}

.lightbox.open {
	display: flex;
}

.lightbox img {
	max-width: 90vw;
	max-height: 82vh;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.lightbox .lb-caption {
	position: absolute;
	bottom: 26px;
	left: 0;
	right: 0;
	text-align: center;
	color: var(--text);
	font-size: 1rem;
}

.lb-btn {
	position: absolute;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .18);
	color: #fff;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 1.5rem;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .2s;
}

.lb-btn:hover {
	background: var(--accent);
	color: var(--on-accent);
}

.lb-close {
	top: 24px;
	right: 24px;
}

.lb-prev {
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
}

.lb-next {
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
}

/* ===== Contact ===== */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 40px;
	align-items: start;
}

/* když je kontaktní formulář skrytý (hidden), roztáhni kontaktní údaje na plnou šířku */
.contact-grid:has(> form[hidden]) {
	grid-template-columns: 1fr;
}

.contact-info {
	display: grid;
	gap: 16px;
}

.contact-row {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: var(--bg-3);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
}

.contact-row .ico {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 10px;
	background: rgba(var(--accent-rgb), .12);
	border: 1px solid rgba(var(--accent-rgb), .25);
	font-size: 1.25rem;
}

.contact-row .label {
	display: block;
	margin-bottom: 4px;
	color: var(--muted);
	font-size: .78rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.contact-row .val {
	color: var(--text);
	font-size: 1.05rem;
	font-weight: 500;
}

.contact-row a.val:hover {
	color: var(--accent);
}

.map-wrap {
	margin-top: 8px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	height: 240px;
}

.map-wrap iframe {
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(.3) contrast(1.05);
}

/* ===== Form ===== */
.contact-form {
	background: var(--bg-3);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px;
}

.contact-form h3 {
	font-size: 1.4rem;
	margin-bottom: 6px;
}

.contact-form .form-note {
	color: var(--muted);
	font-size: .9rem;
	margin: 0 0 22px;
}

.field {
	margin-bottom: 16px;
}

.field label {
	display: block;
	font-size: .85rem;
	color: var(--muted);
	margin-bottom: 7px;
	font-weight: 500;
}

.field label .req {
	color: var(--accent);
}

.field input,
.field textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--text);
	font-family: inherit;
	font-size: .98rem;
	transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15);
}

.field textarea {
	resize: vertical;
	min-height: 120px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* honeypot — skryté pole proti spamu */
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 20px;
	cursor: pointer;
	color: var(--muted);
	font-size: .92rem;
	user-select: none;
}

.checkbox input {
	width: 18px;
	height: 18px;
	accent-color: var(--accent);
	cursor: pointer;
	flex: 0 0 auto;
}

.checkbox:hover {
	color: var(--text);
}

.form-status {
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: .92rem;
	display: none;
}

.form-status.show {
	display: block;
}

.form-status.ok {
	background: rgba(54, 179, 88, .12);
	border: 1px solid rgba(54, 179, 88, .4);
	color: #7ee29a;
}

.form-status.err {
	background: rgba(229, 72, 72, .12);
	border: 1px solid rgba(229, 72, 72, .4);
	color: #f1948a;
}

/* ===== Footer ===== */
.site-footer {
	background: var(--footer-bg);
	border-top: 1px solid var(--line);
	padding: 44px 0 26px;
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.footer-top .brand {
	font-size: 1.2rem;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links a {
	color: var(--muted);
	font-size: .92rem;
}

.footer-links a:hover {
	color: var(--accent);
}

.footer-bottom {
	border-top: 1px solid var(--line);
	padding-top: 22px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	color: var(--muted);
	font-size: .85rem;
}

.footer-legal {
	max-width: 560px;
}

/* ===== WhatsApp floating button ===== */
.wa-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 0;
	height: 60px;
	padding: 0 15px;
	border-radius: 30px;
	background: #25d366;
	color: #fff;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
	overflow: hidden;
	max-width: 60px;
	transition: max-width .35s ease, box-shadow .25s ease, transform .15s ease;
	animation: wa-pulse 2.4s infinite;
}

.wa-float:hover {
	color: #fff;
	max-width: 220px;
	box-shadow: 0 10px 30px rgba(37, 211, 102, .55);
	animation: none;
}

.wa-float:active {
	transform: scale(.96);
}

.wa-float svg {
	flex: 0 0 30px;
}

.wa-label {
	white-space: nowrap;
	padding-left: 10px;
	font-size: 1rem;
	opacity: 0;
	transition: opacity .25s ease .05s;
}

.wa-float:hover .wa-label {
	opacity: 1;
}

@keyframes wa-pulse {
	0% {
		box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 0 0 0 rgba(37, 211, 102, .5);
	}
	70% {
		box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 0 0 16px rgba(37, 211, 102, 0);
	}
	100% {
		box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 0 0 0 rgba(37, 211, 102, 0);
	}
}

@media (max-width: 560px) {
	.wa-float {
		right: 16px;
		bottom: 16px;
		height: 54px;
		max-width: 54px;
		padding: 0 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wa-float {
		animation: none;
	}
}

/* ===== Reveal animation ===== */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
	opacity: 1;
	transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.nav-toggle {
		display: flex;
	}

	.nav-links {
		position: fixed;
		top: 70px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--bg-2);
		border-bottom: 1px solid var(--line);
		padding: 10px 18px 20px;
		transform: translateY(-130%);
		transition: transform .35s ease;
		box-shadow: var(--shadow);
	}

	.nav-links.open {
		transform: translateY(0);
	}

	.nav-links a {
		padding: 14px 10px;
		border-bottom: 1px solid var(--line);
		font-size: 1rem;
	}

	.nav-cta {
		margin-top: 10px;
		text-align: center;
	}
}

@media (max-width: 560px) {
	.section {
		padding: 64px 0;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.btn {
		justify-content: center;
	}
}
