/* Property website system -- phone first, then tablet (700px+) and desktop (1000px+) */

:root {
	--ink: #1b2228;
	--muted: #5d6871;
	--line: #e3e0da;
	--paper: #ffffff;
	--tint: #f6f4f0;
	--accent: #1d5a86;
	--accent-dark: #164567;
	--serif: "Fraunces", Georgia, serif;
	--sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 10px;
	--bar: 60px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); }

body {
	margin: 0;
	padding-bottom: 68px; /* room for the phone call/ask bar */
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
h2 { font-size: 30px; margin-bottom: 20px; }
h3 { font-size: 22px; margin: 36px 0 14px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.section { padding: 52px 0; }
.section-tint { background: var(--tint); }
.section-lead { margin: -10px 0 20px; color: var(--muted); }

/* buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--accent);
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font: 600 15px/1 var(--sans);
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-glass { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-glass:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

.card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: 0 8px 30px rgba(27,34,40,.06);
}

/* top bar */

.topbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	height: var(--bar);
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 20px;
	color: #fff;
	transition: background .2s, box-shadow .2s, color .2s;
}
.topbar.is-solid, .topbar.is-open { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }

.topbar-address {
	margin-right: auto;
	font: 500 19px/1 var(--serif);
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	transition: opacity .2s;
}
.topbar.is-solid .topbar-address, .topbar.is-open .topbar-address { opacity: 1; }

.topbar-nav {
	display: none;
	position: absolute;
	top: var(--bar); left: 0; right: 0;
	flex-direction: column;
	padding: 6px 20px 16px;
	background: var(--paper);
	box-shadow: 0 12px 24px rgba(27,34,40,.12);
}
.topbar.is-open .topbar-nav { display: flex; }
.topbar-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; text-decoration: none; }
.topbar-nav a:last-child { border-bottom: 0; }

.topbar-cta { display: none; }

.topbar-menu { width: 44px; height: 44px; margin-right: -10px; padding: 12px 10px; border: 0; background: none; color: inherit; cursor: pointer; }
.topbar-menu span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: currentColor; }

