:root {
  --navy: #14213D;
  --navy-deep: #0E1830;
  --paper: #F2EFE4;
  --paper-2: #E9E4D6;
  --ink: #14213D;
  --ink-soft: #4B536A;
  --brass: #C9A66B;
  --brass-deep: #A8864B;
  --line: rgba(20, 33, 61, 0.14);
  --max: 1180px;
  --radius: 6px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--paper); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 92px; flex-wrap: wrap; }
/* Logo at 160px wide renders "Jimenez" at ~27px font size (viewBox 1791.7 wide, 300px type). */
.brand img { width: 160px; height: auto; }
/* Sponsoring broker: at least as large as the team name in the logo (225 ILCS 454/10-30(f)). */
.broker { font-size: 27px; font-weight: 500; line-height: 1.1; text-decoration: none; opacity: 0.95; padding-left: 24px; border-left: 1px solid rgba(242,239,228,0.25); }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; font-size: 16px; }
.nav a { text-decoration: none; opacity: 0.9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { background: var(--brass); color: var(--navy); padding: 9px 16px; border-radius: var(--radius); font-weight: 500; opacity: 1 !important; }
.nav-cta:hover { background: #D6B67E; text-decoration: none !important; }

/* ---------- hero + search ---------- */
.hero { background: var(--navy); color: var(--paper); padding: 48px 0 40px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); max-width: 17ch; }
.lede { max-width: 60ch; margin-top: 16px; font-size: 18px; opacity: 0.9; }

.search {
  margin-top: 32px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}
.search label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.search select {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 36px 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2314213D' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; -webkit-appearance: none; min-height: 46px;
}
.btn-quiet { font: inherit; font-size: 15px; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px; min-height: 46px; cursor: pointer; color: var(--ink-soft); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- results ---------- */
.results { padding: 36px 0 64px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.count { font-size: 22px; font-weight: 500; }
.updated { font-size: 14px; color: var(--ink-soft); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.unit { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); text-align: left; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.unit:hover .unit-photo img { transform: scale(1.03); }
.unit:hover { border-color: var(--brass); }
.unit-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.unit-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.unit-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.unit-rent { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.unit-rent small { font-size: 14px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; margin-left: 4px; }
.unit-facts { font-size: 15px; color: var(--ink); }
.unit-address { font-size: 15px; color: var(--ink-soft); }
.unit-avail { margin-top: auto; padding-top: 10px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.unit-avail b { font-weight: 500; color: var(--brass-deep); }
.unit-avail span.now { color: #2E6B3F; font-weight: 500; }
.empty { max-width: 56ch; font-size: 18px; padding: 40px 0; }

/* ---------- about ---------- */
.about { background: var(--navy); color: var(--paper); padding: 72px 0; }
.about-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about h2 { font-size: clamp(26px, 3.2vw, 38px); max-width: 20ch; }
.about-text p { margin-top: 18px; max-width: 58ch; opacity: 0.92; }
.about-contact { font-size: 20px; line-height: 1.6; }
.about-contact a { text-decoration: none; border-bottom: 1px solid var(--brass); }
.about-mark { display: flex; justify-content: center; opacity: 0.9; }
.about-mark img { width: 300px; height: auto; }

/* ---------- contact / forms ---------- */
.contact { padding: 64px 0 80px; }
.contact h2 { font-size: clamp(24px, 3vw, 34px); }
.contact > .wrap > p { margin-top: 10px; color: var(--ink-soft); max-width: 56ch; }
.lead-form { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--ink-soft); }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 46px; }
.field textarea { resize: vertical; }
.field-wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 15px; color: var(--ink-soft); }
.form-note.ok { color: #2E6B3F; }
.form-note.err { color: #9A2B2B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn { font: inherit; font-size: 16px; font-weight: 500; background: var(--navy); color: var(--paper); border: 0; border-radius: var(--radius); padding: 13px 20px; cursor: pointer; min-height: 48px; }
.btn:hover { background: var(--navy-deep); }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); padding: 40px 0 48px; font-size: 15px; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-team, .footer-broker { font-size: 19px; font-weight: 500; line-height: 1.3; }
.footer-fine { margin-top: 12px; max-width: 64ch; color: var(--ink-soft); font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(14, 24, 48, 0.55); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--paper); overflow-y: auto; box-shadow: -12px 0 40px rgba(0,0,0,0.25); }
.drawer-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--navy); color: var(--paper); font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.drawer-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.drawer-body { padding: 22px 24px 32px; }
.d-rent { font-size: 36px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.d-rent small { font-size: 15px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
.drawer-body h2 { font-size: 22px; margin-top: 10px; }
.d-address { color: var(--ink-soft); margin-top: 4px; }
.d-facts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 15px; }
.d-facts li b { font-weight: 500; }
.d-desc { margin-top: 16px; font-size: 16px; }
.d-pets { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.unit-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.unit-form h3 { grid-column: 1 / -1; font-size: 19px; }
.d-apply { margin-top: 20px; font-size: 15px; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-row { grid-template-columns: 1fr; }
  .about-mark { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-row { gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .brand img { width: 140px; }
  .broker { padding-left: 0; border-left: 0; font-size: 24px; width: 100%; order: 3; }
  .nav { margin-left: 0; width: 100%; order: 4; gap: 14px; flex-wrap: wrap; }
  .hero { padding: 32px 0 28px; }
  .search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-quiet { grid-column: 1 / -1; }
  .grid { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .results-head { flex-direction: column; gap: 4px; }
}
