:root {
  --bg: #fafafa;
  --paper: #ffffff;
  --dark: #0f172a;
  --dark-soft: #142033;
  --dark-card: #182b38;
  --primary: #1e40af;
  --secondary: #60a5fa;
  --text: #111827;
  --muted: #5f6b7a;
  --line: rgba(15, 23, 42, 0.12);
  --glass: rgba(255, 255, 255, 0.78);
  --gold: #d9a441;
  --green: #496a59;
  --blur: 20px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-dark: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --container: 1180px;
  --header-height: 104px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open,
body.lightbox-open,
body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(96, 165, 250, 0.28);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--dark);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 104px 0;
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 250, 250, 0.86);
  backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: box-shadow 240ms ease, background 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(250, 250, 250, 0.94);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.top-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 8px 24px;
  color: #0b1830;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 220ms ease, opacity 220ms ease;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color 180ms ease;
}

.top-link:hover {
  color: var(--primary);
}

.top-copy,
.footer-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 64, 175, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.top-copy:hover,
.footer-copy:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.top-copy.is-copied,
.footer-copy.is-copied {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}

.top-icon {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(30, 64, 175, 0.24);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1;
}

.top-divider {
  width: 1px;
  height: 22px;
  background: rgba(15, 23, 42, 0.16);
}

.nav-shell {
  width: min(calc(100% - 48px), 1240px);
  min-height: 62px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30, 64, 175, 0.18);
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 20px 0;
  color: rgba(17, 24, 39, 0.78);
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--primary);
  transition: transform 200ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--radius);
  background: #fff;
  color: var(--dark);
  place-items: center;
  padding: 10px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  display: block;
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 13px 20px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease,
    border-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
}

.btn-primary:hover {
  background: var(--primary);
}

.btn-light {
  background: #fff;
  color: var(--dark);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.btn-light:hover {
  background: #f5f8ff;
  color: var(--primary);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

.ripple {
  position: absolute;
  z-index: -1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(96, 165, 250, 0.24);
  animation: ripple 620ms ease-out forwards;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(22);
    opacity: 0;
  }
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.62) 38%, rgba(15, 23, 42, 0.2) 72%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.68) 0%, rgba(15, 23, 42, 0.08) 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 92px 0 116px;
  max-width: 1180px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-dark .eyebrow,
.hero .eyebrow {
  color: var(--secondary);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: 5rem;
  line-height: 0.96;
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 600;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-location {
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 520px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-note {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats-section {
  position: relative;
  z-index: 5;
  margin-top: -58px;
  padding-bottom: 46px;
}

.glass-panel {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  overflow: hidden;
}

.stat-card {
  min-height: 112px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  padding: 18px;
  text-align: center;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-symbol,
.feature-mark,
.amenity-item span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary);
  font-weight: 900;
}

.stat-card strong {
  color: var(--dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
}

.stat-card span:last-child {
  color: #253044;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-price strong {
  font-size: 1.7rem;
}

.section-copy {
  max-width: 650px;
}

.section-copy p:not(.eyebrow):not(.notice) {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-copy p:not(.eyebrow):not(.notice) {
  color: rgba(255, 255, 255, 0.78);
}

.centered {
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: center;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 64px;
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 124px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.feature-card .feature-mark {
  grid-row: span 2;
}

.feature-card h3,
.feature-card p {
  margin: 0;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.actual-home-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, 248px);
  gap: 18px;
}

.media-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: #e9eef2;
}

.media-card picture,
.media-card img {
  width: 100%;
  height: 100%;
}

.media-card img {
  object-fit: cover;
  transition: transform 620ms ease;
}

.media-card:hover img {
  transform: scale(1.045);
}

.media-card figcaption {
  position: absolute;
  top: 16px;
  left: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--dark);
  padding: 9px 14px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.media-large {
  grid-row: span 2;
}

.section-features {
  position: relative;
  overflow: hidden;
}

.section-features::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.92)),
    url("assets/images/actual-home-2.jpg") center / cover;
  opacity: 1;
}

.section-features .container {
  position: relative;
  z-index: 1;
}

.comfort-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.comfort-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.comfort-item h3 {
  color: #fff;
}

