/* ---------- Design tokens ---------- */
:root {
  --color-navy: #16324f;
  --color-navy-dark: #0d2036;
  --color-slate: #4a5a6a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-border: #dfe4e9;
  --color-accent: #b8863b;
  --color-text: #1c2a36;
  --color-text-muted: #55636f;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 8px;
  --wrap-max: 960px;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

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

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-navy-dark);
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding-left: 1.25em;
}

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

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / Hero ---------- */
.site-header {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: #fff;
  padding: 2.5rem 0 2.25rem;
}

.header-inner {
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cfd9e2;
  margin: 0 0 0.75rem;
}

.site-header h1 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.address-sub {
  font-size: 1rem;
  font-weight: 400;
  color: #cfd9e2;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.hero-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  color: #cfd9e2;
  margin-top: 0.15rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #a3762f;
}

/* ---------- Sections ---------- */
.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 1.4rem;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 0.25rem;
  margin-bottom: 1.25rem;
}

.detail-list {
  display: grid;
  gap: 0.6rem;
  list-style: disc;
  color: var(--color-text-muted);
}

.detail-list strong {
  color: var(--color-text);
}

/* ---------- Property details table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: var(--color-bg);
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  font-size: 0.95rem;
}

tr:last-child th,
tr:last-child td {
  border-bottom: none;
}

th {
  width: 42%;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-bg-alt);
}

/* ---------- Floor plan placeholder ---------- */
.floorplan-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

/* ---------- Location scores ---------- */
.score-row {
  display: flex;
  gap: 1rem;
  margin: 0 0 1.5rem;
  flex-wrap: wrap;
}

.score-badge {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  text-align: center;
  flex: 1 1 120px;
}

.score-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.score-label {
  display: block;
  font-size: 0.8rem;
  color: #cfd9e2;
}

/* ---------- Terms ---------- */
.terms-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.terms-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy-dark);
  margin-bottom: 1rem;
}

.terms-price span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.terms-financing {
  margin: 0;
  color: var(--color-text-muted);
}

.terms-financing strong {
  color: var(--color-text);
}

/* ---------- Contact ---------- */
.contact-placeholder {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--color-text-muted);
  font-style: italic;
  background: var(--color-bg-alt);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-dark);
  color: #b7c2cc;
  padding: 1.5rem 0;
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .site-header h1 {
    font-size: 2.1rem;
  }

  .hero-stats {
    flex-direction: row;
    justify-content: center;
  }

  .hero-stat {
    flex: 1 1 0;
  }

  .detail-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }
}

@media (min-width: 960px) {
  .site-header {
    padding: 3.5rem 0 3rem;
  }

  .site-header h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}
