/* MajorMorale Base — neutral structure. Site-specific appearance belongs in the child theme. */

:root {
	--mm-content-max: 1140px;
	--mm-display-font: "Cooper Black", "Cooper Black Std", "Cooper Std Black", "Cooper", Georgia, "Times New Roman", serif;
	--mm-page-bg: #efe6d2;
	--mm-surface: #ffffff;
	--mm-text: #171717;
	--mm-link: #0b32c7;
	--mm-border: rgba(0,0,0,.14);
	--mm-radius: 12px;
	--mm-shadow: 0 2px 5px rgba(0,0,0,.1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--mm-page-bg);
	color: var(--mm-text);
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.55;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--mm-link);
}

button,
input,
select,
textarea {
	font: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: .75rem 1rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	background: #fff;
	color: #000;
}

.site-header {
	position: relative;
	z-index: 20;
	background-color: #ded4bd;
	border-bottom: 1px solid rgba(0,0,0,.35);
}

.mm-header-inner,
.mm-site-container,
.mm-footer-widgets,
.footer-navigation,
.site-info {
	width: min(calc(100% - 32px), var(--mm-content-max));
	margin-inline: auto;
}

.mm-header-inner {
	min-height: inherit;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-branding {
	min-width: 0;
}

.mm-brand-lockup {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: #111;
	text-decoration: none;
}

.mm-brand-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.custom-logo {
	display: block;
	max-height: 70px;
	width: auto;
}

.site-title {
	min-width: 0;
	color: #111;
	font-family: var(--mm-display-font);
	font-size: clamp(1.75rem, 4vw, 2.8rem);
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.main-navigation ul {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	display: inline-flex;
	font-family: var(--mm-display-font);
	align-items: center;
	min-height: 42px;
	padding: 8px 14px;
	border-radius: 10px;
	background: #fff;
	color: #111;
	text-decoration: none;
	font-weight: 700;
	box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.mm-menu-toggle {
	display: none;
	width: 48px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #28320f;
}

.mm-menu-toggle__bars,
.mm-menu-toggle__bars::before,
.mm-menu-toggle__bars::after {
	display: block;
	position: relative;
	width: 24px;
	height: 2px;
	margin: auto;
	background: #fff;
	content: "";
}

.mm-menu-toggle__bars::before {
	position: absolute;
	top: -7px;
}

.mm-menu-toggle__bars::after {
	position: absolute;
	top: 7px;
}

.mm-site-container {
	padding-block: 32px;
}

.mm-content-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
	gap: 28px;
}

.mm-full-width-content,
body.elementor-page .mm-full-width-content {
	width: 100%;
	max-width: none;
	padding: 0;
}

.mm-post-card,
.widget,
.error-404 {
	background: var(--mm-surface);
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius);
	box-shadow: var(--mm-shadow);
	padding: 22px;
	margin-bottom: 24px;
}

.entry-title,
.page-title,
.widget-title {
	margin-top: 0;
}

.site-footer {
	margin-top: 40px;
	padding-top: 24px;
	background: #111;
	color: #fff;
}

.site-footer a {
	color: #fff;
}

.mm-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	padding: 0;
}

.site-info {
	padding: 18px 0 24px;
	text-align: center;
	font-size: .9rem;
}

/* Elementor-friendly defaults */
.elementor-page .site-main {
	min-width: 0;
}

.elementor-page .entry-content,
.elementor-page .entry-content > .elementor {
	width: 100%;
	max-width: none;
}

/* Neutral structural breakpoints. Site-specific breakpoint behavior belongs in the child theme. */
@media (max-width: 1366px) {
	.mm-header-inner,
	.mm-site-container,
	.mm-footer-widgets,
	.footer-navigation,
	.site-info {
		width: min(calc(100% - 28px), var(--mm-content-max));
	}
}

@media (max-width: 950px) {
	.mm-content-sidebar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 880px) {
	.mm-header-inner {
		gap: 12px;
	}
	.mm-brand-lockup {
		gap: 9px;
	}
	.custom-logo {
		max-height: 60px;
	}
	.site-title {
		font-size: clamp(1.55rem, 4vw, 2.15rem);
	}
}

@media (max-width: 767px) {
	.mm-header-inner {
		flex-wrap: wrap;
		padding-block: 8px;
	}
	.mm-menu-toggle {
		display: block;
		margin-left: auto;
	}
	.main-navigation {
		display: none;
		width: 100%;
	}
	.main-navigation.is-open {
		display: block;
	}
	.main-navigation ul {
		flex-direction: column;
		align-items: stretch;
	}
	.main-navigation a {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.mm-brand-lockup {
		gap: 7px;
	}
	.site-title {
		font-size: clamp(1.35rem, 7vw, 1.75rem);
	}
	.mm-header-inner,
	.mm-site-container,
	.mm-footer-widgets,
	.footer-navigation,
	.site-info {
		width: min(calc(100% - 20px), var(--mm-content-max));
	}
	.custom-logo {
		max-height: 52px;
	}
}
