/**
 * Venue Framework — component styles.
 * BEM (vf-c-*), design tokens overridable by the theme, AA contrast,
 * reduced-motion aware. ~small and dependency-free by design.
 */

:root {
	--vf-ink: #101112;
	--vf-charcoal: #1b1d1f;
	--vf-graphite: #2a2d30;
	--vf-paper: #faf8f5;
	--vf-linen: #f1ede6;
	--vf-body: #3a3c3e;
	--vf-muted: #6e6a5f;
	--vf-brass: #b8934a;
	--vf-brass-strong: #8c6d2f;
	--vf-gold: #c9a25c;
	--vf-warn: #a8621f;
	--vf-error: #b3372f;
	--vf-success: #2f7d4f;
	--vf-radius: 20px;
	--vf-radius-sm: 12px;
	--vf-shadow: 0 8px 30px rgba(16, 17, 18, 0.08);
	--vf-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
	--vf-font-display: "Fraunces", Georgia, serif;
	--vf-font-text: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Primitives ---------- */

.vf-c-eyebrow {
	font-family: var(--vf-font-text);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vf-brass-strong);
	margin: 0 0 0.75rem;
}
.vf-c-eyebrow--light { color: var(--vf-gold); }

.vf-c-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 52px;
	padding: 0.9rem 1.75rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-family: var(--vf-font-text);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s var(--vf-ease), box-shadow 0.2s var(--vf-ease), background 0.2s var(--vf-ease), color 0.2s var(--vf-ease);
}
.vf-c-btn:hover { transform: translateY(-2px); box-shadow: var(--vf-shadow); }
.vf-c-btn:focus-visible { outline: 2px solid var(--vf-gold); outline-offset: 2px; }
.vf-c-btn--gold { background: var(--vf-gold); color: var(--vf-ink); }
.vf-c-btn--gold:hover { background: #d4b06e; color: var(--vf-ink); }
.vf-c-btn--ink { background: var(--vf-ink); color: #fff; }
.vf-c-btn--ink:hover { background: var(--vf-charcoal); color: #fff; }
.vf-c-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.vf-c-btn--ghost-light:hover { border-color: #fff; color: #fff; }
.vf-c-btn--ghost-dark { background: transparent; color: var(--vf-ink); border-color: rgba(16, 17, 18, 0.25); }
.vf-c-btn--text { background: none; color: var(--vf-brass-strong); padding: 0.25rem 0; min-height: 0; font-weight: 600; }
.vf-c-btn--text:hover { transform: none; box-shadow: none; color: var(--vf-ink); }
.vf-c-btn--xl { min-height: 64px; padding: 1.1rem 2.5rem; font-size: 1.125rem; }

.vf-c-empty { color: var(--vf-muted); font-style: italic; }

/* ---------- Hero ---------- */

.vf-c-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(420px, 70vh, 720px);
	background: var(--vf-ink);
	color: #fff;
	overflow: hidden;
}
.vf-c-hero--compact { min-height: clamp(280px, 40vh, 420px); }
.vf-c-hero__media, .vf-c-hero__media img.vf-c-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.vf-c-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(16, 17, 18, 0.25), rgba(16, 17, 18, 0.82));
}
.vf-c-hero__inner {
	position: relative;
	width: min(1200px, 92vw);
	margin: 0 auto;
	padding: clamp(3rem, 8vw, 6rem) 0;
}
.vf-c-hero__title {
	font-family: var(--vf-font-display);
	font-size: clamp(2.4rem, 6vw, 4.25rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 1rem;
	max-width: 18ch;
	color: #fff;
}
.vf-c-hero__meta { color: rgba(255, 255, 255, 0.85); font-size: 1.0625rem; margin: 0 0 1.5rem; }

/* ---------- Stats ---------- */

.vf-c-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
	text-align: center;
}
.vf-c-stats__number {
	display: block;
	font-family: var(--vf-font-display);
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 600;
	color: var(--vf-brass-strong);
	line-height: 1;
}
.vf-c-stats__label {
	display: block;
	margin-top: 0.6rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vf-muted);
}

/* ---------- Event cards ---------- */

.vf-c-event-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.vf-c-event-grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }
.vf-c-event-grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.vf-c-event-grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

