/* ==========================================================================
   BOFK Header + Topbar
   Clean, performant, quiet luxury architecture for BOFK (2026 standard)
   ========================================================================== */

/* Front-page hero — the header/topbar sit transparent+glass on top of this */
.bofk-hero {
	position: relative;
	height: 100vh;
	min-height: 640px;
	overflow: hidden;
	background-color: #111215;
}

.bofk-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	animation: bofkHeroCinematic 2.8s cubic-bezier(0.16, 1, 0.3, 1) both;
	will-change: transform, opacity;
}

@keyframes bofkHeroCinematic {
	0% {
		transform: scale(1.08);
		opacity: 0.7;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.bofk-hero-overlay {
	position: absolute;
	inset: 0;
	background: 
		radial-gradient(ellipse at center, rgba(17, 18, 21, 0.1) 0%, rgba(17, 18, 21, 0.6) 100%),
		linear-gradient(
			180deg,
			rgba(17, 18, 21, 0.65) 0%,
			rgba(17, 18, 21, 0.25) 35%,
			rgba(17, 18, 21, 0.15) 60%,
			rgba(17, 18, 21, 0.50) 85%,
			rgba(17, 18, 21, 0.85) 100%
		);
	pointer-events: none;
	animation: bofkOverlayFade 2s ease-out both;
}

@keyframes bofkOverlayFade {
	0% { opacity: 0.4; }
	100% { opacity: 1; }
}

/* ---- Topbar ---- */
#bofk-topbar {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--bofk-topbar-height);
	background: rgba(14, 16, 20, 0.45);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.85);
	font-family: poppins, sans-serif;
	font-size: 12.5px;
	font-weight: 400;
	letter-spacing: 0.015em;
	z-index: 101;
}

#bofk-topbar .bofk-container--header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--bofk-topbar-height);
}

.bofk-topbar-group {
	display: flex;
	align-items: center;
}

.bofk-topbar-item {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	gap: 8px;
}

.bofk-topbar-item svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: var(--bofk-red);
	opacity: 0.95;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.bofk-topbar-tagline-short {
	display: none;
}

a.bofk-topbar-link {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.2s ease-out;
}

a.bofk-topbar-link:hover {
	color: #ffffff;
}

a.bofk-topbar-link:hover svg {
	transform: translateY(-1px);
	opacity: 1;
}

.bofk-topbar-sep {
	width: 1px;
	height: 14px;
	background-color: rgba(255, 255, 255, 0.18);
	margin: 0 16px;
	flex-shrink: 0;
}

/* ---- Main header ---- */
#bofk-header {
	position: absolute;
	top: var(--bofk-topbar-height);
	left: 0;
	width: 100%;
	z-index: 100;
	background-color: transparent;
	transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, top 0.3s ease-out;
}

#bofk-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--bofk-header-height);
	gap: 20px;
}

.bofk-container--header {
	width: 100%;
	padding: 0 44px;
}

@media (max-width: 767px) {
	.bofk-container--header { padding: 0 20px; }
}

/* Sticky (fixed) state, toggled by JS once user scrolls past the topbar */
#bofk-header.bofk--sticky {
	position: fixed;
	top: 0;
	background-color: #ffffff;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: var(--bofk-shadow-elegant);
}

/* Fallback if admin-bar is ever forced */
body.admin-bar #bofk-topbar {
	top: 32px;
}
body.admin-bar #bofk-header.bofk--sticky {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar #bofk-topbar {
		top: 46px;
	}
	body.admin-bar #bofk-header.bofk--sticky {
		top: 46px;
	}
}

#bofk-header.bofk--sticky #bofk-header-inner {
	height: 70px;
}

/* Logo */
.bofk-logo-link {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: 36px;
	transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#bofk-header.bofk--sticky .bofk-logo-link {
	height: 32px;
}

.bofk-logo-link img {
	height: 100%;
	width: auto;
	object-fit: contain;
}

/* ---- Navigation ---- */
.bofk-nav {
	height: 100%;
}

.bofk-nav ul {
	display: flex;
	align-items: center;
	height: 100%;
}

.bofk-nav > ul > li {
	position: relative;
	height: 100%;
}

