/* ==========================================================================
   Arock Construction — Portfolio detail pages

   Loaded last in <head> so it wins on cascade order. Namespaced .arock-pd-*
   so nothing here can reach the theme's own single-portfolio template, which
   the older demo detail pages still use.
   ========================================================================== */

.arock-pd-hero,
.arock-pd-body {
	--pd-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--pd-accent: #FFB214;
	--pd-ink: #0C0C0C;
	--pd-muted: #6A6A6A;
	--pd-hairline: rgba(0, 0, 0, 0.12);
	--pd-surface: #F6F4F0;
}

/* Loading/error state for the live-fetched detail pages (arock-project-view.js,
   arock-portfolio-view.js). Shared with arock-projects.css / arock-portfolio.css
   / arock-sales.css, which define the same rule for the listing pages. */
.arock-pj-status {
	margin: 0;
	padding: 60px 20px;
	text-align: center;
	font-size: 0.95rem;
	color: var(--pd-muted, #6A6A6A);
}

.arock-pj-status a {
	color: inherit;
	text-decoration: underline;
}

/* Pre-existing site bug, not new: the theme's "floating transparent header"
   mode (is-header-float.is-header-small) only pulls its own Elementor
   content up underneath the header via `.site-header + .site-main` /
   `.site-header ~ .elementor` (main67b1.css, ~line 1882). .arock-pd-hero
   isn't Elementor content, so it never got that treatment — the header sat
   in normal flow ABOVE it instead of overlapping it, on a plain white page
   background the header's white nav text is invisible against (every
   projects/<slug> and portfolio/<slug> detail page, including the new
   projects/view and portfolio/view). Every other nav item disappeared;
   only the current page's item stayed visible because that one has an
   always-on dark pill behind it regardless. Mirrors main67b1.css's own
   rules so this only fires under the same header configuration.
   ========================================================================== */
.is-header-float.is-header-small:not(.is-menu-toggled-on) .site-header ~ .arock-pd-hero,
.is-header-float.is-header-small:not(.is-menu-toggled-on) .site-header ~ #arock-pd-hero-mount {
	margin-top: -68px;
}
.is-header-float.is-menu-toggled-on .site-header ~ .arock-pd-hero,
.is-header-float.is-menu-toggled-on .site-header ~ #arock-pd-hero-mount {
	margin-top: 0 !important;
}
.is-MS.is-header-float .site-header ~ .arock-pd-hero,
.is-MS.is-header-float .site-header ~ #arock-pd-hero-mount {
	display: inline-block;
	width: 100%;
}


/* --------------------------------------------------------------------------
   1. Hero
   Full-bleed photograph with the name, one-liner and headline numbers over it.
   -------------------------------------------------------------------------- */

.arock-pd-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 64vh;
	overflow: hidden;
	background-color: #101010;
}

.arock-pd-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.arock-pd-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(6, 6, 6, 0.92) 0%,
		rgba(6, 6, 6, 0.70) 32%,
		rgba(6, 6, 6, 0.28) 60%,
		rgba(6, 6, 6, 0.34) 100%
	);
}

/* The copy sits inside the theme's own .layout-medium, so it lines up with the
   content below at every breakpoint rather than against a guessed max-width. */
.arock-pd-hero__inner {
	position: relative;
	width: 100%;
	padding-bottom: 58px;
}

.arock-pd-crumbs {
	margin-bottom: 22px;
	font-family: 'Plus Jakarta Sans', 'Jost', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
}

.arock-pd-crumbs a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 300ms var(--pd-ease), border-color 300ms var(--pd-ease);
}

.arock-pd-crumbs a:hover {
	color: var(--pd-accent);
	border-bottom-color: var(--pd-accent);
}

.arock-pd-crumbs span {
	margin: 0 9px;
}

.arock-pd-crumbs [aria-current] {
	margin-right: 0;
	color: #ffffff;
}

.arock-pd-hero__title {
	margin: 0;
	font-family: var(--arock-display-font, 'Plus Jakarta Sans', 'Urbanist', sans-serif);
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.arock-pd-hero__tagline {
	max-width: 36em;
	margin: 16px 0 0;
	font-family: 'Plus Jakarta Sans', 'Jost', sans-serif;
	font-size: 17.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
}

.arock-pd-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.arock-pd-hero__chips li {
	margin: 0;
	padding: 9px 17px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 999px;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: #ffffff;
	backdrop-filter: blur(2px);
}

.arock-pd-hero__chips li::before {
	content: none; /* theme bullets */
}


/* --------------------------------------------------------------------------
   2. Section furniture
   -------------------------------------------------------------------------- */

.arock-pd-body {
	padding: 74px 0 20px;
}

.arock-pd-section {
	margin: 0 0 74px;
}

.arock-pd-h2 {
	position: relative;
	margin: 0 0 30px;
	padding-top: 20px;
	border-top: 1px solid var(--pd-hairline);
	font-family: 'Urbanist', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pd-ink);
}

