/* Stiluri custom pentru background-uri cu imagine */
html,
body {
	overflow-x: hidden;
}

body.mobile-menu-open {
	overflow: hidden;
}

body.lightbox-open {
	overflow: hidden;
}

html {
	scroll-padding-top: 5.5rem;
	scroll-padding-bottom: 7rem;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

.desktop-topbar {
	display: block !important;
}

@media (max-width: 639px) {
	.desktop-topbar {
		display: none !important;
	}
}

.mobile-topbar {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	right: 0.75rem;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.5rem;
	border: 1px solid rgba(252, 211, 77, 0.2);
	border-radius: 1.2rem;
	background: rgba(39, 39, 42, 0.68);
	backdrop-filter: blur(14px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.mobile-topbar__brand {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 2.75rem;
	padding: 0.65rem 0.95rem;
	border-radius: 1rem;
	color: #fef3c7;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	background: rgba(39, 39, 42, 0.5);
}

.mobile-menu-toggle {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.26rem;
	min-width: 2.9rem;
	min-height: 2.9rem;
	padding: 0.6rem;
	border: 1px solid rgba(253, 230, 138, 0.22);
	border-radius: 1rem;
	background: rgba(39, 39, 42, 0.5);
	color: #fef3c7;
}

.mobile-menu-toggle span {
	display: block;
	width: 1rem;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 60;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.mobile-menu.is-open {
	opacity: 1;
	pointer-events: auto;
}

.mobile-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.52);
	backdrop-filter: blur(6px);
}

.mobile-menu__panel {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	right: 0.75rem;
	padding: 1rem;
	border: 1px solid rgba(252, 211, 77, 0.2);
	border-radius: 1.6rem;
	background: linear-gradient(180deg, rgba(39, 39, 42, 0.94) 0%, rgba(24, 24, 27, 0.96) 100%);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
	transform: translateY(-0.5rem);
	transition: transform 0.2s ease;
}

.mobile-menu.is-open .mobile-menu__panel {
	transform: translateY(0);
}

.mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.mobile-menu__eyebrow {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(254, 243, 199, 0.7);
}

.mobile-menu__close {
	min-height: 2.75rem;
	padding: 0.65rem 0.95rem;
	border: 1px solid rgba(253, 230, 138, 0.22);
	border-radius: 999px;
	background: rgba(39, 39, 42, 0.7);
	color: #fef3c7;
	font-size: 0.9rem;
	font-weight: 700;
}

.mobile-menu__content {
	display: grid;
	gap: 0.75rem;
}

.mobile-menu__link {
	display: block;
	padding: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 1.2rem;
	background: rgba(39, 39, 42, 0.78);
	text-decoration: none;
}

.mobile-menu__link-title {
	display: block;
	color: #fef3c7;
	font-size: 1rem;
	font-weight: 800;
}

.mobile-menu__link-copy {
	display: block;
	margin-top: 0.2rem;
	color: #a1a1aa;
	font-size: 0.9rem;
}

.mobile-menu__actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.6rem;
	margin-top: 0.35rem;
}

.mobile-menu__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.8rem 0.6rem;
	border: 1px solid rgba(253, 230, 138, 0.22);
	border-radius: 1rem;
	background: rgba(63, 63, 70, 0.86);
	color: #fef3c7;
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
	text-align: center;
}

.mobile-menu__action--primary {
	background: #fcd34d;
	color: #18181b;
	border-color: rgba(252, 211, 77, 0.7);
}

.service-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 0.95rem;
	border: 1px solid rgba(253, 230, 138, 0.32);
	border-radius: 999px;
	background: rgba(12, 10, 9, 0.74);
	backdrop-filter: blur(8px);
	color: #fef3c7;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-align: center;
}

.mobile-sticky-cta {
	position: fixed;
	left: 0.75rem;
	right: 0.75rem;
	bottom: max(0.75rem, env(safe-area-inset-bottom));
	z-index: 50;
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 0.55rem;
	padding: 0.65rem;
	border: 1px solid rgba(252, 211, 77, 0.24);
	border-radius: 1.4rem;
	background: rgba(39, 39, 42, 0.84);
	backdrop-filter: blur(14px);
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-sticky-cta.is-hidden {
	opacity: 0;
	transform: translateY(1.25rem);
	pointer-events: none;
}

.mobile-sticky-cta__primary,
.mobile-sticky-cta__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.85rem 0.7rem;
	border-radius: 1rem;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 800;
	text-align: center;
}

