/*
Theme Name: Evergrove Headless
Description: Minimal theme for headless WordPress with ACF. Front-end is served elsewhere; the block/classic page editor is disabled so pages are built from custom fields and the REST API.
Version: 1.0.0
Author: Evergrove
Text Domain: evergrove-headless
*/

body {
	margin: 0;
	font-family: system-ui, sans-serif;
	line-height: 1.5;
	color: #1a1a1a;
	background: #fafafa;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-header {
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
}

.site-header__nav {
	max-width: 40rem;
	margin: 0 auto;
	padding: 0.75rem 1rem;
}

.site-main {
	flex: 1;
	max-width: 40rem;
	margin: 0 auto;
	padding: 2rem 1rem;
	width: 100%;
	box-sizing: border-box;
}

.site-footer {
	border-top: 1px solid #e5e5e5;
	background: #fff;
	margin-top: auto;
}

.site-footer__nav {
	max-width: 40rem;
	margin: 0 auto;
	padding: 1rem;
}

.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: flex-start;
}

.menu > li {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.menu a {
	color: inherit;
	text-decoration: none;
}

.menu a:hover,
.menu a:focus {
	text-decoration: underline;
}

.menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.9em;
	border-left: 2px solid #e5e5e5;
}

.menu--footer {
	gap: 0.5rem 1rem;
	font-size: 0.9rem;
}

.menu--footer a {
	color: #555;
}
