/**
 * The Private Events page.
 *
 * Seven bands alternating ground: a photographic page head, the ink intro with
 * the capacity figure, one cream band for the rooms (which sets every colour
 * of its own, since the dark-ground rules do not adapt), ink again for the
 * occasions and the four steps, then the oxblood enquiry panel the page
 * exists to feed and a closing call strip.
 *
 * The head photograph is set from an inline style in
 * page-templates/events.php — a url() written here would resolve against this
 * folder and 404.
 */

/* 1. Page head ------------------------------------------------------------ */

body.bh .bh-ev-head {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--bh-oxblood);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center 58%;
	padding-block: clamp(8.5rem, 13vw, 11.5rem) clamp(3.5rem, 6vw, 5.5rem);
}

/* Two washes: one that keeps the composite dark enough for cream and gold
   small type, one that lands on flat oxblood at the lower edge so the band
   meets the intro without a seam. */
body.bh .bh-ev-head::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(22, 17, 15, 0.82) 0%, rgba(110, 43, 46, 0.9) 100%),
		linear-gradient(180deg, rgba(22, 17, 15, 0) 55%, var(--bh-oxblood) 100%);
}

.bh-ev-head__lede {
	max-width: 44rem;
	margin: 1.4rem auto 0;
	color: var(--bh-cream);
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	line-height: 1.7;
}

/* 2. Intro ---------------------------------------------------------------- */

.bh-ev-intro {
	background: var(--bh-ink);
	padding-block: clamp(4rem, 8vw, 7rem);
}

.bh-ev-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 1fr);
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: start;
}

.bh-ev-intro__body .bh-heading {
	margin-bottom: 1.6rem;
}

.bh-ev-intro__lede {
	color: var(--bh-cream);
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
	line-height: 1.65;
	margin: 0 0 1.2rem;
}

.bh-ev-intro__body p {
	color: var(--bh-sand);
	margin: 0 0 1.2rem;
	max-width: 40rem;
}

.bh-ev-intro__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2rem;
}

/* The capacity figure — a card, deliberately quieter than the home band's
   full-width count so the two never read as the same furniture. */
.bh-ev-figure {
	border: 1px solid var(--bh-border);
	border-top: 2px solid var(--bh-gold);
	border-radius: 4px;
	background: var(--bh-field);
	padding: clamp(1.8rem, 3vw, 2.6rem);
	text-align: center;
}

.bh-ev-figure .bh-lotus {
	width: 28px;
	height: 28px;
	margin-bottom: 1rem;
}

.bh-ev-figure__num {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0.02em;
	margin: 0;
	font-family: var(--bh-display);
	font-weight: 500;
	font-size: clamp(4rem, 9vw, 6.4rem);
	line-height: 0.85;
	letter-spacing: -0.03em;
	color: var(--bh-cream);
	font-variant-numeric: tabular-nums;
}

.bh-ev-figure__plus {
	margin-top: 0.1em;
	font-size: 0.42em;
	color: var(--bh-gold);
}

.bh-ev-figure__label {
	margin: 1rem 0 0;
	font-family: var(--bh-body);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--bh-gold);
}

.bh-ev-figure__note {
	margin: 1rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--bh-border);
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--bh-sand);
}

/* Three promises, hung off gold hairlines. */
.bh-ev-promises {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.6rem, 4vw, 3rem);
	list-style: none;
	margin: clamp(3rem, 6vw, 4.5rem) 0 0;
	padding: 0;
}

.bh-ev-promise {
	padding-top: 1.4rem;
	border-top: 1px solid var(--bh-gold-soft);
}

.bh-ev-promise h3 {
	font-family: var(--bh-display);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--bh-cream);
	margin: 0 0 0.6rem;
}

.bh-ev-promise p {
	margin: 0;
	color: var(--bh-sand);
	font-size: 0.96rem;
	line-height: 1.7;
}

/* 3. The spaces — the one light band ------------------------------------- */

.bh-ev-spaces {
	background: var(--bh-cream);
	color: #5a4c41;
	padding-block: clamp(4rem, 8vw, 7rem);
}

body.bh .bh-ev-spaces :is(h2, h3, .bh-display) {
	color: var(--bh-ink);
}

