/*
Theme Name: The Aroma Bistro & Bar — H3
Theme URI: https://thearomabistro.ca/
Author: The Aroma Bistro & Bar
Description: The BrewHub home-3 layout carrying The Aroma Bistro & Bar brand guide — ink ground with cream reading bands, one oxblood field, terracotta highlights, gold rules, Cormorant Garamond over Hanken Grotesk, and the placed lotus lockup. Every home-3 band rebuilt natively: hero slider, word marquee with counters, product grid, video band, menu tabs, chefs, FAQ, timeline, testimonials and the contact band. No page builder, no commerce plugin — dishes, cart, forms and seeding are all theme-native.
Version: 1.8.9
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brewhub
*/

/* All styles live in assets/css/brewhub.css. */

/* =========================================================================
 * The menu, set as a printed card.
 *
 * The board runs to 180 plates. As a two-column grid of photo cards that is
 * a very long scroll and the eye never gets an overview, so the list is set
 * the way a printed menu is set instead: four columns of type, dish name and
 * price joined by a dotted leader, the photograph reduced to a small round
 * plate beside each line. CSS multi-column is used rather than grid because
 * a menu flows — an uneven course fills the columns naturally instead of
 * leaving a ragged hole.
 *
 * These rules deliberately outrank assets/css/parts/menupage.css: this file
 * is enqueued after every part, so equal specificity is enough.
 * ====================================================================== */

/*
 * Three columns, not four. At four the text column fell to ~250px, which a
 * long Cormorant title plus a price could not share — the board read cramped
 * and the names broke apart. Three gives every plate room to breathe.
 */
.bh-menugrid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
	columns: 3;
	column-gap: 3.25rem;
	orphans: 2;
	widows: 2;
}

/* An entry must never be split down the middle of a column. */
.bh-dish {
	break-inside: avoid;
	page-break-inside: avoid;
	display: grid;
	grid-template-columns: 4.25rem minmax(0, 1fr);
	align-items: start;
	gap: 0 1.05rem;
	margin: 0 0 1.75rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	transform: none;
}

.bh-dish:hover {
	transform: none;
	box-shadow: none;
	border-color: transparent;
}

/* The plate: a small disc, ringed in gold like a charger. */
.bh-dish__media {
	grid-row: span 3;
	width: 4.25rem;
	height: 4.25rem;
	margin: 0.15rem 0 0;
	border-radius: 50%;
	overflow: hidden;
	position: relative;
	border: 1px solid var(--bh-gold-soft);
	background: none;
	aspect-ratio: auto;
}

.bh-dish__media::after {
	content: none;
}

.bh-dish__shot,
.bh-dish__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
	aspect-ratio: 1;
	transform: none;
}

.bh-dish:hover .bh-dish__media img {
	transform: scale(1.06);
}

/* The badge cannot sit over a 52px disc; it follows the name instead. */
.bh-dish__badge {
	position: static;
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.1rem 0.55rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bh-gold) 22%, transparent);
	border: 1px solid var(--bh-gold-soft);
	color: var(--bh-gold);
	font-family: var(--bh-body);
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	vertical-align: middle;
}

.bh-dish__body {
	padding: 0;
	min-width: 0;
}

/* Name … price, joined by the leader that makes a menu read as a menu. */
.bh-dish__line {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0;
}

.bh-dish .bh-dish__name {
	margin: 0;
	font-family: var(--bh-display);
	font-size: 1.14rem;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.01em;
	color: var(--bh-white);
	white-space: normal;
	/*
	 * menupage.css sets overflow-wrap:anywhere on this element to stop a very
	 * long title painting outside the card. In a narrow board column that rule
	 * lets the title break between any two letters, so "Amritsari Stuffed
	 * Kulcha" stacked one character per line. break-word only breaks a word
	 * that cannot fit on a line of its own, which is the behaviour wanted here.
	 */
	overflow-wrap: break-word;
	word-break: normal;
}

.bh-dish__dots {
	flex: 1 1 auto;
	min-width: 1rem;
	border-bottom: 1px dotted color-mix(in srgb, var(--bh-gold) 45%, transparent);
	transform: translateY(-0.28rem);
}

