/**
 * NT Projektai – project detail page.
 *
 * Shares the custom properties of nt-projects.css (loaded first), so colors
 * and fonts follow the Optimalūs namai Elementor kit and the project listing.
 */

.nt-project-page {
	--ntp-content-width: 1140px;
	--ntp-gutter: 20px;
	--ntp-section-space: 96px;
	--ntp-hero-height: clamp(460px, 64vh, 620px);
	--ntp-card-width: 430px;
	--ntp-shadow: 0 18px 44px rgba(15, 42, 33, 0.12), 0 2px 8px rgba(15, 42, 33, 0.06);
	width: 100%;
	color: var(--ntp-text);
	font-family: var(--ntp-font-body);
	font-size: 16px;
	line-height: 1.65;
}

.nt-project-page *,
.nt-project-page *::before,
.nt-project-page *::after {
	box-sizing: border-box;
}

/*
 * /projektas/{slug}/ template: lift the theme's boxed .site-main limits
 * (500–1140px wide, 10px side padding) on this page's own <main> only, so
 * the hero can span the screen. Sections keep their width via .ntp-container.
 */
html body .site-main.nt-project-page-main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding-inline-start: 0;
	padding-inline-end: 0;
}

.ntp-container {
	width: 100%;
	max-width: calc(var(--ntp-content-width) + 2 * var(--ntp-gutter));
	margin: 0 auto;
	padding: 0 var(--ntp-gutter);
}

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

.ntp-icon {
	display: block;
	flex: 0 0 auto;
}

/* ------------------------------------------------------------------ */
/* Shared: sections, headings, buttons                                 */
/* ------------------------------------------------------------------ */

.ntp-section {
	padding: var(--ntp-section-space) 0 0;
}

.ntp-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 0 36px;
}

.ntp-section__head .ntp-heading {
	margin-bottom: 0;
}

.nt-project-page .ntp-heading {
	position: relative;
	margin: 0 0 36px;
	padding: 18px 0 0;
	color: var(--ntp-heading);
	font-family: var(--ntp-font-heading);
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: none;
}

/* Short accent rule above every section heading. */
.nt-project-page .ntp-heading::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 3px;
	border-radius: 3px;
	background: var(--ntp-accent);
}

.nt-project-page .ntp-section__meta {
	margin: 0;
	color: var(--ntp-text);
	font-size: 15px;
}

.nt-project-page .ntp-button,
.nt-project-page .ntp-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	margin: 0;
	padding: 12px 26px;
	border: 1px solid var(--ntp-accent);
	border-radius: 999px;
	background: var(--ntp-accent);
	color: var(--ntp-white);
	font-family: var(--ntp-font-heading);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition:
		background-color var(--ntp-duration) var(--ntp-ease),
		border-color var(--ntp-duration) var(--ntp-ease),
		color var(--ntp-duration) var(--ntp-ease);
}

.nt-project-page .ntp-button:hover,
.nt-project-page .ntp-button:focus-visible {
	border-color: var(--ntp-accent-hover);
	background: var(--ntp-accent-hover);
	color: var(--ntp-white);
}

.nt-project-page .ntp-button:focus-visible,
.nt-project-page .ntp-link-button:focus-visible {
	outline: 2px solid var(--ntp-accent);
	outline-offset: 3px;
}

.ntp-button__icon {
	flex: 0 0 auto;
	transition: transform var(--ntp-duration) var(--ntp-ease);
}

.ntp-button:hover .ntp-button__icon,
.ntp-button:focus-visible .ntp-button__icon {
	transform: translateX(3px);
}

.nt-project-page .ntp-button--outline,
.nt-project-page .ntp-button--outline:visited {
	background: var(--ntp-white);
	color: var(--ntp-accent);
}

.nt-project-page .ntp-button--outline:hover,
.nt-project-page .ntp-button--outline:focus-visible {
	border-color: var(--ntp-accent);
	background: var(--ntp-accent-soft);
	color: var(--ntp-accent);
}

