/* ============ AFRICREST DESIGN SYSTEM ============ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --ink: #0f2e2a;
  --ink-2: #143a35;
  --gold: #c9a449;
  --gold-soft: #e0c987;
  --cream: #f6efe2;
  --paper: #faf6ec;
  --line: rgba(15,46,42,0.12);
  --muted: #5a6a66;
  --success: #2d7a4f;
  --warn: #c9a449;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
.serif { font-family: 'Cormorant Garamond', serif; font-weight: 500; letter-spacing: -0.005em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ============ DEMO BANNER ============ */
.demo-banner {
  background: var(--gold); color: var(--ink);
  padding: 8px 16px; text-align: center;
  font-size: 12px; letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(15,46,42,0.15);
}
.demo-banner strong { font-weight: 600; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 44px; width: auto; display: block; }
.foot-logo .logo-img { height: 48px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { opacity: 0.85; transition: opacity .15s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold-soft); }
.nav-cta {
  background: var(--gold); color: var(--ink) !important;
  padding: 9px 18px; border-radius: 2px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  transition: background .15s; opacity: 1 !important;
}
.nav-cta:hover { background: var(--gold-soft); }

/* ============ FOOTER ============ */
footer { background: var(--ink-2); color: rgba(255,255,255,0.7); padding: 48px 32px 28px; font-size: 13px; }
.foot-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
footer h4 { font-family: 'Cormorant Garamond', serif; color: #fff; font-size: 18px; margin-bottom: 14px; font-weight: 500; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a:hover { color: var(--gold-soft); }
.foot-bottom { max-width: 1280px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; font-size: 12px; opacity: 0.6; }
.foot-logo { color: #fff; margin-bottom: 14px; }

/* ============ SHARED LAYOUT ============ */
section.section { padding: 80px 32px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.section-head h2 { font-family: 'Cormorant Garamond', serif; font-size: 44px; font-weight: 500; line-height: 1; color: var(--ink); }
.section-head p { font-size: 15px; color: var(--muted); max-width: 460px; margin-top: 8px; }

/* Page header (used by interior pages) */
.page-header {
  background: var(--ink); color: #fff;
  padding: 64px 32px 80px;
  border-bottom: 4px solid var(--gold);
}
.page-header-inner { max-width: 1280px; margin: 0 auto; }
.crumb { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.crumb a { opacity: 0.7; }
.crumb a:hover { opacity: 1; }
.crumb .sep { margin: 0 10px; opacity: 0.4; }
.page-header h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 4vw, 56px); font-weight: 500; line-height: 1.05; max-width: 720px; }
.page-header h1 em { font-style: italic; color: var(--gold-soft); }
.page-header p.lead { margin-top: 16px; max-width: 580px; font-size: 16px; line-height: 1.6; opacity: 0.88; }

/* ============ FILTERS / CHIPS ============ */
.filters {
  display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px; color: var(--ink);
  background: #fff;
  transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .count { color: var(--muted); margin-left: 4px; font-size: 12px; }
.chip.active .count { color: var(--gold-soft); }
.chip-dark {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.2);
}
.chip-dark:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.chip-dark.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ============ BUILDING CARDS ============ */
.building-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b-card {
  background: #fff; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer; display: flex; flex-direction: column;
}
.b-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(15,46,42,0.12); }
.b-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #ddd; }
.b-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.b-card:hover .b-img img { transform: scale(1.04); }
.b-badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; }
.b-area-tag { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.95); color: var(--ink); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; }
.b-body { padding: 20px 22px 22px; }
.b-name { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; color: var(--ink); }
.b-addr { font-size: 13px; color: var(--muted); margin-top: 2px; }
.b-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.b-price small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.b-price strong { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 500; color: var(--ink); }
.b-avail { background: var(--cream); color: var(--ink); padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 500; }
.b-avail.hot { background: var(--ink); color: #fff; }
.b-avail.zero { background: #f0f0f0; color: var(--muted); }

/* ============ UNIT CARDS ============ */
.unit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.u-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; overflow: hidden;
  transition: all .2s; cursor: pointer;
}
.u-card:hover { background: rgba(255,255,255,0.08); border-color: var(--gold-soft); }
.u-card.light { background: #fff; border-color: var(--line); }
.u-card.light:hover { background: #fff; border-color: var(--ink); box-shadow: 0 8px 24px rgba(15,46,42,0.08); }
.u-img { aspect-ratio: 4/3; background: #1f4a44; position: relative; }
.u-img img { width: 100%; height: 100%; object-fit: cover; }
.u-tag { position: absolute; bottom: 10px; left: 10px; background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }
.u-body { padding: 14px 16px 16px; }
.u-name { font-size: 13px; color: var(--gold-soft); letter-spacing: 0.04em; }
.u-card.light .u-name { color: var(--muted); }
.u-type { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 500; margin-top: 2px; color: inherit; }
.u-card.light .u-type { color: var(--ink); }
.u-meta { display: flex; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 6px; flex-wrap: wrap; }
.u-card.light .u-meta { color: var(--muted); }
.u-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.u-card.light .u-foot { border-top-color: var(--line); }
.u-rent { font-family: 'Cormorant Garamond', serif; font-size: 22px; }
.u-rent small { font-size: 11px; opacity: 0.6; margin-left: 2px; }
.u-cta { font-size: 11px; color: var(--gold-soft); letter-spacing: 0.08em; text-transform: uppercase; }
.u-card.light .u-cta { color: var(--ink); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  border-radius: 2px; transition: all .15s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--ink); }
.btn-ghost { color: var(--ink); padding: 14px 18px; }
.btn-ghost:hover { color: var(--gold); }

/* ============ FORM ============ */
.form-field { display: block; margin-bottom: 18px; }
.form-field label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 2px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: 13px; color: var(--muted); }
.checkbox-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

/* ============ MEDIA ============ */
@media (max-width: 980px) {
  .building-grid, .unit-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 640px) {
  .building-grid, .unit-grid, .foot-inner, .form-row { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 32px; }
  section.section { padding: 56px 24px; }
  .page-header { padding: 40px 24px 56px; }
}