.bofk-nav > ul > li > a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 18px;
	font-family: poppins, sans-serif;
	font-size: 15px;
	font-weight: 400;
	color: var(--bofk-bg);
	transition: color 0.2s ease-out;
}

#bofk-header.bofk--sticky .bofk-nav > ul > li > a {
	color: var(--bofk-dark);
}

.bofk-nav-item-text {
	position: relative;
	--bofk-underline-y: calc(100% - 2px);
	background-repeat: no-repeat;
	background-image: linear-gradient(90deg, currentColor 0, currentColor 100%);
	background-position: 100% var(--bofk-underline-y);
	background-size: 0 1px;
	transition: background-size 0.35s cubic-bezier(0.51, 0.5, 0.07, 0.99), color 0.2s ease-out;
}

.bofk-nav > ul > li > a:hover .bofk-nav-item-text,
.bofk-nav > ul > li.current-menu-item > a .bofk-nav-item-text {
	background-size: 100% 1px;
	background-position: 0 var(--bofk-underline-y);
}

/* Dropdown submenu */
.bofk-nav ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background-color: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
	padding: 14px 0;
	flex-direction: column;
	align-items: flex-start;
	height: auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0.25s;
}

.bofk-nav ul li:hover > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.bofk-nav ul ul li { width: 100%; height: auto; }

.bofk-nav ul ul li > a {
	display: block;
	height: auto;
	padding: 8px 24px;
	color: var(--bofk-dark) !important;
	font-size: 14px;
	font-weight: 400;
}

/* ---- Right-side widgets (CTA / search / burger) ---- */
.bofk-header-widgets {
	display: flex;
	align-items: center;
	gap: 16px;
}

.bofk-cta-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 26px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 30px;
	background-color: rgba(255, 255, 255, 0.05);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	font-family: poppins, sans-serif;
	font-size: 15px;
	font-weight: 400;
	color: var(--bofk-bg);
	transition: var(--bofk-transition);
}

.bofk-cta-button:hover {
	background-color: rgba(255, 255, 255, 0.15);
	box-shadow: var(--bofk-shadow-hover);
}

#bofk-header.bofk--sticky .bofk-cta-button {
	border-color: var(--bofk-dark);
	color: var(--bofk-dark);
	background-color: transparent;
}

#bofk-header.bofk--sticky .bofk-cta-button:hover {
	background-color: var(--bofk-dark);
	color: var(--bofk-bg);
}

/* Hamburger button */
.bofk-burger {
	display: none;
	width: 44px;
	height: 44px;
	padding: 15px 11px;
	position: relative;
	cursor: pointer;
	background: none;
	border: none;
	flex-shrink: 0;
}

.bofk-burger span {
	position: absolute;
	left: 11px;
	width: 22px;
	height: 2px;
	background-color: var(--bofk-bg);
	transition: background-color 0.25s ease-out, transform 0.25s ease-out;
}

#bofk-header.bofk--sticky .bofk-burger span {
	background-color: var(--bofk-dark);
}

.bofk-burger span:first-child { top: 15px; }
.bofk-burger span:last-child { top: 29px; }

.bofk-burger.bofk--active span:first-child { transform: translateY(7px) rotate(45deg); }
.bofk-burger.bofk--active span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile nav drawer ---- */
.bofk-mobile-nav {
	position: fixed;
	top: 0;
	right: 0;
	width: 320px;
	max-width: 85vw;
	height: 100vh;
	background-color: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
	z-index: 200;
	padding: 36px 32px 48px;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.bofk-mobile-nav.bofk--open { transform: translateX(0); }

.bofk-mobile-nav-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 36px;
}

.bofk-mobile-nav-logo {
	height: 34px;
	width: auto;
}

.bofk-mobile-nav ul { display: flex; flex-direction: column; gap: 2px; }

