/* =========================================================
   Black Miles — main.css (v1.1)
   Aesthetic: refined minimalism, art-deco-adjacent.
   Includes Astra container fixes baked in.
   ========================================================= */

:root {
	--bm-ink:        #0a0a0a;
	--bm-ink-soft:   #1a1a1a;
	--bm-paper:      #f4f1ea;
	--bm-paper-soft: #ebe7dd;
	--bm-gold:       #b8935a;
	--bm-gold-soft:  #d4b886;
	--bm-rule:       rgba(10, 10, 10, 0.15);
	--bm-rule-dark:  rgba(244, 241, 234, 0.18);

	--bm-font-display: 'Cormorant Garamond', 'Times New Roman', serif;
	--bm-font-body:    'Manrope', system-ui, sans-serif;

	--bm-track:        0.18em;
	--bm-track-tight:  0.06em;

	--bm-max:          1240px;
	--bm-pad:          clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset + base ---------- */
html, body { overflow-x: hidden; }

body {
	background: var(--bm-paper);
	color: var(--bm-ink);
	font-family: var(--bm-font-body);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
	font-family: var(--bm-font-display);
	font-weight: 400;
	letter-spacing: var(--bm-track-tight);
	line-height: 1.1;
	margin: 0 0 0.6em;
}

a { color: inherit; text-decoration: none; transition: color 0.25s ease, opacity 0.25s ease; }
a:hover { color: var(--bm-gold); }

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

/* ---------- Astra container fixes (homepage) ---------- */
.home .site-content,
.home #primary,
.home .ast-container,
.home .entry-content,
.home .ast-article-single {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}
.home .entry-header,
.home .ast-archive-title,
.home .entry-title {
	display: none !important;
}

/* ---------- Shared bits ---------- */
.bm-eyebrow {
	display: inline-block;
	font-family: var(--bm-font-body);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: var(--bm-track);
	text-transform: uppercase;
	color: var(--bm-gold);
	margin-bottom: 1.2rem;
}

.bm-section__head {
	max-width: 720px;
	margin: 0 auto 3.5rem;
	text-align: center;
	padding: 0 var(--bm-pad);
}

.bm-section__title { font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 0; }
.bm-section__lede { margin-top: 1.2rem; font-size: 1.05rem; color: rgba(10, 10, 10, 0.7); }

.bm-btn {
	display: inline-block;
	padding: 0.95em 2.4em;
	font-family: var(--bm-font-body);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: var(--bm-track);
	text-transform: uppercase;
	border: 1px solid currentColor;
	background: transparent;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.bm-btn:hover { background: var(--bm-ink); color: var(--bm-paper); border-color: var(--bm-ink); }

.bm-btn--gold {
	color: var(--bm-paper);
	border-color: var(--bm-gold);
}
.bm-btn--gold:hover { background: var(--bm-gold); color: var(--bm-ink); border-color: var(--bm-gold); }

.bm-btn--ink {
	color: var(--bm-paper);
	background: transparent;
	border: 1px solid var(--bm-gold);
	align-self: flex-start;
}
.bm-btn--ink:hover { background: var(--bm-gold); color: var(--bm-ink); border-color: var(--bm-gold); }

/* ---------- Full-bleed dark sections ---------- */
.bm-hero,
.bm-arrival,
.bm-fleet,
.bm-detailing,
.bm-legal {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	position: relative;
}

/* ---------- Centered sections (light backgrounds) ---------- */
.bm-services,
.bm-contact {
	max-width: var(--bm-max);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: clamp(1.25rem, 4vw, 3rem) !important;
	padding-right: clamp(1.25rem, 4vw, 3rem) !important;
	width: 100%;
	position: relative;
}

/* ---------- HERO ---------- */
.bm-hero {
	min-height: 92vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(ellipse at 50% 30%, rgba(184, 147, 90, 0.08), transparent 60%),
		linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
	color: var(--bm-paper);
	overflow: hidden;
	padding: 6rem var(--bm-pad);
}
.bm-hero::before,
.bm-hero::after {
	content: '';
	position: absolute;
	width: 80px;
	height: 80px;
	border: 1px solid var(--bm-gold);
	opacity: 0.5;
}
.bm-hero::before { top: 32px; left: 32px; border-right: none; border-bottom: none; }
.bm-hero::after  { bottom: 32px; right: 32px; border-left: none; border-top: none; }

.bm-hero__inner {
	text-align: center;
	max-width: 820px;
	position: relative;
	animation: bm-fade-up 1.2s ease forwards;
}
.bm-hero__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}
.bm-hero__mark-line {
	flex: 1;
	max-width: 120px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--bm-gold) 50%, transparent);
}
.bm-hero__mark-letters {
	font-family: var(--bm-font-display);
	font-size: 2.2rem;
	letter-spacing: 0.3em;
	font-weight: 500;
	color: var(--bm-gold);
	padding-left: 0.3em;
}
.bm-hero__title {
	font-size: clamp(2.4rem, 6vw, 4.6rem);
	font-weight: 300;
	font-style: italic;
	line-height: 1.05;
	margin: 0 0 1.5rem;
	color: var(--bm-paper);
}
.bm-hero__subtitle {
	font-size: 1.05rem;
	font-weight: 300;
	letter-spacing: 0.04em;
	color: rgba(244, 241, 234, 0.75);
	margin: 0 0 2.8rem;
}
@keyframes bm-fade-up {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- ARRIVAL BAND ---------- */
.bm-arrival {
	min-height: 60vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.bm-arrival__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.75) 100%);
	z-index: 1;
}
.bm-arrival__inner {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 4rem var(--bm-pad);
}
.bm-arrival__caption {
	font-family: var(--bm-font-display);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.6rem, 3.5vw, 2.8rem);
	color: var(--bm-paper);
	letter-spacing: var(--bm-track-tight);
	margin: 0;
	max-width: 800px;
	line-height: 1.3;
}

