/* utilities.css — sr-only, drop-cap, reveal animations, print, reduced-motion. */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-16 { margin-top: var(--s-16); }
.mt-24 { margin-top: var(--s-24); }
.mt-32 { margin-top: var(--s-32); }
.mt-48 { margin-top: var(--s-48); }

.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: var(--s-16); }
.mb-24 { margin-bottom: var(--s-24); }
.mb-32 { margin-bottom: var(--s-32); }
.mb-48 { margin-bottom: var(--s-48); }

.hidden { display: none !important; }
.visually-hidden { visibility: hidden; }

.full-width-media {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: var(--r-md);
}

.w-full { width: 100%; }
.max-w-640 { max-width: 640px; margin-left: auto; margin-right: auto; }
.max-w-760 { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Drop cap — works on Concept (section 2) and Menu (intro). Applies on
   block-level elements directly; we scope via .has-drop-cap */
.has-drop-cap::first-letter {
	font-family: var(--f-heading);
	font-weight: 500;
	font-size: 3rem;
	line-height: 0.9;
	float: left;
	padding: 0.15em 0.1em 0 0;
	color: var(--c-accent);
	font-style: normal;
}

/* Reveal (IntersectionObserver target) */
[data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal],
	[data-reveal].is-visible {
		opacity: 1;
		transform: none;
		transition: none;
	}
	* {
		animation: none !important;
		transition: none !important;
	}
}

/* Print */
@media print {
	body {
		background: #fff;
		color: #000;
	}
	.header, .footer, .age-gate, .grecaptcha-badge {
		display: none !important;
	}
	main {
		padding-top: 0;
	}
	a {
		text-decoration: underline;
	}
}

/* Anchor offset for smooth scroll to sections (header height) */
[id] {
	scroll-margin-top: calc(var(--header-h) + var(--s-24));
}

/* Links-row (footer-style inline separators) */
.inline-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	font-family: var(--f-body);
	font-size: 0.8125rem;
	color: var(--c-text-dim);
}

.inline-links a {
	padding: 0 var(--s-8);
	color: var(--c-text-dim);
	transition: color var(--dur) var(--ease);
}

.inline-links a:hover {
	color: var(--c-accent);
}

.inline-links a + a::before {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	background: var(--c-accent);
	transform: rotate(45deg);
	margin-right: var(--s-16);
	vertical-align: middle;
}

/* Google Maps iframe wrapper */
.map-embed {
	position: relative;
	width: 100%;
	height: 320px;
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	overflow: hidden;
}

.map-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Hours table (used on /contact/ and home section 13) */
.hours-table {
	width: 100%;
	max-width: 320px;
}

.hours-table dt,
.hours-table dd {
	display: inline-block;
}

.hours-table__row {
	display: flex;
	justify-content: space-between;
	padding: var(--s-8) 0;
	border-bottom: 1px solid var(--c-border);
	font-size: 0.875rem;
}

.hours-table__row:last-child {
	border-bottom: 0;
}

.hours-table__day {
	font-weight: 500;
	color: var(--c-text);
	letter-spacing: 0.5px;
}

.hours-table__time {
	color: var(--c-text-dim);
	font-variant-numeric: tabular-nums;
}

.hours-table__row--closed .hours-table__time {
	color: var(--c-accent);
	font-style: italic;
}

/* Four-col grid (used on contact page) */
.four-col {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-32);
}

@media (min-width: 640px) {
	.four-col {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.four-col {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* SVG centering helper */
.svg-center {
	display: flex;
	justify-content: center;
	align-items: center;
}