.bofk-mobile-nav > ul > li {
	opacity: 0;
	transform: translateX(24px);
	transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.bofk-mobile-nav.bofk--open > ul > li { opacity: 1; transform: translateX(0); }
.bofk-mobile-nav.bofk--open > ul > li:nth-child(1) { transition-delay: 0.08s; }
.bofk-mobile-nav.bofk--open > ul > li:nth-child(2) { transition-delay: 0.13s; }
.bofk-mobile-nav.bofk--open > ul > li:nth-child(3) { transition-delay: 0.18s; }
.bofk-mobile-nav.bofk--open > ul > li:nth-child(4) { transition-delay: 0.23s; }
.bofk-mobile-nav.bofk--open > ul > li:nth-child(5) { transition-delay: 0.28s; }
.bofk-mobile-nav.bofk--open > ul > li:nth-child(6) { transition-delay: 0.33s; }

.bofk-mobile-nav a {
	display: flex;
	align-items: center;
	padding: 13px 0;
	font-family: poppins, sans-serif;
	font-size: 18px;
	font-weight: 500;
	color: var(--bofk-dark);
	border-bottom: 1px solid var(--bofk-separator);
	transition: color 0.2s ease-out, padding-left 0.2s ease-out;
}

.bofk-mobile-nav a:hover {
	color: var(--bofk-red);
	padding-left: 6px;
}

.bofk-mobile-nav-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--bofk-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease-out;
}

.bofk-mobile-nav-close:hover { transform: rotate(90deg); }

.bofk-mobile-nav-contact {
	margin-top: auto;
	padding-top: 36px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-family: poppins, sans-serif;
	font-size: 14px;
	color: var(--bofk-muted);
}

.bofk-mobile-nav-contact a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	border-bottom: none;
	font-size: 14px;
	font-weight: 400;
	color: var(--bofk-dark);
}

.bofk-mobile-nav-contact a:hover { color: var(--bofk-red); }

.bofk-mobile-nav-contact svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--bofk-red); }

.bofk-mobile-nav-hours {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--bofk-dark);
}

.bofk-mobile-nav-hours svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--bofk-red); }

.bofk-mobile-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease-out, visibility 0.3s;
	z-index: 190;
}

.bofk-mobile-overlay.bofk--open { opacity: 1; visibility: visible; }

@media (max-width: 991px) {
	.bofk-nav { display: none; }
	.bofk-header-widgets .bofk-cta-button { display: none; }
	#bofk-topbar .bofk-topbar-group.bofk--left { display: none; }
	.bofk-burger { display: block; }
}

@media (min-width: 992px) {
	.bofk-mobile-nav,
	.bofk-mobile-overlay,
	.bofk-mobile-nav-close { display: none; }
}

/* Belt-and-braces: prevent horizontal overflow */
html, body { overflow-x: hidden; max-width: 100%; }

/* Logo Swap Logic */
#bofk-header:not(.bofk--sticky) .bofk-logo-dark {
	display: none;
}
#bofk-header:not(.bofk--sticky) .bofk-logo-light {
	display: block;
}

#bofk-header.bofk--sticky .bofk-logo-light {
	display: none;
}
#bofk-header.bofk--sticky .bofk-logo-dark {
	display: block;
}

/* ==========================================================================
   Responsive Hierarchy & Logo Scaling (Expert 2026 UX/UI standard down to 320px)
   Aspect Ratio: 3.490 : 1 (Optical Tight Box)
   ========================================================================== */

/* Laptops & Medium Desktops (992px - 1199px) */
@media (max-width: 1199px) {
	.bofk-logo-link { height: 34px; }
	#bofk-header.bofk--sticky .bofk-logo-link { height: 30px; }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
	#bofk-topbar { font-size: 12px; }
	.bofk-topbar-sep { margin: 0 12px; }
	.bofk-logo-link { height: 34px; }
	#bofk-header.bofk--sticky .bofk-logo-link { height: 30px; }
}

/* Mobile Landscape & Large Phones (481px - 767px) */
@media (max-width: 767px) {
	#bofk-topbar { font-size: 11.5px; }
	.bofk-topbar-tagline-full { display: none; }
	.bofk-topbar-tagline-short { display: inline; }
	.bofk-container--header { padding: 0 20px; }
	.bofk-logo-link { height: 34px; }
	#bofk-header.bofk--sticky .bofk-logo-link { height: 30px; }
	.bofk-header-widgets { gap: 12px; }
}

/* Standard Mobile / iPhones (361px - 480px) */
@media (max-width: 480px) {
	#bofk-topbar { font-size: 11px; }
	.bofk-topbar-tagline-full { display: none; }
	.bofk-topbar-tagline-short { display: inline; }
	.bofk-container--header { padding: 0 16px; }
	.bofk-topbar-hours,
	.bofk-topbar-sep {
		display: none;
	}
	.bofk-logo-link { height: 32px; }
	#bofk-header.bofk--sticky .bofk-logo-link { height: 28px; }
	.bofk-header-widgets { gap: 10px; }
}

