/* Simpson Brothers Properties — site styles */

:root {
  --brand: #3d6b8c;
  --brand-dark: #2a4d66;
  --brand-tint: #e8eff5;
  --roof: #c9ccd3;
  --ink: #1c2631;
  --ink-soft: #4d5a68;
  --muted: #7a8694;
  --line: #e2e6eb;
  --bg: #f6f7f9;
  --card: #ffffff;
  --ok: #2f7d4f;
  --ok-tint: #e5f3ea;
  --soon: #9a6512;
  --soon-tint: #fbf0dc;
  --leased: #5f6b78;
  --leased-tint: #eceff2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 38, 49, .06), 0 6px 20px rgba(28, 38, 49, .06);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: "Montserrat", "Inter", sans-serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.eyebrow {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: .6em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand span { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.15; color: var(--brand-dark); }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-tint); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .brand span { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 "Inter", sans-serif;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-tint); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-tint); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { background: var(--leased-tint); color: var(--muted); cursor: not-allowed; border-color: transparent; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(26, 48, 66, .92) 0%, rgba(42, 77, 102, .78) 48%, rgba(42, 77, 102, .25) 100%),
    url("../images/properties/2550-n-kentucky-ave/01.jpg") center 60% / cover no-repeat;
  color: #fff;
}
.hero .container { padding-top: 110px; padding-bottom: 120px; }
.hero h1 { max-width: 15ch; }
.hero .lead { color: rgba(255, 255, 255, .86); }
.hero .eyebrow { color: #b9d2e4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero-actions .btn-outline:hover { background: rgba(255, 255, 255, .12); }

.page-hero { background: var(--brand-dark); color: #fff; }
.page-hero .container { padding-top: 56px; padding-bottom: 56px; }
.page-hero .lead { color: rgba(255, 255, 255, .82); }
.page-hero .eyebrow { color: #b9d2e4; }

/* ---------- Stats strip ---------- */
.stats { margin-top: -48px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 24px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: "Montserrat", sans-serif; font-size: 1.05rem; color: var(--brand-dark); }
.stat span { color: var(--ink-soft); font-size: .93rem; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* ---------- Filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; align-items: end; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 28px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.field select, .field input {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field select:focus, .field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.result-count { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }

/* ---------- Listing cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(28,38,49,.06), 0 14px 32px rgba(28,38,49,.12); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--brand-tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .badge { position: absolute; top: 14px; left: 14px; }
.photo-count {
  position: absolute; bottom: 12px; right: 12px; background: rgba(20, 30, 40, .72); color: #fff;
  font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-price { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.card-price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.card-title { margin: 4px 0 2px; font-size: 1.05rem; }
.card-sub { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-soft); font-size: .92rem; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.specs span { display: inline-flex; align-items: center; gap: 6px; }
.specs svg { width: 17px; height: 17px; color: var(--brand); }

.placeholder-photo {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--brand); background: linear-gradient(135deg, var(--brand-tint), #f4f7fa); font-size: .88rem; font-weight: 500;
}
.placeholder-photo svg { width: 56px; height: 56px; opacity: .7; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-available { background: var(--ok-tint); color: var(--ok); }
.badge-coming-soon { background: var(--soon-tint); color: var(--soon); }
.badge-leased { background: var(--leased-tint); color: var(--leased); }

.empty {
  text-align: center; padding: 56px 20px; background: var(--card); border: 1px dashed var(--roof); border-radius: var(--radius);
}

/* ---------- Property detail ---------- */
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 24px 0 16px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(520px, 62vw); border-radius: var(--radius); overflow: hidden; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; background: var(--brand-tint); position: relative; overflow: hidden; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery.count-1 { grid-template-columns: 1fr; }
.gallery.count-1 button:first-child { grid-row: 1 / 3; }
.gallery.count-2 { grid-template-columns: 2fr 1fr; }
.gallery.count-2 button:nth-child(2) { grid-row: 1 / 3; }
.gallery.count-3 { grid-template-columns: 2fr 1fr; }
.gallery .more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 30, 40, .55); color: #fff; font-weight: 600; font-size: 1.05rem;
}
.gallery-empty { height: 320px; border-radius: var(--radius); overflow: hidden; }
@media (max-width: 720px) {
  .gallery, .gallery.count-2, .gallery.count-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 78vw; }
  .gallery button:first-child { grid-column: 1 / 3; grid-row: 1; }
  .gallery.count-2 button:nth-child(2) { grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
}

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; margin-top: 32px; align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.detail-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0; }
.spec-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 24px 0 32px; }
.spec-tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.spec-tile strong { display: block; font-family: "Montserrat", sans-serif; font-size: 1.25rem; }
.spec-tile span { color: var(--muted); font-size: .85rem; }
.feature-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: center; }
.feature-list svg { width: 20px; height: 20px; color: var(--ok); flex: none; }

