/**
 * =========================================================
 * Z RESIDENCES – PHASE II
 * Custom Theme Styles
 * =========================================================
 *
 * @package Z_Residences
 *
 * Tailwind CSS handles the majority of layout and utility
 * styling. This file contains theme-specific styles that
 * should not be repeated throughout template files.
 */


/* =========================================================
   1. ROOT VARIABLES
========================================================= */

:root {

	/* Brand */

	--zr-gold: #d4af37;
	--zr-gold-light: #e4c766;
	--zr-gold-dark: #a98a20;

	/* Dark palette */

	--zr-midnight: #020617;
	--zr-slate: #0f172a;

	/* Neutral */

	--zr-white: #ffffff;
	--zr-off-white: #f8fafc;
	--zr-gray: #64748b;

	/* Typography */

	--zr-font-serif: "Playfair Display", Georgia, serif;
	--zr-font-sans: "Montserrat", Arial, sans-serif;

	/* Transitions */

	--zr-transition-fast: 200ms ease;
	--zr-transition: 300ms ease;
	--zr-transition-slow: 600ms ease;

	/* Shadows */

	--zr-shadow-gold:
		0 20px 60px rgba(212, 175, 55, 0.12);

	--zr-shadow-dark:
		0 25px 70px rgba(2, 6, 23, 0.15);

}


/* =========================================================
   2. GLOBAL RESET / BASE
========================================================= */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body {
	margin: 0;
	padding: 0;

	background: var(--zr-white);
	color: var(--zr-slate);

	font-family: var(--zr-font-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body.modal-open {
	overflow: hidden;
}

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

img {
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
	text-decoration: none;
}


/* =========================================================
   3. TYPOGRAPHY
========================================================= */

.font-serif,
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--zr-font-serif);
}

.font-sans {
	font-family: var(--zr-font-sans);
}

::selection {
	background: var(--zr-gold);
	color: var(--zr-midnight);
}


/* =========================================================
   4. CUSTOM SCROLLBAR
========================================================= */

html {
	scrollbar-width: thin;
	scrollbar-color: var(--zr-gold) var(--zr-midnight);
}

::-webkit-scrollbar {
	width: 7px;
	height: 7px;
}

::-webkit-scrollbar-track {
	background: var(--zr-midnight);
}

::-webkit-scrollbar-thumb {
	background: var(--zr-gold);
	border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--zr-gold-light);
}


/* =========================================================
   5. GOLD UTILITIES
========================================================= */

.zr-gold {
	color: var(--zr-gold);
}

.zr-bg-gold {
	background-color: var(--zr-gold);
}

.zr-border-gold {
	border-color: var(--zr-gold);
}

.zr-gold-gradient {
	background:
		linear-gradient(
			135deg,
			#c19a2b 0%,
			#e4c766 45%,
			#b18a21 100%
		);
}

.zr-gold-text {
	background:
		linear-gradient(
			120deg,
			#b18a21,
			#e4c766,
			#c19a2b
		);

	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}


/* =========================================================
   6. NAVIGATION
========================================================= */

.zr-navigation {
	transition:
		background-color var(--zr-transition),
		box-shadow var(--zr-transition),
		backdrop-filter var(--zr-transition),
		border-color var(--zr-transition);
}