/* ---------- SERVICES ---------- */
.bm-services { padding: 6rem var(--bm-pad); }

.bm-services__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1px;
	background: var(--bm-rule);
	border: 1px solid var(--bm-rule);
}
@media (max-width: 1100px) { .bm-services__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .bm-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .bm-services__grid { grid-template-columns: 1fr; } }

.bm-service-card {
	background: var(--bm-paper);
	padding: 2.6rem 2rem;
	transition: background 0.3s ease;
}
.bm-service-card:hover { background: var(--bm-paper-soft); }

.bm-service-card__icon {
	color: var(--bm-gold);
	width: 48px;
	height: 32px;
	margin-bottom: 1.6rem;
}
.bm-service-card__icon svg { width: 100%; height: 100%; }

.bm-service-card__title { font-size: 1.5rem; margin: 0 0 0.7rem; }
.bm-service-card__desc { font-size: 0.95rem; color: rgba(10, 10, 10, 0.7); margin: 0; }

/* ---------- FLEET ---------- */
.bm-fleet {
	padding: 6rem var(--bm-pad);
	background: var(--bm-ink);
	color: var(--bm-paper);
}
.bm-fleet .bm-section__title,
.bm-fleet .bm-section__lede { color: var(--bm-paper); }

.bm-fleet__grid {
	max-width: var(--bm-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
}
@media (max-width: 900px) { .bm-fleet__grid { grid-template-columns: 1fr; gap: 3rem; } }

.bm-fleet-item { text-align: center; }

.bm-fleet-item__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #1a1a1a;
	border: 1px solid var(--bm-rule-dark);
	margin-bottom: 1.5rem;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bm-gold);
	font-family: var(--bm-font-body);
	font-size: 0.7rem;
	letter-spacing: var(--bm-track);
	text-transform: uppercase;
}
.bm-fleet-item__image.is-placeholder::after {
	content: 'Photo coming soon';
	opacity: 0.4;
}