body.bh .bh-ev-spaces .bh-eyebrow {
	color: var(--bh-gold-deep);
}

/* Body copy inherits the band's own colour rather than being set on `p`:
   an element selector here would out-specify the single-class rules below
   and quietly repaint the gold rate line. */

.bh-ev-rooms {
	display: grid;
	/* min() keeps the track from out-growing a narrow viewport and forcing
	   the page to scroll sideways. */
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
	gap: clamp(1.5rem, 3vw, 2.25rem);
}

.bh-ev-room {
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(22, 17, 15, 0.16);
	border-radius: 4px;
	overflow: hidden;
	transition: var(--bh-ease);
}

.bh-ev-room:hover {
	border-color: rgba(138, 90, 24, 0.55);
	transform: translateY(-3px);
}

.bh-ev-room__media {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: rgba(22, 17, 15, 0.08);
}

/*
 * body.bh outweighs Elementor's own `img { height: auto }`, which loads after
 * this sheet on pages the builder renders and un-crops the panorama photos.
 */
body.bh .bh-ev-room__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
}

/* Crops cycled so the same photograph never sits the same way twice. */
body.bh .bh-ev-room:nth-child(2n) .bh-ev-room__media img {
	object-position: center 35%;
}

.bh-ev-room:nth-child(3n) .bh-ev-room__media img {
	object-position: 40% 60%;
}

.bh-ev-room__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: clamp(1.4rem, 2.6vw, 2rem);
}

.bh-ev-room__name {
	font-family: var(--bh-display);
	font-size: clamp(1.5rem, 2.4vw, 1.85rem);
	font-weight: 500;
	margin: 0 0 0.7rem;
}

.bh-ev-room__copy {
	margin: 0 0 1.4rem;
	font-size: 0.95rem;
	line-height: 1.7;
}

.bh-ev-room__caps {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 1.2rem 0 0;
	border-top: 1px solid rgba(22, 17, 15, 0.16);
}

.bh-ev-room__num {
	display: block;
	font-family: var(--bh-display);
	font-weight: 500;
	font-size: 2.4rem;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--bh-ink);
	font-variant-numeric: tabular-nums;
}

.bh-ev-room__cap {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #6b5c50;
}

.bh-ev-room__from {
	margin: 1.1rem 0 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bh-gold-deep);
}

.bh-ev-room__features {
	list-style: none;
	margin: 1.3rem 0 0;
	padding: 1.3rem 0 0;
	border-top: 1px solid rgba(22, 17, 15, 0.16);
}

.bh-ev-room__features li {
	position: relative;
	padding-left: 1.4rem;
	margin-bottom: 0.55rem;
	font-size: 0.92rem;
	line-height: 1.6;
}

.bh-ev-room__features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 0.7rem;
	height: 1px;
	background: var(--bh-gold-deep);
}

/* `.bh a` paints every link cream for the dark grounds, so the link on this
   light band has to out-specify it or it disappears into the card. */
body.bh .bh-ev-room__link {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 1.3rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bh-gold-deep);
	border-bottom: 1px solid transparent;
}

body.bh .bh-ev-room__link:hover {
	color: var(--bh-ink);
	border-bottom-color: var(--bh-gold-deep);
}

/*
 * The section's closing word: set as an aside in the display italic (at the
 * brand's 20px Cormorant floor) under a short gold rule, so the band ends on
 * a considered note instead of a stray sentence.
 */
.bh-ev-rooms__note {
	position: relative;
	max-width: 40rem;
	margin: clamp(2.4rem, 5vw, 3.5rem) auto 0;
	padding-top: 1.4rem;
	text-align: center;
	font-family: var(--bh-display);
	font-style: italic;
	font-size: 1.25rem;
	line-height: 1.55;
	color: #6b5c50;
}

.bh-ev-rooms__note::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	translate: -50% 0;
	width: 44px;
	height: 1px;
	background: var(--bh-gold);
}

/* body.bh outranks the later-loading global link reset. */
body.bh .bh-ev-rooms__note a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 4. Occasions ------------------------------------------------------------ */

.bh-ev-occasions {
	background: var(--bh-ink);
	padding-block: clamp(4rem, 8vw, 7rem);
}

