/**
 * Site chrome: header (Figma "AN NAM/Navigation" 25:8530), phone menu ("Mobile/Menubar" 25:8102),
 * the phone booking bar fixed to the bottom of the screen ("Mobile/Home/Booking bar" 25:7949,
 * PLAN.md B4 Q11c) and footer ("AN NAM/Footer" 25:8557) with its newsletter. The same markup is
 * printed by the site header and footer widgets inside Elementor templates and by the theme's
 * own templates. Loaded on every page (an_page_parts()).
 */

.an-main:focus {
	outline: 0;
}

/* ------------------------------------------------------------------ */
/* Header: cream, padding 20, a 45 row (phone 52), hairline 12 under it */
/* ------------------------------------------------------------------ */

.an-header {
	position: relative;
	z-index: 50;
	padding: 20px 0;
	background: var(--an-header-bg, var(--an-c-cream));
	color: var(--an-header-text, var(--an-c-ink));
	font-family: var(--an-sans);
}

.an-header ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.an-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 45px;
}

/* Hairline 1px muted at 35% (all three frames), 12 under the row. */
.an-header__rule {
	height: 1px;
	margin-top: 12px;
	background: var(--an-header-rule, color-mix(in srgb, var(--an-c-muted) 35%, transparent));
}

/* Wordmark: Newsreader 32 / 110%. */
.an-logo {
	display: inline-flex;
	align-items: center;
	color: inherit;
	font-family: var(--an-serif);
	font-variation-settings: "opsz" 18;
	font-size: 32px;
	line-height: var(--an-lh-tight);
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
}

.an-logo--image img {
	display: block;
	width: auto;
	max-height: 45px;
}

.an-header__end {
	display: flex;
	align-items: center;
	gap: 16px;
}

.an-nav__list {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Link boxes 45 high (padding 12), the text centred: "Menu" 80 wide, "Our story" 90. */
.an-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 80px;
	padding: 12px 13px;
	color: inherit;
	font-size: var(--an-fs-small);
	line-height: var(--an-lh-text);
	text-decoration: none;
	white-space: nowrap;
}

.an-header__cta {
	flex: none;
	white-space: nowrap;
}

/* Phone menu button: a 52 tap area (padding 10) around a 32 box with the 24 x 16 icon, in ink (B4 Q6). */
.an-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

@media (max-width: 767px) {
	.an-header__bar {
		min-height: 52px;
	}

	.an-header__end {
		display: none;
	}

	.an-js .an-header__toggle {
		display: inline-flex;
		flex: none;
	}

	/* Without JavaScript the menu cannot open: the links wrap under the wordmark instead. */
	html:not(.an-js) .an-header__bar {
		flex-wrap: wrap;
	}

	html:not(.an-js) .an-header__end {
		display: flex;
		flex-wrap: wrap;
	}
}

/* ------------------------------------------------------------------ */
/* Phone menu ("Mobile/Menubar"): in place of the page content         */
/* ------------------------------------------------------------------ */

.an-menu[hidden] {
	display: none;
}

/* "Frame 2": 550 high, padding 32 / 20; title h2 40/48 centred; buttons 350 x 40, all 24 apart. */
.an-menu {
	min-height: 550px;
	background: var(--an-header-bg, var(--an-c-cream));
}

.an-menu__nav {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px 0;
}

.an-menu__title {
	text-align: center;
}

.an-menu__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.an-menu__link,
.an-menu__cta {
	width: 100%;
}

/* The menu takes the place of the page content and the booking bar; the footer stays, as in the frame. */
@media (max-width: 767px) {
	html.an-menu-open .an-main,
	html.an-menu-open .an-sticky {
		display: none;
	}
}