.vf-c-event-card {
	background: #fff;
	border-radius: var(--vf-radius);
	overflow: hidden;
	box-shadow: var(--vf-shadow);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s var(--vf-ease), box-shadow 0.25s var(--vf-ease);
}
.vf-c-event-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(16, 17, 18, 0.13); }
.vf-c-event-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--vf-linen); }
.vf-c-event-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--vf-ease); }
.vf-c-event-card:hover .vf-c-event-card__img { transform: scale(1.04); }
.vf-c-event-card__date-chip {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--vf-ink);
	color: #fff;
	border-radius: 14px;
	padding: 0.5rem 0.8rem;
	text-align: center;
	line-height: 1.1;
}
.vf-c-event-card__date-day { display: block; font-family: var(--vf-font-display); font-size: 1.35rem; font-weight: 600; }
.vf-c-event-card__date-month { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--vf-gold); }
.vf-c-event-card__badge {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(16, 17, 18, 0.85);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
}
.vf-c-event-card--sold_out .vf-c-event-card__img,
.vf-c-event-card--completed .vf-c-event-card__img { filter: grayscale(0.7); }
.vf-c-event-card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.vf-c-event-card__title { font-family: var(--vf-font-display); font-size: 1.35rem; line-height: 1.2; margin: 0; }
.vf-c-event-card__title a { color: var(--vf-ink); text-decoration: none; }
.vf-c-event-card__title a:hover { color: var(--vf-brass-strong); }
.vf-c-event-card__meta { color: var(--vf-muted); font-size: 0.9rem; margin: 0; }
.vf-c-event-card__price { font-weight: 700; color: var(--vf-ink); margin: 0; }
.vf-c-event-card .vf-c-btn--text { margin-top: auto; }

/* ---------- Progress / scarcity ---------- */

.vf-c-progress { margin: 0.5rem 0; }
.vf-c-progress__track { background: var(--vf-linen); border-radius: 999px; height: 8px; overflow: hidden; }
.vf-c-progress__fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--vf-brass), var(--vf-gold));
	transition: width 0.6s var(--vf-ease);
}
.vf-c-progress__label { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; color: var(--vf-muted); margin: 0.4rem 0 0; }
.vf-c-progress--low .vf-c-progress__fill { background: linear-gradient(90deg, var(--vf-warn), #c47b35); }
.vf-c-progress--low .vf-c-progress__label { color: var(--vf-warn); font-weight: 600; }

/* ---------- Countdown ---------- */

.vf-c-countdown { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.vf-c-countdown__tile {
	min-width: 78px;
	padding: 0.9rem 0.6rem;
	text-align: center;
	border-radius: 16px;
	background: rgba(250, 248, 245, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
.vf-c-countdown__number { display: block; font-family: var(--vf-font-display); font-size: 1.9rem; font-weight: 600; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.vf-c-countdown__label { display: block; margin-top: 0.35rem; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vf-gold); }

/* ---------- Ticket box ---------- */

.vf-c-ticket-box__form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1rem; }
.vf-c-ticket-box__qty-label { font-weight: 600; font-size: 0.9rem; }
.vf-c-ticket-box__qty {
	width: 84px;
	min-height: 52px;
	padding: 0.5rem 0.9rem;
	border: 1px solid #ddd6ca;
	border-radius: var(--vf-radius-sm);
	background: var(--vf-linen);
	font-size: 1rem;
}
.vf-c-ticket-box__qty:focus-visible { outline: 2px solid var(--vf-gold); outline-offset: 1px; }
.vf-c-ticket-box__secure { font-size: 0.8rem; color: var(--vf-muted); margin-top: 0.75rem; }
.vf-c-ticket-box__soldout { font-family: var(--vf-font-display); font-size: 1.4rem; color: var(--vf-error); font-weight: 600; }
.vf-c-ticket-box__note { color: var(--vf-muted); }

/* ---------- Gallery ---------- */

.vf-c-gallery__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.75rem; }
.vf-c-gallery__filter {
	border: 1px solid rgba(16, 17, 18, 0.18);
	background: transparent;
	color: var(--vf-body);
	border-radius: 999px;
	padding: 0.55rem 1.2rem;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s var(--vf-ease);
}
.vf-c-gallery__filter:hover { border-color: var(--vf-brass-strong); color: var(--vf-brass-strong); }
.vf-c-gallery__filter.is-active { background: var(--vf-ink); border-color: var(--vf-ink); color: #fff; }
.vf-c-gallery__filter:focus-visible { outline: 2px solid var(--vf-gold); outline-offset: 2px; }

.vf-c-gallery__grid { columns: 3 280px; column-gap: 1.25rem; }
.vf-c-gallery__item { break-inside: avoid; margin: 0 0 1.25rem; border-radius: var(--vf-radius-sm); overflow: hidden; }
.vf-c-gallery__item.is-hidden { display: none; }
.vf-c-gallery__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--vf-radius-sm); overflow: hidden; }
.vf-c-gallery__zoom:focus-visible { outline: 2px solid var(--vf-gold); outline-offset: 2px; }
.vf-c-gallery__img { width: 100%; height: auto; display: block; transition: transform 0.35s var(--vf-ease); }
.vf-c-gallery__zoom:hover .vf-c-gallery__img { transform: scale(1.03); }

/* Lightbox */
.vf-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(16, 17, 18, 0.94);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vh 4vw;
}
.vf-lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; }
.vf-lightbox__close {
	position: absolute;
	top: 18px;
	right: 22px;
	background: none;
	border: 0;
	color: #fff;
	font-size: 2.2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.4rem;
}
.vf-lightbox__close:focus-visible { outline: 2px solid var(--vf-gold); }

