/* Projects for Houzez — frontend */

.pfh-development {
	--pfh-primary: #16a37b;
	--pfh-dark: #14181f;
	--pfh-text: #33383d;
	--pfh-muted: #6b7280;
	--pfh-border: #e5e7eb;
	--pfh-radius: 6px;
	font-family: inherit;
	color: #33383d;
}

.pfh-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.pfh-btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 30px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.pfh-btn-primary {
	background-color: #16a37b !important;
	border-color: #16a37b !important;
	color: #fff !important;
}

.pfh-btn-primary:hover {
	background-color: #128a68 !important;
	border-color: #128a68 !important;
	color: #fff !important;
	opacity: 1;
}

.pfh-btn-outline {
	background-color: transparent !important;
	border: 2px solid #14181f !important;
	color: #14181f !important;
}

.pfh-btn-outline:hover {
	background-color: #14181f !important;
	border-color: #14181f !important;
	color: #fff !important;
}

.pfh-text-center {
	text-align: center;
}

/* Hero */

.pfh-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	background-color: #14181f;
	background-size: cover;
	background-position: center;
}

.pfh-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( to bottom, rgba( 0, 0, 0, 0.35 ), rgba( 0, 0, 0, 0.55 ) );
}

.pfh-hero-inner {
	position: relative;
	z-index: 1;
	text-align: center;
	color: #fff;
	max-width: 720px;
}

.pfh-hero-title {
	font-size: clamp( 32px, 5vw, 56px );
	margin: 0 0 16px;
	font-weight: 700;
}

.pfh-hero-description {
	font-size: 18px;
	line-height: 1.6;
	margin: 0 auto 28px;
	opacity: 0.92;
}

/* Hero entrance animation — pure CSS, runs on page load automatically.
   Deliberately NOT tied to the JS/IntersectionObserver system the rest of
   the page uses: the hero is always the first thing visible on load (no
   scrolling needed to trigger it), so it doesn't need scroll-detection —
   and keeping it JS-free means it can never be affected by a script
   failing to load, running late, or erroring out elsewhere on the page.

   The opacity:0 "hidden" starting state only ever applies inside the
   @supports guard below, which only matches if the browser can actually
   run the animation that reveals it again — so there's no scenario where
   this animation system leaves real content permanently invisible. */
@supports ( animation-name: pfh-hero-fade-up ) {
	.pfh-hero-anim {
		opacity: 0;
		animation: pfh-hero-fade-up 0.9s cubic-bezier( 0.22, 1, 0.36, 1 ) both;
	}

	.pfh-hero-anim-1 {
		animation-delay: 0.2s;
	}

	.pfh-hero-anim-2 {
		animation-delay: 0.4s;
	}

	.pfh-hero-anim-3 {
		animation-delay: 0.65s;
	}
}

