/**
 * Real Estate Landing — front-end styles.
 *
 * Colour and type come from the plugin's design tokens (--re-*), injected in
 * <head>. This file owns structure, rhythm and behaviour; the per-project
 * brand owns the palette. Mobile-first.
 */

/* --------------------------------------------------------------- tokens */
/* Fallbacks so the theme is usable even before branding is configured. */
:root {
	--re-primary: #123456;
	--re-secondary: #234567;
	--re-accent: #c89b3c;
	--re-text: #222222;
	--re-background: #ffffff;
	--re-button-radius: 8px;
	--re-font-heading: "Poppins", system-ui, sans-serif;
	--re-font-body: "Inter", system-ui, sans-serif;
	--re-button-bg: var(--re-primary);
	--re-button-fg: #fff;
	--re-button-border: 2px solid var(--re-primary);

	--re-muted: color-mix(in srgb, var(--re-text) 62%, var(--re-background));
	--re-hairline: color-mix(in srgb, var(--re-text) 14%, var(--re-background));
	--re-surface: color-mix(in srgb, var(--re-text) 3%, var(--re-background));
	--re-shadow: 0 10px 30px color-mix(in srgb, var(--re-text) 12%, transparent);
	--re-maxw: 1160px;
	--re-gap: clamp(1rem, 3vw, 2rem);
	--re-section-y: clamp(3rem, 7vw, 6rem);
}

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

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

body {
	margin: 0;
	font-family: var(--re-font-body);
	color: var(--re-text);
	background: var(--re-background);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--re-font-heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }

a { color: var(--re-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
	white-space: nowrap;
}

.re-skip-link {
	position: absolute; left: -999px; top: 0; z-index: 1000;
	background: var(--re-primary); color: #fff; padding: .6rem 1rem;
}
.re-skip-link:focus { left: 8px; top: 8px; }

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

/* -------------------------------------------------------------- layout */
.re-container { width: 100%; max-width: var(--re-maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.re-narrow { max-width: 760px; }

.re-section { padding-block: var(--re-section-y); }
.re-section:nth-of-type(even) { background: var(--re-surface); }

/* Section heading block */
.re-section-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); max-width: 60ch; }
.re-eyebrow {
	display: inline-block;
	font-family: var(--re-font-heading);
	font-weight: 600;
	font-size: .8rem;
	letter-spacing: .02em;
	color: var(--re-accent);
	margin-bottom: .5rem;
}
.re-eyebrow::after {
	content: ""; display: inline-block; width: 28px; height: 2px;
	background: var(--re-accent); vertical-align: middle; margin-left: .6rem;
}
.re-section-title { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
.re-section-intro { color: var(--re-muted); font-size: 1.05rem; margin: 0; }

.re-prose { color: color-mix(in srgb, var(--re-text) 88%, var(--re-background)); }
.re-prose p { margin: 0 0 1em; }
.re-prose p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- buttons */
.re-btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: .5rem; cursor: pointer;
	font-family: var(--re-font-heading); font-weight: 600; font-size: 1rem;
	line-height: 1; padding: .9rem 1.5rem;
	border-radius: var(--re-button-radius);
	background: var(--re-button-bg); color: var(--re-button-fg);
	border: var(--re-button-border);
	transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease;
	text-decoration: none;
}
.re-btn:hover { text-decoration: none; box-shadow: var(--re-shadow); transform: translateY(-1px); }
.re-btn:active { transform: none; }
.re-btn-primary { background: var(--re-button-bg); color: var(--re-button-fg); }
.re-btn-outline { background: transparent; color: var(--re-primary); border: 2px solid currentColor; }
.re-btn-outline:hover { background: var(--re-primary); color: #fff; }
.re-btn-lg { padding: 1.05rem 2rem; font-size: 1.1rem; }
.re-btn-sm { padding: .6rem 1rem; font-size: .9rem; }

/* -------------------------------------------------------------- header */
.re-header { width: 100%; z-index: 50; background: var(--re-background); border-bottom: 1px solid var(--re-hairline); }
.re-sticky-header .re-header { position: sticky; top: 0; }
.re-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.re-logo { max-height: 44px; width: auto; }
.re-brand-text { font-family: var(--re-font-heading); font-weight: 700; font-size: 1.25rem; color: var(--re-text); }
.re-brand:hover { text-decoration: none; }

.re-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); margin: 0; padding: 0; }
.re-nav a { color: var(--re-text); font-weight: 500; font-size: .98rem; }
.re-nav a:hover { color: var(--re-primary); text-decoration: none; }
.re-nav-cta .re-btn { color: var(--re-button-fg); }

