/* ===========================================================================
   Nurtured By Nature — Site-wide chrome (header, top bar, nav, footer, buttons)
   Loaded on EVERY page so the branded header/footer that header.php / footer.php
   output look identical site-wide (homepage, blog, and Astra-rendered pages).
   De-scoped from .nbn-home and bound to the canonical --nbn-* tokens in
   style.css so it works with or without the homepage wrapper present.
   (Homepage body sections live in home.css; blog in blog.css.)
   =========================================================================== */

/* ---- Shared layout primitive --------------------------------------------- */
.nbn-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

/* ---- Script accent (brand "by", section headings) ------------------------ */
.nbn-script {
	display: block;
	font-family: var(--nbn-font-script, 'Sacramento', cursive) !important;
	font-weight: 400;
	text-transform: none !important;
	letter-spacing: 0 !important;
	color: var(--nbn-teal-deep, #007e9b);
	line-height: .9;
}

/* ---- Buttons ------------------------------------------------------------- */
.nbn-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--nbn-font-display, 'Archivo', sans-serif);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.8px;
	font-size: .8rem;
	padding: 16px 32px;
	white-space: nowrap;
	border-radius: 2px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.nbn-btn:hover { transform: translateY(-2px); }
.nbn-btn .nbn-chev { font-weight: 700; letter-spacing: -2px; }