.nt-project-page .ntp-button--light,
.nt-project-page .ntp-button--light:visited {
	border-color: var(--ntp-white);
	background: var(--ntp-white);
	color: var(--ntp-accent);
}

.nt-project-page .ntp-button--light:hover,
.nt-project-page .ntp-button--light:focus-visible {
	border-color: var(--ntp-accent-soft);
	background: var(--ntp-accent-soft);
	color: var(--ntp-accent-hover);
}

.nt-project-page .ntp-button--light:focus-visible {
	outline-color: var(--ntp-white);
}

/* Text-style button / link (expand all, all projects). */
.nt-project-page .ntp-link-button,
.nt-project-page .ntp-link-button:visited {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ntp-accent);
	font-family: var(--ntp-font-body);
	font-size: 15px;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
}

.nt-project-page .ntp-link-button:hover {
	background: none;
	color: var(--ntp-accent-hover);
	text-decoration-thickness: 2px;
}

.nt-project-page .ntp-link-button[hidden] {
	display: none;
}

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

.ntp-hero {
	/* Space between the screen edge and the content column, never less than the gutter. */
	--ntp-hero-edge: max(var(--ntp-gutter), calc((100% - var(--ntp-content-width)) / 2));
	padding: 0;
}

.ntp-breadcrumbs {
	padding-top: 24px;
}

.ntp-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	color: var(--ntp-text);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ntp-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.ntp-breadcrumbs li + li::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 1px;
	margin: 0 12px;
	background: currentColor;
	opacity: 0.5;
}

.nt-project-page .ntp-breadcrumbs a,
.nt-project-page .ntp-breadcrumbs a:visited {
	color: inherit;
	text-decoration: none;
	transition: color var(--ntp-duration) var(--ntp-ease);
}

.nt-project-page .ntp-breadcrumbs a:hover,
.nt-project-page .ntp-breadcrumbs a:focus-visible {
	color: var(--ntp-accent);
}

.ntp-breadcrumbs [aria-current] {
	color: var(--ntp-heading);
}

/* Full-width photo; the info card floats over its right side, aligned with the content column. */
.ntp-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--ntp-card-width) var(--ntp-hero-edge);
	align-items: center;
	min-height: var(--ntp-hero-height);
}

.ntp-hero__media {
	position: relative;
	grid-row: 1;
	grid-column: 1 / -1;
	align-self: stretch;
	min-height: var(--ntp-hero-height);
	overflow: hidden;
	border-radius: 0;
	background: var(--ntp-surface);
	isolation: isolate;
}

.nt-project-page .ntp-hero__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: var(--ntp-image-position);
	border: 0;
	border-radius: 0;
}

/* Soft shade on the right keeps the card edge calm on bright photos. */
.ntp-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(270deg, rgba(15, 42, 33, 0.28) 0%, rgba(15, 42, 33, 0) 45%);
	pointer-events: none;
}

