:root {
  --white: #ffffff;
  --navy: #0b1f3a;
  --ink: #26384f;
  --muted: #647286;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #edf5ff;
  --blue-line: #cddff8;
  --surface: #f6f9fc;
  --section: #fbfcfe;
  --line: #e2e8f0;
  --line-strong: #c8d7ec;
  --footer: #071a31;
  --footer-text: #b6c6da;
  --shadow: 0 22px 60px rgba(15, 42, 78, 0.1);
  --small-shadow: 0 12px 28px rgba(15, 42, 78, 0.07);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(205, 223, 248, 0.42), transparent 30%),
    radial-gradient(circle at 86% 34%, rgba(248, 245, 238, 0.74), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 30%, #f8f5ee 58%, #eef6ff 82%, #ffffff 100%);
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

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

img.image-missing {
  opacity: 0;
}

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

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

.section {
  padding: 96px 0;
}

.soft-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(237, 245, 255, 0.92) 54%, rgba(248, 245, 238, 0.72) 100%);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2200;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

main {
  padding-top: 78px;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 32px rgba(15, 42, 78, 0.08);
}

.nav {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand-logo {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
}

.brand-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-menu,
.nav-links {
  display: flex;
  align-items: center;
}

.nav-menu {
  gap: 28px;
}

.nav-links {
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 800;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.nav-cta {
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: #0b3b78;
  border-color: #0b3b78;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(11, 59, 120, 0.14);
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.nav-cta::after {
  content: none;
}

.nav-cta:hover {
  color: var(--white);
  background: #082f61;
  border-color: #082f61;
  box-shadow: 0 8px 18px rgba(11, 59, 120, 0.18);
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(11, 59, 120, 0.14);
}

.nav-cta:focus-visible {
  outline: 3px solid rgba(11, 59, 120, 0.22);
  outline-offset: 3px;
  border-color: #0b3b78;
}

.btn-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--blue-line);
}

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

.hero-shell {
  background: var(--white);
}

.hero {
  position: relative;
  min-height: clamp(640px, calc(100svh - 78px), 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #dce6f1;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  height: clamp(72px, 10vh, 110px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 31%, rgba(255, 255, 255, 0.34) 58%, rgba(7, 26, 49, 0.24) 100%),
    linear-gradient(to bottom, rgba(7, 26, 49, 0.10), rgba(7, 26, 49, 0.12) 62%, rgba(255, 255, 255, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 610px;
  padding: clamp(84px, 12vh, 118px) 0 clamp(128px, 18vh, 172px);
  margin-left: max(48px, calc((100vw - var(--container)) / 2 + 24px));
}

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

.hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

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

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.08;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 5.4vw, 5rem);
  font-weight: 700;
  line-height: 1;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(2.9rem, 5.2vw, 4.9rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 800;
}

.hero-text {
  max-width: 470px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 1.07rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.78s ease 0.42s forwards;
}

.hero-animate {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.78s ease forwards;
}

.hero-animate:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-animate:nth-child(3) {
  animation-delay: 0.24s;
}

.hero-animate:nth-child(4) {
  animation-delay: 0.34s;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 44px;
}

.hero-shell + .units-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 48%, #f4f8ff 100%);
  padding-top: 72px;
}

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 800;
}

.section-link i {
  transition: transform 0.22s ease;
}

.section-link:hover i {
  transform: translateX(4px);
}

.page-hero {
  padding: 86px 0 76px;
  background: linear-gradient(135deg, var(--white) 0%, #f2f7ff 58%, #eaf3ff 100%);
}

.page-hero-inner {
  max-width: 830px;
  text-align: center;
}

.page-hero-inner h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 5vw, 4.4rem);
}

.page-hero-inner p:last-child {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.03rem;
}

.search-section {
  position: relative;
  z-index: 2;
  padding: 0 0 26px;
  background: linear-gradient(180deg, #eaf3ff 0%, var(--white) 82%);
}

.page-search {
  margin-top: -34px;
}

.search-bar {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1.2fr auto;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--small-shadow);
}

.search-bar label {
  display: grid;
  gap: 8px;
}

