/**
 * MEF Skin — default
 * Loads on every page. Year skins layer on top via .mef-year-XXXX.
 * This is the canonical source for: header, hamburger, fullscreen menu,
 * footer, typography, nav chrome reset, FAQ, buttons.
 * parallax.css adds the scene layers (front-page/parallax-hero only).
 */


/* ── Design tokens (mirror theme.json layout) ─────────────── */
/*
 * --mef-nav-bp mirrors theme.json settings.layout.wideSize (1340px).
 * Media queries cannot read CSS custom properties, so the value is
 * duplicated here. Change BOTH here and in theme.json together.
 * WP also outputs: --wp--style--global--wide-size: 1340px (on :root)
 *                  --wp--style--global--content-size: 645px (on :root)
 */
:root {
	--mef-nav-bp: 1340px;
	--mef-content-size: 645px;
	--mef-header-v-pad: var(--wp--preset--spacing--30, 1.25rem);
}

/* ── WP block margin reset ────────────────────────────────── */

:where(.wp-site-blocks) > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

.wp-block-template-part {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

.has-global-padding > .alignfull {
	margin-right: 0 !important;
	margin-left: 0 !important;
}

/* ── Visibility utilities ─────────────────────────────────── */
/*
 * Logo classes — set on the group block wrapping each site-logo in the editor
 * (block → Advanced → Additional CSS class):
 *
 * .mef-logo-isotype  → icon-only logo. Visible below 645px. shouldSyncIcon:true, ~40px.
 * .mef-logo-isologo  → full wordmark.  Visible at ≥ 645px.  shouldSyncIcon:false, ~200px.
 *
 * Nav / CTA:
 * .mef-desktop-nav   → Navigation block. Hidden on mobile (< 1340px).
 * .mef-header-cta    → CTA button group. ALWAYS visible — not hidden on mobile.
 *
 * Generic helpers (for blocks outside the header):
 * .mef-mobile-only / .mef-logo-mobile   → visible only < 1340px
 * .mef-desktop-only / .mef-logo-desktop → visible only ≥ 1340px
 * .mef-always                           → always visible, semantic marker
 */

/* ── Logo switch: isotype ↔ isologo at 645px ──────────────── */

.mef-logo-isotype {
	display: flex;
}
.mef-logo-isologo {
	display: none;
}

@media (min-width: 645px) {
	.mef-logo-isotype {
		display: none !important;
	}
	.mef-logo-isologo {
		display: flex !important;
	}
}

/* ── Generic visibility helpers ───────────────────────────── */

.mef-mobile-only,
.mef-logo-mobile {
	display: block;
}

.mef-desktop-only,
.mef-logo-desktop {
	display: none;
}

@media (min-width: 1340px) {
	.mef-mobile-only,
	.mef-logo-mobile {
		display: none !important;
	}
	.mef-desktop-only,
	.mef-logo-desktop {
		display: block !important;
	}
}

/* Flex containers need flex not block */
.wp-block-group.mef-mobile-only,
.wp-block-group.mef-logo-mobile,
.wp-block-columns.mef-mobile-only,
.wp-block-columns.mef-logo-mobile {
	display: flex;
}

.wp-block-group.mef-desktop-only,
.wp-block-group.mef-logo-desktop,
.wp-block-columns.mef-desktop-only,
.wp-block-columns.mef-logo-desktop {
	display: none;
}

@media (min-width: 1340px) {
	.wp-block-group.mef-mobile-only,
	.wp-block-group.mef-logo-mobile,
	.wp-block-columns.mef-mobile-only,
	.wp-block-columns.mef-logo-mobile {
		display: none !important;
	}
	.wp-block-group.mef-desktop-only,
	.wp-block-group.mef-logo-desktop,
	.wp-block-columns.mef-desktop-only,
	.wp-block-columns.mef-logo-desktop {
		display: flex !important;
	}
}

/* ── Background ───────────────────────────────────────────── */

body {
	background-color: #0a0a0c;
	color: #e8e8e4;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-color: #0a0a0c;
	background-image:
		radial-gradient(at 10% 90%, hsla(240, 7%, 13%, 1) 0px, transparent 70%),
		radial-gradient(at 10% 10%, hsla(31, 6%, 18%, 1) 0px, transparent 70%),
		radial-gradient(at 90% 10%, hsla(240, 6%, 11%, 1) 0px, transparent 70%),
		radial-gradient(at 90% 90%, hsla(240, 14%, 8%, 1) 0px, transparent 70%);
	background-repeat: no-repeat;
	background-size: cover;
	min-height: 100svh;
}

/* ── Typography ───────────────────────────────────────────── */

h1 {
	color: #f0ede6;
	font-family: var(--wp--preset--font-family--cinzel, 'Cinzel', serif);
	font-size: clamp(2.2rem, 9vw, 4rem);
}

h3, h4, h5, h6 {
	color: #f0ede6;
	font-family: var(--wp--preset--font-family--cinzel, 'Cinzel', serif);
	letter-spacing: 0.04em;
}

p, li, td {
	color: rgba(232, 232, 228, 0.85);
	font-family: var(--wp--preset--font-family--barlow-condensed, 'Barlow Condensed', sans-serif);
	font-size: clamp(1rem, 2.5vw, 1.15rem);
	line-height: 1.7;
}

a {
	color: #c9a84c;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #e8c35a;
}

/* ── Header ───────────────────────────────────────────────── */
/*
 * Structure mirrors TwentyTwentyFive's own header pattern:
 *   <header class="mef-header">              ← position:fixed wrapper
 *     .alignfull                             ← full-width band
 *       .wp-block-group (constrained)        ← centres content to wideSize
 *         .alignwide (flex row)              ← [logo] [nav+cta]
 *
 * The constrained group uses WP's built-in layout system so it
 * automatically inherits wideSize (1340px) from theme.json — no
 * custom max-width needed. This is DB-proof: even if the admin re-saves
 * the header in the site editor, TT25's constrained layout renders it right.
 */

.mef-header {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent !important;
	transition: background 0.35s ease;
}

.mef-header.mef-scrolled {
	background: linear-gradient(to bottom, rgba(5,5,8,0.88) 0%, rgba(5,5,8,0) 100%) !important;
}

.home .mef-header .wp-block-site-logo {
	filter: drop-shadow(0 1px 8px rgba(0,0,0,0.7));
}
.home .mef-header a span.wp-block-navigation-item__label {
	text-shadow: 0px 1px 8px rgba(0,0,0,0.7);
}
.home .mef-header a:hover span.wp-block-navigation-item__label {
	text-shadow: none;
}


.admin-bar .mef-header {
	top: var(--wp-admin--admin-bar--height, 32px) !important;
}

/* Prevent the alignfull inner group from creating horizontal overflow */
.mef-header .alignfull {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Zero out any block margins inside the header */
.mef-header .wp-block-group {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* ── Navigation block — desktop inline style ──────────────── */

.mef-header .wp-block-navigation,
.mef-header .wp-block-navigation a,
.mef-header .wp-block-navigation-item__content,
.mef-header .wp-block-navigation .wp-block-navigation-item.current-menu-item > a,
.mef-header .wp-block-navigation .wp-block-navigation-item:hover > a {
	background: none !important;
	background-color: transparent !important;
}

.mef-header .wp-block-navigation a,
.mef-header .wp-block-navigation-item__content {
	color: rgba(255,255,255,0.88) !important;
	font-family: var(--wp--preset--font-family--merva, 'Merva', sans-serif);
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	border: none !important;
	box-shadow: none !important;
}

.mef-header .wp-block-navigation a:hover,
.mef-header .wp-block-navigation-item__content:hover {
	color: #c9a84c !important;
}

/* ── Kill WP's built-in mobile hamburger completely ────────── */
/*
 * We use our own PHP-injected toggle + fullscreen overlay.
 * WP's responsive container must be fully suppressed.
 */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-overlay,
.wp-block-navigation__responsive-container.is-menu-open {
	display: none !important;
}

/* The responsive container itself — never show it */
.mef-header .wp-block-navigation__responsive-container {
	display: none !important;
}

/* ── Responsive show/hide ─────────────────────────────────── */

/* Desktop (≥ 1340px): full nav visible, hamburger hidden */
@media (min-width: 1340px) {
	.mef-menu-toggle {
		display: none !important;
	}
	.mef-fullscreen-menu {
		display: none !important;
	}
	/* Show nav items on desktop */
	.mef-header .mef-desktop-nav {
		display: flex !important;
	}
}

/* Mobile (< 1340px): hide nav items only, CTA button stays visible */
@media (max-width: 1339px) {
	.mef-menu-toggle {
		margin-top: 33px;
		margin-right: 33px;
	}
	.mef-header .wp-block-group-is-layout-flex .wp-block-group-is-layout-flex:has(.mef-header-cta) {
    	margin-right: 66px !important;
	}
	/* Hide the navigation link items */
	.mef-header .mef-desktop-nav {
		display: none !important;
	}
	/* CTA button group stays — always show */
	.mef-header .mef-header-cta {
		display: flex !important;
	}
}

@media (max-width: 644px) {
	.mef-menu-toggle {
		margin-top: 14px;
		margin-right: 0px;
	}
}

/* ── Hamburger button ─────────────────────────────────────── */
/*
 * PHP-injected via wp_body_open → immune to DB template changes.
 * position:fixed, aligned to right edge of the constrained header band.
 *
 * right: 1.25rem matches the site's standard side gutter.
 * height: 72px fills the header row so the spans are vertically centred.
 *
 * z-index 110 → above header (100), below overlay (150).
 */

.mef-menu-toggle {
	position: fixed;
	top: 0;
	right: 1.25rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 72px;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	cursor: pointer;
	padding: 0;
	z-index: 110;
}

.admin-bar .mef-menu-toggle {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.mef-menu-toggle span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: rgba(255,255,255,0.85) !important;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s ease;
	transform-origin: center;
}

.mef-menu-toggle:hover span { background: rgba(255,255,255,0.5) !important; }
.mef-menu-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mef-menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mef-menu-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Fullscreen overlay ───────────────────────────────────── */

.mef-fullscreen-menu {
	position: fixed;
	inset: 0;
	z-index: 150;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(4,4,6,0.97);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.mef-fullscreen-menu.is-open {
	opacity: 1;
	pointer-events: all;
}

body.mef-menu-open { overflow: hidden; }

/* Close (×) button — injected by JS */
.mef-overlay-close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	background: none !important;
	border: 1px solid rgba(255,255,255,0.2) !important;
	border-radius: 6px !important;
	color: rgba(255,255,255,0.7);
	font-size: 1.1rem;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.mef-overlay-close:hover {
	border-color: rgba(255,255,255,0.5) !important;
	color: #fff;
}

/* Overlay nav list — built by JS */
.mef-fullscreen-menu .mef-overlay-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mef-fullscreen-menu .mef-overlay-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.mef-fullscreen-menu .mef-overlay-list li {
	list-style: none !important;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.mef-fullscreen-menu.is-open .mef-overlay-list li { opacity: 1; transform: translateY(0); }

.mef-fullscreen-menu .mef-overlay-list li:nth-child(1) { transition-delay: 0.04s; }
.mef-fullscreen-menu .mef-overlay-list li:nth-child(2) { transition-delay: 0.09s; }
.mef-fullscreen-menu .mef-overlay-list li:nth-child(3) { transition-delay: 0.14s; }
.mef-fullscreen-menu .mef-overlay-list li:nth-child(4) { transition-delay: 0.19s; }
.mef-fullscreen-menu .mef-overlay-list li:nth-child(5) { transition-delay: 0.24s; }
.mef-fullscreen-menu .mef-overlay-list li:nth-child(6) { transition-delay: 0.29s; }

.mef-fullscreen-menu .mef-overlay-list a {
	display: block;
	font-family: var(--wp--preset--font-family--merva, 'Merva', serif);
	font-size: clamp(2.2rem, 9vw, 4rem);
	font-weight: 400;
	letter-spacing: 0.04em;
	color: #f5e9cc;
	text-decoration: none;
	text-transform: uppercase;
	line-height: 1.2;
	padding: 0.25rem 1rem;
	transition: color 0.2s ease, letter-spacing 0.2s ease;
	background: none !important;
}

.mef-fullscreen-menu .mef-overlay-list a:hover {
	color: #c9a84c;
	letter-spacing: 0.1em;
}

.mef-fullscreen-menu::after {
	content: '';
	display: block;
	width: 36px;
	height: 1px;
	background: #c9a84c;
	margin-top: 2.5rem;
	opacity: 0.45;
}

/* ── CTA button — header ──────────────────────────────────── */
/*
 * .mef-header-cta  — the wp:buttons wrapper (always visible, all breakpoints)
 * .is-nav-btn      — nav item styled as pill (for items inside .mef-desktop-nav)
 *
 * Both the Button block inside .mef-header-cta and nav items with .is-nav-btn
 * get the same gold pill treatment.
 */

/* Always-visible CTA: Button block placed beside the nav */
.mef-header .mef-header-cta .wp-block-button__link,
.mef-header .mef-header-cta .wp-element-button,
/* Nav item styled as pill button */
.mef-header .wp-block-navigation-item.is-nav-btn > .wp-block-navigation-item__content,
.mef-header .wp-block-navigation-item.is-nav-btn > a,
/* Button block inside Navigation block */
.mef-header .wp-block-navigation .wp-block-button__link,
.mef-header .wp-block-navigation .wp-element-button {
	background: linear-gradient(135deg, #b8932a 0%, #e8c35a 45%, #b8932a 100%) !important;
	color: #1a1200 !important;
	font-weight: 800 !important;
	font-family: var(--wp--preset--font-family--barlow-condensed, 'Barlow Condensed', sans-serif) !important;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 0.5rem 1.6rem !important;
	border-radius: 50px !important;
	border: none !important;
	box-shadow: 0 0 18px rgba(200,160,40,0.45) !important;
	transition: box-shadow 0.3s ease, transform 0.2s ease;
	display: inline-block;
	white-space: nowrap;
  animation: pulse-animation 2s infinite;
  	animation: swing ease-in-out 1s infinite alternate;

}

@keyframes pulse-animation {
  0% {
	box-shadow: 0 0 18px rgba(200,160,40,0.45) !important;
  }
  100% {
	box-shadow: 0 0 28px rgba(200,160,40,0.75) !important;
  }
}



.mef-header .mef-header-cta .wp-block-button__link:hover,
.mef-header .mef-header-cta .wp-element-button:hover,
.mef-header .wp-block-navigation-item.is-nav-btn > .wp-block-navigation-item__content:hover,
.mef-header .wp-block-navigation-item.is-nav-btn > a:hover {
	color: #1a1200 !important;
	box-shadow: 0 0 28px rgba(200,160,40,0.75) !important;
	transform: translateY(-1px);
}

/* Button block inside Navigation — remove WP default padding/border */
.mef-header .wp-block-navigation .wp-block-buttons {
	margin: 0;
	padding: 0;
}
.mef-header .wp-block-navigation .wp-block-button {
	margin: 0;
}

/* CTA in fullscreen overlay */
.mef-fullscreen-menu .mef-overlay-list .is-nav-btn > a {
	color: #c9a84c !important;
	border: 1px solid rgba(201,168,76,0.5) !important;
	border-radius: 50px !important;
	padding: 0.35rem 2rem !important;
	font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
	letter-spacing: 0.2em;
	margin-top: 0.5rem;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mef-fullscreen-menu .mef-overlay-list .is-nav-btn > a:hover {
	background: rgba(201,168,76,0.1) !important;
	border-color: #c9a84c !important;
	color: #e8c35a !important;
	letter-spacing: 0.2em;
}

/* ── Navigation dropdown — desktop only ───────────────────── */

@media (min-width: 1340px) {

.mef-header .wp-block-navigation__submenu-container {
	background: rgba(10, 10, 10, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
	padding: 0.75rem 0.5rem;
	min-width: 180px;
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 50%;
	transform: translateX(-50%) translateY(-4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.mef-header .wp-block-navigation-item.has-child:hover .wp-block-navigation__submenu-container,
.mef-header .wp-block-navigation-item.has-child:focus-within .wp-block-navigation__submenu-container,
.mef-header .wp-block-navigation-item.has-child.is-menu-open .wp-block-navigation__submenu-container {
	opacity: 1;
	pointer-events: all;
	transform: translateX(-50%) translateY(0);
}

.mef-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.mef-header .wp-block-navigation__submenu-container a {
	display: block;
	color: rgba(245, 233, 204, 0.8) !important;
	font-family: var(--wp--preset--font-family--barlow-condensed, 'Barlow Condensed', sans-serif) !important;
	font-size: 0.8rem !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.55rem 1.1rem !important;
	border-radius: 10px;
	white-space: nowrap;
	transition: color 0.15s ease, background 0.15s ease;
	background: none !important;
}

.mef-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.mef-header .wp-block-navigation__submenu-container a:hover {
	color: #c9a84c !important;
	background: rgba(255, 255, 255, 0.05) !important;
}

.mef-header .wp-block-navigation__submenu-container .wp-block-navigation-item + .wp-block-navigation-item {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mef-header .wp-block-navigation__submenu-container::before {
	content: '';
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	width: 10px;
	height: 6px;
	clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
	background: rgba(255, 255, 255, 0.08);
}

.mef-header .wp-block-navigation-item.has-child {
	position: relative;
}

.mef-header .wp-block-navigation__submenu-icon {
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.mef-header .wp-block-navigation-item.has-child:hover .wp-block-navigation__submenu-icon {
	opacity: 1;
}

} /* end @media desktop */

/* ── Inner page content ───────────────────────────────────── */

.no-margin-block { margin-block: 0; }

.entry-content,
.wp-block-post-content {
	padding-top: 6rem;
	padding-bottom: 4rem;
}

.entry-content h2 {
	font-size: clamp(1.1rem, 4vw, 1.4rem);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: #c9a84c;
	margin-top: 3rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

/* ── Details / FAQ ────────────────────────────────────────── */

details {
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	padding: 0.75rem 0;
}

details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--barlow-condensed, 'Barlow Condensed', sans-serif);
	font-size: clamp(0.98rem, 2.5vw, 1.1rem);
	font-weight: 600;
	color: #e8e8e4;
	letter-spacing: 0.03em;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-right: 0.25rem;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
	content: '+';
	font-size: 1.3rem;
	color: #c9a84c;
	font-weight: 300;
	transition: transform 0.2s ease;
	flex-shrink: 0;
	margin-left: 1rem;
}

details[open] summary::after { transform: rotate(45deg); }

details p {
	font-size: clamp(0.9rem, 2.2vw, 1rem);
	color: rgba(232, 232, 228, 0.65);
	margin-top: 0.75rem;
	line-height: 1.75;
}

/* ── Separator ────────────────────────────────────────────── */

.wp-block-separator {
	border-color: rgba(255, 255, 255, 0.08) !important;
	margin: 2rem 0;
}

/* ── Buttons (global) ─────────────────────────────────────── */

.wp-block-button__link,
.wp-element-button {
	font-family: var(--wp--preset--font-family--barlow-condensed, 'Barlow Condensed', sans-serif) !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ── Footer ───────────────────────────────────────────────── */

.mef-footer,
.mef-footer > *,
.mef-footer .wp-block-group {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

.mef-footer .alignfull {
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.mef-footer .wp-block-group:empty { display: none; }

.mef-footer {
	background: #000 !important;
}

.mef-footer p,
.mef-footer li,
.mef-footer td {
	font-family: var(--wp--preset--font-family--barlow-condensed, 'Barlow Condensed', sans-serif);
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.8;
}

.wp-block-social-links .wp-block-social-link-anchor span.wp-block-social-link-label {
	font-size: 16px
}

.mef-footer a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 0.2s ease;
}

.mef-footer a:hover { color: #c9a84c; }

.mef-footer .wp-block-navigation a,
.mef-footer .wp-block-navigation-item__content {
	background: none !important;
	background-color: transparent !important;
	color: rgba(255, 255, 255, 0.5) !important;
	font-family: var(--wp--preset--font-family--barlow-condensed, 'Barlow Condensed', sans-serif);
	font-size: clamp(0.9rem, 2vw, 1rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mef-footer .wp-block-navigation a:hover {
	color: #c9a84c !important;
	background: none !important;
}
