/* Nikolaevich Designs — warm cream & deep green */

:root {
	--nd-cream: #f5efe4;
	--nd-cream-alt: #ece3d3;
	--nd-paper: #fbf8f2;
	--nd-ink: #1f2a22;
	--nd-muted: #5a6157;
	--nd-line: rgba(31, 42, 34, 0.14);
	--nd-green: #2d5a3d;
	--nd-green-hover: #234a31;
	--nd-green-deep: #1b3626;
	--nd-green-accent: #4c994c;
	--nd-sage: #dfe6d6;
	--nd-on-dark: #f5efe4;
	--nd-on-dark-muted: rgba(245, 239, 228, 0.72);

	--nd-serif: "Poltawski Nowy", Georgia, "Times New Roman", serif;
	--nd-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--nd-radius: 18px;
	--nd-radius-sm: 10px;
	--nd-shadow: 0 1px 2px rgba(31, 42, 34, 0.06), 0 12px 32px -12px rgba(31, 42, 34, 0.18);
	--nd-wrap: 1240px;
	--nd-gutter: clamp(20px, 4vw, 40px);
	--nd-section: clamp(72px, 10vw, 128px);
	--nd-header-h: 84px;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nd-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.nd {
	margin: 0;
	background: var(--nd-cream);
	color: var(--nd-ink);
	font-family: var(--nd-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* Stops third-party widgets that render wide while loading from widening the page on phones. */
	overflow-x: hidden;
}

/* Zero-specificity base rules so component classes always win. */
:where(.nd) img { max-width: 100%; height: auto; display: block; }
:where(.nd) a { color: inherit; text-decoration: none; }
:where(.nd) p { margin: 0 0 1em; }
:where(.nd) :where(h1, h2, h3, h4) { font-family: var(--nd-serif); font-weight: 500; line-height: 1.12; color: var(--nd-ink); margin: 0 0 0.5em; letter-spacing: -0.01em; }
:where(.nd) :where(ul, ol) { margin: 0; padding: 0; }
.nd :focus-visible { outline: 2px solid var(--nd-green); outline-offset: 3px; border-radius: 4px; }
.nd ::selection { background: var(--nd-sage); }

.nd-wrap { width: 100%; max-width: calc(var(--nd-wrap) + var(--nd-gutter) * 2); margin: 0 auto; padding: 0 var(--nd-gutter); }
.nd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nd-hidden { display: none !important; }
.nd-center { text-align: center; margin-top: 48px; }

.nd-skip { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--nd-green); color: var(--nd-on-dark) !important; padding: 10px 16px; border-radius: 8px; }
.nd-skip:focus { top: 12px; }

.nd-eyebrow { font-family: var(--nd-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nd-green); margin: 0 0 16px !important; display: flex; align-items: center; gap: 10px; }
.nd-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.nd-eyebrow--light { color: var(--nd-on-dark-muted); }

.nd-h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.nd-h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); }

/* ---------- Buttons & links ---------- */

.nd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px;
	font-family: var(--nd-sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2;
	border-radius: 999px; border: 1.5px solid transparent;
	cursor: pointer; white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nd-btn:hover { transform: translateY(-1px); }
.nd-btn--primary { background: var(--nd-green); color: var(--nd-on-dark) !important; }
.nd-btn--primary:hover { background: var(--nd-green-hover); }
.nd-btn--ghost { border-color: var(--nd-ink); color: var(--nd-ink) !important; background: transparent; }
.nd-btn--ghost:hover { background: var(--nd-ink); color: var(--nd-cream) !important; }
.nd-btn--light { background: var(--nd-cream); color: var(--nd-green-deep) !important; }
.nd-btn--light:hover { background: #fff; }

.nd-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--nd-green) !important; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--nd-sans); }
.nd-link span { transition: transform 0.2s ease; }
.nd-link:hover span, a:hover .nd-link span { transform: translateX(4px); }

/* ---------- Header ---------- */

.nd-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(245, 239, 228, 0.92);
	-webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.admin-bar .nd-header { top: 32px; }
.nd-header.is-scrolled { border-color: var(--nd-line); box-shadow: 0 6px 24px -18px rgba(31, 42, 34, 0.4); }
.nd-header__inner { display: flex; align-items: center; gap: 32px; height: var(--nd-header-h); }

