/* North Star Mountain Homes: header and footer */
:root {
	--ns-bg: #FFFFFF;
	--ns-surface: #F3EEE3;
	--ns-ink: #1C2420;
	--ns-muted: #4E5A53;
	--ns-border: #DCD6C8;
	--ns-accent: #2C4A3B;
	--ns-accent-strong: #1F2A24;
	--ns-brass: #A8864E;
}

/* Header */
.site-header .site-main-header-wrap .site-header-row-container-inner {
	background: var(--ns-bg);
	border-bottom: 1px solid var(--ns-border);
}
.ns-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ns-ink);
}
.ns-brand:hover, .ns-brand:focus { color: var(--ns-ink); }
.ns-brand__badge { width: 54px; height: 54px; flex: none; display: block; }
.ns-brand__text { display: flex; flex-direction: column; line-height: 1; }
.ns-brand__name {
	font-family: 'Alfa Slab One', serif;
	font-size: 22px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.ns-brand__sub {
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ns-muted);
	margin-top: 5px;
}
.ns-brand--mobile .ns-brand__badge { width: 44px; height: 44px; }
.ns-brand--mobile .ns-brand__name { font-size: 18px; }
.ns-brand--mobile .ns-brand__sub { font-size: 10px; }

.main-navigation .primary-menu-container > ul > li.menu-item > a,
.header-navigation .header-menu-container > ul > li.menu-item > a {
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ns-ink);
}
.header-navigation .header-menu-container > ul > li.menu-item > a:hover,
.header-navigation .header-menu-container > ul > li.current-menu-item > a {
	color: var(--ns-accent);
}
.header-navigation .header-menu-container ul ul.sub-menu {
	background: var(--ns-bg);
	border: 1px solid var(--ns-border);
	box-shadow: 0 8px 24px rgba(28, 36, 32, 0.08);
}
.header-navigation .header-menu-container ul ul li.menu-item > a {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	color: var(--ns-ink);
	text-transform: none;
	letter-spacing: 0;
}
.header-navigation .header-menu-container ul ul li.menu-item > a:hover {
	color: var(--ns-accent);
	background: var(--ns-surface);
}

.site-header .header-button,
.mobile-header-button-wrap .button,
.mobile-header-button-wrap .mobile-header-button {
	background: var(--ns-accent);
	color: #FFFFFF;
	border: 0;
	border-radius: 999px;
	padding: 12px 22px;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: none;
	white-space: nowrap;
}
.site-header .header-button:hover,
.site-header .header-button:focus,
.mobile-header-button-wrap .button:hover {
	background: var(--ns-accent-strong);
	color: #FFFFFF;
}
.mobile-toggle-open-container .menu-toggle-open { color: var(--ns-ink); }

/* Footer */
.site-footer .site-middle-footer-wrap .site-footer-row-container-inner,
.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner,
.site-footer .site-top-footer-wrap .site-footer-row-container-inner {
	background: var(--ns-accent-strong);
	border: 0;
}
.site-footer .site-middle-footer-inner-wrap { padding-top: 64px; padding-bottom: 40px; }
.ns-footer { color: var(--ns-surface); font-family: 'Montserrat', sans-serif; font-size: 15px; line-height: 1.6; width: 100%; }
.ns-footer a { color: var(--ns-surface); text-decoration: none; }
.ns-footer a:hover, .ns-footer a:focus { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.ns-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(243, 238, 227, 0.18);
}
.ns-footer__badge { width: 120px; height: 120px; display: block; }
.ns-footer__tagline { margin: 20px 0 12px; max-width: 32ch; color: var(--ns-surface); }
.ns-footer__contact { margin: 0; color: #D6D0C2; font-size: 14px; }
.ns-footer__heading {
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #FFFFFF;
	margin: 0 0 16px;
}
.ns-footer ul { list-style: none; margin: 0; padding: 0; }
.ns-footer__col li { margin: 0 0 10px; }
.ns-footer__col a { color: #D6D0C2; }
.ns-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	align-items: center;
	justify-content: space-between;
	padding-top: 24px;
	font-size: 13px;
	color: #C9C3B4;
}
.ns-footer__bottom p { margin: 0; }
.ns-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ns-footer__legal a { color: #C9C3B4; }

@media (max-width: 1024px) {
	.ns-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ns-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.ns-footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.ns-footer__bottom { flex-direction: column; align-items: flex-start; }
	.ns-brand__name { font-size: 18px; }
}

/* Blog grid (1x3) */
.ns-blog-grid {
	margin: 72px 0 24px;
	padding-top: 48px;
	border-top: 1px solid var(--ns-border);
}
.ns-blog-grid__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 28px;
}
.ns-blog-grid__title {
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	font-size: 32px;
	line-height: 1.1;
	color: var(--ns-ink);
	margin: 0;
}
.ns-blog-grid__all {
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ns-accent);
	text-decoration: none;
}
.ns-blog-grid__all:hover { color: var(--ns-accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.ns-blog-grid__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}
.ns-card { margin: 0; }
.ns-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: var(--ns-ink);
	background: var(--ns-bg);
	border: 1px solid var(--ns-border);
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.2s ease;
}
.ns-card__link:hover, .ns-card__link:focus { border-color: var(--ns-accent); color: var(--ns-ink); }
.ns-card__media {
	aspect-ratio: 16 / 10;
	background: var(--ns-surface);
	overflow: hidden;
}
.ns-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.ns-card__cat {
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ns-accent);
}
.ns-card__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.35;
	margin: 0;
	color: var(--ns-ink);
}
.ns-card__more {
	margin-top: auto;
	padding-top: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ns-accent);
}
@media (max-width: 900px) {
	.ns-blog-grid__list { grid-template-columns: minmax(0, 1fr); }
}

