:root {
  --bg: #f7f7f5;
  --bg-raised: #ffffff;
  --navy: #17233d;
  --navy-dim: #263a5e;
  --gold: #b8904f;
  --gold-dim: #9c793f;
  --ink: #1c2130;
  --ink-dim: #5b6270;
  --line: #e2e2df;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, .brand { font-family: var(--font-head); }
h1, h2 { font-weight: 700; line-height: 1.15; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
p { margin: 0 0 1rem; color: var(--ink-dim); }
a { color: var(--gold-dim); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }
.eyebrow { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dim); font-weight: 600; margin: 0 0 0.5rem; }
.eyebrow.center { text-align: center; }
section.section h2 { text-align: center; }
.section { padding: 5rem 0; }
.section.alt { background: #eef0ef; }

/* demo ribbon */
.demo-ribbon {
  background: var(--navy); color: #dfe6f0; font-size: 0.82rem;
  padding: 0.55rem 1.2rem; display: flex; justify-content: center; align-items: center; gap: 1rem;
  text-align: center; flex-wrap: wrap;
}
.demo-ribbon-link { color: var(--gold); text-decoration: underline; white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247,247,245,0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; gap: 1.5rem; }
.brand { font-size: 1.4rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.brand-accent { color: var(--gold-dim); }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { color: var(--ink-dim); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav a:hover { color: var(--navy); }
.nav-cta { margin-left: 1.8rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); display: block; }

@media (max-width: 860px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-raised); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .nav.open { max-height: 220px; }
  .nav a { padding: 0.9rem 1.5rem; border-top: 1px solid var(--line); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; padding: 0.75rem 1.4rem; border-radius: 4px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dim); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn.magnetic { will-change: transform; }

/* hero */
.hero { padding: 5.5rem 0 4.5rem; background: linear-gradient(180deg, #ffffff, var(--bg)); }
.hero-inner { max-width: 680px; }
.hero-sub { font-size: 1.05rem; max-width: 500px; }
.search-mock { margin-top: 2rem; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 45px -30px rgba(23,35,61,0.35); overflow: hidden; max-width: 560px; }
.search-tabs { display: flex; border-bottom: 1px solid var(--line); }
.search-tab { flex: 1; border: none; background: transparent; padding: 0.8rem; font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink-dim); cursor: pointer; border-bottom: 2px solid transparent; }
.search-tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.search-fields { display: flex; gap: 0.7rem; padding: 0.9rem; }
.search-fields input { flex: 1; border: 1px solid var(--line); border-radius: 4px; padding: 0.65rem 0.8rem; font-family: inherit; font-size: 0.92rem; }
.search-btn { padding: 0.65rem 1.3rem; }

/* cards */
.grid { display: grid; gap: 1.5rem; margin-top: 2.6rem; }
.listings-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease; will-change: transform;
}
.card:hover { box-shadow: 0 20px 40px -26px rgba(23,35,61,0.35); }

/* listings */
.listing-photo { height: 180px; position: relative; display: flex; align-items: flex-start; justify-content: flex-end; padding: 0.8rem; background: var(--navy); }
.listing-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing-tag { position: relative; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; padding: 0.3rem 0.65rem; border-radius: 4px; color: #fff; }
.tag-sale { background: rgba(23,35,61,0.85); }
.tag-rent { background: rgba(184,144,79,0.9); }
.listing-body { padding: 1.3rem 1.4rem 1.5rem; }
.listing-price { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--navy); margin: 0 0 0.3rem; }
.listing-price span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--ink-dim); }
.card h3 { font-size: 1.1rem; margin: 0 0 0.2rem; color: var(--ink); }
.listing-loc { font-size: 0.86rem; margin-bottom: 0.8rem; }
.listing-specs { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.9rem; font-size: 0.82rem; color: var(--ink-dim); border-top: 1px solid var(--line); padding-top: 0.8rem; }
.listings-empty { text-align: center; color: var(--ink-dim); margin-top: 2rem; }

/* agent */
.agent-inner { display: flex; align-items: center; gap: 2.6rem; }
.agent-photo { flex-shrink: 0; width: 140px; height: 140px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; }
.agent-title { color: var(--gold-dim); font-weight: 600; margin-top: -0.4rem; }
.agent-contact { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.6rem; }
.agent-email { font-size: 0.88rem; color: var(--ink-dim); }
@media (max-width: 700px) { .agent-inner { flex-direction: column; text-align: center; } .agent-contact { justify-content: center; } }

/* contact */
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
.info-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.info-list strong { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-dim); margin-bottom: 0.2rem; }
.info-list span { color: var(--ink); }
.enquiry-form { padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-size: 0.8rem; color: var(--ink-dim); }
.form-row input, .form-row select, .form-row textarea { padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 0.95rem; background: var(--bg); color: var(--ink); resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.form-submit { align-self: flex-start; margin-top: 0.4rem; }
.form-note { font-size: 0.85rem; color: var(--navy); background: #eef0ef; padding: 0.7rem 0.9rem; border-radius: 4px; }
@media (max-width: 800px) { .contact-inner { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--navy); color: #b9c2d4; padding: 3rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { color: #fff; margin-bottom: 0.6rem; }
.footer-fine { max-width: 380px; font-size: 0.82rem; color: #8b96ac; }
.footer-credit { font-size: 0.85rem; color: #8b96ac; }
.footer-credit a { color: var(--gold); }
