/* CHF site header + footer (plugin 1.4.0). Same tokens and voice as wedding.css.
   Loaded only when the new header + footer are on (body.chf-hf-on). */

.chf-hdr,
.chf-ftr,
.chf-skip {
	--paper: oklch(97.6% 0.008 350);
	--blush: oklch(94.5% 0.022 350);
	--ink: oklch(24% 0.016 355);
	--ink-soft: oklch(40% 0.02 355);
	--accent: oklch(47% 0.155 12);
	--accent-dark: oklch(40% 0.14 12);
	--line: oklch(86% 0.02 350);
	--white: #fff;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1360px;
	--radius: 14px;
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
}
.chf-hdr *, .chf-hdr *::before, .chf-hdr *::after,
.chf-ftr *, .chf-ftr *::before, .chf-ftr *::after { box-sizing: border-box; }
.chf-hdr ul, .chf-ftr ul { list-style: none; margin: 0; padding: 0; }
.chf-hdr p, .chf-ftr p { margin: 0; }
.chf-hdr img, .chf-ftr img { display: block; max-width: 100%; height: auto; }
.chf-hdr svg, .chf-ftr svg { width: 1.15em; height: 1.15em; flex: none; }
.chf-hdr a:focus-visible, .chf-hdr button:focus-visible,
.chf-ftr a:focus-visible, .chf-skip:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}
.chf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Old Oxygen header (reusable part 60) and footer (reusable part 56): hidden while the new ones are on. */
body.chf-hf-on #_header-258-37,
body.chf-hf-on #section-211-45,
body.chf-hf-on #section-37-56 { display: none !important; }

/* Skip link */
.chf-skip {
	position: fixed;
	left: 12px;
	top: -80px;
	z-index: 1001;
	padding: 0.7em 1.2em;
	border-radius: 999px;
	background: var(--accent);
	color: var(--white) !important;
	font: 600 1rem/1.2 var(--sans);
	text-decoration: none;
}
.chf-skip:focus { top: 12px; }

/* ---- Header ---- */
.chf-hdr {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 900;
	background: oklch(97.6% 0.008 350 / 0.97);
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.4;
	transition: box-shadow 0.25s ease;
}
.chf-hdr.is-scrolled { box-shadow: 0 10px 30px -18px oklch(24% 0.05 355 / 0.35); }
.chf-hdr__bar {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 10px 20px;
	min-height: 72px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.chf-hdr__logo { flex: none; display: block; width: 150px; }
.chf-hdr__nav { display: none; }
.chf-hdr__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.chf-hdr a { color: var(--ink); text-decoration: none; }

/* Phone: icon button on small screens, number on wide screens */
.chf-hdr__phone {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	min-width: 44px;
	min-height: 44px;
	padding: 0 10px;
	border-radius: 999px;
	color: var(--accent) !important;
	font-weight: 600;
	white-space: nowrap;
}
.chf-hdr__phone span { display: none; }
.chf-hdr__phone:hover { background: var(--blush); }

/* Cart (WP Menu Cart markup) */
.chf-hdr__cart .wpmenucart-contents {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--white);
	color: var(--ink) !important;
	font: 600 0.95rem/1 var(--sans);
	white-space: nowrap;
}
.chf-hdr__cart .wpmenucart-contents:hover { border-color: var(--accent); color: var(--accent) !important; }
.chf-hdr__cart .wpmenucart-contents i { font-size: 1.05rem; color: var(--accent); }
.chf-hdr__cart .amount { display: none; }
.chf-hdr__cart .amount::before { content: "·"; margin-right: 0.4em; color: var(--ink-soft); }

/* Order button */
.chf-hdr__order,
.chf-hdr__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 44px;
	padding: 0.6em 1.3em;
	border-radius: 999px;
	border: 2px solid var(--accent);
	background: var(--accent);
	color: var(--white) !important;
	font: 600 0.95rem/1.2 var(--sans);
	white-space: nowrap;
	text-decoration: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chf-hdr__order:hover,
.chf-hdr__btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.chf-hdr__btn--ghost { background: transparent; color: var(--accent) !important; }
.chf-hdr__btn--ghost:hover { background: var(--accent); color: var(--white) !important; }
.chf-hdr__order { display: none; }

