:root {
  --navy: #17345a;
  --navy-dark: #0f2540;
  --cream: #f6f1e8;
  --sand: #e7d7bf;
  --text: #23313f;
  --muted: #687585;
  --white: #ffffff;
  --shadow: 0 15px 40px rgba(15, 37, 64, 0.12);
  --radius: 20px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #fcfbf8;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}
.narrow { max-width: 860px; }
.text-center { text-align: center; }
.section { padding: 84px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--navy);
  margin: 0 0 12px;
  font-weight: 700;
}
.section-heading h2,
h1, h2, h3,
.brand-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
}
h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: .94;
  margin: 0 0 20px;
  font-weight: 600;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin: 0 0 14px;
  color: var(--navy-dark);
}
h3 {
  font-size: 1.55rem;
  margin: 0 0 12px;
  line-height: 1.05;
}
.lead {
  font-size: 1.18rem;
  color: var(--muted);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 52, 90, .08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}
.brand { display: flex; flex-direction: column; }
.brand-title {
  font-size: 2rem;
  color: var(--navy-dark);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.brand-subtitle {
  color: var(--muted);
  font-size: .92rem;
  margin-top: 4px;
}
.site-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.site-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
}
.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--navy-dark);
  font-size: 1.6rem;
}
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: clip;
}
.hero-image,
.hero-image img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero-image img {
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(15, 37, 64, .78) 0%, rgba(15, 37, 64, .4) 45%, rgba(15, 37, 64, .12) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 100px 0 70px;
  max-width: 700px;
}
.hero-copy {
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.92);
}
.hero .eyebrow { color: var(--sand); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease, border .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary {
  border: 1px solid rgba(255,255,255,.7);
  color: white;
  background: rgba(255,255,255,.08);
}
.btn-secondary:hover { background: rgba(255,255,255,.18); }
.intro { background: white; }
.section-flourish {
  width: 120px;
  height: 22px;
  margin: 0 auto 20px;
  position: relative;
}
.section-flourish::before,
.section-flourish::after {
  content: '';
  position: absolute;
  top: 10px;
  width: 45px; height: 1px;
  background: rgba(23,52,90,.25);
}
.section-flourish::before { left: 0; }
.section-flourish::after { right: 0; }
.section-flourish { border-top: 10px solid transparent; }
.section-flourish::marker { content:''; }
.gallery { background: linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%); }
.section-heading { margin-bottom: 30px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.span-2-col { grid-column: span 2; }
.span-2-row { grid-row: span 2; }
.features { background: var(--cream); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.feature-card {
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(23,52,90,.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 28px rgba(15, 37, 64, 0.06);
}
.icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.feature-card p { color: var(--muted); margin: 0; }
.layout-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: start;
}
.layout-copy p,
.contact-copy p,
.layout-list { color: var(--muted); }
.layout-list {
  padding-left: 20px;
  margin: 22px 0 0;
}
.layout-list li { margin-bottom: 10px; }
.mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.mini-gallery img {
  border-radius: 18px;
  height: 210px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.contact { background: var(--navy-dark); color: white; }
.contact .eyebrow,
.contact h2,
.contact-copy p { color: white; }
.contact-form {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: block;
  margin-bottom: 14px;
}
.contact-form span {
  display: block;
  font-size: .92rem;
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.95);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
}
.btn-block { width: 100%; }
.site-footer {
  background: #0c1d32;
  color: rgba(255,255,255,.82);
  padding: 22px 0;
  font-size: .92rem;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid,
  .layout-grid,
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mobile-toggle { display: block; }
  .site-nav {
    position: absolute;
    right: 20px;
    top: calc(100% + 10px);
    background: white;
    border: 1px solid rgba(23,52,90,.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 190px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .span-2-col, .span-2-row { grid-column: auto; grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .hero-content { padding-top: 90px; }
}


/* Version 2 additions */
.price-line {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
}
.price-line span {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .75rem;
  color: rgba(255,255,255,.8);
}
.price-line strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  line-height: 1;
}
.income { background: var(--navy-dark); color: white; }
.income-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}
.income h2, .income .eyebrow { color: white; }
.income-copy > p { color: rgba(255,255,255,.84); }
.income-note { font-size: .88rem; color: rgba(255,255,255,.62) !important; }
.income-number {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: 34px;
  text-align: center;
}
.income-number span, .income-number small { display: block; color: rgba(255,255,255,.72); }
.income-number strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1;
  margin: 12px 0;
}
.location { background: #fff; }
.location-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 38px;
  align-items: center;
}
.map-frame {
  min-height: 480px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(23,52,90,.08);
}
.map-frame iframe { width: 100%; height: 480px; border: 0; display: block; }
.location-copy > p { color: var(--muted); }
.destination-list { display: grid; gap: 14px; margin-top: 24px; }
.destination-list div {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--cream);
  border-left: 4px solid var(--navy);
}
.destination-list strong, .destination-list span { display: block; }
.destination-list span { color: var(--muted); font-size: .92rem; margin-top: 3px; }
.financing { background: linear-gradient(135deg, #efe5d6, #f8f4ed); }
.financing-card {
  display: grid;
  grid-template-columns: .9fr 1.25fr auto;
  align-items: center;
  gap: 30px;
  padding: 38px;
  border-radius: 26px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(23,52,90,.08);
  box-shadow: var(--shadow);
}
.financing-card h2 { margin-bottom: 0; }
.financing-card > p { color: var(--muted); margin: 0; }
.footer-disclaimer {
  flex-basis: 100%;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .75rem;
  color: rgba(255,255,255,.58);
}
@media (max-width: 980px) {
  .income-grid, .location-grid, .financing-card { grid-template-columns: 1fr; }
  .financing-card .btn { justify-self: start; }
}
@media (max-width: 760px) {
  .site-nav { max-height: 70vh; overflow-y: auto; }
  .map-frame, .map-frame iframe { min-height: 360px; height: 360px; }
  .price-line { display: flex; width: fit-content; }
}

/* Version 4: broader home-first positioning */
.hero-tagline {
  display: inline-block;
  margin: -10px 0 22px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--sand);
  letter-spacing: .02em;
}

/* Version 5: visual location map and consolidated disclosures */
.map-frame {
  margin: 0;
  min-height: 0;
  background: #fff;
}
.map-frame img {
  width: 100%;
  aspect-ratio: 2.1 / 1;
  object-fit: cover;
  display: block;
}
.map-frame figcaption {
  padding: 10px 16px 12px;
  color: var(--muted);
  font-size: .8rem;
  background: #fff;
}
.disclosures-section {
  padding: 22px 0;
  background: #f4efe7;
  border-top: 1px solid rgba(23,52,90,.08);
}
.disclosures {
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(23,52,90,.1);
  border-radius: 14px;
  padding: 0 18px;
}
.disclosures summary {
  cursor: pointer;
  padding: 14px 0;
  color: var(--navy-dark);
  font-weight: 700;
  font-size: .92rem;
}
.disclosures p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .map-frame img { aspect-ratio: 1.45 / 1; }
}

/* Version 7: stronger upstairs independence and streamlined Google map location section */
.income-side {
  display: grid;
  gap: 16px;
}
.upstairs-entry-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
}
.independence-points {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.independence-points div {
  padding: 14px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
}
.independence-points strong,
.independence-points span { display: block; }
.independence-points span {
  margin-top: 3px;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}
.location-heading { max-width: 850px; margin-left: auto; margin-right: auto; }
.location-intro { color: var(--muted); font-size: 1.08rem; }
.map-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 34px;
}
.map-live iframe { min-height: 430px; height: 100%; }
.map-frame figcaption { min-height: 45px; }
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.nearby-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 145px;
  padding: 20px;
  background: var(--cream);
  border: 1px solid rgba(23,52,90,.09);
  border-radius: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nearby-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,37,64,.1);
}
.nearby-card.featured {
  background: var(--navy-dark);
  color: white;
}
.nearby-card strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.05;
}
.nearby-card span:last-child {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 4px;
}
.nearby-card.featured span:last-child { color: rgba(255,255,255,.75); }
.nearby-mode {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .7rem;
  font-weight: 700;
  color: var(--navy);
}
.nearby-card.featured .nearby-mode { color: var(--sand); }
.distance-note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
}
@media (max-width: 980px) {
  .map-pair { grid-template-columns: 1fr; }
  .nearby-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nearby-grid { grid-template-columns: 1fr; }
  .map-live iframe { min-height: 330px; height: 330px; }
}

