/* =========================================================
   Autohaus MBH - Design Luxury (Noir / Or)
   ========================================================= */

:root {
	--ambh-black: #0b0b0c;
	--ambh-dark: #151517;
	--ambh-card: #1c1c1f;
	--ambh-gold: #c9a24b;
	--ambh-gold-light: #e2c785;
	--ambh-white: #f5f3ee;
	--ambh-grey: #a3a3a8;
	--ambh-border: #2a2a2e;
	--font-heading: 'Cormorant Garamond', Georgia, serif;
	--font-body: 'Jost', sans-serif;
}

body {
	background: var(--ambh-black);
	color: var(--ambh-white);
	font-family: var(--font-body);
	position: relative;
}

h1, h2, h3, h4,
.ambh-hero h1,
.ambh-card-title {
	font-family: var(--font-heading);
	color: var(--ambh-white);
	letter-spacing: 0.5px;
}

a { text-decoration: none; }

.ambh-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.ambh-eyebrow {
	display: inline-block;
	color: var(--ambh-gold);
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 12px;
}

.ambh-center { text-align: center; margin-top: 40px; }

/* Buttons */
.ambh-btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 2px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: all 0.25s ease;
	border: 1px solid var(--ambh-gold);
}

.ambh-btn-gold {
	background: var(--ambh-gold);
	color: var(--ambh-black);
}
.ambh-btn-gold:hover {
	background: var(--ambh-gold-light);
	border-color: var(--ambh-gold-light);
}

.ambh-btn-outline {
	background: transparent;
	color: var(--ambh-gold);
}
.ambh-btn-outline:hover {
	background: var(--ambh-gold);
	color: var(--ambh-black);
}

/* WhatsApp shortcode button */
.ambh-whatsapp-btn {
	display: inline-block;
	padding: 14px 32px;
	background: #25D366;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: 2px;
	margin-left: 12px;
}
.ambh-hero-actions .ambh-whatsapp-btn { margin-left: 16px; }

/* Floating WhatsApp button */
.ambh-float-whatsapp {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25D366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,0.4);
	z-index: 999;
}

/* Hero */
.ambh-hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: radial-gradient(ellipse at center, var(--ambh-dark) 0%, var(--ambh-black) 100%);
	overflow: hidden;
}
.ambh-hero-bg {
	position: absolute;
	inset: -10px;
	background-size: cover;
	background-position: center;
	animation: ambhKenBurns 22s ease-in-out infinite alternate;
	z-index: 0;
}
@keyframes ambhKenBurns {
	0%   { transform: scale(1); }
	100% { transform: scale(1.12); }
}
.ambh-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.65) 100%);
}
.ambh-hero-content {
	position: relative;
	z-index: 2;
	max-width: 780px;
	padding: 0 24px;
}
.ambh-hero-content > * {
	animation: ambhFadeUp 0.9s ease both;
}
.ambh-hero-content .ambh-eyebrow { animation-delay: 0.1s; }
.ambh-hero-content h1 { animation-delay: 0.25s; }
.ambh-hero-content p { animation-delay: 0.4s; }
.ambh-hero-content .ambh-hero-actions { animation-delay: 0.55s; }
@keyframes ambhFadeUp {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}
.ambh-hero h1 {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	margin: 0 0 20px;
	color: var(--ambh-gold-light);
}
.ambh-hero p {
	color: var(--ambh-grey);
	font-size: 18px;
	margin-bottom: 36px;
}
.ambh-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Brands strip */
.ambh-brands {
	border-top: 1px solid var(--ambh-border);
	border-bottom: 1px solid var(--ambh-border);
	padding: 24px 0;
}
.ambh-brands-list {
	text-align: center;
	color: var(--ambh-grey);
	letter-spacing: 2px;
	text-transform: uppercase;
	font-size: 14px;
	margin: 0;
}

/* Sections */
.ambh-section { padding: 90px 0; }
.ambh-section-head { text-align: center; margin-bottom: 48px; }
.ambh-section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }

