/* Gastronome — happenings.css
 * Styles for the Happenings (events) feature. Single event page, archive grid,
 * the shared event card, the brand-detail "Upcoming" section, the floating
 * dismissible widget, and the homepage news-card "Event" add-ons.
 *
 * House style mirrors b2b.css / home.css / news.css: pure-black ground, white
 * type, thin uppercase overlines (11px / .2em / rgba(255,255,255,.5)), big
 * display titles in var(--font-display), light body in var(--font-body) 300,
 * 1px rgba(255,255,255,.08) dividers, white-on-hover transitions, arrows that
 * translateX(4px) on hover. Tokens (--page / --font-display / --font-body /
 * --ease-brand) come from base.css :root.
 */

/* ═══════════════════════════════════════════════════════════════════════
   SHARED CARD — .hap-card (used in brand section + archive grid)
   Horizontal layout: media column (aspect 4/5) + body column. Stacks under
   767px. Readable on pure black.
   ═══════════════════════════════════════════════════════════════════════ */
.hap-card {
	display: grid;
	grid-template-columns: minmax(140px, 38%) 1fr;
	gap: clamp(20px, 3vw, 40px);
	align-items: stretch;
}

.hap-card-media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: #0a0a0a;
}
.hap-card-img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	filter: brightness(0.82) saturate(0.92);
	transform: scale(1.01);
	transition: transform 0.8s var(--ease-brand), filter 0.5s ease;
}
.hap-card:hover .hap-card-img {
	transform: scale(1.05);
	filter: brightness(1) saturate(1);
}
/* Hairline draw under the image on hover — the recurring news-card motif. */
.hap-card-media::after {
	content: ''; position: absolute; bottom: 0; left: 0; z-index: 2;
	width: 0; height: 1px; background: #fff;
	transition: width 0.6s var(--ease-brand);
}
.hap-card:hover .hap-card-media::after { width: 100%; }

