/* ============================================================
   Fat Property — LARGE-COMMUNITY template
   Tokens match fatproperty.com hub (Figtree + Fraunces, orange).
   Each named 100+ unit community keeps its own identity in HTML.
   Do not use the hub “small buildings” line on these sites.
   ============================================================ */

:root {
  --orange: #E85A1A;
  --orange-hover: #C94A12;
  --orange-ink: #8A2F0A;
  --orange-soft: #FDE8DC;
  --slate: #3D5166;
  --slate-deep: #1C2834;
  --slate-mid: #5A738C;
  --slate-logo: #90A8C0;
  --paper: #F6F2EA;
  --cream: #FFFCF7;
  --ink: #1C2834;
  --muted: #5C6B7A;
  --line: #D7DEE6;
  --black: #111418;
  --shadow: 0 10px 30px rgba(28, 40, 52, 0.08);
  --radius: 14px;
  --wrap: 1180px;
  --util-h: 38px;
  --header-h: 76px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--slate-deep);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
main { flex: 1; }

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus {
  left: 12px; z-index: 200; background: var(--cream);
  padding: 8px 12px; border-radius: 8px;
}

/* ---- Sticky black utility bar ---- */
.util-bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--black);
  color: #d7dde4;
  font-size: 0.82rem;
  font-weight: 650;
}
.util-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: var(--util-h); flex-wrap: wrap;
  padding: 4px 0;
}
.util-left, .util-right {
  display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap;
}
.util-bar a { color: #fff; text-decoration: none; }
.util-bar a:hover { color: var(--orange-soft); }
.util-split { color: #6d7884; }
.util-phone { font-weight: 800; letter-spacing: 0.02em; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: var(--util-h); z-index: 50;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--slate-deep); text-decoration: none; font-weight: 800;
  font-size: 1.05rem; letter-spacing: -0.03em; flex-shrink: 0;
}
.brand img {
  width: 52px; height: 52px; object-fit: contain;
  background: #000; border-radius: 10px;
}
.brand:hover { color: var(--orange); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small {
  font-weight: 650; font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.nav { display: flex; align-items: center; gap: 2px 14px; flex-wrap: wrap; }
.nav a {
  color: var(--slate); text-decoration: none; font-weight: 650; font-size: 0.9rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--orange); border-bottom-color: var(--orange);
}
.nav a.nav-ext {
  background: var(--orange); color: #fff; border: 0; border-radius: 999px;
  padding: 8px 14px;
}
.nav a.nav-ext:hover { background: var(--orange-hover); color: #fff; }
.nav-toggle {
  display: none; background: var(--cream); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; font-weight: 700; color: var(--slate);
  font-family: inherit; cursor: pointer;
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; flex-direction: column; align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 4px; }
  .nav a.nav-ext { text-align: center; }
  .brand-text { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 18px; font-weight: 700; text-decoration: none; font-size: 1rem;
  cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--orange-hover); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--slate-deep);
  border: 1.5px solid var(--slate-logo);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn:disabled { opacity: 0.7; cursor: wait; }

/* ---- Hero ---- */
.hero {
  position: relative; isolation: isolate;
  min-height: 74vh; display: grid; align-items: end;
  background: var(--slate-deep);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,40,52,0.18) 8%, rgba(28,40,52,0.82) 100%);
  z-index: -1;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.15s ease;
}
.hero-slides img.is-on { opacity: 1; }
.hero-inner { padding: 52px 0 56px; position: relative; z-index: 1; }
.kicker {
  display: inline-block; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 0.74rem; color: var(--orange-soft);
  margin-bottom: 10px;
}
.hero h1 {
  color: #fff; font-size: clamp(2.15rem, 5.4vw, 3.7rem); max-width: 16ch;
  margin-bottom: 12px;
}
.hero p.lede { font-size: 1.15rem; max-width: 44ch; color: #f3efe7; }
.page-hero {
  position: relative; isolation: isolate;
  background: var(--slate-deep); color: #fff; padding: 48px 0 36px;
  overflow: hidden; min-height: 220px; display: grid; align-items: end;
}
.page-hero.page-hero-photo { min-height: 320px; }
.page-hero.page-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,40,52,0.25), rgba(28,40,52,0.78));
  z-index: -1;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: #e6e0d6; max-width: 54ch; }

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section-alt { background: var(--cream); }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.eyebrow {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 6px;
}
.lede-max { max-width: 58ch; }

.who {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center;
}
.who-card {
  background: var(--cream); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stat { background: var(--paper); border-radius: 12px; padding: 12px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--orange); }
.stat span { font-size: 0.82rem; color: var(--muted); }

