/* ==========================================================================
   NorthStar Impact — theme styles
   Colours, fonts and spacing live in theme.json; this file adds the
   pieces theme.json can't express: motion, block style variations, layouts.
   ========================================================================== */

:root {
	--ns-forest: var(--wp--preset--color--forest);
	--ns-deep: var(--wp--preset--color--forest-deep);
	--ns-gold: var(--wp--preset--color--gold);
	--ns-gold-light: var(--wp--preset--color--gold-light);
	--ns-gold-grad: var(--wp--preset--gradient--gold);
	--ns-line: var(--wp--preset--color--line);
	--ns-radius: 18px;
	--ns-radius-l: 28px;
	--ns-ease: cubic-bezier(.2, .7, .2, 1);
	--ns-header-h: 80px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ns-header-h) + 24px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--ns-gold-light); color: var(--ns-deep); }
img { height: auto; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:focus-visible { outline: 2px solid var(--ns-gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header: solid pill + hanging logo badge ----------
   The header never changes height while scrolling (that caused the page to "jump"),
   and uses no backdrop blur (expensive to repaint on every scroll frame). */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	pointer-events: none;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.ns-header {
	position: relative;
	padding: 14px clamp(.75rem, 3vw, 2rem) 0;
	pointer-events: none;
}
/* Bar is only a layout row: logo card on the left, menu pill on the right */
.ns-header__bar {
	position: relative;
	pointer-events: none;
	max-width: 1280px;
	margin-inline: auto;
	min-height: var(--ns-header-h);
	align-items: center !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.ns-header__bar > * { pointer-events: auto; }

/* Logo card */
.ns-brand {
	flex: none;
	padding: 12px 22px 11px;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 14px 34px -16px rgba(3, 27, 18, .45);
	transform-origin: left center;
	transition: transform .35s var(--ns-ease), box-shadow .35s ease;
}
.ns-brand::after {
	content: "";
	display: block;
	height: 3px;
	margin: 9px 6px 0;
	border-radius: 3px;
	background: var(--ns-gold-grad);
}
.ns-brand { display: block !important; }
.ns-header .wp-block-site-logo { margin: 0 !important; line-height: 0; }
.ns-header .wp-block-site-logo a,
.ns-header .wp-block-site-logo .custom-logo-link { display: block; line-height: 0; }
.ns-header .wp-block-site-logo img { display: block; height: 64px !important; width: auto !important; max-height: none; aspect-ratio: 725 / 420 !important; object-fit: contain; }

/* Menu pill */
.ns-menu-pill {
	padding: 8px 8px 8px 22px;
	background: #fff;
	border-radius: 999px;
	border: 1px solid rgba(8, 70, 45, .06);
	box-shadow: 0 14px 34px -16px rgba(3, 27, 18, .45);
	transition: box-shadow .35s ease;
}
/* On scroll: logo card tucks in slightly (transform only, no layout jump) */
.ns-scrolled .ns-brand { transform: scale(.86); }
.ns-scrolled .ns-brand, .ns-scrolled .ns-menu-pill { box-shadow: 0 16px 38px -14px rgba(3, 27, 18, .5); }

@media (max-width: 781px) {
	.ns-brand { padding: 9px 14px 8px; border-radius: 18px; }
	.ns-brand::after { margin-top: 6px; }
	.ns-header .wp-block-site-logo img { height: 46px !important; }
	.ns-menu-pill { padding: 6px; }
}
.ns-header .wp-block-navigation-item__content { padding: .5rem .85rem; border-radius: 999px; transition: background .2s, color .2s; text-decoration: none; }
.ns-header .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--mist); color: var(--ns-forest); }
.ns-header .current-menu-item > .wp-block-navigation-item__content,
.ns-header .wp-block-navigation [aria-current="page"] { color: var(--ns-forest); background: var(--wp--preset--color--mist); }
.ns-header .wp-block-button__link { padding: .8em 1.4em; }
@media (max-width: 781px) {
	:root { --ns-header-h: 68px; }
	.ns-header__bar { border-radius: 22px; }
	.ns-header .ns-header__cta { display: none; }
}
/* Mobile overlay menu */
.ns-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--ns-deep) !important;
	color: #fff !important;
	padding: 2rem;
}
.ns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.6rem;
	letter-spacing: .02em;
	color: #fff;
}
.ns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover { background: transparent; color: var(--ns-gold-light); }

