/* 93 Brew — "bolder" components layer: designed footer, individual drink
 * pages, clickable menu cards, hero entrance and directional scroll reveals.
 * Loads after enhance.css. Palette variables come from site.css / menu.css. */

/* =========================================================================
 * 1. Clickable menu cards
 *    A stretched link covers the whole card so tapping it opens the drink.
 * ====================================================================== */
.brew-card {
	position: relative;
	cursor: pointer;
}
.brew-card__link {
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
}
.brew-card__link:focus-visible {
	outline: 2px solid var(--brew-accent);
	outline-offset: 3px;
}

/* =========================================================================
 * 2. Individual drink page (templates/single-menu_item.php)
 * ====================================================================== */
.brew-single {
	padding: 44px 0 80px;
}
.brew-single__back {
	display: inline-block;
	margin-bottom: 26px;
	color: var(--brew-muted);
	text-decoration: none;
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	transition: color 0.2s ease, transform 0.2s ease;
}
.brew-single__back:hover {
	color: var(--brew-accent);
	transform: translateX(-3px);
}
.brew-single__grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 52px;
	align-items: center;
}
.brew-single__media {
	border-radius: 22px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #efe6d9;
	box-shadow: 0 26px 60px rgba(42, 33, 26, 0.16);
}
.brew-single__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.brew-single__media.is-empty {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #efe6d9, #e2d3bf);
}
.brew-single__mark {
	font-family: "Fraunces", serif;
	font-size: clamp(4rem, 10vw, 7rem);
	color: rgba(138, 109, 79, 0.45);
	line-height: 1;
}
.brew-single__cat {
	display: inline-block;
	margin-bottom: 12px;
	text-decoration: none;
}
.brew-single__cat:hover {
	color: var(--brew-ink);
}
.brew-single__title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1.04;
	margin: 0 0 10px;
}
.brew-single__price {
	font-family: "Fraunces", serif;
	font-size: 1.55rem;
	color: var(--brew-accent);
	margin: 12px 0 16px;
}
.brew-single__desc {
	font-size: 1.12rem;
	line-height: 1.65;
	color: var(--brew-ink);
	opacity: 0.9;
	margin: 0;
}
.brew-single__note {
	color: var(--brew-muted);
	font-style: italic;
	margin: 8px 0 0;
}
.brew-single .brew-addons {
	margin-top: 16px;
}
.brew-single__cta {
	margin-top: 26px;
}
.brew-single__related {
	margin-top: 76px;
}
@media (max-width: 820px) {
	.brew-single__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.brew-single__related {
		margin-top: 52px;
	}
}

/* Hero entrance — the drink page's photo + info glide in on load (CSS-only,
   so it works even without the JS engine; disabled for reduced motion). */
@media (prefers-reduced-motion: no-preference) {
	html.brew-anim-ready .brew-single__media {
		animation: brew-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
	html.brew-anim-ready .brew-single__info {
		animation: brew-rise 0.85s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
}

/* =========================================================================
 * 3. Rich footer — replaces Hello Elementor's empty default
 * ====================================================================== */
.site-footer {
	display: none !important; /* replaced by .brew-footer */
}

.brew-footer {
	position: relative;
	overflow: hidden;
	background: var(--brew-deep);
	color: #e8ddd0;
	margin-top: 64px;
}
.brew-footer::before {
	content: "";
	position: absolute;
	top: -45%;
	right: -8%;
	width: 540px;
	height: 540px;
	background: radial-gradient(circle, rgba(138, 109, 79, 0.30), transparent 68%);
	pointer-events: none;
}
.brew-footer__inner {
	position: relative;
	max-width: 1120px;
	margin: 0 auto;
	padding: 66px 20px 34px;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.1fr;
	gap: 44px;
}
.brew-footer__brand-name {
	font-family: "Fraunces", serif;
	font-size: 1.55rem;
	color: #fff;
	margin: 0 0 12px;
}
.brew-footer__blurb {
	color: rgba(232, 221, 208, 0.72);
	line-height: 1.7;
	max-width: 40ch;
	margin: 0;
}
.brew-footer h4 {
	font-family: "Inter", sans-serif;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--brew-accent);
	margin: 0 0 18px;
}
.brew-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.brew-footer li {
	margin-bottom: 11px;
}
.brew-footer a {
	color: #d9c7b3;
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.2s ease;
}
.brew-footer__nav a:hover,
.brew-footer__blurb + a:hover {
	color: #fff;
	padding-left: 5px;
}
.brew-footer__cta {
	display: inline-block;
	margin-top: 18px;
	background: var(--brew-accent);
	color: #fff !important;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 600;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.brew-footer__cta:hover {
	background: #a07f5c;
	transform: translateY(-2px);
	padding-left: 24px !important;
}
.brew-footer__bar {
	position: relative;
	border-top: 1px solid rgba(232, 221, 208, 0.14);
}
.brew-footer__bar-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	justify-content: space-between;
	color: rgba(232, 221, 208, 0.62);
	font-size: 0.85rem;
}
.brew-footer__bar-inner a {
	color: rgba(232, 221, 208, 0.62);
}
.brew-footer__bar-inner a:hover {
	color: #fff;
}
@media (max-width: 820px) {
	.brew-footer__inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-top: 52px;
	}
}

/* =========================================================================
 * 4. Directional scroll reveals — gentle left/right variety for the trios.
 *    Overrides only the animation-name from enhance.css (keeps its timing).
 * ====================================================================== */
@keyframes brew-rise-left {
	from { opacity: 0; transform: translate(-28px, 16px); }
	to   { opacity: 1; transform: translate(0, 0); }
}
@keyframes brew-rise-right {
	from { opacity: 0; transform: translate(28px, 16px); }
	to   { opacity: 1; transform: translate(0, 0); }
}
html.brew-anim-ready .brew-feat__item:nth-child(3n + 1).is-visible,
html.brew-anim-ready .brew-values__item:nth-child(3n + 1).is-visible {
	animation-name: brew-rise-left;
}
html.brew-anim-ready .brew-feat__item:nth-child(3n).is-visible,
html.brew-anim-ready .brew-values__item:nth-child(3n).is-visible {
	animation-name: brew-rise-right;
}

@media (prefers-reduced-motion: reduce) {
	html.brew-anim-ready .brew-single__media,
	html.brew-anim-ready .brew-single__info {
		animation: none !important;
	}
}
