/* Blue Mountain Site Kit: brand styles layered on the Kadence theme.
   Colors come from the Kadence global palette, with brand hex fallbacks. */
:root {
	--bm-slate: var(--global-palette1, #2E3E4F);
	--bm-slate-deep: var(--global-palette3, #1F2B38);
	--bm-text-2: var(--global-palette5, #526374);
	--bm-greige-deep: var(--global-palette7, #DDD5CE);
	--bm-greige: var(--global-palette8, #ECE6E1);
	--bm-light: var(--global-palette9, #F7F4F1);
	--bm-max: 1140px;
	--bm-head: var(--global-heading-font-family, 'Marcellus', Georgia, serif);
}

/* ---------- Bands (full-width sections) ---------- */
.bm-band {
	padding: clamp(56px, 9vw, 112px) 24px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.bm-band > *,
.bm-band > .wp-block-group__inner-container > * {
	max-width: var(--bm-max);
	margin-left: auto;
	margin-right: auto;
}
.bm-narrow > *,
.bm-narrow > .wp-block-group__inner-container > * { max-width: 760px; }
.bm-center, .bm-center-text { text-align: center; }
.bm-center .wp-block-buttons { justify-content: center; }

.bm-light { background: var(--bm-light); color: var(--bm-slate); }
.bm-greige { background: var(--bm-greige); color: var(--bm-slate); }
.bm-dark { background: var(--bm-slate-deep); color: var(--bm-greige); }
.bm-dark h1, .bm-dark h2, .bm-dark h3, .bm-dark a:not(.wp-block-button__link) { color: var(--bm-greige); }

.bm-band h1, .bm-band h2 { margin-top: 0; }

/* ---------- Type helpers ---------- */
.bm-eyebrow {
	font-size: .8rem !important;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--bm-text-2);
	margin-bottom: .6em !important;
}
.bm-dark .bm-eyebrow, .bm-hero .bm-eyebrow, .bm-pagehead .bm-eyebrow { color: rgba(236, 230, 225, .8); }
.bm-lede { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; opacity: .92; }
.bm-more a { text-decoration: none; letter-spacing: .08em; font-weight: 500; }

/* ---------- Buttons ---------- */
.bm-band .wp-block-button__link {
	border-radius: 0;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-size: .85rem;
	padding: 16px 28px;
}
.bm-band .is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: var(--bm-slate);
}
.bm-hero .wp-block-button__link,
.bm-dark .wp-block-button__link,
.bm-pagehead .wp-block-button__link { background: var(--bm-greige); color: var(--bm-slate-deep); }
.bm-hero .is-style-outline .wp-block-button__link,
.bm-dark .is-style-outline .wp-block-button__link { background: transparent; color: var(--bm-greige); }

/* ---------- Hero (home) ---------- */
.bm-hero {
	min-height: 86vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	color: var(--bm-greige);
	background:
		linear-gradient(180deg, rgba(31, 43, 56, .55), rgba(31, 43, 56, .45) 45%, rgba(31, 43, 56, .82)),
		var(--bm-hero-img) center / cover no-repeat,
		var(--bm-slate-deep);
}
.bm-hero .bm-lede { max-width: 680px; margin-left: auto; margin-right: auto; }
.bm-hero h1 { color: var(--bm-greige); font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.1; margin-bottom: .35em; }
.bm-hero .wp-block-buttons { justify-content: center; margin-top: 1.6em; }

/* ---------- Page header band ---------- */
.bm-pagehead {
	background: var(--bm-slate-deep);
	color: var(--bm-greige);
	text-align: center;
	padding-top: clamp(64px, 10vw, 128px);
}
.bm-pagehead h1 { color: var(--bm-greige); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.bm-pagehead .bm-lede { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Process steps ---------- */
.bm-steps { gap: 28px !important; margin-top: 40px; margin-bottom: 40px; text-align: left; }
.bm-step { border-top: 1px solid var(--bm-greige-deep); padding-top: 20px; }
.bm-step h3 { font-size: 1.3rem; margin: .2em 0 .4em; }
.bm-step p:last-child { color: var(--bm-text-2); line-height: 1.6; }
.bm-step-num { font-family: var(--bm-head); font-size: 1.6rem; color: var(--bm-text-2); margin: 0; }
.bm-step-row { display: grid; grid-template-columns: 80px 1fr; column-gap: 24px; padding: 32px 0; border-top: 1px solid var(--bm-greige-deep); }
.bm-step-row > .wp-block-group__inner-container { display: contents; } /* Kadence wraps group content in an inner container; let its children join the grid */
.bm-step-row > *, .bm-step-row > .wp-block-group__inner-container > * { margin-top: 0; max-width: none; margin-left: 0; margin-right: 0; }
.bm-step-row p:last-child { grid-column: 2; }
.bm-step-row .bm-step-num { grid-row: span 2; font-size: 2.4rem; line-height: 1; }
.bm-step-row h2 { font-size: 1.7rem; margin-bottom: .4em; }
@media (max-width: 600px) { .bm-step-row { grid-template-columns: 1fr; } .bm-step-row .bm-step-num { grid-row: auto; } .bm-step-row p:last-child { grid-column: 1; } }

/* ---------- Cards ---------- */
.bm-cards { gap: 28px !important; margin-top: 40px; }
.bm-card { background: var(--bm-light); padding: clamp(28px, 4vw, 44px); }
.bm-card h3 { font-size: 1.8rem; margin-top: 0; }
.bm-card ul { padding-left: 1.1em; line-height: 1.9; }

/* ---------- Split sections (services) ---------- */
.bm-split { align-items: center !important; gap: clamp(28px, 5vw, 64px) !important; }
.bm-split ul { padding-left: 1.1em; line-height: 1.9; }

/* ---------- Team ---------- */
.bm-band > .bm-team, .bm-band > .wp-block-group__inner-container > .bm-team { max-width: 860px; }
.bm-team { gap: 40px !important; margin-top: 40px; }
.bm-person .bm-photo-ph { aspect-ratio: 1 / 1; }
.bm-person h3 { margin: 18px 0 4px; font-size: 1.5rem; }

/* ---------- Photo placeholders ---------- */
.bm-photo-ph {
	aspect-ratio: 4 / 5;
	display: flex; align-items: center; justify-content: center;
	background: var(--bm-greige-deep);
	color: var(--bm-text-2);
	font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
	margin: 0;
}
.bm-photo-ph--wide { aspect-ratio: 4 / 3; }

/* ---------- Rendering-to-reality slider ---------- */
.bm-compare {
	position: relative;
	max-width: 1000px;
	margin: 40px auto 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--bm-greige-deep);
	user-select: none;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.bm-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; margin: 0; }
.bm-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.bm-compare__handle {
	position: absolute; top: 0; bottom: 0; left: var(--pos);
	width: 2px; margin-left: -1px; background: var(--bm-light); pointer-events: none;
}
.bm-compare__handle::after {
	content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--bm-light); color: var(--bm-slate);
	display: flex; align-items: center; justify-content: center; font-size: 13px; letter-spacing: 2px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.bm-compare__label {
	position: absolute; top: 16px; padding: 6px 12px;
	background: rgba(31, 43, 56, .75); color: var(--bm-greige);
	font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; pointer-events: none;
}
.bm-compare__label--before { left: 16px; }
.bm-compare__label--after { right: 16px; }
.bm-compare__range {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
	opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.bm-compare__range:focus-visible + * , .bm-compare:focus-within { outline: 3px solid var(--bm-text-2); outline-offset: 4px; }

/* ---------- Project cards ---------- */
.bm-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; margin: 40px auto; text-align: left; }
.bm-projects__card { display: block; text-decoration: none; color: inherit; }
.bm-projects__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bm-greige-deep); margin-bottom: 14px; }
.bm-projects__img img, .bm-projects__noimg { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bm-projects__card:hover img { transform: scale(1.04); }
.bm-projects__title { display: block; font-family: var(--bm-head); font-size: 1.35rem; color: var(--bm-slate-deep); }
.bm-projects__excerpt { display: block; color: var(--bm-text-2); margin-top: 6px; line-height: 1.6; }
.bm-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bm-filter a {
	padding: 8px 18px; border: 1px solid var(--bm-greige-deep); text-decoration: none;
	font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bm-slate);
}
.bm-filter a:hover, .bm-filter a.is-active { background: var(--bm-slate); border-color: var(--bm-slate); color: var(--bm-greige); }
.bm-empty { text-align: center; color: var(--bm-text-2); }

/* ---------- Contact ---------- */
.bm-contact { gap: clamp(28px, 5vw, 64px) !important; }
.bm-contact > .wp-block-column:first-child { flex-basis: 62% !important; }
.bm-contact h3 { font-size: 1.15rem; margin: 0 0 .3em; }
.bm-contact h3:not(:first-child) { margin-top: 1.6em; }
.bm-phone { display: inline-flex; flex-direction: column; gap: 2px; }
.bm-phone__name { font-family: var(--bm-head); font-size: 1.1rem; }
.bm-cta-phone { margin-top: 1.4em; }

.bm-form-card { background: var(--bm-greige); padding: clamp(24px, 4vw, 40px); color: var(--bm-slate); }
.bm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.bm-form__grid p { margin: 0 0 18px; }
.bm-form .bm-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .bm-form__grid { grid-template-columns: 1fr; } }
.bm-form label { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.bm-form input, .bm-form select, .bm-form textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--bm-slate-deep);
	background: var(--bm-light); border: 1px solid #C9BFB6; border-radius: 0; padding: 12px 14px;
}
.bm-form textarea { min-height: 140px; resize: vertical; }
.bm-form input:focus, .bm-form select:focus, .bm-form textarea:focus { outline: none; border-color: var(--bm-slate); box-shadow: 0 0 0 3px rgba(46, 62, 79, .18); }
.bm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bm-form__submit {
	width: 100%; cursor: pointer; border: 0; border-radius: 0; padding: 16px 20px;
	background: var(--bm-slate); color: var(--bm-greige);
	font: inherit; font-weight: 500; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase;
}
.bm-form__submit:hover { background: var(--bm-slate-deep); }
.bm-form__submit[disabled] { opacity: .6; cursor: wait; }
.bm-form__status { margin: 14px 0 0; text-align: center; }
.bm-form__status.is-error { color: #9B2C2C; }
.bm-form-thanks { text-align: center; padding: 24px 0; }
.bm-form-thanks h3 { margin-top: 0; }

/* ---------- Project single pages ---------- */
.single-bm_project .entry-content > .bm-eyebrow:first-child { text-align: center; }
.bm-testimonial { border-left: 3px solid var(--bm-slate) !important; font-family: var(--bm-head); font-size: 1.3rem; }
.bm-form *, .bm-compare * { box-sizing: border-box; }

/* Mobile: in the flipped split (photo left, text right), show the text first when stacked */
@media (max-width: 781px) {
	.bm-split--flip > .wp-block-column:first-child { order: 2; }
}

/* Owner */
.bm-owner { display: inline-flex; flex-direction: column; gap: 4px; }
.bm-owner__name { font-family: var(--bm-head); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--bm-slate-deep); }
.bm-owner__title { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--bm-text-2); }

/* Social links */
.bm-social { display: inline-flex; flex-direction: column; gap: 4px; }