/* Pull the first section up under the floating header */
.wp-site-blocks > main { margin-top: calc(-1 * (var(--ns-header-h) + 14px)); }
.wp-site-blocks > main > .wp-block-post-content > :first-child,
.wp-site-blocks > main > :first-child:not(.wp-block-post-content) { padding-top: calc(var(--ns-header-h) + 14px + var(--wp--preset--spacing--60)) !important; }

/* ---------- Dark hero with star trails ---------- */
.is-style-dark-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: #E3EEE8;
}
.is-style-dark-hero:not([style*="background-image"]) { background: var(--wp--preset--gradient--forest) !important; }
.is-style-dark-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		url("../images/star-trails.svg?v=5") center / cover no-repeat,
		linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px,
		linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px;
	-webkit-mask-image: radial-gradient(120% 90% at 60% 20%, #000 40%, transparent 90%);
	mask-image: radial-gradient(120% 90% at 60% 20%, #000 40%, transparent 90%);
	animation: ns-drift 18s ease-in-out infinite alternate;
}
.is-style-dark-hero::after {
	content: "";
	position: absolute;
	width: 60vmax;
	height: 60vmax;
	right: -18vmax;
	top: -22vmax;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(232, 203, 115, .11), transparent 62%);
	filter: blur(10px);
	animation: ns-glow 9s ease-in-out infinite alternate;
}
.is-style-dark-hero :where(h1, h2, h3, h4, h5, h6) { color: #fff; }
.is-style-dark-hero p { color: rgba(227, 238, 232, .82); }
.is-style-dark-hero a:not(.wp-block-button__link) { color: var(--ns-gold-light); }

@keyframes ns-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-1.5%, 1%, 0) scale(1.04); } }
@keyframes ns-glow { from { opacity: .7; transform: scale(1); } to { opacity: 1; transform: scale(1.12); } }

/* ---------- Subtle grid background (light) ---------- */
.is-style-grid-lines {
	background-image:
		linear-gradient(rgba(8,70,45,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(8,70,45,.05) 1px, transparent 1px);
	background-size: 56px 56px;
	background-position: center top;
}

/* ---------- Cards ---------- */
.is-style-card {
	background: #fff;
	border: 1px solid var(--ns-line);
	border-radius: var(--ns-radius-l);
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform .45s var(--ns-ease), box-shadow .45s var(--ns-ease), border-color .45s;
}
.is-style-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lift); border-color: rgba(192, 147, 61, .45); }

.is-style-glass {
	background: rgba(255, 255, 255, .055);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--ns-radius-l);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	transition: transform .45s var(--ns-ease), border-color .45s, background .45s;
}
.is-style-glass:hover { transform: translateY(-4px); border-color: rgba(232, 203, 115, .5); background: rgba(255, 255, 255, .08); }
.is-style-glass :where(h3, h4) { color: #fff; }

/* ---------- Headings & labels ---------- */
.is-style-gold-text,
.ns-gold {
	background: var(--ns-gold-grad);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--ns-gold);
	animation: ns-shine 6s linear infinite;
}
@keyframes ns-shine { to { background-position: 200% center; } }

.is-style-eyebrow {
	display: flex !important;
	align-items: center;
	gap: .55em;
	width: fit-content;
	padding: .45em 1em .45em .8em;
	border-radius: 999px;
	border: 1px solid rgba(192, 147, 61, .45);
	background: rgba(192, 147, 61, .08);
	color: var(--ns-forest);
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.3;
}
.is-style-eyebrow::before {
	content: "";
	width: .8em;
	height: .8em;
	flex: none;
	background: var(--ns-gold-grad);
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.has-text-align-center.is-style-eyebrow { margin-inline: auto !important; }
.is-style-dark-hero .is-style-eyebrow,
.has-forest-deep-background-color .is-style-eyebrow,
.has-forest-dark-background-color .is-style-eyebrow,
.has-forest-background-color .is-style-eyebrow { color: var(--ns-gold-light); border-color: rgba(232, 203, 115, .35); background: rgba(232, 203, 115, .08); }

.is-style-counter {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3.25rem, 6vw, 5rem) !important;
	line-height: 1 !important;
	letter-spacing: .01em;
	margin-bottom: .25rem !important;
	font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: transform .25s var(--ns-ease), box-shadow .25s, background .25s, color .25s; }
.wp-block-button:not(.is-style-arrow-link) .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(192, 147, 61, .6); }
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link { background: var(--ns-gold-grad); background-size: 180% auto; background-position: 0 center; }
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover { background-position: 100% center; }

