:root {
  --ink: #14201c;
  --forest: #1B2A24;
  --forest-mid: #2A4037;
  --forest-soft: #3D5A4C;
  --paper: #F6F1E8;
  --paper-2: #EBE4D6;
  --cream: #FFFCF7;
  --muted: #5E6B64;
  --line: rgba(27, 42, 36, 0.12);
  --accent: #C4785A;
  --accent-deep: #9A4F35;
  --gold: #E8C9A0;
  --white: #FFFFFF;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(20, 32, 28, 0.12);
  --shadow-soft: 0 8px 24px rgba(20, 32, 28, 0.08);
  --max: 1100px;
  --font: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--forest-mid);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-deep); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--forest);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
}
.brand-mark { color: var(--forest); flex-shrink: 0; }
.brand-text {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--forest);
  border-radius: 2px;
}

.site-nav {
  display: none;
  position: absolute;
  inset: calc(100% + 0px) 1rem auto;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.75rem;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-weight: 500;
}
.site-nav a:hover {
  background: var(--paper-2);
  color: var(--forest);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-mid); color: var(--cream); }
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: rgba(27, 42, 36, 0.22);
}
.btn-ghost:hover { background: var(--cream); color: var(--forest); }
.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
  background: var(--forest);
  color: var(--cream);
}
.btn-small:hover { background: var(--forest-mid); color: var(--cream); }

/* Hero with listing photo */
.hero-with-photo {
  position: relative;
  padding: 0;
  color: var(--cream);
  overflow: hidden;
  min-height: 34rem;
  display: flex;
  align-items: flex-end;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: var(--forest);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  /* Listing source is ~650px; avoid harsh pixelation by staying soft under overlay */
  image-rendering: auto;
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 32, 28, 0.88) 0%, rgba(20, 32, 28, 0.72) 42%, rgba(20, 32, 28, 0.45) 100%),
    linear-gradient(180deg, rgba(20, 32, 28, 0.25) 0%, rgba(20, 32, 28, 0.78) 100%);
}
.hero-with-photo .container {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 2.5rem;
}
.hero-with-photo .eyebrow { color: var(--gold); }
.hero-with-photo h1 { color: var(--cream); }
.hero-with-photo .lede { color: rgba(246, 241, 232, 0.86); }
.hero-with-photo .btn-ghost {
  color: var(--cream);
  border-color: rgba(246, 241, 232, 0.4);
}
.hero-with-photo .btn-ghost:hover {
  background: rgba(246, 241, 232, 0.12);
  color: var(--cream);
}
.hero-with-photo .btn-primary {
  background: var(--gold);
  color: var(--forest);
}
.hero-with-photo .btn-primary:hover {
  background: var(--cream);
  color: var(--forest);
}
.hero-with-photo .hero-stats li {
  background: rgba(255, 252, 247, 0.12);
  border-color: rgba(246, 241, 232, 0.18);
  backdrop-filter: blur(8px);
}
.hero-with-photo .hero-stats strong { color: var(--cream); }
.hero-with-photo .hero-stats span { color: rgba(246, 241, 232, 0.75); }

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  margin-bottom: 0.75rem;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.lede {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.hero-stats li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem;
}
.hero-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--forest);
}
.hero-stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

.strip {
  background: var(--forest);
  color: var(--cream);
  padding: 1.25rem 0;
}
.strip-grid { display: grid; gap: 1rem; }
.strip-grid strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.strip-grid span {
  color: rgba(246, 241, 232, 0.72);
  font-size: 0.92rem;
}

.section { padding: 4rem 0; }
.section-alt { background: var(--cream); }

.section-intro {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
}
.section-intro.left { margin-left: 0; text-align: left; }
.section-intro p:not(.eyebrow) { margin: 0; color: var(--muted); }

.plan-note {
  background: rgba(196, 120, 90, 0.1);
  border: 1px solid rgba(196, 120, 90, 0.28);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin: 0 0 1.75rem;
  color: var(--ink);
}

.card-grid { display: grid; gap: 1.15rem; }
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.section-alt .card { background: var(--white); }