.zr-navigation.is-scrolled {
	background: rgba(2, 6, 23, 0.96);
	border-bottom-color: rgba(255, 255, 255, 0.08);
	box-shadow:
		0 10px 40px rgba(0, 0, 0, 0.18);

	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.zr-navigation-link {
	position: relative;
	transition:
		color var(--zr-transition);
}

.zr-navigation-link::after {
	content: "";

	position: absolute;
	left: 0;
	right: 100%;
	bottom: -7px;

	height: 1px;

	background: var(--zr-gold);

	transition:
		right var(--zr-transition);
}

.zr-navigation-link:hover::after,
.zr-navigation-link:focus-visible::after {
	right: 0;
}

.zr-navigation-link:hover {
	color: var(--zr-gold);
}


/* =========================================================
   7. LOGO
========================================================= */

.zr-logo {
	font-family: var(--zr-font-serif);
	letter-spacing: 0.08em;
	line-height: 1;
}

.zr-logo-subtitle {
	font-family: var(--zr-font-sans);
	font-size: 7px;
	font-weight: 600;
	letter-spacing: 0.35em;
	text-transform: uppercase;
}


/* =========================================================
   8. PREMIUM BUTTONS
========================================================= */

.zr-button {
	position: relative;
	overflow: hidden;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 0.75rem;

	border: 1px solid var(--zr-gold);

	font-family: var(--zr-font-sans);
	font-size: 10px;
	font-weight: 700;

	letter-spacing: 0.18em;
	text-transform: uppercase;

	transition:
		transform var(--zr-transition),
		box-shadow var(--zr-transition),
		background-color var(--zr-transition),
		color var(--zr-transition);
}

.zr-button:hover {
	transform: translateY(-1px);
	box-shadow: var(--zr-shadow-gold);
}

.zr-button:active {
	transform: translateY(0);
}

.zr-button::before {
	content: "";

	position: absolute;
	inset: 0;

	background: rgba(255, 255, 255, 0.12);

	transform: translateX(-110%);

	transition: transform 500ms ease;
}

.zr-button:hover::before {
	transform: translateX(110%);
}

.zr-button > * {
	position: relative;
	z-index: 1;
}


/* =========================================================
   9. GOLD DIVIDER
========================================================= */

.zr-divider {
	display: block;

	width: 48px;
	height: 1px;

	background: var(--zr-gold);

	transition:
		width var(--zr-transition);
}

.zr-divider:hover {
	width: 72px;
}


/* =========================================================
   10. HERO
========================================================= */

.zr-hero {
	position: relative;
	overflow: hidden;
}

.zr-hero-image {
	transition:
		transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.zr-hero:hover .zr-hero-image {
	transform: scale(1.025);
}

.zr-hero-overlay {
	background:
		linear-gradient(
			90deg,
			rgba(2, 6, 23, 0.88) 0%,
			rgba(2, 6, 23, 0.58) 48%,
			rgba(2, 6, 23, 0.22) 100%
	);
}


/* =========================================================
   11. SECTION EYEBROWS
========================================================= */

.zr-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 1rem;

	font-family: var(--zr-font-sans);
	font-size: 9px;
	font-weight: 700;

	letter-spacing: 0.28em;
	text-transform: uppercase;

	color: var(--zr-gold);
}

.zr-eyebrow::before {
	content: "";

	display: block;

	width: 40px;
	height: 1px;

	background: var(--zr-gold);
}


/* =========================================================
   12. CONFIGURATION CARDS
========================================================= */

.zr-configuration-card {
	position: relative;

	transition:
		transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 500ms ease,
		border-color 300ms ease;
}

.zr-configuration-card:hover {
	transform: translateY(-6px);

	box-shadow:
		0 30px 80px rgba(2, 6, 23, 0.12);
}

.zr-configuration-card-image {
	overflow: hidden;
}

.zr-configuration-card-image img {
	transition:
		transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.zr-configuration-card:hover
.zr-configuration-card-image img {
	transform: scale(1.06);
}


/* =========================================================
   13. AMENITY CARDS
========================================================= */

.zr-amenity-card {
	position: relative;

	transition:
		background-color var(--zr-transition),
		transform var(--zr-transition);
}

.zr-amenity-card::after {
	content: "";

	position: absolute;

	left: 0;
	bottom: 0;

	width: 0;
	height: 1px;

	background: var(--zr-gold);

	transition:
		width var(--zr-transition);
}

.zr-amenity-card:hover::after {
	width: 100%;
}

.zr-amenity-card:hover {
	background-color: rgba(255, 255, 255, 0.025);
}

.zr-amenity-icon {
	transition:
		transform var(--zr-transition),
		background-color var(--zr-transition),
		color var(--zr-transition),
		border-color var(--zr-transition);
}

.zr-amenity-card:hover .zr-amenity-icon {
	transform: translateY(-2px);

	border-color: var(--zr-gold);

	background: var(--zr-gold);

	color: var(--zr-midnight);
}


/* =========================================================
   14. GALLERY
========================================================= */

.zr-gallery-item {
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.zr-gallery-item img {
	transition:
		transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
		filter 500ms ease;
}

.zr-gallery-item:hover img {
	transform: scale(1.07);
	filter: brightness(0.82);
}

.zr-gallery-overlay {
	position: absolute;
	inset: 0;

	background:
		linear-gradient(
			to top,
			rgba(2, 6, 23, 0.9),
			rgba(2, 6, 23, 0.1) 65%,
			transparent
		);

	opacity: 0.85;

	transition:
		opacity var(--zr-transition);
}

.zr-gallery-item:hover
.zr-gallery-overlay {
	opacity: 1;
}


/* =========================================================
   15. GALLERY LIGHTBOX
========================================================= */

.zr-lightbox {
	position: fixed;
	inset: 0;

	z-index: 99999;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 1.5rem;

	background: rgba(2, 6, 23, 0.96);

	opacity: 0;
	visibility: hidden;

	transition:
		opacity 300ms ease,
		visibility 300ms ease;
}

.zr-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.zr-lightbox-image {
	max-height: 85vh;
	max-width: 90vw;

	object-fit: contain;

	box-shadow:
		0 30px 100px rgba(0, 0, 0, 0.5);

	transform: scale(0.96);

	transition:
		transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.zr-lightbox.is-open
.zr-lightbox-image {
	transform: scale(1);
}

.zr-lightbox-close,
.zr-lightbox-prev,
.zr-lightbox-next {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;

	border: 1px solid rgba(255, 255, 255, 0.2);

	background: rgba(2, 6, 23, 0.65);

	color: #fff;

	cursor: pointer;

	transition:
		background-color var(--zr-transition),
		border-color var(--zr-transition),
		color var(--zr-transition);
}

.zr-lightbox-close:hover,
.zr-lightbox-prev:hover,
.zr-lightbox-next:hover {
	border-color: var(--zr-gold);
	background: var(--zr-gold);
	color: var(--zr-midnight);
}


/* =========================================================
   16. LEAD MODAL
========================================================= */

.zr-modal {
	position: fixed;
	inset: 0;

	z-index: 99990;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 1rem;

	background: rgba(0, 0, 0, 0.72);

	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);

	opacity: 0;
	visibility: hidden;

	transition:
		opacity 300ms ease,
		visibility 300ms ease;
}

.zr-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.zr-modal-panel {
	position: relative;

	width: 100%;
	max-width: 560px;

	max-height: calc(100vh - 2rem);

	overflow-y: auto;

	background:
		linear-gradient(
			145deg,
			rgba(15, 23, 42, 0.98),
			rgba(2, 6, 23, 0.98)
		);

	border: 1px solid rgba(212, 175, 55, 0.25);

	box-shadow:
		0 40px 120px rgba(0, 0, 0, 0.5);

	transform: translateY(15px) scale(0.98);

	transition:
		transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.zr-modal.is-open .zr-modal-panel {
	transform: translateY(0) scale(1);
}


/* =========================================================
   17. MODAL CLOSE BUTTON
========================================================= */

.zr-modal-close {
	position: absolute;

	top: 1rem;
	right: 1rem;

	z-index: 10;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 38px;
	height: 38px;

	border: 1px solid rgba(255, 255, 255, 0.15);

	background: rgba(255, 255, 255, 0.04);

	color: rgba(255, 255, 255, 0.7);

	cursor: pointer;

	transition:
		background-color var(--zr-transition),
		border-color var(--zr-transition),
		color var(--zr-transition);
}

.zr-modal-close:hover {
	border-color: var(--zr-gold);

	background: var(--zr-gold);

	color: var(--zr-midnight);
}


/* =========================================================
   18. LEAD FORM
========================================================= */

.zr-form-group {
	position: relative;
}

.zr-form-input,
.zr-form-select,
.zr-form-textarea {
	display: block;

	width: 100%;

	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);

	border-radius: 0;

	background: transparent;

	padding: 0.8rem 0;

	color: #fff;

	font-family: var(--zr-font-sans);
	font-size: 13px;

	outline: none;

	transition:
		border-color var(--zr-transition),
		box-shadow var(--zr-transition);
}

.zr-form-input::placeholder,
.zr-form-textarea::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.zr-form-input:focus,
.zr-form-select:focus,
.zr-form-textarea:focus {
	border-bottom-color: var(--zr-gold);

	box-shadow:
		0 1px 0 var(--zr-gold);
}

.zr-form-select {
	cursor: pointer;
}

.zr-form-select option {
	background: var(--zr-midnight);
	color: #fff;
}

.zr-form-label {
	display: block;

	margin-bottom: 0.45rem;

	font-family: var(--zr-font-sans);
	font-size: 8px;
	font-weight: 700;

	letter-spacing: 0.2em;
	text-transform: uppercase;

	color: rgba(255, 255, 255, 0.45);
}


/* =========================================================
   19. CAPTCHA
========================================================= */

.zr-turnstile {
	min-height: 65px;

	display: flex;
	align-items: center;
}

.zr-captcha-error {
	margin-top: 0.5rem;

	font-family: var(--zr-font-sans);
	font-size: 10px;

	color: #fca5a5;
}


/* =========================================================
   20. FORM VALIDATION
========================================================= */

.zr-form-input.is-error,
.zr-form-select.is-error,
.zr-form-textarea.is-error {
	border-bottom-color: #ef4444;

	box-shadow:
		0 1px 0 #ef4444;
}

.zr-form-error {
	display: block;

	margin-top: 0.35rem;

	font-size: 9px;
	line-height: 1.5;

	color: #fca5a5;
}


/* =========================================================
   21. FORM SUCCESS
========================================================= */

.zr-form-success {
	padding: 2rem;

	border: 1px solid rgba(212, 175, 55, 0.25);

	background: rgba(212, 175, 55, 0.04);

	text-align: center;
}

.zr-form-success-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 52px;
	height: 52px;

	margin: 0 auto;

	border: 1px solid var(--zr-gold);

	color: var(--zr-gold);
}


/* =========================================================
   22. AJAX LOADING STATE
========================================================= */

.zr-submit-button {
	position: relative;
}

.zr-submit-button.is-loading {
	pointer-events: none;

	opacity: 0.65;
}

.zr-submit-button.is-loading .zr-submit-text {
	opacity: 0;
}

.zr-submit-spinner {
	position: absolute;

	left: 50%;
	top: 50%;

	width: 17px;
	height: 17px;

	margin-left: -8.5px;
	margin-top: -8.5px;

	border: 2px solid rgba(2, 6, 23, 0.25);
	border-top-color: var(--zr-midnight);

	border-radius: 50%;

	animation:
		zr-spin 700ms linear infinite;
}

@keyframes zr-spin {

	to {
		transform: rotate(360deg);
	}

}


/* =========================================================
   23. MAP / LOCATION
========================================================= */

.zr-location-map {
	position: relative;
	overflow: hidden;
}

.zr-location-map::before,
.zr-location-map::after {
	content: "";

	position: absolute;

	pointer-events: none;
}

.zr-location-map::before {
	inset: 0;

	background-image:
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.05) 1px,
			transparent 1px
		),
		linear-gradient(
			rgba(255, 255, 255, 0.05) 1px,
			transparent 1px
		);

	background-size: 50px 50px;
}