.is-style-ghost .wp-block-button__link {
	background: rgba(255, 255, 255, .06) !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, .28) !important;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.is-style-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .14) !important; box-shadow: none !important; }

.is-style-outline-dark .wp-block-button__link {
	background: transparent !important;
	color: var(--ns-forest) !important;
	border: 1.5px solid var(--ns-forest) !important;
}
.is-style-outline-dark .wp-block-button__link:hover { background: var(--ns-forest) !important; color: #fff !important; box-shadow: none !important; }

.is-style-arrow-link .wp-block-button__link {
	background: none !important;
	padding: 0 !important;
	color: var(--ns-forest) !important;
	border-radius: 0;
	font-weight: 600;
}
.is-style-arrow-link .wp-block-button__link::after { content: " →"; display: inline-block; transition: transform .25s var(--ns-ease); }
.is-style-arrow-link .wp-block-button__link:hover::after { transform: translateX(5px); }
.is-style-dark-hero .is-style-arrow-link .wp-block-button__link,
.has-forest-deep-background-color .is-style-arrow-link .wp-block-button__link { color: var(--ns-gold-light) !important; }

/* ---------- Images ---------- */
.is-style-frame img {
	border-radius: 20px;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
}
.ns-tilt { perspective: 1800px; }
.ns-tilt img { transform: rotateX(8deg) scale(.98); transform-origin: center top; transition: transform 1.2s var(--ns-ease); }
.ns-tilt.is-visible img, .ns-tilt:hover img { transform: rotateX(0) scale(1); }

.is-style-float img { animation: ns-float 7s ease-in-out infinite; }
@keyframes ns-float { 50% { transform: translateY(-12px); } }

/* ---------- Hero chips floating over the dashboard ---------- */
.ns-hero-visual { position: relative; }
.ns-chip {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .7rem 1rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45);
	color: var(--ns-deep);
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 !important;
	animation: ns-float 6s ease-in-out infinite;
}
.ns-chip strong { display: block; font-size: 1.2rem; color: var(--ns-forest); }
.ns-chip::before { content: ""; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--ns-gold-grad); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.ns-chip--a { left: -4%; top: 60%; }
.ns-chip--b { right: -4%; bottom: -3%; animation-delay: -3s; }
.is-style-dark-hero p.ns-chip { color: var(--ns-muted, #5A6B63); }
@media (max-width: 781px) { .ns-chip { display: none; } }

/* ---------- Supported-by logos ---------- */
.ns-logos img { filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s; }
.ns-logos img:hover { filter: none; opacity: 1; }

/* ---------- Marquee ---------- */
.ns-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ns-marquee > .wp-block-group,
.ns-marquee__track { display: flex !important; flex-wrap: nowrap !important; width: max-content; gap: 3.5rem !important; animation: ns-marquee 32s linear infinite; }
.ns-marquee:hover .ns-marquee__track { animation-play-state: paused; }
.ns-marquee__track > * { margin: 0 !important; white-space: nowrap; font-family: var(--wp--preset--font-family--display); font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: .02em; line-height: 1; color: var(--ns-forest); display: flex; align-items: center; gap: 3.5rem; }
.ns-marquee__track > *::after { content: ""; width: .5em; height: .5em; background: var(--ns-gold-grad); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes ns-marquee { to { transform: translateX(-50%); } }

/* ---------- Bento grid ---------- */
.ns-bento { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1.25rem !important; }
.ns-bento > * { margin: 0 !important; min-width: 0; overflow: hidden; }
.ns-bento .ns-span-2 { grid-column: span 2; }
.ns-bento .ns-row-2 { grid-row: span 2; }
.ns-bento figure { margin-top: auto !important; }
.ns-bento > .wp-block-group { display: flex; flex-direction: column; }
@media (max-width: 960px) {
	.ns-bento { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.ns-bento .ns-row-2 { grid-row: auto; }
}
@media (max-width: 640px) {
	.ns-bento { grid-template-columns: 1fr !important; }
	.ns-bento .ns-span-2 { grid-column: auto; }
}

/* ---------- Numbered steps ---------- */
.ns-steps { counter-reset: ns-step; }
.ns-step { position: relative; counter-increment: ns-step; padding-top: 3.2rem !important; border-top: 1px solid var(--ns-line); }
.ns-step::before {
	content: "0" counter(ns-step);
	position: absolute;
	top: .9rem;
	left: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	letter-spacing: .06em;
	color: var(--ns-gold);
}
.ns-step::after { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--ns-gold-grad); transition: width 1.2s var(--ns-ease) .2s; }
.ns-step.is-visible::after, .ns-js .is-visible .ns-step::after { width: 100%; }
.is-style-dark-hero .ns-step, .has-forest-deep-background-color .ns-step { border-top-color: rgba(255,255,255,.14); }

/* ---------- Icon badge ---------- */
.ns-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--mist);
	margin-bottom: .5rem !important;
}
.ns-icon img { width: 26px; height: 26px; }
.is-style-glass .ns-icon { background: rgba(232, 203, 115, .12); }

/* ---------- Check list ---------- */
.is-style-checks { list-style: none; padding-left: 0 !important; }
.is-style-checks li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--ns-forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23E8CB73' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.is-style-checks li strong { color: var(--ns-deep); }
.has-forest-deep-background-color .is-style-checks li strong, .is-style-dark-hero .is-style-checks li strong { color: #fff; }

/* ---------- Stats band ---------- */
.ns-stats > .wp-block-column { position: relative; }
.ns-stats > .wp-block-column + .wp-block-column::before { content: ""; position: absolute; left: calc(-1 * var(--wp--style--block-gap, 2em) / 2); top: 10%; bottom: 10%; width: 1px; background: var(--ns-line); }
.is-style-dark-hero .ns-stats > .wp-block-column + .wp-block-column::before { background: rgba(255,255,255,.14); }
@media (max-width: 781px) { .ns-stats > .wp-block-column + .wp-block-column::before { display: none; } }

/* ---------- Team cards ---------- */
.ns-team .wp-block-image { overflow: hidden; border-radius: 22px; margin-bottom: 1rem; }
.ns-team .wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .8s var(--ns-ease), filter .8s; filter: grayscale(.25); }
.ns-team .wp-block-column:hover img { transform: scale(1.05); filter: none; }

/* ---------- Blog cards ---------- */
.ns-post-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.ns-post-card .wp-block-post-featured-image { margin: 0; overflow: hidden; }
.ns-post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ns-ease); }
.ns-post-card:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.ns-post-card .wp-block-post-title a { text-decoration: none; color: inherit; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ns-ease); }
.ns-post-card:hover .wp-block-post-title a { background-size: 100% 1px; }
.wp-block-post-template.is-layout-grid > li { display: flex; }
.wp-block-post-terms a { text-decoration: none; color: var(--ns-gold); }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: .4rem .8rem; border-radius: 999px; text-decoration: none; }
.wp-block-query-pagination .current { background: var(--ns-forest); color: #fff; }

/* Single post */
.ns-single-content { font-size: 1.125rem; line-height: 1.8; }
.ns-single-content > p:first-child::first-letter { font-family: var(--wp--preset--font-family--display); float: left; font-size: 4.6rem; line-height: .85; padding: .35rem .6rem 0 0; color: var(--ns-forest); }
.ns-single-content h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-top: 2.5rem; }
.ns-single-content h3 { margin-top: 2rem; }
.ns-single-content img { border-radius: 16px; }
.ns-featured img { border-radius: var(--ns-radius-l); aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- Contact form ---------- */
.ns-form { display: grid; gap: 1.1rem; }
.ns-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .ns-form__row { grid-template-columns: 1fr; } }
.ns-form__field { display: grid; gap: .45rem; font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--ns-deep); }
.ns-form input, .ns-form select, .ns-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-weight: 400;
	font-size: 1rem;
	padding: .9rem 1.05rem;
	border: 1px solid var(--ns-line);
	border-radius: 14px;
	background: #fff;
	color: var(--wp--preset--color--ink);
	transition: border-color .2s, box-shadow .2s;
}
.ns-form input:focus, .ns-form select:focus, .ns-form textarea:focus { outline: none; border-color: var(--ns-gold); box-shadow: 0 0 0 4px rgba(192, 147, 61, .18); }
.ns-form__submit { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; background: var(--ns-gold-grad) !important; background-size: 180% auto !important; transition: background-position .3s, transform .25s; }
.ns-form__submit:hover { background-position: 100% center !important; transform: translateY(-2px); }
.ns-form__hp { position: absolute; left: -9999px; }
.ns-form__notice { margin: 0; padding: 1rem 1.2rem; border-radius: 14px; font-weight: 500; }
.ns-form__notice.is-success { background: #E3F2E8; color: #0B5E37; }
.ns-form__notice.is-error { background: #FBE9E6; color: #9B3322; }

.ns-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--ns-radius-l); filter: grayscale(.35) contrast(1.05); }