.mobile-sticky-cta__primary {
	background: #fcd34d;
	color: #18181b;
	box-shadow: 0 10px 30px rgba(251, 191, 36, 0.18);
}

.mobile-sticky-cta__secondary {
	border: 1px solid rgba(253, 230, 138, 0.28);
	background: rgba(63, 63, 70, 0.84);
	color: #fef3c7;
}

.service-choice-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid rgba(253, 230, 138, 0.22);
	border-radius: 0.95rem;
	background: rgba(24, 24, 27, 0.82);
	color: #fef3c7;
	font-size: 0.92rem;
	font-weight: 700;
	text-align: center;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.service-choice-button.is-active {
	border-color: rgba(253, 230, 138, 0.72);
	background: #fcd34d;
	color: #18181b;
	transform: translateY(-1px);
}

.lightbox-trigger {
	cursor: zoom-in;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

button.lightbox-trigger {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	border-left: 0;
	border-right: 0;
	border-bottom: 0;
	background-color: transparent;
	padding: 0;
	text-align: inherit;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Vizibilitatea lightbox-ului este gestionata exclusiv prin opacity/visibility si clasa .is-open.
   Nu se foloseste display:none ca sa nu se ucida tranzitia de fade-out. */

.lightbox__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	background: rgba(10, 10, 10, 0.88);
	cursor: zoom-out;
}

.lightbox__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	width: min(100%, 1100px);
	max-height: 100%;
	padding: 3.5rem 1rem 1rem;
	border-radius: 1.75rem;
	background: linear-gradient(180deg, rgba(35, 35, 35, 0.96), rgba(17, 17, 17, 0.94));
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.lightbox__close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	border: 0;
	border-radius: 999px;
	padding: 0.65rem 1rem;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 180ms ease, transform 180ms ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
	background: rgba(245, 158, 11, 0.85);
	transform: translateY(-1px);
	outline: none;
}

.lightbox__image {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: calc(100vh - 10rem);
	border-radius: 1.2rem;
	object-fit: contain;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	background: #111;
}

.lightbox__caption {
	margin: 0;
	max-width: 60ch;
	min-height: 1.5rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
	line-height: 1.5;
}

.form-feedback.is-error {
	border-color: rgba(248, 113, 113, 0.35);
	background: rgba(127, 29, 29, 0.2);
	color: #fca5a5;
}

@supports (content-visibility: auto) {
	#galerie,
	#despre,
	#contact,
	footer {
		content-visibility: auto;
		contain-intrinsic-size: 0 1000px;
	}
}

.bg-dpf {
	background-image: url('/poze/service-dpf-960.webp');
	background-size: 110%;
	background-position: center center;
	background-repeat: no-repeat;
	background-clip: border-box;
}

.bg-card4 {
	background-image: url('/poze/service-catalizatoare-720.webp');
	background-size: 80%;
	background-position: center center;
	background-repeat: no-repeat;
	background-clip: border-box;
}

.bg-service-auto {
	background-image: url('/poze/service-auto-720.webp');
	background-size: 68%;
	background-position: center center;
	background-repeat: no-repeat;
	background-clip: border-box;
}

.bg-vulcanizare {
	background-image: url('/poze/service-vulcanizare-720.webp');
	background-size: 80%;
	background-position: center center;
	background-repeat: no-repeat;
	background-clip: border-box;
}

.premium-card {
	box-shadow: 0 24px 65px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(253, 230, 138, 0.42), 0 0 24px rgba(251, 191, 36, 0.2);
	transition: box-shadow 0.35s ease, transform 0.35s ease;
	will-change: transform, box-shadow;
}

.premium-card:hover {
	box-shadow: 0 32px 85px rgba(0, 0, 0, 0.82), 0 0 0 1px rgba(253, 230, 138, 0.58), 0 0 34px rgba(251, 191, 36, 0.35);
	animation: luxuryGlow 2.2s ease-in-out infinite;
}

