/*
 * Header, footer and mobile menu of Flower Moon in Kadence's Full Site Editing mode.
 * The template parts are plain core blocks with class names (inc/fse/class-builder.php); the looks are here and use the style's
 * colours (Kadence palette) and fonts (--fm-font-brand, --fm-font-caps, printed by inc/fse/class-templates.php).
 */

/* ---------- Type ---------- */
.fm-brand,
.fm-brand a {
	font-family: var(--fm-font-brand, inherit);
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	margin: 0;
}
.fm-nav,
.fm-nav .wp-block-navigation-item__content,
.fm-footer-line,
.fm-header-button .wp-block-button__link,
.fm-tagline {
	font-family: var(--fm-font-caps, inherit);
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-underline-offset: 0.45em;
}
:where(.fm-nav) { color: var(--global-palette3, inherit); }
:where(.fm-nav) .wp-block-navigation-item__content:hover { color: var(--global-palette5, inherit); }
.fm-nav .wp-block-navigation__container { gap: 2.2em; }
.fm-nav-footer,
.fm-nav-footer .wp-block-navigation-item__content { font-size: 11px; }
.fm-nav-footer .wp-block-navigation__container { gap: 1.6em; }
.fm-footer-line { font-size: 11px; letter-spacing: 0.16em; margin: 0; }
.fm-header-button .wp-block-button__link { font-size: 11px; letter-spacing: 0.2em; border-radius: 0; padding: 12px 24px; }
.fm-tagline { margin: 0; font-size: 11px; }
/* Social links in the text colour (WordPress would draw each network in its brand colour). */
.wp-block-social-links.fm-social.is-style-logos-only .wp-social-link.wp-social-link { color: var(--global-palette3, currentColor); }
.wp-block-social-links.fm-social.is-style-logos-only .wp-social-link.wp-social-link:hover { color: var(--global-palette5, currentColor); }

