/*
Theme Name: Bluefin
Theme URI: https://bluefinbyabe.com/
Description: Accessible child theme of Twenty Twenty-Five for Bluefin Japanese Restaurant by Abe. Brand: Bluefin blue, Oswald headings, Open Sans text. Built for WCAG 2.2 AA.
Author: Bluefin by Abe
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bluefin
*/

/* ---------- Base and accessibility ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.bf-main { margin: 0; }
body { -webkit-text-size-adjust: 100%; }

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid #1E73BE;
	outline-offset: 3px;
	border-radius: 4px;
}
.bf-footer :focus-visible,
.bf-band :focus-visible,
.bf-feature:not(.bf-feature--light) :focus-visible,
.wp-block-cover :focus-visible,
.bf-home-hero :focus-visible { outline-color: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Skip link: a solid, high-contrast box when it receives focus */
.skip-link.screen-reader-text:focus,
#wp-skip-link:focus {
	background: #FFFFFF !important;
	color: #1A2230 !important;
	font-size: 17px; font-weight: 600;
	padding: 14px 20px !important;
	border: 3px solid #1E73BE;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(15, 42, 71, 0.25);
	z-index: 100000;
}

/* ---------- Header ---------- */
.bf-header {
	background: #FFFFFF;
	border-bottom: 1px solid #D6DEE8;
}
/* Desktop: the header stays at the top while you scroll. The sticky element must be the template-part
 * wrapper (<header>), not .bf-header: the wrapper is exactly as tall as .bf-header, so a sticky child
 * inside it never sticks. Phones: the header scrolls away (the Reserve/Call/Directions bar covers
 * those actions) and no stacking context is created, so the menu overlay sits above that bar. */
@media (min-width: 782px) {
	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 50;
	}
}
.bf-header__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 10px 16px;
	gap: 16px;
	align-items: center;
}
.bf-header__logo { margin: 0; }
.bf-header__logo img { width: 120px; height: auto; }
@media (min-width: 782px) {
	.bf-header__inner { padding: 12px 24px; }
	.bf-header__logo img { width: 150px; }
}

.bf-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 10px;
	color: #1A2230;
	text-decoration: none;
}
.bf-nav .wp-block-navigation-item__content:hover { color: #1E73BE; text-decoration: underline; text-underline-offset: 6px; }
.bf-nav .current-menu-item > .wp-block-navigation-item__content,
.bf-nav [aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: #1E73BE;
	text-decoration-thickness: 3px;
	text-underline-offset: 8px;
}
.bf-nav .bf-nav__reserve > .wp-block-navigation-item__content {
	background: #1E73BE;
	color: #FFFFFF;
	border-radius: 999px;
	padding: 10px 18px;
	margin-left: 6px;
	text-decoration: none;
}
.bf-nav .bf-nav__reserve > .wp-block-navigation-item__content:hover { background: #155A96; color: #FFFFFF; text-decoration: none; }

/* Phone menu (the core navigation overlay: a real button with aria-expanded) */
.bf-nav .wp-block-navigation__responsive-container-open,
.bf-nav .wp-block-navigation__responsive-container-close {
	min-width: 44px; min-height: 44px; padding: 7px;
	color: #1A2230;
}
.bf-header__logo { flex-shrink: 0; }
/* The full menu needs ~1000px: below that, use the menu button (core only switches at 600px). */
@media (min-width: 600px) and (max-width: 1023.98px) {
	.bf-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; align-items: center; justify-content: center; }
	.bf-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.bf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex; align-items: center; justify-content: center; }
}
.bf-nav .wp-block-navigation__responsive-container-open svg,
.bf-nav .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }
.bf-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: #FFFFFF;
	color: #1A2230;
	padding: 20px 24px;
}
.bf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px; gap: 8px; align-items: flex-start;
}
.bf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 22px; padding: 10px 0;
}
.bf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.bf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start; justify-content: flex-start; text-align: left;
}
.bf-nav .wp-block-navigation__responsive-container.is-menu-open .bf-nav__reserve > .wp-block-navigation-item__content {
	margin: 12px 0 0; padding: 12px 22px;
}