/* ---------- Footer ---------- */
.ns-footer a { color: rgba(227, 238, 232, .78); text-decoration: none; transition: color .2s; }
.ns-footer a:hover { color: var(--ns-gold-light); }
.ns-footer .wp-block-social-links .wp-social-link { background: rgba(255,255,255,.08) !important; transition: background .25s, transform .25s; }
.ns-footer .wp-block-social-links .wp-social-link:hover { background: var(--ns-gold) !important; transform: translateY(-2px); }
.ns-footer-big { font-family: var(--wp--preset--font-family--display); font-size: clamp(3.5rem, 13vw, 12rem) !important; line-height: .85 !important; letter-spacing: .01em; color: rgba(255,255,255,.06) !important; white-space: nowrap; overflow: hidden; user-select: none; }

/* ---------- Page hero (inner pages) ---------- */
.ns-page-hero h1 { max-width: 16ch; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.ns-js .ns-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ns-ease), transform .9s var(--ns-ease); }
.ns-js .ns-reveal.is-visible { opacity: 1; transform: none; }
.ns-js .ns-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ns-ease), transform .8s var(--ns-ease); }
.ns-js .ns-stagger.is-visible > * { opacity: 1; transform: none; }
.ns-js .ns-stagger.is-visible > :nth-child(2) { transition-delay: .08s; }
.ns-js .ns-stagger.is-visible > :nth-child(3) { transition-delay: .16s; }
.ns-js .ns-stagger.is-visible > :nth-child(4) { transition-delay: .24s; }
.ns-js .ns-stagger.is-visible > :nth-child(5) { transition-delay: .32s; }
.ns-js .ns-stagger.is-visible > :nth-child(6) { transition-delay: .40s; }

