/* Crevier Properties LLC — shared styles for every page. */

:root {
  --ink: #0b0b0c;
  --ink-2: #2b2b2e;
  --muted: #62626a;
  --line: #e8e6df;
  --bg: #ffffff;
  --soft: #f7f6f2;
  --gold: #c8a13a;
  --gold-hover: #d4ad45;
  --gold-text: #7a5f12;
  --gold-soft: #f6edd2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 11, 12, 0.05), 0 8px 24px rgba(11, 11, 12, 0.07);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.1; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26262a; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 50; }

.header-inner { display: flex; align-items: center; gap: 10px; min-height: 72px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 18px; letter-spacing: 0.14em; font-weight: 800; }
.brand-text span {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-top: 4px;
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.cta-num { display: none; }

.nav-toggle {
  width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle .bars::after { position: absolute; top: 6px; left: 0; }

.site-nav { display: none; width: 100%; order: 5; padding: 4px 0 12px; }
.site-nav.is-open { display: block; }
.site-nav a {
  display: block; padding: 13px 4px; font-weight: 600; text-decoration: none;
  border-top: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--gold-text); }

@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; width: auto; order: 0; padding: 0; gap: 4px; }
  .site-nav a { border: 0; padding: 10px 14px; border-radius: 999px; }
  .site-nav a:hover { background: var(--soft); }
  .site-nav a[aria-current="page"] { background: var(--soft); color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
  .cta-num { display: inline; }
  /* The plain "Contact" button is only needed on phones; on desktop the menu already has Contact. */
  .cta-contact { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 52px; background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); margin: 14px 0 16px; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art svg { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); }

@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 40em; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); }
.section-head p { color: var(--muted); margin: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.section-head-row .section-head { margin-bottom: 0; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.link-arrow:hover { background: var(--gold-soft); }
.fine { color: var(--muted); font-size: 15px; margin-top: 22px; }

.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3rem); margin: 12px 0 10px; }
.page-hero .lead { margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Apartment listings ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-btn {
  font: inherit; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.listing-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.listing {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.listing-media { position: relative; aspect-ratio: 4 / 3; background: var(--soft); }
.listing-media > img { width: 100%; height: 100%; object-fit: cover; }
.photo-soon {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); font-weight: 600; font-size: 15px;
  background: linear-gradient(135deg, #f1efe8, #e8e5da);
}
.photo-soon svg { width: 44px; height: 44px; }

.badge {
  position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.badge-available { background: var(--gold); color: var(--ink); }
.badge-unavailable { background: var(--ink); color: #fff; }

.thumbs { display: flex; gap: 6px; padding: 8px 8px 0; overflow-x: auto; }
.thumb { flex: none; width: 60px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--gold); }

.listing-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.listing-type { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); margin: 0 0 4px; }
.listing-body h3 { font-size: 1.2rem; margin-bottom: 2px; }
.listing-town { color: var(--muted); margin: 0 0 12px; }
.listing-rent { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; margin: 0 0 12px; font-weight: 600; color: var(--ink-2); }
.facts li + li { position: relative; }
.facts li + li::before { content: ""; position: absolute; left: -8px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.chips li { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 14px; }
.listing-note { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; }
.listing-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }

.empty-state {
  text-align: center; background: #fff; border: 1.5px dashed #d6d2c4; border-radius: var(--radius);
  padding: 40px 22px;
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 12px; }
.empty-state p { max-width: 30em; margin: 0 auto 18px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card h3 {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px;
}
.contact-value { display: block; font-size: 1.35rem; font-weight: 800; text-decoration: none; overflow-wrap: break-word; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.45fr 1fr; } }
.contact-value + .contact-value { margin-top: 6px; }
a.contact-value:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.soon { color: var(--muted); font-weight: 600; }

.prose { max-width: 40em; }
.prose p { color: var(--ink-2); }
.story-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 22px 24px; max-width: 40em; }
.story-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.story-card p { margin: 0; color: var(--muted); }

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--ink); color: #fff; padding: 52px 0; border-top: 3px solid var(--gold); }
.cta-inner { display: grid; gap: 22px; align-items: center; }
.cta-band h2 { font-size: clamp(1.6rem, 4.2vw, 2.2rem); margin-bottom: 6px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 800px) { .cta-inner { grid-template-columns: 1fr auto; gap: 40px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d4d4d8; padding: 48px 0 26px; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; } }
.site-footer a { color: #fff; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: #a9a9b0; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer p { margin: 14px 0 0; max-width: 26em; font-size: 15px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer-list .f-label { display: block; color: #a9a9b0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid; gap: 6px; font-size: 14px; color: #a9a9b0;
}
.footer-bottom p { margin: 0; max-width: none; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