/* Version 8 — prominent upstairs residence listing */
.upstairs-showcase {
  background: #eef3f6;
  border-top: 1px solid rgba(23,52,90,.08);
  border-bottom: 1px solid rgba(23,52,90,.08);
}
.upstairs-heading-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 34px;
  align-items: start;
}
.upstairs-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
}
.upstairs-summary-card {
  background: var(--navy-dark);
  color: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.upstairs-summary-card span,
.upstairs-summary-card small {
  display: block;
  color: rgba(255,255,255,.75);
}
.upstairs-summary-card strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  margin: 8px 0;
}
.upstairs-summary-card p {
  margin: 18px 0 0;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
}
.upstairs-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 34px 0 24px;
}
.upstairs-facts div {
  background: white;
  border: 1px solid rgba(23,52,90,.09);
  border-radius: 18px;
  padding: 20px;
}
.upstairs-facts strong,
.upstairs-facts span { display: block; }
.upstairs-facts strong {
  color: var(--navy-dark);
  margin-bottom: 7px;
}
.upstairs-facts span {
  color: var(--muted);
  font-size: .9rem;
}
.upstairs-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
}
.upstairs-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}
.upstairs-photo.featured { grid-column: span 2; grid-row: span 2; }
.upstairs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-note {
  color: var(--muted);
  font-size: .78rem;
  margin: 14px 0 0;
}
@media (max-width: 980px) {
  .upstairs-heading-grid { grid-template-columns: 1fr; }
  .upstairs-facts { grid-template-columns: repeat(2, 1fr); }
  .upstairs-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .upstairs-facts { grid-template-columns: 1fr; }
  .upstairs-photo-grid { grid-template-columns: 1fr; grid-auto-rows: 235px; }
  .upstairs-photo.featured { grid-column: auto; grid-row: auto; }
}