/* ---------- Footer ---------- */
.bf-footer { background: #0F2A47; color: #FFFFFF; margin-top: 72px; }
.bf-footer__inner { max-width: 1120px; margin: 0 auto; padding: 56px 16px 28px; }
@media (min-width: 782px) { .bf-footer__inner { padding: 64px 24px 32px; } }
.bf-footer__cols { gap: 32px; }
.bf-footer .bf-footer__title { color: #FFFFFF; font-size: 20px; margin: 0 0 12px; }
.bf-footer p { color: #FFFFFF; font-size: 16px; line-height: 1.6; margin: 0 0 12px; }
.bf-footer a { color: #D6E2F0; text-decoration: underline; text-underline-offset: 3px; }
.bf-footer a:hover, .bf-footer a:focus { color: #FFFFFF; }
.bf-footer__bottom { border-top: 1px solid rgba(214, 226, 240, 0.35); margin-top: 32px; padding-top: 20px; gap: 12px; }
.bf-footer__bottom p { font-size: 15px; color: #D6E2F0; margin: 0; }

/* ---------- Homepage hero: full-width photo slideshow, dark fade only behind the text ----------
 * The photos are shown at full colour. Text contrast comes from a gradient painted on the text
 * panel itself, so the fade always sits under the text at every width. On desktop it is a soft-edged
 * shade around the text only ("Lighter hero shade" below).
 */
body.home main.bf-main { margin-block-start: 0; }
main.bf-main { overflow-x: clip; } /* 100vw breakout below adds a classic scrollbar's width */
body .bf-menu .bf-home-hero {
	--bf-hero-inset: 20px;
	position: relative;
	display: grid;
	width: 100vw;
	margin: 0 0 0 calc(50% - 50vw);
	overflow: hidden;
	background: #0A1828;
}
body .bf-menu .bf-home-hero > * { grid-area: 1 / 1; margin: 0; }
.bf-slideshow { position: relative; margin: 0; }
.bf-slideshow > .bf-slideshow__track { display: grid; grid-template-rows: 1fr; height: 100%; margin-block-start: 0; }
/* When the text panel is taller than the photo (narrow phones), stretch the photo to fill the hero. */
.bf-slideshow .bf-slide { grid-area: 1 / 1; margin: 0 !important; min-height: min(78svh, 680px); overflow: hidden; }
.bf-slideshow:not(.is-ready) > .bf-slide:not(:first-of-type) { display: none; }
.bf-slideshow.is-ready .bf-slide { opacity: 0; transition: opacity 0.8s ease; }
.bf-slideshow.is-ready .bf-slide.is-active { opacity: 1; }
/* Gentle 5 s zoom on the active photo (no longer than 5 s, so WCAG 2.2.2 needs no extra control).
 * The outgoing photo keeps its zoom until it has faded out, then resets. */
.bf-slide .wp-block-cover__image-background { transform-origin: 60% 50%; transition: transform 0s linear 0.9s; }
.bf-slideshow.is-ready .bf-slide.is-active .wp-block-cover__image-background { transform: scale(1.05); transition: transform 5s ease-out; }
@media (prefers-reduced-motion: reduce) {
	.bf-slideshow.is-ready .bf-slide { transition: none; }
	.bf-slide .wp-block-cover__image-background,
	.bf-slideshow.is-ready .bf-slide.is-active .wp-block-cover__image-background { transform: none; transition: none; }
}
.bf-slideshow__controls {
	position: absolute; right: 16px; bottom: 16px; z-index: 3;
	display: flex; align-items: center; gap: 8px;
}
.bf-ss-btn {
	width: 44px; height: 44px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border: 2px solid #FFFFFF; border-radius: 999px;
	background: rgba(15, 42, 71, 0.88); color: #FFFFFF; cursor: pointer;
}
.bf-ss-btn:hover { background: #1E73BE; }
.bf-ss-status {
	min-width: 3.6em; text-align: center; font-size: 15px; color: #FFFFFF;
	background: rgba(15, 42, 71, 0.88); border-radius: 999px; padding: 6px 10px;
}
/* Phone: text panel at the bottom; the fade rises 120px above the text. */
body .bf-menu .bf-home-hero__content {
	position: relative; z-index: 2; align-self: end;
	padding: 140px var(--bf-hero-inset) 88px;
	background: linear-gradient(to bottom, rgba(10, 24, 40, 0) 0, rgba(10, 24, 40, 0.85) 120px, rgba(10, 24, 40, 0.9) 100%);
	color: #FFFFFF;
	pointer-events: none;
}
body .bf-menu .bf-home-hero__content a,
body .bf-menu .bf-home-hero__content .wp-block-buttons { pointer-events: auto; }
/* Desktop: text panel on the left, aligned with the page column; the fade runs to the right. */
@media (min-width: 782px) {
	body .bf-menu .bf-home-hero { --bf-hero-inset: max(48px, calc(50vw - 560px)); }
	body .bf-menu .bf-home-hero__content {
		align-self: center; justify-self: start;
		width: min(100%, calc(var(--bf-hero-inset) + 520px + 160px));
		padding: 72px 160px 72px var(--bf-hero-inset);
		background: none;
	}
	.bf-slideshow__controls { right: 24px; bottom: 24px; }
}

/* ---------- Shared page sections (Home, About, Location, Accessibility) ---------- */
body .bf-menu .bf-split { margin-top: 56px; gap: 40px; align-items: center; }
body .bf-menu .bf-split h2::after,
body .bf-menu .bf-band h2::after,
body .bf-menu .bf-cards h2::after {
	content: ""; display: block; width: 48px; height: 3px; margin-top: 12px; background: #1E73BE;
}
body .bf-menu .bf-band h2::after { background: #7FB8EA; }
body .bf-menu .bf-prose p,
body .bf-menu .bf-split p { margin-top: 16px; max-width: 68ch; }
body .bf-menu .bf-prose h2 { margin-top: 40px; font-size: 28px; }
body .bf-menu .bf-prose ul { margin: 16px 0 0; padding-left: 1.25em; }
body .bf-menu .bf-prose li { margin-top: 8px; }
body .bf-menu .bf-actions { margin-top: 24px; gap: 12px; }

body .bf-menu .bf-cards { margin-top: 56px; }
body .bf-menu .bf-cards .wp-block-columns { gap: 32px; margin-top: 24px; }
body .bf-menu .bf-card h3 { font-size: 24px; margin-top: 16px; }
body .bf-menu .bf-card h3 a { color: #1A2230; text-decoration: none; }
body .bf-menu .bf-card h3 a:hover { color: #1E73BE; text-decoration: underline; }
body .bf-menu .bf-card p { color: #4A5566; margin-top: 8px; }

body .bf-menu .bf-band {
	margin-top: 56px; padding: 32px 24px; border-radius: 12px;
	background: #0F2A47; color: #FFFFFF;
}
body .bf-menu .bf-band h2 { color: #FFFFFF; }
body .bf-menu .bf-band p { color: #D6E2F0; margin-top: 16px; max-width: 60ch; }
@media (min-width: 782px) { body .bf-menu .bf-band { padding: 40px; } }

body .bf-menu .bf-page-head { padding: 48px 0 8px; border-bottom: 1px solid #D6DEE8; }
body .bf-menu .bf-page-head p { color: #4A5566; margin-top: 12px; max-width: 60ch; }

body .bf-menu .bf-contact { margin-top: 40px; gap: 40px; align-items: flex-start; }
body .bf-menu .bf-contact h2 { font-size: 24px; margin-top: 32px; }
body .bf-menu .bf-contact h2:first-child { margin-top: 0; }
body .bf-menu .bf-contact p { margin-top: 12px; }
body .bf-menu .bf-map iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: 12px; }
body .bf-menu .bf-btn--outline .wp-block-button__link { background: #FFFFFF; color: #1A2230; border-color: #1E73BE; }
body .bf-menu .bf-btn--outline .wp-block-button__link:hover,
body .bf-menu .bf-btn--outline .wp-block-button__link:focus { background: #1E73BE; color: #FFFFFF; }

/* ---------- Page content namespace (.bf-menu): menu pages and all rebuilt pages ---------- */
body .bf-menu {
	--bf-ink: #1A2230;
	--bf-muted: #4A5566;
	--bf-accent: #1E73BE;
	--bf-accent-dark: #155A96;
	--bf-deep: #0F2A47;
	--bf-surface: #F3F6FA;
	--bf-line: #D6DEE8;
	--bf-on-deep: #D6E2F0;
	color: var(--bf-ink);
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	max-width: 1120px;
	margin: 0 auto 72px;
	padding: 0 16px;
	box-sizing: border-box;
}
body .bf-menu *, body .bf-menu *::before, body .bf-menu *::after { box-sizing: border-box; }
body .bf-menu p, body .bf-menu li { font-size: 17px; line-height: 1.6; color: inherit; margin: 0; }
body .bf-menu a { color: var(--bf-accent); text-decoration: underline; text-underline-offset: 3px; }
body .bf-menu a:hover, body .bf-menu a:focus { color: var(--bf-accent-dark); }
body .bf-menu a:focus-visible, body .bf-menu .wp-block-button__link:focus-visible { outline: 3px solid var(--bf-accent); outline-offset: 3px; }

body .bf-menu h1, body .bf-menu h2, body .bf-menu h3 {
	font-family: Oswald, Arial, Helvetica, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.1;
	color: var(--bf-ink);
	margin: 0;
	font-weight: 500;
}

/* Page hero (menu pages): full-width, full-colour photo like the homepage; the dark fade is
 * painted on the text panel only ("Lighter hero shade" below). */
body .bf-menu .bf-hero {
	--bf-hero-inset: 20px;
	width: 100vw;
	margin: 0 0 0 calc(50% - 50vw) !important;
	min-height: min(70svh, 560px) !important;
	padding: 0;
	border-radius: 0;
	align-items: flex-end;
	background: #0A1828;
}
body .bf-menu .bf-hero .wp-block-cover__inner-container {
	width: 100%; max-width: none; color: #FFFFFF;
	padding: 120px var(--bf-hero-inset) 36px;
	background: linear-gradient(to bottom, rgba(10, 24, 40, 0) 0, rgba(10, 24, 40, 0.85) 100px, rgba(10, 24, 40, 0.9) 100%);
}
body .bf-menu .bf-hero .wp-block-cover__inner-container > * { max-width: 520px; }
body .bf-menu .bf-hero__title { color: #FFFFFF; font-size: 38px; margin-bottom: 14px; }
body .bf-menu .bf-hero__text { color: #FFFFFF; font-size: 18px; max-width: 34em; margin-bottom: 24px; }
body .bf-menu .bf-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
body .bf-menu .bf-btn .wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px;
	border-radius: 999px; font-family: Oswald, Arial, Helvetica, sans-serif; font-size: 17px;
	letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
	border: 2px solid transparent;
}
body .bf-menu .bf-btn--primary .wp-block-button__link { background: var(--bf-accent); color: #FFFFFF; border-color: var(--bf-accent); }
body .bf-menu .bf-btn--primary .wp-block-button__link:hover,
body .bf-menu .bf-btn--primary .wp-block-button__link:focus { background: var(--bf-accent-dark); border-color: var(--bf-accent-dark); color: #FFFFFF; }
body .bf-menu .bf-btn--ghost .wp-block-button__link { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
body .bf-menu .bf-btn--ghost .wp-block-button__link:hover,
body .bf-menu .bf-btn--ghost .wp-block-button__link:focus { background: #FFFFFF; color: var(--bf-deep); }

/* Section index: scrolls sideways inside itself on phones, wraps on desktop */
body .bf-menu .bf-jump {
	list-style: none; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto;
	margin: 0 -16px; padding: 16px; border-bottom: 1px solid var(--bf-line);
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
body .bf-menu .bf-jump::-webkit-scrollbar { display: none; }
body .bf-menu .bf-jump li { flex: 0 0 auto; margin: 0; padding: 0; list-style: none; }
body .bf-menu .bf-jump li::before { content: none; }
body .bf-menu .bf-jump a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
	border: 1.5px solid var(--bf-accent); border-radius: 999px; color: var(--bf-ink);
	font-family: Oswald, Arial, Helvetica, sans-serif; font-size: 16px; letter-spacing: 0.05em;
	text-transform: uppercase; text-decoration: none; white-space: nowrap; background: #FFFFFF;
}
body .bf-menu .bf-jump a:hover, body .bf-menu .bf-jump a:focus { background: var(--bf-accent); color: #FFFFFF; }

/* Sections */
body .bf-menu .bf-section, body .bf-menu .bf-feature { margin-top: 56px; scroll-margin-top: 90px; }
body .bf-menu .bf-section > .wp-block-group__inner-container > h2,
body .bf-menu .bf-section > h2,
body .bf-menu .bf-feature h2 { font-size: 28px; }
body .bf-menu .bf-section h2::after, body .bf-menu .bf-feature h2::after {
	content: ""; display: block; width: 48px; height: 3px; margin-top: 12px; background: var(--bf-accent);
}
body .bf-menu .bf-section__intro { color: var(--bf-muted); margin-top: 14px; }
body .bf-menu .bf-subhead { font-size: 20px; margin-top: 32px; }

/* Dish lists: one column on phones, two from tablet up */
body .bf-menu .bf-items > .wp-block-group__inner-container,
body .bf-menu .bf-items:not(:has(> .wp-block-group__inner-container)) {
	display: grid; grid-template-columns: 1fr; column-gap: 48px; row-gap: 24px; margin-top: 12px;
}
/* The grid gap does the spacing; WordPress's flow-layout margin on every item but the first would
 * push the right-hand column down a row-gap in two-column lists. */
body .bf-menu .bf-items > .bf-item,
body .bf-menu .bf-items > .wp-block-group__inner-container > .bf-item { margin-block-start: 0; }
body .bf-menu .bf-item { padding: 16px 0; border-bottom: 1px solid var(--bf-line); }
body .bf-menu .bf-item h3 {
	font-family: "Open Sans", Arial, Helvetica, sans-serif; text-transform: none; letter-spacing: 0;
	font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--bf-ink);
}
body .bf-menu .bf-item p { color: var(--bf-muted); font-size: 16px; margin-top: 4px; max-width: 62ch; }

/* Nigiri & sashimi names */
body .bf-menu .bf-fishlist {
	list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px;
	margin: 16px 0 0; padding: 0;
}
body .bf-menu .bf-fishlist li { padding: 12px 0; border-bottom: 1px solid var(--bf-line); font-weight: 600; list-style: none; }
body .bf-menu .bf-fishlist li::before { content: none; }

/* Featured panels (omakase on deep navy; specialty rolls on the light surface) */
body .bf-menu .bf-feature {
	background: var(--bf-deep); color: #FFFFFF; border-radius: 12px; padding: 28px 20px; gap: 28px;
}
body .bf-menu .bf-feature h2 { color: #FFFFFF; }
body .bf-menu .bf-feature h2::after { background: #7FB8EA; }
body .bf-menu .bf-feature .bf-item { border-bottom-color: rgba(214, 226, 240, 0.35); }
body .bf-menu .bf-feature .bf-item h3 { color: #FFFFFF; }
body .bf-menu .bf-feature .bf-item p { color: var(--bf-on-deep); }
body .bf-menu .bf-feature--light { background: var(--bf-surface); color: var(--bf-ink); }
body .bf-menu .bf-feature--light h2, body .bf-menu .bf-feature--light .bf-item h3 { color: var(--bf-ink); }
body .bf-menu .bf-feature--light h2::after { background: var(--bf-accent); }
body .bf-menu .bf-feature--light .bf-item { border-bottom-color: var(--bf-line); }
body .bf-menu .bf-feature--light .bf-item p { color: var(--bf-muted); }
body .bf-menu .bf-photo { margin: 0; }
body .bf-menu .bf-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

/* Notes and fine print */
body .bf-menu .bf-note {
	margin-top: 24px; padding: 18px 22px; background: var(--bf-surface);
	border-left: 4px solid var(--bf-accent); border-radius: 0 12px 12px 0;
}
body .bf-menu .bf-note p { color: var(--bf-ink); font-size: 16px; }
body .bf-menu .bf-more { margin-top: 18px; }
/* Glossary note ("Good to Know"): reads as a note, not as menu items */
body .bf-menu .bf-section.bf-glossary {
	padding: 22px 20px; background: var(--bf-surface);
	border-left: 4px solid var(--bf-accent); border-radius: 0 12px 12px 0;
}
body .bf-menu .bf-section.bf-glossary > h2,
body .bf-menu .bf-section.bf-glossary > .wp-block-group__inner-container > h2 { font-size: 22px; }
body .bf-menu .bf-section.bf-glossary h2::after { display: none; }
body .bf-menu .bf-glossary .bf-section__intro { margin-top: 6px; font-size: 16px; }
body .bf-menu .bf-glossary__list {
	list-style: none; margin: 14px 0 0; padding: 0;
	display: grid; grid-template-columns: 1fr; gap: 6px 32px;
}
body .bf-menu .bf-glossary__list li { font-size: 16px; color: var(--bf-ink); }
body .bf-menu .bf-glossary__list strong { font-weight: 700; }
@media (min-width: 600px) { body .bf-menu .bf-glossary__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { body .bf-menu .bf-glossary__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } body .bf-menu .bf-section.bf-glossary { padding: 24px 28px; } }
body .bf-menu .bf-fineprint { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--bf-line); }
body .bf-menu .bf-fineprint p { font-size: 15px; color: var(--bf-muted); max-width: 70ch; margin-bottom: 10px; }

@media (min-width: 782px) {
	body .bf-menu { padding: 0 24px; }
	body .bf-menu .bf-section, body .bf-menu .bf-feature { scroll-margin-top: 160px; }
	body .bf-menu .bf-hero { --bf-hero-inset: max(48px, calc(50vw - 560px)); align-items: stretch; }
	body .bf-menu .bf-hero { align-items: center; }
	body .bf-menu .bf-hero .wp-block-cover__inner-container {
		width: min(100%, calc(var(--bf-hero-inset) + 520px + 160px));
		margin: 0;
		padding: 72px 160px 72px var(--bf-hero-inset);
		background: none;
	}
	body .bf-menu .bf-hero__title { font-size: 48px; }
	body .bf-menu .bf-jump { flex-wrap: wrap; overflow: visible; margin: 0; padding: 20px 0; }
	body .bf-menu .bf-items > .wp-block-group__inner-container,
	body .bf-menu .bf-items:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr 1fr; }
	body .bf-menu .bf-items--single > .wp-block-group__inner-container,
	body .bf-menu .bf-items--single:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr; }
	body .bf-menu .bf-fishlist { grid-template-columns: repeat(3, 1fr); }
	body .bf-menu .bf-section > .wp-block-group__inner-container > h2,
	body .bf-menu .bf-section > h2, body .bf-menu .bf-feature h2 { font-size: 32px; }
	body .bf-menu .bf-feature { padding: 40px; gap: 40px; }
}


/* =====================================================================================
 * Round 5: phone hero framing, sticky menu sections, dish photos, phone action bar,
 * Location page, fade-in on scroll.
 * ===================================================================================== */

/* ---------- Phones: heroes stack the photo above the text so the dish is never covered ----------
 * The photo gets a 4:3 frame (a 3:2 photo loses only a little from each side); the text sits on a
 * solid navy panel below it (white on #0A1828 is about 18:1). */
@media (max-width: 781.98px) {
	body .bf-menu .bf-home-hero { display: block; }
	.bf-slideshow > .bf-slideshow__track { height: auto; aspect-ratio: 4 / 3; }
	.bf-slideshow .bf-slide { min-height: 0; height: 100%; }
	body .bf-menu .bf-home-hero__content {
		padding: 24px var(--bf-hero-inset) 32px;
		background: #0A1828;
		pointer-events: auto;
	}
	body .bf-menu .bf-hero { display: block; min-height: 0 !important; padding-top: 75vw; }
	body .bf-menu .bf-hero .wp-block-cover__image-background { bottom: auto; height: 75vw; }
	body .bf-menu .bf-hero .wp-block-cover__inner-container {
		padding: 24px var(--bf-hero-inset) 32px;
		background: #0A1828;
	}
}

/* ---------- Menu pages: the section bar sticks under the header while you scroll ----------
 * site.js sets --bf-sticky-top (bottom edge of the sticky header) and --bf-jump-h, and marks the
 * button for the section on screen with aria-current. */
body .bf-menu .bf-jump {
	position: sticky; top: var(--bf-sticky-top, 0px); z-index: 40;
	background: #FFFFFF;
}
@media (min-width: 782px) {
	body .bf-menu .bf-jump { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding: 14px 24px; }
}
body .bf-menu .bf-jump a[aria-current="true"] { background: var(--bf-deep); border-color: var(--bf-deep); color: #FFFFFF; }
body .bf-menu .bf-jump a[aria-current="true"]:hover,
body .bf-menu .bf-jump a[aria-current="true"]:focus { background: var(--bf-accent); border-color: var(--bf-accent); }
body .bf-menu .bf-section, body .bf-menu .bf-feature {
	scroll-margin-top: calc(var(--bf-sticky-top, 90px) + var(--bf-jump-h, 76px) + 12px);
}

/* ---------- Dish photos next to a menu item ---------- */
body .bf-menu .bf-item--photo {
	display: grid; grid-template-columns: minmax(0, 1fr) 112px; column-gap: 16px; align-items: start;
}
body .bf-menu .bf-item--photo > h3, body .bf-menu .bf-item--photo > p { grid-column: 1; }
body .bf-menu .bf-item--photo > .bf-item__thumb { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
body .bf-menu .bf-item__thumb img {
	display: block; width: 112px; height: 84px; object-fit: cover; border-radius: 8px;
}

/* ---------- Phones: Reserve / Call / Directions bar fixed to the bottom of the screen ---------- */
.bf-actionbar { display: none; }
@media (max-width: 781.98px) {
	.bf-actionbar {
		display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
		background: #FFFFFF; border-top: 1px solid #D6DEE8;
		box-shadow: 0 -4px 16px rgba(15, 42, 71, 0.12);
	}
	.bf-actionbar__link {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		min-height: 52px; padding: 4px; border: 1.5px solid #1E73BE; border-radius: 10px;
		background: #FFFFFF; color: #1A2230;
		font-family: Oswald, Arial, Helvetica, sans-serif; font-size: 16px; letter-spacing: 0.05em;
		text-transform: uppercase; text-decoration: none;
	}
	.bf-actionbar__link--primary { background: #1E73BE; color: #FFFFFF; }
	.bf-actionbar__link:hover, .bf-actionbar__link:focus { background: #155A96; border-color: #155A96; color: #FFFFFF; }
	.bf-actionbar__link:focus-visible { outline: 3px solid #1E73BE; outline-offset: 2px; }
	/* Keep the page end and any focused control clear of the bar (WCAG 2.4.11). */
	body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
	html { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Location page ---------- */
body .bf-menu .bf-open-status {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 24px; padding: 6px 16px; border: 1px solid #D6E2F0; border-radius: 999px;
	background: #0F2A47; color: #FFFFFF; font-size: 16px; font-weight: 600;
}
body .bf-menu .bf-open-status__dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
body .bf-menu .bf-open-status.is-open .bf-open-status__dot { background: #4ADE80; }
body .bf-menu .bf-open-status.is-closed .bf-open-status__dot { background: #F5B841; }
body .bf-menu .bf-map-band { margin-top: 32px; }
body .bf-menu .bf-map-band iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: 12px; }
body .bf-menu .bf-visit { margin-top: 40px; gap: 32px; }
body .bf-menu .bf-visit h2 { font-size: 24px; margin-top: 28px; }
body .bf-menu .bf-visit .wp-block-column > h2:first-child { margin-top: 0; }
body .bf-menu .bf-visit p { margin-top: 12px; }
@media (min-width: 782px) {
	body .bf-menu .bf-map-band { margin-top: 48px; }
	body .bf-menu .bf-map-band iframe { height: 440px; }
	body .bf-menu .bf-visit { margin-top: 48px; gap: 48px; }
}

/* ---------- Sections fade in as they scroll into view (site.js; off for reduced motion) ---------- */
.bf-anim .bf-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.bf-anim .bf-reveal.is-visible { opacity: 1; transform: none; }
.bf-anim .bf-reveal--fade { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.bf-anim .bf-reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
	.bf-anim .bf-reveal { opacity: 1; transform: none; }
	.bf-actionbar { display: none; }
}

/* ---------- Links to other websites open in a new tab (functions.php adds .bf-ext) ----------
 * The arrow is drawn in the link's own colour, so it has the same contrast as the link text.
 * The phone action bar has no room for it; its links are still announced as opening a new tab. */
a.bf-ext:not(.bf-actionbar__link)::after {
	content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.35em; vertical-align: -0.05em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42L17.59 5H14V3ZM5 5h6v2H5v12h12v-6h2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42L17.59 5H14V3ZM5 5h6v2H5v12h12v-6h2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Lighter hero shade (desktop) ----------
 * A soft-edged shade sits only around the hero text, so the rest of the photo stays at full colour.
 * Under the text it is 62% #0A1828: even over a pure-white patch of photo, white text measures
 * 5.04:1 (WCAG AA needs 4.5:1). It fades out over the 72px above and below the text, the 160px to
 * its right, and the gutter to its left. The text always sits inside the full-strength part. */
@media (min-width: 782px) {
	body .bf-menu .bf-home-hero__content,
	body .bf-menu .bf-hero .wp-block-cover__inner-container { position: relative; isolation: isolate; }
	body .bf-menu .bf-home-hero__content::before,
	body .bf-menu .bf-hero .wp-block-cover__inner-container::before {
		content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
		background: linear-gradient(to right,
			rgba(10, 24, 40, 0) 0,
			rgba(10, 24, 40, 0.62) max(0px, calc(var(--bf-hero-inset) - 32px)),
			rgba(10, 24, 40, 0.62) calc(100% - 160px),
			rgba(10, 24, 40, 0) 100%);
		-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
		mask-image: linear-gradient(to bottom, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
	}
}