.zr-map-pin {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 62px;
	height: 62px;

	border: 1px solid var(--zr-gold);

	background: rgba(2, 6, 23, 0.9);

	color: var(--zr-gold);

	box-shadow:
		0 0 0 12px rgba(212, 175, 55, 0.05),
		0 0 0 24px rgba(212, 175, 55, 0.025);
}

.zr-map-pin::after {
	content: "";

	position: absolute;
	inset: -12px;

	border: 1px solid rgba(212, 175, 55, 0.25);

	animation:
		zr-map-pulse 2.5s ease-out infinite;
}

@keyframes zr-map-pulse {

	0% {
		transform: scale(0.85);
		opacity: 0.8;
	}

	100% {
		transform: scale(1.4);
		opacity: 0;
	}

}


/* =========================================================
   24. PHONE / CONTACT
========================================================= */

.zr-phone-link {
	transition:
		color var(--zr-transition);
}

.zr-phone-link:hover {
	color: var(--zr-gold);
}


/* =========================================================
   25. CTA SECTION
========================================================= */

.zr-final-cta {
	position: relative;
	overflow: hidden;
}

.zr-final-cta-image {
	transition:
		transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.zr-final-cta:hover .zr-final-cta-image {
	transform: scale(1.025);
}


/* =========================================================
   26. FOOTER
========================================================= */

.zr-footer {
	background: var(--zr-midnight);
	color: rgba(255, 255, 255, 0.65);
}

.zr-footer-link {
	transition:
		color var(--zr-transition);
}

.zr-footer-link:hover {
	color: var(--zr-gold);
}

.zr-footer-heading {
	color: #fff;

	font-family: var(--zr-font-serif);
	font-size: 18px;
}

.zr-footer-small {
	font-size: 9px;
	line-height: 1.8;
}


/* =========================================================
   27. DISCLAIMER
========================================================= */

.zr-disclaimer {
	max-width: 1000px;

	margin-left: auto;
	margin-right: auto;

	font-family: var(--zr-font-sans);
	font-size: 9px;
	line-height: 1.8;

	color: rgba(255, 255, 255, 0.35);
}

.zr-disclaimer strong {
	display: block;

	margin-bottom: 0.5rem;

	color: rgba(255, 255, 255, 0.6);

	font-size: 9px;
	font-weight: 700;

	letter-spacing: 0.15em;
	text-transform: uppercase;
}


/* =========================================================
   28. AOS CUSTOM OVERRIDES
========================================================= */

[data-aos] {
	will-change: transform, opacity;
}

[data-aos="zr-fade-up"] {
	transform: translate3d(0, 30px, 0);
	opacity: 0;
	transition-property: transform, opacity;
}

[data-aos="zr-fade-up"].aos-animate {
	transform: translate3d(0, 0, 0);
	opacity: 1;
}

[data-aos="zr-fade-right"] {
	transform: translate3d(-30px, 0, 0);
	opacity: 0;
	transition-property: transform, opacity;
}

[data-aos="zr-fade-right"].aos-animate {
	transform: translate3d(0, 0, 0);
	opacity: 1;
}

[data-aos="zr-fade-left"] {
	transform: translate3d(30px, 0, 0);
	opacity: 0;
	transition-property: transform, opacity;
}

[data-aos="zr-fade-left"].aos-animate {
	transform: translate3d(0, 0, 0);
	opacity: 1;
}


/* =========================================================
   29. ACCESSIBILITY
========================================================= */

:focus-visible {
	outline: 2px solid var(--zr-gold);
	outline-offset: 3px;
}

.sr-only {
	position: absolute;

	width: 1px;
	height: 1px;

	padding: 0;
	margin: -1px;

	overflow: hidden;

	clip: rect(0, 0, 0, 0);

	white-space: nowrap;

	border: 0;
}


/* =========================================================
   30. WORDPRESS ADMIN BAR
========================================================= */

.admin-bar .zr-navigation {
	top: 32px;
}

@media (max-width: 782px) {

	.admin-bar .zr-navigation {
		top: 46px;
	}

}


/* =========================================================
   31. WORDPRESS CONTENT
========================================================= */

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-family: var(--zr-font-sans);
	font-size: 10px;
	line-height: 1.6;
	color: #64748b;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
	margin-right: 1.5rem;
	margin-bottom: 1rem;
}

.alignright {
	float: right;
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}


/* =========================================================
   32. RESPONSIVE HELPERS
========================================================= */

@media (max-width: 767px) {

	html {
		scroll-padding-top: 75px;
	}

	body {
		font-size: 14px;
	}

	.zr-modal {
		padding: 0.75rem;
	}

	.zr-modal-panel {
		max-height: calc(100vh - 1.5rem);
	}

	.zr-lightbox {
		padding: 0.75rem;
	}

	.zr-lightbox-image {
		max-width: 96vw;
		max-height: 78vh;
	}

}


/* =========================================================
   33. REDUCED MOTION
========================================================= */

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

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.zr-hero-image,
	.zr-gallery-item img,
	.zr-configuration-card-image img {
		transform: none !important;
	}

}


/* =========================================================
   34. PRINT
========================================================= */

@media print {

	.zr-navigation,
	.zr-modal,
	.zr-lightbox,
	.zr-final-cta,
	button,
	.zr-submit-button {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	a {
		text-decoration: underline;
	}

}