.sidebar-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; position: sticky; top: 92px; }
.sidebar-card .price { font-family: "Montserrat", sans-serif; font-size: 2rem; font-weight: 700; }
.sidebar-card .price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.kv { list-style: none; margin: 18px 0 22px; padding: 0; }
.kv li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.kv li span:first-child { color: var(--muted); }
.kv li span:last-child { font-weight: 600; }
.sidebar-card .btn + .btn { margin-top: 10px; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 16, 22, .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .75); font-size: .9rem; }

/* ---------- Apply page ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 32px 0 48px; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff;
  font-family: "Montserrat", sans-serif; font-weight: 700; margin-bottom: 14px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel ul { padding-left: 20px; margin: 0; }
.panel li { margin-bottom: 8px; }
.callout { display: flex; gap: 14px; background: var(--brand-tint); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.callout svg { width: 24px; height: 24px; color: var(--brand); flex: none; margin-top: 2px; }
.callout p { margin: 0; }
.apply-cta { text-align: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 24px; }
.apply-cta .field { max-width: 420px; margin: 0 auto 20px; text-align: left; }

/* ---------- Forms (application form, portals) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { font: 400 .95rem "Inter", sans-serif; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; width: 100%; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.form-grid label small { font-weight: 400; color: var(--muted); font-size: .8rem; }
@media (max-width: 600px) { .form-grid, .form-grid.three { grid-template-columns: 1fr; } }
.form-error { color: #b42318; font-size: .9rem; min-height: 1em; }
.apply-form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); }
.apply-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 24px 0 0; padding: 20px 0 0; }
.apply-form legend { font-family: "Montserrat", sans-serif; font-weight: 600; padding-right: 10px; color: var(--brand-dark); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 8px; font-size: .9rem; color: var(--ink-soft); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- About / CTA ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }
/* "Who we are" without a picture beside it (until the owner photos are added) */
.about.about-text-only { grid-template-columns: 1fr; max-width: 820px; }
/* Owner photos for "Who we are" (used once the commented block in index.html is turned on) */
.owners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.owner { margin: 0; text-align: center; }
.owner img { aspect-ratio: 4/5; }
.owner figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.owner figcaption span { color: var(--muted); font-size: .9rem; }
.cta-band { background: var(--brand); color: #fff; border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }
@media (max-width: 600px) { .cta-band { padding: 32px 24px; } }

/* ---------- Footer ---------- */
.site-footer { background: #17222d; color: #b7c2cd; padding: 56px 0 28px; margin-top: 80px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-family: "Montserrat", sans-serif; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #d9e3ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { background: #fff; border-radius: 10px; padding: 6px 10px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 56px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .83rem; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 22px; height: 22px; }
.soon-tag { font-size: .7rem; background: rgba(255,255,255,.12); padding: 2px 7px; border-radius: 999px; margin-left: 6px; }

/* Sign-in: keep me signed in */
.bi-remember { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; text-align: left; }
.bi-remember input { width: 18px; height: 18px; flex: none; accent-color: var(--brand); }

/* Rentals page map */
.rentals-map { height: 380px; border-radius: var(--radius); overflow: hidden; margin: 0 0 24px; box-shadow: var(--shadow); z-index: 0; }
@media (max-width: 600px) { .rentals-map { height: 300px; } }
.map-pin-wrap { background: none; border: 0; }
.map-pin { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: #6b7785; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.map-pin.open { background: var(--brand); }
.map-pin svg { width: 18px; height: 18px; transform: rotate(45deg); color: #fff; }
.map-pop { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: var(--ink); padding: 4px 0; }
.map-pop + .map-pop { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.map-pop img { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; }
.map-pop span { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; }
.map-pop .badge { position: static; align-self: flex-start; font-size: .68rem; padding: 2px 8px; margin-bottom: 2px; }
.map-pop strong { font-size: .92rem; }
.map-pop small { color: var(--muted); }
/* Application form: robot check */
.turnstile-box { margin: 18px 0 6px; min-height: 65px; }