@media (min-width: 768px) {
	.an-menu {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Phone booking bar, fixed to the bottom of the screen (B4 Q11c)      */
/* ------------------------------------------------------------------ */

.an-sticky {
	display: none;
}

/* 390 x 72: cream, a muted 50% rule on top, padding 12 / 20; two lines (13 and 12 / 140%) beside
   the 175 wide button, 12 apart. */
@media (max-width: 767px) {
	.an-sticky {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 40;
		display: flex;
		align-items: center;
		gap: 12px;
		min-height: 72px;
		padding: 12px var(--an-gutter);
		border-top: 1px solid color-mix(in srgb, var(--an-c-muted) 50%, transparent);
		background: var(--an-sticky-bg, var(--an-c-cream));
	}

	.an-sticky__summary {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-width: 0;
		color: var(--an-c-ink);
		text-decoration: none;
	}

	.an-sticky__title {
		font-size: 13px;
		line-height: 1.4;
	}

	.an-sticky__text {
		color: var(--an-c-muted);
		font-size: var(--an-fs-label);
		line-height: 1.4;
	}

	.an-sticky__button {
		flex: none;
		width: 175px;
	}

	/* Room for the bar, so it never covers the end of the footer. */
	body:has(.an-sticky) {
		padding-bottom: 72px;
	}
}

/* ------------------------------------------------------------------ */
/* Footer: ink, cream text                                             */
/* ------------------------------------------------------------------ */

.an-footer {
	padding: var(--an-footer-pad-t, 80px) 0 var(--an-footer-pad-b, 80px);
	background: var(--an-footer-bg, var(--an-c-ink));
	color: var(--an-footer-text, var(--an-c-cream));
	font-family: var(--an-sans);
	font-size: var(--an-fs-body);
	line-height: var(--an-lh-text);
}

.an-footer h2,
.an-footer p,
.an-footer ul {
	margin: 0;
}

.an-footer ul {
	padding: 0;
	list-style: none;
}

.an-footer a {
	color: inherit;
}

.an-footer :focus-visible {
	outline-color: var(--an-c-cream);
}

/* Optional line above the columns (empty in the design). */
.an-footer__top {
	margin-bottom: 32px;
}

/* Visit · Hours · Menu and booking · Newsletter: 4 columns 276 wide, 32 apart. */
.an-footer__cols {
	display: grid;
	grid-template-areas: "visit hours menu news";
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
}

.an-footer__col {
	min-width: 0;
}

.an-footer__col--visit {
	grid-area: visit;
}

.an-footer__col--hours {
	grid-area: hours;
}

.an-footer__col--menu {
	grid-area: menu;
}

.an-footer__col--news {
	grid-area: news;
}

/* Column heading: 12 / 150%, written in capitals in the copy. */
.an-footer__heading {
	color: inherit;
	font-family: var(--an-sans);
	font-size: var(--an-fs-label);
	line-height: var(--an-lh-text);
	font-weight: 400;
}

/* Lines 16 / 150%, 12 under the heading. */
.an-footer__lines,
.an-news__text {
	margin-top: 12px;
	font-size: var(--an-fs-body);
	line-height: var(--an-lh-text);
}

/* Links: 15 / 150% underlined in 47 high boxes (padding 12), every footer link alike (B4 Q13h).
   The menu links start right under the heading; "Get directions" 12 under the lines. */
.an-footer__more {
	margin-top: 12px;
}

.an-footer__link,
.an-footer__links a {
	display: inline-flex;
	align-items: center;
	padding: 12px 0;
	font-size: var(--an-fs-button);
	line-height: var(--an-lh-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.an-footer__links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* Newsletter: field 48 (cream, field line, radius 8, padding 0 16), "Subscribe" 40 under it, 12 apart. */
.an-news__form {
	margin-top: 12px;
}

.an-news__form[hidden],
.an-news__sent[hidden] {
	display: none;
}

.an-news__row {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.an-news__input {
	width: 100%;
	min-width: 0;
	min-height: var(--an-control);
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--an-c-input-line);
	border-radius: var(--an-radius-control);
	background: var(--an-c-cream);
	color: var(--an-c-ink);
	font-family: var(--an-sans);
	font-size: var(--an-fs-body);
	line-height: var(--an-lh-body);
}

.an-news__input::placeholder {
	color: color-mix(in srgb, var(--an-c-ink) 45%, transparent);
	opacity: 1;
}

.an-news__input:focus {
	outline: 2px solid var(--an-c-cream);
	outline-offset: 2px;
}

/* "Subscribe": cream rule and text, no fill. */
.an-footer .an-news__submit {
	width: 100%;
	border-color: var(--an-c-cream);
	background: transparent;
	color: var(--an-c-cream);
}

.an-news__sent {
	margin-top: 12px;
}

.an-news__sent:focus {
	outline: 0;
}

/* Contact line 32 under the columns; hairline 32 under it; legal line 11 / 150%, 32 under the hairline. */
.an-footer__contact {
	margin-top: 32px;
}

.an-footer .an-footer__legal {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid currentcolor;
	font-size: 11px;
	line-height: var(--an-lh-text);
}

/* 834: padding 56; the newsletter first (field and button side by side), then Menu and booking ·
   Hours · Visit in three columns. */
@media (max-width: 1024px) {
	.an-footer {
		padding-top: var(--an-footer-pad-t, 56px);
		padding-bottom: var(--an-footer-pad-b, 56px);
	}

	.an-footer__cols {
		grid-template-areas:
			"news news news"
			"menu hours visit";
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.an-news__row {
		flex-direction: row;
		align-items: flex-start;
	}

	.an-news__input {
		flex: 1 1 auto;
	}

	.an-footer .an-news__submit {
		flex: none;
		width: auto;
	}
}

/* 390: padding 32; one column: Newsletter · Visit · Hours · Menu and booking, 32 apart. */
@media (max-width: 767px) {
	.an-footer {
		padding-top: var(--an-footer-pad-t, 32px);
		padding-bottom: var(--an-footer-pad-b, 32px);
	}

	.an-footer__cols {
		grid-template-areas:
			"news"
			"visit"
			"hours"
			"menu";
		grid-template-columns: minmax(0, 1fr);
	}

	.an-news__row {
		flex-direction: column;
		align-items: stretch;
	}

	.an-footer .an-news__submit {
		width: 100%;
	}
}