.bh-dish__line .bh-price {
	flex: none;
	font-family: var(--bh-body);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: var(--bh-gold);
}

.bh-dish__note {
	margin: 0.32rem 0 0;
	font-size: 0.83rem;
	line-height: 1.6;
	color: color-mix(in srgb, var(--bh-text) 78%, transparent);
}

/* Deal markers ride under the description, clear of the name/price row. */
.bh-dish__tags {
	margin: 0.5rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

/* Outlined rather than a solid gold block — it reads as a mark on a card
   instead of a supermarket sticker, and stops competing with the price. */
body.bh .bh-dish__tags .bh-b1g1 {
	margin-left: 0;
	padding: 0.2rem 0.62rem;
	background: color-mix(in srgb, var(--bh-gold) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--bh-gold) 52%, transparent);
	color: var(--bh-gold);
	font-weight: 600;
	letter-spacing: 0.14em;
}

/* Course headings become ruled sub-titles, as on a printed card. */
.bh-menupage__course,
.bh-foodtype__course {
	margin: 2.4rem 0 1.35rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid color-mix(in srgb, var(--bh-gold) 30%, transparent);
	font-family: var(--bh-display);
	font-size: 1.35rem;
	font-weight: 500;
	font-style: italic;
	letter-spacing: 0.02em;
	color: var(--bh-gold);
	column-span: all;
}

.bh-menupage__course:first-child,
.bh-foodtype__course:first-child {
	margin-top: 0;
}

.bh-foodtype__course::after {
	content: none;
}

@media (max-width: 1200px) {
	.bh-menugrid {
		columns: 2;
	}
}

@media (max-width: 900px) {
	.bh-menugrid {
		columns: 2;
		column-gap: 2rem;
	}
}

@media (max-width: 620px) {
	.bh-menugrid {
		columns: 1;
	}

	.bh-dish {
		margin-bottom: 1.25rem;
	}
}

/*
 * The reviews carousel shows an initial where a portrait used to be.
 *
 * It occupies the same grid slot the photograph did, so the layout is
 * unchanged — but it asserts nothing about who the guest is, which a borrowed
 * stock face would.
 */
.bh-review__initial {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 15rem;
	background:
		radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--bh-oxblood) 65%, transparent), transparent 70%),
		var(--bh-field);
	border-right: 1px solid var(--bh-border);
	font-family: var(--bh-display);
	font-size: clamp(3.5rem, 7vw, 5.5rem);
	font-weight: 500;
	line-height: 1;
	color: var(--bh-gold);
	user-select: none;
}

@media (max-width: 60em) {
	.bh-review__initial {
		min-height: 7rem;
		border-right: 0;
		border-bottom: 1px solid var(--bh-border);
		font-size: 3rem;
	}
}

/*
 * Two things that overflowed on a phone.
 *
 * .bh-factgrid (the home page contact band) never collapsed below its
 * multi-column layout, so the last column was cut off the screen; and
 * WordPress's own comment textarea keeps its intrinsic cols=45 width because
 * the theme's field rule only ever matched .bh-form.
 */
@media (max-width: 40em) {
	.bh-factgrid {
		grid-template-columns: 1fr;
	}
}

.bh-comments :is(input, textarea, select) {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* --- Deal ribbon controls ------------------------------------------------ */

/*
 * The standing deals are easy to read past as a block of text, so the ribbon
 * carries its own buttons straight to the Happy Hour board.
 */
.bh-menuribbon__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.15rem;
}

.bh-menuribbon__actions .bh-btn {
	font-size: 0.72rem;
	padding: 0.62rem 1.15rem;
}

/* Happy Hour is a deal, not a course — the tab is marked so it reads apart
   from the rest of the board without shouting. */
body.bh .bh-menutabs #bh-menu-tab-happy-hour {
	border-color: color-mix(in srgb, var(--bh-gold) 62%, transparent);
	color: var(--bh-gold);
}