.nd-logo { flex: 0 0 auto; display: block; }
.nd-logo img { height: 60px; width: auto; }
/* Fallback when only the white logo is available: tint it dark for the light header. */
.nd-logo img.nd-logo--tint { filter: brightness(0) saturate(100%); opacity: 0.88; }
.nd-logo__text { font-family: var(--nd-serif); font-size: 22px; }

.nd-nav { margin-left: auto; }
.nd-menu { list-style: none; display: flex; align-items: center; gap: 4px; }
.nd-menu > li { position: relative; display: flex; align-items: center; }
.nd-menu a { display: block; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--nd-ink); border-radius: 999px; transition: background-color 0.2s ease, color 0.2s ease; }
.nd-menu > li > a:hover, .nd-menu > li.current-menu-item > a, .nd-menu > li.current-menu-ancestor > a { color: var(--nd-green); }
.nd-menu > li.current-menu-item > a, .nd-menu > li.current-menu-ancestor > a { background: rgba(45, 90, 61, 0.08); }
.nd-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }

.nd-menu .sub-menu {
	list-style: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 8px;
	background: var(--nd-paper); border: 1px solid var(--nd-line); border-radius: 14px; box-shadow: var(--nd-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nd-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nd-menu li:hover > .sub-menu, .nd-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nd-menu .sub-menu a { border-radius: 8px; padding: 10px 12px; }
.nd-menu .sub-menu a:hover, .nd-menu .sub-menu .current-menu-item > a { background: var(--nd-cream); color: var(--nd-green); }
.nd-sub-toggle { display: none; }

.nd-nav__cta { display: none; }
.nd-header__actions { display: flex; align-items: center; gap: 12px; }
.nd-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--nd-line); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.nd-burger__bars, .nd-burger__bars::before, .nd-burger__bars::after { position: absolute; left: 50%; width: 18px; height: 1.5px; background: var(--nd-ink); transform: translateX(-50%); transition: transform 0.25s ease, opacity 0.2s ease; }
.nd-burger__bars { top: 50%; }
.nd-burger__bars::before, .nd-burger__bars::after { content: ""; left: 0; transform: none; }
.nd-burger__bars::before { top: -6px; }
.nd-burger__bars::after { top: 6px; }
.nd-burger[aria-expanded="true"] .nd-burger__bars { background: transparent; }
.nd-burger[aria-expanded="true"] .nd-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.nd-burger[aria-expanded="true"] .nd-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
	:root { --nd-header-h: 72px; }
	.nd-logo img { height: 42px; }
	.nd-burger { display: block; }
	.nd-header__actions { margin-left: auto; }
	/* backdrop-filter would trap the fixed menu panel inside the header. */
	.nd-header { background: var(--nd-cream); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.nd-header__actions .nd-btn { min-height: 42px; padding: 10px 18px; font-size: 14px; }
	/* Positioned against the sticky header (always full width) rather than the viewport. */
	.nd-nav {
		position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
		height: calc(100vh - var(--nd-header-h)); height: calc(100dvh - var(--nd-header-h));
		background: var(--nd-cream); padding: 24px var(--nd-gutter) 40px; overflow-y: auto;
		display: flex; flex-direction: column; gap: 24px;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}
	.nd-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nd-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nd-menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--nd-line); }
	.nd-menu > li > a { flex: 1; padding: 18px 0; font-family: var(--nd-serif); font-size: 26px; border-radius: 0; background: none !important; }
	.nd-menu .menu-item-has-children > a::after { display: none; }
	.nd-sub-toggle { display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
	.nd-sub-toggle span::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--nd-ink); border-bottom: 1.5px solid var(--nd-ink); transform: translate(-50%, -70%) rotate(45deg); transition: transform 0.2s ease; }
	.nd-sub-toggle[aria-expanded="true"] span::before { transform: translate(-50%, -30%) rotate(-135deg); }
	.nd-menu .sub-menu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
	.nd-menu .sub-menu.is-open { display: block; }
	.nd-menu .sub-menu a { padding: 10px 0 10px 16px; font-size: 17px; }
	.nd-nav__cta { display: block; }
	.nd-nav__cta .nd-btn { width: 100%; }
	body.nd-menu-open { overflow: hidden; }
}
@media (max-width: 560px) {
	.nd-header__actions .nd-btn { display: none; }
	.nd-hero__actions .nd-btn { flex: 1 1 100%; }
}