.ntp-hero__media .nt-project-card__badge {
	position: absolute;
	top: 24px;
	left: var(--ntp-hero-edge);
	z-index: 1;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.ntp-hero__card {
	position: relative;
	z-index: 1;
	grid-row: 1;
	grid-column: 2;
	margin: 48px 0;
	padding: 36px 36px 32px;
	border-radius: var(--ntp-radius);
	background: var(--ntp-white);
	box-shadow: var(--ntp-shadow);
}

.ntp-hero--no-image .ntp-hero__grid {
	display: block;
	min-height: 0;
	padding-top: 32px;
}

.ntp-hero--no-image .ntp-hero__card {
	max-width: var(--ntp-content-width);
	margin: 0 var(--ntp-hero-edge);
	background: var(--ntp-surface);
	box-shadow: none;
}

.nt-project-page .ntp-eyebrow {
	margin: 0 0 10px;
	color: var(--ntp-accent);
	font-family: var(--ntp-font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.nt-project-page .ntp-hero__title {
	margin: 0;
	padding: 0;
	color: var(--ntp-heading);
	font-family: var(--ntp-font-heading);
	font-size: clamp(32px, 3.4vw, 44px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-transform: none;
	overflow-wrap: anywhere;
}

.nt-project-page .ntp-hero__location {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0 0;
	color: var(--ntp-text);
	font-size: 15px;
	line-height: 1.45;
}

.ntp-hero__location .ntp-icon {
	width: 20px;
	height: 20px;
	color: var(--ntp-accent);
}

.ntp-hero__intro {
	margin: 18px 0 0;
	font-size: 15px;
	line-height: 1.65;
}

.nt-project-page .ntp-hero__intro p {
	margin: 0 0 10px;
}

.nt-project-page .ntp-hero__intro p:last-child {
	margin-bottom: 0;
}

.ntp-hero__action {
	margin: 24px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid var(--ntp-border);
}

.nt-project-page .ntp-hero__price {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 18px;
}

.ntp-hero__price-label {
	color: var(--ntp-text);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nt-project-page .ntp-hero__price-value {
	color: var(--ntp-heading);
	font-family: var(--ntp-font-heading);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.ntp-hero__action .ntp-button {
	width: 100%;
}

.nt-project-page .ntp-hero__timeline {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
	margin: 22px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--ntp-border);
}

.ntp-hero__timeline-item dt {
	margin: 0 0 2px;
	color: var(--ntp-text);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ntp-hero__timeline-item dd {
	margin: 0;
	color: var(--ntp-heading);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

/* Optional, per project: heading above the hero items, icons beside them. */
.nt-project-page .ntp-hero__timeline-title {
	margin: 22px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--ntp-border);
	color: var(--ntp-accent);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nt-project-page .ntp-hero__timeline-title + .ntp-hero__timeline {
	margin-top: 10px;
	padding-top: 0;
	border-top: 0;
}

.ntp-hero__timeline-item--icon {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 8px;
	align-items: start;
}

.ntp-hero__timeline-icon {
	grid-row: 1 / span 2;
	color: var(--ntp-accent);
}

.ntp-hero__timeline-icon .ntp-icon {
	width: 20px;
	height: 20px;
}

/* ------------------------------------------------------------------ */
/* Facts                                                               */
/* ------------------------------------------------------------------ */

/* Optional, per project: visible section headings. */
.nt-project-page .ntp-facts__title,
.nt-project-page .ntp-facts__subtitle {
	margin: 0;
	color: var(--ntp-accent);
	font-family: var(--ntp-font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nt-project-page .ntp-facts__title {
	margin-bottom: 14px;
}

.nt-project-page .ntp-facts__subtitle {
	padding: 18px 28px 0;
	border-top: 1px solid var(--ntp-border);
	background: var(--ntp-surface);
}

.nt-project-page .ntp-facts__subtitle + .ntp-facts__more {
	padding-top: 8px;
	border-top: 0;
}

.ntp-facts__panel > .ntp-facts__subtitle:first-child {
	border-top: 0;
	border-radius: var(--ntp-radius) var(--ntp-radius) 0 0;
}

.ntp-facts__panel > .ntp-facts__subtitle:first-child + .ntp-facts__more {
	border-radius: 0 0 var(--ntp-radius) var(--ntp-radius);
}

.nt-project-page .ntp-fact-more--no-icon {
	grid-template-columns: minmax(0, 1fr);
}

/* Long labels and values wrap instead of overflowing. */
.ntp-fact,
.ntp-fact-more,
.ntp-hero__timeline-item {
	min-width: 0;
	overflow-wrap: anywhere;
}

.ntp-facts {
	padding-top: 40px;
}

.ntp-facts__panel {
	border: 1px solid var(--ntp-border);
	border-radius: var(--ntp-radius);
	background: var(--ntp-white);
}

.nt-project-page .ntp-facts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin: 0;
	padding: 8px;
}

.ntp-fact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 22px 20px;
	border-radius: calc(var(--ntp-radius) - 6px);
}

.ntp-fact__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 0 10px;
	border-radius: 50%;
	background: var(--ntp-accent-soft);
	color: var(--ntp-accent);
}

/* Value reads first, label underneath. */
.nt-project-page .ntp-fact__value {
	order: 1;
	margin: 0;
	color: var(--ntp-heading);
	font-family: var(--ntp-font-heading);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.nt-project-page .ntp-fact__label {
	order: 2;
	margin: 0;
	color: var(--ntp-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.ntp-fact__icon {
	order: 0;
}

.nt-project-page .ntp-facts__more {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 8px 24px;
	margin: 0;
	padding: 20px 28px;
	border-top: 1px solid var(--ntp-border);
	background: var(--ntp-surface);
	border-radius: 0 0 var(--ntp-radius) var(--ntp-radius);
}

.ntp-facts__grid + .ntp-facts__more {
	margin-top: 0;
}

.ntp-facts__panel > .ntp-facts__more:only-child {
	border-top: 0;
	border-radius: var(--ntp-radius);
}

.ntp-fact-more {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: center;
	padding: 6px 0;
}

.ntp-fact-more__icon {
	grid-row: 1 / span 2;
	color: var(--ntp-accent);
}

.nt-project-page .ntp-fact-more dt {
	margin: 0;
	color: var(--ntp-text);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nt-project-page .ntp-fact-more dd {
	margin: 0;
	color: var(--ntp-heading);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

/* ------------------------------------------------------------------ */
/* About                                                               */
/* ------------------------------------------------------------------ */

.ntp-about__content {
	max-width: 820px;
	margin: 0 0 40px;
	font-size: 17px;
}

.ntp-about__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.ntp-about__item {
	position: relative;
	padding: 32px 32px 30px;
	border-radius: var(--ntp-radius);
	background: var(--ntp-surface);
	overflow: hidden;
}

.ntp-about__number {
	display: block;
	margin: 0 0 18px;
	color: var(--ntp-accent);
	font-family: var(--ntp-font-heading);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.ntp-about__number::after {
	content: "";
	display: inline-block;
	width: 28px;
	height: 1px;
	margin: 0 0 4px 12px;
	background: currentColor;
	vertical-align: middle;
	opacity: 0.6;
}

.nt-project-page .ntp-about__title {
	margin: 0 0 12px;
	color: var(--ntp-heading);
	font-family: var(--ntp-font-heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
}

.ntp-about__text {
	font-size: 16px;
	line-height: 1.7;
}

.nt-project-page .ntp-about__text p {
	margin: 0 0 12px;
}

.nt-project-page .ntp-about__text p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Gallery                                                             */
/* ------------------------------------------------------------------ */

/* First photo large (2 × 2), the rest in a 4-column grid of 3:2 tiles; every image is shown whole. */
.nt-project-page .ntp-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ntp-gallery__cell {
	margin: 0;
	padding: 0;
	aspect-ratio: 3 / 2;
}

.ntp-gallery__cell:first-child {
	grid-column: span 2;
	grid-row: span 2;
	aspect-ratio: auto;
}

/* Collapsed (set by JS): only the first tiles are shown. */
.ntp-gallery__grid.is-collapsed .ntp-gallery__cell.is-extra {
	display: none;
}

.nt-project-page .ntp-gallery__item {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: calc(var(--ntp-radius) - 4px);
	background: var(--ntp-surface);
	isolation: isolate;
}

.nt-project-page .ntp-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	/* Never cropped: images of another shape leave neutral space in the tile. No hover zoom, which would clip the edges. */
	object-fit: contain;
	object-position: center;
	border: 0;
	border-radius: 0;
}

/* Plans and portrait images: on white with a small margin. */
.nt-project-page .is-contain .ntp-gallery__image {
	padding: 8px;
	background: var(--ntp-white);
}

.ntp-gallery__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ntp-white);
	color: var(--ntp-accent);
	opacity: 0;
	transform: translateY(4px);
	transition:
		opacity var(--ntp-duration) var(--ntp-ease),
		transform var(--ntp-duration) var(--ntp-ease);
}

.ntp-gallery__item:hover .ntp-gallery__zoom,
.ntp-gallery__item:focus-visible .ntp-gallery__zoom {
	opacity: 1;
	transform: none;
}

.nt-project-page .ntp-gallery__item:focus-visible {
	outline: 2px solid var(--ntp-accent);
	outline-offset: 3px;
}

.nt-project-page .ntp-gallery__more {
	margin: 28px 0 0;
	text-align: center;
}

.ntp-gallery__more[hidden] {
	display: none;
}

/* Lightbox (native <dialog>, built by JS). */
.ntp-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(10, 22, 18, 0.94);
	color: #fff;
	font-family: var(--e-global-typography-text-font-family, "Roboto"), sans-serif;
}

.ntp-lightbox::backdrop {
	background: rgba(10, 22, 18, 0.94);
}

.ntp-lightbox__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 64px 88px 56px;
}

.ntp-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
}

.ntp-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	user-select: none;
}

.ntp-lightbox__caption {
	position: absolute;
	left: 50%;
	bottom: 16px;
	max-width: calc(100% - 32px);
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
	text-align: center;
}

.ntp-lightbox button {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.2s ease;
}

.ntp-lightbox button:hover,
.ntp-lightbox button:focus-visible {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.ntp-lightbox button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ntp-lightbox__close {
	top: 16px;
	right: 16px;
}

.ntp-lightbox__prev {
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
}

.ntp-lightbox__next {
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
}

.ntp-lightbox__counter {
	position: absolute;
	top: 30px;
	left: 24px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
	letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------ */
/* Specifications (accordion)                                          */
/* ------------------------------------------------------------------ */

.ntp-accordion {
	border-top: 1px solid var(--ntp-border);
}

.ntp-accordion__item {
	border-bottom: 1px solid var(--ntp-border);
}

.nt-project-page .ntp-accordion__heading {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
}

/* Full reset – the theme styles plain buttons globally. */
.nt-project-page .ntp-accordion__button {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
	min-height: 84px;
	margin: 0;
	padding: 20px 8px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ntp-heading);
	font-family: var(--ntp-font-heading);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	box-shadow: none;
	transition: color var(--ntp-duration) var(--ntp-ease);
}

.nt-project-page .ntp-accordion__button:hover,
.nt-project-page .ntp-accordion__button:focus {
	background: transparent;
	color: var(--ntp-accent);
}

.nt-project-page .ntp-accordion__button:focus {
	outline: none;
}

.nt-project-page .ntp-accordion__button:focus-visible {
	outline: 2px solid var(--ntp-accent);
	outline-offset: -2px;
	border-radius: 8px;
}

.ntp-accordion__index {
	flex: 0 0 auto;
	color: var(--ntp-accent);
	font-size: 15px;
	letter-spacing: 0.08em;
}

.ntp-accordion__title {
	flex: 1 1 auto;
}

.ntp-accordion__count {
	flex: 0 0 auto;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--ntp-surface);
	color: var(--ntp-text);
	font-family: var(--ntp-font-body);
	font-size: 13px;
	font-weight: 500;
}

.ntp-accordion__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ntp-border);
	border-radius: 50%;
	color: var(--ntp-accent);
	transition:
		transform var(--ntp-duration) var(--ntp-ease),
		background-color var(--ntp-duration) var(--ntp-ease),
		border-color var(--ntp-duration) var(--ntp-ease),
		color var(--ntp-duration) var(--ntp-ease);
}

.ntp-accordion__button[aria-expanded="true"] .ntp-accordion__chevron {
	border-color: var(--ntp-accent);
	background: var(--ntp-accent);
	color: var(--ntp-white);
	transform: rotate(180deg);
}

.ntp-accordion__panel {
	padding: 0 8px 28px 56px;
}

/* hidden="until-found" keeps the box (content-visibility), so drop its padding too. */
.nt-project-page .ntp-accordion__panel[hidden] {
	padding: 0;
}

.nt-project-page .ntp-spec-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ntp-spec-row {
	display: grid;
	grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
	gap: 4px 32px;
	margin: 0;
	padding: 16px 0;
	border-top: 1px solid var(--ntp-border);
	font-size: 16px;
	line-height: 1.65;
}

.ntp-spec-row:first-child {
	border-top: 0;
	padding-top: 4px;
}

.ntp-spec-row--plain {
	grid-template-columns: minmax(0, 1fr);
}

.ntp-spec-row__label {
	color: var(--ntp-heading);
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Benefits                                                            */
/* ------------------------------------------------------------------ */

.nt-project-page .ntp-benefits__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ntp-benefit {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 28px 26px;
	border: 1px solid var(--ntp-border);
	border-radius: var(--ntp-radius);
	background: var(--ntp-white);
	transition:
		border-color var(--ntp-duration) var(--ntp-ease),
		box-shadow var(--ntp-duration) var(--ntp-ease);
}

.ntp-benefit:hover {
	border-color: transparent;
	box-shadow: var(--ntp-shadow);
}

.ntp-benefit__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--ntp-accent-soft);
	color: var(--ntp-accent);
}

.nt-project-page .ntp-benefit__text {
	margin: 0;
	color: var(--ntp-heading);
	font-size: 16px;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* Project broker (optional, per project)                              */
/* ------------------------------------------------------------------ */

/*
 * Portrait settings arrive as inline variables on .ntp-broker__media:
 * --ntb-x / --ntb-y (position, %), --ntb-zoom (1–2) and, only when the
 * project sets a separate phone position, --ntb-mx / --ntb-my.
 */

.ntp-broker__intro {
	max-width: 760px;
	margin: -16px 0 32px;
	font-size: 17px;
	line-height: 1.65;
}

.nt-project-page .ntp-broker__intro p {
	margin: 0 0 10px;
}

.nt-project-page .ntp-broker__intro p:last-child {
	margin-bottom: 0;
}

.ntp-broker__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	overflow: hidden;
	border: 1px solid var(--ntp-border);
	border-radius: var(--ntp-radius);
	background: var(--ntp-white);
}

.ntp-broker__card--no-photo {
	grid-template-columns: minmax(0, 1fr);
}

.ntp-broker__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 48px 52px;
}

.nt-project-page .ntp-broker__name {
	margin: 0;
	padding: 0;
	color: var(--ntp-heading);
	font-family: var(--ntp-font-heading);
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: none;
	overflow-wrap: anywhere;
}

.nt-project-page .ntp-broker__role {
	margin: 8px 0 0;
	color: var(--ntp-text);
	font-size: 16px;
	line-height: 1.5;
}

.nt-project-page .ntp-broker__contacts {
	display: grid;
	gap: 14px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.ntp-broker__contact {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	margin: 0;
}

.ntp-broker__contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ntp-accent-soft);
	color: var(--ntp-accent);
}

.ntp-broker__contact-icon .ntp-icon {
	width: 20px;
	height: 20px;
}

.nt-project-page .ntp-broker__contact a,
.nt-project-page .ntp-broker__contact a:visited {
	min-width: 0;
	color: var(--ntp-heading);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color var(--ntp-duration) var(--ntp-ease);
}

.nt-project-page .ntp-broker__contact a:hover {
	color: var(--ntp-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.nt-project-page .ntp-broker__contact a:focus-visible {
	outline: 2px solid var(--ntp-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.ntp-broker__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.ntp-broker__actions .ntp-icon {
	width: 20px;
	height: 20px;
}

/* Portrait: its own inset frame with a neutral background, never over the text. */
.ntp-broker__media {
	position: relative;
	min-height: 432px;
	margin: 16px 16px 16px 0;
	overflow: hidden;
	border-radius: calc(var(--ntp-radius) - 4px);
	background: var(--ntp-surface);
	isolation: isolate;
}

.nt-project-page .ntp-broker__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	/* Contain: the whole photo, positioned inside the frame. */
	object-fit: contain;
	object-position: var(--ntb-x, 50%) var(--ntb-y, 50%);
	transform: scale(var(--ntb-zoom, 1));
	transform-origin: var(--ntb-x, 50%) var(--ntb-y, 50%);
}

/* Cover: fills the frame; the position is the part of the photo kept in view. */
.nt-project-page .ntp-broker__media--cover .ntp-broker__image {
	object-fit: cover;
}

/* Low-resolution photo: shown at its natural size, never enlarged (zoom ignored). */
.nt-project-page .ntp-broker__media--small .ntp-broker__image {
	inset: auto;
	top: var(--ntb-y, 50%);
	left: var(--ntb-x, 50%);
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	transform: translate(calc(-1 * var(--ntb-x, 50%)), calc(-1 * var(--ntb-y, 50%)));
}

@media (max-width: 1024px) {
	.ntp-broker__card {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.ntp-broker__body {
		padding: 40px 36px;
	}

	.ntp-broker__media {
		min-height: 380px;
	}
}

/* Phones: portrait first, full-width buttons; an optional separate position applies here. */
@media (max-width: 767px) {
	.ntp-broker__intro {
		margin: -12px 0 24px;
		font-size: 16px;
	}

	.ntp-broker__card {
		grid-template-columns: minmax(0, 1fr);
	}

	.ntp-broker__media {
		order: -1;
		min-height: 0;
		aspect-ratio: 1 / 1;
		margin: 12px 12px 0;
	}

	.nt-project-page .ntp-broker__image {
		object-position: var(--ntb-mx, var(--ntb-x, 50%)) var(--ntb-my, var(--ntb-y, 50%));
		transform-origin: var(--ntb-mx, var(--ntb-x, 50%)) var(--ntb-my, var(--ntb-y, 50%));
	}

	.nt-project-page .ntp-broker__media--small .ntp-broker__image {
		top: var(--ntb-my, var(--ntb-y, 50%));
		left: var(--ntb-mx, var(--ntb-x, 50%));
		transform: translate(calc(-1 * var(--ntb-mx, var(--ntb-x, 50%))), calc(-1 * var(--ntb-my, var(--ntb-y, 50%))));
	}

	.ntp-broker__body {
		padding: 24px 22px 26px;
	}

	.nt-project-page .ntp-broker__name {
		font-size: 26px;
	}

	.nt-project-page .ntp-broker__contact a {
		font-size: 16px;
	}

	.ntp-broker__actions {
		flex-direction: column;
		margin-top: 24px;
	}

	.ntp-broker__actions .ntp-button {
		width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Contact call to action                                              */
/* ------------------------------------------------------------------ */

.ntp-cta__panel {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 44px 48px;
	border-radius: var(--ntp-radius);
	background: var(--ntp-accent);
	color: var(--ntp-white);
	background-image: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 55%);
}

.ntp-cta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
}

.ntp-cta__icon .ntp-icon {
	width: 32px;
	height: 32px;
}

.ntp-cta__body {
	flex: 1 1 auto;
}

.nt-project-page .ntp-cta__title {
	margin: 0 0 6px;
	color: var(--ntp-white);
	font-family: var(--ntp-font-heading);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
}

.nt-project-page .ntp-cta__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 16px;
}

.ntp-cta__panel .ntp-button {
	flex: 0 0 auto;
}

/* ------------------------------------------------------------------ */
/* Related projects (cards come from the listing styles)               */
/* ------------------------------------------------------------------ */

.ntp-related .nt-projects__grid {
	gap: 40px 32px;
}

/* Bottom spacing before the footer. */
.nt-project-page > .ntp-section:last-child,
.nt-project-page > .ntp-hero:last-child {
	padding-bottom: var(--ntp-section-space);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.nt-project-page {
		--ntp-section-space: 76px;
		--ntp-card-width: 380px;
		--ntp-hero-height: clamp(420px, 56vh, 540px);
	}

	.ntp-hero__card {
		margin: 32px 0;
		padding: 30px 28px 26px;
	}

	.nt-project-page .ntp-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ntp-gallery__cell:first-child {
		grid-row: auto;
		aspect-ratio: 3 / 2;
	}

	.nt-project-page .ntp-benefits__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ntp-accordion__panel {
		padding-left: 8px;
	}
}

/* Tablet portrait and below: card moves under the photo, overlapping it slightly. */
@media (max-width: 880px) {
	.ntp-hero__grid {
		display: block;
		min-height: 0;
	}

	.ntp-hero__media {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.ntp-hero__media::after {
		content: none;
	}

	.ntp-hero__card {
		margin: -56px var(--ntp-hero-edge) 0;
	}

	.ntp-hero--no-image .ntp-hero__card {
		margin: 0 var(--ntp-hero-edge);
	}
}

@media (max-width: 767px) {
	.nt-project-page {
		--ntp-gutter: 16px;
		--ntp-section-space: 60px;
		--ntp-radius: 14px;
	}

	.ntp-breadcrumbs {
		padding-top: 16px;
	}

	.ntp-breadcrumbs ol {
		margin-bottom: 14px;
		font-size: 12px;
	}

	.ntp-hero__media {
		aspect-ratio: 4 / 3;
	}

	.ntp-hero__media .nt-project-card__badge {
		top: 14px;
	}

	.ntp-hero__card {
		margin-top: -40px;
		padding: 26px 22px 22px;
	}

	.nt-project-page .ntp-hero__price-value {
		font-size: 28px;
	}

	.nt-project-page .ntp-hero__timeline {
		grid-template-columns: minmax(0, 1fr);
	}

	.ntp-facts {
		padding-top: 32px;
	}

	.nt-project-page .ntp-facts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 4px;
	}

	.ntp-fact {
		padding: 18px 14px;
	}

	.ntp-fact__icon {
		width: 40px;
		height: 40px;
		margin-bottom: 8px;
	}

	.nt-project-page .ntp-fact__value {
		font-size: 21px;
	}

	.nt-project-page .ntp-facts__more {
		grid-template-columns: minmax(0, 1fr);
		padding: 16px 18px;
	}

	.nt-project-page .ntp-facts__subtitle {
		padding: 16px 18px 0;
	}

	.nt-project-page .ntp-heading {
		margin-bottom: 28px;
	}

	.ntp-section__head {
		margin-bottom: 28px;
	}

	.ntp-about__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.ntp-about__item {
		padding: 26px 22px 24px;
	}

	.nt-project-page .ntp-gallery__grid {
		gap: 8px;
	}

	.ntp-gallery__cell:first-child {
		grid-column: 1 / -1;
	}

	.ntp-gallery__zoom {
		display: none;
	}

	.nt-project-page .ntp-accordion__button {
		gap: 12px;
		min-height: 72px;
		padding: 18px 0;
		font-size: 18px;
	}

	.ntp-accordion__index {
		display: none;
	}

	.ntp-accordion__count {
		display: none;
	}

	.ntp-accordion__chevron {
		width: 36px;
		height: 36px;
	}

	.ntp-accordion__panel {
		padding: 0 0 20px;
	}

	.ntp-spec-row {
		grid-template-columns: minmax(0, 1fr);
		padding: 14px 0;
		font-size: 15px;
	}

	.nt-project-page .ntp-benefits__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.ntp-benefit {
		flex-direction: row;
		align-items: flex-start;
		padding: 20px;
	}

	.ntp-benefit__icon {
		flex: 0 0 auto;
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}

	.ntp-cta__panel {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
		padding: 32px 24px;
	}

	.ntp-cta__icon {
		width: 56px;
		height: 56px;
	}

	.ntp-cta__panel .ntp-button {
		width: 100%;
	}

	.ntp-lightbox__inner {
		padding: 64px 8px 72px;
	}

	.ntp-lightbox__prev,
	.ntp-lightbox__next {
		top: auto;
		bottom: 12px;
		transform: none;
	}

	.ntp-lightbox__prev {
		left: calc(50% - 64px);
	}

	.ntp-lightbox__next {
		right: calc(50% - 64px);
	}

	.ntp-lightbox__caption {
		bottom: 76px;
	}
}

/* Touch screens: no sticky hover effects after a tap. */
@media (hover: none) {
	.ntp-benefit:hover {
		border-color: var(--ntp-border);
		box-shadow: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nt-project-page *,
	.ntp-lightbox * {
		transition: none !important;
		animation: none !important;
	}

	.ntp-button:hover .ntp-button__icon {
		transform: none;
	}
}
