/* ============================================================
   Site styles. You shouldn't need to edit this file —
   all content lives in config.js.
   ============================================================ */

:root {
  --brick: #9a3b2e;
  --brick-dark: #7c2f24;
  --brick-tint: #f6e9e6;
  --ink: #2b2320;
  --ink-soft: #5f544e;
  --cream: #faf6f1;
  --card: #ffffff;
  --line: #e8ded6;
  --gold: #c98a2d;
  --green: #3f6f4f;
  --green-tint: #e7f0ea;

  --art-sky: #dceaf2;
  --art-sun: #f2c94c;
  --art-brick: #b5543f;
  --art-brick-dark: #96422f;
  --art-window: #f4ede2;
  --art-door: #4a3327;
  --art-ground: #cbbfae;
  --art-leaf: #6d9b74;
  --art-trunk: #7a5c43;

  --radius: 12px;
  --shadow: 0 2px 10px rgba(43, 35, 32, 0.08);
  --font: "Avenir Next", Avenir, "Segoe UI", Seravek, ui-sans-serif, system-ui, Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16.5px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }

a { color: var(--brick); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 22px; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--brick); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); }
.btn-secondary { background: transparent; color: var(--brick); border-color: var(--brick); }
.btn-secondary:hover { background: var(--brick-tint); }
.btn-small { padding: 9px 20px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 28px; max-width: 34em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: var(--ink-soft); }
.hero-art svg { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-art img { width: 100%; height: auto; max-height: 340px; object-fit: cover; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: #f3ece4; }
.section-head { margin-bottom: 36px; max-width: 640px; }
.section-head h2 { font-size: 2rem; margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); }

/* ---------- Unit cards ---------- */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.unit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.unit-card-art {
  background: linear-gradient(135deg, var(--brick-tint), #efe0d0);
  padding: 20px 22px 0;
}
.unit-card-photo img { width: 100%; height: 150px; object-fit: cover; display: block; }
.unit-thumbs { display: flex; gap: 6px; margin-bottom: 14px; }
.unit-thumbs img { width: 56px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.unit-card-art svg { width: 100%; height: 90px; display: block; }
.unit-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.unit-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.unit-card h3 { font-size: 1.25rem; }
.unit-rent { font-size: 1.25rem; font-weight: 700; color: var(--brick); white-space: nowrap; }
.unit-rent span { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.unit-badge {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.unit-meta { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 10px; }
.unit-notes { font-size: 0.95rem; margin-bottom: 16px; }
.unit-card .btn { margin-top: auto; text-align: center; }
.no-units {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--ink-soft);
  grid-column: 1 / -1;
}
.waitlist-note { margin-top: 24px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Building ---------- */
.building-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.building-col h3 { font-size: 1.2rem; margin-bottom: 14px; }
.unit-mix, .amenities { list-style: none; }
.unit-mix li, .amenities li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.unit-mix li:last-child, .amenities li:last-child { border-bottom: none; }
.amenities li::before { content: "✓"; color: var(--green); font-weight: 700; }
.unit-mix .mix-count {
  background: var(--brick-tint);
  color: var(--brick-dark);
  font-weight: 700;
  border-radius: 8px;
  padding: 1px 10px;
  font-size: 0.9rem;
}

/* ---------- Location ---------- */
.location-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: var(--brick-tint);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.nearby-title { font-size: 1.2rem; margin-bottom: 10px; }
.nearby { list-style: none; }
.nearby li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.nearby li:last-child { border-bottom: none; }
.nearby li span { color: var(--ink-soft); font-size: 0.92rem; text-align: right; }
@media (max-width: 860px) { .location-cols { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brick);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Form ---------- */
#preapply-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(154, 59, 46, 0.15);
}
.form-fineprint { margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); }
.field-note { font-size: 0.85rem; color: var(--ink-soft); margin: -6px 0 18px; }
.apply-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.lang-toggle {
  background: transparent; border: 1.5px solid var(--brick); color: var(--brick);
  border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 0.88rem;
  font-weight: 600; cursor: pointer;
}
.lang-toggle:hover { background: var(--brick-tint); }
.site-footer .footer-eho a { color: #e8c9b8; }
.honeypot { position: absolute; left: -9999px; }

.form-panel {
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 8px;
}
.form-panel h3 { margin-bottom: 10px; font-size: 1.3rem; }
.form-success { background: var(--green-tint); border: 1px solid #c4dccb; }
.form-error { background: #fbe9e7; border: 1px solid #efc4bd; }
.demo-note { margin-top: 12px; font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

/* ---------- Contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-card a { font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d9d0ca;
  padding: 40px 0;
  margin-top: 32px;
}
.footer-eho {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: 640px;
  margin-bottom: 20px;
}
.footer-eho svg { flex-shrink: 0; }
.footer-eho p { font-size: 0.9rem; line-height: 1.5; }
.footer-copy { font-size: 0.85rem; color: #a89e97; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero { padding: 44px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .site-nav { display: none; }
  .building-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  #preapply-form { padding: 22px; }
  .section { padding: 48px 0; }
}