.search-bar span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.search-bar input,
.search-bar select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar input:focus,
.search-bar select:focus {
  border-color: var(--blue-line);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.search-button {
  align-self: end;
}

.filter-control {
  display: grid;
  min-width: 220px;
  gap: 8px;
}

.filter-control span,
.contact-form label span,
.schedule-fieldset > span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-control select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-control select:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue-line);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

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

.unit-card,
.feature-card,
.step-card,
.location-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(15, 42, 78, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.unit-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.unit-card:hover,
.feature-card:hover,
.step-card:hover,
.location-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--small-shadow);
}

.unit-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--blue-soft);
  border-radius: 7px 7px 0 0;
}

.unit-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.unit-media .type-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.unit-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.unit-body h3,
.modal-copy h2 {
  margin-bottom: 0;
}

.unit-location,
.unit-types,
.modal-location {
  display: inline-flex;
  align-items: start;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.unit-highlight {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.unit-body .btn {
  width: fit-content;
  margin-top: auto;
}

.empty-results {
  margin: 24px 0 0;
  padding: 18px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
}

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

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

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

#locations {
  position: relative;
  overflow: hidden;
}

#locations::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 52%);
  pointer-events: none;
  opacity: 0.65;
}

#locations .container {
  position: relative;
  z-index: 1;
}

#process {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 48%, rgba(237, 245, 255, 0.9) 100%);
}

.section-subtitle {
  max-width: 705px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.feature-card,
.step-card,
.location-card {
  padding: 28px 26px;
}

.location-card {
  min-height: 238px;
  display: grid;
  gap: 16px;
  border-color: rgba(226, 232, 240, 0.92);
  box-shadow: 0 12px 30px rgba(15, 42, 78, 0.06);
}

.location-card:hover {
  transform: translateY(-5px);
  border-color: rgba(203, 216, 236, 0.95);
  box-shadow: 0 18px 42px rgba(15, 42, 78, 0.09);
}

.location-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.location-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--blue-dark);
  font-size: 1rem;
}

.property-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.location-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}

.location-details {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.consider-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fbfcfe 0%, #f7f2e9 46%, #f8fbff 100%);
}

.consider-section .section-subtitle {
  margin-right: auto;
  margin-left: auto;
}

.legacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: clamp(28px, 4vw, 44px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 26, 49, 0.97), rgba(11, 31, 58, 0.9)),
    url("assets/spotlight/Landscape Gardens.jpg") center/cover;
  border: 1px solid rgba(143, 181, 238, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(15, 42, 78, 0.14);
}

.legacy-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.legacy-kicker {
  width: fit-content;
  padding: 7px 11px;
  color: #dceaff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-copy h3,
.lumiventt-copy h3,
.service-block h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.legacy-copy h3,
.legacy-copy p {
  color: var(--white);
}

.legacy-copy p {
  max-width: 680px;
  margin: 0;
  color: #d7e5f8;
}

.legacy-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.legacy-stats div {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.legacy-stats strong {
  color: var(--white);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.1;
}

.legacy-stats span {
  color: #b6c6da;
  font-size: 0.9rem;
  font-weight: 700;
}

.consider-core-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.consider-card,
.service-card,
.community-card,
.lumiventt-panel,
.service-block {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 216, 236, 0.72);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 42, 78, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.consider-card:hover,
.service-card:hover,
.community-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--small-shadow);
}

.consider-card {
  display: grid;
  gap: 18px;
  min-height: 310px;
  padding: 28px;
}

.consider-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  font-size: 1.12rem;
}

.consider-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

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

.consider-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 700;
}

.consider-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 999px;
}

.lumiventt-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 24px;
}

.lumiventt-media {
  min-height: 360px;
  background: var(--blue-soft);
}

.lumiventt-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lumiventt-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 44px);
}

.lumiventt-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

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

.mini-feature-grid div {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 148px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-feature-grid i,
.service-card i,
.community-card i {
  color: var(--blue);
  font-size: 1.15rem;
}

.mini-feature-grid span,
.service-card span {
  color: var(--navy);
  font-weight: 800;
  line-height: 1.25;
}

.mini-feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.comfort-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.comfort-proof-grid article {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 216, 236, 0.72);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 42, 78, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.comfort-proof-grid article:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--small-shadow);
}

