/*
 * The white bar at the bottom of the page that carries the nav circle.
 *
 * It used to also hold a duplicate of the footer, which made it tall enough
 * that below 1200px it had to be dismantled entirely — `.mainBar` became
 * `display: contents` and `.navcircle-section` took over as the sticky element,
 * with the hero panels hidden outright. With the footer block gone the bar is
 * just the circle and two thin stripes, so it stays a single sticky box at
 * every width and nothing has to be hidden.
 */
.mainBar {
	box-shadow: 0px -5px 35px rgba(0, 0, 0, 0.7);
	width: 100%;
	height: auto;
	background-color: white;
	padding: var(--navbar-pad);
	padding-bottom: calc(var(--navbar-pad) + env(safe-area-inset-bottom));
	margin-bottom: 0px;
	position: sticky;
	bottom: 0;
	z-index: var(--z-sticky);
}

/* Inner pages: a slim dark strip the circle stands on, with the contact details
   either side. The height is a token because the circle's geometry is derived
   from it — see --nav-peek in tokens.css. No vertical padding: the strip is
   exactly --navbar-h, plus the safe area on a phone with a home indicator.

   The footer's own charcoal, so the page ends in one colour; the shadow is what
   still separates the two where the bar meets the footer at the end of a page.
   The front page keeps the white bar: there it is the ground the hero
   composition stands on, not navigation chrome. */
body:not(.home) .mainBar {
	min-height: var(--navbar-h);
	display: flex;
	align-items: center;
	padding: 0 var(--navbar-pad) env(safe-area-inset-bottom);
	background-color: var(--navbar-bg);
	/* Up over the page, as before, and a short one down: at the end of a page
	   the bar rests on the footer, the same grey, and the lower shadow is the
	   line between them. While the bar is stuck to the viewport's bottom edge
	   that half falls off-screen. */
	box-shadow:
		0px -4px 24px rgba(0, 0, 0, 0.45),
		0px 5px 12px rgba(0, 0, 0, 0.55);
}

body:not(.home) .navcircle-section {
	width: 100%;
}

/*
 * Front page: the bar is part of the hero composition rather than sticky
 * chrome — the circle sits between the tree band above it and the two hero
 * panels below. Sticking it to the viewport bottom would fight the footer,
 * which now follows it on every page.
 */
/*
 * .content is min-height:100vh. On the front page the hero plus panels can be
 * shorter than that — on a phone they were ~720px of an 844px viewport — which
 * left a band of the body's background photograph showing between the white
 * panel area and the grey footer, reading as a rendering fault. Letting the
 * white bar absorb the slack closes it at every height.
 *
 * The bar deliberately stays a plain block: the circle hangs upward out of
 * flow on negative margins, so centring the bar's children would drag it down
 * off the hero band it is supposed to overlap.
 */
body.home .content {
	display: flex;
	flex-direction: column;
}

body.home .mainBar {
	position: static;
	padding-bottom: 20px;
	flex: 1 1 auto;
}