/* Editor: never hide content while editing */
.editor-styles-wrapper .ns-reveal,
.editor-styles-wrapper .ns-stagger > * { opacity: 1 !important; transform: none !important; }
.editor-styles-wrapper .ns-chip { animation: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.ns-js .ns-reveal, .ns-js .ns-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Section rhythm ---------- */
.ns-section { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--70); }
.wp-block-post-content > .alignfull,
.wp-site-blocks > main > .alignfull,
.ns-section.alignfull { margin-block: 0 !important; }
.ns-pad { padding: clamp(1.5rem, 3vw, 2.4rem); }
.ns-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 62ch; }
.is-style-dark-hero .ns-lead, .has-forest-deep-background-color .ns-lead { color: rgba(227, 238, 232, .8); }
.has-text-align-center.ns-lead { margin-inline: auto; }

/* Bold words inside big headings turn gold */
:is(h1, h2).wp-block-heading strong,
.wp-block-post-title strong { font-weight: inherit; background: var(--ns-gold-grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: ns-shine 6s linear infinite; }

/* Hero */
.ns-hero h1 { font-size: clamp(3.5rem, 10vw, 9.5rem) !important; line-height: .9 !important; }
.ns-hero .ns-hero-visual { margin-top: var(--wp--preset--spacing--60) !important; }

/* Pills */
.ns-pills { gap: .75rem !important; }
.ns-pill { margin: 0 !important; padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid var(--ns-line); background: #fff; font-weight: 600; font-size: var(--wp--preset--font-size--small); color: var(--ns-deep); box-shadow: var(--wp--preset--shadow--soft); transition: transform .3s var(--ns-ease), border-color .3s; }
.ns-pill:hover { transform: translateY(-3px); border-color: var(--ns-gold); }
.ns-pill::before { content: "●"; color: var(--ns-gold); margin-right: .5em; font-size: .7em; vertical-align: middle; }

/* CTA card */
.ns-cta { position: relative; overflow: hidden; border-radius: 36px; }
.ns-sep-light { border: 0 !important; height: 1px; background: rgba(255,255,255,.12) !important; opacity: 1; }
.ns-chip { display: grid !important; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; }
.ns-chip::before { grid-row: span 2; }
.ns-bento-dark { border-radius: var(--ns-radius-l); background-image: radial-gradient(90% 80% at 100% 0%, rgba(232,203,115,.22), transparent 60%) !important; }
.ns-bento-dark p { color: rgba(227,238,232,.8); }
.ns-bento-dark figure { margin-top: 0 !important; }
.ns-soft-frame img { border-radius: 24px; box-shadow: var(--wp--preset--shadow--lift); }
.ns-page-hero h1 { margin-inline: auto; } .ns-page-hero { padding-bottom: var(--wp--preset--spacing--60); }
.ns-map { max-width: var(--wp--style--global--wide-size); margin-inline: auto; height: 420px; } .ns-bento-dark a { color: var(--ns-gold-light); }
.ns-sep { border: 0 !important; height: 1px; background: var(--ns-line) !important; margin-block: var(--wp--preset--spacing--50) !important; }
.wp-block-post-navigation-link a { text-decoration: none; font-weight: 600; }
.ns-page-hero .wp-block-post-terms.is-style-eyebrow a { color: inherit; }
.ns-page-hero .wp-block-post-title { max-width: 18ch; margin-inline: auto; }
.wp-block-search__inside-wrapper { border-radius: 999px; overflow: hidden; background: #fff; max-width: 520px; margin-inline: auto; }
.ns-bento figure { margin-bottom: 0 !important; padding-top: 1rem; }
.ns-bento figure img { display: block; width: auto; max-width: 100%; max-height: 230px; margin-inline: auto; }
.ns-bento .ns-span-2 figure img { max-height: 250px; }
.is-style-dark-hero:not(.ns-hero)::before { opacity: .45; }
.wp-block-separator.ns-sep-light, .wp-block-separator.ns-sep { width: 100% !important; max-width: var(--wp--style--global--wide-size) !important; }
@media (max-width: 781px) { .ns-chip { display: none !important; } }
.ns-featured img { aspect-ratio: auto !important; object-fit: contain; }
.ns-featured { max-width: 1040px !important; margin-inline: auto !important; }

/* ---------- FAQ ---------- */
.ns-faq { display: grid; gap: .85rem; }
.ns-faq-item { margin: 0 !important; background: #fff; border: 1px solid var(--ns-line); border-radius: 20px; padding: 0; transition: border-color .3s, box-shadow .3s; }
.ns-faq-item[open] { border-color: rgba(192, 147, 61, .5); box-shadow: var(--wp--preset--shadow--soft); }
.ns-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; font-weight: 600; font-size: 1.05rem; color: var(--ns-deep); }
.ns-faq-item summary::-webkit-details-marker { display: none; }
.ns-faq-item summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--mist); color: var(--ns-forest); font-size: 1.3rem; font-weight: 400; transition: transform .3s var(--ns-ease), background .3s; }
.ns-faq-item[open] summary::after { transform: rotate(45deg); background: var(--ns-gold-light); }
.ns-faq-item > :not(summary) { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--wp--preset--color--muted); }