.comfort-proof-grid img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  background: var(--blue-soft);
}

.comfort-proof-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.comfort-proof-grid strong {
  color: var(--navy);
  line-height: 1.25;
}

.comfort-proof-grid span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.service-block {
  margin-bottom: 24px;
  padding: clamp(24px, 3vw, 34px);
}

.service-block .section-heading {
  margin-bottom: 22px;
}

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

.service-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-content: start;
  min-height: 156px;
  padding: 16px;
  box-shadow: none;
}

.service-card p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

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

.community-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 28px;
}

.community-card h3 {
  margin: 0;
}

.community-card p {
  margin: 0;
  color: var(--muted);
}

.feature-card p,
.step-card p,
.location-card p,
.cta-panel p,
.footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.step-card {
  position: relative;
  min-height: 260px;
}

.step-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--blue-line);
  font-size: 0.9rem;
  font-weight: 800;
}

.cta-band {
  padding-top: 76px;
  padding-bottom: 76px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 58%, #f8f5ee 100%);
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(237, 245, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 58%, rgba(248, 245, 238, 0.76) 100%);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
}

.cta-panel h2 {
  margin-bottom: 16px;
}

.cta-panel p {
  max-width: 700px;
}

.contact-section {
  background:
    linear-gradient(180deg, #eef6ff 0%, #fbfcfe 42%, #f8f5ee 78%, #f4f8ff 100%);
}

.contact-form-wrap {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: start;
  max-width: 100%;
  overflow: hidden;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--small-shadow);
}

.form-intro {
  position: sticky;
  top: 104px;
}