.re-nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.re-nav-toggle span { width: 26px; height: 2px; background: var(--re-text); transition: transform .2s, opacity .2s; }

/* Header style variants (set via body class from branding). */
.re-header-dark .re-header { background: var(--re-primary); border-bottom-color: transparent; }
.re-header-dark .re-nav a,
.re-header-dark .re-brand-text { color: #fff; }
.re-header-dark .re-nav-toggle span { background: #fff; }

.re-header-transparent .re-header { background: transparent; border-bottom-color: transparent; position: absolute; left: 0; right: 0; }
.re-header-transparent.re-sticky-header .re-header { position: absolute; }
.re-header-transparent .re-nav a,
.re-header-transparent .re-brand-text { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.re-header-transparent .re-nav-toggle span { background: #fff; }

/* ---------------------------------------------------------------- hero */
.re-hero { position: relative; }
.re-hero-track { position: relative; }
.re-hero-slide {
	position: relative; display: none;
	min-height: clamp(420px, 76vh, 760px);
	background-size: cover; background-position: center;
	color: #fff;
}
.re-hero-slide.is-active { display: block; }
.re-hero:not(.re-hero-slider) .re-hero-slide { display: block; }
.re-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.6)); }
.re-hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; min-height: inherit; padding-block: 4rem; }
.re-hero-slide { display: flex; }
.re-hero-slide:not(.is-active) { display: none; }
.re-hero:not(.re-hero-slider) .re-hero-slide { display: flex; }
.re-hero-title { color: #fff; font-size: clamp(2rem, 6vw, 4rem); max-width: 16ch; }
.re-hero-sub { color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 2.4vw, 1.4rem); max-width: 44ch; margin-bottom: 1.8rem; }

.re-hero-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	background: rgba(255,255,255,.18); color: #fff; border: 0;
	width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
	backdrop-filter: blur(4px); z-index: 3;
}
.re-hero-prev { left: 16px; } .re-hero-next { right: 16px; }
.re-hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.re-hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.re-hero-dot.is-active { background: #fff; }

/* -------------------------------------------------------------- grids */
.re-grid { display: grid; gap: var(--re-gap); }
.re-grid-highlights { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.re-grid-amenities { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); list-style: none; padding: 0; margin: 0; }
.re-grid-floorplans { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.re-grid-gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* card base */
.re-card { background: var(--re-background); border: 1px solid var(--re-hairline); border-radius: 12px; padding: 1.5rem; }

/* highlights */
.re-highlight { border-top: 3px solid var(--re-accent); display: flex; flex-direction: column; gap: .35rem; }
.re-highlight-icon .re-icon { width: 40px; height: 40px; object-fit: contain; }
.re-highlight-value { font-family: var(--re-font-heading); font-size: 2rem; font-weight: 700; color: var(--re-primary); }
.re-highlight-title { font-size: 1.1rem; margin: 0; }
.re-highlight-desc { color: var(--re-muted); margin: 0; font-size: .96rem; }

/* amenities */
.re-amenity-group + .re-amenity-group { margin-top: 2rem; }
.re-amenity-cat { font-size: 1.15rem; color: var(--re-primary); margin-bottom: 1rem; }
.re-amenity { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; }
.re-amenity-icon { flex: 0 0 auto; display: inline-flex; }
.re-amenity-icon .re-icon { width: 28px; height: 28px; object-fit: contain; }
.re-amenity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--re-accent); }
.re-amenity-name { font-size: .98rem; }

/* pricing table */
.re-table-wrap { overflow-x: auto; border: 1px solid var(--re-hairline); border-radius: 12px; }
.re-price-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.re-price-table th, .re-price-table td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--re-hairline); }
.re-price-table thead th { background: var(--re-surface); font-family: var(--re-font-heading); font-size: .9rem; }
.re-price-table tbody tr:last-child td { border-bottom: 0; }
.re-col-action { text-align: right; white-space: nowrap; }
.re-price-note { color: var(--re-muted); font-size: .85rem; margin-top: .8rem; }