@media (max-width: 800px) {
  .who { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}

/* Home highlights rail (Brompton pattern) */
.highlights {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; align-items: start;
}
.highlights ul { margin: 0; padding: 0 0 0 1.1em; }
.highlights li { margin: 0 0 6px; }
@media (max-width: 800px) {
  .highlights { grid-template-columns: 1fr; }
}

/* ---- Cards / grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}
.card {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.card-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--slate); position: relative; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo.plan-art { aspect-ratio: 16 / 11; background: #f3efe8; }
.card-photo.plan-art img { object-fit: contain; padding: 10px; }
.chip {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--orange); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.28rem; margin: 0; }
.meta { color: var(--muted); font-size: 0.92rem; }
.rent { font-weight: 800; color: var(--slate-deep); font-size: 1.05rem; }
.plan-code {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange);
}

/* ---- Amenities: two lists + camera proof ---- */
.amenity-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
@media (max-width: 800px) { .amenity-cols { grid-template-columns: 1fr; } }
.amenity-block h2 { font-size: 1.45rem; }
.proof-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.proof-list li {
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.proof-list button {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; font: inherit; color: var(--orange);
  font-weight: 700; cursor: pointer;
}
.proof-list button:hover { color: var(--orange-hover); }
.cam-icon {
  width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0;
  background: var(--orange-soft); color: var(--orange-ink);
  display: inline-grid; place-items: center; font-size: 0.85rem;
}
.amenity-note { font-size: 0.88rem; color: var(--muted); margin-top: 12px; }
.pet-card {
  background: var(--orange-soft); color: var(--orange-ink);
  border-radius: var(--radius); padding: 18px 20px; margin-top: 20px;
}
.pet-card h3 { color: var(--orange-ink); font-size: 1.15rem; }
.amenity-photos { display: grid; grid-template-columns: 1fr; gap: 10px; }
.amenity-photos img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 12px; cursor: zoom-in;
}

/* ---- Gallery grid + lightbox ---- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  position: relative; border: 0; padding: 0; background: none;
  border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(17,20,24,0.72));
  color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 28px 10px 10px; text-align: left;
}
.lightbox {
  display: none; position: fixed; inset: 0; background: rgba(28,40,52,0.92);
  z-index: 80; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 8px; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: #fff; border: 0;
  border-radius: 999px; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-cap {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.9rem; font-weight: 650;
}

/* ---- Map ---- */
.map-wrap {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--slate); position: relative;
}
.map-canvas { width: 100%; height: min(56vh, 480px); background: #d5dde4; }
.map-canvas-teaser { height: 320px; }
.leaflet-container { font-family: var(--font-body); }
.fp-pin {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(28,40,52,0.45);
}
.leaflet-div-icon.fp-div-icon { background: transparent; border: none; }
.fp-popup h3 { font-size: 1.05rem; margin: 0 0 6px; }
.fp-popup p { margin: 0 0 4px; font-size: 0.92rem; color: var(--muted); }

/* ---- Contact / forms ---- */
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start;
}
.contact-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.contact-card h2 { font-size: 1.3rem; }
.hours { list-style: none; padding: 0; margin: 0 0 14px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.contact-form label, .tour-form label, .chat-form label {
  display: block; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  margin: 12px 0 6px;
}
.contact-form input, .contact-form textarea, .contact-form select,
.tour-form input, .tour-form textarea, .tour-form select,
.chat-form input, .chat-form textarea, .chat-form select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; background: #fff; color: var(--ink);
}
.contact-form textarea, .tour-form textarea, .chat-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus,
.tour-form input:focus, .tour-form textarea:focus, .tour-form select:focus,
.chat-form input:focus, .chat-form textarea:focus {
  outline: 2px solid var(--orange); border-color: var(--orange);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) {
  .contact-grid, .form-row { grid-template-columns: 1fr; }
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.form-success {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.form-error {
  background: var(--orange-soft); color: var(--orange-ink);
  border-radius: 10px; padding: 10px 12px; margin-top: 12px;
}
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---- Hop pages (Apply / Residents) ---- */
.hop { max-width: 40rem; }
.hop-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin-top: 12px;
}

/* ---- CTA band / footer ---- */
.cta-band { background: var(--slate-deep); color: #fff; padding: 48px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d9e2ea; max-width: 46ch; }
.site-footer {
  background: var(--slate-deep); color: #c9d4de; padding: 36px 0 20px; font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { width: 36px; height: 36px; }
.trec {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px;
  font-size: 12pt; line-height: 1.5;
}
.trec a { color: #fff; }
.tiny { font-size: 0.8rem; color: #8fa0ae; margin-top: 12px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

.snapshot {
  font-size: 0.82rem; color: var(--muted); font-style: italic; margin-top: 8px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.filter-chip {
  background: var(--cream); color: var(--slate); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 13px; font-weight: 700; font-size: 0.88rem;
  cursor: pointer; font-family: inherit;
}
.filter-chip:hover { border-color: var(--orange); color: var(--orange); }
.filter-chip.is-on { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ---- Chat widget (custom, not Omni Cafe) ---- */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 58px; height: 58px; border-radius: 999px; border: 0;
  background: var(--orange); color: #fff; cursor: pointer;
  box-shadow: 0 10px 24px rgba(232, 90, 26, 0.35);
  font-weight: 800; font-size: 0.78rem; font-family: inherit;
  display: grid; place-items: center; line-height: 1.1; text-align: center;
}
.chat-fab:hover { background: var(--orange-hover); }
.chat-panel {
  position: fixed; right: 18px; bottom: 86px; z-index: 71;
  width: min(360px, calc(100% - 24px));
  background: var(--cream); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(28,40,52,0.18);
  padding: 16px 16px 14px;
  display: none;
}
.chat-panel.is-open { display: block; }
.chat-panel h2 { font-size: 1.15rem; margin: 0 0 4px; }
.chat-form { position: relative; }
.chat-close {
  position: absolute; top: 10px; right: 10px; background: none; border: 0;
  font-size: 1.2rem; cursor: pointer; color: var(--muted);
}

/* ---- Tour modal ---- */
.modal {
  display: none; position: fixed; inset: 0; z-index: 85;
  background: rgba(28,40,52,0.72); align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal-card {
  background: var(--cream); border-radius: 16px; max-width: 520px; width: 100%;
  max-height: 90vh; overflow: auto; padding: 22px 22px 18px; position: relative;
  box-shadow: var(--shadow);
}
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice-row label {
  text-transform: none; letter-spacing: 0; font-weight: 650; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 12px; cursor: pointer;
}

.tour-embed {
  position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden;
  background: var(--slate);
}
.tour-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-slides img { transition: none; }
  html { scroll-behavior: auto; }
}