/* ---------- FAQ ---------- */

.vf-c-faq { border-top: 1px solid #e5dfd3; }
.vf-c-faq__item { border-bottom: 1px solid #e5dfd3; }
.vf-c-faq__q { margin: 0; }
.vf-c-faq__toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
	padding: 1.25rem 0.25rem;
	background: none;
	border: 0;
	text-align: left;
	font-family: var(--vf-font-text);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--vf-ink);
	cursor: pointer;
}
.vf-c-faq__toggle:focus-visible { outline: 2px solid var(--vf-gold); outline-offset: 2px; }
.vf-c-faq__icon { position: relative; flex: 0 0 18px; height: 18px; }
.vf-c-faq__icon::before, .vf-c-faq__icon::after {
	content: "";
	position: absolute;
	inset: 8px 0;
	background: var(--vf-brass-strong);
	transition: transform 0.24s var(--vf-ease);
}
.vf-c-faq__icon::after { transform: rotate(90deg); }
.vf-c-faq__toggle[aria-expanded="true"] .vf-c-faq__icon::after { transform: rotate(0deg); }
.vf-c-faq__a { padding: 0 0.25rem 1.5rem; color: var(--vf-body); max-width: 68ch; }

/* ---------- Testimonials ---------- */

.vf-c-testimonials { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.vf-c-testimonial { margin: 0; padding: 2rem; background: #fff; border-radius: var(--vf-radius); box-shadow: var(--vf-shadow); }
.vf-c-testimonial__quote { font-family: var(--vf-font-display); font-size: 1.2rem; line-height: 1.5; color: var(--vf-ink); margin: 0 0 1.25rem; }
.vf-c-testimonial__quote::before { content: "“"; display: block; font-size: 2.6rem; color: var(--vf-brass); line-height: 0.5; margin-bottom: 0.75rem; }
.vf-c-testimonial__name { font-style: normal; font-weight: 700; color: var(--vf-ink); display: block; }
.vf-c-testimonial__role { font-size: 0.85rem; color: var(--vf-muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- CTA band ---------- */

.vf-c-cta { background: var(--vf-ink); color: #fff; padding: clamp(4rem, 9vw, 7rem) 1.5rem; text-align: center; }
.vf-c-cta__heading { font-family: var(--vf-font-display); font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 auto 1rem; max-width: 22ch; color: #fff; }
.vf-c-cta__text { color: rgba(255, 255, 255, 0.8); max-width: 52ch; margin: 0 auto 1.5rem; }
.vf-c-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- Pricing ---------- */

.vf-c-pricing { border: 1px solid #e5dfd3; border-radius: var(--vf-radius); overflow: hidden; background: #fff; }
.vf-c-pricing__row { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid #efe9dd; }
.vf-c-pricing__row:last-child { border-bottom: 0; }
.vf-c-pricing__item { font-weight: 600; color: var(--vf-ink); }
.vf-c-pricing__price { font-family: var(--vf-font-display); font-weight: 600; color: var(--vf-brass-strong); }
.vf-c-pricing__note { grid-column: 1 / -1; font-size: 0.85rem; color: var(--vf-muted); }

/* ---------- Forms ---------- */

.vf-c-form { max-width: 860px; }
.vf-c-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1rem 1.5rem; }
.vf-c-form__field { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; }
.vf-c-form__field--full { grid-column: 1 / -1; margin-top: 1rem; }
.vf-c-form__field label { font-weight: 600; font-size: 0.9rem; color: var(--vf-ink); }
.vf-c-form input:not([type="checkbox"]):not([type="radio"]),
.vf-c-form select,
.vf-c-form textarea {
	min-height: 52px;
	padding: 0.75rem 1rem;
	border: 1px solid #ddd6ca;
	border-radius: var(--vf-radius-sm);
	background: var(--vf-linen);
	font-family: var(--vf-font-text);
	font-size: 1rem;
	color: var(--vf-ink);
	transition: border 0.2s var(--vf-ease), box-shadow 0.2s var(--vf-ease);
}
.vf-c-form textarea { min-height: 120px; resize: vertical; }
.vf-c-form input:focus-visible, .vf-c-form select:focus-visible, .vf-c-form textarea:focus-visible {
	outline: none;
	border-color: var(--vf-brass);
	box-shadow: 0 0 0 3px rgba(184, 147, 74, 0.25);
}
.vf-c-form__group { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1rem 1.5rem; border: 1px dashed #ddd6ca; border-radius: var(--vf-radius); padding: 1.25rem 1.5rem 1.5rem; margin: 0; }
.vf-c-form__checklist { border: 0; padding: 0; margin: 1.75rem 0 0; }
.vf-c-form__checklist legend { font-weight: 700; margin-bottom: 0.75rem; color: var(--vf-ink); }
.vf-c-form__check { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 1.25rem 0.6rem 0; cursor: pointer; }
.vf-c-form__check input { width: 20px; height: 20px; accent-color: var(--vf-brass-strong); }
.vf-c-form__actions { margin-top: 2rem; }
.vf-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }
.vf-c-form__success, .vf-c-form__error { padding: 1.5rem 1.75rem; border-radius: var(--vf-radius); margin-bottom: 1.5rem; }
.vf-c-form__success { background: rgba(47, 125, 79, 0.1); border: 1px solid var(--vf-success); }
.vf-c-form__success h3 { margin: 0 0 0.5rem; color: var(--vf-success); }
.vf-c-form__error { background: rgba(179, 55, 47, 0.08); border: 1px solid var(--vf-error); color: var(--vf-error); }

/* ---------- Single event layout ---------- */

.vf-event__layout {
	width: min(1200px, 92vw);
	margin: clamp(2.5rem, 6vw, 4.5rem) auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}
@media (max-width: 900px) { .vf-event__layout { grid-template-columns: 1fr; } }
.vf-event__panel {
	position: sticky;
	top: 100px;
	background: #fff;
	border-radius: var(--vf-radius);
	box-shadow: var(--vf-shadow);
	padding: 1.75rem;
}
.vf-event__panel-title { font-family: var(--vf-font-display); margin: 0 0 1rem; font-size: 1.4rem; }
.vf-event__facts { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.25rem; margin: 1.5rem 0 0; font-size: 0.95rem; }
.vf-event__facts dt { font-weight: 700; color: var(--vf-ink); }
.vf-event__facts dd { margin: 0; color: var(--vf-body); }
.vf-event__enquire { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #efe9dd; font-size: 0.9rem; color: var(--vf-muted); }
.vf-event__enquire a { color: var(--vf-brass-strong); font-weight: 600; }
.vf-event__gallery h2 { font-family: var(--vf-font-display); }
.vf-archive { width: min(1200px, 92vw); margin: clamp(2.5rem, 6vw, 4rem) auto; }
.vf-archive__pagination { margin-top: 2.5rem; text-align: center; }

/* ---------- Reveal animation ---------- */

@media (prefers-reduced-motion: no-preference) {
	.vf-reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--vf-ease), transform 0.5s var(--vf-ease); }
	.vf-reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.vf-c-btn, .vf-c-event-card, .vf-c-event-card__img, .vf-c-gallery__img { transition: none !important; }
}