@keyframes pfh-hero-fade-up {
	from {
		opacity: 0;
		transform: translateY( 30px );
	}
	to {
		opacity: 1;
		transform: translateY( 0 );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.pfh-hero-anim {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

.pfh-hero-scroll-arrow {
	display: none;
}

@media ( max-width: 782px ) {
	.pfh-hero-scroll-arrow {
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		align-items: center;
		justify-content: center;
		position: absolute !important;
		left: 50% !important;
		bottom: 24px !important;
		top: auto !important;
		right: auto !important;
		transform: translateX( -50% );
		width: 36px;
		height: 36px;
		min-width: 36px;
		min-height: 36px;
		margin: 0;
		padding: 0;
		border: none !important;
		border-radius: 50% !important;
		background-color: transparent !important;
		box-shadow: none !important;
		color: #fff !important;
		cursor: pointer;
		z-index: 5 !important;
		animation: pfh-hero-arrow-bounce 1.8s ease-in-out infinite;
	}

	.pfh-hero-scroll-arrow svg {
		display: block;
		pointer-events: none;
	}
}

@keyframes pfh-hero-arrow-bounce {
	0%, 100% {
		transform: translateX( -50% ) translateY( 0 );
	}
	50% {
		transform: translateX( -50% ) translateY( 6px );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.pfh-hero-scroll-arrow {
		animation: none;
	}
}

/* Property teaser (3-column, right after hero) */

.pfh-property-teaser {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 3px;
}

.pfh-teaser-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 460px;
	padding: 36px 30px;
	background-color: #14181f;
	background-size: cover;
	background-position: center;
	text-decoration: none;
	overflow: hidden;
}

.pfh-teaser-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( to top, rgba( 0, 0, 0, 0.78 ) 0%, rgba( 0, 0, 0, 0.35 ) 55%, rgba( 0, 0, 0, 0.15 ) 100% );
	transition: background 0.6s ease;
}

/* Slow, subtle Ken-Burns style zoom on the background image as each
   card scrolls into view — same reveal moment as the fade-up text
   (driven by the shared .pfh-animate-in class), so the image and the
   copy settle in together instead of the image looking static. */
.pfh-teaser-card {
	background-size: cover;
}

html.pfh-anim-ready .pfh-teaser-card[data-pfh-animate] {
	background-size: auto;
	transition:
		opacity 1.2s cubic-bezier( 0.25, 0.46, 0.45, 0.94 ),
		transform 1.2s cubic-bezier( 0.25, 0.46, 0.45, 0.94 ),
		background-size 2.4s cubic-bezier( 0.16, 1, 0.3, 1 );
}

html.pfh-anim-ready .pfh-teaser-card[data-pfh-animate].pfh-animate-in {
	background-size: cover;
}

@media ( prefers-reduced-motion: reduce ) {
	html.pfh-anim-ready .pfh-teaser-card[data-pfh-animate] {
		background-size: cover;
		transition: none;
	}
}

.pfh-teaser-content {
	position: relative;
	z-index: 1;
	color: #fff !important;
}

.pfh-teaser-title {
	display: block;
	font-size: 24px;
	font-weight: 700;
	color: #fff !important;
	margin-bottom: 10px;
	line-height: 1.25;
}

.pfh-teaser-excerpt {
	display: block;
	font-size: 14px;
	line-height: 1.6;
	color: rgba( 255, 255, 255, 0.85 ) !important;
	margin-bottom: 16px;
	max-width: 320px;
}

.pfh-teaser-price {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff !important;
}

/* Statistics */

.pfh-statistics {
	padding: 56px 0;
	background: #fff;
}

.pfh-statistics-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 48px;
	text-align: center;
}

.pfh-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 120px;
}

.pfh-stat-icon {
	font-size: 28px;
	margin-bottom: 8px;
	color: #16a37b;
}

.pfh-stat-value {
	font-size: 36px;
	font-weight: 700;
	color: #14181f;
	line-height: 1.1;

	/* Keeps digit width steady while the count-up animation runs
	   (see initCounters() in frontend.js), so the number doesn't
	   wobble/reflow as it counts from 0 up to its real value. */
	font-variant-numeric: tabular-nums;
}

.pfh-stat-label {
	font-size: 13px;
	letter-spacing: 0.08em;
	color: #6b7280;
	margin-top: 6px;
}

/* Content sections (About / Neighbourhood / Amenities / additional blocks) */

.pfh-content-section {
	padding: 72px 0;
}

.pfh-content-section:nth-of-type( even ) {
	background: #f8f9fa;
}

.pfh-content-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.pfh-content-grid.pfh-reverse {
	direction: rtl;
}

.pfh-content-grid.pfh-reverse > * {
	direction: ltr;
}

.pfh-content-images {
	position: relative;
	min-height: 320px;
}

