/**
 * Taqwa Landmark Properties — front-end component styles.
 *
 * Complements theme.json with the architectural layer of the design system:
 * hairline framing, inscription labels, frosted glass header, property
 * keylines and the elevated card strata defined in DESIGN.md.
 *
 * @package WordPress
 * @subpackage Taqwa_Landmark
 * @since Taqwa Landmark 1.0
 */

/* ------------------------------------------------------------------
 * 1. Canvas and typography foundations
 * ------------------------------------------------------------------ */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Blueprint hairline framing for wide section rulers */
.taqwa-rule-top {
	border-top: 1px solid rgba(197, 160, 89, 0.2);
}

.taqwa-rule-bottom {
	border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

/* ------------------------------------------------------------------
 * 1b. Block style variations (also registered via functions.php;
 *     duplicated here so styles apply even without WP inline printing)
 * ------------------------------------------------------------------ */

.is-style-hairline-card {
	background-color: var(--wp--preset--color--primary-container);
	border: 1px solid rgba(197, 160, 89, 0.18);
	border-radius: 0.25rem;
	box-shadow: var(--wp--preset--shadow--elevated);
}

.is-style-hairline-card .is-style-hairline-card {
	box-shadow: none;
}

.is-style-glass-panel {
	background: rgba(11, 38, 29, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(247, 231, 180, 0.25);
	border-radius: 0.25rem;
}

@supports not (backdrop-filter: blur(16px)) {
	.is-style-glass-panel {
		background: rgba(11, 38, 29, 0.96);
	}
}

.is-style-gold-frame {
	position: relative;
	overflow: hidden;
}

.is-style-gold-frame::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid rgba(247, 231, 180, 0.35);
	border-radius: 2px;
	pointer-events: none;
	z-index: 1;
}

.is-style-gold-frame img {
	border-radius: 0;
}

.is-style-gold-outline .wp-block-button__link {
	background-color: var(--wp--preset--color--primary-container);
	color: var(--wp--preset--color--champagne-bright);
	border: 1px solid var(--wp--preset--color--champagne);
}

.is-style-gold-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--emerald-forest);
	color: var(--wp--preset--color--champagne-bright);
}

.is-style-editorial-link a {
	color: var(--wp--preset--color--champagne-light);
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-decoration: none;
	text-transform: uppercase;
	text-underline-offset: 4px;
	box-shadow: 0 1px 0 0 var(--wp--preset--color--champagne);
	transition: box-shadow 0.2s ease, color 0.2s ease;
}

.is-style-editorial-link a:hover {
	color: var(--wp--preset--color--champagne-bright);
	box-shadow: 0 1px 0 0 var(--wp--preset--color--champagne-bright);
}

.is-style-editorial-link a::after {
	content: "\2197";
	display: inline-block;
	padding-inline-start: 0.35rem;
	font-size: 0.85em;
}

.is-style-label-caps {
	color: var(--wp--preset--color--champagne);
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	line-height: 1.45;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------
 * 2. Site header — Layer 3 frosted emerald glass
 * ------------------------------------------------------------------ */

.taqwa-site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(11, 38, 29, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(247, 231, 180, 0.25);
}

@supports not (backdrop-filter: blur(16px)) {
	.taqwa-site-header {
		background: rgba(11, 38, 29, 0.96);
	}
}

.taqwa-site-header .wp-block-navigation {
	font-family: var(--wp--preset--font-family--label);
}

.taqwa-site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.taqwa-site-header .wp-block-navigation-link.is-selected > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--champagne-light);
}

/* Fine gold underline for navigation links on hover */
.taqwa-site-header .wp-block-navigation-item__label {
	position: relative;
}

.taqwa-site-header .wp-block-navigation-item__label::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -4px;
	height: 1px;
	background: var(--wp--preset--color--champagne);
	transition: right 0.25s ease;
}

.taqwa-site-header .wp-block-navigation-item:hover .wp-block-navigation-item__label::after {
	right: 0;
}

/* ------------------------------------------------------------------
 * 3. Hero cover
 * ------------------------------------------------------------------ */

.taqwa-hero {
	position: relative;
	isolation: isolate;
}

.taqwa-hero__scrim::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(7, 25, 18, 0.45) 0%, rgba(12, 19, 34, 0.82) 100%);
}

/* Animated shimmer sweep on the primary gold CTA */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	box-shadow: inset 0 0 12px rgba(247, 231, 180, 0.35), var(--wp--preset--shadow--gold-bloom);
}

.wp-element-button:active,
.wp-block-button__link:active {
	transform: translateY(1px);
}

/* ------------------------------------------------------------------
 * 4. Inscription labels and eyebrow overlines
 * ------------------------------------------------------------------ */

.taqwa-eyebrow {
	color: var(--wp--preset--color--champagne);
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	line-height: 1.45;
	text-transform: uppercase;
}

/* Small architectural diamond glyph used around eyebrows and lists */
.taqwa-eyebrow--glyphed::before,
.taqwa-eyebrow--glyphed::after {
	content: "\25C6";
	color: var(--wp--preset--color--champagne);
	font-size: 0.5em;
	vertical-align: 0.25em;
	padding-inline: 0.6em;
	opacity: 0.8;
}

/* ------------------------------------------------------------------
 * 5. Property cards
 * ------------------------------------------------------------------ */