/* ---------- Legal pages ---------- */
.ns-legal-meta { margin-bottom: var(--wp--preset--spacing--50) !important; background: var(--wp--preset--color--cream) !important; }
.ns-legal-meta:hover { transform: none; }
.ns-single-content .ns-legal-meta p::first-letter { all: unset; }

/* ---------- Dark hero with a photo (set in the block's Background panel) ---------- */
.is-style-dark-hero[style*="background-image"] { background-color: var(--ns-deep); background-repeat: no-repeat; }
.is-style-dark-hero[style*="background-image"]::before {
	-webkit-mask-image: none;
	mask-image: none;
	background:
		url("../images/star-trails.svg?v=5") center / cover no-repeat,
		linear-gradient(180deg, rgba(3, 27, 18, .80) 0%, rgba(3, 27, 18, .58) 34%, rgba(5, 46, 30, .78) 66%, rgba(3, 27, 18, .97) 100%);
	animation: none;
}
.ns-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }
.ns-photo { position: relative; }
.ns-photo--portrait img { aspect-ratio: 4 / 5; }

/* ---------- Photo with an overlapping product card ---------- */
.ns-photo-stack { position: relative; padding-bottom: 12%; }
.ns-photo-stack > .ns-photo { margin: 0 !important; }
.ns-photo-stack > .ns-photo img { box-shadow: var(--wp--preset--shadow--lift); }
.ns-stack-card { position: absolute; right: -4%; bottom: 0; width: 58%; margin: 0 !important; animation: ns-float 7s ease-in-out infinite; }
.ns-stack-card img { border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(3, 27, 18, .45), 0 0 0 6px rgba(255, 255, 255, .9); }
@media (max-width: 781px) { .ns-stack-card { right: 0; width: 70%; } }
.ns-photo-stack--left .ns-stack-card { right: auto; left: -4%; } @media (max-width: 781px) { .ns-photo-stack--left .ns-stack-card { left: 0; } }
.is-style-dark-hero[style*="background-image"]::before { opacity: 1; }
.ns-page-hero[style*="background-image"]::before {
	background:
		url("../images/star-trails.svg?v=5") center / cover no-repeat,
		linear-gradient(180deg, rgba(3, 27, 18, .88) 0%, rgba(3, 27, 18, .80) 50%, rgba(3, 27, 18, .92) 100%);
}
/* Standard pages (Privacy, Terms…): one-line title, content as wide as other pages */
.ns-page-hero .wp-block-post-title.ns-title-oneline { max-width: none; }
@media (min-width: 782px) { .ns-title-oneline { white-space: nowrap; } }
.ns-page-hero h1.wp-block-heading { max-width: 22ch; }