.pfh-content-image-main {
	width: 100%;
	height: 380px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.pfh-content-image-secondary {
	position: absolute;
	width: 45%;
	max-width: 220px;
	height: auto;
	right: -20px;
	bottom: -30px;
	border: 6px solid #fff;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.12 );
}

.pfh-content-image-third {
	position: absolute;
	width: 30%;
	max-width: 140px;
	height: auto;
	left: -16px;
	top: -16px;
	border: 6px solid #fff;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.12 );
}

.pfh-eyebrow {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #16a37b;
	margin-bottom: 10px;
}

.pfh-content-heading {
	font-size: 30px;
	font-weight: 700;
	color: #14181f;
	margin: 0 0 16px;
}

.pfh-content-description {
	font-size: 16px;
	line-height: 1.7;
	color: #33383d;
}

.pfh-full-width-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

.pfh-full-width-image figcaption {
	text-align: center;
	color: #6b7280;
	margin-top: 10px;
	font-size: 14px;
}

.pfh-video-wrap {
	position: relative;
	padding-top: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 6px;
}

.pfh-video-wrap iframe,
.pfh-video-wrap embed,
.pfh-video-wrap object {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.pfh-cta-block {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}

/* Properties */

.pfh-properties {
	padding: 72px 0;
	background: #fff;
}

.pfh-properties-header {
	margin-bottom: 40px;
}

.pfh-properties-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 28px;
}

.pfh-property-card-hidden {
	display: none;
}

.pfh-property-card {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.pfh-property-card:hover {
	box-shadow: 0 12px 28px rgba( 0, 0, 0, 0.08 );
}

.pfh-property-card-image {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #eee;
	overflow: hidden;
}

.pfh-property-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier( 0.16, 1, 0.3, 1 );
}

.pfh-property-card:hover .pfh-property-card-image img {
	transform: scale( 1.06 );
}

@media ( prefers-reduced-motion: reduce ) {
	.pfh-property-card:hover .pfh-property-card-image img {
		transform: none;
	}
}

.pfh-property-card-image-placeholder {
	width: 100%;
	height: 100%;
	background: #e5e7eb;
}

.pfh-property-status-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #16a37b;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
}

.pfh-property-card-body {
	padding: 18px 20px 22px;
}

.pfh-property-card-title {
	font-size: 18px;
	margin: 0 0 6px;
}

.pfh-property-card-title a {
	color: #14181f;
	text-decoration: none;
}

.pfh-property-card-price {
	font-weight: 700;
	color: #16a37b;
	margin-bottom: 10px;
}

.pfh-property-card-meta {
	list-style: none;
	display: flex;
	gap: 14px;
	padding: 0;
	margin: 0 0 10px;
	font-size: 14px;
	color: #6b7280;
}

.pfh-property-card-type {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 14px;
}

.pfh-property-card-btn {
	width: 100%;
	text-align: center;
	padding: 10px 20px;
}

.pfh-load-more-wrap {
	text-align: center;
	margin-top: 36px;
}

/* Gallery */

.pfh-gallery {
	padding: 72px 0;
	background: #f8f9fa;
}

.pfh-gallery-scroll-wrap {
	position: relative;
}

.pfh-gallery-scroll {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
}

.pfh-gallery-scroll::-webkit-scrollbar {
	height: 8px;
}

.pfh-gallery-scroll::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 4px;
}

.pfh-gallery-bento {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: min( 640px, 82vw );
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	grid-template-rows: repeat( 2, 1fr );
	gap: 12px;
	height: 420px;
}

.pfh-gallery-tile-0 {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.pfh-gallery-tile-1 {
	grid-column: 2;
	grid-row: 1;
}

.pfh-gallery-tile-2 {
	grid-column: 2;
	grid-row: 2;
}

.pfh-gallery-item {
	position: relative;
	display: block;
	border-radius: 6px;
	overflow: hidden;
}

.pfh-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.pfh-gallery-item:hover img {
	transform: scale( 1.05 );
}

.pfh-gallery-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 8px 10px;
	background: linear-gradient( to top, rgba( 0, 0, 0, 0.6 ), transparent );
	color: #fff !important;
	font-size: 13px;
}