body.bh .bh-menutabs #bh-menu-tab-happy-hour::before {
	content: '';
	display: inline-block;
	width: 0.4rem;
	height: 0.4rem;
	margin-right: 0.45rem;
	border-radius: 50%;
	background: var(--bh-gold);
	vertical-align: middle;
}

/* --- Guest reviews, set as a grid of rated cards -------------------------- */

.bh-reviews--grid .bh-reviews__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 2.5rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.bh-reviews--grid .bh-reviews__lede {
	max-width: 46ch;
	margin: 0.9rem 0 0;
	color: var(--bh-text);
}

.bh-reviews__cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
}

.bh-reviews__note {
	margin: 0;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	color: color-mix(in srgb, var(--bh-text) 55%, transparent);
}

.bh-reviews__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.25rem;
}

/* The card: a quiet field with a gold hairline, lifting on hover. */
.bh-rev {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1.6rem 1.5rem;
	border: 1px solid var(--bh-border);
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(239, 231, 221, 0.045), rgba(239, 231, 221, 0.012));
	transition: var(--bh-ease);
}

.bh-rev:hover {
	border-color: var(--bh-gold-soft);
	transform: translateY(-3px);
}

.bh-rev__stars {
	display: inline-flex;
	gap: 0.18rem;
}

.bh-rev__stars svg {
	width: 0.95rem;
	height: 0.95rem;
	fill: var(--bh-gold);
}

.bh-rev__quote {
	margin: 0;
	flex: 1;
	font-family: var(--bh-display);
	font-size: 1.06rem;
	font-style: italic;
	line-height: 1.5;
	color: var(--bh-cream);
}

.bh-rev__who {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--bh-border);
}

.bh-rev__avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	border: 1px solid var(--bh-gold-soft);
	background: color-mix(in srgb, var(--bh-oxblood) 55%, transparent);
	font-family: var(--bh-display);
	font-size: 1.15rem;
	line-height: 1;
	color: var(--bh-gold);
	user-select: none;
}

.bh-rev__name {
	margin: 0;
	font-family: var(--bh-body);
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--bh-cream);
}

.bh-rev__role {
	margin: 0.1rem 0 0;
	font-size: 0.75rem;
	color: color-mix(in srgb, var(--bh-text) 72%, transparent);
}

@media (max-width: 700px) {
	.bh-reviews--grid .bh-reviews__head {
		align-items: flex-start;
	}
}

/* --- Photographed plates, strip at the top of the board ------------------- */

.bh-menushots {
	list-style: none;
	margin: 0 0 clamp(2.2rem, 5vw, 3.4rem);
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 1rem;
}

.bh-menushot {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: var(--bh-ink);
	border: 1px solid var(--bh-border);
	aspect-ratio: 4 / 3;
}

.bh-menushot__media {
	position: absolute;
	inset: 0;
	display: block;
}

body.bh .bh-menushot__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
	transition: transform 0.6s ease;
}

body.bh .bh-menushot:hover .bh-menushot__media img {
	transform: scale(1.06);
}

.bh-menushot__body {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.1rem;
	padding: 0.8rem 0.9rem;
	background: linear-gradient(
		to top,
		rgba(22, 17, 15, 0.9) 0%,
		rgba(22, 17, 15, 0.45) 45%,
		rgba(22, 17, 15, 0) 78%
	);
}

.bh-menushot__name {
	font-family: var(--bh-display);
	font-size: 1.05rem;
	line-height: 1.15;
	color: var(--bh-cream);
}

body.bh .bh-menushot .bh-price {
	font-family: var(--bh-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--bh-gold);
}

/* --- Plates awaiting a photograph ---------------------------------------- */

/*
 * A dish is only ever shown with its own photograph. Anything not yet shot
 * wears the house lotus on an ink disc: on brand, it claims nothing about the
 * plate, and the gold ring keeps the column of thumbs visually even.
 */
.bh-dish__media--await {
	display: grid;
	place-items: center;
	background:
		radial-gradient(100% 100% at 50% 25%, rgba(200, 138, 54, 0.16), transparent 70%),
		var(--bh-ink);
	border-color: color-mix(in srgb, var(--bh-gold) 45%, transparent);
}

