:root {
	--bg: #f7f7f8;
	--surface: #ffffff;
	--text: #1a1a1a;
	--muted: #6b6b6b;
	--border: #e4e4e7;
	--topbar-h: 3.5rem;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

/* Top bar */

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.topbar-inner {
	max-width: 60rem;
	margin: 0 auto;
	padding: 0 1rem;
	height: var(--topbar-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.page-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Hamburger */

.hamburger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.5rem;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 0.375rem;
	cursor: pointer;
}

.hamburger-line {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--text);
	border-radius: 1px;
}

/* Drawer */

.drawer {
	position: fixed;
	top: var(--topbar-h);
	left: 0;
	width: min(18rem, 82vw);
	height: calc(100% - var(--topbar-h));
	background: var(--surface);
	border-right: 1px solid var(--border);
	padding: 0.5rem;
	z-index: 30;
	transform: translateX(-100%);
	transition: transform 0.2s ease;
}

.drawer.is-open {
	transform: translateX(0);
}

.drawer a {
	display: block;
	padding: 0.75rem 1rem;
	border-radius: 0.375rem;
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
}

.drawer a:hover,
.drawer a:focus-visible {
	background: var(--bg);
}

/* Content */

.content {
	max-width: 60rem;
	margin: 0 auto;
	padding: 1.5rem 1rem 4rem;
}

.section {
	scroll-margin-top: calc(var(--topbar-h) + 0.5rem);
	margin-bottom: 2.5rem;
}

.section-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.section p {
	margin: 0.5rem 0;
	color: var(--text);
}

@media (min-width: 40rem) {
	.page-title {
		font-size: 1.25rem;
	}

	.content {
		padding: 2rem 1.5rem 5rem;
	}

	.section-title {
		font-size: 1.75rem;
	}
}

/* Dishes section */

.dishes-intro {
	margin: 0.5rem 0 1rem;
	color: var(--text);
}

.dishes-group {
	margin-top: 1rem;
}

.dishes-group-title {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.dishes-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	background: var(--surface);
	overflow: hidden;
}

.dish-row + .dish-row {
	border-top: 1px solid var(--border);
}

.dish-row {
	padding: 0.75rem 1rem;
}

/* Top to bottom on a phone, four columns left to right on a wide screen. */
.dish-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
}

.dish-name {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.dish-name-input,
.dish-specific,
.dish-owner {
	width: 100%;
	padding: 0.5rem 0.625rem;
	font: inherit;
	border: 1px solid var(--border);
	border-radius: 0.375rem;
	background: var(--surface);
	color: var(--text);
}

.dish-owner-name {
	color: var(--muted);
	font-size: 0.875rem;
}

.dish-error {
	color: #b91c1c;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

@media (min-width: 40rem) {
	.dish-fields {
		grid-template-columns: 1.2fr 1fr 1.4fr auto;
		align-items: center;
	}
}

/* Location section */

.location-address {
	margin: 0.5rem 0 1rem;
}

.location-map {
	position: relative;
	width: 100%;
	max-width: 40rem;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	overflow: hidden;
	background: var(--bg);
}

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

.location-directions {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.625rem 1rem;
	border: 1px solid var(--border);
	border-radius: 0.375rem;
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.location-directions:hover,
.location-directions:focus-visible {
	background: var(--bg);
}

/* Contact section */

.contact-phone {
	margin: 0.25rem 0;
}

.contact-tel {
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--border);
}

.contact-tel:hover,
.contact-tel:focus-visible {
	border-bottom-color: var(--text);
}

.contact-message {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-radius: 0.375rem;
	background: var(--surface);
}

.contact-message-ok {
	color: var(--text);
}

.contact-message-error {
	color: var(--text);
}

.contact-form {
	display: grid;
	gap: 1rem;
	max-width: 40rem;
	margin-top: 1rem;
}

.contact-field {
	display: grid;
	gap: 0.25rem;
}

.contact-field label {
	font-weight: 600;
}

.contact-field input,
.contact-field textarea {
	font: inherit;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: 0.375rem;
	background: var(--surface);
	color: var(--text);
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
	outline: 2px solid var(--text);
	outline-offset: 1px;
}

.contact-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-submit {
	justify-self: start;
	padding: 0.625rem 1rem;
	border: 1px solid var(--border);
	border-radius: 0.375rem;
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.contact-submit:hover,
.contact-submit:focus-visible {
	background: var(--bg);
}

/* A2UI People panel (from AUD-201) */
/* A2UI People panel */


/* A2UI People panel */

.people-a2ui a2ui-basic-column {
	display: flex;
	flex-direction: column;
}

.people-a2ui a2ui-basic-text {
	display: block;
}

/* Group headings ("Adults", "Children") are Text components rendered with the
   caption variant. */
.people-a2ui a2ui-basic-text .a2ui-text-caption {
	display: block;
	margin: 0.75rem 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* One bordered row per person, matching the HTMX person-list look. */
.people-a2ui a2ui-checkbox {
	display: block;
	margin-bottom: 0.5rem;
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	background: var(--surface);
	overflow: hidden;
}

.people-a2ui a2ui-checkbox .a2ui-checkbox-container {
	display: block;
}

.people-a2ui a2ui-checkbox .a2ui-checkbox {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0.875rem 1rem;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.people-a2ui a2ui-checkbox input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	margin: 0;
	cursor: pointer;
	accent-color: #2563eb;
}

.people-a2ui a2ui-checkbox .a2ui-check-box-text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 1rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

/* The totals line is the last child of the root column. */
.people-a2ui a2ui-basic-column > a2ui-basic-text:last-child {
	display: block;
	margin-top: 0.5rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	background: var(--surface);
	font-weight: 600;
}
