/* Memphis Crew Housing — New Horizon Estates LLC
   Static, single stylesheet. No external fonts, no CDNs, no build step.
   Palette follows the owners' printed sheet: near-black, firebrick, coral. */

:root {
  --ink:        #1a1a1a;
  --ink-soft:   #3d3a37;
  --muted:      #63605c;
  --rule:       #d9d6d1;
  --paper:      #ffffff;
  --paper-alt:  #f5f4f1;
  --red:        #b22222;
  --coral:      #ff6b5a;
  --wrap:       1120px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

img { max-width: 100%; height: auto; display: block; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ── Headings ─────────────────────────────────────────────────── */

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }

h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); font-weight: 700; }

h2 {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  padding-bottom: .35em;
  border-bottom: 2px solid var(--red);
  display: inline-block;
  margin-bottom: .8em;
}

h3 { font-size: 1.06rem; font-weight: 700; }

p { margin: 0 0 1em; }

.kicker {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: .9em;
}

/* ── Top bar ──────────────────────────────────────────────────── */

.topbar {
  background: var(--ink);
  color: #fff;
  position: sticky; top: 0; z-index: 40;
  border-bottom: 3px solid var(--red);
}

.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}

.brand { text-decoration: none; color: #fff; line-height: 1.2; }
.brand-name { display: block; font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; }
.brand-sub  { display: block; font-size: .72rem; color: #a9a5a0; letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }

.topbar-contact { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.topbar-contact a { color: #fff; text-decoration: none; white-space: nowrap; }
.topbar-contact a:hover { color: var(--coral); }
.topbar-contact .tel { font-weight: 700; }
.topbar-contact .mail { color: #c9c5c0; }

@media (max-width: 720px) {
  .topbar-contact .mail { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-block; padding: 14px 24px; border-radius: 2px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  border: 2px solid transparent; transition: background .15s, color .15s;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: #8f1b1b; border-color: #8f1b1b; }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────────────── */

.hero { padding: 46px 0 40px; }

.hero-inner { display: grid; gap: 34px; }

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 46em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }

.hero-note { font-size: .9rem; color: var(--muted); margin: 0; }

.hero-photo { margin: 0; }
.hero-photo img { width: 100%; border-radius: 3px; }

@media (min-width: 1000px) {
  .hero { padding: 64px 0 56px; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 52px; }
}

/* ── Proof strip ──────────────────────────────────────────────── */

.proof { background: var(--ink); color: #fff; padding: 34px 0; }

.stats {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 18px;
}
.stats li { line-height: 1.3; }
.stats strong { display: block; font-size: 1.55rem; color: var(--coral); }
.stats span { display: block; font-size: .84rem; color: #b8b4af; margin-top: 4px; }

.proof-line { margin: 0; color: #ddd9d4; font-size: .98rem; max-width: 62em; }
.proof-line strong { color: #fff; }

@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ── Bands ────────────────────────────────────────────────────── */

.band { padding: 52px 0; border-bottom: 1px solid var(--rule); }
.band.alt { background: var(--paper-alt); }

.section-lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 46em; }

.aside {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 18px;
  color: var(--ink-soft);
  margin-top: 26px;
}

/* ── Feature grid ─────────────────────────────────────────────── */

.feature-grid {
  display: grid; gap: 26px 30px; margin: 34px 0 26px;
  grid-template-columns: 1fr;
}
.feature h3 { color: var(--red); margin-bottom: .35em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

@media (min-width: 700px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.included {
  border-top: 1px solid var(--rule); padding-top: 18px;
  font-size: .95rem; color: var(--ink-soft);
}

/* ── Gallery ──────────────────────────────────────────────────── */

.gallery {
  display: grid; gap: 14px; margin-top: 30px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.gallery:empty { display: none; }
.shot { margin: 0; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.shot figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* ── Comparison table ─────────────────────────────────────────── */

.compare { width: 100%; border-collapse: collapse; margin: 30px 0 12px; font-size: .95rem; }
.compare thead th {
  text-align: left; padding: 8px 12px; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; border-bottom: 2px solid var(--ink);
}
.compare tbody th {
  text-align: left; font-weight: 700; padding: 12px; vertical-align: top;
  border-bottom: 1px solid var(--rule); width: 26%;
}
.compare td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.compare td:first-of-type { color: var(--ink); }
.compare .row-emphasis th, .compare .row-emphasis td { background: var(--paper-alt); }
.band.alt .compare .row-emphasis th, .band.alt .compare .row-emphasis td { background: #eceae6; }

.footnote { font-size: .82rem; color: var(--muted); margin: 0; }

/* Stack the comparison on phones */
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border: 1px solid var(--rule); margin-bottom: 12px; padding: 4px 0; background: var(--paper); }
  .band.alt .compare tr { background: var(--paper); }
  .compare tbody th { border: 0; padding: 10px 14px 2px; font-size: 1rem; }
  .compare td { border: 0; padding: 2px 14px 8px; }
  .compare td::before {
    content: attr(data-label);
    display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 2px;
  }
  .compare .row-emphasis th, .compare .row-emphasis td { background: transparent; }
  .compare .row-emphasis { border-color: var(--ink); border-width: 2px; }
}

/* ── Price box ────────────────────────────────────────────────── */

.pricebox {
  background: var(--ink); color: #fff; padding: 28px 26px; border-radius: 3px;
  margin: 26px 0 34px;
}
.price-main { margin: 0 0 .5em; }
.price-main .amt { font-size: clamp(2.3rem, 7vw, 3.3rem); font-weight: 700; color: var(--coral); line-height: 1; }
.price-main .per { font-size: 1.02rem; font-weight: 700; display: block; margin-top: 8px; }
.price-sub { color: #ddd9d4; font-size: .97rem; margin-bottom: .7em; }
.price-sub strong { color: #fff; }
.price-line {
  margin: 0; padding-top: 14px; border-top: 1px solid #3a3733;
  font-size: 1.08rem; font-weight: 700; color: var(--coral);
}

/* ── Terms ────────────────────────────────────────────────────── */

.terms-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.terms-grid h3 { color: var(--red); }
.terms-grid ul { margin: 0; padding-left: 20px; }
.terms-grid li { margin-bottom: 10px; color: var(--ink-soft); font-size: .97rem; }

@media (min-width: 760px) { .terms-grid { grid-template-columns: 1fr 1fr; gap: 44px; } }

/* ── Drive times ──────────────────────────────────────────────── */

.drive { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: .97rem; max-width: 560px; }
.drive th { text-align: left; font-weight: 400; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.drive td { text-align: right; padding: 11px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }

/* ── Contact ──────────────────────────────────────────────────── */

.contact { background: var(--ink); color: #fff; padding: 56px 0 64px; text-align: center; }
.contact h2 { border-color: var(--coral); }
.contact-lede { color: #ddd9d4; max-width: 34em; margin: 0 auto 1.6em; }
.contact-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 1.2em; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }
.contact .btn-ghost { color: #fff; }
.contact .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ── Footer ───────────────────────────────────────────────────── */

.foot { background: var(--paper-alt); padding: 30px 0 96px; font-size: .87rem; color: var(--muted); }
.foot p { margin: 0 0 .6em; max-width: 60em; }
.foot-meta a { color: var(--muted); }

@media (min-width: 700px) { .foot { padding-bottom: 40px; } }

/* ── Sticky call bar (phones only) ────────────────────────────── */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--red); color: #fff; text-align: center;
  padding: 15px 16px; font-weight: 700; text-decoration: none;
  box-shadow: 0 -2px 14px rgba(0,0,0,.22);
  padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 700px) { .callbar { display: none; } }

@media print {
  .topbar, .callbar, .hero-actions, .contact-lines { display: none; }
  body { font-size: 11pt; }
}