.card-photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--forest-mid);
  cursor: zoom-in;
}
.card-photo-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-body { padding: 1.15rem 1.2rem 1.3rem; }
.plan-count {
  margin: 0 0 0.25rem;
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-meta {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.price-amount {
  font-family: var(--display);
  font-size: 1.85rem;
  color: var(--forest);
  font-weight: 700;
}
.price-unit { color: var(--muted); font-size: 0.95rem; }
.price-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.amenity-grid { display: grid; gap: 1rem; }
.amenity {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.2rem;
}
.amenity p { margin: 0; color: var(--muted); }
.amenity-muted { background: var(--paper); }

.gallery-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--forest-mid);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(transparent, rgba(20, 32, 28, 0.78));
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
}

.location-grid { display: grid; gap: 1.5rem; }
.location-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.location-list li { display: grid; gap: 0.15rem; }
.location-list strong {
  color: var(--forest);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 320px;
  background: var(--paper-2);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.info-grid { display: grid; gap: 1rem; }
.info-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.2rem;
}
.section .info-card { background: var(--white); }
.info-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.info-card li { margin-bottom: 0.35rem; }
.info-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.cta-row {
  margin-top: 1.75rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--cream);
  display: grid;
  gap: 1rem;
  align-items: center;
}
.cta-row h3 { color: var(--cream); margin-bottom: 0.35rem; }
.cta-row p { margin: 0; color: rgba(246, 241, 232, 0.78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-row .btn-primary { background: var(--gold); color: var(--forest); }
.cta-row .btn-primary:hover { background: var(--cream); color: var(--forest); }
.cta-row .btn-ghost {
  color: var(--cream);
  border-color: rgba(246, 241, 232, 0.35);
}
.cta-row .btn-ghost:hover {
  background: rgba(246, 241, 232, 0.1);
  color: var(--cream);
}

.inquire-grid { display: grid; gap: 1.75rem; }
.form-wiring-note {
  margin-top: 1rem !important;
  padding: 0.75rem 0.9rem;
  background: rgba(196, 120, 90, 0.1);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--accent-deep) !important;
}
.inquiry-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.95rem;
}
.section-alt .inquiry-form { background: var(--white); }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; gap: 0.95rem; }
label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--forest);
}
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(27, 42, 36, 0.16);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(196, 120, 90, 0.35);
  border-color: var(--accent);
}
.form-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.resident-grid { display: grid; gap: 1rem; }
.resident-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.resident-card p { margin: 0; color: var(--muted); }
.resident-card .btn { justify-self: start; }
.resident-card-alert {
  background: rgba(196, 120, 90, 0.08);
  border-color: rgba(196, 120, 90, 0.28);
}
.resident-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.site-footer {
  background: var(--forest);
  color: rgba(246, 241, 232, 0.82);
  padding: 2.5rem 0;
}
.footer-inner { display: grid; gap: 1.5rem; }
.footer-brand {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--cream);
  margin: 0 0 0.5rem;
}
.site-footer a { color: var(--gold); }
.site-footer p { margin: 0 0 0.4rem; }
.footer-links { margin: 0.55rem 0 0 !important; }
.footer-links a { text-decoration: none; }
.footer-credit {
  margin-top: 0.75rem !important;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Lightbox */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 16, 14, 0.92);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}
.lightbox-figure {
  margin: 0;
  max-height: calc(100vh - 2rem);
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}
.lightbox-img {
  max-width: min(960px, 92vw);
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: #111;
}
.lightbox-caption {
  color: rgba(246, 241, 232, 0.85);
  text-align: center;
  font-size: 0.95rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  border: 0;
  background: rgba(246, 241, 232, 0.12);
  color: var(--cream);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.lightbox-prev, .lightbox-next { align-self: center; }

body.lightbox-open { overflow: hidden; }

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav a {
    padding: 0.45rem 0.65rem;
    font-size: 0.93rem;
  }
  .hero-with-photo { min-height: 38rem; }
  .strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .card-grid.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amenity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .location-grid,
  .inquire-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
    gap: 2rem;
  }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-row { grid-template-columns: 1.4fr auto; }
  .resident-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .footer-meta { text-align: right; }
}

@media (min-width: 980px) {
  .card-grid.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.9rem;
  }
  .hero-with-photo { min-height: 42rem; }
  .card-photo-img { height: 200px; }
}