.pfh-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #e5e7eb;
	background-color: #fff !important;
	color: #14181f !important;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	box-shadow: 0 6px 16px rgba( 0, 0, 0, 0.12 );
	display: flex;
	align-items: center;
	justify-content: center;
}

.pfh-gallery-arrow-prev {
	left: -18px;
}

.pfh-gallery-arrow-next {
	right: -18px;
}

.pfh-gallery-arrow:hover {
	background-color: #14181f !important;
	color: #fff !important;
}

/* Contact form */

.pfh-contact-form-section {
	padding: 72px 0;
	background-color: #14181f !important;
	color: #fff !important;
}

.pfh-contact-form-section .pfh-content-heading {
	color: #fff !important;
}

.pfh-contact-form-section .pfh-content-description {
	color: rgba( 255, 255, 255, 0.75 ) !important;
}

.pfh-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 56px;
	align-items: start;
}

.pfh-form-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pfh-form-row {
	margin-bottom: 16px;
}

.pfh-form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	color: rgba( 255, 255, 255, 0.9 ) !important;
	font-weight: 600;
}

.pfh-form-row input[type="text"],
.pfh-form-row input[type="email"],
.pfh-form-row input[type="tel"],
.pfh-form-row input[type="number"],
.pfh-form-row input[type="date"],
.pfh-form-row select,
.pfh-form-row textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 4px;
	border: 1px solid #d1d5db;
	background: #fff !important;
	color: #14181f !important;
	font-size: 15px;
}

.pfh-form-row input::placeholder,
.pfh-form-row textarea::placeholder {
	color: #9ca3af;
}

.pfh-form-choice-group {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.pfh-form-choice {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: rgba( 255, 255, 255, 0.9 ) !important;
}

.pfh-form-submit {
	width: 100%;
	margin-top: 8px;
	background-color: #16a37b !important;
	color: #fff !important;
	border-color: #16a37b !important;
}

.pfh-form-message {
	display: none;
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 4px;
	font-size: 14px;
}

.pfh-form-message:empty {
	display: none;
}

.pfh-form-message-success {
	display: block;
	background: rgba( 22, 163, 123, 0.15 );
	border: 1px solid #16a37b;
	color: #fff;
}

.pfh-form-message-error {
	display: block;
	background: rgba( 220, 38, 38, 0.15 );
	border: 1px solid #dc2626;
	color: #fff;
}

/* Responsive */

@media ( max-width: 1024px ) {
	.pfh-properties-grid {
		grid-template-columns: repeat( 2, 1fr );
	}

	.pfh-gallery-bento {
		width: min( 520px, 82vw );
		height: 360px;
	}

	.pfh-teaser-card {
		min-height: 380px;
	}
}

@media ( max-width: 782px ) {
	.pfh-content-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pfh-content-grid.pfh-reverse {
		direction: ltr;
	}

	.pfh-content-image-secondary,
	.pfh-content-image-third {
		display: none;
	}

	.pfh-statistics-grid {
		gap: 28px;
	}

	.pfh-properties-grid {
		grid-template-columns: 1fr;
	}

	.pfh-gallery-bento {
		width: 88vw;
		height: 320px;
		grid-template-columns: 1fr;
		grid-template-rows: 1.2fr 1fr 1fr;
	}

	.pfh-gallery-tile-0 {
		grid-column: 1;
		grid-row: 1;
	}

	.pfh-gallery-tile-1 {
		grid-column: 1;
		grid-row: 2;
	}

	.pfh-gallery-tile-2 {
		grid-column: 1;
		grid-row: 3;
	}

	.pfh-gallery-arrow {
		display: none;
	}

	.pfh-property-teaser {
		grid-template-columns: 1fr;
	}

	/* Full-screen stacked "story" panels on mobile — each floor plan
	   takes the full viewport height and the copy sits toward the top,
	   so scrolling reveals one panel at a time rather than a short,
	   bottom-heavy card. */
	.pfh-teaser-card {
		align-items: flex-start;
		min-height: 55vh;
		min-height: 55dvh;
		padding: 60px 28px 40px;
	}

	.pfh-teaser-card .pfh-teaser-overlay {
		background: linear-gradient( to bottom, rgba( 0, 0, 0, 0.72 ) 0%, rgba( 0, 0, 0, 0.4 ) 40%, rgba( 0, 0, 0, 0.05 ) 68% );
	}

	.pfh-teaser-excerpt {
		max-width: 420px;
	}

	.pfh-contact-grid {
		grid-template-columns: 1fr;
	}
}

/* Entrance animations.
   Hidden-until-revealed state only applies once JS has confirmed it's
   running (html.pfh-anim-ready, set at the very start of frontend.js).
   If JS fails to load or errors out for any reason, [data-pfh-animate]
   elements are never hidden in the first place — content stays fully
   visible, it just won't animate in. This is deliberate: a broken
   animation script must never be able to make real content disappear. */

/* Entrance animations.
   Hidden-until-revealed state only applies once JS has confirmed it's
   running (html.pfh-anim-ready, set at the very start of frontend.js).
   If JS fails to load or errors out for any reason, [data-pfh-animate]
   elements are never hidden in the first place — content stays fully
   visible, it just won't animate in. This is deliberate: a broken
   animation script must never be able to make real content disappear.

   Single fade-up treatment everywhere (matching the animate.css
   "fadeInUp" curve/timing Houzez's own Elementor-built demos use, rather
   than mixed slide directions) so it reads as one consistent animation
   style across the page instead of several different-feeling ones. */
/* =========================================
   PFH — COMPLETE SECTION ENTRANCE ANIMATION
   ========================================= */

/*
 * Nothing is hidden until JavaScript confirms
 * that the animation system is running.
 */
html.pfh-anim-ready [data-pfh-animate] {
    opacity: 0;
    transform: translate3d(0, 35px, 0);

    transition:
        opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    will-change: opacity, transform;
}


/*
 * COMPLETE SECTION REVEALED
 */
html.pfh-anim-ready [data-pfh-animate].pfh-animate-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}