/* Phone-only booking bar, shown once the hero has scrolled away. */
.nd-mobile-cta { display: none; }
@media (max-width: 560px) {
	.nd-mobile-cta {
		display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
		box-shadow: 0 10px 30px -10px rgba(27, 54, 38, 0.55);
		transform: translateY(140%); transition: transform 0.3s ease;
	}
	.nd-mobile-cta.is-visible { transform: none; }
	.nd-menu-open .nd-mobile-cta { transform: translateY(140%); }
	.nd-footer { padding-bottom: 96px; }
}
@media (max-width: 782px) { .admin-bar .nd-header { top: 46px; } }

/* ---------- Hero ---------- */

.nd-hero { padding: clamp(32px, 6vw, 72px) 0 clamp(8px, 2vw, 24px); }
.nd-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.nd-hero__title { font-size: clamp(2.75rem, 5.6vw, 5rem); line-height: 1.02; margin-bottom: 24px; }
.nd-hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--nd-muted); max-width: 34em; margin-bottom: 32px !important; }
.nd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nd-hero__facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--nd-line); }
.nd-hero__facts li { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; color: var(--nd-muted); }
.nd-hero__facts strong { font-family: var(--nd-serif); font-size: 20px; font-weight: 500; color: var(--nd-ink); }

.nd-hero__media { position: relative; margin: 0; border-radius: calc(var(--nd-radius) + 6px); overflow: hidden; aspect-ratio: 5 / 6; box-shadow: var(--nd-shadow); background: var(--nd-cream-alt); }
.nd-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.nd-hero__media figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(251, 248, 242, 0.92); font-size: 13px; font-weight: 500; color: var(--nd-ink); }

@media (max-width: 900px) {
	.nd-hero__grid { grid-template-columns: 1fr; }
	.nd-hero__media { aspect-ratio: 4 / 3; order: -1; }
	.nd-hero__facts { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
	.nd-hero__facts li { flex-direction: row; align-items: baseline; gap: 10px; }
	.nd-hero__facts strong { font-size: 18px; white-space: nowrap; }
}

/* ---------- Sections ---------- */

.nd-section { padding: var(--nd-section) 0; }
.nd-section--tight { padding-top: 24px; }
.nd-section--alt { background: var(--nd-cream-alt); }
.nd-section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.nd-section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.nd-section__head--row .nd-h2 { margin-bottom: 0; }
.nd-section__intro { font-size: 18px; color: var(--nd-muted); }

/* Services */
.nd-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nd-service { display: flex; flex-direction: column; background: var(--nd-paper); border: 1px solid var(--nd-line); border-radius: var(--nd-radius); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.nd-service:hover { transform: translateY(-4px); box-shadow: var(--nd-shadow); }
.nd-service__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--nd-cream-alt); }
.nd-service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.nd-service:hover .nd-service__media img { transform: scale(1.04); }
.nd-service__body { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 28px; flex: 1; }
.nd-service__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nd-muted); }
.nd-service__title { font-family: var(--nd-serif); font-size: 30px; line-height: 1.1; }
.nd-service__text { color: var(--nd-muted); font-size: 16px; flex: 1; }
.nd-service .nd-link { margin-top: 6px; }
@media (max-width: 900px) { .nd-services { grid-template-columns: 1fr; } .nd-service { display: grid; grid-template-columns: 2fr 3fr; } .nd-service__media { aspect-ratio: auto; height: 100%; } }
@media (max-width: 560px) { .nd-service { display: flex; } .nd-service__media { aspect-ratio: 16 / 10; } }