/* Menu button */
.chf-hdr__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.chf-hdr__toggle:hover { background: var(--blush); }
.chf-hdr__burger,
.chf-hdr__burger::before,
.chf-hdr__burger::after {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.chf-hdr__burger { position: relative; }
.chf-hdr__burger::before,
.chf-hdr__burger::after { content: ""; position: absolute; left: 0; }
.chf-hdr__burger::before { top: -7px; }
.chf-hdr__burger::after { top: 7px; }
.chf-hdr.is-open .chf-hdr__burger { background: transparent; }
.chf-hdr.is-open .chf-hdr__burger::before { transform: translateY(7px) rotate(45deg); }
.chf-hdr.is-open .chf-hdr__burger::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel */
.chf-hdr__panel {
	border-top: 1px solid var(--line);
	background: var(--paper);
	max-height: calc(100dvh - 72px);
	overflow-y: auto;
	padding: 8px 20px 24px;
}
.chf-hdr__panel[hidden] { display: none; }
.chf-hdr__plist li { border-bottom: 1px solid var(--line); }
.chf-hdr__plist a {
	display: block;
	padding: 14px 4px;
	font: 500 1.35rem/1.2 var(--serif);
	color: var(--ink);
}
.chf-hdr__plist .current-menu-item > a { color: var(--accent); }
.chf-hdr__pbtns { display: grid; gap: 10px; margin-top: 20px; }
.chf-hdr__pbtns .chf-hdr__btn { min-height: 52px; font-size: 1rem; }

/* Desktop: 980px and up. Widths are budgeted so the menu never touches the logo or the buttons:
   980+ logo, menu (small), phone icon, cart count | 1180+ "Order online" | 1360+ larger menu | 1440+ phone number + cart total */
@media (min-width: 980px) {
	.chf-hdr__bar { gap: 20px; min-height: 80px; }
	.chf-hdr__logo { width: 150px; }
	.chf-hdr__nav { display: flex; justify-content: center; flex: 1 1 auto; min-width: 0; }
	.chf-hdr__list { display: flex; flex-wrap: nowrap; gap: 2px; }
	.chf-hdr__list a {
		display: block;
		padding: 10px 9px;
		border-radius: 8px;
		font: 500 0.95rem/1.2 var(--sans);
		white-space: nowrap;
		color: var(--ink);
		position: relative;
	}
	.chf-hdr__list a:hover { color: var(--accent); }
	.chf-hdr__list .current-menu-item > a { color: var(--accent); }
	.chf-hdr__list .current-menu-item > a::after {
		content: "";
		position: absolute;
		left: 9px;
		right: 9px;
		bottom: 4px;
		height: 2px;
		border-radius: 2px;
		background: var(--accent);
	}
	.chf-hdr__actions { margin-left: 0; flex: none; }
	.chf-hdr__phone { display: inline-flex; }
	.chf-hdr__toggle,
	.chf-hdr__panel { display: none !important; }
}
@media (min-width: 1180px) {
	.chf-hdr__logo { width: 160px; }
	.chf-hdr__order { display: inline-flex; }
}
@media (min-width: 1360px) {
	.chf-hdr__list { gap: 6px; }
	.chf-hdr__list a { padding: 10px 11px; font-size: 1rem; }
	.chf-hdr__list .current-menu-item > a::after { left: 11px; right: 11px; }
}
@media (min-width: 1440px) {
	.chf-hdr__logo { width: 180px; }
	.chf-hdr__phone span { display: inline; }
	.chf-hdr__cart .amount { display: inline; }
}
/* The cake pages' fixed Call / Order bar would sit on the open mobile menu */
body.chf-menu-open .chf-wed-bar { display: none !important; }

/* ---- Footer ---- */
.chf-ftr {
	background: var(--paper);
	border-top: 1px solid var(--line);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.6;
}
.chf-ftr a { color: var(--accent); text-underline-offset: 3px; }
.chf-ftr a:hover { color: var(--accent-dark); }
.chf-ftr__wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: clamp(3rem, 6vw, 4.5rem) 20px 2.5rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.25rem;
}
@media (min-width: 700px) { .chf-ftr__wrap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .chf-ftr__wrap { grid-template-columns: 1.3fr 1fr 0.8fr 1fr; gap: 3rem; } }
.chf-ftr__logo { display: block; width: 190px; margin-bottom: 1rem; }
.chf-ftr__brand > p { color: var(--ink-soft); max-width: 22em; }
.chf-ftr__social { display: flex; gap: 8px; margin-top: 1rem !important; }
.chf-ftr__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--white);
	color: var(--accent);
}
.chf-ftr__social a:hover { border-color: var(--accent); background: var(--accent); color: var(--white); }
.chf-ftr__social svg { width: 20px; height: 20px; }
.chf-ftr__h {
	font: 500 1.3rem/1.2 var(--serif) !important;
	color: var(--ink);
	margin-bottom: 0.75rem !important;
}
.chf-ftr__col > p + p { margin-top: 0.6rem; }
.chf-ftr__col > p { color: var(--ink-soft); }
.chf-ftr__tel { font: 500 1.3rem/1.3 var(--serif); color: var(--ink) !important; text-decoration: none; }
.chf-ftr__tel:hover { color: var(--accent) !important; }
.chf-ftr__list a {
	display: inline-block;
	padding: 6px 0;
	color: var(--ink);
	text-decoration: none;
}
.chf-ftr__list a:hover { color: var(--accent); text-decoration: underline; }
.chf-ftr .chf-hdr__btn { margin-top: 0.4rem; }

.chf-ftr__base {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 1.25rem 20px 1.75rem;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.5rem;
	font-size: 0.9rem;
	color: var(--ink-soft);
}
.chf-ftr__legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.chf-ftr__legal a { color: var(--ink-soft); }
.chf-ftr__legal a:hover { color: var(--accent); }
.chf-ftr__legal a[href="https://monkeywebs.com"] { font-weight: 600; }
.chf-ftr__badge { margin-left: auto; display: block; width: 72px; }
@media (max-width: 699px) {
	.chf-ftr__badge { margin-left: 0; }
}
/* Pages with the mobile Call / Order bar: keep the footer clear of it */
@media (max-width: 767px) {
	body.chf-wed-page .chf-ftr__base { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
	.chf-hdr, .chf-hdr *, .chf-ftr * { transition: none !important; }
}