.bm-fleet-item__title { font-size: 1.6rem; margin: 0 0 0.4rem; }
.bm-fleet-item__meta { font-size: 0.9rem; color: rgba(244, 241, 234, 0.6); margin: 0; }

/* ---------- DETAILING ---------- */
.bm-detailing {
	background: var(--bm-ink);
	color: var(--bm-paper);
	padding: 0;
}
.bm-detailing__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 1400px;
	margin: 0 auto;
	min-height: 70vh;
}
@media (max-width: 900px) { .bm-detailing__inner { grid-template-columns: 1fr; } }

.bm-detailing__media {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 400px;
	position: relative;
}
.bm-detailing__media--placeholder {
	background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}
.bm-detailing__media--placeholder::after {
	content: 'Detailing photo';
	color: var(--bm-gold);
	font-family: var(--bm-font-body);
	font-size: 0.72rem;
	letter-spacing: var(--bm-track);
	text-transform: uppercase;
	opacity: 0.5;
}

.bm-detailing__content {
	padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.bm-detailing__title { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1.2rem; color: var(--bm-paper); }
.bm-detailing__lede {
	font-size: 1rem;
	color: rgba(244, 241, 234, 0.75);
	margin: 0 0 2.5rem;
	max-width: 500px;
	line-height: 1.65;
}

.bm-detailing__list {
	list-style: none;
	padding: 0;
	margin: 0 0 2.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2rem;
}
@media (max-width: 600px) { .bm-detailing__list { grid-template-columns: 1fr; } }

.bm-detailing__item {
	padding-left: 1.2rem;
	border-left: 1px solid var(--bm-gold);
}
.bm-detailing__item-title {
	font-family: var(--bm-font-display);
	font-size: 1.15rem;
	font-weight: 500;
	margin: 0 0 0.3rem;
	color: var(--bm-paper);
}
.bm-detailing__item-desc {
	font-size: 0.88rem;
	color: rgba(244, 241, 234, 0.6);
	margin: 0;
	line-height: 1.55;
}

/* ---------- CONTACT ---------- */
.bm-contact { padding: 6rem var(--bm-pad); }

.bm-contact__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 4rem;
	align-items: start;
}
@media (max-width: 800px) { .bm-contact__grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.bm-contact__form .wpcf7-form p { margin-bottom: 1.2rem; }

.bm-contact__form input[type="text"],
.bm-contact__form input[type="email"],
.bm-contact__form input[type="tel"],
.bm-contact__form input[type="date"],
.bm-contact__form input[type="number"],
.bm-contact__form textarea,
.bm-contact__form select {
	width: 100%;
	padding: 0.9rem 1rem;
	background: transparent;
	border: 1px solid var(--bm-rule);
	border-radius: 0;
	font-family: var(--bm-font-body);
	font-size: 0.95rem;
	color: var(--bm-ink);
	transition: border-color 0.25s ease;
}
.bm-contact__form input:focus,
.bm-contact__form textarea:focus,
.bm-contact__form select:focus {
	outline: none;
	border-color: var(--bm-gold);
}

.bm-contact__form .wpcf7-submit {
	padding: 0.95em 2.4em;
	background: var(--bm-ink);
	color: var(--bm-paper);
	border: 1px solid var(--bm-ink);
	font-family: var(--bm-font-body);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: var(--bm-track);
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}
.bm-contact__form .wpcf7-submit:hover {
	background: var(--bm-gold);
	color: var(--bm-ink);
	border-color: var(--bm-gold);
}

.bm-contact__aside {
	padding-left: 2rem;
	border-left: 1px solid var(--bm-rule);
}
@media (max-width: 800px) {
	.bm-contact__aside { padding-left: 0; border-left: none; border-top: 1px solid var(--bm-rule); padding-top: 2rem; }
}

.bm-contact__line { margin: 0 0 1.5rem; font-size: 0.95rem; }
.bm-contact__line strong {
	display: block;
	font-family: var(--bm-font-body);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: var(--bm-track);
	text-transform: uppercase;
	color: var(--bm-gold);
	margin-bottom: 0.4rem;
}

.bm-placeholder {
	padding: 2rem;
	border: 1px dashed var(--bm-rule);
	color: rgba(10, 10, 10, 0.5);
	text-align: center;
	font-size: 0.9rem;
}

/* ---------- LEGAL FOOTER ---------- */
.bm-legal {
	background: var(--bm-ink);
	color: rgba(244, 241, 234, 0.55);
	padding: 3rem var(--bm-pad);
	text-align: center;
	font-size: 0.78rem;
	letter-spacing: var(--bm-track-tight);
	line-height: 1.8;
	display: block;
	clear: both;
}
.bm-legal__brand { color: var(--bm-paper); margin: 0 0 0.4rem; }
.bm-legal p { margin: 0; }
.bm-legal a { color: var(--bm-gold-soft); }
.bm-legal__copy { margin-top: 1rem !important; font-size: 0.72rem; opacity: 0.6; }

/* ---------- Header / nav refinements (Astra overrides) ---------- */
.ast-builder-html-element a,
.main-navigation .menu-item a {
	font-family: var(--bm-font-body) !important;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: var(--bm-track);
	text-transform: uppercase;
}

/* ---------- Reveal on scroll ---------- */
.bm-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.bm-reveal.is-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Print ---------- */
@media print {
	.bm-hero { min-height: auto; padding: 2rem; }
	.bm-hero::before, .bm-hero::after { display: none; }
}

/* ============================================
   DELICATE TRANSPORT SECTION (v1.2)
   Mirror of Detailing layout but reversed and light.
   ============================================ */
.bm-transport {
	background: var(--bm-paper-soft);
	color: var(--bm-ink);
	padding: 0;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	position: relative;
}

.bm-transport__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 1400px;
	margin: 0 auto;
	min-height: 70vh;
}

