/* fandb-header.css — F+B Header: sticky frosted bar, dark topbar, brand + nav layout.
   Scoped to .is-style-fandb-header on the outer header group. */

/* ── Sticky wrapper ── */
.is-style-fandb-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

/*
 * backdrop-filter on a stacking context clips position:fixed descendants (nav overlay).
 * Move the frosted-glass to ::before so the header itself stays a clean stacking context.
 */
.is-style-fandb-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(248, 244, 235, 0.92);
	backdrop-filter: saturate(120%) blur(10px);
	-webkit-backdrop-filter: saturate(120%) blur(10px);
	z-index: -1;
	pointer-events: none;
}

/* ── Topbar (dark strip) ── */
.is-style-fandb-header .fandb-header-topbar {
	/* background set via backgroundColor block attr; border separates it from main bar */
	border-bottom: 1px solid rgba(10, 16, 36, 0.12);
}

.is-style-fandb-header .fandb-topbar-inner {
	max-width: var(--wp--style--global--wide-size, 1440px);
	margin-inline: auto;
	padding: 0.45rem var(--wp--preset--spacing--medium);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.is-style-fandb-header .fandb-topbar-inner > p {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}

/* Socials row */
.is-style-fandb-header .fandb-topbar-socials {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.is-style-fandb-header .fandb-topbar-socials a,
.is-style-fandb-header .fandb-social-link {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--border-light) !important;
	text-decoration: none;
	white-space: nowrap;
}

.is-style-fandb-header .fandb-topbar-socials a:hover,
.is-style-fandb-header .fandb-social-link:hover {
	color: #fff !important;
}

/* ── Main header bar — 3-column grid: [nav left] [brand center] [cta right] ── */
/* Padding lives on the block itself (editable in the Gutenberg spacing panel). */
.is-style-fandb-header .fandb-header-main {
	max-width: var(--wp--style--global--wide-size, 1440px);
	margin-inline: auto;
	display: grid !important;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.5rem;
}

/* ── Nav (left column) ── */
.is-style-fandb-header .fandb-header-nav {
	justify-self: start;
}

/* Nav links (desktop) */
.is-style-fandb-header .fandb-header-nav .wp-block-navigation__container {
	gap: 1.5rem;
}

.is-style-fandb-header .fandb-header-nav .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--main) !important;
	text-decoration: none;
	padding: 0.25rem 0;
	position: relative;
}

.is-style-fandb-header .fandb-header-nav .wp-block-navigation-item__content::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 1.5px;
	background: var(--wp--preset--color--primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.is-style-fandb-header .fandb-header-nav .wp-block-navigation-item:hover .wp-block-navigation-item__content::after,
.is-style-fandb-header .fandb-header-nav .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* Hamburger icon */
.is-style-fandb-header .fandb-header-nav .wp-block-navigation__responsive-container-open,
.is-style-fandb-header .fandb-header-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--main);
}

/* ── Brand (center column) ── */
.is-style-fandb-header .fandb-brand {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	text-decoration: none;
	justify-self: center;
	align-items: center;
}

.is-style-fandb-header .fandb-brand .wp-block-site-title {
	font-size: 1.85rem !important;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	font-family: var(--wp--preset--font-family--heading);
	margin: 0;
	text-align: center;
}

.is-style-fandb-header .fandb-brand .wp-block-site-title a {
	color: var(--wp--preset--color--main) !important;
	text-decoration: none;
}

.is-style-fandb-header .fandb-brand .wp-block-site-tagline {
	font-size: 0.55rem !important;
	font-weight: 600;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--wp--preset--color--main-accent) !important;
	font-family: var(--wp--preset--font-family--body);
	margin: 0;
	text-align: center;
}

/* ── Actions (right column): CTA button ── */
.is-style-fandb-header .fandb-header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	justify-self: end;
}

/* Reserve pill button */
.is-style-fandb-header .fandb-reserve-pill .wp-block-button__link {
	border-radius: 999px;
	border-width: 0;
	font-size: var(--wp--preset--font-size--x-small);
	transition: background 0.25s ease;
}

/* ── Mobile ── */
@media (max-width: 781px) {
	/* Hide reserve pill — links move to the nav overlay */
	.is-style-fandb-header .fandb-reserve-pill {
		display: none;
	}

	.is-style-fandb-header .fandb-header-main {
		padding-top: 0.85rem;
		padding-bottom: 0.85rem;
		/* hamburger left, brand center, empty right */
		grid-template-columns: auto 1fr auto;
	}

	.is-style-fandb-header .fandb-brand {
		justify-self: center;
	}

	/* Hide Instagram + Facebook; keep phone link */
	.is-style-fandb-header .fandb-social-instagram,
	.is-style-fandb-header .fandb-social-facebook {
		display: none;
	}
}