/* About */
.nd-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.nd-about__media { position: relative; padding: 0 12% 14% 0; }
.nd-about__img { border-radius: var(--nd-radius); object-fit: cover; }
.nd-about__img--main { width: 100%; aspect-ratio: 4 / 5; }
.nd-about__img--inset { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; border: 8px solid var(--nd-cream-alt); box-shadow: var(--nd-shadow); }
.nd-about__lead { font-size: 18px; color: var(--nd-ink); }
.nd-pillars { margin-top: 28px; border-top: 1px solid var(--nd-line); }
.nd-pillar { border-bottom: 1px solid var(--nd-line); }
.nd-pillar summary, .nd-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--nd-serif); font-size: 22px; line-height: 1.3; }
.nd-pillar summary::-webkit-details-marker, .nd-faq__item summary::-webkit-details-marker { display: none; }
.nd-pillar summary::after, .nd-faq__item summary::after { content: "+"; flex: 0 0 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--nd-line); border-radius: 50%; font-family: var(--nd-sans); font-size: 18px; color: var(--nd-green); transition: transform 0.25s ease, background-color 0.2s ease; }
.nd-pillar[open] summary::after, .nd-faq__item[open] summary::after { transform: rotate(45deg); background: var(--nd-paper); }
.nd-pillar p { color: var(--nd-muted); padding-bottom: 20px; margin: 0; }
@media (max-width: 900px) { .nd-about { grid-template-columns: 1fr; } .nd-about__media { max-width: 520px; } }

/* Process */
.nd-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.nd-step { padding: 28px 24px 30px; background: var(--nd-paper); border: 1px solid var(--nd-line); border-radius: var(--nd-radius); position: relative; }
.nd-step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--nd-sage); color: var(--nd-green); font-family: var(--nd-serif); font-size: 18px; margin-bottom: 20px; }
.nd-step__title { font-size: 24px !important; }
.nd-step p { color: var(--nd-muted); font-size: 16px; margin: 0; }
@media (max-width: 1024px) { .nd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nd-steps { grid-template-columns: 1fr; } }

/* Featured projects */
.nd-featured { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: repeat(2, minmax(220px, 1fr)); gap: 20px; }
.nd-feature { position: relative; display: block; border-radius: var(--nd-radius); overflow: hidden; background: var(--nd-cream); min-height: 220px; }
.nd-feature--wide { grid-row: span 2; }
.nd-feature:nth-child(4) { grid-column: 2 / span 2; }
.nd-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.nd-feature:hover img { transform: scale(1.04); }
.nd-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 22, 0) 45%, rgba(20, 30, 22, 0.72) 100%); }
.nd-feature__label { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: #fff; font-family: var(--nd-serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.nd-feature__cat { display: block; font-family: var(--nd-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; margin-bottom: 6px; }
@media (max-width: 900px) {
	.nd-featured { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.nd-feature { aspect-ratio: 4 / 3; min-height: 0; }
	.nd-feature--wide { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 9; }
	.nd-feature:nth-child(4) { grid-column: auto; }
}
@media (max-width: 560px) { .nd-featured { grid-template-columns: 1fr; } .nd-feature--wide { aspect-ratio: 4 / 3; } }

/* Reviews (Trustindex widget) */
.nd-reviews { min-height: 40px; max-width: 100%; overflow: hidden; }

/* FAQ */
.nd-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.nd-faq__intro { position: sticky; top: calc(var(--nd-header-h) + 32px); }
.nd-faq__intro p { color: var(--nd-muted); }
.nd-faq__list { border-top: 1px solid var(--nd-line); }
.nd-faq__item { border-bottom: 1px solid var(--nd-line); }
.nd-faq__item summary { font-size: 21px; padding: 24px 0; }
.nd-faq__answer { color: var(--nd-muted); padding: 0 48px 24px 0; }
.nd-faq__answer p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .nd-faq { grid-template-columns: 1fr; } .nd-faq__intro { position: static; } .nd-faq__item summary { font-size: 19px; } .nd-faq__answer { padding-right: 0; } }

/* CTA band */
.nd-cta { background: var(--nd-green-deep); color: var(--nd-on-dark); padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.nd-cta::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(245, 239, 228, 0.12); box-shadow: 0 0 0 60px rgba(245, 239, 228, 0.03), 0 0 0 140px rgba(245, 239, 228, 0.025); pointer-events: none; }
.nd-cta__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 40px; align-items: end; position: relative; }
.nd-cta__title { color: var(--nd-on-dark) !important; font-size: clamp(2.1rem, 4vw, 3.4rem); max-width: 16em; }
.nd-cta__text { color: var(--nd-on-dark-muted); font-size: 18px; max-width: 36em; margin: 0 !important; }
.nd-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.nd-cta__phone { color: var(--nd-on-dark-muted) !important; font-size: 15px; border-bottom: 1px solid rgba(245, 239, 228, 0.3); }
.nd-cta__phone:hover { color: var(--nd-on-dark) !important; }
@media (max-width: 800px) { .nd-cta__inner { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Inner pages ---------- */

.nd-page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); }
.nd-page-hero__title { font-size: clamp(2.5rem, 5vw, 4.25rem); max-width: 14em; }
.nd-page-hero__intro { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--nd-muted); max-width: 40em; margin: 0 !important; }