@media (max-width: 900px) {
	.bm-transport__inner {
		grid-template-columns: 1fr;
	}
	.bm-transport__media {
		order: -1;
	}
}

.bm-transport__media {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 400px;
	position: relative;
}

.bm-transport__media--placeholder {
	background: linear-gradient(135deg, #ebe7dd 0%, #d9d2c2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bm-transport__media--placeholder::after {
	content: 'Transport photo';
	color: var(--bm-gold);
	font-family: var(--bm-font-body);
	font-size: 0.72rem;
	letter-spacing: var(--bm-track);
	text-transform: uppercase;
	opacity: 0.6;
}

.bm-transport__content {
	padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.bm-transport__title {
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 0 0 1.2rem;
	color: var(--bm-ink);
}

.bm-transport__lede {
	font-size: 1rem;
	color: rgba(10, 10, 10, 0.7);
	margin: 0 0 2.5rem;
	max-width: 500px;
	line-height: 1.65;
}

.bm-transport__list {
	list-style: none;
	padding: 0;
	margin: 0 0 2.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2rem;
}

@media (max-width: 600px) {
	.bm-transport__list {
		grid-template-columns: 1fr;
	}
}

.bm-transport__item {
	padding-left: 1.2rem;
	border-left: 1px solid var(--bm-gold);
}

.bm-transport__item-title {
	font-family: var(--bm-font-display);
	font-size: 1.15rem;
	font-weight: 500;
	margin: 0 0 0.3rem;
	color: var(--bm-ink);
}

.bm-transport__item-desc {
	font-size: 0.88rem;
	color: rgba(10, 10, 10, 0.6);
	margin: 0;
	line-height: 1.55;
}

.bm-transport .bm-btn {
	align-self: flex-start;
	color: var(--bm-ink);
	border-color: var(--bm-ink);
}

.bm-transport .bm-btn:hover {
	background: var(--bm-ink);
	color: var(--bm-paper);
}
