/* Aladdin Properties — colors taken from the logo */
:root {
	--brand: #4b4b94;
	--brand-dark: #34346e;
	--brand-light: #9b9bcc;
	--brand-tint: #f1f1f8;
	--ink: #26262b;
	--ink-soft: #55555e;
	--line: #e3e3ec;
	--bg: #ffffff;
	--bg-alt: #f7f7fa;
	--charcoal: #3d3d3f;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(20, 20, 50, .06), 0 8px 24px rgba(20, 20, 50, .08);
	--shadow-lg: 0 18px 50px rgba(20, 20, 50, .16);
	--font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: 14px 26px; border-radius: 999px; border: 2px solid var(--brand);
	background: var(--brand); color: #fff; font: 600 1rem/1 var(--font-body);
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(75, 75, 148, .3); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-small { padding: 10px 18px; font-size: .92rem; }

.eyebrow {
	font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--brand); margin-bottom: .8em;
}

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(20, 20, 50, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { width: 54px; height: auto; mix-blend-mode: multiply; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--brand-dark); }
.brand-tag { font-size: .72rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s; }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-right: -10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; top: var(--header-h); left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 20, 50, .08);
		padding: 8px 20px 20px; display: none;
	}
	.site-nav.open { display: flex; }
	.site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.site-nav a:not(.btn)::after { display: none; }
	.site-nav .btn { margin-top: 16px; }
}
@media (max-width: 420px) {
	.brand-tag { display: none; }
	.brand-logo { width: 46px; }
}

/* Hero */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(900px 500px at 100% 0%, rgba(155, 155, 204, .25), transparent 60%),
		linear-gradient(180deg, var(--brand-tint), #fff 85%);
	padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { margin: 0; position: relative; isolation: isolate; }
.hero-photo img { border-radius: 20px; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hero-photo::before {
	content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 20px;
	background: linear-gradient(135deg, var(--brand), var(--brand-light)); z-index: -1; opacity: .9;
}
.hero-photo figcaption {
	position: absolute; left: 16px; bottom: 16px; background: rgba(255, 255, 255, .94); color: var(--ink);
	font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow);
}
@media (max-width: 860px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-photo { margin-right: 18px; }
}

/* Stats */
.stats { background: var(--charcoal); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat { padding: 30px 12px; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .14); }
.stat-num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; line-height: 1; color: #c9c9ee; }
.stat-label { font-size: .88rem; color: rgba(255, 255, 255, .78); }
@media (max-width: 560px) {
	.stat { padding: 22px 6px; }
	.stat-label { font-size: .76rem; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.08rem; }

/* About */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.feature p { color: var(--ink-soft); margin: 0; }
.feature-icon {
	width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
	background: linear-gradient(135deg, var(--brand), var(--brand-light));
}
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* For sale */
.for-sale { background: var(--brand-tint); }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; gap: 28px; }
.listing { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.listing:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.listing-media { position: relative; aspect-ratio: 4 / 3; background: var(--line); }
.listing-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 14px; left: 14px; background: #1f7a4d; color: #fff; font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.badge-muted { background: #b5651d; }
.listing-body { padding: 22px 24px 24px; }
.listing-price { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; color: var(--brand-dark); margin: 0 0 4px; }
.listing-body h3 { font-family: var(--font-body); font-size: 1.1rem; margin-bottom: 6px; }
.listing-facts { color: var(--ink-soft); margin: 0 0 12px; }
.listing-by { font-size: .8rem; color: #8a8a95; margin: 0; }

/* Projects */
.projects { background: var(--bg-alt); }
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-grid.collapsed .is-extra { display: none; }
.project-btn {
	display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--line);
	border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 3 / 2;
	box-shadow: var(--shadow); font: inherit;
}
/* scale crops the black frame baked into the photos */
.project-btn img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.035); transition: transform .5s ease; }
.project-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15, 15, 35, .75)); }
.project-label { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; font-weight: 600; text-align: left; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.project-btn:hover img { transform: scale(1.08); }
.projects .center { margin-top: 36px; }
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 520px) {
	.project-grid { grid-template-columns: 1fr; }
	.project-label { font-size: .95rem; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); text-align: center; }
.avatar {
	width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; font-weight: 600; letter-spacing: .04em;
}
.contact-line {
	display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; margin-top: 10px;
	border-radius: 10px; background: var(--bg-alt); color: var(--ink); text-decoration: none; font-weight: 500;
	overflow-wrap: anywhere; transition: background .2s, color .2s;
}
.contact-line:hover { background: var(--brand-tint); color: var(--brand-dark); }
.contact-line svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-email { display: flex; width: 100%; margin-top: 10px; padding: 13px 20px; gap: 10px; }
.contact-email svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { padding: 26px 18px; } }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, .75); padding: 44px 0; text-align: center; font-size: .92rem; }
.site-footer p { margin: 0 0 6px; }
.footer-brand { font-family: var(--font-head); font-size: 1.3rem; color: #fff; }
.footer-copy { color: rgba(255, 255, 255, .5); margin-top: 14px !important; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 10, 25, .85); }
.lightbox-inner { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; background: #111; }
.lightbox-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; }
.lightbox-caption h3 { margin: 0; }
.lightbox-sold { margin: 2px 0 0; font-size: .9rem; color: var(--ink-soft); }
.project-label small { display: block; font-weight: 500; font-size: .8rem; opacity: .85; }
.lightbox-close, .lightbox-nav {
	position: absolute; z-index: 2; border: 0; cursor: pointer; color: #fff; background: rgba(0, 0, 0, .5);
	width: 44px; height: 44px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
}
.lightbox-close { top: 12px; right: 12px; }
.lightbox-nav { top: 36%; font-size: 2.2rem; padding-bottom: 4px; }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(0, 0, 0, .75); }