/* ---------- Mobile polish ---------- */
@media (max-width: 781px) {
	/* Stats as a 2 × 2 grid instead of one long column */
	.ns-stats.wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem !important; }
	.ns-stats .is-style-counter { font-size: 3rem !important; }
	/* Solutions: photo always above its text, so every module reads the same way */
	.wp-block-columns > .wp-block-column:has(.ns-photo-stack, .ns-soft-frame) { order: -1; }
}
@media (max-width: 781px) { .ns-photo-stack { padding-bottom: 22%; margin-bottom: 1.5rem !important; } }

/* ---------- Mobile menu: bottom sheet ----------
   backdrop-filter on the header pill would trap the fixed overlay inside the pill,
   so it is switched off while the menu is open. */
.ns-header__bar:has(.wp-block-navigation__responsive-container.is-menu-open) {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	transition: none;
}
/* Hamburger: only restyle, never change display (WordPress hides it on desktop) */
.ns-header .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--mist);
	color: var(--ns-forest);
}
/* Dimmed backdrop */
.ns-header .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed;
	inset: 0;
	z-index: 100000;
	padding: 0 !important;
	pointer-events: auto;
	background: rgba(3, 27, 18, .55) !important;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: ns-fade-in .25s ease;
}
/* The sheet */
.ns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 85vh;
	overflow-y: auto;
	padding: 4.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
	box-sizing: border-box;
	border-radius: 28px 28px 0 0;
	background:
		url("../images/star-trails.svg?v=5") center / cover no-repeat,
		var(--wp--preset--gradient--forest);
	border-top: 1px solid rgba(232, 203, 115, .35);
	box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .6);
	animation: ns-sheet-up .4s var(--ns-ease);
}
.ns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "";
	position: absolute;
	top: 10px;
	left: 50%;
	width: 44px;
	height: 5px;
	border-radius: 5px;
	background: rgba(255, 255, 255, .28);
	transform: translateX(-50%);
}
.ns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 0 !important;
	align-items: stretch;
}
.ns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	align-items: stretch !important;
	width: 100%;
}
.ns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child { border-bottom: 0; }
.ns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: flex !important;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: .85rem .25rem !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem !important;
	letter-spacing: .03em;
	line-height: 1;
	background: none !important;
	border-radius: 0;
	color: #fff !important;
}
.ns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	content: "→";
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.1rem;
	color: rgba(232, 203, 115, .7);
}
.ns-header .wp-block-navigation__responsive-container.is-menu-open [aria-current="page"] { color: var(--ns-gold-light) !important; }
.ns-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: 1.1rem;
	right: 1.1rem;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(255, 255, 255, .1);
}
.ns-sheet-cta { display: none; margin-top: 1.5rem; }
.is-menu-open .ns-sheet-cta { display: block; }
.ns-sheet-cta { width: 100%; box-sizing: border-box; }
.ns-sheet-cta a { box-sizing: border-box; display: flex; justify-content: center; width: 100%; padding: 1rem; border-radius: 999px; background: var(--ns-gold-grad); color: var(--ns-deep); font-weight: 600; text-decoration: none; }
@keyframes ns-fade-in { from { opacity: 0; } }
@keyframes ns-sheet-up { from { transform: translateY(100%); } }

.ns-header .is-menu-open .wp-block-navigation-item__content:focus-visible { outline: 2px solid var(--ns-gold-light); outline-offset: -2px; border-radius: 12px; }
.ns-header .is-menu-open .wp-block-navigation-item__content:focus:not(:focus-visible) { outline: none; }

/* ==========================================================================
   Calm scrolling
   Client feedback: scrolling felt like it "pulls" the eyes. Remove perpetual
   motion and heavy repaints; keep only short, one-time, subtle reveals.
   ========================================================================== */