/* Home hero */
.ns-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: clamp(560px, 82vh, 780px);
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-top: 0;
	overflow: hidden;
	background: var(--ns-accent-strong);
	color: var(--ns-surface);
}
.ns-hero--placeholder {
	background: linear-gradient(160deg, #2C4A3B 0%, #1F2A24 70%);
}
.ns-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: -2;
}
.ns-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(20, 27, 23, 0.86) 0%, rgba(20, 27, 23, 0.62) 45%, rgba(20, 27, 23, 0.30) 100%),
		rgba(20, 27, 23, 0.20);
}
.ns-hero__inner {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 96px 32px;
}
.ns-hero__title {
	font-family: 'Alfa Slab One', serif;
	font-weight: 400;
	font-size: clamp(42px, 6.2vw, 84px);
	line-height: 1.04;
	letter-spacing: 0.005em;
	color: #FFFFFF;
	max-width: 12ch;
	margin: 0 0 20px;
}
.ns-hero__sub {
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.5;
	color: var(--ns-surface);
	max-width: 38ch;
	margin: 0 0 36px;
}
.ns-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ns-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 28px;
	border-radius: 999px;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	font-size: 17px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ns-btn--light { background: var(--ns-surface); color: var(--ns-accent-strong); border: 2px solid var(--ns-surface); }
.ns-btn--light:hover, .ns-btn--light:focus { background: #FFFFFF; border-color: #FFFFFF; color: var(--ns-accent-strong); }
.ns-btn--outline-light { background: transparent; color: #FFFFFF; border: 2px solid rgba(243, 238, 227, 0.85); }
.ns-btn--outline-light:hover, .ns-btn--outline-light:focus { background: rgba(243, 238, 227, 0.12); color: #FFFFFF; border-color: #FFFFFF; }
.ns-btn:focus-visible { outline: 3px solid var(--ns-brass); outline-offset: 3px; }
.home-page-hero-active .entry-content > .ns-hero:first-child { margin-top: 0; }
@media (max-width: 700px) {
	.ns-hero { min-height: 560px; }
	.ns-hero__overlay { background: linear-gradient(180deg, rgba(20, 27, 23, 0.55) 0%, rgba(20, 27, 23, 0.82) 100%); }
	.ns-hero__inner { padding: 72px 20px; }
	.ns-hero__actions { flex-direction: column; align-items: stretch; }
}

/* Fix: keep the big Alfa Slab page-title style off blog cards and archive lists */
.loop-entry .entry-header .entry-title,
.loop-entry .entry-title,
.loop-entry .entry-title a,
.ns-blog-grid .ns-card__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 20px;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ns-ink);
}
.ns-blog-grid .ns-card__title { font-size: 18px; }
.ns-blog-grid .ns-blog-grid__title { letter-spacing: 0.02em; }

/* Keep the blog grid inside the site's content width, even on full-width pages */
.ns-blog-grid {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--global-content-width, 1290px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--global-content-edge-padding, 1.5rem);
	padding-right: var(--global-content-edge-padding, 1.5rem);
}
.content-container .ns-blog-grid,
.entry-content-wrap .ns-blog-grid {
	padding-left: 0;
	padding-right: 0;
}
.page-template-default .content-width-fullwidth .ns-blog-grid,
.content-width-fullwidth .entry-content > .ns-blog-grid {
	padding-left: var(--global-content-edge-padding, 1.5rem);
	padding-right: var(--global-content-edge-padding, 1.5rem);
}

/* Blog grid: tighter max width so it sits closer to the article text column */
.ns-blog-grid { max-width: 1100px; }