.nd-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--nd-line); }
.nd-tab { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--nd-line); font-size: 15px; font-weight: 500; transition: background-color 0.2s ease, border-color 0.2s ease; }
.nd-tab:hover { border-color: var(--nd-green); color: var(--nd-green); }
.nd-tab[aria-current="page"] { background: var(--nd-green); border-color: var(--nd-green); color: var(--nd-on-dark) !important; }

.nd-jump { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: baseline; padding-top: 24px; font-size: 14px; }
.nd-jump__label { font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; color: var(--nd-muted); }
.nd-jump a { color: var(--nd-ink); border-bottom: 1px solid var(--nd-line); padding-bottom: 2px; }
.nd-jump a:hover { color: var(--nd-green); border-color: var(--nd-green); }

.nd-projects { padding-top: clamp(40px, 6vw, 80px); padding-bottom: var(--nd-section); display: flex; flex-direction: column; gap: clamp(64px, 9vw, 120px); }
.nd-project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.nd-project--flip .nd-project__copy { order: 2; }
.nd-project__copy { position: sticky; top: calc(var(--nd-header-h) + 32px); }
.nd-project__num { font-family: var(--nd-serif); color: var(--nd-green); font-size: 18px; margin-bottom: 8px !important; }
.nd-project__title { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.nd-project__text { color: var(--nd-muted); font-size: 16.5px; }
.nd-project__open { margin-top: 8px; }

.nd-gallery { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nd-gallery--2 { grid-template-columns: 1fr; }
.nd-gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nd-gallery--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nd-gallery__item { position: relative; display: block; overflow: hidden; border-radius: var(--nd-radius-sm); background: var(--nd-paper); border: 1px solid var(--nd-line); aspect-ratio: 4 / 3; cursor: zoom-in; }
.nd-gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; border-radius: var(--nd-radius); }
.nd-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
/* Drawings and plans read better uncropped. */
.nd-gallery__item:first-child img { object-fit: contain; background: #fff; }
.nd-gallery__item:hover img { transform: scale(1.03); }
.nd-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(27, 54, 38, 0.62); color: #fff; font-family: var(--nd-serif); font-size: 26px; }

@media (max-width: 900px) {
	.nd-project { grid-template-columns: 1fr; }
	.nd-project--flip .nd-project__copy { order: 0; }
	.nd-project__copy { position: static; }
	.nd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nd-gallery--2 { grid-template-columns: 1fr; }
}

/* Lightbox */
.nd-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 22, 17, 0.94); color: #fff; }
.nd-lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.nd-lightbox::backdrop { background: rgba(15, 22, 17, 0.94); }
.nd-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100vh; justify-content: center; padding: 48px 0; }
.nd-lightbox__figure img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; }
.nd-lightbox__figure figcaption { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.nd-lightbox__nav, .nd-lightbox__close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; justify-self: center; }
.nd-lightbox__nav:hover, .nd-lightbox__close:hover { background: rgba(255, 255, 255, 0.16); }
.nd-lightbox__close { position: absolute; top: 16px; right: 16px; font-size: 26px; }
@media (max-width: 640px) {
	.nd-lightbox[open] { grid-template-columns: 1fr; }
	.nd-lightbox__nav { position: absolute; bottom: 20px; }
	.nd-lightbox__nav--prev { left: calc(50% - 60px); }
	.nd-lightbox__nav--next { left: calc(50% + 12px); }
	.nd-lightbox__figure { padding: 64px 12px 88px; }
}