.premium-surface {
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(253, 230, 138, 0.34), 0 0 28px rgba(251, 191, 36, 0.16);
	transition: box-shadow 0.35s ease;
	will-change: box-shadow;
}

.map-embed {
	border: 0;
	display: block;
}

.hero-section {
	background: linear-gradient(135deg, rgba(9, 9, 11, 0.9) 0%, rgba(39, 39, 42, 0.82) 50%, rgba(41, 37, 36, 0.82) 100%);
}

.hero-image {
	object-position: center 31%;
}

.hero-content {
	width: 100%;
}

.hero-logo-lux {
	background: none;
	color: #fcd34d;
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.9), 0 8px 18px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.55);
}

.reveal-on-scroll {
	opacity: 0;
	transform: translateY(22px);
	filter: blur(1px);
	transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.reveal-visible {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

.premium-surface:hover {
	box-shadow: 0 30px 86px rgba(0, 0, 0, 0.84), 0 0 0 1px rgba(253, 230, 138, 0.56), 0 0 36px rgba(251, 191, 36, 0.34);
	animation: luxuryGlow 2.2s ease-in-out infinite;
}

.mobile-has-cta footer {
	padding-bottom: 7rem;
}

@keyframes luxuryGlow {
	0% {
		box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(253, 230, 138, 0.5), 0 0 24px rgba(251, 191, 36, 0.24);
	}

	50% {
		box-shadow: 0 34px 95px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(253, 230, 138, 0.62), 0 0 42px rgba(251, 191, 36, 0.42);
	}

	100% {
		box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(253, 230, 138, 0.5), 0 0 24px rgba(251, 191, 36, 0.24);
	}
}

@keyframes heroBounce {
	0%, 100% { transform: translateY(-6%); }
	50% { transform: translateY(0); }
}

.hero-cta-bounce {
	animation: heroBounce 1s ease 3;
}

@media (prefers-reduced-motion: reduce) {
	.hero-cta-bounce {
		animation: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.premium-card,
	.premium-surface,
	.premium-card:hover,
	.premium-surface:hover,
	.lightbox,
	.lightbox__close,
	.reveal-on-scroll,
	.reveal-visible {
		animation: none;
		transition: none;
		transform: none;
		opacity: 1;
		filter: none;
	}
}

@media (max-width: 640px) {
	.premium-card {
		box-shadow: 0 16px 38px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(253, 230, 138, 0.3);
	}

	.premium-surface {
		box-shadow: 0 14px 34px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(253, 230, 138, 0.28);
	}

	.hero-logo-lux {
		position: relative;
		top: calc(-0.3rem - 25px);
		margin-top: 0;
		margin-bottom: 0.45rem;
		text-shadow: 0 2px 0 rgba(0, 0, 0, 0.85), 0 6px 14px rgba(0, 0, 0, 0.72);
	}

	.hero-section {
		display: block;
		min-height: auto;
		padding-top: 5.75rem;
		padding-bottom: 2rem;
		background: linear-gradient(135deg, rgba(9, 9, 11, 0.9) 0%, rgba(39, 39, 42, 0.82) 50%, rgba(41, 37, 36, 0.82) 100%);
	}

	.hero-image {
		position: relative;
		inset: auto;
		display: block;
		width: 100%;
		height: 40svh;
		max-height: none;
		object-fit: cover;
		object-position: center 28%;
		transform: none;
		margin: 0 auto;
		opacity: 0.96;
	}

	.hero-overlay {
		inset: 0 0 auto 0;
		height: 40svh;
		background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(9, 9, 11, 0.1) 48%, rgba(9, 9, 11, 0) 100%);
	}

	.hero-content {
		margin-top: 0;
		padding-bottom: 0;
		transform: translateY(-2.2rem);
	}

	.hero-content p {
		position: relative;
		top: -25px;
		margin-top: 0;
		margin-bottom: 0.55rem;
	}

	.mobile-topbar {
		top: 0.5rem;
		left: 0.5rem;
		right: 0.5rem;
	}

	.mobile-topbar__brand {
		font-size: 0.84rem;
		padding: 0.7rem 0.8rem;
	}

	.mobile-menu__panel {
		top: 0.5rem;
		left: 0.5rem;
		right: 0.5rem;
	}

	.mobile-menu__actions {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mobile-menu__action {
		font-size: 0.8rem;
		padding: 0.75rem 0.45rem;
	}

	.service-chip {
		width: 100%;
		font-size: 0.88rem;
		padding: 0.6rem 0.75rem;
	}

	.mobile-sticky-cta {
		left: 0.5rem;
		right: 0.5rem;
		bottom: max(0.5rem, env(safe-area-inset-bottom));
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mobile-sticky-cta__primary,
	.mobile-sticky-cta__secondary {
		font-size: 0.82rem;
		padding: 0.8rem 0.45rem;
	}

	.lightbox {
		padding: 0.75rem;
	}

	.lightbox__dialog {
		padding: 3.25rem 0.75rem 0.85rem;
		border-radius: 1.25rem;
	}

	.lightbox__close {
		top: 0.65rem;
		right: 0.65rem;
		padding: 0.55rem 0.85rem;
		font-size: 0.88rem;
	}

	.lightbox__image {
		max-height: calc(100vh - 8.5rem);
	}

	.lightbox__caption {
		font-size: 0.9rem;
	}

	.service-choice-button {
		font-size: 0.84rem;
		padding: 0.65rem 0.55rem;
	}

	#servicii,
	#galerie,
	#despre,
	#contact {
		scroll-margin-top: 82px;
	}

	body>section:first-of-type {
		min-height: 100dvh;
	}

	body>section:first-of-type p {
		overflow-wrap: anywhere;
	}
}

/* ─── GDPR COOKIE BANNER ────────────────────────────────────────────────────── */
#gdpr-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	transform: translateY(110%);
	transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
	padding: 0 1rem 0.5rem;
}

#gdpr-banner.gdpr-banner--visible {
	transform: translateY(0);
}

.gdpr-banner__inner {
	max-width: 72rem;
	margin: 0 auto;
	background: rgba(24, 24, 27, 0.97);
	border: 1px solid rgba(253, 211, 77, 0.35);
	border-bottom: none;
	border-radius: 1.25rem 1.25rem 0 0;
	backdrop-filter: blur(16px);
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.gdpr-banner__inner {
		flex-direction: row;
		align-items: center;
		gap: 1.5rem;
	}
}

.gdpr-banner__text {
	color: #d4d4d8;
	font-size: 0.875rem;
	line-height: 1.55;
	flex: 1;
}

.gdpr-banner__link {
	color: #fcd34d;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.gdpr-banner__link:hover {
	color: #fde68a;
}

.gdpr-banner__actions {
	display: flex;
	gap: 0.65rem;
	flex-shrink: 0;
	flex-wrap: wrap;
}

.gdpr-btn {
	border-radius: 9999px;
	padding: 0.55rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.18s, transform 0.18s;
	white-space: nowrap;
}

.gdpr-btn:hover {
	transform: scale(1.04);
}

.gdpr-btn--accept {
	background-color: #fcd34d;
	color: #18181b;
}

.gdpr-btn--accept:hover {
	background-color: #fde68a;
}

.gdpr-btn--essential {
	background-color: transparent;
	color: #a1a1aa;
	border: 1px solid rgba(161, 161, 170, 0.4);
}

.gdpr-btn--essential:hover {
	background-color: rgba(63, 63, 70, 0.6);
	color: #d4d4d8;
}

/* ─── MAP CONSENT GATE ──────────────────────────────────────────────────────── */
.map-consent-gate {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	background: rgba(39, 39, 42, 0.85);
	padding: 1.5rem;
	text-align: center;
}

.map-consent-load {
	border-radius: 9999px;
	background-color: #fcd34d;
	color: #18181b;
	font-weight: 700;
	font-size: 0.875rem;
	padding: 0.6rem 1.4rem;
	cursor: pointer;
	transition: background-color 0.18s, transform 0.18s;
	border: none;
}

.map-consent-load:hover {
	background-color: #fde68a;
	transform: scale(1.04);
}