.arock-pd-h2::after {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 46px;
	height: 2px;
	background-color: var(--pd-accent);
}


/* --------------------------------------------------------------------------
   3. Gallery
   The lead frame spans the full width; the rest sit three-up beneath it.
   Without JavaScript each frame is still a plain link to the full-size photo.
   -------------------------------------------------------------------------- */

/* Four across, so the eight interior frames fill two complete rows under the
   full-width lead shot instead of leaving a hole in the last row. */
.arock-pd-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.arock-pd-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background-color: #141414;
	aspect-ratio: 3 / 2;
}

.arock-pd-gallery__item--lead {
	grid-column: 1 / -1;
	aspect-ratio: 16 / 9;
}

.arock-pd-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 620ms var(--pd-ease), opacity 300ms var(--pd-ease);
}

.arock-pd-gallery__item:hover img,
.arock-pd-gallery__item:focus-visible img {
	transform: scale(1.05);
	opacity: 0.9;
}

.arock-pd-gallery__item:focus-visible {
	outline: 2px solid var(--pd-accent);
	outline-offset: 3px;
}

/* Zoom affordance, so the frames read as openable rather than decorative. */
.arock-pd-gallery__item::after {
	content: "";
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	opacity: 0;
	background-color: rgba(12, 12, 12, 0.62);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.4'%3E%3Ccircle cx='6' cy='6' r='4.4'/%3E%3Cpath d='M9.3 9.3 13 13M6 4v4M4 6h4'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	transition: opacity 300ms var(--pd-ease);
}

.arock-pd-gallery__item:hover::after,
.arock-pd-gallery__item:focus-visible::after {
	opacity: 1;
}


/* --------------------------------------------------------------------------
   4. Description + highlights
   -------------------------------------------------------------------------- */

.arock-pd-columns {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 30px 56px;
}

.arock-pd-prose p {
	margin: 0 0 18px;
	font-family: 'Plus Jakarta Sans', 'Jost', sans-serif;
	font-size: 15.5px;
	line-height: 1.7;
	color: #2C2C2C;
}

.arock-pd-prose p:last-child {
	margin-bottom: 0;
}

.arock-pd-highlights {
	margin: 0;
	padding: 0;
	list-style: none;
}

.arock-pd-highlights li {
	position: relative;
	margin: 0;
	padding: 15px 0 15px 30px;
	border-bottom: 1px solid var(--pd-hairline);
	font-family: 'Plus Jakarta Sans', 'Jost', sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: #2C2C2C;
}

.arock-pd-highlights li:first-child {
	padding-top: 0;
}

.arock-pd-highlights li:first-child::before {
	top: 7px;
}

.arock-pd-highlights li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.arock-pd-highlights li::before {
	content: "";
	position: absolute;
	top: 22px;
	left: 0;
	width: 14px;
	height: 2px;
	background-color: var(--pd-accent);
}


/* --------------------------------------------------------------------------
   5. Features & specifications
   -------------------------------------------------------------------------- */

.arock-pd-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	padding: 1px;
	background-color: var(--pd-hairline);
}

.arock-pd-specs__row {
	padding: 22px 24px;
	background-color: var(--pd-surface);
}

.arock-pd-specs dt {
	margin: 0;
	font-family: 'Plus Jakarta Sans', 'Jost', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pd-muted);
}

/* The theme puts padding-bottom on every dd, which left ~30px of dead space
   in each cell. */
.arock-pd-specs dd {
	margin: 7px 0 0;
	padding: 0;
	font-family: 'Plus Jakarta Sans', 'Urbanist', sans-serif;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pd-ink);
}


/* --------------------------------------------------------------------------
   6. Floor plan
   -------------------------------------------------------------------------- */

.arock-pd-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 26px;
}

.arock-pd-plan {
	margin: 0;
}

/* A single-storey home has one plan, and stretched across the full content
   width it reads as a diagram blown up to fill space. */
.arock-pd-plan:only-child {
	max-width: 620px;
}

.arock-pd-plan a {
	display: block;
	padding: 22px;
	border: 1px solid var(--pd-hairline);
	border-radius: 4px;
	background-color: #ffffff;
	transition: border-color 300ms var(--pd-ease), box-shadow 300ms var(--pd-ease);
}

.arock-pd-plan a:hover,
.arock-pd-plan a:focus-visible {
	border-color: var(--pd-accent);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.arock-pd-plan img {
	display: block;
	width: 100%;
	height: auto;
}

.arock-pd-plan figcaption {
	margin-top: 14px;
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pd-ink);
}

.arock-pd-plan-note {
	margin: 22px 0 0;
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: var(--pd-muted);
}


