/* ── Custom Properties ────────────────────────────────────────── */
:root {
  --green:       #4a6741;
  --green-dark:  #3a5232;
  --green-deep:  #2e4228;
  --green-light: #eef0eb;
  --charcoal:    #1c1c1c;
  --cream:       #f8f6f2;
  --white:       #ffffff;
  --text:        #2a2a2a;
  --text-muted:  #5a5e57;
  --font-serif:  Georgia, 'Times New Roman', serif;
  --font-sans:   system-ui, Arial, sans-serif;
  --max-width:   1200px;
  --radius:      4px;
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ── Layout Helpers ───────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 4rem 0; }

h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: normal;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

/* ── Navigation ───────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-menu a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--white); }

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--green);
    padding: 0.5rem 1.5rem 1rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-top: 1px solid rgba(255,255,255,0.15); }
  .nav-menu a { display: block; padding: 0.8rem 0; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: var(--cream);
  text-align: center;
  padding-top: 1rem;
}
.hero-content { padding: 0 1.5rem 0.75rem; }

.hero-svg {
  width: 80px;
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
}

.hero-address {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* 3-photo strip */
.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #c8cdc5;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Placeholder state — .missing class added by JS when image fails to load */
.hero-photo.missing img { visibility: hidden; }
/* .img-label span is injected by initPlaceholders() in main.js */
.hero-photo .img-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 0.8rem;
  color: #7a8076;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.hero-photo.missing .img-label { opacity: 1; }

@media (max-width: 767px) {
  .hero-strip { grid-template-columns: 1fr; }
}

/* ── Stats Bar ────────────────────────────────────────────────── */
.stats-bar {
  background: var(--charcoal);
  padding: 1.25rem 1.5rem;
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--white);
}
.stat-icon {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  position: relative;
  top: 2px;
}
.stat-dollar {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--green);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stat-dot {
  color: var(--green);
  font-size: 1.5rem;
  line-height: 1;
  user-select: none;
}

@media (max-width: 767px) {
  .stats-inner { gap: 0.4rem; }
  .stat-dot { display: none; }
  .stats-inner { justify-content: flex-start; }
  .stat { flex: 0 0 calc(50% - 0.5rem); }
}

/* ── About ────────────────────────────────────────────────────── */
.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-description p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.75;
}
.about-description p:last-child { margin-bottom: 0; }

.about-highlights {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
}

.highlight-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(74,103,65,0.2);
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.highlight-list li:last-child { border-bottom: none; }
.highlight-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Gallery ──────────────────────────────────────────────────── */
.gallery-section { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #c8cdc5;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Placeholder state — .missing class added by JS when image fails to load */
.gallery-item.missing img { visibility: hidden; }
/* .img-label span is injected by initPlaceholders() in main.js */
.gallery-item .img-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 0.75rem;
  color: #7a8076;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.gallery-item.missing .img-label { opacity: 1; }

@media (max-width: 1023px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .gallery-grid { grid-template-columns: 1fr; } }

/* ── Lightbox ─────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--green); }

.lightbox-close { top: 1rem;   right: 1.5rem; }
.lightbox-prev  { left: 1rem;  top: 50%;  transform: translateY(-50%); font-size: 3rem; }
.lightbox-next  { right: 1rem; top: 50%;  transform: translateY(-50%); font-size: 3rem; }

/* ── Features + Pricing ───────────────────────────────────────── */
.features-pricing { background: var(--cream); }

.fp-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

/* Feature groups */
.feature-group { margin-bottom: 2rem; }
.feature-group:last-child { margin-bottom: 0; }

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
  margin-top: 0.5rem;
}
.feature-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
}

/* Pricing card */
.pricing-card {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: sticky;
  top: 80px;
}

.price-main {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.price-period {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
}
.price-deposit {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.price-details {
  margin-bottom: 1.75rem;
}
.price-details li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.price-details li:last-child { border-bottom: none; }
.price-details li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  flex-shrink: 0;
}

.price-cta {
  display: block;
  text-align: center;
  background: var(--white);
  color: var(--green);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
.price-cta:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

@media (max-width: 1023px) {
  .fp-grid { grid-template-columns: 1fr; }
  .pricing-card { position: static; }
}
@media (max-width: 767px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* ── Neighborhood ─────────────────────────────────────────────────── */
.neighborhood { background: var(--green-light); }

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.nbhd-block {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--green);
}
.nbhd-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.4rem;
}

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

/* ── Contact ──────────────────────────────────────────────────── */
.contact { background: var(--cream); }

.contact-inner { text-align: center; }

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  margin-top: -0.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.contact-person {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--charcoal);
}

.contact-phone,
.contact-email {
  font-size: 1.05rem;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.contact-phone:hover,
.contact-email:hover { color: var(--green); }

.map-placeholder {
  background: #d8dcd5;
  height: 300px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}
.map-placeholder small { font-size: 0.8rem; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 1.25rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.footer-inner a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-inner a:hover { color: var(--white); }

@media (max-width: 767px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Responsive Polish ────────────────────────────────────────── */

/* Scroll offset so sticky nav doesn't hide section headings on anchor click */
[id] { scroll-margin-top: 70px; }

/* Reduce section vertical padding on mobile */
@media (max-width: 767px) {
  section { padding: 2.5rem 0; }
  h2 { font-size: 1.5rem; }
}

/* Reduce section padding slightly on tablet */
@media (max-width: 1023px) {
  section { padding: 3rem 0; }
}

/* ── Pre-screening Form ───────────────────────────────────────── */
.prescreening { background: var(--cream); }

.prescreening-intro {
  color: var(--text-muted);
  margin-top: -0.75rem;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.875rem;
  color: var(--charcoal);
  font-weight: 500;
}

.optional {
  font-weight: normal;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid #c8cdc5;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(74, 103, 65, 0.2);
}

.form-field textarea { resize: vertical; }

/* Checkbox row */
.form-field--checkbox { justify-content: center; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green);
}

.prescreen-submit {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.prescreen-submit:hover { background: var(--green-dark); }

@media (max-width: 767px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: 1; }
}