/* Ultra-Compact Mobile (<= 360px down to 320px e.g. iPhone SE / Fold outer screen) */
@media (max-width: 360px) {
	#bofk-topbar { font-size: 10.5px; }
	.bofk-container--header { padding: 0 12px; }
	.bofk-logo-link { height: 28px; }
	#bofk-header.bofk--sticky .bofk-logo-link { height: 26px; }
	.bofk-header-widgets { gap: 8px; }
}

/* ==========================================================================
   Subpage Hero Banner (Solid Deep Black Header)
   ========================================================================== */
.bofk-page-hero {
	position: relative;
	min-height: 260px;
	background-color: #111215;
	display: flex;
	align-items: flex-end;
	padding-top: calc(var(--bofk-topbar-height) + var(--bofk-header-height) + 28px);
	padding-bottom: 38px;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bofk-page-hero-container {
	position: relative;
	z-index: 2;
	width: 100%;
}

.bofk-breadcrumbs {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: poppins, sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 8px;
	letter-spacing: 0.02em;
}

.bofk-breadcrumbs a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 0.2s ease;
}

.bofk-breadcrumbs a:hover {
	color: #ffffff;
}

.bofk-breadcrumbs-sep {
	color: rgba(255, 255, 255, 0.35);
	font-weight: 400;
	font-size: 12px;
}

.bofk-breadcrumbs-current {
	color: rgba(255, 255, 255, 0.95);
	font-weight: 400;
}

.bofk-page-title {
	font-family: ivymode, "Playfair Display", Georgia, serif;
	font-size: clamp(28px, 4.5vw, 44px);
	font-weight: 500;
	line-height: 1.15;
	color: #ffffff;
	letter-spacing: -0.01em;
	margin: 0;
	position: relative;
	display: block;
}

.bofk-page-wrapper {
	padding: 50px 0 80px;
	min-height: 40vh;
	background-color: #ffffff;
}

@media (max-width: 991px) {
	.bofk-page-hero {
		min-height: 230px;
		padding-top: calc(var(--bofk-topbar-height) + var(--bofk-header-height) + 20px);
		padding-bottom: 30px;
	}
}

@media (max-width: 767px) {
	.bofk-page-hero {
		min-height: 205px;
		padding-top: calc(var(--bofk-topbar-height) + var(--bofk-header-height) + 14px);
		padding-bottom: 24px;
	}
	.bofk-page-wrapper {
		padding: 36px 0 60px;
	}
}

@media (max-width: 480px) {
	.bofk-page-hero {
		min-height: 185px;
		padding-top: calc(var(--bofk-topbar-height) + var(--bofk-header-height) + 12px);
		padding-bottom: 20px;
	}
	.bofk-breadcrumbs {
		font-size: 11.5px;
		gap: 6px;
		margin-bottom: 6px;
	}
}

@media (max-width: 360px) {
	.bofk-page-hero {
		min-height: 170px;
		padding-top: calc(var(--bofk-topbar-height) + var(--bofk-header-height) + 10px);
		padding-bottom: 16px;
	}
	.bofk-breadcrumbs {
		font-size: 11px;
	}
}

/* ==========================================================================
   Quiet Luxury Hero Entrance Keyframes
   ========================================================================== */
@keyframes bofkHeroFadeDown {
	0% {
		opacity: 0;
		transform: translateY(-10px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes bofkHeroTitleReveal {
	0% {
		opacity: 0;
		transform: translateY(16px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.bofk-breadcrumbs {
	animation: bofkHeroFadeDown 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.bofk-page-title {
	animation: bofkHeroTitleReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* ==========================================================================
   Single Post Clean Header (No Hero Banner)
   ========================================================================== */
body.single-post #bofk-topbar {
	position: relative;
	background-color: #111215;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.single-post #bofk-header {
	position: relative;
	top: 0;
	background-color: #111215;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.single-post #bofk-header.bofk--sticky {
	position: fixed;
	top: 0;
	background-color: #ffffff;
	border-bottom: none;
}