/* hero */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 78vh;
	height: 78svh;
	min-height: 440px;
	max-height: 900px;
	color: #fff;
	background: #2a3238;
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.38) 0, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 42%, rgba(0,0,0,.72) 100%); }
.hero-content { position: relative; padding-bottom: 30px; }
.hero h1 { font-size: 38px; letter-spacing: -.01em; text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.hero-city { margin-top: 6px; font-size: 18px; opacity: .92; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 18px; }
.hero-price { font: 500 30px/1 var(--serif); }

.pill {
	display: inline-block;
	margin-bottom: 14px;
	padding: 7px 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	line-height: 1;
}
.pill-alt { background: #b3261e; color: #fff; }

/* bedrooms, bathrooms, etc */

.facts { border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; padding-top: 6px; padding-bottom: 6px; }
.fact { padding: 16px 0; text-align: center; }
.fact strong { display: block; font: 500 28px/1.1 var(--serif); }
.fact span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.fact:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* overview */

.overview { display: grid; gap: 36px; }
.remarks { font-size: 18px; }
.remarks-more { margin-top: 18px; }

.schools { display: grid; gap: 12px; }
.school { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.school span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.school strong { font-weight: 600; }

.agent-card { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 14px 16px; }
.agent-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; }
.agent-card p, .agent-card .btn { grid-column: 1 / -1; margin: 0; }
.agent-name { font: 500 20px/1.2 var(--serif); }
.agent-title { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* photos */

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { position: relative; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #dcd8d0; aspect-ratio: 3 / 2; cursor: zoom-in; }
.tile:first-child { grid-column: 1 / -1; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile:hover img { transform: scale(1.04); }
.tile-extra { display: none; }
.gallery.is-open .tile-extra { display: block; }
.gallery-more { margin-top: 24px; text-align: center; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(12,15,18,.96); touch-action: pan-y; }
.lightbox.is-open { display: block; }
.lightbox img { position: absolute; inset: 56px 0 56px 0; width: 100%; height: calc(100% - 112px); object-fit: contain; }
.lightbox button { position: absolute; z-index: 1; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lightbox-close { top: 6px; right: 10px; }
.lightbox-prev { left: 10px; bottom: 6px; }
.lightbox-next { right: 10px; bottom: 6px; }
.lightbox-count { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; letter-spacing: .06em; }

/* walk through, video, maps */

.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #dcd8d0; }
.embed + .embed { margin-top: 20px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-map { aspect-ratio: 4 / 3; }

.floorplan { display: block; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; text-decoration: none; }
.floorplan img { margin: 0 auto; }
.floorplan span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

.documents { display: grid; gap: 12px; }
.document { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.document:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(27,34,40,.08); }
.document svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.document strong { display: block; font-weight: 600; line-height: 1.3; }
.document em { color: var(--muted); font-size: 13px; font-style: normal; letter-spacing: .08em; }

/* contact */

.contact { display: grid; gap: 36px; }
.contact-agent { text-align: center; }
.contact-photo { width: 132px; height: 132px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; object-position: top; }
.contact-agent p { margin: 14px 0 0; }
.contact-agent p a { font-weight: 500; text-decoration: none; word-break: break-word; }
.contact-logo { width: 220px; margin: 24px auto 0; }

.question h3 { margin-top: 0; }
.question p { margin: 0 0 18px; color: var(--muted); }
.question label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.question small { color: var(--muted); font-weight: 400; }
.question input, .question textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	border: 1px solid #cfcac1;
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font: 400 16px/1.4 var(--sans); /* 16px keeps phones from zooming in */
}
.question textarea { resize: vertical; }
.question input:focus, .question textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field-website { position: absolute; left: -9999px; }
.form-note { margin: 14px 0; padding: 12px 14px; border-radius: 8px; background: #fbeae8; color: #8c1d18; font-size: 15px; }
.form-note.form-ok { background: #e6f3ea; color: #1e5c33; }

/* footer */

.footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.8; text-align: center; }

.mobile-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 40;
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 10px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: var(--paper);
	box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(27,34,40,.08);
}

/* tablet */

@media (min-width: 700px) {
	.wrap { padding: 0 32px; }
	.topbar { padding: 0 32px; }
	.section { padding: 72px 0; }
	h2 { font-size: 36px; }
	.hero h1 { font-size: 56px; }
	.hero-city { font-size: 21px; }
	.hero-price { font-size: 38px; }
	.hero-content { padding-bottom: 48px; }
	.facts-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
	.fact { padding: 22px 0; }
	.fact:last-child:nth-child(odd) { grid-column: auto; }
	.fact strong { font-size: 32px; }
	.schools { grid-template-columns: repeat(3, 1fr); }
	.gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
	.embed-map { aspect-ratio: 16 / 9; }
	.documents { grid-template-columns: repeat(2, 1fr); }
	.contact { grid-template-columns: 1fr 1.5fr; align-items: start; gap: 48px; }
	.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
	.lightbox img { inset: 24px 76px 60px 76px; width: calc(100% - 152px); height: calc(100% - 84px); }
	.lightbox-prev, .lightbox-next { top: 50%; bottom: auto; margin-top: -24px; }
	.lightbox-close { top: 14px; right: 14px; }
}

/* desktop */

@media (min-width: 1000px) {
	body { padding-bottom: 0; }
	.mobile-bar { display: none; }
	.topbar-menu { display: none; }
	.topbar-cta { display: inline-flex; }
	.topbar-nav { display: flex; position: static; flex-direction: row; gap: 26px; padding: 0; background: none; box-shadow: none; }
	.topbar-nav a { padding: 6px 0; border: 0; color: inherit; font-size: 14px; opacity: .9; }
	.topbar-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
	.topbar:not(.is-solid) .topbar-cta { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.7); }
	.hero { height: 86vh; }
	.hero h1 { font-size: 68px; }
	.overview { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
	.overview-side { position: sticky; top: calc(var(--bar) + 24px); }
	.documents { grid-template-columns: repeat(3, 1fr); }
}

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