:root {
	--page-max: 1120px;
	--bg-soft: #f7f4d7;
	--text: #161616;
	--muted: #4f4f4f;
	--brand: #111;
	--surface: #ffffff;
	--shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
	--radius: 10px;
	--space-1: 0.5rem;
	--space-2: 0.75rem;
	--space-3: 1rem;
	--space-4: 1.5rem;
	--space-5: 2rem;
	--space-6: 3rem;
}

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

html,
body {
	margin: 0;
	padding: 0;
}

body {
	font-family: "Avenir Next", "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.5;
	color: var(--text);
	background: #fff;
}

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

a {
	color: inherit;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

.container {
	width: min(100% - 2rem, var(--page-max));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header__inner {
	min-height: 78px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
}

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.brand img {
	display: block;
	width: clamp(220px, 28vw, 540px);
	height: auto;
}

.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
}

.nav-link {
	text-decoration: none;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hero {
	position: relative;
	min-height: clamp(420px, 68vh, 820px);
	overflow: hidden;
	display: grid;
	place-items: center;
	border-bottom: 2px solid #141414;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.08) 0%,
		rgba(0, 0, 0, 0.06) 38%,
		rgba(0, 0, 0, 0.2) 100%
	);
	z-index: 1;
}

.hero__background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
	z-index: 0;
}

.hero__content {
	position: relative;
	z-index: 2;
	width: min(96vw, 1500px);
	padding-inline: clamp(0.5rem, 2.5vw, 2rem);
}

.hero__title-image {
	display: block;
	width: 60%;
	max-width: 100%;
	margin-inline: auto;
	height: auto;
}

.section {
	padding-block: clamp(2.4rem, 5.5vw, 4.5rem);
}

.section--soft {
	background: var(--bg-soft);
	border-block: 1px solid rgba(0, 0, 0, 0.08);
}

.section__header {
	margin-bottom: var(--space-5);
}

.section__header h2 {
	margin: 0;
	font-size: clamp(1.4rem, 3vw, 2.3rem);
}

.section__header p {
	margin: var(--space-1) 0 0;
	color: var(--muted);
}

#gallery .section__header {
	text-align: center;
}

.section--contact .section__header {
	text-align: center;
	margin-bottom: var(--space-4);
}

.contact-card {
	margin: 0 auto;
	padding: var(--space-4);
	max-width: 460px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	font-style: normal;
	text-align: center;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.contact-card p {
	margin: 0;
}

.contact-card__break {
	margin-top: var(--space-3) !important;
}

.showcase-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-4);
	margin-bottom: var(--space-6);
}

.showcase-column {
	min-height: 100%;
}

.showcase-column--center {
	display: grid;
	place-items: center;
}

.showcase-column--stack {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: var(--space-4);
}

.showcase-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	width: min(100%, 260px);
	margin-inline: auto;
}

.showcase-card--video {
	position: relative;
}

.showcase-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 3px solid rgba(0, 0, 0, 0.7);
}

.showcase-card figcaption,
.showcase-card span {
	margin-top: var(--space-2);
	text-align: center;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.showcase-card--link {
	cursor: pointer;
}

.showcase-card--link:focus-visible {
	outline: 3px solid #0d6efd;
	outline-offset: 4px;
}

.showcase-card__youtube-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -80%);
	max-width: 64px;
	height: auto;
	aspect-ratio: auto;
	object-fit: contain;
	border: 0;
	background: transparent;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
	pointer-events: none;

	border: none !important;
}

.image-groups {
	display: grid;
	gap: var(--space-5);
}

.gallery-group {
	background: #fff;
	padding: var(--space-5);
	box-shadow: var(--shadow);
	scroll-margin-top: 6.5rem;
}

.gallery-group__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.gallery-group__summary-main {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
}

.gallery-group__title {
	margin: 0;
	font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}

.gallery-group__summary-meta {
	color: var(--muted);
	font-size: 0.95rem;
	white-space: nowrap;
}

.gallery-group__properties {
	margin-top: var(--space-1);
}