/* Contact */
.nd-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-top: 16px; padding-bottom: var(--nd-section); }
.nd-contact__book, .nd-contact__form { border-radius: var(--nd-radius); padding: clamp(28px, 4vw, 48px); }
.nd-contact__book { background: var(--nd-green-deep); color: var(--nd-on-dark); }
.nd-contact__book .nd-h3 { color: var(--nd-on-dark); }
.nd-contact__book > p { color: var(--nd-on-dark-muted); margin-bottom: 24px !important; }
.nd-contact__book .nd-btn--primary { background: var(--nd-cream); color: var(--nd-green-deep) !important; }
.nd-contact__book .nd-btn--primary:hover { background: #fff; }
.nd-contact__details { list-style: none; margin-top: 40px !important; border-top: 1px solid rgba(245, 239, 228, 0.18); }
.nd-contact__details li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(245, 239, 228, 0.18); font-size: 16px; }
.nd-contact__details a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nd-contact__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nd-on-dark-muted); padding-top: 3px; }
.nd-contact__form { background: var(--nd-paper); border: 1px solid var(--nd-line); }
@media (max-width: 900px) { .nd-contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .nd-contact__details li { grid-template-columns: 1fr; gap: 2px; } }

/* Contact Form 7 */
.nd .wpcf7 .form-group { margin-bottom: 18px; }
.nd .wpcf7 label { display: block; font-size: 14px; font-weight: 600; color: var(--nd-ink); }
.nd .wpcf7 label .nd-optional { font-weight: 400; color: var(--nd-muted); }
.nd .wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.nd .wpcf7 .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .nd .wpcf7 .form-row { grid-template-columns: 1fr; } }
.nd .wpcf7 input[type="text"], .nd .wpcf7 input[type="email"], .nd .wpcf7 input[type="tel"], .nd .wpcf7 textarea {
	width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--nd-ink);
	background: var(--nd-cream); border: 1px solid var(--nd-line); border-radius: var(--nd-radius-sm); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nd .wpcf7 textarea { min-height: 160px; resize: vertical; }
.nd .wpcf7 input:focus, .nd .wpcf7 textarea:focus { outline: none; border-color: var(--nd-green); box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.15); }
.nd .wpcf7 ::placeholder { color: #8a8f86; }
.nd .wpcf7 input[type="submit"] { min-height: 48px; padding: 12px 28px; border: 0; border-radius: 999px; background: var(--nd-green); color: var(--nd-on-dark); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; }
.nd .wpcf7 input[type="submit"]:hover { background: var(--nd-green-hover); }
.nd .wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; }
.nd .wpcf7-not-valid-tip { font-size: 14px; margin-top: 6px; }
.nd .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--nd-radius-sm); font-size: 15px; }

/* Generic content */
.nd-prose { max-width: 880px; padding-bottom: var(--nd-section); }
.nd-prose h2 { font-size: 2rem; margin-top: 1.6em; }
.nd-prose a { color: var(--nd-green); text-decoration: underline; text-underline-offset: 3px; }
.nd-list { list-style: none; border-top: 1px solid var(--nd-line); }
.nd-list li { padding: 24px 0; border-bottom: 1px solid var(--nd-line); }
.nd-list__title { font-family: var(--nd-serif); font-size: 26px; }
.nd-list p { color: var(--nd-muted); margin: 6px 0 0; }
.nd-404 { padding-top: 8px; }

/* ---------- Footer ---------- */

.nd-footer { background: #16301f; color: var(--nd-on-dark-muted); padding: clamp(56px, 8vw, 96px) 0 32px; font-size: 15px; }
.nd-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.nd-footer__logo { height: 56px; width: auto; margin-bottom: 20px; }
.nd-footer__brand p { max-width: 28em; margin-bottom: 24px !important; }
.nd-footer__heading { font-family: var(--nd-sans) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nd-on-dark) !important; margin-bottom: 18px !important; }
.nd-footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nd-footer__links a:hover { color: var(--nd-on-dark); }
.nd-footer__address { line-height: 1.5; }
.nd-social { list-style: none; display: flex; gap: 10px; margin-top: 24px !important; }
.nd-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(245, 239, 228, 0.22); color: var(--nd-on-dark); transition: background-color 0.2s ease; }
.nd-social a:hover { background: rgba(245, 239, 228, 0.12); }
.nd-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(245, 239, 228, 0.14); font-size: 14px; }
.nd-footer__bottom p { margin: 0; }
.nd-footer__top:hover { color: var(--nd-on-dark); }
@media (max-width: 900px) { .nd-footer__grid { grid-template-columns: 1fr 1fr; } .nd-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .nd-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */

.nd-js .nd-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.nd-js .nd-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.nd-js .nd-reveal { opacity: 1; transform: none; transition: none; }
	.nd *, .nd *::before, .nd *::after { transition-duration: 0.01ms !important; }
}