.bh-dish__await {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

body.bh .bh-dish__await .bh-lotus {
	width: 52%;
	height: auto;
	margin: 0;
	border-radius: 0;
	opacity: 0.92;
	transform: none;
}

body.bh .bh-dish:hover .bh-dish__await .bh-lotus {
	transform: none;
}

/* --- Everyday Special (thali) card --------------------------------------- */

/*
 * The card is a cream panel, but headings inside it were taking the global
 * cream heading colour — inheritance from the card's own `color: ink` loses to
 * any direct rule on h3/h4. The result was an apparently empty card: the title
 * and all three thali names were painting cream on cream. They are set
 * explicitly here, and the title is enlarged and given the oxblood + gold rule
 * so it carries the same weight as "Buy 1 Get 1 Free" opposite it.
 */
body.bh .bh-specials__card--thali :is(h2, h3, h4) {
	color: var(--bh-ink);
}

body.bh .bh-specials__card--thali .bh-specials__name {
	position: relative;
	margin: 0.1rem 0 0.9rem;
	padding-bottom: 0.75rem;
	font-size: clamp(2.1rem, 4.2vw, 3.1rem);
	line-height: 1.04;
	letter-spacing: -0.01em;
	color: var(--bh-oxblood);
}

body.bh .bh-specials__card--thali .bh-specials__name::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 4.5rem;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--bh-gold), color-mix(in srgb, var(--bh-gold) 10%, transparent));
}

/* The three thali names sat invisible above their leaders. */
body.bh .bh-specials__card--thali .bh-specials__row h4 {
	font-family: var(--bh-display);
	font-size: 1.22rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--bh-ink);
	white-space: normal;
	overflow-wrap: break-word;
}

body.bh .bh-specials__card--thali .bh-specials__row .bh-price {
	color: var(--bh-oxblood);
	font-weight: 600;
}

/* --- Happy Hour: a deal, presented as one -------------------------------- */

.bh-hh {
	display: flex;
	align-items: center;
	gap: clamp(1.1rem, 3vw, 2.2rem);
	margin: 0 0 clamp(2rem, 4vw, 2.8rem);
	padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.4rem, 3.5vw, 2.2rem);
	border: 1px solid color-mix(in srgb, var(--bh-gold) 42%, transparent);
	border-radius: 18px;
	background:
		radial-gradient(120% 160% at 12% 0%, rgba(200, 138, 54, 0.17), transparent 62%),
		linear-gradient(180deg, rgba(239, 231, 221, 0.045), rgba(239, 231, 221, 0.012));
}

/* The monogram: a gold coin that reads as a stamp on the card. */
.bh-hh__mark {
	flex: none;
	display: grid;
	place-items: center;
	width: clamp(3.6rem, 8vw, 5.2rem);
	height: clamp(3.6rem, 8vw, 5.2rem);
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--bh-gold) 55%, transparent);
	background: radial-gradient(100% 100% at 50% 20%, rgba(200, 138, 54, 0.28), transparent 70%);
	font-family: var(--bh-display);
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
	letter-spacing: 0.04em;
	line-height: 1;
	color: var(--bh-gold);
}

.bh-hh__body {
	min-width: 0;
}

.bh-hh__label {
	margin: 0;
	font-family: var(--bh-body);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--bh-gold);
}

.bh-hh__times {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem 0.7rem;
	margin: 0.3rem 0 0;
	font-family: var(--bh-display);
	font-size: clamp(1.6rem, 4vw, 2.5rem);
	line-height: 1.05;
	color: var(--bh-cream);
	font-variant-numeric: lining-nums;
	font-feature-settings: 'lnum' 1;
}

.bh-hh__times small {
	font-size: 0.46em;
	letter-spacing: 0.06em;
	margin-left: 0.1em;
	color: var(--bh-sand);
}

.bh-hh__times em {
	font-family: var(--bh-body);
	font-style: normal;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--bh-text) 70%, transparent);
}

