/* The Melbourne Energy Field Guide: navigation, shared across existing pages. */
.field-location-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 33px;
	padding: 6px clamp(20px, 4vw, 72px);
	background: #153d30;
	color: #f3f0e7;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.field-location-bar > a { display: flex; align-items: center; gap: 8px; color: inherit; letter-spacing: .035em; }
.field-location-bar a:hover { color: #d6ed9c; }
.field-location-note { opacity: .75; }
.field-header {
	position: sticky;
	top: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(18px, 2.2vw, 36px);
	height: 92px;
	padding: 0 clamp(20px, 4vw, 72px);
	border-bottom: 1px solid #153d3026;
	background: #f5f7f3;
	color: #153d30;
}
.admin-bar .field-header { top: 32px; }
.field-header .logo { flex: 0 0 auto; }
.field-header .logo .brand-logo { display: block; width: 144px; height: 70px; object-fit: contain; }
.field-header .custom-logo-link img { width: auto; max-width: 160px; height: 62px; }
.field-navigation { margin-left: auto; }
.field-nav-list { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.field-nav-list > li { margin: 0; }
.field-nav-list > li > a,
.field-nav-disclosure > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0; color: #153d30; font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap; text-decoration: none; cursor: pointer; }
.field-nav-disclosure > summary { list-style: none; }
.field-nav-disclosure > summary::-webkit-details-marker { display: none; }
.field-nav-list > li > a::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #153d30; opacity: 0; transform: scale(.4); transition: opacity .18s, transform .18s; }
.field-nav-list > li > a:hover::after,
.field-nav-list > li > a[aria-current="page"]::after { opacity: 1; transform: scale(1); }
.field-nav-chevron { width: 6px; height: 6px; margin-top: -3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.field-nav-disclosure[open] > summary .field-nav-chevron { margin-top: 3px; transform: rotate(225deg); }
.field-nav-disclosure { position: relative; }
.field-nav-panel { position: absolute; top: calc(100% + 10px); left: -26px; z-index: 62; width: 310px; padding: 24px; border: 1px solid #153d3026; border-radius: 2px; box-shadow: 0 18px 45px #102f261a; background: #f5f7f3; color: #153d30; }
.field-nav-kicker { margin: 0 0 16px; font-size: 9px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: #52635a; }
.field-systems-panel > a { display: block; padding: 13px 0; border-top: 1px solid #153d3026; text-decoration: none; }
.field-systems-panel > a > span { display: block; font-size: 17px; font-weight: 600; line-height: 1.4; transition: transform .18s; }
.field-systems-panel > a > small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; color: #52635a; }
.field-systems-panel > a:hover > span { transform: translateX(4px); }
.field-systems-panel > a.field-nav-assessment { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding-bottom: 0; margin-top: 5px; font-size: 12px; font-weight: 650; }
.field-systems-panel > a.field-nav-assessment > span { font-size: 20px; }
.field-nav-more .field-nav-panel { right: -24px; left: auto; width: 260px; }
.field-resource-menu,
.field-resource-menu ul { list-style: none; padding: 0; margin: 0; }
.field-resource-menu ul { padding-left: 14px; }
.field-resource-menu li { margin: 0; }
.field-resource-menu a,
.field-resources-panel > a { display: block; padding: 9px 0; font-size: 13px; line-height: 1.5; text-decoration: none; }
.field-resource-menu a:hover,
.field-resources-panel > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.field-header-quote { display: inline-flex; flex: 0 0 auto; gap: 18px; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 18px; border: 1px solid #153d30; border-radius: 2px; background: #153d30; color: #f5f7f3; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.field-header-quote > span { font-size: 20px; font-weight: 400; line-height: 1; }
.field-header-quote:hover { background: #d6ed9c; color: #153d30; }
.field-menu-button { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid #153d3040; border-radius: 2px; background: transparent; color: #153d30; }
.field-menu-button span { width: 19px; height: 1px; background: currentColor; transition: transform .2s; }
.field-menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.field-menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.field-header [hidden] { display: none !important; }
.field-header :is(a,button,summary):focus-visible,
.field-location-bar a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
@media (min-width: 1081px) {
	.field-menu-button { display: none; }
}
@media (max-width: 1080px) {
	.peg-has-js .field-header:not(.is-nav-enhanced) .field-menu-button { display: flex !important; }
	/* The early head flag prevents the fallback navigation moving the hero
	 * before the deferred script enhances it. No JavaScript keeps every link. */
	.peg-has-js .field-header:not(.is-nav-enhanced) .field-navigation { display: none; }
	.field-header { flex-wrap: wrap; height: auto; min-height: 82px; gap: 0 16px; }
	.field-header .logo { margin-right: auto; }
	.field-header .logo .brand-logo { width: 130px; height: 72px; }
	.field-header-quote { min-height: 42px; padding: 0 14px; }
	.field-navigation { order: 4; flex: 1 0 100%; width: 100%; margin: 0; padding: 14px 0 25px; border-top: 1px solid #153d3026; }
	.field-header.is-nav-enhanced .field-navigation { position: absolute; top: 100%; left: 0; max-height: calc(100dvh - 122px); overflow-y: auto; overscroll-behavior: contain; padding: 18px clamp(20px, 4vw, 72px) 28px; border-bottom: 1px solid #153d3026; background: #f5f7f3; box-shadow: 0 18px 28px #102f2614; }
	.field-nav-list { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.field-nav-list > li { border-bottom: 1px solid #153d3026; }
	.field-nav-list > li > a,
	.field-nav-disclosure > summary { justify-content: space-between; min-height: 54px; font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
	.field-nav-list > li > a::after { width: auto; height: auto; border-radius: 0; content: "↗"; font-size: 20px; background: none; opacity: 1; transform: none; }
	.field-nav-chevron { width: 8px; height: 8px; margin-right: 4px; }
	.field-nav-panel,
	.field-nav-more .field-nav-panel { position: static; width: auto; padding: 8px 0 22px 16px; border: 0; border-left: 1px solid #153d3040; border-radius: 0; box-shadow: none; margin: 0 0 15px; }
	.field-nav-kicker { margin-bottom: 8px; }
	.field-systems-panel > a { padding: 11px 0; border-top: 0; }
	.field-systems-panel > a > span { font-size: 17px; }
	.field-resource-menu a,
	.field-resources-panel > a { font-size: 15px; }
}
@media (max-width: 782px) {
	.admin-bar .field-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .field-header { top: 0; }
	.field-location-bar { min-height: 30px; padding-top: 5px; padding-bottom: 5px; font-size: 9px; }
	.field-location-note { display: none; }
	.field-header { min-height: 76px; gap: 0 10px; }
	.field-header .logo .brand-logo { width: 104px; height: 66px; }
	.field-header .custom-logo-link img { max-width: 110px; height: 54px; }
	.field-header-quote { gap: 10px; padding: 0 11px; font-size: 11px; }
	.field-header-quote > span { font-size: 16px; }
	.field-menu-button { min-width: 42px; padding: 8px; }
	.field-header.is-nav-enhanced .field-navigation { max-height: calc(100dvh - 110px); }
}
@media (prefers-reduced-motion: reduce) {
	.field-header *, .field-header *::after { transition: none !important; }
}
@media (max-width: 360px) {
	.field-header { gap: 0 8px; }
	.field-header-quote { padding: 0 9px; font-size: 10px; }
	.field-header-quote > span { display: none; }
}
@media (max-width: 760px) {
	/* Keep every expanded resource above the existing fixed contact bar. */
	.field-header.is-nav-enhanced .field-navigation { max-height: calc(100dvh - 180px); }
}

/* ---------------------------------------------------------------------
 * 2.12: the closing chapter (footer) and the after-dark mobile menu.
 * ------------------------------------------------------------------- */
.field-nav-contact { display: none; }
body footer.ff { position: relative; overflow: hidden; padding: 0; background: #0e2a20; color: #f3f5f0; border-top: 0; }
.ff-close { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px; padding: clamp(64px, 8vw, 120px) clamp(22px, 5.3vw, 86px) clamp(40px, 5vw, 64px); border-bottom: 1px solid #2f4d40; }
.ff-index { grid-column: 1 / -1; font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #9fb59a; }
.ff-statement { margin: 0; font-family: Geist, sans-serif; font-size: clamp(35px, 4.48vw, 72px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; }
.ff-statement em { font-family: Geist, sans-serif; font-weight: 400; letter-spacing: -.05em; color: #153c2e; }
.ff-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 240px; }
.ff-actions .button { justify-content: space-between; gap: 24px; min-height: 56px; border-radius: 0; }
.ff-call { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border: 1px solid #4a6656; color: #f3f5f0; font-weight: 600; transition: border-color .3s, background .3s; }
.ff-call:hover { border-color: #153c2e; background: rgba(21, 60, 46, .06); }
.ff-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px clamp(22px, 5.3vw, 86px); }
.ff-brand .logo { display: inline-block; padding: 10px 12px; background: #f3f5f0; }
.ff-brand > p { margin: 18px 0; font-family: Geist, sans-serif; font-size: 22px; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; }
.ff-label { margin-bottom: 14px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fb59a; }
.ff-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ff-grid a { display: inline-flex; align-items: center; min-height: 32px; color: #e6ede0; font-size: 14px; background: linear-gradient(#153c2e, #f5b301) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .35s cubic-bezier(.2, .7, .3, 1); }
.ff-grid a:hover { color: #fff; background-size: 100% 1px; }
.ff-contact-link { margin-top: 2px; }
.ff-creds picture, .ff-creds img { display: block; width: 120px; height: auto; margin-bottom: 10px; background: #fff; }
.ff-creds .footer-business { color: #9fb59a; }
.ff-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 18px clamp(22px, 5.3vw, 86px); border-top: 1px solid #2f4d40; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9fb59a; }
.ff-top { color: #f3f5f0; }
.ff-wordmark { margin: 0; padding: 0 clamp(12px, 2vw, 32px); font-family: Geist, sans-serif; font-size: clamp(51px, 12.25vw, 192px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px #2f5644; text-align: center; transform: translateY(6%); user-select: none; }
footer.ff a:focus-visible { outline: 3px solid #153c2e; outline-offset: 3px; }
@media (max-width: 1000px) {
	.ff-close { grid-template-columns: 1fr; }
	.ff-actions { flex-direction: row; flex-wrap: wrap; }
	.ff-grid { grid-template-columns: 1fr 1fr; }
	.ff-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.ff-actions > * { flex: 1 1 100%; }
	.ff-grid { grid-template-columns: 1fr; gap: 28px; }
	.ff-wordmark { font-size: 22vw; }
	footer.ff { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Mobile menu: a full-height, after-dark index of the site. */
@media (max-width: 1080px) {
	.field-header.is-nav-enhanced .field-navigation { position: fixed; top: var(--peg-header-bottom, 112px); right: 0; bottom: 0; left: 0; max-height: none; padding: 8px 22px calc(24px + env(safe-area-inset-bottom)); background: #0e2a20; color: #f3f5f0; border: 0; box-shadow: none; z-index: 80; }
	.field-header.is-nav-enhanced .field-nav-list { counter-reset: navi; }
	.field-header.is-nav-enhanced .field-nav-list > li { border-color: #2f4d40; }
	.field-header.is-nav-enhanced .field-nav-list > li:not(.field-nav-contact) { counter-increment: navi; }
	.field-header.is-nav-enhanced .field-nav-list > li:not(.field-nav-contact) > a,
	.field-header.is-nav-enhanced .field-nav-disclosure > summary { min-height: 68px; color: #f3f5f0; font-family: Geist, sans-serif; font-size: clamp(26px, 5.18vw, 30px); font-weight: 600; letter-spacing: -.03em; }
	.field-header.is-nav-enhanced .field-nav-list > li:not(.field-nav-contact) > a::before,
	.field-header.is-nav-enhanced .field-nav-disclosure > summary::before { content: counter(navi, decimal-leading-zero); align-self: flex-start; margin: 12px 14px 0 0; font-family: Geist, sans-serif; font-size: 10px; letter-spacing: .12em; color: #9fb59a; }
	.field-header.is-nav-enhanced .field-nav-list > li:not(.field-nav-contact) > a { justify-content: flex-start; }
	.field-header.is-nav-enhanced .field-nav-list > li:not(.field-nav-contact) > a::after { margin-left: auto; color: #153c2e; }
	.field-header.is-nav-enhanced .field-nav-list > li:not(.field-nav-contact) > a[aria-current="page"] { color: #153c2e; }
	.field-header.is-nav-enhanced .field-nav-disclosure > summary { justify-content: flex-start; }
	.field-header.is-nav-enhanced .field-nav-chevron { margin-left: auto; border-color: #153c2e; }
	.field-header.is-nav-enhanced .field-nav-panel { border-left-color: #4a6656; background: transparent; }
	.field-header.is-nav-enhanced .field-nav-panel a, .field-header.is-nav-enhanced .field-nav-panel small, .field-header.is-nav-enhanced .field-nav-kicker { color: #c9d6c4; }
	.field-header.is-nav-enhanced .field-nav-panel a > span, .field-header.is-nav-enhanced .field-resource-menu a { color: #f3f5f0; }
	.field-header.is-nav-enhanced .field-nav-contact { display: grid; gap: 12px; padding: 26px 0 8px; border-bottom: 0 !important; }
	.field-nav-contact p { font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #9fb59a; }
	.field-nav-contact .button { justify-content: space-between; min-height: 56px; border-radius: 0; }
	.field-nav-call { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid #4a6656; color: #f3f5f0; font-weight: 600; }
	.field-header.is-nav-enhanced .field-navigation a:focus-visible, .field-header.is-nav-enhanced .field-navigation summary:focus-visible { outline: 3px solid #153c2e; outline-offset: 2px; }
	html:has(.field-header.is-nav-open) { overflow: hidden; }
}
@media (max-width: 1080px) and (prefers-reduced-motion: no-preference) {
	.field-header.is-nav-open .field-nav-list > li { animation: ff-menu-in .5s cubic-bezier(.2, .7, .3, 1) both; }
	.field-header.is-nav-open .field-nav-list > li:nth-child(2) { animation-delay: .04s; }
	.field-header.is-nav-open .field-nav-list > li:nth-child(3) { animation-delay: .08s; }
	.field-header.is-nav-open .field-nav-list > li:nth-child(4) { animation-delay: .12s; }
	.field-header.is-nav-open .field-nav-list > li:nth-child(5) { animation-delay: .16s; }
	.field-header.is-nav-open .field-nav-list > li:nth-child(n+6) { animation-delay: .2s; }
}
@keyframes ff-menu-in { from { opacity: 0; transform: translateY(14px); } }
body footer.ff, body.home > footer.ff { padding: 0; background: #0e2a20; color: #f3f5f0; border: 0; }
body footer.ff .ff-col, body footer.ff .ff-creds { display: block; }
.ff-creds a { display: inline-flex; }
body footer.ff .ff-col .menu { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
body footer.ff .ff-col .menu li { display: block; }
.ff-top span { margin-left: 6px; }
@media (max-width: 1080px) {
	.field-header.is-nav-enhanced .field-nav-contact a { min-height: 54px; padding: 0 18px; font-family: Geist, sans-serif; font-size: 15px; font-weight: 650; letter-spacing: 0; }
	.field-header.is-nav-enhanced .field-nav-contact a::before, .field-header.is-nav-enhanced .field-nav-contact a::after { content: none; }
	.field-header.is-nav-enhanced .field-nav-contact .button { display: flex; align-items: center; justify-content: space-between; color: #153c2e; background: #153c2e; }
	.field-header.is-nav-enhanced .field-nav-contact .field-nav-call { color: #f3f5f0; }
}
body footer.ff nav.ff-col { display: grid; justify-items: start; align-content: start; gap: 2px; }
/* When the page already closes with the enquiry chapter, the footer keeps only its statement. */
body:has(#quote) footer.ff .ff-actions { display: none; }
body:has(#quote) footer.ff .ff-close { grid-template-columns: 1fr; padding-top: clamp(48px, 6vw, 88px); }
body footer.ff { box-shadow: inset 0 1px 0 #2f4d40; }
