/* Header: large tree mark, name and tagline, main menu, Join button, brand stripe. */
.fc-header { background: var(--fc-bone); color: var(--fc-ink); position: relative; z-index: 20; }
.fc-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 22px var(--fc-edge);
}
.fc-brand { display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; white-space: nowrap; }
/* The tree is the drawing used as a mask over a colour. At rest it is ink; when the logo is hovered or focused a soft band of forest green sweeps across it once, left to right. */
.fc-brand__mark { display: block; flex: none; width: 104px; aspect-ratio: 240 / 205; background: linear-gradient(105deg, transparent 30%, var(--fc-forest) 44%, var(--fc-forest) 56%, transparent 70%) 130% 0 / 280% 100% no-repeat, var(--fc-ink); -webkit-mask: url(../img/fom-tree.png) center / contain no-repeat; mask: url(../img/fom-tree.png) center / contain no-repeat; }
.fc-brand:hover .fc-brand__mark, .fc-brand:focus-visible .fc-brand__mark { animation: fc-logo-sweep 1s ease-out forwards; }
@keyframes fc-logo-sweep { to { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .fc-brand:hover .fc-brand__mark, .fc-brand:focus-visible .fc-brand__mark { animation: none; background: var(--fc-forest); }}
.fc-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.fc-brand__name { font: 600 var(--fc-fs-title)/1.05 var(--fc-serif); letter-spacing: -.015em; font-size: 34px; }
.fc-brand__tag { font: 400 var(--fc-fs-small)/1.3 var(--fc-sans); margin-top: 4px; }

.fc-nav { display: flex; align-items: center; gap: 28px; }
.fc-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.fc-menu a { font: 600 var(--fc-fs-body)/1.2 var(--fc-sans); color: var(--fc-ink); text-decoration: none; padding: 8px 0; }
.fc-menu a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.fc-menu .current-menu-item > a,
.fc-menu .current-menu-ancestor > a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--fc-forest); }
.fc-menu .sub-menu { list-style: none; margin: 0; padding: 0; }

/* dropdowns: the main menu has sub-items under What we do */
.fc-menu > li { position: relative; }
.fc-menu .sub-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 260px; background: var(--fc-paper); padding: 8px 0; z-index: 30; }
.fc-menu li:hover > .sub-menu, .fc-menu li:focus-within > .sub-menu { display: block; }
.fc-menu .sub-menu a { display: block; padding: 10px 16px; white-space: nowrap; }
/* the Join item inside the menu (menu item class fom-join, set in Appearance > Menus) is the button */
.fc-menu .menu-item.fom-join > a { background: var(--fc-forest); color: var(--fc-white); padding: 14px 26px; font-weight: 700; display: inline-block; transition: transform .2s; }
.fc-menu .menu-item.fom-join > a:hover { transform: translateY(-2px); text-decoration: none; }

.fc-join {
	display: inline-block; padding: 14px 26px; background: var(--fc-forest); color: var(--fc-white);
	font: 700 var(--fc-fs-body)/1.2 var(--fc-sans); text-decoration: none; transition: transform .2s;
}
.fc-join:hover { transform: translateY(-2px); color: var(--fc-white); }

.fc-stripe { display: grid; grid-template-columns: repeat(4, 1fr); height: 8px; }
.fc-stripe i:nth-child(1) { background: var(--fc-coast); }
.fc-stripe i:nth-child(2) { background: var(--fc-forest); }
.fc-stripe i:nth-child(3) { background: var(--fc-heath); }
.fc-stripe i:nth-child(4) { background: var(--fc-granite); }

.fc-menu-btn { display: none; font: 700 var(--fc-fs-body) var(--fc-sans); background: var(--fc-ink); color: var(--fc-white); border: 0; padding: 12px 18px; cursor: pointer; }

.fc-header :focus-visible, .fc-footer :focus-visible { outline: 3px solid var(--fc-coast); outline-offset: 3px; }
.fc-footer :focus-visible { outline-color: var(--fc-white); }

/* the shorter Mobile menu replaces the main menu on small screens */
.fc-menu--mobile { display: none; }
@media (max-width: 1120px) {
	.has-mobile-menu .fc-menu:not(.fc-menu--mobile) { display: none; }
	.has-mobile-menu .fc-menu--mobile { display: flex; }
	.fc-header__bar { flex-wrap: wrap; gap: 12px; }
	.fc-brand { gap: 12px; }
	.fc-brand__mark { width: 72px; }
	.fc-brand__name { font-size: 22px; }
	.fc-menu-btn { display: block; margin-left: auto; }
	.fc-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
	.fc-header.is-open .fc-nav { display: flex; }
	.fc-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.fc-menu a { display: block; padding: 14px 0; font-size: var(--fc-fs-body); }
	.fc-menu .sub-menu { display: block; position: static; background: none; padding: 0 0 0 16px; }
	.fc-menu .sub-menu a { white-space: normal; padding: 10px 0; font-size: 18px; }
	.fc-menu .menu-item.fom-join > a { text-align: center; display: block; }
	.fc-join { text-align: center; }}
@media (max-width: 600px) { .fc-brand__tag { display: none; }}
@media (prefers-reduced-motion: reduce) { .fc-join { transition: none; } .fc-join:hover { transform: none; }}

/* keep labels on one line; tighten the bar so seven items and the Join button fit beside the name */
.fc-menu a { white-space: nowrap; }
.fc-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
@media (min-width: 1121px) {
	.fc-nav { gap: 20px; }
	.fc-menu { gap: 20px; }
	.fc-brand__name { font-size: 30px; }
	.fc-brand__mark { width: 92px; }}
@media (max-width: 1120px) { .fc-menu .menu-item-has-children > a::after { display: none; }}
@media (max-width: 1120px) {
	.fc-brand { white-space: normal; flex: 1 1 0; min-width: 0; }
	.fc-brand__name { font-size: 20px; }
	.fc-menu-btn { margin-left: 0; flex: none; }
	.fc-header__bar { flex-wrap: wrap; }
	.fc-nav { flex-basis: 100%; }}