/* floor plans */
.re-floorplan { display: flex; flex-direction: column; gap: .75rem; }
.re-floorplan-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.re-floorplan-config { margin: 0; font-size: 1.3rem; }
.re-floorplan-area { color: var(--re-muted); font-size: .9rem; }
.re-floorplan-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: 0; margin: 0; color: var(--re-muted); font-size: .92rem; }
.re-floorplan-price { font-family: var(--re-font-heading); font-weight: 600; color: var(--re-primary); margin: 0; }
.re-floorplan-actions { display: flex; gap: .6rem; margin-top: auto; flex-wrap: wrap; }

/* gallery */
.re-gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.re-filter { border: 1px solid var(--re-hairline); background: var(--re-background); color: var(--re-text); padding: .45rem 1rem; border-radius: 999px; cursor: pointer; font-size: .9rem; }
.re-filter.is-active { background: var(--re-primary); color: #fff; border-color: var(--re-primary); }
.re-gallery-item { margin: 0; border-radius: 12px; overflow: hidden; position: relative; }
.re-gallery-item.is-hidden { display: none; }
.re-gallery-link { display: block; position: relative; }
.re-gallery-link img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .3s ease; }
.re-gallery-link:hover img { transform: scale(1.04); }
.re-gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-size: .9rem; }

/* location */
.re-location-grid { display: grid; grid-template-columns: 1fr; gap: var(--re-gap); }
.re-location-map iframe { width: 100%; min-height: 340px; border: 0; border-radius: 12px; }
.re-location-address { padding: 1.2rem; background: var(--re-surface); border-radius: 12px; }
.re-conn-list { list-style: none; margin: 0; padding: 0; }
.re-conn-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--re-hairline); }
.re-conn-item:last-child { border-bottom: 0; }
.re-conn-cat { display: block; color: var(--re-muted); font-size: .8rem; }
.re-conn-dist { font-family: var(--re-font-heading); font-weight: 600; color: var(--re-primary); white-space: nowrap; }