.nbn-btn--teal  { background: var(--nbn-teal-deep, #007e9b); border-color: var(--nbn-teal-deep, #007e9b); color: #fff; }
.nbn-btn--teal:hover { background: var(--nbn-teal-ink, #06414f); border-color: var(--nbn-teal-ink, #06414f); color: #fff; }

.nbn-btn--coral { background: var(--nbn-coral, #ff6a44); border-color: var(--nbn-coral, #ff6a44); color: #fff; }
.nbn-btn--coral:hover { background: var(--nbn-coral-deep, #ed5530); border-color: var(--nbn-coral-deep, #ed5530); }

.nbn-btn--gold  { background: transparent; border-color: var(--nbn-gold, #c89a3f); color: var(--nbn-ink, #14272d); }
.nbn-btn--gold:hover { background: var(--nbn-gold, #c89a3f); border-color: var(--nbn-gold, #c89a3f); color: #fff; }

.nbn-btn--light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.nbn-btn--light:hover { background: #fff; border-color: #fff; color: var(--nbn-ink, #14272d); }

.nbn-btn--block { width: 100%; justify-content: center; }

/* ---- Top bar ------------------------------------------------------------- */
.nbn-topbar {
	background: var(--nbn-teal-deep, #007e9b);
	color: #eaf6f9;
	font-size: 12.5px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.nbn-topbar__inner {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
	gap: 10px; padding-block: 9px;
}
.nbn-dot { color: var(--nbn-gold-soft, #e6c684); }

/* ---- Header / nav (sticky, translucent) ---------------------------------- */
.nbn-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(253, 251, 246, .9);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--nbn-line, #d4e6e6);
}
.nbn-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 32px; padding-block: 12px;
	max-width: 1340px; /* wider than the content wrap so brand + nav + CTAs don't bunch */
	transition: padding .25s ease;
}
/* flex: 0 0 auto so the wordmark never shrinks into the nav */
.nbn-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; text-decoration: none; }
.nbn-brand__mark { height: 50px; width: auto; display: block; }
.nbn-brand__name {
	font-family: var(--nbn-font-display, 'Archivo', sans-serif); font-weight: 800; text-transform: uppercase;
	font-size: 1.18rem; letter-spacing: .2px; line-height: 1; color: var(--nbn-ink, #14272d);
	white-space: nowrap;
}
.nbn-brand__name .nbn-script {
	display: inline; text-transform: none; letter-spacing: 0;
	font-size: 1.5rem; color: var(--nbn-teal-deep, #007e9b); margin: 0 .02em; vertical-align: -.04em;
}
/* margin-inline:auto floats the menu so it has equal air from the brand + CTAs */
.nbn-nav { display: flex; gap: 26px; align-items: center; margin-inline: auto; padding-inline: 18px; }
.nbn-nav a {
	font-family: var(--nbn-font-display, 'Archivo', sans-serif); font-weight: 600;
	text-transform: uppercase; letter-spacing: 1px; font-size: .78rem; white-space: nowrap;
	color: var(--nbn-ink, #14272d); text-decoration: none; position: relative; padding-block: 6px;
}
.nbn-nav a::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
	background: var(--nbn-coral, #ff6a44); transition: width .2s ease;
}
.nbn-nav a:hover { color: var(--nbn-teal-deep, #007e9b); }
.nbn-nav a:hover::after { width: 100%; }
/* current-page menu item when a real WP menu is assigned */
.nbn-nav .current-menu-item > a,
.nbn-nav .current_page_item > a { color: var(--nbn-teal-deep, #007e9b); }
.nbn-nav .current-menu-item > a::after,
.nbn-nav .current_page_item > a::after { width: 100%; }
/* thin rule sets the action buttons apart from the menu */
.nbn-header__cta { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; padding-left: 24px; border-left: 1px solid var(--nbn-line, #d4e6e6); }
.nbn-header__cta .nbn-btn { padding: 12px 22px; font-size: .72rem; }
/* Primary CTAs duplicated inside the mobile menu panel; hidden on desktop. */
.nbn-nav__cta { display: none; }

/* Hamburger toggle — hidden on desktop, shown once the inline nav collapses. */
.nbn-nav-toggle {
	display: none; flex: 0 0 auto; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px;
	background: transparent; color: var(--nbn-ink, #14272d); cursor: pointer;
}
/* Hover/focus = color change only. Neutralize Astra's button background + lift
   (its hover transform would also knock the centered toggle off-center). */
.nbn-nav-toggle:hover,
.nbn-nav-toggle:focus { color: var(--nbn-gold, #c89a3f); background: transparent; box-shadow: none; outline: none; transform: none; }
.nbn-nav-toggle__bars,
.nbn-nav-toggle__bars::before,
.nbn-nav-toggle__bars::after {
	content: ""; display: block; width: 24px; height: 2px; border-radius: 2px;
	background: currentColor; transition: transform .25s ease, opacity .2s ease;
}
.nbn-nav-toggle__bars { position: relative; }
.nbn-nav-toggle__bars::before { position: absolute; top: -7px; left: 0; }
.nbn-nav-toggle__bars::after { position: absolute; top: 7px; left: 0; }
/* Animate to an X when open. */
.nbn-nav-toggle[aria-expanded="true"] .nbn-nav-toggle__bars { background: transparent; }
.nbn-nav-toggle[aria-expanded="true"] .nbn-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nbn-nav-toggle[aria-expanded="true"] .nbn-nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Header shrinks slightly + gains shadow once scrolled (JS toggles .is-stuck) */
.nbn-header.is-stuck {
	background: rgba(255,255,255,.96);
	box-shadow: 0 10px 30px -20px rgba(10,61,73,.5);
}
.nbn-header.is-stuck .nbn-header__inner { padding-block: 8px; }

/* If header.php renders the primary nav as a WP menu, normalize the <ul>. */
.nbn-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }
.nbn-nav li { margin: 0; position: relative; }

/* Submenus (menu items with children) — hidden until the parent is hovered/focused. */
.nbn-nav .sub-menu {
	display: block; flex-direction: column; gap: 0; align-items: stretch;
	position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px;
	margin-top: 8px; padding: 8px 0;
	background: rgba(255,255,255,.98);
	border: 1px solid var(--nbn-line, #d4e6e6); border-radius: 12px;
	box-shadow: 0 18px 40px -22px rgba(10,61,73,.55);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nbn-nav li:hover > .sub-menu,
.nbn-nav li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
/* Small hover bridge so the menu doesn't close in the gap below the top item. */
.nbn-nav .menu-item-has-children::after {
	content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
}
/* Caret on parent items that have a submenu — points down, flips up on open. */
.nbn-nav .menu-item-has-children > a { padding-right: 16px; }
.nbn-nav .menu-item-has-children > a::before {
	content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px;
	margin-top: -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .2s ease;
}
.nbn-nav .menu-item-has-children:hover > a::before,
.nbn-nav .menu-item-has-children:focus-within > a::before {
	margin-top: -2px; transform: rotate(-135deg);
}
.nbn-nav .sub-menu li { width: 100%; }
.nbn-nav .sub-menu a {
	display: block; padding: 9px 18px; letter-spacing: .8px; white-space: nowrap;
}
.nbn-nav .sub-menu a::after { display: none; }
.nbn-nav .sub-menu a:hover { color: var(--nbn-teal-deep, #007e9b); background: var(--nbn-mist, #eef6f6); }

/* ---- Footer -------------------------------------------------------------- */
.nbn-footer { background: var(--nbn-teal-ink, #06414f); color: #bfdce3; padding-top: 64px; }
/* Top band: brand/contact/social block beside three internal-link nav columns. */
.nbn-footer__top {
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px 48px; padding-bottom: 48px;
}
.nbn-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.nbn-footer__lockup { margin: 0; }
.nbn-footer__lockup .nbn-brand__name { color: #fff; font-size: 1.9rem; }
.nbn-footer__lockup .nbn-brand__name .nbn-script { color: var(--nbn-gold-soft, #e6c684); }
/* Contact list — email then address, each with a leading icon. */
.nbn-footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.nbn-footer__contact li { margin: 0; }
.nbn-footer__contact a,
.nbn-footer__addr {
	display: inline-flex; align-items: flex-start; gap: 10px;
	color: #d7eaef; text-decoration: none; font-size: 1rem; line-height: 1.4;
}
.nbn-footer__contact a { transition: color .15s ease; }
.nbn-footer__contact a:hover { color: var(--nbn-gold-soft, #e6c684); }
.nbn-footer__ico { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--nbn-gold-soft, #e6c684); }
/* Link columns — section heading + descriptive internal links (crawl + equity). */
.nbn-footer__col { min-width: 0; }
/* Scoped under .nbn-footer so it outranks the homepage's .nbn-home h2 rule
   (the .nbn-home body class wraps the footer on the front page). */
.nbn-footer .nbn-footer__col-title {
	margin: 0 0 18px; color: #fff;
	font-size: .82rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
}
.nbn-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nbn-footer__menu li { margin: 0; }
.nbn-footer__menu a {
	color: #bfdce3; text-decoration: none; font-size: .95rem; line-height: 1.4;
	transition: color .15s ease;
}
.nbn-footer__menu a:hover { color: var(--nbn-gold-soft, #e6c684); }
/* Social row — gold icons on a subtle pill, gold fill on hover. */
.nbn-footer__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.nbn-footer__social li { margin: 0; }
.nbn-footer__social a {
	display: flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: rgba(255,255,255,.08); color: #e6f2f5;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
.nbn-footer__social a:hover {
	background: var(--nbn-gold-soft, #e6c684); color: var(--nbn-teal-ink, #06414f);
	transform: translateY(-2px);
}
.nbn-footer__social svg { width: 20px; height: 20px; }
.nbn-footer__legal {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	border-top: 1px solid rgba(203,171,116,.30); padding-block: 24px;
	font-size: .85rem; color: #7fa6b0;
}
.nbn-footer__legal-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.nbn-footer__legal-meta a { color: #7fa6b0; text-decoration: none; transition: color .15s ease; }
.nbn-footer__legal-meta a:hover { color: var(--nbn-gold-soft, #e6c684); }

/* ---- Chrome responsive --------------------------------------------------- */
/* Footer: brand spans the row, links wrap to a 3- then 2-up grid, then stack. */
@media (max-width: 900px) {
	.nbn-footer__top { grid-template-columns: repeat(3, 1fr); }
	.nbn-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.nbn-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
/* Tighten the header when a fuller menu would otherwise crowd the wordmark + CTAs.
   Three tiers, because the full six-item menu needs ~1350px at base size and the
   bar caps at 1340px: tighten early (1400), tighten harder (1280), then collapse
   to the hamburger (1180) while the Donate + Book Now buttons are still intact. */
@media (max-width: 1400px) {
	.nbn-header__inner { gap: 14px; }
	.nbn-nav, .nbn-nav ul { gap: 15px; }
	.nbn-nav a { letter-spacing: .5px; font-size: .73rem; }
	.nbn-brand__name { font-size: 1rem; }
	.nbn-brand__name .nbn-script { font-size: 1.28rem; }
	.nbn-brand__mark { height: 44px; }
	.nbn-header__cta .nbn-btn { padding: 10px 15px; letter-spacing: 1.2px; }
}
/* Last desktop tier before the hamburger: squeeze the menu, never the CTAs. */
@media (max-width: 1280px) {
	.nbn-header__inner { gap: 10px; }
	.nbn-nav { padding-inline: 10px; }
	.nbn-nav, .nbn-nav ul { gap: 11px; }
	.nbn-nav a { letter-spacing: .3px; font-size: .69rem; }
	.nbn-brand__name { font-size: .95rem; }
	.nbn-brand__name .nbn-script { font-size: 1.2rem; }
	.nbn-brand__mark { height: 40px; }
	.nbn-header__cta { padding-left: 12px; gap: 8px; }
	.nbn-header__cta .nbn-btn { padding: 9px 12px; letter-spacing: .8px; font-size: .68rem; }
}
@media (max-width: 1180px) {
	/* Brand left, hamburger right (in normal flow); the bar CTAs move into the
	   open menu panel so nothing overlaps the wordmark. */
	.nbn-nav-toggle { display: inline-flex; }
	.nbn-brand { margin-right: auto; }
	.nbn-header__cta { display: none; }
	.nbn-nav__cta {
		display: flex; flex-direction: column; gap: 10px;
		padding: 16px 24px 20px; margin-top: 6px;
		border-top: 1px solid var(--nbn-line, #d4e6e6);
	}
	/* Nav becomes a full-width dropdown panel anchored to the header. */
	.nbn-nav {
		position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
		flex-direction: column; align-items: stretch; gap: 0;
		background: rgba(255,255,255,.98);
		backdrop-filter: saturate(140%) blur(8px);
		border-bottom: 1px solid var(--nbn-line, #d4e6e6);
		box-shadow: 0 18px 40px -22px rgba(10,61,73,.55);
		padding: 6px 0;
		max-height: 0; overflow: hidden;
		opacity: 0; visibility: hidden;
		transition: max-height .3s ease, opacity .2s ease, visibility .3s;
	}
	.nbn-nav.is-open { max-height: calc(100vh - 100%); overflow-y: auto; opacity: 1; visibility: visible; }
	.nbn-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.nbn-nav a { display: block; padding: 14px 24px; font-size: .82rem; }
	.nbn-nav a::after { display: none; }
	/* Submenus sit inline (expanded) — no hover dropdown on touch. */
	.nbn-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
		box-shadow: none; background: var(--nbn-mist, #eef6f6);
	}
	.nbn-nav .sub-menu a { padding-left: 38px; }
	.nbn-nav .menu-item-has-children > a { padding-right: 24px; }
	.nbn-nav .menu-item-has-children > a::before { display: none; }
}
@media (max-width: 560px) {
	.nbn-wrap { padding-inline: 18px; }
	.nbn-topbar__inner { font-size: 11px; gap: 6px; }
	.nbn-brand { gap: 9px; }
	.nbn-brand__mark { height: 42px; }
	.nbn-brand__name { font-size: .92rem; }
	.nbn-brand__name .nbn-script { font-size: 1.2rem; }
	.nbn-footer__lockup .nbn-brand__name { font-size: 1.6rem; }
	.nbn-footer__legal { flex-direction: column; align-items: center; text-align: center; }
}