.hap-card-body {
	display: flex; flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 14px;
	min-width: 0;
}
.hap-card-date {
	font-family: var(--font-body);
	font-size: 11px; font-weight: 500;
	text-transform: uppercase; letter-spacing: 0.2em;
	color: rgba(255,255,255,0.5);
}
.hap-card-title {
	font-family: var(--font-display);
	font-size: clamp(20px, 2.2vw, 30px);
	font-weight: 700; line-height: 1.08;
	letter-spacing: -0.005em;
	margin: 0;
}
.hap-card-title a {
	color: #fff;
	transition: color 0.3s ease;
}
.hap-card:hover .hap-card-title a,
.hap-card-title a:hover { color: #999; }
.hap-card-desc {
	font-family: var(--font-body); font-weight: 300;
	font-size: 14px; line-height: 1.55;
	color: rgba(255,255,255,0.62);
	margin: 0;
	max-width: 46ch;
}
/* Small inline uppercase CTA with arrow. */
.hap-card-cta {
	display: inline-flex; align-items: center; gap: 8px;
	margin-top: 4px;
	font-family: var(--font-body);
	font-size: 11px; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.18em;
	color: rgba(255,255,255,0.75);
	transition: color 0.35s ease, letter-spacing 0.35s ease;
}
.hap-card-cta:hover { color: #fff; letter-spacing: 0.22em; }
.hap-card-cta-arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}
.hap-card-cta:hover .hap-card-cta-arrow { transform: translateX(4px); }

@media (max-width: 767px) {
	.hap-card {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.hap-card-media { aspect-ratio: 16 / 10; }
	.hap-card-body { justify-content: flex-start; gap: 12px; }
	.hap-card-title { font-size: clamp(22px, 6.5vw, 30px); }
}

/* ═══════════════════════════════════════════════════════════════════════
   BRAND SECTION — .gn-happenings-section (on single shop / restaurant)
   Generous vertical padding, header (overline + display title), .hap-sec-list
   of cards in one column. Top + bottom hairline dividers separate it from
   neighbouring sections.
   ═══════════════════════════════════════════════════════════════════════ */
.gn-happenings-section {
	padding: clamp(72px, 11vh, 128px) var(--page);
	border-top: 1px solid rgba(255,255,255,0.08);
	border-bottom: 1px solid rgba(255,255,255,0.08);
	background: #000;
}
.hap-sec-head {
	max-width: 1440px;
	margin: 0 auto clamp(40px, 6vh, 64px);
}
.hap-sec-overline {
	display: block;
	font-family: var(--font-body);
	font-size: 11px; font-weight: 500;
	text-transform: uppercase; letter-spacing: 0.2em;
	color: rgba(255,255,255,0.5);
	margin-bottom: 20px;
}
.hap-sec-title {
	font-family: var(--font-display);
	font-size: clamp(32px, 4.5vw, 60px);
	font-weight: 700; line-height: 1.0;
	letter-spacing: -0.005em;
	color: #fff;
	margin: 0;
}
.hap-sec-list {
	max-width: 1440px;
	margin: 0 auto;
	display: flex; flex-direction: column;
	gap: clamp(32px, 5vh, 56px);
}

@media (max-width: 767px) {
	.hap-sec-overline { font-size: 10px; margin-bottom: 14px; }
	.hap-sec-title { font-size: clamp(30px, 9vw, 48px); }
}

/* ═══════════════════════════════════════════════════════════════════════
   ARCHIVE — .gn-happening-archive
   Head (overline + big title), responsive grid of .hap-card (1 col mobile,
   up to 2 desktop), empty state.
   ═══════════════════════════════════════════════════════════════════════ */
.gn-happening-archive {
	background: #000;
	color: #fff;
}
.hap-archive-head {
	padding: calc(var(--nav-h) + 48px) var(--page) clamp(40px, 7vh, 72px);
	border-bottom: 1px solid rgba(255,255,255,0.08);
	max-width: 1440px;
	margin: 0 auto;
}
.hap-archive-overline {
	display: block;
	font-family: var(--font-body);
	font-size: 11px; font-weight: 500;
	text-transform: uppercase; letter-spacing: 0.2em;
	color: rgba(255,255,255,0.5);
	margin-bottom: 22px;
}
.hap-archive-title {
	font-family: var(--font-display);
	font-size: clamp(40px, 6.5vw, 96px);
	font-weight: 700; line-height: 0.95;
	letter-spacing: -0.005em;
	color: #fff;
	margin: 0;
}
.hap-archive-grid {
	max-width: 1440px;
	margin: 0 auto;
	padding: clamp(48px, 8vh, 88px) var(--page) clamp(96px, 14vh, 160px);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 64px);
}
.hap-archive-empty {
	max-width: 1440px;
	margin: 0 auto;
	padding: clamp(64px, 12vh, 140px) var(--page) clamp(96px, 16vh, 180px);
	font-family: var(--font-body); font-weight: 300;
	font-size: clamp(16px, 1.6vw, 22px);
	line-height: 1.6;
	color: rgba(255,255,255,0.55);
	max-width: 620px;
}

@media (max-width: 767px) {
	.hap-archive-head {
		padding: calc(var(--nav-h) + 24px) var(--page) 40px;
	}
	.hap-archive-overline { font-size: 10px; margin-bottom: 16px; }
	.hap-archive-grid {
		grid-template-columns: 1fr;
		gap: 48px;
		padding: 48px var(--page) 80px;
	}
}

/* ═══════════════════════════════════════════════════════════════════════
   SINGLE — .gn-happening
   Hero with optional cover image above the content, big title + intro. Body
   is a max-width readable column. .hap-cta is the primary white-on-black
   button (inverts on hover, mirrors b2b/contact submit). .hap-hosts is a
   small rail of brand links.
   ═══════════════════════════════════════════════════════════════════════ */
.gn-happening {
	background: #000;
	color: #fff;
}

/* ── hero ── */
.hap-hero {
	padding: 0 0 clamp(40px, 7vh, 72px);
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Optional cover image — full-bleed band above the title block. */
.hap-hero-media {
	position: relative;
	overflow: hidden;
	height: 64vh; height: 64svh;
	max-height: 720px; min-height: 380px;
	margin-bottom: clamp(40px, 6vh, 72px);
}
.hap-hero-img {
	width: 100%; height: 100%;
	object-fit: cover; display: block;
	filter: brightness(0.62) saturate(0.95);
}
/* Bottom fade so the band melts into the black page. */
.hap-hero-media::after {
	content: ''; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg,
		rgba(0,0,0,0.25) 0%,
		rgba(0,0,0,0.0) 35%,
		rgba(0,0,0,0.0) 60%,
		rgba(0,0,0,0.85) 100%);
}
.hap-hero-inner {
	max-width: 880px;
	margin: 0 auto;
	padding: 0 var(--page);
}
/* When there is no cover image, push the hero text clear of the fixed nav. */
.hap-hero > .hap-hero-inner:first-child {
	padding-top: calc(var(--nav-h) + 60px);
}
.hap-overline {
	display: block;
	font-family: var(--font-body);
	font-size: 11px; font-weight: 500;
	text-transform: uppercase; letter-spacing: 0.2em;
	color: rgba(255,255,255,0.5);
	margin-bottom: 22px;
}
.hap-title {
	font-family: var(--font-display);
	font-size: clamp(40px, 6.5vw, 96px);
	font-weight: 700; line-height: 0.95;
	letter-spacing: -0.005em;
	color: #fff;
	margin: 0 0 26px;
}
.hap-title .mask-line { display: block; }
.hap-desc {
	font-family: var(--font-body); font-weight: 300;
	font-size: clamp(16px, 1.5vw, 21px);
	line-height: 1.6;
	color: rgba(255,255,255,0.72);
	max-width: 640px;
	margin: 0;
}

/* ── body — readable centered column ── */
.hap-body {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(56px, 9vh, 100px) var(--page) clamp(48px, 7vh, 80px);
	font-family: var(--font-body);
	font-size: 17px; line-height: 1.7;
	color: rgba(255,255,255,0.85);
}
.hap-body > * + * { margin-top: 24px; }
.hap-body h2 {
	font-family: var(--font-display);
	font-size: clamp(24px, 2.5vw, 32px);
	font-weight: 700;
	margin-top: 48px; margin-bottom: 16px;
	color: #fff;
}
.hap-body h3 {
	font-size: 20px; font-weight: 600;
	margin-top: 36px; margin-bottom: 12px; color: #fff;
}
.hap-body p { color: rgba(255,255,255,0.8); }
.hap-body a {
	color: #fff;
	border-bottom: 1px solid rgba(255,255,255,0.3);
	transition: border-color 0.3s ease;
}
.hap-body a:hover { border-color: #fff; }
.hap-body img {
	margin: 32px calc(var(--page) * -1);
	width: calc(100% + var(--page) * 2);
	max-width: calc(100% + var(--page) * 2);
}
.hap-body blockquote {
	border-left: 2px solid rgba(255,255,255,0.2);
	padding-left: 24px; margin: 36px 0;
	font-size: 22px; line-height: 1.5;
	color: #999; font-style: italic;
}
.hap-body ul,
.hap-body ol { padding-left: 22px; color: rgba(255,255,255,0.8); }
.hap-body li + li { margin-top: 10px; }

/* ── primary CTA — white-on-black, inverts on hover (b2b/contact submit) ── */
.hap-cta {
	display: inline-flex; align-items: center; gap: 10px;
	margin-top: 8px;
	padding: 16px 40px;
	background: #fff; color: #000;
	font-family: var(--font-body);
	font-size: 11px; font-weight: 600;
	letter-spacing: 0.22em; text-transform: uppercase;
	border: 1px solid #fff;
	transition: background 0.4s ease, color 0.4s ease, letter-spacing 0.4s ease;
	-webkit-tap-highlight-color: transparent;
}
.hap-cta:hover {
	background: transparent; color: #fff;
	letter-spacing: 0.28em;
}
.hap-cta-arrow { transition: transform 0.3s ease; }
.hap-cta:hover .hap-cta-arrow { transform: translateX(4px); }

/* ── hosts — small rail of brand links ── */
.hap-hosts {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(40px, 6vh, 64px) var(--page) clamp(80px, 12vh, 140px);
	border-top: 1px solid rgba(255,255,255,0.08);
	display: flex; flex-wrap: wrap; align-items: center;
	gap: 14px 20px;
}
.hap-hosts-label {
	font-family: var(--font-body);
	font-size: 11px; font-weight: 500;
	text-transform: uppercase; letter-spacing: 0.2em;
	color: rgba(255,255,255,0.5);
	margin-right: 4px;
}
.hap-host-link {
	display: inline-flex; align-items: center;
	font-family: var(--font-body); font-weight: 300;
	font-size: 15px;
	color: rgba(255,255,255,0.8);
	padding-bottom: 2px;
	border-bottom: 1px solid rgba(255,255,255,0.2);
	transition: color 0.35s ease, border-color 0.35s ease;
}
.hap-host-link:hover { color: #fff; border-bottom-color: #fff; }

@media (max-width: 767px) {
	.hap-hero-media {
		height: 46vh; height: 46svh;
		min-height: 300px;
		margin-bottom: 36px;
	}
	.hap-hero > .hap-hero-inner:first-child {
		padding-top: calc(var(--nav-h) + 32px);
	}
	.hap-overline { font-size: 10px; margin-bottom: 16px; }
	.hap-title { font-size: clamp(34px, 11vw, 56px); margin-bottom: 18px; }
	.hap-desc { font-size: 15px; }
	.hap-body { font-size: 16px; }
	.hap-body img { margin: 24px 0; width: 100%; max-width: 100%; }
	.hap-cta { padding: 14px 32px; font-size: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   WIDGET — .hap-widget
   Fixed bottom-right frosted card. Default off-screen (translateY 140% +
   opacity 0 + pointer-events none). .is-visible slides it in; .is-hidden
   slides it back out (used when the in-page section is on screen).
   ═══════════════════════════════════════════════════════════════════════ */
.hap-widget {
	position: fixed;
	bottom: 24px; right: 24px;
	z-index: 60;
	width: 340px; max-width: 340px;
	background: rgba(10,10,10,0.55);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 14px;
	box-shadow: 0 18px 48px rgba(0,0,0,0.55);
	overflow: hidden;
	/* default hidden / off-screen */
	transform: translateY(140%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.8s var(--ease-brand), opacity 0.5s ease;
}
.hap-widget.is-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}
.hap-widget.is-hidden {
	transform: translateY(140%);
	opacity: 0;
	pointer-events: none;
}

.hap-widget-inner {
	display: flex; align-items: center;
	gap: 14px;
	padding: 12px 40px 12px 12px; /* right room for the close button */
	text-decoration: none;
}
.hap-widget-media {
	flex-shrink: 0;
	width: 56px; height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: #111;
	display: block;
}
.hap-widget-img {
	width: 100%; height: 100%;
	object-fit: cover; display: block;
}
.hap-widget-text {
	display: flex; flex-direction: column;
	gap: 5px;
	min-width: 0; /* enables ellipsis on the line below */
}
.hap-widget-overline {
	font-family: var(--font-body);
	font-size: 10px; font-weight: 500;
	text-transform: uppercase; letter-spacing: 0.2em;
	color: rgba(255,255,255,0.5);
}
.hap-widget-line {
	font-family: var(--font-body); font-weight: 300;
	font-size: 14px; line-height: 1.3;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.3s ease;
}
.hap-widget-inner:hover .hap-widget-line { color: rgba(255,255,255,0.78); }

.hap-widget-close {
	position: absolute;
	top: 8px; right: 8px;
	width: 26px; height: 26px;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: rgba(255,255,255,0.5);
	font-size: 18px; line-height: 1;
	cursor: pointer;
	transition: color 0.3s ease, background 0.3s ease;
	-webkit-tap-highlight-color: transparent;
}
.hap-widget-close:hover {
	color: #fff;
	background: rgba(255,255,255,0.08);
}

@media (max-width: 767px) {
	.hap-widget {
		left: 16px; right: 16px;
		bottom: 16px;
		width: auto; max-width: none;
	}
}

/* Reduced motion — no slide; just fade the visibility toggle. */
@media (prefers-reduced-motion: reduce) {
	.hap-widget {
		transform: none;
		transition: opacity 0.3s ease;
	}
	.hap-widget.is-visible { transform: none; }
	.hap-widget.is-hidden { transform: none; opacity: 0; }

	.hap-card-img,
	.hap-card-media::after,
	.hap-card-cta,
	.hap-card-cta-arrow,
	.hap-cta,
	.hap-cta-arrow { transition: none; }
}

/* Touch / coarse pointer — drop the (expensive) backdrop blur, use a near
   solid panel instead. Mirrors the base.css mobile perf pattern. */
@media (hover: none) and (pointer: coarse) {
	.hap-widget {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: rgba(12,12,12,0.96);
	}
}

/* ═══════════════════════════════════════════════════════════════════════
   HOMEPAGE CARD ADD-ONS — layered on top of the existing .news-card
   (defined in home.css / news.css). Only positioning + the small "Event"
   badge pill; must NOT alter the existing .news-card grid sizing.
   ═══════════════════════════════════════════════════════════════════════ */
.news-card.news-card--happening {
	position: relative;
}
.news-card-badge {
	position: absolute;
	top: 12px; left: 12px;
	z-index: 2;
	display: inline-block;
	padding: 6px 12px;
	background: #fff;
	color: #000;
	font-family: var(--font-body);
	font-size: 10px; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.15em;
	line-height: 1;
	border-radius: 2px;
	pointer-events: none;
}