/*
 * Slightly slower image transition if an image
 * is inside an animated section.
 *
 * This does NOT create a separate animation.
 * It simply prevents image rendering from looking
 * abrupt while the entire section moves.
 */
html.pfh-anim-ready [data-pfh-animate] img {
    backface-visibility: hidden;
}


/*
 * Reduced motion accessibility.
 */
@media (prefers-reduced-motion: reduce) {

    html.pfh-anim-ready [data-pfh-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto;
    }
}

html.pfh-anim-ready [data-pfh-animate].pfh-animate-in {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   TEXT STAGGER
========================================= */

html.pfh-anim-ready
[data-pfh-animate]
.pfh-eyebrow,

html.pfh-anim-ready
[data-pfh-animate]
.pfh-content-heading,

html.pfh-anim-ready
[data-pfh-animate]
.pfh-content-description,

html.pfh-anim-ready
[data-pfh-animate]
.pfh-btn {
    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}


/* Eyebrow */

html.pfh-anim-ready
[data-pfh-animate].pfh-animate-in
.pfh-eyebrow {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.10s;
}


/* Heading */

html.pfh-anim-ready
[data-pfh-animate].pfh-animate-in
.pfh-content-heading {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.20s;
}


/* Description */

html.pfh-anim-ready
[data-pfh-animate].pfh-animate-in
.pfh-content-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.30s;
}


/* Button */

html.pfh-anim-ready
[data-pfh-animate].pfh-animate-in
.pfh-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.40s;
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    html.pfh-anim-ready [data-pfh-animate],
    html.pfh-anim-ready
    [data-pfh-animate]
    .pfh-eyebrow,

    html.pfh-anim-ready
    [data-pfh-animate]
    .pfh-content-heading,

    html.pfh-anim-ready
    [data-pfh-animate]
    .pfh-content-description,

    html.pfh-anim-ready
    [data-pfh-animate]
    .pfh-btn {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}