.taqwa-property-card {
	background-color: var(--wp--preset--color--primary-container);
	border: 1px solid rgba(197, 160, 89, 0.18);
	border-radius: 0.25rem;
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.taqwa-property-card:hover {
	border-color: rgba(197, 160, 89, 0.45);
	box-shadow: var(--wp--preset--shadow--elevated);
	transform: translateY(-4px);
}

.taqwa-property-card figure {
	position: relative;
	margin: 0;
}

.taqwa-property-card figure::after {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(247, 231, 180, 0.3);
	border-radius: 2px;
	pointer-events: none;
}

/* Investment status chip — the only permitted pill form */
.taqwa-status-chip {
	display: inline-block;
	height: 24px;
	line-height: 22px;
	padding: 0 0.75rem;
	border-radius: 2px;
	background: rgba(22, 70, 57, 0.7);
	border: 0.5px solid rgba(247, 231, 180, 0.4);
	color: var(--wp--preset--color--champagne-bright);
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* Spec metadata strip (beds / baths / area) */
.taqwa-spec-row {
	display: flex;
	gap: 1.25rem;
	border-top: 1px solid rgba(197, 160, 89, 0.15);
	border-bottom: 1px solid rgba(197, 160, 89, 0.15);
	padding: 0.6rem 0;
}

.taqwa-spec-row .taqwa-spec {
	color: var(--wp--preset--color--on-surface-variant);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
}

.taqwa-spec-row .taqwa-spec strong {
	color: var(--wp--preset--color--alabaster);
	font-weight: 600;
}

/* Gold-diamond list used in the about section */
.taqwa-gold-list {
	list-style: none;
	padding-left: 0;
	margin-block-start: 0;
}

.taqwa-gold-list li {
	position: relative;
	padding-inline-start: 1.75rem;
	margin-block-end: 0.6rem;
}

.taqwa-gold-list li::before {
	content: "\25C6";
	position: absolute;
	inset-inline-start: 0;
	top: 0.15em;
	color: var(--wp--preset--color--champagne);
	font-size: 0.55em;
}

/* ------------------------------------------------------------------
 * 6. Metrics band
 * ------------------------------------------------------------------ */

.taqwa-stat {
	text-align: center;
}

.taqwa-stat__value {
	color: var(--wp--preset--color--champagne-bright);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	font-weight: 600;
	line-height: 1.1;
}

.taqwa-stat__label {
	color: var(--wp--preset--color--on-surface-variant);
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* Vertical hairline separators between metrics */
.taqwa-stats-band {
	border-top: 1px solid rgba(197, 160, 89, 0.2);
	border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.taqwa-stats-band .taqwa-stat + .taqwa-stat {
	border-left: 1px solid rgba(197, 160, 89, 0.15);
}

@media (max-width: 640px) {
	.taqwa-stats-band .taqwa-stat {
		border-left: none !important;
		border-top: 1px solid rgba(197, 160, 89, 0.15);
	}
}

/* ------------------------------------------------------------------
 * 7. Testimonials
 * ------------------------------------------------------------------ */

.taqwa-quote-mark {
	color: var(--wp--preset--color--champagne);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 3rem;
	line-height: 1;
	opacity: 0.9;
}

/* ------------------------------------------------------------------
 * 8. Contact and forms
 * ------------------------------------------------------------------ */

.taqwa-input input,
.taqwa-input textarea,
.taqwa-input select {
	background: rgba(7, 25, 18, 0.6);
	border: 1px solid rgba(229, 202, 143, 0.2);
	border-radius: 0.25rem;
	color: var(--wp--preset--color--alabaster);
	font-family: var(--wp--preset--font-family--body);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.taqwa-input input::placeholder,
.taqwa-input textarea::placeholder {
	color: rgba(197, 160, 89, 0.4);
}

.taqwa-input input:focus,
.taqwa-input textarea:focus,
.taqwa-input select:focus {
	border-color: var(--wp--preset--color--champagne);
	box-shadow: 0 0 8px rgba(197, 160, 89, 0.2);
	outline: none;
}

/* Contact capsule — small pill form reserved for contact details */
.taqwa-contact-capsule {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem;
	border-radius: 9999px;
	border: 1px solid rgba(197, 160, 89, 0.35);
	color: var(--wp--preset--color--champagne-light);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.taqwa-contact-capsule:hover {
	border-color: var(--wp--preset--color--champagne);
	color: var(--wp--preset--color--champagne-bright);
}

/* ------------------------------------------------------------------
 * 9. Footer
 * ------------------------------------------------------------------ */

.taqwa-footer {
	background: var(--wp--preset--color--surface-container-lowest);
	border-top: 1px solid rgba(197, 160, 89, 0.2);
}

.taqwa-footer .wp-block-heading {
	color: var(--wp--preset--color--on-surface);
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.taqwa-footer a {
	color: var(--wp--preset--color--on-surface-variant);
	text-decoration: none;
}

.taqwa-footer a:hover {
	color: var(--wp--preset--color--champagne-light);
}

/* ------------------------------------------------------------------
 * 10. Motion preferences and small screens
 * ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.taqwa-property-card,
	.wp-element-button,
	.wp-block-button__link,
	.taqwa-site-header .wp-block-navigation-item__label::after {
		transition: none;
	}
}