.comfort-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.section-dark .feature-mark,
.section-dark .amenity-item span,
.comfort-item .feature-mark {
  background: var(--gold);
  color: var(--dark);
}

.fine-print {
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-style: italic;
}

.dark-text {
  color: var(--muted);
}

.notice {
  margin: 20px auto 0;
  border-radius: var(--radius);
  background: #eef3ef;
  color: #2f3d36;
  padding: 18px 22px;
  font-size: 0.94rem;
  font-weight: 700;
}

.interior-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.interior-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.interior-card picture,
.interior-card img {
  width: 100%;
  height: 280px;
}

.interior-card img {
  object-fit: cover;
  transition: transform 620ms ease;
}

.interior-card:hover img {
  transform: scale(1.045);
}

.interior-card div {
  padding: 24px;
}

.interior-card span {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: rgba(217, 164, 65, 0.18);
  color: #805d11;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.interior-card p {
  color: var(--muted);
}

.interior-card small {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-style: italic;
}

.section-gallery {
  padding-top: 20px;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #dbe4e8;
  padding: 0;
  text-align: left;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.gallery-item picture,
.gallery-item img {
  width: 100%;
  height: 100%;
}

.gallery-item img {
  object-fit: cover;
  transition: transform 540ms ease, filter 540ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.74), transparent);
  opacity: 0.9;
}

.gallery-item span {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.06);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.section-community {
  position: relative;
}

.community-layout {
  display: grid;
  gap: 36px;
}

.community-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.community-media .media-card {
  height: 330px;
  background: var(--dark-card);
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.amenity-item {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.88rem;
  font-weight: 800;
}

.section-location {
  background: linear-gradient(180deg, #fafafa 0%, #f0f5f8 100%);
}

.location-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  align-items: start;
}

.incentive-card {
  grid-row: span 3;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.86)),
    var(--gold);
  color: #fff;
  padding: 34px;
  box-shadow: var(--shadow);
}

.incentive-card .eyebrow {
  color: #10233d;
}

.incentive-card h2 {
  margin-bottom: 14px;
  color: #fff;
}

.incentive-card p {
  color: rgba(255, 255, 255, 0.92);
}

.incentive-card small {
  color: rgba(255, 255, 255, 0.78);
  font-style: italic;
}

.location-copy {
  max-width: 680px;
}

.route-cards {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.route-card,
.route-note,
.nearby-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.route-card {
  min-height: 154px;
  padding: 24px;
}

.route-card strong {
  display: block;
  color: var(--dark);
  font-size: 1.58rem;
  line-height: 1.08;
  font-weight: 800;
  text-transform: uppercase;
}

.route-card span {
  display: block;
  margin: 8px 0 10px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
}

.route-card p,
.route-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.nearby-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nearby-card {
  padding: 26px;
}

.nearby-card h3 {
  margin-bottom: 22px;
  color: var(--primary);
  text-transform: uppercase;
}

.nearby-card ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nearby-card li {
  display: grid;
  gap: 3px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.nearby-card li:first-child {
  padding-top: 0;
}

.nearby-card li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.nearby-card strong {
  color: var(--dark);
}

.nearby-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.route-note {
  grid-column: 2;
  padding: 28px;
}

.route-note h3 {
  margin-bottom: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
}

.contact-section {
  padding: 92px 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(20, 32, 51, 0.86)),
    url("assets/images/actual-home-1.jpg") center / cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: start;
}

.contact-copy h2 {
  font-size: 2.55rem;
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.contact-form {
  color: var(--dark);
  padding: 24px;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  color: #172033;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 122px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
  background: #fff;
}

.field small {
  min-height: 18px;
  color: #b91c1c;
  font-size: 0.78rem;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #fca5a5;
}

.form-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #334155;
  font-weight: 700;
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.form-status.is-success {
  color: #15803d;
}

.form-status.is-error {
  color: #b91c1c;
}

.form-status.is-visible {
  animation: status-in 260ms ease;
}

@keyframes status-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.submit-btn {
  min-width: 252px;
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(15, 23, 42, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 780ms linear infinite;
}

.submit-btn.is-loading .button-loader {
  display: inline-block;
}

.submit-btn.is-loading .button-label {
  opacity: 0.72;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.site-footer {
  background: #091424;
  color: rgba(255, 255, 255, 0.74);
  padding: 30px 0;
  font-size: 0.82rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr 1.5fr 1.8fr auto;
  gap: 20px;
  align-items: start;
}

.footer-grid p {
  margin: 0;
}

.footer-grid p:first-child,
.footer-grid p:last-child {
  color: #fff;
  font-weight: 700;
}

.footer-grid p:last-child {
  display: grid;
  gap: 8px;
}

.footer-copy {
  justify-self: start;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.form-modal.is-open {
  display: flex;
}

.form-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(16px);
}

.form-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(20, 32, 51, 0.94)),
    url("assets/images/actual-home-1.jpg") center / cover;
  color: #fff;
  padding: 34px;
  box-shadow: var(--shadow-dark);
}

.form-modal-dialog .contact-copy {
  max-width: 680px;
  margin-bottom: 22px;
}

.form-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--dark);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.84);
  backdrop-filter: blur(14px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
}