/* Collection grid */
.ambh-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 40px;
}
.ambh-filter {
	padding: 8px 18px;
	border: 1px solid var(--ambh-border);
	border-radius: 20px;
	color: var(--ambh-grey);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.ambh-filter.active,
.ambh-filter:hover {
	border-color: var(--ambh-gold);
	color: var(--ambh-gold);
}

.ambh-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.ambh-card {
	background: var(--ambh-card);
	border: 1px solid var(--ambh-border);
	display: block;
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease;
}
.ambh-card:hover {
	transform: translateY(-4px);
	border-color: var(--ambh-gold);
}
.ambh-card-img { position: relative; aspect-ratio: 4 / 3; background: #000; overflow: hidden; }
.ambh-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ambh-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 5px 12px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 3px;
	background: var(--ambh-black);
	color: var(--ambh-white);
}
.ambh-badge-vendu { background: #7a1f1f; }
.ambh-badge-reserve { background: #7a5a1f; }

.ambh-card-body { padding: 20px; }
.ambh-card-marque { color: var(--ambh-gold); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.ambh-card-title { font-size: 20px; margin: 6px 0 10px; }
.ambh-card-meta { display: flex; gap: 14px; color: var(--ambh-grey); font-size: 13px; margin-bottom: 12px; }
.ambh-card-prix { color: var(--ambh-gold-light); font-weight: 600; font-size: 18px; }

/* Services */
.ambh-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.ambh-services-grid-full { margin-bottom: 20px; }
.ambh-service-card {
	background: var(--ambh-card);
	border: 1px solid var(--ambh-border);
	padding: 32px 24px;
	text-align: center;
}
.ambh-service-card h3 { font-size: 19px; margin: 0 0 12px; }
.ambh-service-card p { color: var(--ambh-grey); font-size: 14px; line-height: 1.6; margin: 0; }

/* About */
.ambh-about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.ambh-about-grid p { color: var(--ambh-grey); line-height: 1.8; }
.ambh-address { color: var(--ambh-gold-light) !important; font-weight: 600; margin-top: 20px; }
.ambh-about-map iframe, .ambh-contact-map iframe { filter: grayscale(0.3) invert(0.9) contrast(0.9); border: 1px solid var(--ambh-border); }

/* Page header (Collection / Services / Contact) */
.ambh-page-header {
	padding: 100px 0 50px;
	text-align: center;
	background: var(--ambh-dark);
	border-bottom: 1px solid var(--ambh-border);
}
.ambh-page-header h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 12px; }
.ambh-page-header p { color: var(--ambh-grey); max-width: 620px; margin: 0 auto; }

/* Single voiture */
.ambh-single-voiture { padding: 60px 0 90px; }
.ambh-single-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 56px;
	align-items: start;
}
.ambh-single-main-img { position: relative; border: 1px solid var(--ambh-border); overflow: hidden; }
.ambh-single-main-img img { width: 100%; display: block; }
.ambh-single-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ambh-thumb {
	width: 84px; height: 84px; object-fit: cover;
	border: 1px solid var(--ambh-border);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}
.ambh-thumb:hover { opacity: 1; border-color: var(--ambh-gold); }

.ambh-single-prix { font-size: 30px; color: var(--ambh-gold-light); font-weight: 700; margin: 16px 0 24px; }
.ambh-specs-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.ambh-specs-table th, .ambh-specs-table td {
	text-align: left;
	padding: 12px 0;
	border-bottom: 1px solid var(--ambh-border);
	font-size: 14px;
}
.ambh-specs-table th { color: var(--ambh-grey); font-weight: 400; width: 40%; }
.ambh-specs-table td { color: var(--ambh-white); font-weight: 500; }
.ambh-single-desc { color: var(--ambh-grey); line-height: 1.8; margin-bottom: 28px; }
.ambh-single-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact page */
.ambh-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}
.ambh-contact-info h2 { margin-top: 0; }
.ambh-contact-info p { color: var(--ambh-grey); font-size: 15px; }
.ambh-contact-info a { color: var(--ambh-gold-light); }
.ambh-contact-actions { margin: 24px 0; }

/* Sélecteur de langue */
.ambh-top-bar {
	position: fixed;
	top: 14px;
	right: 14px;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(20,20,20,0.55);
	backdrop-filter: blur(6px);
	border: 1px solid var(--ambh-border);
	border-radius: 30px;
	padding: 6px 10px;
}
.ambh-lang-switcher { display: flex; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ambh-grey); }
.ambh-lang-switcher a { color: var(--ambh-grey); }
.ambh-lang-switcher a:hover { color: var(--ambh-gold); }

/* Responsive */
@media (max-width: 900px) {
	.ambh-grid { grid-template-columns: repeat(2, 1fr); }
	.ambh-services-grid { grid-template-columns: repeat(2, 1fr); }
	.ambh-about-grid, .ambh-single-grid, .ambh-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.ambh-grid { grid-template-columns: 1fr; }
	.ambh-services-grid { grid-template-columns: 1fr; }
	.ambh-hero-actions { flex-direction: column; }
	.ambh-whatsapp-btn { margin-left: 0 !important; }
}

/* RTL support (Arabe via Polylang) */
html[dir="rtl"] .ambh-single-actions,
html[dir="rtl"] .ambh-hero-actions { flex-direction: row-reverse; }
html[dir="rtl"] .ambh-specs-table th, html[dir="rtl"] .ambh-specs-table td { text-align: right; }