.form-intro h3 {
  margin-bottom: 22px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.contact-highlights {
  display: grid;
  gap: 12px;
}

.contact-highlights span,
.contact-highlights a {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.contact-highlights i,
.contact-socials i {
  color: var(--blue);
  line-height: 1.55;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact-socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.contact-socials a:hover {
  transform: translateY(-2px);
  background: var(--blue-soft);
  border-color: var(--blue-line);
}

.contact-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.schedule-fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.9fr 0.95fr 0.7fr;
  gap: 10px;
}

.schedule-grid label {
  min-width: 0;
}

.contact-form textarea {
  min-height: 132px;
  padding-top: 13px;
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-note.success {
  color: #047857;
}

.form-note.error {
  color: #b42318;
}

.modal-backdrop {
  z-index: 3000;
}

.modal {
  z-index: 3010;
}

.modal-backdrop.show {
  background: rgba(7, 26, 49, 0.72);
  opacity: 1;
  backdrop-filter: blur(4px);
}

.unit-modal .modal-dialog {
  width: min(100% - 38px, 1040px);
  max-width: 1040px;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-height: calc(100svh - 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: start;
  gap: 0;
  overflow: auto;
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  top: 14px;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  z-index: 30;
  width: 42px;
  height: 42px;
  margin: 14px 14px -56px 0;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(15, 42, 78, 0.14);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: var(--blue);
  background: var(--white);
  border-color: var(--blue-line);
}

.modal-close:focus-visible {
  color: var(--blue);
  background: var(--white);
  border-color: var(--blue-line);
  outline: 3px solid rgba(37, 99, 235, 0.16);
  outline-offset: 2px;
}

.modal-close:active {
  transform: translateY(1px);
}

.modal-gallery {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
}

.carousel-main {
  position: relative;
  display: grid;
  overflow: hidden;
  background: transparent;
  border-radius: var(--radius);
}

.carousel-image-button {
  display: grid;
  grid-area: 1 / 1;
  width: 100%;
  padding: 0;
  background: var(--white);
  border: 0;
  cursor: zoom-in;
  line-height: 0;
}

.carousel-image-button > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(56vh, 440px);
  object-fit: contain;
  object-position: center;
}

.carousel-control {
  position: relative;
  grid-area: 1 / 1;
  align-self: center;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--small-shadow);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-control:hover {
  background: var(--white);
  transform: scale(1.04);
}

.carousel-prev {
  justify-self: start;
  margin-left: 14px;
}

.carousel-next {
  justify-self: end;
  margin-right: 14px;
}

.carousel-counter {
  position: relative;
  grid-area: 1 / 1;
  align-self: end;
  justify-self: end;
  z-index: 2;
  margin: 0 14px 14px 0;
  padding: 6px 10px;
  color: var(--white);
  background: rgba(7, 26, 49, 0.72);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.image-lightbox {
  z-index: 4000;
}

body.lightbox-open .unit-modal.show .modal-dialog,
body.lightbox-open .unit-modal.open .modal-dialog {
  opacity: 0;
  pointer-events: none;
}

.image-lightbox .modal-dialog,
.image-lightbox .modal-content {
  margin: 0;
}

.image-lightbox-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(7, 26, 49, 0.9);
  border: 0;
}

.image-lightbox img {
  position: relative;
  z-index: 1;
  max-width: min(100%, 1180px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  pointer-events: none;
}

.image-lightbox-close,
.image-lightbox-control {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  pointer-events: auto;
}

.image-lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}

.image-lightbox-control {
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.image-lightbox-prev {
  left: 20px;
}

.image-lightbox-next {
  right: 20px;
}

.image-lightbox-counter {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(7, 26, 49, 0.72);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.carousel-thumb {
  height: 66px;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0.72;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.carousel-thumb:hover,
.carousel-thumb.active {
  border-color: var(--blue);
  opacity: 1;
  transform: translateY(-1px);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-copy {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 34px;
}

.modal-copy > p {
  margin: 0;
  color: var(--muted);
}

.modal-detail-grid {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.modal-detail-grid h3 {
  margin-bottom: 8px;
}

.modal-detail-grid p,
.modal-detail-grid ul {
  margin: 0;
  color: var(--muted);
}

.modal-detail-grid ul {
  padding-left: 18px;
}

.footer {
  position: relative;
  padding: 58px 0 24px;
  color: var(--blue-soft);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(237, 245, 255, 0.08) 0%, transparent 22%),
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.2), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(143, 181, 238, 0.12), transparent 28%),
    linear-gradient(135deg, #07192e 0%, #071a31 54%, #0a2340 100%);
  border-top: 1px solid rgba(143, 181, 238, 0.18);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent 30%);
  pointer-events: none;
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(210px, 0.72fr) minmax(300px, 0.96fr);
  align-items: start;
  gap: clamp(34px, 5vw, 70px);
}

.footer .brand,
.footer h3 {
  color: var(--white);
}

.footer-brand-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.footer-brand-copy strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.15;
}

.footer-brand-copy small {
  width: fit-content;
  color: #9fc1f6;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
}

.footer p,
.footer a,
.footer-bottom {
  color: var(--footer-text);
}

.footer-brand-section p,
.footer-cta p {
  max-width: 380px;
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer a {
  display: block;
  margin-bottom: 9px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.footer-assistance li:hover {
  color: var(--blue);
}

.footer-assistance ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-assistance li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--footer-text);
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.35;
}

.footer-assistance li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: rgba(143, 181, 238, 0.75);
  border-radius: 999px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(143, 181, 238, 0.24);
  border-radius: 10px;
  transition: background 0.24s ease, transform 0.24s ease, color 0.24s ease;
}

.footer-social a:hover {
  color: var(--white);
  background: rgba(37, 99, 235, 0.36);
  transform: translateY(-2px);
}

.footer-contact-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.footer-contact-list a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-contact-list i {
  width: 15px;
  flex: 0 0 auto;
  padding-top: 4px;
  color: #9fc1f6;
}

.footer-cta {
  width: 100%;
  justify-self: stretch;
  max-width: 380px;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 0;
  margin-bottom: 0;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  font-weight: 800;
  box-shadow: none;
  transition: color 0.2s ease;
}

.footer-credit a i {
  font-size: 0.72rem;
}

.footer-credit a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid rgba(143, 181, 238, 0.18);
  font-size: 0.88rem;
}

.developer-modal .modal-dialog {
  width: min(100% - 32px, 620px);
  max-width: 620px;
}

.developer-modal-panel {
  position: relative;
  max-height: calc(100svh - 32px);
  padding: 34px;
  overflow: auto;
  background:
    linear-gradient(180deg, var(--white) 0%, #f7fbff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(15, 42, 78, 0.16);
}

.developer-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(15, 42, 78, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.developer-modal-close:hover,
.developer-modal-close:focus-visible {
  color: var(--ink);
  background: var(--blue-soft);
  border-color: var(--blue-line);
}

.developer-profile {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  padding-right: 22px;
}

.developer-avatar {
  width: 100%;
  max-width: 136px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(15, 42, 78, 0.12);
}

.developer-info {
  display: grid;
  gap: 13px;
  min-width: 0;
}

.developer-info .eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.developer-info h2 {
  margin: 0;
  font-size: 1.48rem;
  color: var(--navy);
  line-height: 1.15;
}

.developer-info p {
  margin: 0;
  max-width: 340px;
  color: var(--muted);
  line-height: 1.68;
}

.developer-portfolio-link,
.developer-modal .developer-portfolio-link {
  width: fit-content;
  min-width: 176px;
  min-height: 42px;
  padding: 0 20px;
  color: var(--white);
  background: var(--blue);
  background-color: var(--blue);
  border-color: var(--blue);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
  transform: none;
}

.developer-portfolio-link:hover,
.developer-portfolio-link:focus-visible,
.developer-portfolio-link:active,
.developer-modal .developer-portfolio-link:hover,
.developer-modal .developer-portfolio-link:focus-visible,
.developer-modal .developer-portfolio-link:active {
  color: var(--white);
  background: var(--blue-dark);
  background-color: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  transform: none;
}

.developer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 3px;
}

.developer-socials a,
.developer-modal .developer-socials a {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0;
  color: var(--navy);
  background: transparent;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: none;
  transition: color 0.18s ease;
}

.developer-socials a i,
.developer-modal .developer-socials a i {
  width: 15px;
  display: inline-flex;
  justify-content: center;
  color: var(--blue);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.developer-socials a span,
.developer-modal .developer-socials a span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: inherit;
}

.developer-socials a:hover,
.developer-socials a:focus-visible,
.developer-socials a:active,
.developer-modal .developer-socials a:hover,
.developer-modal .developer-socials a:focus-visible,
.developer-modal .developer-socials a:active {
  color: var(--navy);
  background: transparent;
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
}

.developer-socials a:hover i,
.developer-socials a:focus-visible i,
.developer-socials a:active i,
.developer-modal .developer-socials a:hover i,
.developer-modal .developer-socials a:focus-visible i,
.developer-modal .developer-socials a:active i {
  color: var(--blue-dark);
}

@media (max-width: 760px) {
  .developer-modal .modal-dialog {
    width: min(100% - 28px, 520px);
  }

  .developer-modal-panel {
    padding: 30px 24px 28px;
  }

  .developer-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding-right: 0;
    text-align: center;
  }

  .developer-avatar {
    width: 132px;
    max-width: 132px;
  }

  .developer-info {
    width: 100%;
    justify-items: center;
    gap: 13px;
  }

  .developer-info p {
    max-width: 100%;
  }

  .developer-portfolio-link,
  .developer-modal .developer-portfolio-link {
    width: min(100%, 240px);
  }

  .developer-socials {
    justify-content: center;
    gap: 10px 16px;
  }

  .developer-socials a,
  .developer-modal .developer-socials a {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 1120px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-cta {
    justify-self: start;
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .footer {
    padding-top: 48px;
  }

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

  .footer-brand-section,
  .footer-assistance,
  .footer-cta {
    max-width: none;
    justify-self: stretch;
    text-align: center;
  }

  .footer-brand-copy small,
  .footer-social,
  .footer-contact-list a {
    margin-right: auto;
    margin-left: auto;
  }

  .footer-assistance ul {
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }
  .footer-brand-section p,
  .footer-cta p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    text-align: center;
  }

  .footer-bottom span {
    width: 100%;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s ease, transform 0.72s ease;
  will-change: opacity, transform;
}

.reveal.fade-up {
  transform: translateY(22px);
}

.reveal.fade-left {
  transform: translateX(-28px);
}

.reveal.fade-right {
  transform: translateX(28px);
}

.reveal.fade-in {
  transform: translateY(16px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.feature-card:nth-child(1),
.step-card:nth-child(1),
.location-card:nth-child(1),
.unit-card:nth-child(1) {
  transition-delay: 0.05s;
}

.feature-card:nth-child(2),
.step-card:nth-child(2),
.location-card:nth-child(2),
.unit-card:nth-child(2) {
  transition-delay: 0.11s;
}

.feature-card:nth-child(3),
.step-card:nth-child(3),
.location-card:nth-child(3),
.unit-card:nth-child(3) {
  transition-delay: 0.16s;
}

.feature-card:nth-child(4),
.step-card:nth-child(4),
.location-card:nth-child(4),
.unit-card:nth-child(4) {
  transition-delay: 0.21s;
}

.feature-card:nth-child(5),
.step-card:nth-child(5),
.location-card:nth-child(5),
.unit-card:nth-child(5) {
  transition-delay: 0.26s;
}

.feature-card:nth-child(6),
.step-card:nth-child(6),
.location-card:nth-child(6),
.unit-card:nth-child(6) {
  transition-delay: 0.30s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .hero {
    min-height: clamp(600px, 68svh, 680px);
  }

  .hero-content {
    max-width: 560px;
    padding: 86px 0 138px;
    margin-left: 48px;
  }

  .units-grid,
  .features-grid,
  .consider-core-grid,
  .comfort-proof-grid,
  .service-grid,
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 12px;
  }

  .brand {
    max-width: calc(100% - 4px);
  }

  .menu-toggle {
    position: relative;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: end;
    gap: 4px;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(203, 216, 236, 0.95);
    box-shadow: 0 8px 18px rgba(15, 42, 78, 0.08);
  }

  .menu-toggle span {
    width: 19px;
    margin: 0;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 1001;
    width: min(320px, calc(100vw - 40px));
    display: grid;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--blue-line);
    border-radius: 10px;
    box-shadow: 0 18px 46px rgba(15, 42, 78, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    display: grid;
    gap: 4px;
  }

  .nav-links a {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 8px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(237, 245, 255, 0.82);
  }

  .nav-cta,
  .cta-panel .btn {
    width: 100%;
  }

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

  .search-button {
    grid-column: span 2;
  }

  .section {
    padding: 74px 0;
  }

  .hero-shell + .units-section {
    padding-top: 58px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading.centered {
    align-items: center;
  }

  .contact-form-wrap,
  .cta-panel,
  .legacy-panel,
  .lumiventt-panel,
  .footer-grid,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .modal-close,
  .modal-gallery,
  .modal-copy {
    grid-column: 1;
  }

  .modal-close,
  .modal-gallery {
    grid-row: 1;
  }

  .modal-copy {
    grid-row: 2;
  }

  .lumiventt-media {
    min-height: 300px;
  }

  .form-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  main {
    padding-top: 70px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .nav {
    min-height: 70px;
  }

  .nav-menu {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(292px, calc(100vw - 28px));
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-logo-img {
    max-height: 42px;
  }

  .brand-copy small {
    max-width: 170px;
  }

  .brand-copy strong {
    max-width: min(46vw, 190px);
    font-size: 0.92rem;
  }

  .hero {
    min-height: calc(100svh - 70px);
  }

  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 39%, rgba(255, 255, 255, 0.54) 68%, rgba(7, 26, 49, 0.26) 100%);
  }

  .hero-image {
    object-position: center bottom;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    padding: 54px 24px clamp(230px, 42vh, 340px);
    margin-left: 0;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.55rem);
  }

  .hero h1 {
    max-width: min(100%, 330px);
    overflow-wrap: break-word;
    font-size: clamp(2.18rem, 9.3vw, 2.75rem);
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 28px;
  }

  .section-link {
    max-width: 100%;
    min-height: 36px;
  }

  .hero-shell + .units-section {
    padding-top: 48px;
  }

  .hero-actions,
  .hero-actions .btn,
  .filter-control,
  .unit-body .btn,
  .form-actions .btn {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    min-width: 0;
    width: min(100%, 342px);
    max-width: 100%;
  }

  .hero-actions .btn {
    min-width: 0;
    width: min(100%, 342px);
    max-width: 100%;
  }

  .units-grid,
  .features-grid,
  .consider-core-grid,
  .comfort-proof-grid,
  .service-grid,
  .community-grid,
  .mini-feature-grid,
  .steps-grid,
  .location-grid,
  .search-bar,
  .schedule-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .search-button {
    grid-column: auto;
  }

  .unit-card {
    overflow: hidden;
  }

  .unit-media {
    height: clamp(188px, 60vw, 220px);
  }

  .unit-body {
    gap: 10px;
    padding: 18px;
  }

  .unit-body h3 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .unit-location,
  .unit-types {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .unit-highlight {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .type-badge {
    min-height: 26px;
    padding: 0 9px;
    font-size: 0.68rem;
  }

  .contact-form-wrap,
  .cta-panel,
  .legacy-panel,
  .consider-card,
  .community-card {
    padding: 24px;
  }

  .contact-form-wrap {
    gap: 24px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-width: 0;
    min-height: 46px;
    font-size: 0.92rem;
  }

  .contact-socials {
    justify-content: flex-start;
  }

  .footer {
    padding-bottom: 28px;
  }

  .footer-grid {
    gap: 34px;
  }

  .footer-social {
    justify-content: center;
  }

  .service-card {
    min-height: 0;
  }

  .lumiventt-media {
    min-height: 240px;
  }

  .form-actions,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .unit-modal .modal-dialog {
    width: 100%;
    max-width: none;
    min-height: 100%;
    margin: 0;
  }

  .modal-panel {
    min-height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }

  .modal-gallery {
    gap: 10px;
    padding: 58px 10px 10px;
  }

  .modal-close {
    top: 10px;
    z-index: 20;
    width: 44px;
    height: 44px;
    margin: 10px 10px -54px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 18px rgba(15, 42, 78, 0.12);
  }

  .carousel-image-button > img {
    max-height: 230px;
  }

  .carousel-control {
    width: 38px;
    height: 38px;
  }

  .carousel-prev {
    margin-left: 10px;
  }

  .carousel-next {
    margin-right: 10px;
  }

  .carousel-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .carousel-thumb {
    height: clamp(54px, 17vw, 66px);
  }

  .modal-copy {
    gap: 14px;
    padding: 22px;
  }

  .modal-copy h2 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }

  .modal-copy > p,
  .modal-detail-grid p,
  .modal-detail-grid li {
    font-size: 0.92rem;
  }

  .image-lightbox-panel {
    min-height: 100svh;
    padding: 18px;
  }

  .image-lightbox img {
    width: 100%;
    max-height: calc(100svh - 120px);
    object-fit: contain;
  }

  .image-lightbox-close {
    top: 12px;
    right: 12px;
  }

  .image-lightbox-control {
    width: 42px;
    height: 42px;
  }

  .image-lightbox-prev {
    left: 12px;
  }

  .image-lightbox-next {
    right: 12px;
  }

  .image-lightbox-counter {
    right: 14px;
    bottom: 14px;
  }

  .developer-modal-panel {
    padding: 28px 22px;
  }

  .developer-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .developer-socials {
    justify-content: center;
  }

}

@media (max-width: 380px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .nav {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-logo-img {
    max-height: 38px;
  }

  .brand-copy strong {
    max-width: 150px;
    font-size: 0.84rem;
  }

  .brand-copy small {
    font-size: 0.68rem;
  }

  .hero-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .contact-form-wrap {
    padding: 18px 16px;
  }

  .contact-highlights span,
  .contact-highlights a {
    font-size: 0.9rem;
  }

  .contact-socials {
    gap: 8px;
  }

  .contact-socials a {
    width: 34px;
    height: 34px;
  }

  .unit-body {
    padding: 16px;
  }

  .unit-modal .modal-dialog {
    width: 100%;
    margin: 0;
  }

  .modal-gallery {
    padding: 56px 8px 8px;
  }

  .modal-close {
    top: 10px;
    width: 42px;
    height: 42px;
    margin: 10px 10px -52px 0;
  }

  .modal-copy {
    padding: 18px;
  }

  .carousel-image-button > img {
    max-height: 210px;
  }

  .carousel-thumb {
    height: 52px;
  }

  .image-lightbox-panel {
    padding: 12px;
  }

  .image-lightbox-control {
    width: 38px;
    height: 38px;
  }
}

@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;
  }
}