.bh-ev-occasions__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--bh-border);
}

.bh-ev-occasion {
	padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 2.5vw, 2rem);
	border-bottom: 1px solid var(--bh-border);
	border-right: 1px solid var(--bh-border);
}

.bh-ev-occasion:nth-child(3n) {
	border-right: 0;
}

.bh-ev-occasion h3 {
	font-family: var(--bh-display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(1.5rem, 2.4vw, 1.9rem);
	color: var(--bh-cream);
	margin: 0 0 0.7rem;
}

.bh-ev-occasion p {
	margin: 0;
	color: var(--bh-sand);
	font-size: 0.94rem;
	line-height: 1.7;
}

/* 5. How it works --------------------------------------------------------- */

.bh-ev-steps {
	background: var(--bh-ink);
	padding-block: 0 clamp(4rem, 8vw, 7rem);
}

.bh-ev-steps__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.5rem, 3.5vw, 2.75rem);
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}

.bh-ev-step {
	padding-top: 1.6rem;
	border-top: 1px solid var(--bh-gold-soft);
}

.bh-ev-step__num {
	/* A span is inline: its bottom margin is ignored and the oversized glyph
	   spills into the heading beneath it. As a block the numeral owns a row. */
	display: block;
	margin: 0 0 0.6rem;
	font-family: var(--bh-display);
	font-weight: 500;
	font-size: clamp(3rem, 6vw, 4.5rem);
	line-height: 0.85;
	letter-spacing: -0.03em;
	color: var(--bh-gold);
	font-variant-numeric: tabular-nums;
}

.bh-ev-step__name {
	font-family: var(--bh-display);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--bh-cream);
	margin: 0 0 0.6rem;
}

.bh-ev-step__copy {
	margin: 0;
	color: var(--bh-sand);
	font-size: 0.94rem;
	line-height: 1.7;
}

/* 6. The enquiry panel ---------------------------------------------------- */

.bh-ev-enquiry {
	background: var(--bh-ink);
	padding-block: 0 clamp(4rem, 8vw, 7rem);
}

.bh-ev-panel {
	display: grid;
	grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 5vw, 4rem);
	background: var(--bh-oxblood);
	border: 1px solid rgba(239, 231, 221, 0.22);
	border-radius: 6px;
	padding: clamp(1.8rem, 5vw, 3.75rem);
}

.bh-ev-panel__aside .bh-lotus {
	width: 30px;
	height: 30px;
	margin-bottom: 1.1rem;
}

body.bh .bh-ev-panel__aside .bh-eyebrow {
	color: var(--bh-cream);
	opacity: 0.75;
}

body.bh .bh-ev-panel__aside .bh-display {
	color: var(--bh-cream);
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
	margin-bottom: 1.2rem;
}

.bh-ev-panel__lede {
	color: var(--bh-cream);
	font-size: 0.98rem;
	line-height: 1.75;
	margin: 0;
	opacity: 0.92;
}

.bh-ev-panel__facts {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

.bh-ev-panel__facts li {
	padding: 1rem 0;
	border-top: 1px solid rgba(239, 231, 221, 0.24);
}

.bh-ev-panel__facts li:last-child {
	border-bottom: 1px solid rgba(239, 231, 221, 0.24);
}

.bh-ev-panel__facts span {
	display: block;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(239, 231, 221, 0.65);
	margin-bottom: 0.35rem;
}

.bh-ev-panel__facts strong {
	display: block;
	font-family: var(--bh-display);
	font-weight: 500;
	font-size: 1.25rem;
	line-height: 1.35;
	color: var(--bh-cream);
}

body.bh .bh-ev-panel__phone {
	color: var(--bh-cream);
	border-bottom: 1px solid var(--bh-gold-soft);
}

body.bh .bh-ev-panel__phone:hover {
	color: var(--bh-gold);
}

/* The form itself, on oxblood: fields lift, gold marks focus. */
.bh-ev-form {
	color-scheme: dark;
}

.bh-ev-form input,
.bh-ev-form select,
.bh-ev-form textarea {
	background: rgba(239, 231, 221, 0.1);
	border-color: rgba(239, 231, 221, 0.3);
	color: var(--bh-cream);
}

.bh-ev-form ::placeholder {
	color: rgba(239, 231, 221, 0.55);
}

.bh-ev-form input:focus,
.bh-ev-form select:focus,
.bh-ev-form textarea:focus {
	outline: none;
	border-color: var(--bh-gold);
	background: rgba(239, 231, 221, 0.16);
}

/* The caret is an inline data URI, not a file: nothing here resolves against
   this folder. */
.bh-ev-form select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23efe7dd' d='M6 8 0 1.4 1.4 0 6 4.6 10.6 0 12 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 11px 7px;
	padding-right: 2.6rem;
}