/* --------------------------------------------------------------------------
   7. Enquire
   -------------------------------------------------------------------------- */

.arock-pd-enquire {
	margin: 0 0 10px;
	padding: 52px 48px;
	border-radius: 6px;
	background-color: var(--pd-ink);
}

.arock-pd-enquire h2 {
	margin: 0;
	font-family: 'Urbanist', sans-serif;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.arock-pd-enquire p {
	max-width: 46em;
	margin: 16px 0 0;
	font-family: 'Jost', sans-serif;
	font-size: 15px;
	line-height: 1.62;
	color: rgba(255, 255, 255, 0.74);
}

.arock-pd-enquire__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 26px;
	margin-top: 32px;
}

.arock-pd-enquire__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 999px;
	background-color: var(--pd-accent);
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pd-ink);
	text-decoration: none;
	transition: background-color 300ms var(--pd-ease), color 300ms var(--pd-ease);
}

.arock-pd-enquire__btn:hover,
.arock-pd-enquire__btn:focus-visible {
	background-color: #ffffff;
	color: var(--pd-ink);
}

.arock-pd-enquire__btn svg {
	display: block;
	flex: none;
	transition: transform 300ms var(--pd-ease);
}

.arock-pd-enquire__btn svg path {
	fill: currentColor;
}

.arock-pd-enquire__btn:hover svg {
	transform: translateX(4px);
}

.arock-pd-enquire__back {
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.76);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.34);
	transition: color 300ms var(--pd-ease), border-color 300ms var(--pd-ease);
}

.arock-pd-enquire__back:hover,
.arock-pd-enquire__back:focus-visible {
	color: var(--pd-accent);
	border-bottom-color: var(--pd-accent);
}


/* --------------------------------------------------------------------------
   8. Lightbox
   Built by the inline script at the foot of each detail page. It is inert and
   display:none until the script promotes it, so a no-JS visitor never sees it.
   -------------------------------------------------------------------------- */

.arock-pd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 28px;
	background-color: rgba(6, 6, 6, 0.975);
	opacity: 0;
	transition: opacity 260ms var(--pd-ease);
}

.arock-pd-lightbox.is-open {
	display: flex;
}

.arock-pd-lightbox.is-visible {
	opacity: 1;
}

.arock-pd-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
}

.arock-pd-lightbox__img {
	max-width: min(1240px, 100%);
	max-height: calc(100vh - 132px);
	object-fit: contain;
	border-radius: 3px;
}

.arock-pd-lightbox__caption {
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.76);
	text-align: center;
}

.arock-pd-lightbox__count {
	margin-left: 12px;
	color: rgba(255, 255, 255, 0.46);
}

.arock-pd-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: transparent;
	color: #ffffff;
	font-family: 'Jost', sans-serif;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 260ms var(--pd-ease), border-color 260ms var(--pd-ease),
		color 260ms var(--pd-ease);
}

.arock-pd-lightbox button:hover,
.arock-pd-lightbox button:focus-visible {
	background-color: var(--pd-accent);
	border-color: var(--pd-accent);
	color: var(--pd-ink);
}

.arock-pd-lightbox__close { top: 22px; right: 22px; }
.arock-pd-lightbox__prev  { left: 22px;  top: 50%; transform: translateY(-50%); }
.arock-pd-lightbox__next  { right: 22px; top: 50%; transform: translateY(-50%); }


/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.arock-pd-hero {
		min-height: 56vh;
	}

	.arock-pd-columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
	}

	.arock-pd-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.arock-pd-specs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Nine specs over two columns leaves the last one alone; span it so the
	   grid never shows an empty cell. */
	.arock-pd-specs__row:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.arock-pd-section {
		margin-bottom: 60px;
	}
}

@media (max-width: 767px) {
	.arock-pd-body {
		padding-top: 54px;
	}

	.arock-pd-hero__inner {
		padding-bottom: 40px;
	}

	.arock-pd-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.arock-pd-gallery__item--lead {
		aspect-ratio: 3 / 2;
	}

	.arock-pd-specs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.arock-pd-specs__row {
		padding: 18px 16px;
	}

	/* Nine specs over two columns leaves the last one alone; span it so the
	   grid never shows an empty cell. */
	.arock-pd-specs__row:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}


	.arock-pd-specs dd {
		font-size: 14.5px;
	}

	.arock-pd-enquire {
		padding: 38px 26px;
	}

	.arock-pd-lightbox {
		padding: 16px;
	}

	.arock-pd-lightbox__prev { left: 12px; }
	.arock-pd-lightbox__next { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.arock-pd-gallery__item img,
	.arock-pd-lightbox,
	.arock-pd-enquire__btn svg {
		transition-duration: 1ms;
	}

	.arock-pd-gallery__item:hover img {
		transform: none;
	}
}