.bh-hh__note {
	margin: 0.55rem 0 0;
	max-width: 56ch;
	font-size: 0.88rem;
	line-height: 1.6;
	color: color-mix(in srgb, var(--bh-text) 82%, transparent);
}

/* Inside the Happy Hour panel the prices are the point, so they get a chip. */
body.bh .bh-menupage__panel--hh .bh-dish__line .bh-price {
	padding: 0.16rem 0.5rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--bh-gold) 40%, transparent);
	background: color-mix(in srgb, var(--bh-gold) 12%, transparent);
	color: var(--bh-gold);
	font-weight: 600;
}

body.bh .bh-menupage__panel--hh .bh-menupage__course {
	color: var(--bh-cream);
	border-bottom-color: color-mix(in srgb, var(--bh-gold) 45%, transparent);
}

@media (max-width: 620px) {
	.bh-hh {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
}

/* --- Blog: city filter + card meta --------------------------------------- */

.bh-blogfilter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0 0 clamp(2rem, 4vw, 2.8rem);
}

.bh-blogfilter .bh-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--bh-border);
	border-radius: 999px;
	font-family: var(--bh-body);
	font-size: 0.76rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bh-text);
	text-decoration: none;
	transition: var(--bh-ease);
}

.bh-blogfilter .bh-pill span {
	font-size: 0.68rem;
	opacity: 0.6;
}

.bh-blogfilter .bh-pill:hover {
	border-color: var(--bh-gold-soft);
	color: var(--bh-gold);
}

.bh-blogfilter .bh-pill.is-active {
	border-color: color-mix(in srgb, var(--bh-gold) 62%, transparent);
	background: color-mix(in srgb, var(--bh-gold) 12%, transparent);
	color: var(--bh-gold);
}

.bh-card__meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 0.5rem;
}

.bh-card__tag {
	padding: 0.16rem 0.55rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--bh-gold) 45%, transparent);
	font-family: var(--bh-body);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bh-gold);
}

.bh-card__meta .bh-card__date {
	margin: 0;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: color-mix(in srgb, var(--bh-text) 65%, transparent);
}

/* --- Journal: the answer passage and the FAQ ----------------------------- */

/*
 * The opening paragraph answers the headline on its own, which is the passage
 * an answer engine lifts. It is set apart so a reader gets the same benefit.
 */
.bh-answer {
	margin: 0 0 1.6rem;
	padding: 1.1rem 1.3rem;
	border-left: 2px solid var(--bh-gold);
	border-radius: 0 10px 10px 0;
	background: color-mix(in srgb, var(--bh-gold) 8%, transparent);
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--bh-cream);
}

.bh-postfaq {
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	padding-top: clamp(1.4rem, 3vw, 2rem);
	border-top: 1px solid var(--bh-border);
}

.bh-postfaq h2 {
	margin: 0 0 1rem;
}

.bh-postfaq__item {
	border-bottom: 1px solid var(--bh-border);
	padding: 0.9rem 0;
}

.bh-postfaq__item summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	font-family: var(--bh-display);
	font-size: 1.12rem;
	color: var(--bh-cream);
}

.bh-postfaq__item summary::-webkit-details-marker {
	display: none;
}

.bh-postfaq__item summary::before {
	content: '+';
	flex: none;
	font-family: var(--bh-body);
	font-size: 1rem;
	line-height: 1;
	color: var(--bh-gold);
}

.bh-postfaq__item[open] summary::before {
	content: '\2013';
}

.bh-postfaq__item p {
	margin: 0.6rem 0 0 1.2rem;
	color: var(--bh-text);
	line-height: 1.7;
}

/* --- Reservation embed (a booking service in place of the theme form) ----- */

.bh-reserve-embed {
	max-width: 720px;
	margin: 0 auto;
}

.bh-reserve-embed iframe {
	width: 100%;
	min-height: 620px;
	border: 0;
	border-radius: 14px;
	background: var(--bh-field, rgba(239, 231, 221, 0.04));
}

/* A widget that lays itself out (script-injected) just needs room and a floor. */
.bh-reserve-embed > div {
	min-height: 120px;
}