.gallery-group__browser {
	display: grid;
	gap: var(--space-4);
}

.subgroup-panel {
	display: none;
}

.subgroup-panel.is-active {
	display: block;
}

.subgroup-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-3);
}

.subgroup-panel__path {
	margin: 0 0 0 auto;
	color: var(--muted);
	font-size: 0.95rem;
	text-align: right;
}

.subgroup-panel__back {
	border: 1px solid rgba(0, 0, 0, 0.2);
	background: #fff;
	padding: 0.35rem 0.7rem;
	font: inherit;
	cursor: pointer;
}

.subgroup-cover-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: calc((3 * 260px) + (2 * var(--space-4)));
	margin-inline: auto;
	gap: var(--space-4);
}

.subgroup-cover {
	flex: 0 1 260px;
	width: min(260px, 100%);
	background: var(--surface);
	border: 1px solid rgba(0, 0, 0, 0.12);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	display: grid;
}

.subgroup-cover__trigger {
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 0;
	background: transparent;
	margin: 0;
	padding: 0;
	cursor: pointer;
	text-align: left;
}

.subgroup-cover__trigger--branch .subgroup-cover__title::after {
	content: " \203A";
	color: var(--muted);
}

.subgroup-cover__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.subgroup-cover__heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-2);
	padding: var(--space-3);
}

.subgroup-cover__title {
	display: inline;
	font-weight: 600;
}

.subgroup-cover__meta {
	display: inline;
	color: var(--muted);
	font-size: 0.92rem;
	white-space: nowrap;
}

.subgroup-cover__download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem var(--space-3) 0.75rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	text-decoration: none;
	font-size: 0.9rem;
}

.subgroup-cover__view-more {
	border: 0;
	background: transparent;
	width: 100%;
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.gallery-empty {
	margin: 0;
	padding: var(--space-4);
	border: 1px dashed rgba(0, 0, 0, 0.2);
	border-radius: var(--radius);
	color: var(--muted);
	background: rgba(255, 255, 255, 0.5);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--space-4);
}

.feature-card {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: var(--radius);
	padding: var(--space-4);
	background: #fff;
}

.feature-card__title {
	margin: 0 0 var(--space-2);
	font-size: 1.1rem;
}

.feature-card__copy {
	margin: 0;
	color: var(--muted);
}

.site-footer {
	padding: var(--space-3) 1rem;
	text-align: center;
	background: var(--bg-soft);
}

.site-footer__credit {
	margin: 0;
	color: var(--muted);
	font-size: 0.75rem;
}

.site-footer__credit a {
	text-decoration: none;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
	text-decoration: underline;
}

.lightbox {
	--lightbox-viewport-height: 100dvh;
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.88);
	z-index: 50;
	min-height: var(--lightbox-viewport-height);
	padding-top: calc(var(--space-4) + env(safe-area-inset-top, 0px));
	padding-right: calc(var(--space-4) + env(safe-area-inset-right, 0px));
	padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
	padding-left: calc(var(--space-4) + env(safe-area-inset-left, 0px));
}

.lightbox[aria-hidden="false"] {
	display: flex;
}