.bh-ev-form option {
	background: var(--bh-ink);
	color: var(--bh-cream);
}

.bh-ev-form textarea {
	resize: vertical;
}

/* On oxblood the primary button inverts to cream, matching the reservation
   band — gold is never a control in this theme. */
body.bh .bh-ev-panel .bh-btn--gold {
	background: var(--bh-cream);
	border-color: var(--bh-cream);
	color: var(--bh-oxblood);
}

body.bh .bh-ev-panel .bh-btn--gold:hover {
	background: transparent;
	color: var(--bh-cream);
}

.bh-ev-form__submit {
	margin-top: 0.6rem;
	padding-inline: 2rem;
}

/* .is-ok / .is-error keep the theme's own note colours — both clear 4.5:1
   on oxblood — so the neutral state has to exclude them: it is a later
   sheet at equal specificity and would otherwise repaint every reply cream. */
.bh-ev-form .bh-form__note:not(.is-ok):not(.is-error) {
	color: var(--bh-cream);
}

/* 7. Closing call strip --------------------------------------------------- */

.bh-ev-call {
	background: var(--bh-ink);
	border-top: 1px solid var(--bh-border);
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.bh-ev-call__inner {
	max-width: 44rem;
	text-align: center;
}

.bh-ev-call .bh-lotus {
	width: 32px;
	height: 32px;
	margin-bottom: 1.2rem;
}

body.bh .bh-ev-call .bh-display {
	font-size: clamp(1.9rem, 3.6vw, 2.8rem);
	margin-bottom: 1rem;
}

.bh-ev-call p {
	color: var(--bh-sand);
	margin: 0;
	line-height: 1.7;
}

.bh-ev-call__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.8rem;
	margin-top: 2rem;
}

.bh-ev-call__hours {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem 2rem;
	margin-top: 2.2rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--bh-border);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(217, 207, 194, 0.75);
}

.bh-ev-call__hours strong {
	color: var(--bh-gold);
	font-weight: 500;
	letter-spacing: 0.06em;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 62rem) {
	.bh-ev-intro__grid {
		grid-template-columns: 1fr;
	}

	.bh-ev-figure {
		max-width: 26rem;
	}

	.bh-ev-promises,
	.bh-ev-steps__list {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Three promises in two columns would leave an orphan; the third takes
	   the full width instead, and its hairline reads as a deliberate rule. */
	.bh-ev-promises > .bh-ev-promise:last-child {
		grid-column: 1 / -1;
	}

	.bh-ev-occasions__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bh-ev-occasion:nth-child(3n) {
		border-right: 1px solid var(--bh-border);
	}

	.bh-ev-occasion:nth-child(2n) {
		border-right: 0;
	}

	.bh-ev-panel {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 40rem) {
	.bh-ev-promises,
	.bh-ev-steps__list,
	.bh-ev-occasions__grid {
		grid-template-columns: 1fr;
	}

	.bh-ev-occasion,
	.bh-ev-occasion:nth-child(3n) {
		border-right: 0;
		padding-inline: 0;
	}

	.bh-ev-figure {
		max-width: none;
	}

	.bh-ev-intro__cta .bh-btn,
	.bh-ev-call__cta .bh-btn {
		justify-content: center;
		flex: 1 1 14rem;
	}

	.bh-ev-room__caps {
		gap: 1.5rem;
	}
}

/* The enquiry aside's photograph — rendered only once the file exists, so
   the slot is invisible until the client's shot is dropped in. */
.bh-ev-panel__photo {
	margin: 1.6rem 0 0;
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	aspect-ratio: 3 / 2;
}

body.bh .bh-ev-panel__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