/* Version 9 — larger photo presentation and full-screen lightbox */
.storm-proof {
  width: fit-content;
  margin: -10px 0 24px;
  padding: 9px 14px;
  border-left: 3px solid var(--sand);
  background: rgba(15, 37, 64, .36);
  color: rgba(255,255,255,.95);
  font-weight: 600;
  font-size: .94rem;
}
.gallery-instruction {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.upstairs-gallery-instruction { margin: 0 0 18px; }
.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 20px;
}
.gallery-card,
.upstairs-photo,
.mini-gallery img {
  position: relative;
}
.gallery-card img,
.upstairs-photo img,
.mini-gallery img,
.upstairs-entry-photo {
  cursor: zoom-in;
  transition: transform .25s ease, filter .25s ease;
}
.gallery-card:hover img,
.upstairs-photo:hover img,
.mini-gallery img:hover,
.upstairs-entry-photo:hover {
  transform: scale(1.025);
  filter: brightness(.94);
}
.zoomable-photo:focus-visible {
  outline: 4px solid #66a5d8;
  outline-offset: 4px;
}
.upstairs-photo-grid {
  grid-auto-rows: 300px;
  gap: 20px;
}
.mini-gallery img { height: 270px; }
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 88px;
  background: rgba(5, 13, 23, .94);
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox-content {
  margin: 0;
  width: min(1320px, 100%);
  height: min(86vh, 920px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox-image {
  max-width: 100%;
  max-height: calc(100% - 54px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 70px rgba(0,0,0,.45);
}
.lightbox-caption {
  min-height: 34px;
  padding-top: 14px;
  text-align: center;
  color: rgba(255,255,255,.88);
  font-size: .95rem;
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: 0;
  color: white;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 3px solid #9dcbf2; outline-offset: 3px; }
.lightbox-close {
  top: 22px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  width: 54px;
  height: 72px;
  margin-top: -36px;
  border-radius: 14px;
  font-size: 3rem;
  line-height: 1;
}
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 290px; }
  .upstairs-photo-grid { grid-auto-rows: 280px; }
}
@media (max-width: 650px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 285px; }
  .lightbox { padding: 68px 12px 28px; }
  .lightbox-content { height: 82vh; }
  .lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 52px;
    height: 48px;
    margin: 0;
    font-size: 2.4rem;
  }
  .lightbox-prev { left: calc(50% - 62px); }
  .lightbox-next { right: calc(50% - 62px); }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-caption { font-size: .82rem; padding: 10px 68px 0; }
  .mini-gallery img { height: 240px; }
}

.hidden-field {
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  width: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  font-weight: 700;
  text-align: center;
}
.form-status.success { color: #e7f7e9; }
.form-status.error { color: #ffd8d8; }
.contact-form button:disabled { opacity: .7; cursor: wait; }