/* ---------- Header ---------- */
.fm-header { padding-inline: var(--global-content-edge-padding, 24px); }
.fm-header .fm-hrow { align-items: center; gap: 24px; min-height: 96px; }
.fm-header .fm-hrow--top { min-height: 40px; border-bottom: 1px solid var(--global-palette7, #ddd); }
.fm-header .fm-hrow--bottom { min-height: 56px; justify-content: center; }
.fm-header--stacked .fm-hrow--main,
.fm-header--grand .fm-hrow--main { min-height: 110px; }
.fm-header .fm-hcell { flex: 1 1 0; min-width: 0; align-items: center; gap: 16px; }
.fm-header .fm-hrow--left-right > .fm-hcell--right,
.fm-header .fm-hrow--left-center-right > .fm-hcell--right { justify-content: flex-end; }
.fm-header .fm-hrow--center { justify-content: center; }
.fm-header .fm-hrow--center > .fm-hcell { flex: 0 1 auto; }
.fm-header .fm-hrow--left-center-right { display: grid; grid-template-columns: 1fr auto 1fr; }
.fm-header--grand .fm-hcell > .fm-logo .fm-brand,
.fm-header--grand .fm-hcell > .fm-logo .fm-brand a { font-size: 40px; }
.fm-header .wp-block-site-logo img { height: auto; max-width: 100%; }
.fm-header .fm-hcell > .wp-block-navigation { gap: 1.5em; }
.fm-header .fm-hcell > .wp-block-buttons { flex-shrink: 0; }

/* Sticky: the part's wrapper sticks (a sticky child of a wrapper of the same height would not). */
.wp-site-blocks > .wp-block-template-part:has(> .fm-header-sticky) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

/* Over the first block of a page that asks for it. */
.fm-header-over .wp-site-blocks > header.wp-block-template-part {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 50;
}
.fm-header-over .wp-site-blocks > header.wp-block-template-part:has(> .fm-header-sticky) {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
}
.fm-header-over .fm-header { background: transparent !important; }

/* Phones: logo and the menu button in one bar (WordPress collapses the menu below 600px). The menu overlay is rendered inside the
   header's menu block, so these rules only reach the header's own cells (child combinators). */
@media (max-width: 599px) {
	.fm-header .fm-hrow { min-height: 72px; gap: 12px; }
	.fm-header .fm-hrow--top { display: none; }
	.fm-header .fm-hrow--main > .fm-hcell { display: contents; }
	.fm-header .fm-hrow--main { justify-content: space-between; }
	.fm-header .fm-hcell > .fm-nav-2,
	.fm-header .fm-hcell > .fm-header-button,
	.fm-header .fm-hrow--main > .fm-hcell > .fm-social { display: none; }
	.fm-header .fm-logo .fm-brand,
	.fm-header .fm-logo .fm-brand a { font-size: 22px; }
	.fm-m-fullscreen .fm-hrow--main,
	.fm-m-centered .fm-hrow--main { display: grid; grid-template-columns: 1fr auto 1fr; }
	.fm-m-fullscreen .fm-hrow--main > .fm-hcell > .wp-block-navigation { order: -1; justify-self: start; }
	.fm-m-fullscreen .fm-hrow--main > .fm-hcell > .fm-logo,
	.fm-m-centered .fm-hrow--main > .fm-hcell > .fm-logo { justify-self: center; }
	.fm-m-centered .fm-hrow--main > .fm-hcell > .wp-block-navigation { justify-self: end; }
}

/* ---------- Footer ---------- */
.fm-footer { padding: 56px var(--global-content-edge-padding, 24px) 48px; }
.fm-footer .fm-frow { align-items: center; gap: 24px 32px; padding-block: 12px; }
.fm-footer .fm-frow + .fm-frow { border-top: 1px solid var(--global-palette7, #ddd); margin-top: 24px; padding-top: 24px; }
.fm-footer .fm-fcell { flex: 1 1 0; min-width: 0; gap: 16px; }
.fm-footer .fm-fcell--center { align-items: center; text-align: center; }
.fm-footer .fm-fcell--right { align-items: flex-end; text-align: right; }
.fm-footer .fm-frow--stack > .fm-fcell { flex-direction: column; }
.fm-footer .fm-footer-name { font-size: 26px; }
.fm-footer .fm-footer-name-lg { font-size: clamp(48px, 9vw, 120px); line-height: 1; }
@media (max-width: 599px) {
	.fm-footer { padding-block: 40px 32px; }
	.fm-footer .fm-fcell { flex-basis: 100%; align-items: center; text-align: center; }
	.fm-footer .fm-nav-footer { justify-content: center; }
}

/* ---------- Mobile menu (the navigation overlay part) ---------- */
.fm-overlay { min-height: 100vh; box-sizing: border-box; padding: 24px; }
.fm-overlay .fm-overlay-bar { margin-bottom: 24px; }
.fm-overlay .fm-social,
.fm-overlay .fm-header-button { margin-top: 28px; }
.fm-overlay .fm-nav-overlay { font-size: 14px; gap: 1.2em; }
.fm-overlay .wp-block-navigation__container { gap: 1.2em; }
.fm-overlay--drawer { max-width: min(420px, 88vw); margin-left: auto; box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12); }
.fm-overlay--fullscreen,
.fm-overlay--centered { text-align: center; }
.fm-overlay--fullscreen .wp-block-navigation__container,
.fm-overlay--centered .wp-block-navigation__container { align-items: center; }
.fm-overlay--fullscreen .fm-nav-overlay { font-size: 22px; }
.fm-overlay--fullscreen,
.fm-overlay--centered { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.fm-overlay--fullscreen > .fm-overlay-bar,
.fm-overlay--centered > .fm-overlay-bar { align-self: stretch; }
.wp-block-navigation__responsive-container.is-menu-open:has(.fm-overlay--drawer) { background-color: rgba(20, 20, 20, 0.45) !important; }

/* ---------- Page templates ---------- */
.fm-landing-main > .fm-landing-content,
.fm-landing-content { max-width: none; padding: 0; margin: 0; }
.fm-landing-content > * { max-width: none; }