/* embeds */
.re-embed { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.re-embed-16x9 { aspect-ratio: 16 / 9; }
.re-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* developer */
.re-developer-inner { display: grid; grid-template-columns: 1fr; gap: var(--re-gap); align-items: center; }
.re-developer-img { border-radius: 12px; }
.re-rera { color: var(--re-muted); font-size: .9rem; margin-top: 1rem; }

/* faq */
.re-accordion { border-top: 1px solid var(--re-hairline); }
.re-accordion-item { border-bottom: 1px solid var(--re-hairline); }
.re-accordion-head { margin: 0; }
.re-accordion-trigger {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	background: none; border: 0; cursor: pointer; text-align: left;
	padding: 1.15rem 0; font-family: var(--re-font-heading); font-weight: 600; font-size: 1.05rem; color: var(--re-text);
}
.re-accordion-icon { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.re-accordion-icon::before, .re-accordion-icon::after { content: ""; position: absolute; background: var(--re-accent); transition: transform .2s ease; }
.re-accordion-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.re-accordion-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.re-accordion-trigger[aria-expanded="true"] .re-accordion-icon::after { transform: scaleY(0); }
.re-accordion-panel { padding: 0 0 1.2rem; color: var(--re-muted); }

/* lead form */
.re-leadform { background: var(--re-primary); color: #fff; }
.re-leadform .re-eyebrow { color: color-mix(in srgb, var(--re-accent) 85%, #fff); }
.re-leadform .re-section-title, .re-leadform .re-leadform-copy { color: #fff; }
.re-leadform-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.re-leadform-copy { color: rgba(255,255,255,.85); }
.re-contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.re-contact-list a { color: #fff; font-weight: 600; }
.re-leadform-form { background: var(--re-background); color: var(--re-text); border-radius: 16px; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--re-shadow); }

.re-field { display: block; margin-bottom: 1rem; }
.re-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.re-field-label { display: block; font-family: var(--re-font-heading); font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.re-req { color: #c0392b; }
.re-field input, .re-field textarea {
	width: 100%; padding: .75rem .85rem; font: inherit; color: var(--re-text);
	border: 1px solid var(--re-hairline); border-radius: 8px; background: var(--re-background);
}
.re-field input:focus, .re-field textarea:focus { outline: none; border-color: var(--re-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--re-primary) 22%, transparent); }
.re-field.has-error input, .re-field.has-error textarea { border-color: #c0392b; }
.re-field-error { display: block; color: #c0392b; font-size: .82rem; margin-top: .3rem; min-height: 1em; }
.re-form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.re-form-status { margin: 0; font-size: .95rem; }
.re-form-status.is-success { color: #1a7f37; }
.re-form-status.is-error { color: #c0392b; }
.re-form-consent { color: var(--re-muted); font-size: .8rem; margin: 1rem 0 0; }
.cf-turnstile { margin: .5rem 0 1rem; }

/* modals */
.re-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.re-modal[hidden] { display: none; }
.re-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.re-modal-dialog { position: relative; z-index: 2; background: var(--re-background); color: var(--re-text); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; border-radius: 16px; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--re-shadow); }
.re-modal-close { position: absolute; top: .8rem; right: 1rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--re-muted); }
.re-modal-title { margin-top: 0; }
.re-detail-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.re-detail-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--re-hairline); }
.re-detail-features { margin: .5rem 0 0; padding-left: 1.1rem; }

/* lightbox */
.re-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.re-lightbox[hidden] { display: none; }
.re-lightbox-figure { margin: 0; max-width: 92vw; max-height: 86vh; text-align: center; }
.re-lightbox-img { max-width: 92vw; max-height: 80vh; object-fit: contain; margin-inline: auto; }
.re-lightbox-cap { color: #fff; margin-top: .8rem; font-size: .95rem; }
.re-lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.re-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; cursor: pointer; }
.re-lightbox-prev { left: 20px; } .re-lightbox-next { right: 20px; }

/* footer */
.re-footer { background: color-mix(in srgb, var(--re-text) 92%, #000); color: rgba(255,255,255,.82); }
.re-header-dark .re-footer { background: color-mix(in srgb, var(--re-primary) 80%, #000); }
.re-footer-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.re-footer-logo { max-height: 48px; filter: brightness(0) invert(1); }
.re-footer-dev { color: rgba(255,255,255,.7); margin: .6rem 0 0; }
.re-footer-contact a { color: #fff; }
.re-footer-addr { color: rgba(255,255,255,.7); }
.re-footer-legal { border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }
.re-footer-legal .re-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1.2rem; }

/* body scroll lock when a modal/menu is open */
body.re-noscroll { overflow: hidden; }

/* ---------------------------------------------------------- responsive */
@media (min-width: 641px) {
	.re-location-grid { grid-template-columns: 1.4fr 1fr; }
	.re-developer-inner { grid-template-columns: 320px 1fr; }
	.re-leadform-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
	.re-footer-inner { grid-template-columns: 1.4fr 1fr; }
}

@media (max-width: 860px) {
	.re-nav-toggle { display: flex; }
	.re-nav {
		position: fixed; inset: 68px 0 auto 0; background: var(--re-background);
		border-bottom: 1px solid var(--re-hairline); box-shadow: var(--re-shadow);
		max-height: 0; overflow: hidden; transition: max-height .28s ease; z-index: 40;
	}
	.re-nav.is-open { max-height: 80vh; }
	.re-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
	.re-nav li { padding: 0 clamp(1rem, 4vw, 2rem); }
	.re-nav a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--re-hairline); color: var(--re-text); }
	.re-nav-cta { padding: 1rem clamp(1rem, 4vw, 2rem); }
	.re-nav-cta .re-btn { width: 100%; }
	.re-header-dark .re-nav a, .re-header-transparent .re-nav a { color: var(--re-text); text-shadow: none; }
}

@media (max-width: 520px) {
	.re-field-row { grid-template-columns: 1fr; }
	/* Stack the price table into labelled rows. */
	.re-price-table { min-width: 0; }
	.re-price-table thead { display: none; }
	.re-price-table, .re-price-table tbody, .re-price-table tr, .re-price-table td { display: block; width: 100%; }
	.re-price-table tr { border-bottom: 1px solid var(--re-hairline); padding: .6rem 0; }
	.re-price-table td { border: 0; padding: .3rem 1.2rem; }
	.re-price-table td::before { content: attr(data-label) ": "; font-weight: 600; font-family: var(--re-font-heading); }
	.re-col-action { text-align: left; }
	.re-col-action::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