html { scroll-behavior: auto; }
/* Gold text: static gradient, no endless shimmer on every heading */
.is-style-gold-text, .ns-gold,
:is(h1, h2).wp-block-heading strong,
.wp-block-post-title strong { animation: none !important; background-size: 100% auto; }
/* Hero backgrounds: no drifting / pulsing layers */
.is-style-dark-hero::before, .is-style-dark-hero::after { animation: none !important; }
.is-style-dark-hero::after { opacity: .8; }
/* Nothing floats forever */
.is-style-float img, .ns-chip, .ns-stack-card { animation: none !important; }
/* Hero dashboard: no 3D tilt that changes while scrolling */
.ns-tilt img, .ns-tilt.is-visible img { transform: none !important; transition: none; }
/* Glass cards/buttons: drop live blur (expensive while scrolling) */
.is-style-glass, .is-style-ghost .wp-block-button__link { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.is-style-glass { background: rgba(255, 255, 255, .07); }
/* Reveal: shorter distance, quicker, once */
.ns-js .ns-reveal { transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.ns-js .ns-stagger > * { transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.ns-js .ns-stagger.is-visible > :nth-child(n) { transition-delay: 0s; }
.ns-js .ns-stagger.is-visible > :nth-child(2) { transition-delay: .05s; }
.ns-js .ns-stagger.is-visible > :nth-child(3) { transition-delay: .1s; }
.ns-js .ns-stagger.is-visible > :nth-child(4) { transition-delay: .15s; }
/* Marquee: slower and pauses when not needed */
.ns-marquee__track { animation-duration: 55s !important; }
/* Card hover lift: smaller */
.is-style-card:hover, .is-style-glass:hover { transform: translateY(-2px); }
/* Header row has a fixed height; the taller logo card hangs below it
   (otherwise the header grows and leaves a white strip above the hero). */
.ns-header__bar { height: var(--ns-header-h); }
.ns-brand { align-self: flex-start !important; position: relative; z-index: 1; }
/* Smaller logo card, and no scroll animation on it */
.ns-brand { padding: 9px 16px 8px; border-radius: 18px; transition: none !important; }
.ns-brand::after { margin: 6px 4px 0; height: 2px; }
.ns-header .wp-block-site-logo img { height: 50px !important; }
.ns-scrolled .ns-brand { transform: none !important; }
@media (max-width: 781px) {
	.ns-brand { padding: 7px 12px 6px; border-radius: 14px; }
	.ns-header .wp-block-site-logo img { height: 40px !important; }
}

/* ==========================================================================
   Header v4: one white pill for logo + menu, with a large logo that leads.
   Fixed height, no scroll animation.
   ========================================================================== */
:root { --ns-header-h: 88px; }
.ns-header__bar {
	pointer-events: auto;
	height: var(--ns-header-h);
	padding: 0 10px 0 36px !important;
	border-radius: 999px;
	/* soft gold warmth behind the logo, fading to white */
	background:
		radial-gradient(160px 120px at 120px 50%, rgba(232, 203, 115, .20), rgba(232, 203, 115, 0) 70%),
		#fff;
	border: 1px solid rgba(8, 70, 45, .07);
	box-shadow: 0 16px 40px -18px rgba(3, 27, 18, .5);
}
.ns-brand,
.ns-menu-pill {
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}
.ns-brand { align-self: center !important; }
.ns-brand::after { display: none; }
.ns-header .wp-block-site-logo img { height: 74px !important; filter: drop-shadow(0 2px 6px rgba(8, 70, 45, .12)); }
.ns-scrolled .ns-header__bar { box-shadow: 0 18px 44px -16px rgba(3, 27, 18, .55); }
/* CTA with arrow */
.ns-header .ns-header__cta .wp-block-button__link { padding: .95em 1.6em; font-size: .95rem; }
.ns-header .ns-header__cta .wp-block-button__link::after { content: "→"; display: inline-block; margin-left: .6em; transition: transform .25s var(--ns-ease); }
.ns-header .ns-header__cta .wp-block-button__link:hover::after { transform: translateX(3px); }
.ns-header .wp-block-navigation-item__content { font-size: .98rem; }
@media (max-width: 781px) {
	:root { --ns-header-h: 70px; }
	.ns-header__bar { padding: 0 8px 0 20px !important; border-radius: 22px; background: radial-gradient(110px 80px at 70px 50%, rgba(232, 203, 115, .18), rgba(232, 203, 115, 0) 70%), #fff; }
	.ns-header .wp-block-site-logo img { height: 54px !important; }
}