.lightbox__figure {
	margin: 0;
	max-width: min(94vw, 1080px);
	max-height: calc(var(--lightbox-viewport-height) - 8.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
	display: grid;
	justify-items: center;
}

.lightbox__figure img {
	display: block;
	max-width: 100%;
	max-height: calc(var(--lightbox-viewport-height) - 11rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
	margin-inline: auto;
}

.lightbox__figure figcaption {
	margin-top: var(--space-2);
	color: #fff;
	text-align: center;
}

.lightbox__close,
.lightbox__nav {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	width: 52px;
	height: 52px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 1.75rem;
	touch-action: manipulation;
}

.lightbox__close {
	top: calc(var(--space-3) + env(safe-area-inset-top, 0px));
	right: calc(var(--space-3) + env(safe-area-inset-right, 0px));
}

.lightbox__nav--prev {
	left: calc(var(--space-3) + env(safe-area-inset-left, 0px));
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__nav--next {
	right: calc(var(--space-3) + env(safe-area-inset-right, 0px));
	top: 50%;
	transform: translateY(-50%);
}

@media (min-width: 1200px) {
	.hero {
		min-height: clamp(520px, 78vh, 980px);
	}

	.hero__background {
		object-position: center 50%;
	}
}

@media (min-width: 621px) and (max-width: 1024px) {
	.hero {
		min-height: clamp(380px, 62vw, 620px);
	}

	.hero__content {
		width: 100%;
		min-height: 100%;
		display: grid;
		align-content: center;
		padding-inline: clamp(0.9rem, 2.2vw, 1.6rem);
	}

	.hero__title-image {
		width: clamp(340px, 70vw, 760px);
		max-width: 92%;
		filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.42));
	}

	.hero__background {
		object-position: center 52%;
	}

	.hero::after {
		background: linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.09) 0%,
			rgba(0, 0, 0, 0.07) 36%,
			rgba(0, 0, 0, 0.24) 100%
		);
	}
}

@media (max-width: 860px) {
	.site-header__inner {
		flex-direction: column;
		align-items: center;
		padding-block: var(--space-2);
	}

	.nav-list {
		justify-content: center;
		gap: var(--space-2) var(--space-3);
	}

	.brand {
		align-self: center;
	}

	.showcase-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.showcase-grid > .showcase-column {
		display: contents;
	}

}

@media (min-width: 621px) and (max-width: 860px) {
	.showcase-grid .showcase-card {
		order: 10;
	}

	.showcase-grid a[href*="NXtc9toTTh8"] {
		order: 1;
	}

	.showcase-grid a[href*="CV7VIhWMnXM"] {
		order: 2;
	}

	.showcase-grid a[href="#group-estates"] {
		order: 3;
	}

	.showcase-grid a[href="#group-ranches"] {
		order: 4;
	}

	.showcase-grid a[href="#group-country-club"] {
		order: 5;
	}

	.showcase-grid a[href="#group-lake-homes"] {
		order: 6;
	}
}

@media (max-width: 620px) {
	.nav-list {
		justify-content: center;
		gap: 0.35rem 0.75rem;
	}

	.nav-link {
		display: inline-block;
		padding: 0.2rem 0.15rem;
		font-size: 0.8rem;
		letter-spacing: 0.02em;
		white-space: nowrap;
	}

	.gallery-group {
		padding: var(--space-4);
	}

	.subgroup-cover-grid {
		max-width: none;
		gap: var(--space-3);
	}

	.subgroup-cover {
		flex-basis: 100%;
		max-width: none;
		width: 100%;
	}

	.hero {
		min-height: clamp(300px, 78vw, 470px);
	}

	.hero__content {
		width: 100%;
		padding-inline: 0.75rem;
		min-height: 100%;
		display: grid;
		align-content: center;
	}

	.hero__title-image {
		width: clamp(250px, 86vw, 560px);
		max-width: 95%;
		filter: drop-shadow(0 5px 16px rgba(0, 0, 0, 0.45));
	}

	.hero__background {
		object-position: center 50%;
	}

	.hero::after {
		background: linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.1) 0%,
			rgba(0, 0, 0, 0.08) 34%,
			rgba(0, 0, 0, 0.3) 100%
		);
	}

	.lightbox__nav {
		bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
		top: auto;
		transform: none;
		width: 64px;
		height: 64px;
		font-size: 2rem;
	}

	.lightbox__nav--prev {
		left: 18%;
	}

	.lightbox__nav--next {
		right: 18%;
	}

	.showcase-grid {
		grid-template-columns: 1fr;
	}

	.showcase-grid .showcase-card {
		order: 3;
	}

	.showcase-grid .showcase-card--video:first-of-type {
		order: 1;
	}

	.showcase-grid .showcase-card--video:last-of-type {
		order: 2;
	}

	.showcase-column--stack {
		grid-template-rows: auto;
	}

}