.lightbox figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1220;
  box-shadow: var(--shadow-dark);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #0b1220;
}

.lightbox figcaption {
  padding: 14px 18px;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--dark);
  box-shadow: var(--shadow-dark);
}

.lightbox-close {
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  font-weight: 900;
}

.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 58px;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: -22px;
}

.lightbox-next {
  right: -22px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal.is-pending {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.is-open {
    position: fixed;
    top: var(--header-height);
    left: 24px;
    right: 24px;
    display: grid;
    gap: 6px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    padding: 18px;
  }

  .nav-links.is-open a {
    padding: 13px 4px;
  }

  .stats-grid,
  .amenity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-card:nth-child(3) {
    border-right: 0;
  }

  .stat-card:nth-child(4),
  .stat-card:nth-child(5) {
    border-top: 1px solid rgba(15, 23, 42, 0.1);
  }

  .split-layout,
  .contact-layout,
  .location-layout {
    grid-template-columns: 1fr;
  }

  .incentive-card,
  .route-cards,
  .nearby-grid,
  .route-note {
    grid-column: auto;
  }

  .incentive-card {
    min-height: 320px;
  }

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

@media (max-width: 880px) {
  :root {
    --header-height: 74px;
  }

  .top-bar {
    display: none !important;
  }

  .top-divider {
    display: none;
  }

  .nav-shell {
    min-height: var(--header-height);
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding: 78px 0 94px;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .stats-grid,
  .feature-grid,
  .comfort-grid,
  .interior-grid,
  .community-media,
  .route-cards,
  .nearby-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
  }

  .stat-card:first-child {
    border-top: 0;
  }

  .actual-home-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .media-card,
  .community-media .media-card,
  .actual-home-grid .media-card {
    min-height: 300px;
  }

  .media-large {
    grid-row: auto;
  }

  .masonry-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .form-grid,
  .form-footer {
    grid-template-columns: 1fr;
  }

  .submit-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 72px;
  }

  .container,
  .nav-shell {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .top-bar {
    padding: 0;
    font-size: 0.78rem;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 710px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.38)),
      linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.06));
  }

  h1 {
    font-size: 2.75rem;
  }

  h2,
  .contact-copy h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .stats-section {
    margin-top: -44px;
  }

  .masonry-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .contact-form,
  .nearby-card,
  .route-note,
  .route-card,
  .incentive-card {
    padding: 22px;
  }

  .amenity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .amenity-item {
    min-height: 88px;
    align-items: center;
    gap: 10px;
    padding: 14px;
    font-size: 0.78rem;
    line-height: 1.25;
    word-break: normal;
  }

  .amenity-item span {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    font-size: 0.76rem;
  }

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

  .lightbox {
    padding: 16px;
  }

  .form-modal {
    padding: 14px;
  }

  .form-modal-dialog {
    max-height: calc(100vh - 28px);
    padding: 24px;
  }

  .form-modal-dialog .contact-copy {
    padding-right: 40px;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }

  .lightbox-nav {
    top: auto;
    bottom: -66px;
  }

  .lightbox-prev {
    left: 0;
  }

  .lightbox-next {
    right: 0;
  }
}

@media (max-width: 390px) {
  .amenity-grid {
    grid-template-columns: 1fr;
  }

  .amenity-item {
    min-height: 64px;
    font-size: 0.86rem;
  }
}
